]>
Commit | Line | Data |
---|---|---|
f9e10201 JD |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69 for smartmontools 6.6. | |
4 | # | |
5 | # Report bugs to <smartmontools-support@listi.jpberlin.de>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | as_myself= | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # Use a proper internal environment variable to ensure we don't fall | |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if test "x$CONFIG_SHELL" = x; then | |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
213 | do | |
214 | IFS=$as_save_IFS | |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
241 | export CONFIG_SHELL | |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
260 | fi | |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
268 | else | |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
270 | $0: smartmontools-support@listi.jpberlin.de about your | |
271 | $0: system, including any error possibly output before this | |
272 | $0: message. Then install a modern shell, or manually run | |
273 | $0: the script under such a shell if you do have one." | |
274 | fi | |
275 | exit 1 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
320 | ||
321 | case $as_dir in #( | |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
359 | ||
360 | ||
361 | } # as_fn_mkdir_p | |
362 | ||
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
370 | # as_fn_append VAR VALUE | |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
407 | # ---------------------------------------- | |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
410 | # script with STATUS, using 1 if that was 0. | |
411 | as_fn_error () | |
412 | { | |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
417 | fi | |
418 | $as_echo "$as_me: error: $2" >&2 | |
419 | as_fn_exit $as_status | |
420 | } # as_fn_error | |
421 | ||
422 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
424 | as_expr=expr | |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
430 | as_basename=basename | |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
440 | ||
441 | as_me=`$as_basename -- "$0" || | |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
443 | X"$0" : 'X\(//\)$' \| \ | |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
445 | $as_echo X/"$0" | | |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
459 | ||
460 | # Avoid depending upon Character Ranges. | |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
466 | ||
467 | ||
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
477 | sed ' | |
478 | s/[$]LINENO.*/&-/ | |
479 | t lineno | |
480 | b | |
481 | :lineno | |
482 | N | |
483 | :loop | |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
485 | t loop | |
486 | s/-\n.*// | |
487 | ' >$as_me.lineno && | |
488 | chmod +x "$as_me.lineno" || | |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
490 | ||
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
495 | # Don't try to exec as it changes $[0], causing all sort of problems | |
496 | # (the dirname of $[0] is not the place where we might find the | |
497 | # original and so on. Autoconf is especially sensitive to this). | |
498 | . "./$as_me.lineno" | |
499 | # Exit status is that of the last command. | |
500 | exit | |
501 | } | |
502 | ||
503 | ECHO_C= ECHO_N= ECHO_T= | |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
514 | esac | |
515 | ||
516 | rm -f conf$$ conf$$.exe conf$$.file | |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
519 | else | |
520 | rm -f conf$$.dir | |
521 | mkdir conf$$.dir 2>/dev/null | |
522 | fi | |
523 | if (echo >conf$$.file) 2>/dev/null; then | |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
525 | as_ln_s='ln -s' | |
526 | # ... but there are two gotchas: | |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
529 | # In both cases, we have to default to `cp -pR'. | |
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
531 | as_ln_s='cp -pR' | |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s=ln | |
534 | else | |
535 | as_ln_s='cp -pR' | |
536 | fi | |
537 | else | |
538 | as_ln_s='cp -pR' | |
539 | fi | |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
541 | rmdir conf$$.dir 2>/dev/null | |
542 | ||
543 | if mkdir -p . 2>/dev/null; then | |
544 | as_mkdir_p='mkdir -p "$as_dir"' | |
545 | else | |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
548 | fi | |
549 | ||
550 | as_test_x='test -x' | |
551 | as_executable_p=as_fn_executable_p | |
552 | ||
553 | # Sed expression to map a string onto a valid CPP name. | |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | # Sed expression to map a string onto a valid variable name. | |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
558 | ||
559 | ||
560 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
561 | exec 6>&1 | |
562 | ||
563 | # Name of the host. | |
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
565 | # so uname gets run too. | |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
568 | # | |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
572 | ac_clean_files= | |
573 | ac_config_libobj_dir=. | |
574 | LIBOBJS= | |
575 | cross_compiling=no | |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
579 | ||
580 | # Identity of this package. | |
581 | PACKAGE_NAME='smartmontools' | |
582 | PACKAGE_TARNAME='smartmontools' | |
583 | PACKAGE_VERSION='6.6' | |
584 | PACKAGE_STRING='smartmontools 6.6' | |
585 | PACKAGE_BUGREPORT='smartmontools-support@listi.jpberlin.de' | |
586 | PACKAGE_URL='' | |
587 | ||
588 | ac_unique_file="smartctl.cpp" | |
589 | # Factoring default headers for most tests. | |
590 | ac_includes_default="\ | |
591 | #include <stdio.h> | |
592 | #ifdef HAVE_SYS_TYPES_H | |
593 | # include <sys/types.h> | |
594 | #endif | |
595 | #ifdef HAVE_SYS_STAT_H | |
596 | # include <sys/stat.h> | |
597 | #endif | |
598 | #ifdef STDC_HEADERS | |
599 | # include <stdlib.h> | |
600 | # include <stddef.h> | |
601 | #else | |
602 | # ifdef HAVE_STDLIB_H | |
603 | # include <stdlib.h> | |
604 | # endif | |
605 | #endif | |
606 | #ifdef HAVE_STRING_H | |
607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
608 | # include <memory.h> | |
609 | # endif | |
610 | # include <string.h> | |
611 | #endif | |
612 | #ifdef HAVE_STRINGS_H | |
613 | # include <strings.h> | |
614 | #endif | |
615 | #ifdef HAVE_INTTYPES_H | |
616 | # include <inttypes.h> | |
617 | #endif | |
618 | #ifdef HAVE_STDINT_H | |
619 | # include <stdint.h> | |
620 | #endif | |
621 | #ifdef HAVE_UNISTD_H | |
622 | # include <unistd.h> | |
623 | #endif" | |
624 | ||
625 | ac_subst_vars='am__EXEEXT_FALSE | |
626 | am__EXEEXT_TRUE | |
627 | LTLIBOBJS | |
628 | LIBOBJS | |
629 | OS_WIN64_FALSE | |
630 | OS_WIN64_TRUE | |
631 | OS_WIN32_NSIS_FALSE | |
632 | OS_WIN32_NSIS_TRUE | |
633 | OS_WIN32_MINGW_FALSE | |
634 | OS_WIN32_MINGW_TRUE | |
635 | OS_WIN32_FALSE | |
636 | OS_WIN32_TRUE | |
637 | OS_SOLARIS_FALSE | |
638 | OS_SOLARIS_TRUE | |
639 | OS_DARWIN_FALSE | |
640 | OS_DARWIN_TRUE | |
641 | DRIVEDB_BRANCH | |
642 | os_win32_manifest | |
643 | os_man_filter | |
644 | os_nisdomainname | |
645 | os_dnsdomainname | |
646 | os_hostname | |
647 | os_mailer | |
648 | os_dltools | |
649 | os_libs | |
650 | os_deps | |
651 | smartmontools_release_time | |
652 | smartmontools_release_date | |
653 | releaseversion | |
654 | with_nvme_devicescan | |
655 | CAPNG_LDADD | |
656 | with_selinux | |
657 | smartd_suffix | |
658 | ENABLE_ATTRIBUTELOG_FALSE | |
659 | ENABLE_ATTRIBUTELOG_TRUE | |
660 | attributelogdir | |
661 | attributelog | |
662 | ENABLE_SAVESTATES_FALSE | |
663 | ENABLE_SAVESTATES_TRUE | |
664 | savestatesdir | |
665 | savestates | |
666 | ENABLE_SCRIPTPATH_FALSE | |
667 | ENABLE_SCRIPTPATH_TRUE | |
668 | scriptpath | |
669 | smartdplugindir | |
670 | smartdscriptdir | |
671 | gnupg | |
672 | ENABLE_UPDATE_SMART_DRIVEDB_FALSE | |
673 | ENABLE_UPDATE_SMART_DRIVEDB_TRUE | |
674 | with_update_smart_drivedb | |
675 | ENABLE_DRIVEDB_FALSE | |
676 | ENABLE_DRIVEDB_TRUE | |
677 | drivedbdir | |
678 | exampledir | |
679 | initdfile | |
680 | INSTALL_INITSCRIPT_FALSE | |
681 | INSTALL_INITSCRIPT_TRUE | |
682 | initddir | |
683 | systemdenvfile | |
684 | INSTALL_SYSTEMDUNIT_FALSE | |
685 | INSTALL_SYSTEMDUNIT_TRUE | |
686 | systemdsystemunitdir | |
687 | ASFLAGS | |
688 | gcc_have_attr_packed | |
689 | NEED_REGEX_FALSE | |
690 | NEED_REGEX_TRUE | |
691 | NEED_GETOPT_LONG_FALSE | |
692 | NEED_GETOPT_LONG_TRUE | |
693 | EGREP | |
694 | GREP | |
695 | CXXCPP | |
696 | IS_SVN_BUILD_FALSE | |
697 | IS_SVN_BUILD_TRUE | |
698 | svn_deps | |
699 | host_os | |
700 | host_vendor | |
701 | host_cpu | |
702 | host | |
703 | build_os | |
704 | build_vendor | |
705 | build_cpu | |
706 | build | |
707 | MAKENSIS | |
708 | WINDRES | |
709 | WINDMC | |
710 | PKG_CONFIG_LIBDIR | |
711 | PKG_CONFIG_PATH | |
712 | PKG_CONFIG | |
713 | am__fastdepCCAS_FALSE | |
714 | am__fastdepCCAS_TRUE | |
715 | CCASDEPMODE | |
716 | CCASFLAGS | |
717 | CCAS | |
718 | am__fastdepCC_FALSE | |
719 | am__fastdepCC_TRUE | |
720 | CCDEPMODE | |
721 | ac_ct_CC | |
722 | CFLAGS | |
723 | CC | |
724 | am__fastdepCXX_FALSE | |
725 | am__fastdepCXX_TRUE | |
726 | CXXDEPMODE | |
727 | am__nodep | |
728 | AMDEPBACKSLASH | |
729 | AMDEP_FALSE | |
730 | AMDEP_TRUE | |
731 | am__quote | |
732 | am__include | |
733 | DEPDIR | |
734 | OBJEXT | |
735 | EXEEXT | |
736 | ac_ct_CXX | |
737 | CPPFLAGS | |
738 | LDFLAGS | |
739 | CXXFLAGS | |
740 | CXX | |
741 | MAINT | |
742 | MAINTAINER_MODE_FALSE | |
743 | MAINTAINER_MODE_TRUE | |
744 | AM_BACKSLASH | |
745 | AM_DEFAULT_VERBOSITY | |
746 | AM_DEFAULT_V | |
747 | AM_V | |
748 | am__untar | |
749 | am__tar | |
750 | AMTAR | |
751 | am__leading_dot | |
752 | SET_MAKE | |
753 | AWK | |
754 | mkdir_p | |
755 | MKDIR_P | |
756 | INSTALL_STRIP_PROGRAM | |
757 | STRIP | |
758 | install_sh | |
759 | MAKEINFO | |
760 | AUTOHEADER | |
761 | AUTOMAKE | |
762 | AUTOCONF | |
763 | ACLOCAL | |
764 | VERSION | |
765 | PACKAGE | |
766 | CYGPATH_W | |
767 | am__isrc | |
768 | INSTALL_DATA | |
769 | INSTALL_SCRIPT | |
770 | INSTALL_PROGRAM | |
771 | target_alias | |
772 | host_alias | |
773 | build_alias | |
774 | LIBS | |
775 | ECHO_T | |
776 | ECHO_N | |
777 | ECHO_C | |
778 | DEFS | |
779 | mandir | |
780 | localedir | |
781 | libdir | |
782 | psdir | |
783 | pdfdir | |
784 | dvidir | |
785 | htmldir | |
786 | infodir | |
787 | docdir | |
788 | oldincludedir | |
789 | includedir | |
790 | localstatedir | |
791 | sharedstatedir | |
792 | sysconfdir | |
793 | datadir | |
794 | datarootdir | |
795 | libexecdir | |
796 | sbindir | |
797 | bindir | |
798 | program_transform_name | |
799 | prefix | |
800 | exec_prefix | |
801 | PACKAGE_URL | |
802 | PACKAGE_BUGREPORT | |
803 | PACKAGE_STRING | |
804 | PACKAGE_VERSION | |
805 | PACKAGE_TARNAME | |
806 | PACKAGE_NAME | |
807 | PATH_SEPARATOR | |
808 | SHELL' | |
809 | ac_subst_files='' | |
810 | ac_user_opts=' | |
811 | enable_option_checking | |
812 | enable_silent_rules | |
813 | enable_maintainer_mode | |
814 | enable_dependency_tracking | |
815 | with_systemdsystemunitdir | |
816 | with_systemdenvfile | |
817 | with_initscriptdir | |
818 | with_exampledir | |
819 | with_drivedbdir | |
820 | with_update_smart_drivedb | |
821 | with_gnupg | |
822 | with_smartdscriptdir | |
823 | with_smartdplugindir | |
824 | with_scriptpath | |
825 | with_savestates | |
826 | with_attributelog | |
827 | enable_sample | |
828 | with_os_deps | |
829 | with_selinux | |
830 | with_libcap_ng | |
831 | with_nvme_devicescan | |
832 | with_solaris_sparc_ata | |
833 | with_working_snprintf | |
834 | with_mingw_aslr | |
835 | with_cxx11_option | |
836 | ' | |
837 | ac_precious_vars='build_alias | |
838 | host_alias | |
839 | target_alias | |
840 | CXX | |
841 | CXXFLAGS | |
842 | LDFLAGS | |
843 | LIBS | |
844 | CPPFLAGS | |
845 | CCC | |
846 | CC | |
847 | CFLAGS | |
848 | CCAS | |
849 | CCASFLAGS | |
850 | PKG_CONFIG | |
851 | PKG_CONFIG_PATH | |
852 | PKG_CONFIG_LIBDIR | |
853 | WINDMC | |
854 | WINDRES | |
855 | MAKENSIS | |
856 | CXXCPP' | |
857 | ||
858 | ||
859 | # Initialize some variables set by options. | |
860 | ac_init_help= | |
861 | ac_init_version=false | |
862 | ac_unrecognized_opts= | |
863 | ac_unrecognized_sep= | |
864 | # The variables have the same names as the options, with | |
865 | # dashes changed to underlines. | |
866 | cache_file=/dev/null | |
867 | exec_prefix=NONE | |
868 | no_create= | |
869 | no_recursion= | |
870 | prefix=NONE | |
871 | program_prefix=NONE | |
872 | program_suffix=NONE | |
873 | program_transform_name=s,x,x, | |
874 | silent= | |
875 | site= | |
876 | srcdir= | |
877 | verbose= | |
878 | x_includes=NONE | |
879 | x_libraries=NONE | |
880 | ||
881 | # Installation directory options. | |
882 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
883 | # and all the variables that are supposed to be based on exec_prefix | |
884 | # by default will actually change. | |
885 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
886 | # (The list follows the same order as the GNU Coding Standards.) | |
887 | bindir='${exec_prefix}/bin' | |
888 | sbindir='${exec_prefix}/sbin' | |
889 | libexecdir='${exec_prefix}/libexec' | |
890 | datarootdir='${prefix}/share' | |
891 | datadir='${datarootdir}' | |
892 | sysconfdir='${prefix}/etc' | |
893 | sharedstatedir='${prefix}/com' | |
894 | localstatedir='${prefix}/var' | |
895 | includedir='${prefix}/include' | |
896 | oldincludedir='/usr/include' | |
897 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
898 | infodir='${datarootdir}/info' | |
899 | htmldir='${docdir}' | |
900 | dvidir='${docdir}' | |
901 | pdfdir='${docdir}' | |
902 | psdir='${docdir}' | |
903 | libdir='${exec_prefix}/lib' | |
904 | localedir='${datarootdir}/locale' | |
905 | mandir='${datarootdir}/man' | |
906 | ||
907 | ac_prev= | |
908 | ac_dashdash= | |
909 | for ac_option | |
910 | do | |
911 | # If the previous option needs an argument, assign it. | |
912 | if test -n "$ac_prev"; then | |
913 | eval $ac_prev=\$ac_option | |
914 | ac_prev= | |
915 | continue | |
916 | fi | |
917 | ||
918 | case $ac_option in | |
919 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
920 | *=) ac_optarg= ;; | |
921 | *) ac_optarg=yes ;; | |
922 | esac | |
923 | ||
924 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
925 | ||
926 | case $ac_dashdash$ac_option in | |
927 | --) | |
928 | ac_dashdash=yes ;; | |
929 | ||
930 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
931 | ac_prev=bindir ;; | |
932 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
933 | bindir=$ac_optarg ;; | |
934 | ||
935 | -build | --build | --buil | --bui | --bu) | |
936 | ac_prev=build_alias ;; | |
937 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
938 | build_alias=$ac_optarg ;; | |
939 | ||
940 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
941 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
942 | ac_prev=cache_file ;; | |
943 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
944 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
945 | cache_file=$ac_optarg ;; | |
946 | ||
947 | --config-cache | -C) | |
948 | cache_file=config.cache ;; | |
949 | ||
950 | -datadir | --datadir | --datadi | --datad) | |
951 | ac_prev=datadir ;; | |
952 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
953 | datadir=$ac_optarg ;; | |
954 | ||
955 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
956 | | --dataroo | --dataro | --datar) | |
957 | ac_prev=datarootdir ;; | |
958 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
959 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
960 | datarootdir=$ac_optarg ;; | |
961 | ||
962 | -disable-* | --disable-*) | |
963 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
964 | # Reject names that are not valid shell variable names. | |
965 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
966 | as_fn_error $? "invalid feature name: $ac_useropt" | |
967 | ac_useropt_orig=$ac_useropt | |
968 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
969 | case $ac_user_opts in | |
970 | *" | |
971 | "enable_$ac_useropt" | |
972 | "*) ;; | |
973 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
974 | ac_unrecognized_sep=', ';; | |
975 | esac | |
976 | eval enable_$ac_useropt=no ;; | |
977 | ||
978 | -docdir | --docdir | --docdi | --doc | --do) | |
979 | ac_prev=docdir ;; | |
980 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
981 | docdir=$ac_optarg ;; | |
982 | ||
983 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
984 | ac_prev=dvidir ;; | |
985 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
986 | dvidir=$ac_optarg ;; | |
987 | ||
988 | -enable-* | --enable-*) | |
989 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
990 | # Reject names that are not valid shell variable names. | |
991 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
992 | as_fn_error $? "invalid feature name: $ac_useropt" | |
993 | ac_useropt_orig=$ac_useropt | |
994 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
995 | case $ac_user_opts in | |
996 | *" | |
997 | "enable_$ac_useropt" | |
998 | "*) ;; | |
999 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1000 | ac_unrecognized_sep=', ';; | |
1001 | esac | |
1002 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1003 | ||
1004 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1005 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1006 | | --exec | --exe | --ex) | |
1007 | ac_prev=exec_prefix ;; | |
1008 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1009 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1010 | | --exec=* | --exe=* | --ex=*) | |
1011 | exec_prefix=$ac_optarg ;; | |
1012 | ||
1013 | -gas | --gas | --ga | --g) | |
1014 | # Obsolete; use --with-gas. | |
1015 | with_gas=yes ;; | |
1016 | ||
1017 | -help | --help | --hel | --he | -h) | |
1018 | ac_init_help=long ;; | |
1019 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1020 | ac_init_help=recursive ;; | |
1021 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1022 | ac_init_help=short ;; | |
1023 | ||
1024 | -host | --host | --hos | --ho) | |
1025 | ac_prev=host_alias ;; | |
1026 | -host=* | --host=* | --hos=* | --ho=*) | |
1027 | host_alias=$ac_optarg ;; | |
1028 | ||
1029 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1030 | ac_prev=htmldir ;; | |
1031 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1032 | | --ht=*) | |
1033 | htmldir=$ac_optarg ;; | |
1034 | ||
1035 | -includedir | --includedir | --includedi | --included | --include \ | |
1036 | | --includ | --inclu | --incl | --inc) | |
1037 | ac_prev=includedir ;; | |
1038 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1039 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1040 | includedir=$ac_optarg ;; | |
1041 | ||
1042 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1043 | ac_prev=infodir ;; | |
1044 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1045 | infodir=$ac_optarg ;; | |
1046 | ||
1047 | -libdir | --libdir | --libdi | --libd) | |
1048 | ac_prev=libdir ;; | |
1049 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1050 | libdir=$ac_optarg ;; | |
1051 | ||
1052 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1053 | | --libexe | --libex | --libe) | |
1054 | ac_prev=libexecdir ;; | |
1055 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1056 | | --libexe=* | --libex=* | --libe=*) | |
1057 | libexecdir=$ac_optarg ;; | |
1058 | ||
1059 | -localedir | --localedir | --localedi | --localed | --locale) | |
1060 | ac_prev=localedir ;; | |
1061 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1062 | localedir=$ac_optarg ;; | |
1063 | ||
1064 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1065 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1066 | ac_prev=localstatedir ;; | |
1067 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1068 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1069 | localstatedir=$ac_optarg ;; | |
1070 | ||
1071 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1072 | ac_prev=mandir ;; | |
1073 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1074 | mandir=$ac_optarg ;; | |
1075 | ||
1076 | -nfp | --nfp | --nf) | |
1077 | # Obsolete; use --without-fp. | |
1078 | with_fp=no ;; | |
1079 | ||
1080 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1081 | | --no-cr | --no-c | -n) | |
1082 | no_create=yes ;; | |
1083 | ||
1084 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1085 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1086 | no_recursion=yes ;; | |
1087 | ||
1088 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1089 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1090 | | --oldin | --oldi | --old | --ol | --o) | |
1091 | ac_prev=oldincludedir ;; | |
1092 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1093 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1094 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1095 | oldincludedir=$ac_optarg ;; | |
1096 | ||
1097 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1098 | ac_prev=prefix ;; | |
1099 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1100 | prefix=$ac_optarg ;; | |
1101 | ||
1102 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1103 | | --program-pre | --program-pr | --program-p) | |
1104 | ac_prev=program_prefix ;; | |
1105 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1106 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1107 | program_prefix=$ac_optarg ;; | |
1108 | ||
1109 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1110 | | --program-suf | --program-su | --program-s) | |
1111 | ac_prev=program_suffix ;; | |
1112 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1113 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1114 | program_suffix=$ac_optarg ;; | |
1115 | ||
1116 | -program-transform-name | --program-transform-name \ | |
1117 | | --program-transform-nam | --program-transform-na \ | |
1118 | | --program-transform-n | --program-transform- \ | |
1119 | | --program-transform | --program-transfor \ | |
1120 | | --program-transfo | --program-transf \ | |
1121 | | --program-trans | --program-tran \ | |
1122 | | --progr-tra | --program-tr | --program-t) | |
1123 | ac_prev=program_transform_name ;; | |
1124 | -program-transform-name=* | --program-transform-name=* \ | |
1125 | | --program-transform-nam=* | --program-transform-na=* \ | |
1126 | | --program-transform-n=* | --program-transform-=* \ | |
1127 | | --program-transform=* | --program-transfor=* \ | |
1128 | | --program-transfo=* | --program-transf=* \ | |
1129 | | --program-trans=* | --program-tran=* \ | |
1130 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1131 | program_transform_name=$ac_optarg ;; | |
1132 | ||
1133 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1134 | ac_prev=pdfdir ;; | |
1135 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1136 | pdfdir=$ac_optarg ;; | |
1137 | ||
1138 | -psdir | --psdir | --psdi | --psd | --ps) | |
1139 | ac_prev=psdir ;; | |
1140 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1141 | psdir=$ac_optarg ;; | |
1142 | ||
1143 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1144 | | -silent | --silent | --silen | --sile | --sil) | |
1145 | silent=yes ;; | |
1146 | ||
1147 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1148 | ac_prev=sbindir ;; | |
1149 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1150 | | --sbi=* | --sb=*) | |
1151 | sbindir=$ac_optarg ;; | |
1152 | ||
1153 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1154 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1155 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1156 | | --sha | --sh) | |
1157 | ac_prev=sharedstatedir ;; | |
1158 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1159 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1160 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1161 | | --sha=* | --sh=*) | |
1162 | sharedstatedir=$ac_optarg ;; | |
1163 | ||
1164 | -site | --site | --sit) | |
1165 | ac_prev=site ;; | |
1166 | -site=* | --site=* | --sit=*) | |
1167 | site=$ac_optarg ;; | |
1168 | ||
1169 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1170 | ac_prev=srcdir ;; | |
1171 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1172 | srcdir=$ac_optarg ;; | |
1173 | ||
1174 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1175 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1176 | ac_prev=sysconfdir ;; | |
1177 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1178 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1179 | sysconfdir=$ac_optarg ;; | |
1180 | ||
1181 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1182 | ac_prev=target_alias ;; | |
1183 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1184 | target_alias=$ac_optarg ;; | |
1185 | ||
1186 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1187 | verbose=yes ;; | |
1188 | ||
1189 | -version | --version | --versio | --versi | --vers | -V) | |
1190 | ac_init_version=: ;; | |
1191 | ||
1192 | -with-* | --with-*) | |
1193 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1194 | # Reject names that are not valid shell variable names. | |
1195 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1196 | as_fn_error $? "invalid package name: $ac_useropt" | |
1197 | ac_useropt_orig=$ac_useropt | |
1198 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1199 | case $ac_user_opts in | |
1200 | *" | |
1201 | "with_$ac_useropt" | |
1202 | "*) ;; | |
1203 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1204 | ac_unrecognized_sep=', ';; | |
1205 | esac | |
1206 | eval with_$ac_useropt=\$ac_optarg ;; | |
1207 | ||
1208 | -without-* | --without-*) | |
1209 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1210 | # Reject names that are not valid shell variable names. | |
1211 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1212 | as_fn_error $? "invalid package name: $ac_useropt" | |
1213 | ac_useropt_orig=$ac_useropt | |
1214 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1215 | case $ac_user_opts in | |
1216 | *" | |
1217 | "with_$ac_useropt" | |
1218 | "*) ;; | |
1219 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1220 | ac_unrecognized_sep=', ';; | |
1221 | esac | |
1222 | eval with_$ac_useropt=no ;; | |
1223 | ||
1224 | --x) | |
1225 | # Obsolete; use --with-x. | |
1226 | with_x=yes ;; | |
1227 | ||
1228 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1229 | | --x-incl | --x-inc | --x-in | --x-i) | |
1230 | ac_prev=x_includes ;; | |
1231 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1232 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1233 | x_includes=$ac_optarg ;; | |
1234 | ||
1235 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1236 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1237 | ac_prev=x_libraries ;; | |
1238 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1239 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1240 | x_libraries=$ac_optarg ;; | |
1241 | ||
1242 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1243 | Try \`$0 --help' for more information" | |
1244 | ;; | |
1245 | ||
1246 | *=*) | |
1247 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1248 | # Reject names that are not valid shell variable names. | |
1249 | case $ac_envvar in #( | |
1250 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1251 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1252 | esac | |
1253 | eval $ac_envvar=\$ac_optarg | |
1254 | export $ac_envvar ;; | |
1255 | ||
1256 | *) | |
1257 | # FIXME: should be removed in autoconf 3.0. | |
1258 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1259 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1260 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1261 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1262 | ;; | |
1263 | ||
1264 | esac | |
1265 | done | |
1266 | ||
1267 | if test -n "$ac_prev"; then | |
1268 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1269 | as_fn_error $? "missing argument to $ac_option" | |
1270 | fi | |
1271 | ||
1272 | if test -n "$ac_unrecognized_opts"; then | |
1273 | case $enable_option_checking in | |
1274 | no) ;; | |
1275 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1276 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1277 | esac | |
1278 | fi | |
1279 | ||
1280 | # Check all directory arguments for consistency. | |
1281 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1282 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1283 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1284 | libdir localedir mandir | |
1285 | do | |
1286 | eval ac_val=\$$ac_var | |
1287 | # Remove trailing slashes. | |
1288 | case $ac_val in | |
1289 | */ ) | |
1290 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1291 | eval $ac_var=\$ac_val;; | |
1292 | esac | |
1293 | # Be sure to have absolute directory names. | |
1294 | case $ac_val in | |
1295 | [\\/$]* | ?:[\\/]* ) continue;; | |
1296 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1297 | esac | |
1298 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1299 | done | |
1300 | ||
1301 | # There might be people who depend on the old broken behavior: `$host' | |
1302 | # used to hold the argument of --host etc. | |
1303 | # FIXME: To remove some day. | |
1304 | build=$build_alias | |
1305 | host=$host_alias | |
1306 | target=$target_alias | |
1307 | ||
1308 | # FIXME: To remove some day. | |
1309 | if test "x$host_alias" != x; then | |
1310 | if test "x$build_alias" = x; then | |
1311 | cross_compiling=maybe | |
1312 | elif test "x$build_alias" != "x$host_alias"; then | |
1313 | cross_compiling=yes | |
1314 | fi | |
1315 | fi | |
1316 | ||
1317 | ac_tool_prefix= | |
1318 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1319 | ||
1320 | test "$silent" = yes && exec 6>/dev/null | |
1321 | ||
1322 | ||
1323 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1324 | ac_ls_di=`ls -di .` && | |
1325 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1326 | as_fn_error $? "working directory cannot be determined" | |
1327 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1328 | as_fn_error $? "pwd does not report name of working directory" | |
1329 | ||
1330 | ||
1331 | # Find the source files, if location was not specified. | |
1332 | if test -z "$srcdir"; then | |
1333 | ac_srcdir_defaulted=yes | |
1334 | # Try the directory containing this script, then the parent directory. | |
1335 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1336 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1337 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1338 | X"$as_myself" : 'X\(//\)$' \| \ | |
1339 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1340 | $as_echo X"$as_myself" | | |
1341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1342 | s//\1/ | |
1343 | q | |
1344 | } | |
1345 | /^X\(\/\/\)[^/].*/{ | |
1346 | s//\1/ | |
1347 | q | |
1348 | } | |
1349 | /^X\(\/\/\)$/{ | |
1350 | s//\1/ | |
1351 | q | |
1352 | } | |
1353 | /^X\(\/\).*/{ | |
1354 | s//\1/ | |
1355 | q | |
1356 | } | |
1357 | s/.*/./; q'` | |
1358 | srcdir=$ac_confdir | |
1359 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1360 | srcdir=.. | |
1361 | fi | |
1362 | else | |
1363 | ac_srcdir_defaulted=no | |
1364 | fi | |
1365 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1366 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1367 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1368 | fi | |
1369 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1370 | ac_abs_confdir=`( | |
1371 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1372 | pwd)` | |
1373 | # When building in place, set srcdir=. | |
1374 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1375 | srcdir=. | |
1376 | fi | |
1377 | # Remove unnecessary trailing slashes from srcdir. | |
1378 | # Double slashes in file names in object file debugging info | |
1379 | # mess up M-x gdb in Emacs. | |
1380 | case $srcdir in | |
1381 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1382 | esac | |
1383 | for ac_var in $ac_precious_vars; do | |
1384 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1386 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1387 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1388 | done | |
1389 | ||
1390 | # | |
1391 | # Report the --help message. | |
1392 | # | |
1393 | if test "$ac_init_help" = "long"; then | |
1394 | # Omit some internal or obsolete options to make the list less imposing. | |
1395 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1396 | cat <<_ACEOF | |
1397 | \`configure' configures smartmontools 6.6 to adapt to many kinds of systems. | |
1398 | ||
1399 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1400 | ||
1401 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1402 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1403 | ||
1404 | Defaults for the options are specified in brackets. | |
1405 | ||
1406 | Configuration: | |
1407 | -h, --help display this help and exit | |
1408 | --help=short display options specific to this package | |
1409 | --help=recursive display the short help of all the included packages | |
1410 | -V, --version display version information and exit | |
1411 | -q, --quiet, --silent do not print \`checking ...' messages | |
1412 | --cache-file=FILE cache test results in FILE [disabled] | |
1413 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1414 | -n, --no-create do not create output files | |
1415 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1416 | ||
1417 | Installation directories: | |
1418 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1419 | [$ac_default_prefix] | |
1420 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1421 | [PREFIX] | |
1422 | ||
1423 | By default, \`make install' will install all the files in | |
1424 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1425 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1426 | for instance \`--prefix=\$HOME'. | |
1427 | ||
1428 | For better control, use the options below. | |
1429 | ||
1430 | Fine tuning of the installation directories: | |
1431 | --bindir=DIR user executables [EPREFIX/bin] | |
1432 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1433 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1434 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1435 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1436 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1437 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1438 | --includedir=DIR C header files [PREFIX/include] | |
1439 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1440 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1441 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1442 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1443 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1444 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1445 | --docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools] | |
1446 | --htmldir=DIR html documentation [DOCDIR] | |
1447 | --dvidir=DIR dvi documentation [DOCDIR] | |
1448 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1449 | --psdir=DIR ps documentation [DOCDIR] | |
1450 | _ACEOF | |
1451 | ||
1452 | cat <<\_ACEOF | |
1453 | ||
1454 | Program names: | |
1455 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1456 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1457 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1458 | ||
1459 | System types: | |
1460 | --build=BUILD configure for building on BUILD [guessed] | |
1461 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1462 | _ACEOF | |
1463 | fi | |
1464 | ||
1465 | if test -n "$ac_init_help"; then | |
1466 | case $ac_init_help in | |
1467 | short | recursive ) echo "Configuration of smartmontools 6.6:";; | |
1468 | esac | |
1469 | cat <<\_ACEOF | |
1470 | ||
1471 | Optional Features: | |
1472 | --disable-option-checking ignore unrecognized --enable/--with options | |
1473 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1474 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1475 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1476 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1477 | --enable-maintainer-mode | |
1478 | enable make rules and dependencies not useful (and | |
1479 | sometimes confusing) to the casual installer | |
1480 | --enable-dependency-tracking | |
1481 | do not reject slow dependency extractors | |
1482 | --disable-dependency-tracking | |
1483 | speeds up one-time build | |
1484 | --enable-sample Enables appending .sample to the installed smartd rc | |
1485 | script and configuration file | |
1486 | ||
1487 | Optional Packages: | |
1488 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1489 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1490 | --with-systemdsystemunitdir[=DIR|auto|yes|no] | |
1491 | Location of systemd service files [auto] | |
1492 | --with-systemdenvfile[=FILE|auto|yes|no] | |
1493 | Path of systemd EnvironmentFile [auto] | |
1494 | --with-initscriptdir[=DIR|auto|yes|no] | |
1495 | Location of init scripts [auto] | |
1496 | --with-exampledir=DIR Location of example scripts [DOCDIR/examplescripts] | |
1497 | --with-drivedbdir[=DIR|yes|no] | |
1498 | Location of drive database file | |
1499 | [DATADIR/smartmontools] | |
1500 | --with-update-smart-drivedb[=yes|no|X.Y] | |
1501 | Install update-smart-drivedb script (and backport it | |
1502 | to branches/RELEASE_X_Y_DRIVEDB) [yes] | |
1503 | --with-gnupg[=FILE|yes|no] | |
1504 | GnuPG used to verify drivedb.h [gpg] | |
1505 | --with-smartdscriptdir=DIR | |
1506 | Location of smartd_warning.sh script [SYSCONFDIR] | |
1507 | --with-smartdplugindir=[DIR|no] | |
1508 | Location of smartd_warning.sh plugin scripts | |
1509 | [SMARTDSCRIPTDIR/smartd_warning.d] | |
1510 | --with-scriptpath=[PATH|no] | |
1511 | PATH variable set within scripts [/usr/bin:/bin] | |
1512 | --with-savestates[=PREFIX|yes|no] | |
1513 | Enable default smartd state files [no] | |
1514 | (yes=LOCALSTATEDIR/lib/smartmontools/smartd.) | |
1515 | --with-attributelog[=PREFIX|yes|no] | |
1516 | Enable default smartd attribute log files [no] | |
1517 | (yes=LOCALSTATEDIR/lib/smartmontools/attrlog.) | |
1518 | --with-os-deps='os_module.o ...' | |
1519 | Specify OS dependent module(s) [guessed] | |
1520 | --with-selinux[=yes|no] Enables SELinux support [no] | |
1521 | --with-libcap-ng[=auto|yes|no] | |
1522 | Add Libcap-ng support to smartd [auto] | |
1523 | --with-nvme-devicescan[=yes|no] | |
1524 | Include NVMe devices in smartd DEVICESCAN [no] | |
1525 | --with-solaris-sparc-ata[=yes|no] | |
1526 | Enable legacy ATA support on Solaris SPARC (requires | |
1527 | os_solaris_ata.s from SVN repository) [no] | |
1528 | --with-working-snprintf[=yes|no] | |
1529 | Function snprintf() handles output truncation as | |
1530 | specified by C99 [MinGW:guessed,others:yes] | |
1531 | --with-mingw-aslr[=auto|yes|low|no] | |
1532 | Enable ASLR for MinGW executables [auto] | |
1533 | --with-cxx11-option[=OPTION|auto|no] | |
1534 | Compiler option to enable C++11 support for future | |
1535 | versions of smartmontools, 'no' if unsupported | |
1536 | [auto] | |
1537 | ||
1538 | Some influential environment variables: | |
1539 | CXX C++ compiler command | |
1540 | CXXFLAGS C++ compiler flags | |
1541 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1542 | nonstandard directory <lib dir> | |
1543 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1544 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1545 | you have headers in a nonstandard directory <include dir> | |
1546 | CC C compiler command | |
1547 | CFLAGS C compiler flags | |
1548 | CCAS assembler compiler command (defaults to CC) | |
1549 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1550 | PKG_CONFIG path to pkg-config utility | |
1551 | PKG_CONFIG_PATH | |
1552 | directories to add to pkg-config's search path | |
1553 | PKG_CONFIG_LIBDIR | |
1554 | path overriding pkg-config's built-in search path | |
1555 | WINDMC Windows message compiler command | |
1556 | WINDRES Windows resource compiler command | |
1557 | MAKENSIS NSIS compiler command | |
1558 | CXXCPP C++ preprocessor | |
1559 | ||
1560 | Use these variables to override the choices made by `configure' or to help | |
1561 | it to find libraries and programs with nonstandard names/locations. | |
1562 | ||
1563 | Report bugs to <smartmontools-support@listi.jpberlin.de>. | |
1564 | _ACEOF | |
1565 | ac_status=$? | |
1566 | fi | |
1567 | ||
1568 | if test "$ac_init_help" = "recursive"; then | |
1569 | # If there are subdirs, report their specific --help. | |
1570 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1571 | test -d "$ac_dir" || | |
1572 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1573 | continue | |
1574 | ac_builddir=. | |
1575 | ||
1576 | case "$ac_dir" in | |
1577 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1578 | *) | |
1579 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1580 | # A ".." for each directory in $ac_dir_suffix. | |
1581 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1582 | case $ac_top_builddir_sub in | |
1583 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1584 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1585 | esac ;; | |
1586 | esac | |
1587 | ac_abs_top_builddir=$ac_pwd | |
1588 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1589 | # for backward compatibility: | |
1590 | ac_top_builddir=$ac_top_build_prefix | |
1591 | ||
1592 | case $srcdir in | |
1593 | .) # We are building in place. | |
1594 | ac_srcdir=. | |
1595 | ac_top_srcdir=$ac_top_builddir_sub | |
1596 | ac_abs_top_srcdir=$ac_pwd ;; | |
1597 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1598 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1599 | ac_top_srcdir=$srcdir | |
1600 | ac_abs_top_srcdir=$srcdir ;; | |
1601 | *) # Relative name. | |
1602 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1603 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1604 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1605 | esac | |
1606 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1607 | ||
1608 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1609 | # Check for guested configure. | |
1610 | if test -f "$ac_srcdir/configure.gnu"; then | |
1611 | echo && | |
1612 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1613 | elif test -f "$ac_srcdir/configure"; then | |
1614 | echo && | |
1615 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1616 | else | |
1617 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1618 | fi || ac_status=$? | |
1619 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1620 | done | |
1621 | fi | |
1622 | ||
1623 | test -n "$ac_init_help" && exit $ac_status | |
1624 | if $ac_init_version; then | |
1625 | cat <<\_ACEOF | |
1626 | smartmontools configure 6.6 | |
1627 | generated by GNU Autoconf 2.69 | |
1628 | ||
1629 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1630 | This configure script is free software; the Free Software Foundation | |
1631 | gives unlimited permission to copy, distribute and modify it. | |
1632 | _ACEOF | |
1633 | exit | |
1634 | fi | |
1635 | ||
1636 | ## ------------------------ ## | |
1637 | ## Autoconf initialization. ## | |
1638 | ## ------------------------ ## | |
1639 | ||
1640 | # ac_fn_cxx_try_compile LINENO | |
1641 | # ---------------------------- | |
1642 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1643 | ac_fn_cxx_try_compile () | |
1644 | { | |
1645 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1646 | rm -f conftest.$ac_objext | |
1647 | if { { ac_try="$ac_compile" | |
1648 | case "(($ac_try" in | |
1649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1650 | *) ac_try_echo=$ac_try;; | |
1651 | esac | |
1652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1653 | $as_echo "$ac_try_echo"; } >&5 | |
1654 | (eval "$ac_compile") 2>conftest.err | |
1655 | ac_status=$? | |
1656 | if test -s conftest.err; then | |
1657 | grep -v '^ *+' conftest.err >conftest.er1 | |
1658 | cat conftest.er1 >&5 | |
1659 | mv -f conftest.er1 conftest.err | |
1660 | fi | |
1661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1662 | test $ac_status = 0; } && { | |
1663 | test -z "$ac_cxx_werror_flag" || | |
1664 | test ! -s conftest.err | |
1665 | } && test -s conftest.$ac_objext; then : | |
1666 | ac_retval=0 | |
1667 | else | |
1668 | $as_echo "$as_me: failed program was:" >&5 | |
1669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1670 | ||
1671 | ac_retval=1 | |
1672 | fi | |
1673 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1674 | as_fn_set_status $ac_retval | |
1675 | ||
1676 | } # ac_fn_cxx_try_compile | |
1677 | ||
1678 | # ac_fn_c_try_compile LINENO | |
1679 | # -------------------------- | |
1680 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1681 | ac_fn_c_try_compile () | |
1682 | { | |
1683 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1684 | rm -f conftest.$ac_objext | |
1685 | if { { ac_try="$ac_compile" | |
1686 | case "(($ac_try" in | |
1687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1688 | *) ac_try_echo=$ac_try;; | |
1689 | esac | |
1690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1691 | $as_echo "$ac_try_echo"; } >&5 | |
1692 | (eval "$ac_compile") 2>conftest.err | |
1693 | ac_status=$? | |
1694 | if test -s conftest.err; then | |
1695 | grep -v '^ *+' conftest.err >conftest.er1 | |
1696 | cat conftest.er1 >&5 | |
1697 | mv -f conftest.er1 conftest.err | |
1698 | fi | |
1699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1700 | test $ac_status = 0; } && { | |
1701 | test -z "$ac_c_werror_flag" || | |
1702 | test ! -s conftest.err | |
1703 | } && test -s conftest.$ac_objext; then : | |
1704 | ac_retval=0 | |
1705 | else | |
1706 | $as_echo "$as_me: failed program was:" >&5 | |
1707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1708 | ||
1709 | ac_retval=1 | |
1710 | fi | |
1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1712 | as_fn_set_status $ac_retval | |
1713 | ||
1714 | } # ac_fn_c_try_compile | |
1715 | ||
1716 | # ac_fn_cxx_try_cpp LINENO | |
1717 | # ------------------------ | |
1718 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1719 | ac_fn_cxx_try_cpp () | |
1720 | { | |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1722 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1723 | case "(($ac_try" in | |
1724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1725 | *) ac_try_echo=$ac_try;; | |
1726 | esac | |
1727 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1728 | $as_echo "$ac_try_echo"; } >&5 | |
1729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1730 | ac_status=$? | |
1731 | if test -s conftest.err; then | |
1732 | grep -v '^ *+' conftest.err >conftest.er1 | |
1733 | cat conftest.er1 >&5 | |
1734 | mv -f conftest.er1 conftest.err | |
1735 | fi | |
1736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1737 | test $ac_status = 0; } > conftest.i && { | |
1738 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1739 | test ! -s conftest.err | |
1740 | }; then : | |
1741 | ac_retval=0 | |
1742 | else | |
1743 | $as_echo "$as_me: failed program was:" >&5 | |
1744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1745 | ||
1746 | ac_retval=1 | |
1747 | fi | |
1748 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1749 | as_fn_set_status $ac_retval | |
1750 | ||
1751 | } # ac_fn_cxx_try_cpp | |
1752 | ||
1753 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1754 | # --------------------------------------------------------- | |
1755 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1756 | # the include files in INCLUDES and setting the cache variable VAR | |
1757 | # accordingly. | |
1758 | ac_fn_cxx_check_header_mongrel () | |
1759 | { | |
1760 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1761 | if eval \${$3+:} false; then : | |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1763 | $as_echo_n "checking for $2... " >&6; } | |
1764 | if eval \${$3+:} false; then : | |
1765 | $as_echo_n "(cached) " >&6 | |
1766 | fi | |
1767 | eval ac_res=\$$3 | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1769 | $as_echo "$ac_res" >&6; } | |
1770 | else | |
1771 | # Is the header compilable? | |
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1773 | $as_echo_n "checking $2 usability... " >&6; } | |
1774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1775 | /* end confdefs.h. */ | |
1776 | $4 | |
1777 | #include <$2> | |
1778 | _ACEOF | |
1779 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1780 | ac_header_compiler=yes | |
1781 | else | |
1782 | ac_header_compiler=no | |
1783 | fi | |
1784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1786 | $as_echo "$ac_header_compiler" >&6; } | |
1787 | ||
1788 | # Is the header present? | |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1790 | $as_echo_n "checking $2 presence... " >&6; } | |
1791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1792 | /* end confdefs.h. */ | |
1793 | #include <$2> | |
1794 | _ACEOF | |
1795 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
1796 | ac_header_preproc=yes | |
1797 | else | |
1798 | ac_header_preproc=no | |
1799 | fi | |
1800 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1802 | $as_echo "$ac_header_preproc" >&6; } | |
1803 | ||
1804 | # So? What about this header? | |
1805 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
1806 | yes:no: ) | |
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1808 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1810 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1811 | ;; | |
1812 | no:yes:* ) | |
1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1814 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1816 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1818 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1820 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1822 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1823 | ( $as_echo "## ------------------------------------------------------ ## | |
1824 | ## Report this to smartmontools-support@listi.jpberlin.de ## | |
1825 | ## ------------------------------------------------------ ##" | |
1826 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1827 | ;; | |
1828 | esac | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1830 | $as_echo_n "checking for $2... " >&6; } | |
1831 | if eval \${$3+:} false; then : | |
1832 | $as_echo_n "(cached) " >&6 | |
1833 | else | |
1834 | eval "$3=\$ac_header_compiler" | |
1835 | fi | |
1836 | eval ac_res=\$$3 | |
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1838 | $as_echo "$ac_res" >&6; } | |
1839 | fi | |
1840 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1841 | ||
1842 | } # ac_fn_cxx_check_header_mongrel | |
1843 | ||
1844 | # ac_fn_cxx_try_run LINENO | |
1845 | # ------------------------ | |
1846 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1847 | # that executables *can* be run. | |
1848 | ac_fn_cxx_try_run () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | if { { ac_try="$ac_link" | |
1852 | case "(($ac_try" in | |
1853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1854 | *) ac_try_echo=$ac_try;; | |
1855 | esac | |
1856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1857 | $as_echo "$ac_try_echo"; } >&5 | |
1858 | (eval "$ac_link") 2>&5 | |
1859 | ac_status=$? | |
1860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1861 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1862 | { { case "(($ac_try" in | |
1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1864 | *) ac_try_echo=$ac_try;; | |
1865 | esac | |
1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1867 | $as_echo "$ac_try_echo"; } >&5 | |
1868 | (eval "$ac_try") 2>&5 | |
1869 | ac_status=$? | |
1870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1871 | test $ac_status = 0; }; }; then : | |
1872 | ac_retval=0 | |
1873 | else | |
1874 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1875 | $as_echo "$as_me: failed program was:" >&5 | |
1876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1877 | ||
1878 | ac_retval=$ac_status | |
1879 | fi | |
1880 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1881 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1882 | as_fn_set_status $ac_retval | |
1883 | ||
1884 | } # ac_fn_cxx_try_run | |
1885 | ||
1886 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES | |
1887 | # --------------------------------------------------------- | |
1888 | # Tests whether HEADER exists and can be compiled using the include files in | |
1889 | # INCLUDES, setting the cache variable VAR accordingly. | |
1890 | ac_fn_cxx_check_header_compile () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1894 | $as_echo_n "checking for $2... " >&6; } | |
1895 | if eval \${$3+:} false; then : | |
1896 | $as_echo_n "(cached) " >&6 | |
1897 | else | |
1898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1899 | /* end confdefs.h. */ | |
1900 | $4 | |
1901 | #include <$2> | |
1902 | _ACEOF | |
1903 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1904 | eval "$3=yes" | |
1905 | else | |
1906 | eval "$3=no" | |
1907 | fi | |
1908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1909 | fi | |
1910 | eval ac_res=\$$3 | |
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1912 | $as_echo "$ac_res" >&6; } | |
1913 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1914 | ||
1915 | } # ac_fn_cxx_check_header_compile | |
1916 | ||
1917 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES | |
1918 | # --------------------------------------------- | |
1919 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1920 | # variable VAR accordingly. | |
1921 | ac_fn_cxx_check_type () | |
1922 | { | |
1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1925 | $as_echo_n "checking for $2... " >&6; } | |
1926 | if eval \${$3+:} false; then : | |
1927 | $as_echo_n "(cached) " >&6 | |
1928 | else | |
1929 | eval "$3=no" | |
1930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1931 | /* end confdefs.h. */ | |
1932 | $4 | |
1933 | int | |
1934 | main () | |
1935 | { | |
1936 | if (sizeof ($2)) | |
1937 | return 0; | |
1938 | ; | |
1939 | return 0; | |
1940 | } | |
1941 | _ACEOF | |
1942 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1944 | /* end confdefs.h. */ | |
1945 | $4 | |
1946 | int | |
1947 | main () | |
1948 | { | |
1949 | if (sizeof (($2))) | |
1950 | return 0; | |
1951 | ; | |
1952 | return 0; | |
1953 | } | |
1954 | _ACEOF | |
1955 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1956 | ||
1957 | else | |
1958 | eval "$3=yes" | |
1959 | fi | |
1960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1961 | fi | |
1962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1963 | fi | |
1964 | eval ac_res=\$$3 | |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1966 | $as_echo "$ac_res" >&6; } | |
1967 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1968 | ||
1969 | } # ac_fn_cxx_check_type | |
1970 | ||
1971 | # ac_fn_cxx_try_link LINENO | |
1972 | # ------------------------- | |
1973 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1974 | ac_fn_cxx_try_link () | |
1975 | { | |
1976 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1977 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1978 | if { { ac_try="$ac_link" | |
1979 | case "(($ac_try" in | |
1980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1981 | *) ac_try_echo=$ac_try;; | |
1982 | esac | |
1983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1984 | $as_echo "$ac_try_echo"; } >&5 | |
1985 | (eval "$ac_link") 2>conftest.err | |
1986 | ac_status=$? | |
1987 | if test -s conftest.err; then | |
1988 | grep -v '^ *+' conftest.err >conftest.er1 | |
1989 | cat conftest.er1 >&5 | |
1990 | mv -f conftest.er1 conftest.err | |
1991 | fi | |
1992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1993 | test $ac_status = 0; } && { | |
1994 | test -z "$ac_cxx_werror_flag" || | |
1995 | test ! -s conftest.err | |
1996 | } && test -s conftest$ac_exeext && { | |
1997 | test "$cross_compiling" = yes || | |
1998 | test -x conftest$ac_exeext | |
1999 | }; then : | |
2000 | ac_retval=0 | |
2001 | else | |
2002 | $as_echo "$as_me: failed program was:" >&5 | |
2003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2004 | ||
2005 | ac_retval=1 | |
2006 | fi | |
2007 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2008 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2009 | # interfere with the next link command; also delete a directory that is | |
2010 | # left behind by Apple's compiler. We do this before executing the actions. | |
2011 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2012 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2013 | as_fn_set_status $ac_retval | |
2014 | ||
2015 | } # ac_fn_cxx_try_link | |
2016 | ||
2017 | # ac_fn_cxx_check_func LINENO FUNC VAR | |
2018 | # ------------------------------------ | |
2019 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2020 | ac_fn_cxx_check_func () | |
2021 | { | |
2022 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2024 | $as_echo_n "checking for $2... " >&6; } | |
2025 | if eval \${$3+:} false; then : | |
2026 | $as_echo_n "(cached) " >&6 | |
2027 | else | |
2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2029 | /* end confdefs.h. */ | |
2030 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2032 | #define $2 innocuous_$2 | |
2033 | ||
2034 | /* System header to define __stub macros and hopefully few prototypes, | |
2035 | which can conflict with char $2 (); below. | |
2036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2037 | <limits.h> exists even on freestanding compilers. */ | |
2038 | ||
2039 | #ifdef __STDC__ | |
2040 | # include <limits.h> | |
2041 | #else | |
2042 | # include <assert.h> | |
2043 | #endif | |
2044 | ||
2045 | #undef $2 | |
2046 | ||
2047 | /* Override any GCC internal prototype to avoid an error. | |
2048 | Use char because int might match the return type of a GCC | |
2049 | builtin and then its argument prototype would still apply. */ | |
2050 | #ifdef __cplusplus | |
2051 | extern "C" | |
2052 | #endif | |
2053 | char $2 (); | |
2054 | /* The GNU C library defines this for functions which it implements | |
2055 | to always fail with ENOSYS. Some functions are actually named | |
2056 | something starting with __ and the normal name is an alias. */ | |
2057 | #if defined __stub_$2 || defined __stub___$2 | |
2058 | choke me | |
2059 | #endif | |
2060 | ||
2061 | int | |
2062 | main () | |
2063 | { | |
2064 | return $2 (); | |
2065 | ; | |
2066 | return 0; | |
2067 | } | |
2068 | _ACEOF | |
2069 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2070 | eval "$3=yes" | |
2071 | else | |
2072 | eval "$3=no" | |
2073 | fi | |
2074 | rm -f core conftest.err conftest.$ac_objext \ | |
2075 | conftest$ac_exeext conftest.$ac_ext | |
2076 | fi | |
2077 | eval ac_res=\$$3 | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2079 | $as_echo "$ac_res" >&6; } | |
2080 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2081 | ||
2082 | } # ac_fn_cxx_check_func | |
2083 | cat >config.log <<_ACEOF | |
2084 | This file contains any messages produced by compilers while | |
2085 | running configure, to aid debugging if configure makes a mistake. | |
2086 | ||
2087 | It was created by smartmontools $as_me 6.6, which was | |
2088 | generated by GNU Autoconf 2.69. Invocation command line was | |
2089 | ||
2090 | $ $0 $@ | |
2091 | ||
2092 | _ACEOF | |
2093 | exec 5>>config.log | |
2094 | { | |
2095 | cat <<_ASUNAME | |
2096 | ## --------- ## | |
2097 | ## Platform. ## | |
2098 | ## --------- ## | |
2099 | ||
2100 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2101 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2102 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2103 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2104 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2105 | ||
2106 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2107 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2108 | ||
2109 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2110 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2111 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2112 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2113 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2114 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2115 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2116 | ||
2117 | _ASUNAME | |
2118 | ||
2119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2120 | for as_dir in $PATH | |
2121 | do | |
2122 | IFS=$as_save_IFS | |
2123 | test -z "$as_dir" && as_dir=. | |
2124 | $as_echo "PATH: $as_dir" | |
2125 | done | |
2126 | IFS=$as_save_IFS | |
2127 | ||
2128 | } >&5 | |
2129 | ||
2130 | cat >&5 <<_ACEOF | |
2131 | ||
2132 | ||
2133 | ## ----------- ## | |
2134 | ## Core tests. ## | |
2135 | ## ----------- ## | |
2136 | ||
2137 | _ACEOF | |
2138 | ||
2139 | ||
2140 | # Keep a trace of the command line. | |
2141 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2142 | # Strip out --silent because we don't want to record it for future runs. | |
2143 | # Also quote any args containing shell meta-characters. | |
2144 | # Make two passes to allow for proper duplicate-argument suppression. | |
2145 | ac_configure_args= | |
2146 | ac_configure_args0= | |
2147 | ac_configure_args1= | |
2148 | ac_must_keep_next=false | |
2149 | for ac_pass in 1 2 | |
2150 | do | |
2151 | for ac_arg | |
2152 | do | |
2153 | case $ac_arg in | |
2154 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2155 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2156 | | -silent | --silent | --silen | --sile | --sil) | |
2157 | continue ;; | |
2158 | *\'*) | |
2159 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2160 | esac | |
2161 | case $ac_pass in | |
2162 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2163 | 2) | |
2164 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2165 | if test $ac_must_keep_next = true; then | |
2166 | ac_must_keep_next=false # Got value, back to normal. | |
2167 | else | |
2168 | case $ac_arg in | |
2169 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2170 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2171 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2172 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2173 | case "$ac_configure_args0 " in | |
2174 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2175 | esac | |
2176 | ;; | |
2177 | -* ) ac_must_keep_next=true ;; | |
2178 | esac | |
2179 | fi | |
2180 | as_fn_append ac_configure_args " '$ac_arg'" | |
2181 | ;; | |
2182 | esac | |
2183 | done | |
2184 | done | |
2185 | { ac_configure_args0=; unset ac_configure_args0;} | |
2186 | { ac_configure_args1=; unset ac_configure_args1;} | |
2187 | ||
2188 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2189 | # config.log. We remove comments because anyway the quotes in there | |
2190 | # would cause problems or look ugly. | |
2191 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2192 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2193 | trap 'exit_status=$? | |
2194 | # Save into config.log some information that might help in debugging. | |
2195 | { | |
2196 | echo | |
2197 | ||
2198 | $as_echo "## ---------------- ## | |
2199 | ## Cache variables. ## | |
2200 | ## ---------------- ##" | |
2201 | echo | |
2202 | # The following way of writing the cache mishandles newlines in values, | |
2203 | ( | |
2204 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2205 | eval ac_val=\$$ac_var | |
2206 | case $ac_val in #( | |
2207 | *${as_nl}*) | |
2208 | case $ac_var in #( | |
2209 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2210 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2211 | esac | |
2212 | case $ac_var in #( | |
2213 | _ | IFS | as_nl) ;; #( | |
2214 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2215 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2216 | esac ;; | |
2217 | esac | |
2218 | done | |
2219 | (set) 2>&1 | | |
2220 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2221 | *${as_nl}ac_space=\ *) | |
2222 | sed -n \ | |
2223 | "s/'\''/'\''\\\\'\'''\''/g; | |
2224 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2225 | ;; #( | |
2226 | *) | |
2227 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2228 | ;; | |
2229 | esac | | |
2230 | sort | |
2231 | ) | |
2232 | echo | |
2233 | ||
2234 | $as_echo "## ----------------- ## | |
2235 | ## Output variables. ## | |
2236 | ## ----------------- ##" | |
2237 | echo | |
2238 | for ac_var in $ac_subst_vars | |
2239 | do | |
2240 | eval ac_val=\$$ac_var | |
2241 | case $ac_val in | |
2242 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2243 | esac | |
2244 | $as_echo "$ac_var='\''$ac_val'\''" | |
2245 | done | sort | |
2246 | echo | |
2247 | ||
2248 | if test -n "$ac_subst_files"; then | |
2249 | $as_echo "## ------------------- ## | |
2250 | ## File substitutions. ## | |
2251 | ## ------------------- ##" | |
2252 | echo | |
2253 | for ac_var in $ac_subst_files | |
2254 | do | |
2255 | eval ac_val=\$$ac_var | |
2256 | case $ac_val in | |
2257 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2258 | esac | |
2259 | $as_echo "$ac_var='\''$ac_val'\''" | |
2260 | done | sort | |
2261 | echo | |
2262 | fi | |
2263 | ||
2264 | if test -s confdefs.h; then | |
2265 | $as_echo "## ----------- ## | |
2266 | ## confdefs.h. ## | |
2267 | ## ----------- ##" | |
2268 | echo | |
2269 | cat confdefs.h | |
2270 | echo | |
2271 | fi | |
2272 | test "$ac_signal" != 0 && | |
2273 | $as_echo "$as_me: caught signal $ac_signal" | |
2274 | $as_echo "$as_me: exit $exit_status" | |
2275 | } >&5 | |
2276 | rm -f core *.core core.conftest.* && | |
2277 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2278 | exit $exit_status | |
2279 | ' 0 | |
2280 | for ac_signal in 1 2 13 15; do | |
2281 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2282 | done | |
2283 | ac_signal=0 | |
2284 | ||
2285 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2286 | rm -f -r conftest* confdefs.h | |
2287 | ||
2288 | $as_echo "/* confdefs.h */" > confdefs.h | |
2289 | ||
2290 | # Predefined preprocessor variables. | |
2291 | ||
2292 | cat >>confdefs.h <<_ACEOF | |
2293 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2294 | _ACEOF | |
2295 | ||
2296 | cat >>confdefs.h <<_ACEOF | |
2297 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2298 | _ACEOF | |
2299 | ||
2300 | cat >>confdefs.h <<_ACEOF | |
2301 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2302 | _ACEOF | |
2303 | ||
2304 | cat >>confdefs.h <<_ACEOF | |
2305 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2306 | _ACEOF | |
2307 | ||
2308 | cat >>confdefs.h <<_ACEOF | |
2309 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2310 | _ACEOF | |
2311 | ||
2312 | cat >>confdefs.h <<_ACEOF | |
2313 | #define PACKAGE_URL "$PACKAGE_URL" | |
2314 | _ACEOF | |
2315 | ||
2316 | ||
2317 | # Let the site file select an alternate cache file if it wants to. | |
2318 | # Prefer an explicitly selected file to automatically selected ones. | |
2319 | ac_site_file1=NONE | |
2320 | ac_site_file2=NONE | |
2321 | if test -n "$CONFIG_SITE"; then | |
2322 | # We do not want a PATH search for config.site. | |
2323 | case $CONFIG_SITE in #(( | |
2324 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2325 | */*) ac_site_file1=$CONFIG_SITE;; | |
2326 | *) ac_site_file1=./$CONFIG_SITE;; | |
2327 | esac | |
2328 | elif test "x$prefix" != xNONE; then | |
2329 | ac_site_file1=$prefix/share/config.site | |
2330 | ac_site_file2=$prefix/etc/config.site | |
2331 | else | |
2332 | ac_site_file1=$ac_default_prefix/share/config.site | |
2333 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2334 | fi | |
2335 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2336 | do | |
2337 | test "x$ac_site_file" = xNONE && continue | |
2338 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2340 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2341 | sed 's/^/| /' "$ac_site_file" >&5 | |
2342 | . "$ac_site_file" \ | |
2343 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2344 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2345 | as_fn_error $? "failed to load site script $ac_site_file | |
2346 | See \`config.log' for more details" "$LINENO" 5; } | |
2347 | fi | |
2348 | done | |
2349 | ||
2350 | if test -r "$cache_file"; then | |
2351 | # Some versions of bash will fail to source /dev/null (special files | |
2352 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2353 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2355 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2356 | case $cache_file in | |
2357 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2358 | *) . "./$cache_file";; | |
2359 | esac | |
2360 | fi | |
2361 | else | |
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2363 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2364 | >$cache_file | |
2365 | fi | |
2366 | ||
2367 | # Check that the precious variables saved in the cache have kept the same | |
2368 | # value. | |
2369 | ac_cache_corrupted=false | |
2370 | for ac_var in $ac_precious_vars; do | |
2371 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2372 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2373 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2374 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2375 | case $ac_old_set,$ac_new_set in | |
2376 | set,) | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2378 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2379 | ac_cache_corrupted=: ;; | |
2380 | ,set) | |
2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2382 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2383 | ac_cache_corrupted=: ;; | |
2384 | ,);; | |
2385 | *) | |
2386 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2387 | # differences in whitespace do not lead to failure. | |
2388 | ac_old_val_w=`echo x $ac_old_val` | |
2389 | ac_new_val_w=`echo x $ac_new_val` | |
2390 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2392 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2393 | ac_cache_corrupted=: | |
2394 | else | |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2396 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2397 | eval $ac_var=\$ac_old_val | |
2398 | fi | |
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2400 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2402 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2403 | fi;; | |
2404 | esac | |
2405 | # Pass precious variables to config.status. | |
2406 | if test "$ac_new_set" = set; then | |
2407 | case $ac_new_val in | |
2408 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2409 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2410 | esac | |
2411 | case " $ac_configure_args " in | |
2412 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2413 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2414 | esac | |
2415 | fi | |
2416 | done | |
2417 | if $ac_cache_corrupted; then | |
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2421 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2422 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2423 | fi | |
2424 | ## -------------------- ## | |
2425 | ## Main body of script. ## | |
2426 | ## -------------------- ## | |
2427 | ||
2428 | ac_ext=c | |
2429 | ac_cpp='$CPP $CPPFLAGS' | |
2430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2433 | ||
2434 | ||
2435 | am__api_version='1.15' | |
2436 | ||
2437 | ac_aux_dir= | |
2438 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2439 | if test -f "$ac_dir/install-sh"; then | |
2440 | ac_aux_dir=$ac_dir | |
2441 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2442 | break | |
2443 | elif test -f "$ac_dir/install.sh"; then | |
2444 | ac_aux_dir=$ac_dir | |
2445 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2446 | break | |
2447 | elif test -f "$ac_dir/shtool"; then | |
2448 | ac_aux_dir=$ac_dir | |
2449 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2450 | break | |
2451 | fi | |
2452 | done | |
2453 | if test -z "$ac_aux_dir"; then | |
2454 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2455 | fi | |
2456 | ||
2457 | # These three variables are undocumented and unsupported, | |
2458 | # and are intended to be withdrawn in a future Autoconf release. | |
2459 | # They can cause serious problems if a builder's source tree is in a directory | |
2460 | # whose full name contains unusual characters. | |
2461 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2462 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2463 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2464 | ||
2465 | ||
2466 | # Find a good install program. We prefer a C program (faster), | |
2467 | # so one script is as good as another. But avoid the broken or | |
2468 | # incompatible versions: | |
2469 | # SysV /etc/install, /usr/sbin/install | |
2470 | # SunOS /usr/etc/install | |
2471 | # IRIX /sbin/install | |
2472 | # AIX /bin/install | |
2473 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2474 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2475 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2476 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2477 | # OS/2's system install, which has a completely different semantic | |
2478 | # ./install, which can be erroneously created by make from ./install.sh. | |
2479 | # Reject install programs that cannot install multiple files. | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2481 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2482 | if test -z "$INSTALL"; then | |
2483 | if ${ac_cv_path_install+:} false; then : | |
2484 | $as_echo_n "(cached) " >&6 | |
2485 | else | |
2486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2487 | for as_dir in $PATH | |
2488 | do | |
2489 | IFS=$as_save_IFS | |
2490 | test -z "$as_dir" && as_dir=. | |
2491 | # Account for people who put trailing slashes in PATH elements. | |
2492 | case $as_dir/ in #(( | |
2493 | ./ | .// | /[cC]/* | \ | |
2494 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2495 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2496 | /usr/ucb/* ) ;; | |
2497 | *) | |
2498 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2499 | # Don't use installbsd from OSF since it installs stuff as root | |
2500 | # by default. | |
2501 | for ac_prog in ginstall scoinst install; do | |
2502 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2503 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2504 | if test $ac_prog = install && | |
2505 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2506 | # AIX install. It has an incompatible calling convention. | |
2507 | : | |
2508 | elif test $ac_prog = install && | |
2509 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2510 | # program-specific install script used by HP pwplus--don't use. | |
2511 | : | |
2512 | else | |
2513 | rm -rf conftest.one conftest.two conftest.dir | |
2514 | echo one > conftest.one | |
2515 | echo two > conftest.two | |
2516 | mkdir conftest.dir | |
2517 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2518 | test -s conftest.one && test -s conftest.two && | |
2519 | test -s conftest.dir/conftest.one && | |
2520 | test -s conftest.dir/conftest.two | |
2521 | then | |
2522 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2523 | break 3 | |
2524 | fi | |
2525 | fi | |
2526 | fi | |
2527 | done | |
2528 | done | |
2529 | ;; | |
2530 | esac | |
2531 | ||
2532 | done | |
2533 | IFS=$as_save_IFS | |
2534 | ||
2535 | rm -rf conftest.one conftest.two conftest.dir | |
2536 | ||
2537 | fi | |
2538 | if test "${ac_cv_path_install+set}" = set; then | |
2539 | INSTALL=$ac_cv_path_install | |
2540 | else | |
2541 | # As a last resort, use the slow shell script. Don't cache a | |
2542 | # value for INSTALL within a source directory, because that will | |
2543 | # break other packages using the cache if that directory is | |
2544 | # removed, or if the value is a relative name. | |
2545 | INSTALL=$ac_install_sh | |
2546 | fi | |
2547 | fi | |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2549 | $as_echo "$INSTALL" >&6; } | |
2550 | ||
2551 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2552 | # It thinks the first close brace ends the variable substitution. | |
2553 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2554 | ||
2555 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2556 | ||
2557 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2558 | ||
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2560 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2561 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2562 | # name. Accept space and tab only in the latter. | |
2563 | am_lf=' | |
2564 | ' | |
2565 | case `pwd` in | |
2566 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2567 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2568 | esac | |
2569 | case $srcdir in | |
2570 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2571 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2572 | esac | |
2573 | ||
2574 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2575 | # arguments. Must try -L first in case configure is actually a | |
2576 | # symlink; some systems play weird games with the mod time of symlinks | |
2577 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2578 | # directory). | |
2579 | if ( | |
2580 | am_has_slept=no | |
2581 | for am_try in 1 2; do | |
2582 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2583 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2584 | if test "$*" = "X"; then | |
2585 | # -L didn't work. | |
2586 | set X `ls -t "$srcdir/configure" conftest.file` | |
2587 | fi | |
2588 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2589 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2590 | ||
2591 | # If neither matched, then we have a broken ls. This can happen | |
2592 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2593 | # broken ls alias from the environment. This has actually | |
2594 | # happened. Such a system could not be considered "sane". | |
2595 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2596 | alias in your environment" "$LINENO" 5 | |
2597 | fi | |
2598 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2599 | break | |
2600 | fi | |
2601 | # Just in case. | |
2602 | sleep 1 | |
2603 | am_has_slept=yes | |
2604 | done | |
2605 | test "$2" = conftest.file | |
2606 | ) | |
2607 | then | |
2608 | # Ok. | |
2609 | : | |
2610 | else | |
2611 | as_fn_error $? "newly created file is older than distributed files! | |
2612 | Check your system clock" "$LINENO" 5 | |
2613 | fi | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2615 | $as_echo "yes" >&6; } | |
2616 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2617 | # generated files are strictly newer. | |
2618 | am_sleep_pid= | |
2619 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2620 | ( sleep 1 ) & | |
2621 | am_sleep_pid=$! | |
2622 | fi | |
2623 | ||
2624 | rm -f conftest.file | |
2625 | ||
2626 | test "$program_prefix" != NONE && | |
2627 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2628 | # Use a double $ so make ignores it. | |
2629 | test "$program_suffix" != NONE && | |
2630 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2631 | # Double any \ or $. | |
2632 | # By default was `s,x,x', remove it if useless. | |
2633 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2634 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2635 | ||
2636 | # Expand $ac_aux_dir to an absolute path. | |
2637 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2638 | ||
2639 | if test x"${MISSING+set}" != xset; then | |
2640 | case $am_aux_dir in | |
2641 | *\ * | *\ *) | |
2642 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2643 | *) | |
2644 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2645 | esac | |
2646 | fi | |
2647 | # Use eval to expand $SHELL | |
2648 | if eval "$MISSING --is-lightweight"; then | |
2649 | am_missing_run="$MISSING " | |
2650 | else | |
2651 | am_missing_run= | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2653 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2654 | fi | |
2655 | ||
2656 | if test x"${install_sh+set}" != xset; then | |
2657 | case $am_aux_dir in | |
2658 | *\ * | *\ *) | |
2659 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2660 | *) | |
2661 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2662 | esac | |
2663 | fi | |
2664 | ||
2665 | # Installed binaries are usually stripped using 'strip' when the user | |
2666 | # run "make install-strip". However 'strip' might not be the right | |
2667 | # tool to use in cross-compilation environments, therefore Automake | |
2668 | # will honor the 'STRIP' environment variable to overrule this program. | |
2669 | if test "$cross_compiling" != no; then | |
2670 | if test -n "$ac_tool_prefix"; then | |
2671 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2672 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2674 | $as_echo_n "checking for $ac_word... " >&6; } | |
2675 | if ${ac_cv_prog_STRIP+:} false; then : | |
2676 | $as_echo_n "(cached) " >&6 | |
2677 | else | |
2678 | if test -n "$STRIP"; then | |
2679 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2680 | else | |
2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2682 | for as_dir in $PATH | |
2683 | do | |
2684 | IFS=$as_save_IFS | |
2685 | test -z "$as_dir" && as_dir=. | |
2686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2688 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2690 | break 2 | |
2691 | fi | |
2692 | done | |
2693 | done | |
2694 | IFS=$as_save_IFS | |
2695 | ||
2696 | fi | |
2697 | fi | |
2698 | STRIP=$ac_cv_prog_STRIP | |
2699 | if test -n "$STRIP"; then | |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2701 | $as_echo "$STRIP" >&6; } | |
2702 | else | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2704 | $as_echo "no" >&6; } | |
2705 | fi | |
2706 | ||
2707 | ||
2708 | fi | |
2709 | if test -z "$ac_cv_prog_STRIP"; then | |
2710 | ac_ct_STRIP=$STRIP | |
2711 | # Extract the first word of "strip", so it can be a program name with args. | |
2712 | set dummy strip; ac_word=$2 | |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2714 | $as_echo_n "checking for $ac_word... " >&6; } | |
2715 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2716 | $as_echo_n "(cached) " >&6 | |
2717 | else | |
2718 | if test -n "$ac_ct_STRIP"; then | |
2719 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2720 | else | |
2721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2722 | for as_dir in $PATH | |
2723 | do | |
2724 | IFS=$as_save_IFS | |
2725 | test -z "$as_dir" && as_dir=. | |
2726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2727 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2728 | ac_cv_prog_ac_ct_STRIP="strip" | |
2729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2730 | break 2 | |
2731 | fi | |
2732 | done | |
2733 | done | |
2734 | IFS=$as_save_IFS | |
2735 | ||
2736 | fi | |
2737 | fi | |
2738 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2739 | if test -n "$ac_ct_STRIP"; then | |
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2741 | $as_echo "$ac_ct_STRIP" >&6; } | |
2742 | else | |
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2744 | $as_echo "no" >&6; } | |
2745 | fi | |
2746 | ||
2747 | if test "x$ac_ct_STRIP" = x; then | |
2748 | STRIP=":" | |
2749 | else | |
2750 | case $cross_compiling:$ac_tool_warned in | |
2751 | yes:) | |
2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2754 | ac_tool_warned=yes ;; | |
2755 | esac | |
2756 | STRIP=$ac_ct_STRIP | |
2757 | fi | |
2758 | else | |
2759 | STRIP="$ac_cv_prog_STRIP" | |
2760 | fi | |
2761 | ||
2762 | fi | |
2763 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2764 | ||
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2766 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2767 | if test -z "$MKDIR_P"; then | |
2768 | if ${ac_cv_path_mkdir+:} false; then : | |
2769 | $as_echo_n "(cached) " >&6 | |
2770 | else | |
2771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2772 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2773 | do | |
2774 | IFS=$as_save_IFS | |
2775 | test -z "$as_dir" && as_dir=. | |
2776 | for ac_prog in mkdir gmkdir; do | |
2777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2778 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2779 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2780 | 'mkdir (GNU coreutils) '* | \ | |
2781 | 'mkdir (coreutils) '* | \ | |
2782 | 'mkdir (fileutils) '4.1*) | |
2783 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2784 | break 3;; | |
2785 | esac | |
2786 | done | |
2787 | done | |
2788 | done | |
2789 | IFS=$as_save_IFS | |
2790 | ||
2791 | fi | |
2792 | ||
2793 | test -d ./--version && rmdir ./--version | |
2794 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2795 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2796 | else | |
2797 | # As a last resort, use the slow shell script. Don't cache a | |
2798 | # value for MKDIR_P within a source directory, because that will | |
2799 | # break other packages using the cache if that directory is | |
2800 | # removed, or if the value is a relative name. | |
2801 | MKDIR_P="$ac_install_sh -d" | |
2802 | fi | |
2803 | fi | |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2805 | $as_echo "$MKDIR_P" >&6; } | |
2806 | ||
2807 | for ac_prog in gawk mawk nawk awk | |
2808 | do | |
2809 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2810 | set dummy $ac_prog; ac_word=$2 | |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2812 | $as_echo_n "checking for $ac_word... " >&6; } | |
2813 | if ${ac_cv_prog_AWK+:} false; then : | |
2814 | $as_echo_n "(cached) " >&6 | |
2815 | else | |
2816 | if test -n "$AWK"; then | |
2817 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2818 | else | |
2819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2820 | for as_dir in $PATH | |
2821 | do | |
2822 | IFS=$as_save_IFS | |
2823 | test -z "$as_dir" && as_dir=. | |
2824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2825 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2826 | ac_cv_prog_AWK="$ac_prog" | |
2827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2828 | break 2 | |
2829 | fi | |
2830 | done | |
2831 | done | |
2832 | IFS=$as_save_IFS | |
2833 | ||
2834 | fi | |
2835 | fi | |
2836 | AWK=$ac_cv_prog_AWK | |
2837 | if test -n "$AWK"; then | |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2839 | $as_echo "$AWK" >&6; } | |
2840 | else | |
2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2842 | $as_echo "no" >&6; } | |
2843 | fi | |
2844 | ||
2845 | ||
2846 | test -n "$AWK" && break | |
2847 | done | |
2848 | ||
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2850 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2851 | set x ${MAKE-make} | |
2852 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2853 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2854 | $as_echo_n "(cached) " >&6 | |
2855 | else | |
2856 | cat >conftest.make <<\_ACEOF | |
2857 | SHELL = /bin/sh | |
2858 | all: | |
2859 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2860 | _ACEOF | |
2861 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2862 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2863 | *@@@%%%=?*=@@@%%%*) | |
2864 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2865 | *) | |
2866 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2867 | esac | |
2868 | rm -f conftest.make | |
2869 | fi | |
2870 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2872 | $as_echo "yes" >&6; } | |
2873 | SET_MAKE= | |
2874 | else | |
2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2876 | $as_echo "no" >&6; } | |
2877 | SET_MAKE="MAKE=${MAKE-make}" | |
2878 | fi | |
2879 | ||
2880 | rm -rf .tst 2>/dev/null | |
2881 | mkdir .tst 2>/dev/null | |
2882 | if test -d .tst; then | |
2883 | am__leading_dot=. | |
2884 | else | |
2885 | am__leading_dot=_ | |
2886 | fi | |
2887 | rmdir .tst 2>/dev/null | |
2888 | ||
2889 | # Check whether --enable-silent-rules was given. | |
2890 | if test "${enable_silent_rules+set}" = set; then : | |
2891 | enableval=$enable_silent_rules; | |
2892 | fi | |
2893 | ||
2894 | case $enable_silent_rules in # ((( | |
2895 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2896 | no) AM_DEFAULT_VERBOSITY=1;; | |
2897 | *) AM_DEFAULT_VERBOSITY=1;; | |
2898 | esac | |
2899 | am_make=${MAKE-make} | |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2901 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2902 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2903 | $as_echo_n "(cached) " >&6 | |
2904 | else | |
2905 | if $as_echo 'TRUE=$(BAR$(V)) | |
2906 | BAR0=false | |
2907 | BAR1=true | |
2908 | V=1 | |
2909 | am__doit: | |
2910 | @$(TRUE) | |
2911 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2912 | am_cv_make_support_nested_variables=yes | |
2913 | else | |
2914 | am_cv_make_support_nested_variables=no | |
2915 | fi | |
2916 | fi | |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2918 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2919 | if test $am_cv_make_support_nested_variables = yes; then | |
2920 | AM_V='$(V)' | |
2921 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2922 | else | |
2923 | AM_V=$AM_DEFAULT_VERBOSITY | |
2924 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2925 | fi | |
2926 | AM_BACKSLASH='\' | |
2927 | ||
2928 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2929 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2930 | # is not polluted with repeated "-I." | |
2931 | am__isrc=' -I$(srcdir)' | |
2932 | # test to see if srcdir already configured | |
2933 | if test -f $srcdir/config.status; then | |
2934 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2935 | fi | |
2936 | fi | |
2937 | ||
2938 | # test whether we have cygpath | |
2939 | if test -z "$CYGPATH_W"; then | |
2940 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2941 | CYGPATH_W='cygpath -w' | |
2942 | else | |
2943 | CYGPATH_W=echo | |
2944 | fi | |
2945 | fi | |
2946 | ||
2947 | ||
2948 | # Define the identity of the package. | |
2949 | PACKAGE='smartmontools' | |
2950 | VERSION='6.6' | |
2951 | ||
2952 | ||
2953 | cat >>confdefs.h <<_ACEOF | |
2954 | #define PACKAGE "$PACKAGE" | |
2955 | _ACEOF | |
2956 | ||
2957 | ||
2958 | cat >>confdefs.h <<_ACEOF | |
2959 | #define VERSION "$VERSION" | |
2960 | _ACEOF | |
2961 | ||
2962 | # Some tools Automake needs. | |
2963 | ||
2964 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2965 | ||
2966 | ||
2967 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2968 | ||
2969 | ||
2970 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2971 | ||
2972 | ||
2973 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2974 | ||
2975 | ||
2976 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2977 | ||
2978 | # For better backward compatibility. To be removed once Automake 1.9.x | |
2979 | # dies out for good. For more background, see: | |
2980 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2981 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2982 | mkdir_p='$(MKDIR_P)' | |
2983 | ||
2984 | # We need awk for the "check" target (and possibly the TAP driver). The | |
2985 | # system "awk" is bad on some platforms. | |
2986 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
2987 | # in the wild :-( We should find a proper way to deprecate it ... | |
2988 | AMTAR='$${TAR-tar}' | |
2989 | ||
2990 | ||
2991 | # We'll loop over all known methods to create a tar archive until one works. | |
2992 | _am_tools='gnutar pax cpio none' | |
2993 | ||
2994 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
2995 | ||
2996 | ||
2997 | ||
2998 | ||
2999 | ||
3000 | ||
3001 | # POSIX will say in a future version that running "rm -f" with no argument | |
3002 | # is OK; and we want to be able to make that assumption in our Makefile | |
3003 | # recipes. So use an aggressive probe to check that the usage we want is | |
3004 | # actually supported "in the wild" to an acceptable degree. | |
3005 | # See automake bug#10828. | |
3006 | # To make any issue more visible, cause the running configure to be aborted | |
3007 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3008 | # user can still override this though. | |
3009 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3010 | cat >&2 <<'END' | |
3011 | Oops! | |
3012 | ||
3013 | Your 'rm' program seems unable to run without file operands specified | |
3014 | on the command line, even when the '-f' option is present. This is contrary | |
3015 | to the behaviour of most rm programs out there, and not conforming with | |
3016 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3017 | ||
3018 | Please tell bug-automake@gnu.org about your system, including the value | |
3019 | of your $PATH and any error possibly output before this message. This | |
3020 | can help us improve future automake versions. | |
3021 | ||
3022 | END | |
3023 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3024 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3025 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3026 | echo >&2 | |
3027 | else | |
3028 | cat >&2 <<'END' | |
3029 | Aborting the configuration process, to ensure you take notice of the issue. | |
3030 | ||
3031 | You can download and install GNU coreutils to get an 'rm' implementation | |
3032 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3033 | ||
3034 | If you want to complete the configuration process using your problematic | |
3035 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3036 | to "yes", and re-run configure. | |
3037 | ||
3038 | END | |
3039 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3040 | fi | |
3041 | fi | |
3042 | ||
3043 | ||
3044 | smartmontools_cvs_tag=`echo '$Id: configure.ac 4594 2017-11-05 15:21:35Z chrfranke $'` | |
3045 | smartmontools_release_date=2017-11-05 | |
3046 | smartmontools_release_time="15:20:58 UTC" | |
3047 | ||
3048 | ||
3049 | cat >>confdefs.h <<_ACEOF | |
3050 | #define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args" | |
3051 | _ACEOF | |
3052 | ||
3053 | ||
3054 | cat >>confdefs.h <<_ACEOF | |
3055 | #define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date" | |
3056 | _ACEOF | |
3057 | ||
3058 | ||
3059 | cat >>confdefs.h <<_ACEOF | |
3060 | #define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time" | |
3061 | _ACEOF | |
3062 | ||
3063 | ||
3064 | cat >>confdefs.h <<_ACEOF | |
3065 | #define CONFIG_H_CVSID "$smartmontools_cvs_tag" | |
3066 | _ACEOF | |
3067 | ||
3068 | ||
3069 | cat >>confdefs.h <<_ACEOF | |
3070 | #define PACKAGE_HOMEPAGE "http://www.smartmontools.org/" | |
3071 | _ACEOF | |
3072 | ||
3073 | ||
3074 | ||
3075 | ac_config_headers="$ac_config_headers config.h" | |
3076 | ||
3077 | ||
3078 | ||
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3080 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3081 | # Check whether --enable-maintainer-mode was given. | |
3082 | if test "${enable_maintainer_mode+set}" = set; then : | |
3083 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3084 | else | |
3085 | USE_MAINTAINER_MODE=no | |
3086 | fi | |
3087 | ||
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3089 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3090 | if test $USE_MAINTAINER_MODE = yes; then | |
3091 | MAINTAINER_MODE_TRUE= | |
3092 | MAINTAINER_MODE_FALSE='#' | |
3093 | else | |
3094 | MAINTAINER_MODE_TRUE='#' | |
3095 | MAINTAINER_MODE_FALSE= | |
3096 | fi | |
3097 | ||
3098 | MAINT=$MAINTAINER_MODE_TRUE | |
3099 | ||
3100 | ||
3101 | ||
3102 | ac_ext=cpp | |
3103 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3104 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3105 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3106 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3107 | ||
3108 | ac_ext=cpp | |
3109 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3113 | if test -z "$CXX"; then | |
3114 | if test -n "$CCC"; then | |
3115 | CXX=$CCC | |
3116 | else | |
3117 | if test -n "$ac_tool_prefix"; then | |
3118 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3119 | do | |
3120 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3121 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3123 | $as_echo_n "checking for $ac_word... " >&6; } | |
3124 | if ${ac_cv_prog_CXX+:} false; then : | |
3125 | $as_echo_n "(cached) " >&6 | |
3126 | else | |
3127 | if test -n "$CXX"; then | |
3128 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3129 | else | |
3130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3131 | for as_dir in $PATH | |
3132 | do | |
3133 | IFS=$as_save_IFS | |
3134 | test -z "$as_dir" && as_dir=. | |
3135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3137 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3139 | break 2 | |
3140 | fi | |
3141 | done | |
3142 | done | |
3143 | IFS=$as_save_IFS | |
3144 | ||
3145 | fi | |
3146 | fi | |
3147 | CXX=$ac_cv_prog_CXX | |
3148 | if test -n "$CXX"; then | |
3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3150 | $as_echo "$CXX" >&6; } | |
3151 | else | |
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3153 | $as_echo "no" >&6; } | |
3154 | fi | |
3155 | ||
3156 | ||
3157 | test -n "$CXX" && break | |
3158 | done | |
3159 | fi | |
3160 | if test -z "$CXX"; then | |
3161 | ac_ct_CXX=$CXX | |
3162 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3163 | do | |
3164 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3165 | set dummy $ac_prog; ac_word=$2 | |
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3167 | $as_echo_n "checking for $ac_word... " >&6; } | |
3168 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3169 | $as_echo_n "(cached) " >&6 | |
3170 | else | |
3171 | if test -n "$ac_ct_CXX"; then | |
3172 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3173 | else | |
3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3175 | for as_dir in $PATH | |
3176 | do | |
3177 | IFS=$as_save_IFS | |
3178 | test -z "$as_dir" && as_dir=. | |
3179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3181 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3183 | break 2 | |
3184 | fi | |
3185 | done | |
3186 | done | |
3187 | IFS=$as_save_IFS | |
3188 | ||
3189 | fi | |
3190 | fi | |
3191 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3192 | if test -n "$ac_ct_CXX"; then | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3194 | $as_echo "$ac_ct_CXX" >&6; } | |
3195 | else | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3197 | $as_echo "no" >&6; } | |
3198 | fi | |
3199 | ||
3200 | ||
3201 | test -n "$ac_ct_CXX" && break | |
3202 | done | |
3203 | ||
3204 | if test "x$ac_ct_CXX" = x; then | |
3205 | CXX="g++" | |
3206 | else | |
3207 | case $cross_compiling:$ac_tool_warned in | |
3208 | yes:) | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3210 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3211 | ac_tool_warned=yes ;; | |
3212 | esac | |
3213 | CXX=$ac_ct_CXX | |
3214 | fi | |
3215 | fi | |
3216 | ||
3217 | fi | |
3218 | fi | |
3219 | # Provide some information about the compiler. | |
3220 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3221 | set X $ac_compile | |
3222 | ac_compiler=$2 | |
3223 | for ac_option in --version -v -V -qversion; do | |
3224 | { { ac_try="$ac_compiler $ac_option >&5" | |
3225 | case "(($ac_try" in | |
3226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3227 | *) ac_try_echo=$ac_try;; | |
3228 | esac | |
3229 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3230 | $as_echo "$ac_try_echo"; } >&5 | |
3231 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3232 | ac_status=$? | |
3233 | if test -s conftest.err; then | |
3234 | sed '10a\ | |
3235 | ... rest of stderr output deleted ... | |
3236 | 10q' conftest.err >conftest.er1 | |
3237 | cat conftest.er1 >&5 | |
3238 | fi | |
3239 | rm -f conftest.er1 conftest.err | |
3240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3241 | test $ac_status = 0; } | |
3242 | done | |
3243 | ||
3244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3245 | /* end confdefs.h. */ | |
3246 | ||
3247 | int | |
3248 | main () | |
3249 | { | |
3250 | ||
3251 | ; | |
3252 | return 0; | |
3253 | } | |
3254 | _ACEOF | |
3255 | ac_clean_files_save=$ac_clean_files | |
3256 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3257 | # Try to create an executable without -o first, disregard a.out. | |
3258 | # It will help us diagnose broken compilers, and finding out an intuition | |
3259 | # of exeext. | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 | |
3261 | $as_echo_n "checking whether the C++ compiler works... " >&6; } | |
3262 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3263 | ||
3264 | # The possible output files: | |
3265 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3266 | ||
3267 | ac_rmfiles= | |
3268 | for ac_file in $ac_files | |
3269 | do | |
3270 | case $ac_file in | |
3271 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3272 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3273 | esac | |
3274 | done | |
3275 | rm -f $ac_rmfiles | |
3276 | ||
3277 | if { { ac_try="$ac_link_default" | |
3278 | case "(($ac_try" in | |
3279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3280 | *) ac_try_echo=$ac_try;; | |
3281 | esac | |
3282 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3283 | $as_echo "$ac_try_echo"; } >&5 | |
3284 | (eval "$ac_link_default") 2>&5 | |
3285 | ac_status=$? | |
3286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3287 | test $ac_status = 0; }; then : | |
3288 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3289 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3290 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3291 | # so that the user can short-circuit this test for compilers unknown to | |
3292 | # Autoconf. | |
3293 | for ac_file in $ac_files '' | |
3294 | do | |
3295 | test -f "$ac_file" || continue | |
3296 | case $ac_file in | |
3297 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3298 | ;; | |
3299 | [ab].out ) | |
3300 | # We found the default executable, but exeext='' is most | |
3301 | # certainly right. | |
3302 | break;; | |
3303 | *.* ) | |
3304 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3305 | then :; else | |
3306 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3307 | fi | |
3308 | # We set ac_cv_exeext here because the later test for it is not | |
3309 | # safe: cross compilers may not add the suffix if given an `-o' | |
3310 | # argument, so we may need to know it at that point already. | |
3311 | # Even if this section looks crufty: it has the advantage of | |
3312 | # actually working. | |
3313 | break;; | |
3314 | * ) | |
3315 | break;; | |
3316 | esac | |
3317 | done | |
3318 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3319 | ||
3320 | else | |
3321 | ac_file='' | |
3322 | fi | |
3323 | if test -z "$ac_file"; then : | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3325 | $as_echo "no" >&6; } | |
3326 | $as_echo "$as_me: failed program was:" >&5 | |
3327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3328 | ||
3329 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3330 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3331 | as_fn_error 77 "C++ compiler cannot create executables | |
3332 | See \`config.log' for more details" "$LINENO" 5; } | |
3333 | else | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3335 | $as_echo "yes" >&6; } | |
3336 | fi | |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 | |
3338 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } | |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3340 | $as_echo "$ac_file" >&6; } | |
3341 | ac_exeext=$ac_cv_exeext | |
3342 | ||
3343 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3344 | ac_clean_files=$ac_clean_files_save | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3346 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3347 | if { { ac_try="$ac_link" | |
3348 | case "(($ac_try" in | |
3349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3350 | *) ac_try_echo=$ac_try;; | |
3351 | esac | |
3352 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3353 | $as_echo "$ac_try_echo"; } >&5 | |
3354 | (eval "$ac_link") 2>&5 | |
3355 | ac_status=$? | |
3356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3357 | test $ac_status = 0; }; then : | |
3358 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3359 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3360 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3361 | # `rm'. | |
3362 | for ac_file in conftest.exe conftest conftest.*; do | |
3363 | test -f "$ac_file" || continue | |
3364 | case $ac_file in | |
3365 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3366 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3367 | break;; | |
3368 | * ) break;; | |
3369 | esac | |
3370 | done | |
3371 | else | |
3372 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3373 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3374 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3375 | See \`config.log' for more details" "$LINENO" 5; } | |
3376 | fi | |
3377 | rm -f conftest conftest$ac_cv_exeext | |
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3379 | $as_echo "$ac_cv_exeext" >&6; } | |
3380 | ||
3381 | rm -f conftest.$ac_ext | |
3382 | EXEEXT=$ac_cv_exeext | |
3383 | ac_exeext=$EXEEXT | |
3384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3385 | /* end confdefs.h. */ | |
3386 | #include <stdio.h> | |
3387 | int | |
3388 | main () | |
3389 | { | |
3390 | FILE *f = fopen ("conftest.out", "w"); | |
3391 | return ferror (f) || fclose (f) != 0; | |
3392 | ||
3393 | ; | |
3394 | return 0; | |
3395 | } | |
3396 | _ACEOF | |
3397 | ac_clean_files="$ac_clean_files conftest.out" | |
3398 | # Check that the compiler produces executables we can run. If not, either | |
3399 | # the compiler is broken, or we cross compile. | |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3401 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3402 | if test "$cross_compiling" != yes; then | |
3403 | { { ac_try="$ac_link" | |
3404 | case "(($ac_try" in | |
3405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3406 | *) ac_try_echo=$ac_try;; | |
3407 | esac | |
3408 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3409 | $as_echo "$ac_try_echo"; } >&5 | |
3410 | (eval "$ac_link") 2>&5 | |
3411 | ac_status=$? | |
3412 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3413 | test $ac_status = 0; } | |
3414 | if { ac_try='./conftest$ac_cv_exeext' | |
3415 | { { case "(($ac_try" in | |
3416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3417 | *) ac_try_echo=$ac_try;; | |
3418 | esac | |
3419 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3420 | $as_echo "$ac_try_echo"; } >&5 | |
3421 | (eval "$ac_try") 2>&5 | |
3422 | ac_status=$? | |
3423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3424 | test $ac_status = 0; }; }; then | |
3425 | cross_compiling=no | |
3426 | else | |
3427 | if test "$cross_compiling" = maybe; then | |
3428 | cross_compiling=yes | |
3429 | else | |
3430 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3431 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3432 | as_fn_error $? "cannot run C++ compiled programs. | |
3433 | If you meant to cross compile, use \`--host'. | |
3434 | See \`config.log' for more details" "$LINENO" 5; } | |
3435 | fi | |
3436 | fi | |
3437 | fi | |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3439 | $as_echo "$cross_compiling" >&6; } | |
3440 | ||
3441 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3442 | ac_clean_files=$ac_clean_files_save | |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3444 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3445 | if ${ac_cv_objext+:} false; then : | |
3446 | $as_echo_n "(cached) " >&6 | |
3447 | else | |
3448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3449 | /* end confdefs.h. */ | |
3450 | ||
3451 | int | |
3452 | main () | |
3453 | { | |
3454 | ||
3455 | ; | |
3456 | return 0; | |
3457 | } | |
3458 | _ACEOF | |
3459 | rm -f conftest.o conftest.obj | |
3460 | if { { ac_try="$ac_compile" | |
3461 | case "(($ac_try" in | |
3462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3463 | *) ac_try_echo=$ac_try;; | |
3464 | esac | |
3465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3466 | $as_echo "$ac_try_echo"; } >&5 | |
3467 | (eval "$ac_compile") 2>&5 | |
3468 | ac_status=$? | |
3469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3470 | test $ac_status = 0; }; then : | |
3471 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3472 | test -f "$ac_file" || continue; | |
3473 | case $ac_file in | |
3474 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3475 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3476 | break;; | |
3477 | esac | |
3478 | done | |
3479 | else | |
3480 | $as_echo "$as_me: failed program was:" >&5 | |
3481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3482 | ||
3483 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3484 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3485 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3486 | See \`config.log' for more details" "$LINENO" 5; } | |
3487 | fi | |
3488 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3489 | fi | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3491 | $as_echo "$ac_cv_objext" >&6; } | |
3492 | OBJEXT=$ac_cv_objext | |
3493 | ac_objext=$OBJEXT | |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3495 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3496 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3497 | $as_echo_n "(cached) " >&6 | |
3498 | else | |
3499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3500 | /* end confdefs.h. */ | |
3501 | ||
3502 | int | |
3503 | main () | |
3504 | { | |
3505 | #ifndef __GNUC__ | |
3506 | choke me | |
3507 | #endif | |
3508 | ||
3509 | ; | |
3510 | return 0; | |
3511 | } | |
3512 | _ACEOF | |
3513 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3514 | ac_compiler_gnu=yes | |
3515 | else | |
3516 | ac_compiler_gnu=no | |
3517 | fi | |
3518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3519 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3520 | ||
3521 | fi | |
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3523 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3524 | if test $ac_compiler_gnu = yes; then | |
3525 | GXX=yes | |
3526 | else | |
3527 | GXX= | |
3528 | fi | |
3529 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3530 | ac_save_CXXFLAGS=$CXXFLAGS | |
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3532 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3533 | if ${ac_cv_prog_cxx_g+:} false; then : | |
3534 | $as_echo_n "(cached) " >&6 | |
3535 | else | |
3536 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3537 | ac_cxx_werror_flag=yes | |
3538 | ac_cv_prog_cxx_g=no | |
3539 | CXXFLAGS="-g" | |
3540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3541 | /* end confdefs.h. */ | |
3542 | ||
3543 | int | |
3544 | main () | |
3545 | { | |
3546 | ||
3547 | ; | |
3548 | return 0; | |
3549 | } | |
3550 | _ACEOF | |
3551 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3552 | ac_cv_prog_cxx_g=yes | |
3553 | else | |
3554 | CXXFLAGS="" | |
3555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3556 | /* end confdefs.h. */ | |
3557 | ||
3558 | int | |
3559 | main () | |
3560 | { | |
3561 | ||
3562 | ; | |
3563 | return 0; | |
3564 | } | |
3565 | _ACEOF | |
3566 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3567 | ||
3568 | else | |
3569 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3570 | CXXFLAGS="-g" | |
3571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3572 | /* end confdefs.h. */ | |
3573 | ||
3574 | int | |
3575 | main () | |
3576 | { | |
3577 | ||
3578 | ; | |
3579 | return 0; | |
3580 | } | |
3581 | _ACEOF | |
3582 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3583 | ac_cv_prog_cxx_g=yes | |
3584 | fi | |
3585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3586 | fi | |
3587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3588 | fi | |
3589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3590 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3591 | fi | |
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3593 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3594 | if test "$ac_test_CXXFLAGS" = set; then | |
3595 | CXXFLAGS=$ac_save_CXXFLAGS | |
3596 | elif test $ac_cv_prog_cxx_g = yes; then | |
3597 | if test "$GXX" = yes; then | |
3598 | CXXFLAGS="-g -O2" | |
3599 | else | |
3600 | CXXFLAGS="-g" | |
3601 | fi | |
3602 | else | |
3603 | if test "$GXX" = yes; then | |
3604 | CXXFLAGS="-O2" | |
3605 | else | |
3606 | CXXFLAGS= | |
3607 | fi | |
3608 | fi | |
3609 | ac_ext=cpp | |
3610 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3611 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3612 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3613 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3614 | DEPDIR="${am__leading_dot}deps" | |
3615 | ||
3616 | ac_config_commands="$ac_config_commands depfiles" | |
3617 | ||
3618 | ||
3619 | am_make=${MAKE-make} | |
3620 | cat > confinc << 'END' | |
3621 | am__doit: | |
3622 | @echo this is the am__doit target | |
3623 | .PHONY: am__doit | |
3624 | END | |
3625 | # If we don't find an include directive, just comment out the code. | |
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3627 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3628 | am__include="#" | |
3629 | am__quote= | |
3630 | _am_result=none | |
3631 | # First try GNU make style include. | |
3632 | echo "include confinc" > confmf | |
3633 | # Ignore all kinds of additional output from 'make'. | |
3634 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3635 | *the\ am__doit\ target*) | |
3636 | am__include=include | |
3637 | am__quote= | |
3638 | _am_result=GNU | |
3639 | ;; | |
3640 | esac | |
3641 | # Now try BSD make style include. | |
3642 | if test "$am__include" = "#"; then | |
3643 | echo '.include "confinc"' > confmf | |
3644 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3645 | *the\ am__doit\ target*) | |
3646 | am__include=.include | |
3647 | am__quote="\"" | |
3648 | _am_result=BSD | |
3649 | ;; | |
3650 | esac | |
3651 | fi | |
3652 | ||
3653 | ||
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3655 | $as_echo "$_am_result" >&6; } | |
3656 | rm -f confinc confmf | |
3657 | ||
3658 | # Check whether --enable-dependency-tracking was given. | |
3659 | if test "${enable_dependency_tracking+set}" = set; then : | |
3660 | enableval=$enable_dependency_tracking; | |
3661 | fi | |
3662 | ||
3663 | if test "x$enable_dependency_tracking" != xno; then | |
3664 | am_depcomp="$ac_aux_dir/depcomp" | |
3665 | AMDEPBACKSLASH='\' | |
3666 | am__nodep='_no' | |
3667 | fi | |
3668 | if test "x$enable_dependency_tracking" != xno; then | |
3669 | AMDEP_TRUE= | |
3670 | AMDEP_FALSE='#' | |
3671 | else | |
3672 | AMDEP_TRUE='#' | |
3673 | AMDEP_FALSE= | |
3674 | fi | |
3675 | ||
3676 | ||
3677 | ||
3678 | depcc="$CXX" am_compiler_list= | |
3679 | ||
3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3681 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3682 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
3683 | $as_echo_n "(cached) " >&6 | |
3684 | else | |
3685 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3686 | # We make a subdir and do the tests there. Otherwise we can end up | |
3687 | # making bogus files that we don't know about and never remove. For | |
3688 | # instance it was reported that on HP-UX the gcc test will end up | |
3689 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3690 | # in D". | |
3691 | rm -rf conftest.dir | |
3692 | mkdir conftest.dir | |
3693 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3694 | # using a relative directory. | |
3695 | cp "$am_depcomp" conftest.dir | |
3696 | cd conftest.dir | |
3697 | # We will build objects and dependencies in a subdirectory because | |
3698 | # it helps to detect inapplicable dependency modes. For instance | |
3699 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3700 | # side effect of compilation, but ICC will put the dependencies in | |
3701 | # the current directory while Tru64 will put them in the object | |
3702 | # directory. | |
3703 | mkdir sub | |
3704 | ||
3705 | am_cv_CXX_dependencies_compiler_type=none | |
3706 | if test "$am_compiler_list" = ""; then | |
3707 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3708 | fi | |
3709 | am__universal=false | |
3710 | case " $depcc " in #( | |
3711 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3712 | esac | |
3713 | ||
3714 | for depmode in $am_compiler_list; do | |
3715 | # Setup a source with many dependencies, because some compilers | |
3716 | # like to wrap large dependency lists on column 80 (with \), and | |
3717 | # we should not choose a depcomp mode which is confused by this. | |
3718 | # | |
3719 | # We need to recreate these files for each test, as the compiler may | |
3720 | # overwrite some of them when testing with obscure command lines. | |
3721 | # This happens at least with the AIX C compiler. | |
3722 | : > sub/conftest.c | |
3723 | for i in 1 2 3 4 5 6; do | |
3724 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3725 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3726 | # Solaris 10 /bin/sh. | |
3727 | echo '/* dummy */' > sub/conftst$i.h | |
3728 | done | |
3729 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3730 | ||
3731 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3732 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3733 | # handle '-M -o', and we need to detect this. Also, some Intel | |
3734 | # versions had trouble with output in subdirs. | |
3735 | am__obj=sub/conftest.${OBJEXT-o} | |
3736 | am__minus_obj="-o $am__obj" | |
3737 | case $depmode in | |
3738 | gcc) | |
3739 | # This depmode causes a compiler race in universal mode. | |
3740 | test "$am__universal" = false || continue | |
3741 | ;; | |
3742 | nosideeffect) | |
3743 | # After this tag, mechanisms are not by side-effect, so they'll | |
3744 | # only be used when explicitly requested. | |
3745 | if test "x$enable_dependency_tracking" = xyes; then | |
3746 | continue | |
3747 | else | |
3748 | break | |
3749 | fi | |
3750 | ;; | |
3751 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3752 | # This compiler won't grok '-c -o', but also, the minuso test has | |
3753 | # not run yet. These depmodes are late enough in the game, and | |
3754 | # so weak that their functioning should not be impacted. | |
3755 | am__obj=conftest.${OBJEXT-o} | |
3756 | am__minus_obj= | |
3757 | ;; | |
3758 | none) break ;; | |
3759 | esac | |
3760 | if depmode=$depmode \ | |
3761 | source=sub/conftest.c object=$am__obj \ | |
3762 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3763 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3764 | >/dev/null 2>conftest.err && | |
3765 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3766 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3767 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3768 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3769 | # icc doesn't choke on unknown options, it will just issue warnings | |
3770 | # or remarks (even with -Werror). So we grep stderr for any message | |
3771 | # that says an option was ignored or not supported. | |
3772 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3773 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3774 | # The diagnosis changed in icc 8.0: | |
3775 | # icc: Command line remark: option '-MP' not supported | |
3776 | if (grep 'ignoring option' conftest.err || | |
3777 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3778 | am_cv_CXX_dependencies_compiler_type=$depmode | |
3779 | break | |
3780 | fi | |
3781 | fi | |
3782 | done | |
3783 | ||
3784 | cd .. | |
3785 | rm -rf conftest.dir | |
3786 | else | |
3787 | am_cv_CXX_dependencies_compiler_type=none | |
3788 | fi | |
3789 | ||
3790 | fi | |
3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
3792 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
3793 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
3794 | ||
3795 | if | |
3796 | test "x$enable_dependency_tracking" != xno \ | |
3797 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
3798 | am__fastdepCXX_TRUE= | |
3799 | am__fastdepCXX_FALSE='#' | |
3800 | else | |
3801 | am__fastdepCXX_TRUE='#' | |
3802 | am__fastdepCXX_FALSE= | |
3803 | fi | |
3804 | ||
3805 | ||
3806 | ac_ext=c | |
3807 | ac_cpp='$CPP $CPPFLAGS' | |
3808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3811 | if test -n "$ac_tool_prefix"; then | |
3812 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3813 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3815 | $as_echo_n "checking for $ac_word... " >&6; } | |
3816 | if ${ac_cv_prog_CC+:} false; then : | |
3817 | $as_echo_n "(cached) " >&6 | |
3818 | else | |
3819 | if test -n "$CC"; then | |
3820 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3821 | else | |
3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3823 | for as_dir in $PATH | |
3824 | do | |
3825 | IFS=$as_save_IFS | |
3826 | test -z "$as_dir" && as_dir=. | |
3827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3829 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3831 | break 2 | |
3832 | fi | |
3833 | done | |
3834 | done | |
3835 | IFS=$as_save_IFS | |
3836 | ||
3837 | fi | |
3838 | fi | |
3839 | CC=$ac_cv_prog_CC | |
3840 | if test -n "$CC"; then | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3842 | $as_echo "$CC" >&6; } | |
3843 | else | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3845 | $as_echo "no" >&6; } | |
3846 | fi | |
3847 | ||
3848 | ||
3849 | fi | |
3850 | if test -z "$ac_cv_prog_CC"; then | |
3851 | ac_ct_CC=$CC | |
3852 | # Extract the first word of "gcc", so it can be a program name with args. | |
3853 | set dummy gcc; ac_word=$2 | |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3855 | $as_echo_n "checking for $ac_word... " >&6; } | |
3856 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3857 | $as_echo_n "(cached) " >&6 | |
3858 | else | |
3859 | if test -n "$ac_ct_CC"; then | |
3860 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3861 | else | |
3862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3863 | for as_dir in $PATH | |
3864 | do | |
3865 | IFS=$as_save_IFS | |
3866 | test -z "$as_dir" && as_dir=. | |
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_ac_ct_CC="gcc" | |
3870 | $as_echo "$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 | fi | |
3879 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3880 | if test -n "$ac_ct_CC"; then | |
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3882 | $as_echo "$ac_ct_CC" >&6; } | |
3883 | else | |
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3885 | $as_echo "no" >&6; } | |
3886 | fi | |
3887 | ||
3888 | if test "x$ac_ct_CC" = x; then | |
3889 | CC="" | |
3890 | else | |
3891 | case $cross_compiling:$ac_tool_warned in | |
3892 | yes:) | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3894 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3895 | ac_tool_warned=yes ;; | |
3896 | esac | |
3897 | CC=$ac_ct_CC | |
3898 | fi | |
3899 | else | |
3900 | CC="$ac_cv_prog_CC" | |
3901 | fi | |
3902 | ||
3903 | if test -z "$CC"; then | |
3904 | if test -n "$ac_tool_prefix"; then | |
3905 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3906 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3908 | $as_echo_n "checking for $ac_word... " >&6; } | |
3909 | if ${ac_cv_prog_CC+:} false; then : | |
3910 | $as_echo_n "(cached) " >&6 | |
3911 | else | |
3912 | if test -n "$CC"; then | |
3913 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3914 | else | |
3915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3916 | for as_dir in $PATH | |
3917 | do | |
3918 | IFS=$as_save_IFS | |
3919 | test -z "$as_dir" && as_dir=. | |
3920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3922 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3924 | break 2 | |
3925 | fi | |
3926 | done | |
3927 | done | |
3928 | IFS=$as_save_IFS | |
3929 | ||
3930 | fi | |
3931 | fi | |
3932 | CC=$ac_cv_prog_CC | |
3933 | if test -n "$CC"; then | |
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3935 | $as_echo "$CC" >&6; } | |
3936 | else | |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3938 | $as_echo "no" >&6; } | |
3939 | fi | |
3940 | ||
3941 | ||
3942 | fi | |
3943 | fi | |
3944 | if test -z "$CC"; then | |
3945 | # Extract the first word of "cc", so it can be a program name with args. | |
3946 | set dummy cc; ac_word=$2 | |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3948 | $as_echo_n "checking for $ac_word... " >&6; } | |
3949 | if ${ac_cv_prog_CC+:} false; then : | |
3950 | $as_echo_n "(cached) " >&6 | |
3951 | else | |
3952 | if test -n "$CC"; then | |
3953 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3954 | else | |
3955 | ac_prog_rejected=no | |
3956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3957 | for as_dir in $PATH | |
3958 | do | |
3959 | IFS=$as_save_IFS | |
3960 | test -z "$as_dir" && as_dir=. | |
3961 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3963 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3964 | ac_prog_rejected=yes | |
3965 | continue | |
3966 | fi | |
3967 | ac_cv_prog_CC="cc" | |
3968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3969 | break 2 | |
3970 | fi | |
3971 | done | |
3972 | done | |
3973 | IFS=$as_save_IFS | |
3974 | ||
3975 | if test $ac_prog_rejected = yes; then | |
3976 | # We found a bogon in the path, so make sure we never use it. | |
3977 | set dummy $ac_cv_prog_CC | |
3978 | shift | |
3979 | if test $# != 0; then | |
3980 | # We chose a different compiler from the bogus one. | |
3981 | # However, it has the same basename, so the bogon will be chosen | |
3982 | # first if we set CC to just the basename; use the full file name. | |
3983 | shift | |
3984 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3985 | fi | |
3986 | fi | |
3987 | fi | |
3988 | fi | |
3989 | CC=$ac_cv_prog_CC | |
3990 | if test -n "$CC"; then | |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3992 | $as_echo "$CC" >&6; } | |
3993 | else | |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3995 | $as_echo "no" >&6; } | |
3996 | fi | |
3997 | ||
3998 | ||
3999 | fi | |
4000 | if test -z "$CC"; then | |
4001 | if test -n "$ac_tool_prefix"; then | |
4002 | for ac_prog in cl.exe | |
4003 | do | |
4004 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4005 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4007 | $as_echo_n "checking for $ac_word... " >&6; } | |
4008 | if ${ac_cv_prog_CC+:} false; then : | |
4009 | $as_echo_n "(cached) " >&6 | |
4010 | else | |
4011 | if test -n "$CC"; then | |
4012 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4013 | else | |
4014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4015 | for as_dir in $PATH | |
4016 | do | |
4017 | IFS=$as_save_IFS | |
4018 | test -z "$as_dir" && as_dir=. | |
4019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4021 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4023 | break 2 | |
4024 | fi | |
4025 | done | |
4026 | done | |
4027 | IFS=$as_save_IFS | |
4028 | ||
4029 | fi | |
4030 | fi | |
4031 | CC=$ac_cv_prog_CC | |
4032 | if test -n "$CC"; then | |
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4034 | $as_echo "$CC" >&6; } | |
4035 | else | |
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4037 | $as_echo "no" >&6; } | |
4038 | fi | |
4039 | ||
4040 | ||
4041 | test -n "$CC" && break | |
4042 | done | |
4043 | fi | |
4044 | if test -z "$CC"; then | |
4045 | ac_ct_CC=$CC | |
4046 | for ac_prog in cl.exe | |
4047 | do | |
4048 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4049 | set dummy $ac_prog; ac_word=$2 | |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4051 | $as_echo_n "checking for $ac_word... " >&6; } | |
4052 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4053 | $as_echo_n "(cached) " >&6 | |
4054 | else | |
4055 | if test -n "$ac_ct_CC"; then | |
4056 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4057 | else | |
4058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4059 | for as_dir in $PATH | |
4060 | do | |
4061 | IFS=$as_save_IFS | |
4062 | test -z "$as_dir" && as_dir=. | |
4063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4065 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4067 | break 2 | |
4068 | fi | |
4069 | done | |
4070 | done | |
4071 | IFS=$as_save_IFS | |
4072 | ||
4073 | fi | |
4074 | fi | |
4075 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4076 | if test -n "$ac_ct_CC"; then | |
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4078 | $as_echo "$ac_ct_CC" >&6; } | |
4079 | else | |
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4081 | $as_echo "no" >&6; } | |
4082 | fi | |
4083 | ||
4084 | ||
4085 | test -n "$ac_ct_CC" && break | |
4086 | done | |
4087 | ||
4088 | if test "x$ac_ct_CC" = x; then | |
4089 | CC="" | |
4090 | else | |
4091 | case $cross_compiling:$ac_tool_warned in | |
4092 | yes:) | |
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4094 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4095 | ac_tool_warned=yes ;; | |
4096 | esac | |
4097 | CC=$ac_ct_CC | |
4098 | fi | |
4099 | fi | |
4100 | ||
4101 | fi | |
4102 | ||
4103 | ||
4104 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4105 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4106 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4107 | See \`config.log' for more details" "$LINENO" 5; } | |
4108 | ||
4109 | # Provide some information about the compiler. | |
4110 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4111 | set X $ac_compile | |
4112 | ac_compiler=$2 | |
4113 | for ac_option in --version -v -V -qversion; do | |
4114 | { { ac_try="$ac_compiler $ac_option >&5" | |
4115 | case "(($ac_try" in | |
4116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4117 | *) ac_try_echo=$ac_try;; | |
4118 | esac | |
4119 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4120 | $as_echo "$ac_try_echo"; } >&5 | |
4121 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4122 | ac_status=$? | |
4123 | if test -s conftest.err; then | |
4124 | sed '10a\ | |
4125 | ... rest of stderr output deleted ... | |
4126 | 10q' conftest.err >conftest.er1 | |
4127 | cat conftest.er1 >&5 | |
4128 | fi | |
4129 | rm -f conftest.er1 conftest.err | |
4130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4131 | test $ac_status = 0; } | |
4132 | done | |
4133 | ||
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4135 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4136 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4137 | $as_echo_n "(cached) " >&6 | |
4138 | else | |
4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4140 | /* end confdefs.h. */ | |
4141 | ||
4142 | int | |
4143 | main () | |
4144 | { | |
4145 | #ifndef __GNUC__ | |
4146 | choke me | |
4147 | #endif | |
4148 | ||
4149 | ; | |
4150 | return 0; | |
4151 | } | |
4152 | _ACEOF | |
4153 | if ac_fn_c_try_compile "$LINENO"; then : | |
4154 | ac_compiler_gnu=yes | |
4155 | else | |
4156 | ac_compiler_gnu=no | |
4157 | fi | |
4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4159 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4160 | ||
4161 | fi | |
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4163 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4164 | if test $ac_compiler_gnu = yes; then | |
4165 | GCC=yes | |
4166 | else | |
4167 | GCC= | |
4168 | fi | |
4169 | ac_test_CFLAGS=${CFLAGS+set} | |
4170 | ac_save_CFLAGS=$CFLAGS | |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4172 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4173 | if ${ac_cv_prog_cc_g+:} false; then : | |
4174 | $as_echo_n "(cached) " >&6 | |
4175 | else | |
4176 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4177 | ac_c_werror_flag=yes | |
4178 | ac_cv_prog_cc_g=no | |
4179 | CFLAGS="-g" | |
4180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4181 | /* end confdefs.h. */ | |
4182 | ||
4183 | int | |
4184 | main () | |
4185 | { | |
4186 | ||
4187 | ; | |
4188 | return 0; | |
4189 | } | |
4190 | _ACEOF | |
4191 | if ac_fn_c_try_compile "$LINENO"; then : | |
4192 | ac_cv_prog_cc_g=yes | |
4193 | else | |
4194 | CFLAGS="" | |
4195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4196 | /* end confdefs.h. */ | |
4197 | ||
4198 | int | |
4199 | main () | |
4200 | { | |
4201 | ||
4202 | ; | |
4203 | return 0; | |
4204 | } | |
4205 | _ACEOF | |
4206 | if ac_fn_c_try_compile "$LINENO"; then : | |
4207 | ||
4208 | else | |
4209 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4210 | CFLAGS="-g" | |
4211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4212 | /* end confdefs.h. */ | |
4213 | ||
4214 | int | |
4215 | main () | |
4216 | { | |
4217 | ||
4218 | ; | |
4219 | return 0; | |
4220 | } | |
4221 | _ACEOF | |
4222 | if ac_fn_c_try_compile "$LINENO"; then : | |
4223 | ac_cv_prog_cc_g=yes | |
4224 | fi | |
4225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4226 | fi | |
4227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4228 | fi | |
4229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4230 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4231 | fi | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4233 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4234 | if test "$ac_test_CFLAGS" = set; then | |
4235 | CFLAGS=$ac_save_CFLAGS | |
4236 | elif test $ac_cv_prog_cc_g = yes; then | |
4237 | if test "$GCC" = yes; then | |
4238 | CFLAGS="-g -O2" | |
4239 | else | |
4240 | CFLAGS="-g" | |
4241 | fi | |
4242 | else | |
4243 | if test "$GCC" = yes; then | |
4244 | CFLAGS="-O2" | |
4245 | else | |
4246 | CFLAGS= | |
4247 | fi | |
4248 | fi | |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4250 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4251 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4252 | $as_echo_n "(cached) " >&6 | |
4253 | else | |
4254 | ac_cv_prog_cc_c89=no | |
4255 | ac_save_CC=$CC | |
4256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4257 | /* end confdefs.h. */ | |
4258 | #include <stdarg.h> | |
4259 | #include <stdio.h> | |
4260 | struct stat; | |
4261 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4262 | struct buf { int x; }; | |
4263 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4264 | static char *e (p, i) | |
4265 | char **p; | |
4266 | int i; | |
4267 | { | |
4268 | return p[i]; | |
4269 | } | |
4270 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4271 | { | |
4272 | char *s; | |
4273 | va_list v; | |
4274 | va_start (v,p); | |
4275 | s = g (p, va_arg (v,int)); | |
4276 | va_end (v); | |
4277 | return s; | |
4278 | } | |
4279 | ||
4280 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4281 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4282 | These don't provoke an error unfortunately, instead are silently treated | |
4283 | as 'x'. The following induces an error, until -std is added to get | |
4284 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4285 | array size at least. It's necessary to write '\x00'==0 to get something | |
4286 | that's true only with -std. */ | |
4287 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4288 | ||
4289 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4290 | inside strings and character constants. */ | |
4291 | #define FOO(x) 'x' | |
4292 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4293 | ||
4294 | int test (int i, double x); | |
4295 | struct s1 {int (*f) (int a);}; | |
4296 | struct s2 {int (*f) (double a);}; | |
4297 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4298 | int argc; | |
4299 | char **argv; | |
4300 | int | |
4301 | main () | |
4302 | { | |
4303 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4304 | ; | |
4305 | return 0; | |
4306 | } | |
4307 | _ACEOF | |
4308 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4309 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4310 | do | |
4311 | CC="$ac_save_CC $ac_arg" | |
4312 | if ac_fn_c_try_compile "$LINENO"; then : | |
4313 | ac_cv_prog_cc_c89=$ac_arg | |
4314 | fi | |
4315 | rm -f core conftest.err conftest.$ac_objext | |
4316 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4317 | done | |
4318 | rm -f conftest.$ac_ext | |
4319 | CC=$ac_save_CC | |
4320 | ||
4321 | fi | |
4322 | # AC_CACHE_VAL | |
4323 | case "x$ac_cv_prog_cc_c89" in | |
4324 | x) | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4326 | $as_echo "none needed" >&6; } ;; | |
4327 | xno) | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4329 | $as_echo "unsupported" >&6; } ;; | |
4330 | *) | |
4331 | CC="$CC $ac_cv_prog_cc_c89" | |
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4333 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4334 | esac | |
4335 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4336 | ||
4337 | fi | |
4338 | ||
4339 | ac_ext=cpp | |
4340 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4341 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4342 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4343 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4344 | ||
4345 | ac_ext=c | |
4346 | ac_cpp='$CPP $CPPFLAGS' | |
4347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4351 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4352 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4353 | $as_echo_n "(cached) " >&6 | |
4354 | else | |
4355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4356 | /* end confdefs.h. */ | |
4357 | ||
4358 | int | |
4359 | main () | |
4360 | { | |
4361 | ||
4362 | ; | |
4363 | return 0; | |
4364 | } | |
4365 | _ACEOF | |
4366 | # Make sure it works both with $CC and with simple cc. | |
4367 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4368 | # compilers refuse to overwrite an existing .o file with -o, | |
4369 | # though they will create one. | |
4370 | am_cv_prog_cc_c_o=yes | |
4371 | for am_i in 1 2; do | |
4372 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4373 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4374 | ac_status=$? | |
4375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4376 | (exit $ac_status); } \ | |
4377 | && test -f conftest2.$ac_objext; then | |
4378 | : OK | |
4379 | else | |
4380 | am_cv_prog_cc_c_o=no | |
4381 | break | |
4382 | fi | |
4383 | done | |
4384 | rm -f core conftest* | |
4385 | unset am_i | |
4386 | fi | |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4388 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4389 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4390 | # Losing compiler, so override with the script. | |
4391 | # FIXME: It is wrong to rewrite CC. | |
4392 | # But if we don't then we get into trouble of one sort or another. | |
4393 | # A longer-term fix would be to have automake use am__CC in this case, | |
4394 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4395 | CC="$am_aux_dir/compile $CC" | |
4396 | fi | |
4397 | ac_ext=cpp | |
4398 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4402 | ||
4403 | ||
4404 | depcc="$CC" am_compiler_list= | |
4405 | ||
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4407 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4408 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4409 | $as_echo_n "(cached) " >&6 | |
4410 | else | |
4411 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4412 | # We make a subdir and do the tests there. Otherwise we can end up | |
4413 | # making bogus files that we don't know about and never remove. For | |
4414 | # instance it was reported that on HP-UX the gcc test will end up | |
4415 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4416 | # in D". | |
4417 | rm -rf conftest.dir | |
4418 | mkdir conftest.dir | |
4419 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4420 | # using a relative directory. | |
4421 | cp "$am_depcomp" conftest.dir | |
4422 | cd conftest.dir | |
4423 | # We will build objects and dependencies in a subdirectory because | |
4424 | # it helps to detect inapplicable dependency modes. For instance | |
4425 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4426 | # side effect of compilation, but ICC will put the dependencies in | |
4427 | # the current directory while Tru64 will put them in the object | |
4428 | # directory. | |
4429 | mkdir sub | |
4430 | ||
4431 | am_cv_CC_dependencies_compiler_type=none | |
4432 | if test "$am_compiler_list" = ""; then | |
4433 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4434 | fi | |
4435 | am__universal=false | |
4436 | case " $depcc " in #( | |
4437 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4438 | esac | |
4439 | ||
4440 | for depmode in $am_compiler_list; do | |
4441 | # Setup a source with many dependencies, because some compilers | |
4442 | # like to wrap large dependency lists on column 80 (with \), and | |
4443 | # we should not choose a depcomp mode which is confused by this. | |
4444 | # | |
4445 | # We need to recreate these files for each test, as the compiler may | |
4446 | # overwrite some of them when testing with obscure command lines. | |
4447 | # This happens at least with the AIX C compiler. | |
4448 | : > sub/conftest.c | |
4449 | for i in 1 2 3 4 5 6; do | |
4450 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4451 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4452 | # Solaris 10 /bin/sh. | |
4453 | echo '/* dummy */' > sub/conftst$i.h | |
4454 | done | |
4455 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4456 | ||
4457 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4458 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4459 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4460 | # versions had trouble with output in subdirs. | |
4461 | am__obj=sub/conftest.${OBJEXT-o} | |
4462 | am__minus_obj="-o $am__obj" | |
4463 | case $depmode in | |
4464 | gcc) | |
4465 | # This depmode causes a compiler race in universal mode. | |
4466 | test "$am__universal" = false || continue | |
4467 | ;; | |
4468 | nosideeffect) | |
4469 | # After this tag, mechanisms are not by side-effect, so they'll | |
4470 | # only be used when explicitly requested. | |
4471 | if test "x$enable_dependency_tracking" = xyes; then | |
4472 | continue | |
4473 | else | |
4474 | break | |
4475 | fi | |
4476 | ;; | |
4477 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4478 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4479 | # not run yet. These depmodes are late enough in the game, and | |
4480 | # so weak that their functioning should not be impacted. | |
4481 | am__obj=conftest.${OBJEXT-o} | |
4482 | am__minus_obj= | |
4483 | ;; | |
4484 | none) break ;; | |
4485 | esac | |
4486 | if depmode=$depmode \ | |
4487 | source=sub/conftest.c object=$am__obj \ | |
4488 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4489 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4490 | >/dev/null 2>conftest.err && | |
4491 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4492 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4493 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4494 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4495 | # icc doesn't choke on unknown options, it will just issue warnings | |
4496 | # or remarks (even with -Werror). So we grep stderr for any message | |
4497 | # that says an option was ignored or not supported. | |
4498 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4499 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4500 | # The diagnosis changed in icc 8.0: | |
4501 | # icc: Command line remark: option '-MP' not supported | |
4502 | if (grep 'ignoring option' conftest.err || | |
4503 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4504 | am_cv_CC_dependencies_compiler_type=$depmode | |
4505 | break | |
4506 | fi | |
4507 | fi | |
4508 | done | |
4509 | ||
4510 | cd .. | |
4511 | rm -rf conftest.dir | |
4512 | else | |
4513 | am_cv_CC_dependencies_compiler_type=none | |
4514 | fi | |
4515 | ||
4516 | fi | |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4518 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4519 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4520 | ||
4521 | if | |
4522 | test "x$enable_dependency_tracking" != xno \ | |
4523 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4524 | am__fastdepCC_TRUE= | |
4525 | am__fastdepCC_FALSE='#' | |
4526 | else | |
4527 | am__fastdepCC_TRUE='#' | |
4528 | am__fastdepCC_FALSE= | |
4529 | fi | |
4530 | ||
4531 | ||
4532 | # By default we simply use the C compiler to build assembly code. | |
4533 | ||
4534 | test "${CCAS+set}" = set || CCAS=$CC | |
4535 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
4536 | ||
4537 | ||
4538 | ||
4539 | depcc="$CCAS" am_compiler_list= | |
4540 | ||
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4542 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4543 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : | |
4544 | $as_echo_n "(cached) " >&6 | |
4545 | else | |
4546 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4547 | # We make a subdir and do the tests there. Otherwise we can end up | |
4548 | # making bogus files that we don't know about and never remove. For | |
4549 | # instance it was reported that on HP-UX the gcc test will end up | |
4550 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4551 | # in D". | |
4552 | rm -rf conftest.dir | |
4553 | mkdir conftest.dir | |
4554 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4555 | # using a relative directory. | |
4556 | cp "$am_depcomp" conftest.dir | |
4557 | cd conftest.dir | |
4558 | # We will build objects and dependencies in a subdirectory because | |
4559 | # it helps to detect inapplicable dependency modes. For instance | |
4560 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4561 | # side effect of compilation, but ICC will put the dependencies in | |
4562 | # the current directory while Tru64 will put them in the object | |
4563 | # directory. | |
4564 | mkdir sub | |
4565 | ||
4566 | am_cv_CCAS_dependencies_compiler_type=none | |
4567 | if test "$am_compiler_list" = ""; then | |
4568 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4569 | fi | |
4570 | am__universal=false | |
4571 | ||
4572 | ||
4573 | for depmode in $am_compiler_list; do | |
4574 | # Setup a source with many dependencies, because some compilers | |
4575 | # like to wrap large dependency lists on column 80 (with \), and | |
4576 | # we should not choose a depcomp mode which is confused by this. | |
4577 | # | |
4578 | # We need to recreate these files for each test, as the compiler may | |
4579 | # overwrite some of them when testing with obscure command lines. | |
4580 | # This happens at least with the AIX C compiler. | |
4581 | : > sub/conftest.c | |
4582 | for i in 1 2 3 4 5 6; do | |
4583 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4584 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4585 | # Solaris 10 /bin/sh. | |
4586 | echo '/* dummy */' > sub/conftst$i.h | |
4587 | done | |
4588 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4589 | ||
4590 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4591 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4592 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4593 | # versions had trouble with output in subdirs. | |
4594 | am__obj=sub/conftest.${OBJEXT-o} | |
4595 | am__minus_obj="-o $am__obj" | |
4596 | case $depmode in | |
4597 | gcc) | |
4598 | # This depmode causes a compiler race in universal mode. | |
4599 | test "$am__universal" = false || continue | |
4600 | ;; | |
4601 | nosideeffect) | |
4602 | # After this tag, mechanisms are not by side-effect, so they'll | |
4603 | # only be used when explicitly requested. | |
4604 | if test "x$enable_dependency_tracking" = xyes; then | |
4605 | continue | |
4606 | else | |
4607 | break | |
4608 | fi | |
4609 | ;; | |
4610 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4611 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4612 | # not run yet. These depmodes are late enough in the game, and | |
4613 | # so weak that their functioning should not be impacted. | |
4614 | am__obj=conftest.${OBJEXT-o} | |
4615 | am__minus_obj= | |
4616 | ;; | |
4617 | none) break ;; | |
4618 | esac | |
4619 | if depmode=$depmode \ | |
4620 | source=sub/conftest.c object=$am__obj \ | |
4621 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4622 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4623 | >/dev/null 2>conftest.err && | |
4624 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4625 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4626 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4627 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4628 | # icc doesn't choke on unknown options, it will just issue warnings | |
4629 | # or remarks (even with -Werror). So we grep stderr for any message | |
4630 | # that says an option was ignored or not supported. | |
4631 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4632 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4633 | # The diagnosis changed in icc 8.0: | |
4634 | # icc: Command line remark: option '-MP' not supported | |
4635 | if (grep 'ignoring option' conftest.err || | |
4636 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4637 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
4638 | break | |
4639 | fi | |
4640 | fi | |
4641 | done | |
4642 | ||
4643 | cd .. | |
4644 | rm -rf conftest.dir | |
4645 | else | |
4646 | am_cv_CCAS_dependencies_compiler_type=none | |
4647 | fi | |
4648 | ||
4649 | fi | |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
4651 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
4652 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
4653 | ||
4654 | if | |
4655 | test "x$enable_dependency_tracking" != xno \ | |
4656 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
4657 | am__fastdepCCAS_TRUE= | |
4658 | am__fastdepCCAS_FALSE='#' | |
4659 | else | |
4660 | am__fastdepCCAS_TRUE='#' | |
4661 | am__fastdepCCAS_FALSE= | |
4662 | fi | |
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | ||
4668 | if test "$cross_compiling" = "no"; then | |
4669 | ||
4670 | ||
4671 | ||
4672 | ||
4673 | ||
4674 | ||
4675 | ||
4676 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
4677 | if test -n "$ac_tool_prefix"; then | |
4678 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4679 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4681 | $as_echo_n "checking for $ac_word... " >&6; } | |
4682 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
4683 | $as_echo_n "(cached) " >&6 | |
4684 | else | |
4685 | case $PKG_CONFIG in | |
4686 | [\\/]* | ?:[\\/]*) | |
4687 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
4688 | ;; | |
4689 | *) | |
4690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4691 | for as_dir in $PATH | |
4692 | do | |
4693 | IFS=$as_save_IFS | |
4694 | test -z "$as_dir" && as_dir=. | |
4695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4697 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4699 | break 2 | |
4700 | fi | |
4701 | done | |
4702 | done | |
4703 | IFS=$as_save_IFS | |
4704 | ||
4705 | ;; | |
4706 | esac | |
4707 | fi | |
4708 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4709 | if test -n "$PKG_CONFIG"; then | |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
4711 | $as_echo "$PKG_CONFIG" >&6; } | |
4712 | else | |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4714 | $as_echo "no" >&6; } | |
4715 | fi | |
4716 | ||
4717 | ||
4718 | fi | |
4719 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
4720 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4721 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4722 | set dummy pkg-config; ac_word=$2 | |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4724 | $as_echo_n "checking for $ac_word... " >&6; } | |
4725 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
4726 | $as_echo_n "(cached) " >&6 | |
4727 | else | |
4728 | case $ac_pt_PKG_CONFIG in | |
4729 | [\\/]* | ?:[\\/]*) | |
4730 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4731 | ;; | |
4732 | *) | |
4733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4734 | for as_dir in $PATH | |
4735 | do | |
4736 | IFS=$as_save_IFS | |
4737 | test -z "$as_dir" && as_dir=. | |
4738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4739 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4740 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4742 | break 2 | |
4743 | fi | |
4744 | done | |
4745 | done | |
4746 | IFS=$as_save_IFS | |
4747 | ||
4748 | ;; | |
4749 | esac | |
4750 | fi | |
4751 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4752 | if test -n "$ac_pt_PKG_CONFIG"; then | |
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
4754 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
4755 | else | |
4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4757 | $as_echo "no" >&6; } | |
4758 | fi | |
4759 | ||
4760 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4761 | PKG_CONFIG="" | |
4762 | else | |
4763 | case $cross_compiling:$ac_tool_warned in | |
4764 | yes:) | |
4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4766 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4767 | ac_tool_warned=yes ;; | |
4768 | esac | |
4769 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4770 | fi | |
4771 | else | |
4772 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4773 | fi | |
4774 | ||
4775 | fi | |
4776 | if test -n "$PKG_CONFIG"; then | |
4777 | _pkg_min_version=0.9.0 | |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
4779 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
4780 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4782 | $as_echo "yes" >&6; } | |
4783 | else | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4785 | $as_echo "no" >&6; } | |
4786 | PKG_CONFIG="" | |
4787 | fi | |
4788 | fi | |
4789 | fi | |
4790 | ||
4791 | ||
4792 | ||
4793 | ||
4794 | ||
4795 | # Make sure we can run config.sub. | |
4796 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4797 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4798 | ||
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4800 | $as_echo_n "checking build system type... " >&6; } | |
4801 | if ${ac_cv_build+:} false; then : | |
4802 | $as_echo_n "(cached) " >&6 | |
4803 | else | |
4804 | ac_build_alias=$build_alias | |
4805 | test "x$ac_build_alias" = x && | |
4806 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4807 | test "x$ac_build_alias" = x && | |
4808 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4809 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4810 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4811 | ||
4812 | fi | |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4814 | $as_echo "$ac_cv_build" >&6; } | |
4815 | case $ac_cv_build in | |
4816 | *-*-*) ;; | |
4817 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4818 | esac | |
4819 | build=$ac_cv_build | |
4820 | ac_save_IFS=$IFS; IFS='-' | |
4821 | set x $ac_cv_build | |
4822 | shift | |
4823 | build_cpu=$1 | |
4824 | build_vendor=$2 | |
4825 | shift; shift | |
4826 | # Remember, the first character of IFS is used to create $*, | |
4827 | # except with old shells: | |
4828 | build_os=$* | |
4829 | IFS=$ac_save_IFS | |
4830 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4831 | ||
4832 | ||
4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4834 | $as_echo_n "checking host system type... " >&6; } | |
4835 | if ${ac_cv_host+:} false; then : | |
4836 | $as_echo_n "(cached) " >&6 | |
4837 | else | |
4838 | if test "x$host_alias" = x; then | |
4839 | ac_cv_host=$ac_cv_build | |
4840 | else | |
4841 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4842 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4843 | fi | |
4844 | ||
4845 | fi | |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4847 | $as_echo "$ac_cv_host" >&6; } | |
4848 | case $ac_cv_host in | |
4849 | *-*-*) ;; | |
4850 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4851 | esac | |
4852 | host=$ac_cv_host | |
4853 | ac_save_IFS=$IFS; IFS='-' | |
4854 | set x $ac_cv_host | |
4855 | shift | |
4856 | host_cpu=$1 | |
4857 | host_vendor=$2 | |
4858 | shift; shift | |
4859 | # Remember, the first character of IFS is used to create $*, | |
4860 | # except with old shells: | |
4861 | host_os=$* | |
4862 | IFS=$ac_save_IFS | |
4863 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4864 | ||
4865 | ||
4866 | case "${host}" in | |
4867 | *-*-mingw*) | |
4868 | if test -n "$ac_tool_prefix"; then | |
4869 | # Extract the first word of "${ac_tool_prefix}windmc", so it can be a program name with args. | |
4870 | set dummy ${ac_tool_prefix}windmc; ac_word=$2 | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4872 | $as_echo_n "checking for $ac_word... " >&6; } | |
4873 | if ${ac_cv_prog_WINDMC+:} false; then : | |
4874 | $as_echo_n "(cached) " >&6 | |
4875 | else | |
4876 | if test -n "$WINDMC"; then | |
4877 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
4878 | else | |
4879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4880 | for as_dir in $PATH | |
4881 | do | |
4882 | IFS=$as_save_IFS | |
4883 | test -z "$as_dir" && as_dir=. | |
4884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4886 | ac_cv_prog_WINDMC="${ac_tool_prefix}windmc" | |
4887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4888 | break 2 | |
4889 | fi | |
4890 | done | |
4891 | done | |
4892 | IFS=$as_save_IFS | |
4893 | ||
4894 | fi | |
4895 | fi | |
4896 | WINDMC=$ac_cv_prog_WINDMC | |
4897 | if test -n "$WINDMC"; then | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 | |
4899 | $as_echo "$WINDMC" >&6; } | |
4900 | else | |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4902 | $as_echo "no" >&6; } | |
4903 | fi | |
4904 | ||
4905 | ||
4906 | fi | |
4907 | if test -z "$ac_cv_prog_WINDMC"; then | |
4908 | ac_ct_WINDMC=$WINDMC | |
4909 | # Extract the first word of "windmc", so it can be a program name with args. | |
4910 | set dummy windmc; ac_word=$2 | |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4912 | $as_echo_n "checking for $ac_word... " >&6; } | |
4913 | if ${ac_cv_prog_ac_ct_WINDMC+:} false; then : | |
4914 | $as_echo_n "(cached) " >&6 | |
4915 | else | |
4916 | if test -n "$ac_ct_WINDMC"; then | |
4917 | ac_cv_prog_ac_ct_WINDMC="$ac_ct_WINDMC" # Let the user override the test. | |
4918 | else | |
4919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4920 | for as_dir in $PATH | |
4921 | do | |
4922 | IFS=$as_save_IFS | |
4923 | test -z "$as_dir" && as_dir=. | |
4924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4926 | ac_cv_prog_ac_ct_WINDMC="windmc" | |
4927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4928 | break 2 | |
4929 | fi | |
4930 | done | |
4931 | done | |
4932 | IFS=$as_save_IFS | |
4933 | ||
4934 | fi | |
4935 | fi | |
4936 | ac_ct_WINDMC=$ac_cv_prog_ac_ct_WINDMC | |
4937 | if test -n "$ac_ct_WINDMC"; then | |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDMC" >&5 | |
4939 | $as_echo "$ac_ct_WINDMC" >&6; } | |
4940 | else | |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4942 | $as_echo "no" >&6; } | |
4943 | fi | |
4944 | ||
4945 | if test "x$ac_ct_WINDMC" = x; then | |
4946 | WINDMC="" | |
4947 | else | |
4948 | case $cross_compiling:$ac_tool_warned in | |
4949 | yes:) | |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4951 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4952 | ac_tool_warned=yes ;; | |
4953 | esac | |
4954 | WINDMC=$ac_ct_WINDMC | |
4955 | fi | |
4956 | else | |
4957 | WINDMC="$ac_cv_prog_WINDMC" | |
4958 | fi | |
4959 | ||
4960 | if test -n "$ac_tool_prefix"; then | |
4961 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4962 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4964 | $as_echo_n "checking for $ac_word... " >&6; } | |
4965 | if ${ac_cv_prog_WINDRES+:} false; then : | |
4966 | $as_echo_n "(cached) " >&6 | |
4967 | else | |
4968 | if test -n "$WINDRES"; then | |
4969 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4970 | else | |
4971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4972 | for as_dir in $PATH | |
4973 | do | |
4974 | IFS=$as_save_IFS | |
4975 | test -z "$as_dir" && as_dir=. | |
4976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4978 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
4979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4980 | break 2 | |
4981 | fi | |
4982 | done | |
4983 | done | |
4984 | IFS=$as_save_IFS | |
4985 | ||
4986 | fi | |
4987 | fi | |
4988 | WINDRES=$ac_cv_prog_WINDRES | |
4989 | if test -n "$WINDRES"; then | |
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
4991 | $as_echo "$WINDRES" >&6; } | |
4992 | else | |
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4994 | $as_echo "no" >&6; } | |
4995 | fi | |
4996 | ||
4997 | ||
4998 | fi | |
4999 | if test -z "$ac_cv_prog_WINDRES"; then | |
5000 | ac_ct_WINDRES=$WINDRES | |
5001 | # Extract the first word of "windres", so it can be a program name with args. | |
5002 | set dummy windres; ac_word=$2 | |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5004 | $as_echo_n "checking for $ac_word... " >&6; } | |
5005 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : | |
5006 | $as_echo_n "(cached) " >&6 | |
5007 | else | |
5008 | if test -n "$ac_ct_WINDRES"; then | |
5009 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
5010 | else | |
5011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5012 | for as_dir in $PATH | |
5013 | do | |
5014 | IFS=$as_save_IFS | |
5015 | test -z "$as_dir" && as_dir=. | |
5016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5018 | ac_cv_prog_ac_ct_WINDRES="windres" | |
5019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5020 | break 2 | |
5021 | fi | |
5022 | done | |
5023 | done | |
5024 | IFS=$as_save_IFS | |
5025 | ||
5026 | fi | |
5027 | fi | |
5028 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
5029 | if test -n "$ac_ct_WINDRES"; then | |
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 | |
5031 | $as_echo "$ac_ct_WINDRES" >&6; } | |
5032 | else | |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5034 | $as_echo "no" >&6; } | |
5035 | fi | |
5036 | ||
5037 | if test "x$ac_ct_WINDRES" = x; then | |
5038 | WINDRES="" | |
5039 | else | |
5040 | case $cross_compiling:$ac_tool_warned in | |
5041 | yes:) | |
5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5043 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5044 | ac_tool_warned=yes ;; | |
5045 | esac | |
5046 | WINDRES=$ac_ct_WINDRES | |
5047 | fi | |
5048 | else | |
5049 | WINDRES="$ac_cv_prog_WINDRES" | |
5050 | fi | |
5051 | ||
5052 | ||
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makensis" >&5 | |
5054 | $as_echo_n "checking for makensis... " >&6; } | |
5055 | if test -z "$MAKENSIS"; then | |
5056 | if test -n "$PROGRAMFILES" && "$PROGRAMFILES/NSIS/makensis" -VERSION >/dev/null 2>&1; then | |
5057 | MAKENSIS="$PROGRAMFILES/NSIS/makensis" | |
5058 | elif makensis -VERSION >/dev/null 2>&1; then | |
5059 | MAKENSIS=makensis | |
5060 | fi | |
5061 | fi | |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MAKENSIS:-no}" >&5 | |
5063 | $as_echo "${MAKENSIS:-no}" >&6; } | |
5064 | ;; | |
5065 | esac | |
5066 | ||
5067 | # Check for SVN. | |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a build from SVN" >&5 | |
5069 | $as_echo_n "checking whether this is a build from SVN... " >&6; } | |
5070 | is_svn_build=no | |
5071 | svn_deps= | |
5072 | if test -f "$srcdir/.svn/wc.db"; then | |
5073 | # SVN 1.7, 1.8 working copy | |
5074 | svn_deps='${srcdir}/.svn/wc.db' | |
5075 | elif test -f "${srcdir}/.svn/entries"; then | |
5076 | # SVN <= 1.6 working copy (SVN 1.7 has empty entries file) | |
5077 | svn_deps='${srcdir}/.svn/entries' | |
5078 | fi | |
5079 | if test -n "$svn_deps"; then | |
5080 | is_svn_build=unknown | |
5081 | if (cd "$srcdir" && svn --version && svnversion && svn info) >/dev/null 2>&1; then | |
5082 | is_svn_build=yes | |
5083 | fi | |
5084 | fi | |
5085 | ||
5086 | if test "$is_svn_build" = "yes"; then | |
5087 | IS_SVN_BUILD_TRUE= | |
5088 | IS_SVN_BUILD_FALSE='#' | |
5089 | else | |
5090 | IS_SVN_BUILD_TRUE='#' | |
5091 | IS_SVN_BUILD_FALSE= | |
5092 | fi | |
5093 | ||
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_svn_build" >&5 | |
5095 | $as_echo "$is_svn_build" >&6; } | |
5096 | ||
5097 | # Note: On Linux, clock_gettime() requires -lrt which implies -lpthreads | |
5098 | # Check ommitted for now, gettimeofday() provides reasonable precision | |
5099 | # AC_SEARCH_LIBS(clock_gettime, rt) | |
5100 | ||
5101 | ||
5102 | ac_ext=cpp | |
5103 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5104 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5105 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5106 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
5108 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
5109 | if test -z "$CXXCPP"; then | |
5110 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
5111 | $as_echo_n "(cached) " >&6 | |
5112 | else | |
5113 | # Double quotes because CXXCPP needs to be expanded | |
5114 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
5115 | do | |
5116 | ac_preproc_ok=false | |
5117 | for ac_cxx_preproc_warn_flag in '' yes | |
5118 | do | |
5119 | # Use a header file that comes with gcc, so configuring glibc | |
5120 | # with a fresh cross-compiler works. | |
5121 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5122 | # <limits.h> exists even on freestanding compilers. | |
5123 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5124 | # not just through cpp. "Syntax error" is here to catch this case. | |
5125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5126 | /* end confdefs.h. */ | |
5127 | #ifdef __STDC__ | |
5128 | # include <limits.h> | |
5129 | #else | |
5130 | # include <assert.h> | |
5131 | #endif | |
5132 | Syntax error | |
5133 | _ACEOF | |
5134 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5135 | ||
5136 | else | |
5137 | # Broken: fails on valid input. | |
5138 | continue | |
5139 | fi | |
5140 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5141 | ||
5142 | # OK, works on sane cases. Now check whether nonexistent headers | |
5143 | # can be detected and how. | |
5144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5145 | /* end confdefs.h. */ | |
5146 | #include <ac_nonexistent.h> | |
5147 | _ACEOF | |
5148 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5149 | # Broken: success on invalid input. | |
5150 | continue | |
5151 | else | |
5152 | # Passes both tests. | |
5153 | ac_preproc_ok=: | |
5154 | break | |
5155 | fi | |
5156 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5157 | ||
5158 | done | |
5159 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5160 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5161 | if $ac_preproc_ok; then : | |
5162 | break | |
5163 | fi | |
5164 | ||
5165 | done | |
5166 | ac_cv_prog_CXXCPP=$CXXCPP | |
5167 | ||
5168 | fi | |
5169 | CXXCPP=$ac_cv_prog_CXXCPP | |
5170 | else | |
5171 | ac_cv_prog_CXXCPP=$CXXCPP | |
5172 | fi | |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
5174 | $as_echo "$CXXCPP" >&6; } | |
5175 | ac_preproc_ok=false | |
5176 | for ac_cxx_preproc_warn_flag in '' yes | |
5177 | do | |
5178 | # Use a header file that comes with gcc, so configuring glibc | |
5179 | # with a fresh cross-compiler works. | |
5180 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5181 | # <limits.h> exists even on freestanding compilers. | |
5182 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5183 | # not just through cpp. "Syntax error" is here to catch this case. | |
5184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5185 | /* end confdefs.h. */ | |
5186 | #ifdef __STDC__ | |
5187 | # include <limits.h> | |
5188 | #else | |
5189 | # include <assert.h> | |
5190 | #endif | |
5191 | Syntax error | |
5192 | _ACEOF | |
5193 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5194 | ||
5195 | else | |
5196 | # Broken: fails on valid input. | |
5197 | continue | |
5198 | fi | |
5199 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5200 | ||
5201 | # OK, works on sane cases. Now check whether nonexistent headers | |
5202 | # can be detected and how. | |
5203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5204 | /* end confdefs.h. */ | |
5205 | #include <ac_nonexistent.h> | |
5206 | _ACEOF | |
5207 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5208 | # Broken: success on invalid input. | |
5209 | continue | |
5210 | else | |
5211 | # Passes both tests. | |
5212 | ac_preproc_ok=: | |
5213 | break | |
5214 | fi | |
5215 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5216 | ||
5217 | done | |
5218 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5219 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5220 | if $ac_preproc_ok; then : | |
5221 | ||
5222 | else | |
5223 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5224 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5225 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
5226 | See \`config.log' for more details" "$LINENO" 5; } | |
5227 | fi | |
5228 | ||
5229 | ac_ext=cpp | |
5230 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5231 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5232 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5233 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5234 | ||
5235 | ||
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5237 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5238 | if ${ac_cv_path_GREP+:} false; then : | |
5239 | $as_echo_n "(cached) " >&6 | |
5240 | else | |
5241 | if test -z "$GREP"; then | |
5242 | ac_path_GREP_found=false | |
5243 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5245 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5246 | do | |
5247 | IFS=$as_save_IFS | |
5248 | test -z "$as_dir" && as_dir=. | |
5249 | for ac_prog in grep ggrep; do | |
5250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5251 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5252 | as_fn_executable_p "$ac_path_GREP" || continue | |
5253 | # Check for GNU ac_path_GREP and select it if it is found. | |
5254 | # Check for GNU $ac_path_GREP | |
5255 | case `"$ac_path_GREP" --version 2>&1` in | |
5256 | *GNU*) | |
5257 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5258 | *) | |
5259 | ac_count=0 | |
5260 | $as_echo_n 0123456789 >"conftest.in" | |
5261 | while : | |
5262 | do | |
5263 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5264 | mv "conftest.tmp" "conftest.in" | |
5265 | cp "conftest.in" "conftest.nl" | |
5266 | $as_echo 'GREP' >> "conftest.nl" | |
5267 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5268 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5269 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5270 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5271 | # Best one so far, save it but keep looking for a better one | |
5272 | ac_cv_path_GREP="$ac_path_GREP" | |
5273 | ac_path_GREP_max=$ac_count | |
5274 | fi | |
5275 | # 10*(2^10) chars as input seems more than enough | |
5276 | test $ac_count -gt 10 && break | |
5277 | done | |
5278 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5279 | esac | |
5280 | ||
5281 | $ac_path_GREP_found && break 3 | |
5282 | done | |
5283 | done | |
5284 | done | |
5285 | IFS=$as_save_IFS | |
5286 | if test -z "$ac_cv_path_GREP"; then | |
5287 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5288 | fi | |
5289 | else | |
5290 | ac_cv_path_GREP=$GREP | |
5291 | fi | |
5292 | ||
5293 | fi | |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5295 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5296 | GREP="$ac_cv_path_GREP" | |
5297 | ||
5298 | ||
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5300 | $as_echo_n "checking for egrep... " >&6; } | |
5301 | if ${ac_cv_path_EGREP+:} false; then : | |
5302 | $as_echo_n "(cached) " >&6 | |
5303 | else | |
5304 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5305 | then ac_cv_path_EGREP="$GREP -E" | |
5306 | else | |
5307 | if test -z "$EGREP"; then | |
5308 | ac_path_EGREP_found=false | |
5309 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5311 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5312 | do | |
5313 | IFS=$as_save_IFS | |
5314 | test -z "$as_dir" && as_dir=. | |
5315 | for ac_prog in egrep; do | |
5316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5317 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5318 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5319 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5320 | # Check for GNU $ac_path_EGREP | |
5321 | case `"$ac_path_EGREP" --version 2>&1` in | |
5322 | *GNU*) | |
5323 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5324 | *) | |
5325 | ac_count=0 | |
5326 | $as_echo_n 0123456789 >"conftest.in" | |
5327 | while : | |
5328 | do | |
5329 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5330 | mv "conftest.tmp" "conftest.in" | |
5331 | cp "conftest.in" "conftest.nl" | |
5332 | $as_echo 'EGREP' >> "conftest.nl" | |
5333 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5334 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5335 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5336 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5337 | # Best one so far, save it but keep looking for a better one | |
5338 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5339 | ac_path_EGREP_max=$ac_count | |
5340 | fi | |
5341 | # 10*(2^10) chars as input seems more than enough | |
5342 | test $ac_count -gt 10 && break | |
5343 | done | |
5344 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5345 | esac | |
5346 | ||
5347 | $ac_path_EGREP_found && break 3 | |
5348 | done | |
5349 | done | |
5350 | done | |
5351 | IFS=$as_save_IFS | |
5352 | if test -z "$ac_cv_path_EGREP"; then | |
5353 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5354 | fi | |
5355 | else | |
5356 | ac_cv_path_EGREP=$EGREP | |
5357 | fi | |
5358 | ||
5359 | fi | |
5360 | fi | |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5362 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5363 | EGREP="$ac_cv_path_EGREP" | |
5364 | ||
5365 | ||
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5367 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5368 | if ${ac_cv_header_stdc+:} false; then : | |
5369 | $as_echo_n "(cached) " >&6 | |
5370 | else | |
5371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5372 | /* end confdefs.h. */ | |
5373 | #include <stdlib.h> | |
5374 | #include <stdarg.h> | |
5375 | #include <string.h> | |
5376 | #include <float.h> | |
5377 | ||
5378 | int | |
5379 | main () | |
5380 | { | |
5381 | ||
5382 | ; | |
5383 | return 0; | |
5384 | } | |
5385 | _ACEOF | |
5386 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5387 | ac_cv_header_stdc=yes | |
5388 | else | |
5389 | ac_cv_header_stdc=no | |
5390 | fi | |
5391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5392 | ||
5393 | if test $ac_cv_header_stdc = yes; then | |
5394 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5396 | /* end confdefs.h. */ | |
5397 | #include <string.h> | |
5398 | ||
5399 | _ACEOF | |
5400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5401 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5402 | ||
5403 | else | |
5404 | ac_cv_header_stdc=no | |
5405 | fi | |
5406 | rm -f conftest* | |
5407 | ||
5408 | fi | |
5409 | ||
5410 | if test $ac_cv_header_stdc = yes; then | |
5411 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5413 | /* end confdefs.h. */ | |
5414 | #include <stdlib.h> | |
5415 | ||
5416 | _ACEOF | |
5417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5418 | $EGREP "free" >/dev/null 2>&1; then : | |
5419 | ||
5420 | else | |
5421 | ac_cv_header_stdc=no | |
5422 | fi | |
5423 | rm -f conftest* | |
5424 | ||
5425 | fi | |
5426 | ||
5427 | if test $ac_cv_header_stdc = yes; then | |
5428 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5429 | if test "$cross_compiling" = yes; then : | |
5430 | : | |
5431 | else | |
5432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5433 | /* end confdefs.h. */ | |
5434 | #include <ctype.h> | |
5435 | #include <stdlib.h> | |
5436 | #if ((' ' & 0x0FF) == 0x020) | |
5437 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5438 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5439 | #else | |
5440 | # define ISLOWER(c) \ | |
5441 | (('a' <= (c) && (c) <= 'i') \ | |
5442 | || ('j' <= (c) && (c) <= 'r') \ | |
5443 | || ('s' <= (c) && (c) <= 'z')) | |
5444 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5445 | #endif | |
5446 | ||
5447 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5448 | int | |
5449 | main () | |
5450 | { | |
5451 | int i; | |
5452 | for (i = 0; i < 256; i++) | |
5453 | if (XOR (islower (i), ISLOWER (i)) | |
5454 | || toupper (i) != TOUPPER (i)) | |
5455 | return 2; | |
5456 | return 0; | |
5457 | } | |
5458 | _ACEOF | |
5459 | if ac_fn_cxx_try_run "$LINENO"; then : | |
5460 | ||
5461 | else | |
5462 | ac_cv_header_stdc=no | |
5463 | fi | |
5464 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5465 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5466 | fi | |
5467 | ||
5468 | fi | |
5469 | fi | |
5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5471 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5472 | if test $ac_cv_header_stdc = yes; then | |
5473 | ||
5474 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5475 | ||
5476 | fi | |
5477 | ||
5478 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5479 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5480 | inttypes.h stdint.h unistd.h | |
5481 | do : | |
5482 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5483 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5484 | " | |
5485 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5486 | cat >>confdefs.h <<_ACEOF | |
5487 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5488 | _ACEOF | |
5489 | ||
5490 | fi | |
5491 | ||
5492 | done | |
5493 | ||
5494 | ||
5495 | for ac_header in locale.h | |
5496 | do : | |
5497 | ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" | |
5498 | if test "x$ac_cv_header_locale_h" = xyes; then : | |
5499 | cat >>confdefs.h <<_ACEOF | |
5500 | #define HAVE_LOCALE_H 1 | |
5501 | _ACEOF | |
5502 | ||
5503 | fi | |
5504 | ||
5505 | done | |
5506 | ||
5507 | for ac_header in dev/ata/atavar.h | |
5508 | do : | |
5509 | ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ata/atavar.h" "ac_cv_header_dev_ata_atavar_h" "$ac_includes_default" | |
5510 | if test "x$ac_cv_header_dev_ata_atavar_h" = xyes; then : | |
5511 | cat >>confdefs.h <<_ACEOF | |
5512 | #define HAVE_DEV_ATA_ATAVAR_H 1 | |
5513 | _ACEOF | |
5514 | ||
5515 | fi | |
5516 | ||
5517 | done | |
5518 | ||
5519 | for ac_header in inttypes.h | |
5520 | do : | |
5521 | ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
5522 | if test "x$ac_cv_header_inttypes_h" = xyes; then : | |
5523 | cat >>confdefs.h <<_ACEOF | |
5524 | #define HAVE_INTTYPES_H 1 | |
5525 | _ACEOF | |
5526 | ||
5527 | fi | |
5528 | ||
5529 | done | |
5530 | for ac_header in stdint.h | |
5531 | do : | |
5532 | ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
5533 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
5534 | cat >>confdefs.h <<_ACEOF | |
5535 | #define HAVE_STDINT_H 1 | |
5536 | _ACEOF | |
5537 | ||
5538 | fi | |
5539 | ||
5540 | done | |
5541 | for ac_header in sys/inttypes.h | |
5542 | do : | |
5543 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" | |
5544 | if test "x$ac_cv_header_sys_inttypes_h" = xyes; then : | |
5545 | cat >>confdefs.h <<_ACEOF | |
5546 | #define HAVE_SYS_INTTYPES_H 1 | |
5547 | _ACEOF | |
5548 | ||
5549 | fi | |
5550 | ||
5551 | done | |
5552 | for ac_header in sys/int_types.h | |
5553 | do : | |
5554 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default" | |
5555 | if test "x$ac_cv_header_sys_int_types_h" = xyes; then : | |
5556 | cat >>confdefs.h <<_ACEOF | |
5557 | #define HAVE_SYS_INT_TYPES_H 1 | |
5558 | _ACEOF | |
5559 | ||
5560 | fi | |
5561 | ||
5562 | done | |
5563 | for ac_header in sys/tweio.h | |
5564 | do : | |
5565 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/tweio.h" "ac_cv_header_sys_tweio_h" "$ac_includes_default" | |
5566 | if test "x$ac_cv_header_sys_tweio_h" = xyes; then : | |
5567 | cat >>confdefs.h <<_ACEOF | |
5568 | #define HAVE_SYS_TWEIO_H 1 | |
5569 | _ACEOF | |
5570 | ||
5571 | fi | |
5572 | ||
5573 | done | |
5574 | ||
5575 | for ac_header in sys/twereg.h | |
5576 | do : | |
5577 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/twereg.h" "ac_cv_header_sys_twereg_h" "$ac_includes_default" | |
5578 | if test "x$ac_cv_header_sys_twereg_h" = xyes; then : | |
5579 | cat >>confdefs.h <<_ACEOF | |
5580 | #define HAVE_SYS_TWEREG_H 1 | |
5581 | _ACEOF | |
5582 | ||
5583 | fi | |
5584 | ||
5585 | done | |
5586 | ||
5587 | for ac_header in sys/tw_osl_ioctl.h | |
5588 | do : | |
5589 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/tw_osl_ioctl.h" "ac_cv_header_sys_tw_osl_ioctl_h" "$ac_includes_default" | |
5590 | if test "x$ac_cv_header_sys_tw_osl_ioctl_h" = xyes; then : | |
5591 | cat >>confdefs.h <<_ACEOF | |
5592 | #define HAVE_SYS_TW_OSL_IOCTL_H 1 | |
5593 | _ACEOF | |
5594 | ||
5595 | fi | |
5596 | ||
5597 | done | |
5598 | ||
5599 | for ac_header in linux/compiler.h | |
5600 | do : | |
5601 | ac_fn_cxx_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default" | |
5602 | if test "x$ac_cv_header_linux_compiler_h" = xyes; then : | |
5603 | cat >>confdefs.h <<_ACEOF | |
5604 | #define HAVE_LINUX_COMPILER_H 1 | |
5605 | _ACEOF | |
5606 | ||
5607 | fi | |
5608 | ||
5609 | done | |
5610 | ||
5611 | for ac_header in dev/ciss/cissio.h | |
5612 | do : | |
5613 | ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ciss/cissio.h" "ac_cv_header_dev_ciss_cissio_h" "$ac_includes_default" | |
5614 | if test "x$ac_cv_header_dev_ciss_cissio_h" = xyes; then : | |
5615 | cat >>confdefs.h <<_ACEOF | |
5616 | #define HAVE_DEV_CISS_CISSIO_H 1 | |
5617 | _ACEOF | |
5618 | ||
5619 | $as_echo "#define CISS_LOCATION <dev/ciss/cissio.h>" >>confdefs.h | |
5620 | ||
5621 | else | |
5622 | ||
5623 | $as_echo "#define CISS_LOCATION \"cissio_freebsd.h\"" >>confdefs.h | |
5624 | ||
5625 | ||
5626 | fi | |
5627 | ||
5628 | done | |
5629 | ||
5630 | for ac_header in linux/cciss_ioctl.h | |
5631 | do : | |
5632 | ac_fn_cxx_check_header_compile "$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default | |
5633 | #ifdef HAVE_LINUX_COMPILER_H | |
5634 | # include <linux/compiler.h> | |
5635 | #endif | |
5636 | ||
5637 | " | |
5638 | if test "x$ac_cv_header_linux_cciss_ioctl_h" = xyes; then : | |
5639 | cat >>confdefs.h <<_ACEOF | |
5640 | #define HAVE_LINUX_CCISS_IOCTL_H 1 | |
5641 | _ACEOF | |
5642 | ||
5643 | fi | |
5644 | ||
5645 | done | |
5646 | ||
5647 | for ac_header in ntdddisk.h ddk/ntdddisk.h | |
5648 | do : | |
5649 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5650 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5651 | #include <windows.h> | |
5652 | ||
5653 | " | |
5654 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5655 | cat >>confdefs.h <<_ACEOF | |
5656 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5657 | _ACEOF | |
5658 | ||
5659 | fi | |
5660 | ||
5661 | done | |
5662 | ||
5663 | for ac_header in wbemcli.h | |
5664 | do : | |
5665 | ac_fn_cxx_check_header_mongrel "$LINENO" "wbemcli.h" "ac_cv_header_wbemcli_h" "$ac_includes_default" | |
5666 | if test "x$ac_cv_header_wbemcli_h" = xyes; then : | |
5667 | cat >>confdefs.h <<_ACEOF | |
5668 | #define HAVE_WBEMCLI_H 1 | |
5669 | _ACEOF | |
5670 | ||
5671 | fi | |
5672 | ||
5673 | done | |
5674 | ||
5675 | ||
5676 | ac_fn_cxx_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" | |
5677 | if test "x$ac_cv_type_int64_t" = xyes; then : | |
5678 | ||
5679 | cat >>confdefs.h <<_ACEOF | |
5680 | #define HAVE_INT64_T 1 | |
5681 | _ACEOF | |
5682 | ||
5683 | ||
5684 | fi | |
5685 | ac_fn_cxx_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" | |
5686 | if test "x$ac_cv_type_uint64_t" = xyes; then : | |
5687 | ||
5688 | cat >>confdefs.h <<_ACEOF | |
5689 | #define HAVE_UINT64_T 1 | |
5690 | _ACEOF | |
5691 | ||
5692 | ||
5693 | fi | |
5694 | ||
5695 | ||
5696 | for ac_func in getopt_long | |
5697 | do : | |
5698 | ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" | |
5699 | if test "x$ac_cv_func_getopt_long" = xyes; then : | |
5700 | cat >>confdefs.h <<_ACEOF | |
5701 | #define HAVE_GETOPT_LONG 1 | |
5702 | _ACEOF | |
5703 | need_getopt_long=no | |
5704 | else | |
5705 | need_getopt_long=yes | |
5706 | fi | |
5707 | done | |
5708 | ||
5709 | if test "$need_getopt_long" = "yes"; then | |
5710 | NEED_GETOPT_LONG_TRUE= | |
5711 | NEED_GETOPT_LONG_FALSE='#' | |
5712 | else | |
5713 | NEED_GETOPT_LONG_TRUE='#' | |
5714 | NEED_GETOPT_LONG_FALSE= | |
5715 | fi | |
5716 | ||
5717 | for ac_func in regcomp | |
5718 | do : | |
5719 | ac_fn_cxx_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" | |
5720 | if test "x$ac_cv_func_regcomp" = xyes; then : | |
5721 | cat >>confdefs.h <<_ACEOF | |
5722 | #define HAVE_REGCOMP 1 | |
5723 | _ACEOF | |
5724 | need_regex=no | |
5725 | else | |
5726 | need_regex=yes | |
5727 | fi | |
5728 | done | |
5729 | ||
5730 | if test "$need_regex" = "yes"; then | |
5731 | NEED_REGEX_TRUE= | |
5732 | NEED_REGEX_FALSE='#' | |
5733 | else | |
5734 | NEED_REGEX_TRUE='#' | |
5735 | NEED_REGEX_FALSE= | |
5736 | fi | |
5737 | ||
5738 | ||
5739 | for ac_func in sigset | |
5740 | do : | |
5741 | ac_fn_cxx_check_func "$LINENO" "sigset" "ac_cv_func_sigset" | |
5742 | if test "x$ac_cv_func_sigset" = xyes; then : | |
5743 | cat >>confdefs.h <<_ACEOF | |
5744 | #define HAVE_SIGSET 1 | |
5745 | _ACEOF | |
5746 | ||
5747 | fi | |
5748 | done | |
5749 | ||
5750 | for ac_func in strtoull | |
5751 | do : | |
5752 | ac_fn_cxx_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" | |
5753 | if test "x$ac_cv_func_strtoull" = xyes; then : | |
5754 | cat >>confdefs.h <<_ACEOF | |
5755 | #define HAVE_STRTOULL 1 | |
5756 | _ACEOF | |
5757 | ||
5758 | fi | |
5759 | done | |
5760 | ||
5761 | for ac_func in uname | |
5762 | do : | |
5763 | ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname" | |
5764 | if test "x$ac_cv_func_uname" = xyes; then : | |
5765 | cat >>confdefs.h <<_ACEOF | |
5766 | #define HAVE_UNAME 1 | |
5767 | _ACEOF | |
5768 | ||
5769 | fi | |
5770 | done | |
5771 | ||
5772 | for ac_func in clock_gettime ftime gettimeofday | |
5773 | do : | |
5774 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5775 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5776 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5777 | cat >>confdefs.h <<_ACEOF | |
5778 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5779 | _ACEOF | |
5780 | ||
5781 | fi | |
5782 | done | |
5783 | ||
5784 | ||
5785 | # Check byte ordering (defines WORDS_BIGENDIAN) | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5787 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5788 | if ${ac_cv_c_bigendian+:} false; then : | |
5789 | $as_echo_n "(cached) " >&6 | |
5790 | else | |
5791 | ac_cv_c_bigendian=unknown | |
5792 | # See if we're dealing with a universal compiler. | |
5793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5794 | /* end confdefs.h. */ | |
5795 | #ifndef __APPLE_CC__ | |
5796 | not a universal capable compiler | |
5797 | #endif | |
5798 | typedef int dummy; | |
5799 | ||
5800 | _ACEOF | |
5801 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5802 | ||
5803 | # Check for potential -arch flags. It is not universal unless | |
5804 | # there are at least two -arch flags with different values. | |
5805 | ac_arch= | |
5806 | ac_prev= | |
5807 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5808 | if test -n "$ac_prev"; then | |
5809 | case $ac_word in | |
5810 | i?86 | x86_64 | ppc | ppc64) | |
5811 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5812 | ac_arch=$ac_word | |
5813 | else | |
5814 | ac_cv_c_bigendian=universal | |
5815 | break | |
5816 | fi | |
5817 | ;; | |
5818 | esac | |
5819 | ac_prev= | |
5820 | elif test "x$ac_word" = "x-arch"; then | |
5821 | ac_prev=arch | |
5822 | fi | |
5823 | done | |
5824 | fi | |
5825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5826 | if test $ac_cv_c_bigendian = unknown; then | |
5827 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5829 | /* end confdefs.h. */ | |
5830 | #include <sys/types.h> | |
5831 | #include <sys/param.h> | |
5832 | ||
5833 | int | |
5834 | main () | |
5835 | { | |
5836 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5837 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5838 | && LITTLE_ENDIAN) | |
5839 | bogus endian macros | |
5840 | #endif | |
5841 | ||
5842 | ; | |
5843 | return 0; | |
5844 | } | |
5845 | _ACEOF | |
5846 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5847 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5849 | /* end confdefs.h. */ | |
5850 | #include <sys/types.h> | |
5851 | #include <sys/param.h> | |
5852 | ||
5853 | int | |
5854 | main () | |
5855 | { | |
5856 | #if BYTE_ORDER != BIG_ENDIAN | |
5857 | not big endian | |
5858 | #endif | |
5859 | ||
5860 | ; | |
5861 | return 0; | |
5862 | } | |
5863 | _ACEOF | |
5864 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5865 | ac_cv_c_bigendian=yes | |
5866 | else | |
5867 | ac_cv_c_bigendian=no | |
5868 | fi | |
5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5870 | fi | |
5871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5872 | fi | |
5873 | if test $ac_cv_c_bigendian = unknown; then | |
5874 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5876 | /* end confdefs.h. */ | |
5877 | #include <limits.h> | |
5878 | ||
5879 | int | |
5880 | main () | |
5881 | { | |
5882 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5883 | bogus endian macros | |
5884 | #endif | |
5885 | ||
5886 | ; | |
5887 | return 0; | |
5888 | } | |
5889 | _ACEOF | |
5890 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5891 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5893 | /* end confdefs.h. */ | |
5894 | #include <limits.h> | |
5895 | ||
5896 | int | |
5897 | main () | |
5898 | { | |
5899 | #ifndef _BIG_ENDIAN | |
5900 | not big endian | |
5901 | #endif | |
5902 | ||
5903 | ; | |
5904 | return 0; | |
5905 | } | |
5906 | _ACEOF | |
5907 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5908 | ac_cv_c_bigendian=yes | |
5909 | else | |
5910 | ac_cv_c_bigendian=no | |
5911 | fi | |
5912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5913 | fi | |
5914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5915 | fi | |
5916 | if test $ac_cv_c_bigendian = unknown; then | |
5917 | # Compile a test program. | |
5918 | if test "$cross_compiling" = yes; then : | |
5919 | # Try to guess by grepping values from an object file. | |
5920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5921 | /* end confdefs.h. */ | |
5922 | short int ascii_mm[] = | |
5923 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5924 | short int ascii_ii[] = | |
5925 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5926 | int use_ascii (int i) { | |
5927 | return ascii_mm[i] + ascii_ii[i]; | |
5928 | } | |
5929 | short int ebcdic_ii[] = | |
5930 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5931 | short int ebcdic_mm[] = | |
5932 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5933 | int use_ebcdic (int i) { | |
5934 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5935 | } | |
5936 | extern int foo; | |
5937 | ||
5938 | int | |
5939 | main () | |
5940 | { | |
5941 | return use_ascii (foo) == use_ebcdic (foo); | |
5942 | ; | |
5943 | return 0; | |
5944 | } | |
5945 | _ACEOF | |
5946 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5947 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5948 | ac_cv_c_bigendian=yes | |
5949 | fi | |
5950 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5951 | if test "$ac_cv_c_bigendian" = unknown; then | |
5952 | ac_cv_c_bigendian=no | |
5953 | else | |
5954 | # finding both strings is unlikely to happen, but who knows? | |
5955 | ac_cv_c_bigendian=unknown | |
5956 | fi | |
5957 | fi | |
5958 | fi | |
5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5960 | else | |
5961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5962 | /* end confdefs.h. */ | |
5963 | $ac_includes_default | |
5964 | int | |
5965 | main () | |
5966 | { | |
5967 | ||
5968 | /* Are we little or big endian? From Harbison&Steele. */ | |
5969 | union | |
5970 | { | |
5971 | long int l; | |
5972 | char c[sizeof (long int)]; | |
5973 | } u; | |
5974 | u.l = 1; | |
5975 | return u.c[sizeof (long int) - 1] == 1; | |
5976 | ||
5977 | ; | |
5978 | return 0; | |
5979 | } | |
5980 | _ACEOF | |
5981 | if ac_fn_cxx_try_run "$LINENO"; then : | |
5982 | ac_cv_c_bigendian=no | |
5983 | else | |
5984 | ac_cv_c_bigendian=yes | |
5985 | fi | |
5986 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5987 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5988 | fi | |
5989 | ||
5990 | fi | |
5991 | fi | |
5992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5993 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5994 | case $ac_cv_c_bigendian in #( | |
5995 | yes) | |
5996 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5997 | ;; #( | |
5998 | no) | |
5999 | ;; #( | |
6000 | universal) | |
6001 | ||
6002 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
6003 | ||
6004 | ;; #( | |
6005 | *) | |
6006 | as_fn_error $? "unknown endianness | |
6007 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
6008 | esac | |
6009 | ||
6010 | ||
6011 | # check for __attribute__((packed)) | |
6012 | # (sizeof() check is required to avoid false positives if other | |
6013 | # __attribute__((x)) are supported) | |
6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __attribute__((packed))" >&5 | |
6015 | $as_echo_n "checking whether $CXX supports __attribute__((packed))... " >&6; } | |
6016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6017 | /* end confdefs.h. */ | |
6018 | ||
6019 | int | |
6020 | main () | |
6021 | { | |
6022 | ||
6023 | struct s { char a; short b; } __attribute__((packed)); | |
6024 | typedef char t[sizeof(struct s) == 3 ? 1 : -1]; | |
6025 | ; | |
6026 | return 0; | |
6027 | } | |
6028 | _ACEOF | |
6029 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6030 | gcc_have_attr_packed=yes | |
6031 | else | |
6032 | gcc_have_attr_packed=no | |
6033 | fi | |
6034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6035 | ||
6036 | if test "$gcc_have_attr_packed" = "yes"; then | |
6037 | ||
6038 | $as_echo "#define HAVE_ATTR_PACKED 1" >>confdefs.h | |
6039 | ||
6040 | fi | |
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_attr_packed" >&5 | |
6042 | $as_echo "$gcc_have_attr_packed" >&6; } | |
6043 | ||
6044 | ||
6045 | ||
6046 | ||
6047 | ||
6048 | ||
6049 | # Check whether --with-systemdsystemunitdir was given. | |
6050 | if test "${with_systemdsystemunitdir+set}" = set; then : | |
6051 | withval=$with_systemdsystemunitdir; | |
6052 | else | |
6053 | with_systemdsystemunitdir=auto | |
6054 | fi | |
6055 | ||
6056 | ||
6057 | systemdsystemunitdir= | |
6058 | case "$with_systemdsystemunitdir" in | |
6059 | auto|yes) | |
6060 | if test -n "$PKG_CONFIG"; then | |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemdsystemunitdir" >&5 | |
6062 | $as_echo_n "checking for systemdsystemunitdir... " >&6; } | |
6063 | systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd 2>/dev/null` | |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdsystemunitdir:-no}" >&5 | |
6065 | $as_echo "${systemdsystemunitdir:-no}" >&6; } | |
6066 | fi | |
6067 | case "$with_systemdsystemunitdir:$sysconfdir:$systemdsystemunitdir" in | |
6068 | yes:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;; | |
6069 | yes:*:*|auto:*:|auto:/etc:*) ;; | |
6070 | *) systemdsystemunitdir='${prefix}'$systemdsystemunitdir ;; | |
6071 | esac ;; | |
6072 | no) ;; | |
6073 | *) systemdsystemunitdir="$with_systemdsystemunitdir" ;; | |
6074 | esac | |
6075 | ||
6076 | if test -n "$systemdsystemunitdir"; then | |
6077 | INSTALL_SYSTEMDUNIT_TRUE= | |
6078 | INSTALL_SYSTEMDUNIT_FALSE='#' | |
6079 | else | |
6080 | INSTALL_SYSTEMDUNIT_TRUE='#' | |
6081 | INSTALL_SYSTEMDUNIT_FALSE= | |
6082 | fi | |
6083 | ||
6084 | ||
6085 | ||
6086 | # Check whether --with-systemdenvfile was given. | |
6087 | if test "${with_systemdenvfile+set}" = set; then : | |
6088 | withval=$with_systemdenvfile; | |
6089 | else | |
6090 | with_systemdenvfile=auto | |
6091 | fi | |
6092 | ||
6093 | ||
6094 | systemdenvfile= | |
6095 | case "$with_systemdenvfile:$cross_compiling:$systemdsystemunitdir" in | |
6096 | auto:no:?*|yes:*:?*) | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path of systemd EnvironmentFile" >&5 | |
6098 | $as_echo_n "checking for path of systemd EnvironmentFile... " >&6; } | |
6099 | for dir in sysconfig default; do | |
6100 | if test -d /etc/$dir; then | |
6101 | systemdenvfile='${sysconfdir}'/$dir/smartmontools | |
6102 | break | |
6103 | fi | |
6104 | done | |
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdenvfile:-no}" >&5 | |
6106 | $as_echo "${systemdenvfile:-no}" >&6; } | |
6107 | case "$with_systemdenvfile:$systemdenvfile" in | |
6108 | yes:) as_fn_error $? "Path of systemd EnvironmentFile not found" "$LINENO" 5 ;; | |
6109 | esac ;; | |
6110 | auto:*|no:*) ;; | |
6111 | *:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;; | |
6112 | *) systemdenvfile="$with_systemdenvfile" | |
6113 | esac | |
6114 | ||
6115 | ||
6116 | ||
6117 | # Check whether --with-initscriptdir was given. | |
6118 | if test "${with_initscriptdir+set}" = set; then : | |
6119 | withval=$with_initscriptdir; | |
6120 | else | |
6121 | with_initscriptdir=auto | |
6122 | fi | |
6123 | ||
6124 | ||
6125 | initddir= | |
6126 | case "$with_initscriptdir:$cross_compiling:$systemdsystemunitdir" in | |
6127 | auto:no:|yes:*) | |
6128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init (rc) directory" >&5 | |
6129 | $as_echo_n "checking for init (rc) directory... " >&6; } | |
6130 | for dir in rc.d/init.d init.d rc.d; do | |
6131 | if test -d /etc/$dir; then | |
6132 | initddir='${sysconfdir}'/$dir | |
6133 | break | |
6134 | fi | |
6135 | done | |
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${initddir:-no}" >&5 | |
6137 | $as_echo "${initddir:-no}" >&6; } | |
6138 | case "$with_initscriptdir:$initddir" in | |
6139 | yes:) as_fn_error $? "Location of init scripts not found" "$LINENO" 5 ;; | |
6140 | esac ;; | |
6141 | auto:*|no:*) ;; | |
6142 | *) initddir="$with_initscriptdir" ;; | |
6143 | esac | |
6144 | ||
6145 | if test -n "$initddir"; then | |
6146 | INSTALL_INITSCRIPT_TRUE= | |
6147 | INSTALL_INITSCRIPT_FALSE='#' | |
6148 | else | |
6149 | INSTALL_INITSCRIPT_TRUE='#' | |
6150 | INSTALL_INITSCRIPT_FALSE= | |
6151 | fi | |
6152 | ||
6153 | ||
6154 | # use different init script templates for different OS | |
6155 | case "${host}" in | |
6156 | *-*-freebsd*) | |
6157 | initdfile="smartd.freebsd.initd" | |
6158 | ;; | |
6159 | *-apple-darwin*) | |
6160 | initdfile="com.smartmontools.smartd.plist" | |
6161 | ;; | |
6162 | *) | |
6163 | initdfile="smartd.initd" | |
6164 | ;; | |
6165 | esac | |
6166 | ||
6167 | ||
6168 | ||
6169 | # Check whether --with-exampledir was given. | |
6170 | if test "${with_exampledir+set}" = set; then : | |
6171 | withval=$with_exampledir; exampledir="$withval" | |
6172 | else | |
6173 | exampledir='${docdir}/examplescripts' | |
6174 | fi | |
6175 | ||
6176 | ||
6177 | ||
6178 | drivedbdir='${datadir}/${PACKAGE}' | |
6179 | ||
6180 | # Check whether --with-drivedbdir was given. | |
6181 | if test "${with_drivedbdir+set}" = set; then : | |
6182 | withval=$with_drivedbdir; case "$withval" in yes) ;; no) drivedbdir= ;; *) drivedbdir="$withval" ;; esac | |
6183 | fi | |
6184 | ||
6185 | ||
6186 | if test -n "$drivedbdir"; then | |
6187 | ENABLE_DRIVEDB_TRUE= | |
6188 | ENABLE_DRIVEDB_FALSE='#' | |
6189 | else | |
6190 | ENABLE_DRIVEDB_TRUE='#' | |
6191 | ENABLE_DRIVEDB_FALSE= | |
6192 | fi | |
6193 | ||
6194 | ||
6195 | drivedb_version=$VERSION | |
6196 | ||
6197 | # Check whether --with-update-smart_drivedb was given. | |
6198 | if test "${with_update_smart_drivedb+set}" = set; then : | |
6199 | withval=$with_update_smart_drivedb; case "$withval" in | |
6200 | yes|no) ;; | |
6201 | 5.4[0-3]|6.[0-9]) drivedb_version=$withval; with_update_smart_drivedb=yes ;; | |
6202 | *) as_fn_error $? "Invalid drivedb branch version: $withval" "$LINENO" 5 ;; | |
6203 | esac | |
6204 | ||
6205 | else | |
6206 | with_update_smart_drivedb=yes | |
6207 | fi | |
6208 | ||
6209 | test -n "$drivedbdir" || with_update_smart_drivedb=no | |
6210 | ||
6211 | if test "$with_update_smart_drivedb" = "yes"; then | |
6212 | ENABLE_UPDATE_SMART_DRIVEDB_TRUE= | |
6213 | ENABLE_UPDATE_SMART_DRIVEDB_FALSE='#' | |
6214 | else | |
6215 | ENABLE_UPDATE_SMART_DRIVEDB_TRUE='#' | |
6216 | ENABLE_UPDATE_SMART_DRIVEDB_FALSE= | |
6217 | fi | |
6218 | ||
6219 | ||
6220 | gnupg="gpg" | |
6221 | # Also check for '--with-gnupg[=yes]' because 'yes' is a valid command with infinite output | |
6222 | ||
6223 | # Check whether --with-gnupg was given. | |
6224 | if test "${with_gnupg+set}" = set; then : | |
6225 | withval=$with_gnupg; case "$withval" in yes) ;; no) gnupg= ;; *) gnupg="$withval" ;; esac | |
6226 | fi | |
6227 | ||
6228 | ||
6229 | ||
6230 | case "$with_update_smart_drivedb:$gnupg" in | |
6231 | no:?*) | |
6232 | as_fn_error $? " | |
6233 | '--without-update-smart-drivedb' now requires '--without-gnupg'. | |
6234 | NEWS: update-smart-drivedb now verifies the downloaded drivedb.h file with GnuPG." "$LINENO" 5 | |
6235 | ;; | |
6236 | esac | |
6237 | ||
6238 | ||
6239 | # Check whether --with-smartdscriptdir was given. | |
6240 | if test "${with_smartdscriptdir+set}" = set; then : | |
6241 | withval=$with_smartdscriptdir; smartdscriptdir="$withval" | |
6242 | else | |
6243 | smartdscriptdir='${sysconfdir}' | |
6244 | fi | |
6245 | ||
6246 | ||
6247 | ||
6248 | ||
6249 | # Check whether --with-smartdplugindir was given. | |
6250 | if test "${with_smartdplugindir+set}" = set; then : | |
6251 | withval=$with_smartdplugindir; smartdplugindir=; test "$withval" != "no" && smartdplugindir="$withval" | |
6252 | else | |
6253 | smartdplugindir='${smartdscriptdir}/smartd_warning.d' | |
6254 | fi | |
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | # Check whether --with-scriptpath was given. | |
6260 | if test "${with_scriptpath+set}" = set; then : | |
6261 | withval=$with_scriptpath; scriptpath=; test "$withval" != "no" && scriptpath="$withval" | |
6262 | else | |
6263 | scriptpath="/usr/bin:/bin" | |
6264 | fi | |
6265 | ||
6266 | ||
6267 | if test -n "$scriptpath"; then | |
6268 | ENABLE_SCRIPTPATH_TRUE= | |
6269 | ENABLE_SCRIPTPATH_FALSE='#' | |
6270 | else | |
6271 | ENABLE_SCRIPTPATH_TRUE='#' | |
6272 | ENABLE_SCRIPTPATH_FALSE= | |
6273 | fi | |
6274 | ||
6275 | ||
6276 | savestates= | |
6277 | ||
6278 | # Check whether --with-savestates was given. | |
6279 | if test "${with_savestates+set}" = set; then : | |
6280 | withval=$with_savestates; case "$withval" in yes) savestates='${localstatedir}/lib/${PACKAGE}/smartd.' ;; | |
6281 | no) ;; *) savestates="$withval" ;; esac | |
6282 | fi | |
6283 | ||
6284 | savestatesdir="${savestates%/*}" | |
6285 | ||
6286 | ||
6287 | if test -n "$savestates"; then | |
6288 | ENABLE_SAVESTATES_TRUE= | |
6289 | ENABLE_SAVESTATES_FALSE='#' | |
6290 | else | |
6291 | ENABLE_SAVESTATES_TRUE='#' | |
6292 | ENABLE_SAVESTATES_FALSE= | |
6293 | fi | |
6294 | ||
6295 | ||
6296 | attributelog= | |
6297 | ||
6298 | # Check whether --with-attributelog was given. | |
6299 | if test "${with_attributelog+set}" = set; then : | |
6300 | withval=$with_attributelog; case "$withval" in yes) attributelog='${localstatedir}/lib/${PACKAGE}/attrlog.' ;; | |
6301 | no) ;; *) attributelog="$withval" ;; esac | |
6302 | fi | |
6303 | ||
6304 | attributelogdir="${attributelog%/*}" | |
6305 | ||
6306 | ||
6307 | if test -n "$attributelog"; then | |
6308 | ENABLE_ATTRIBUTELOG_TRUE= | |
6309 | ENABLE_ATTRIBUTELOG_FALSE='#' | |
6310 | else | |
6311 | ENABLE_ATTRIBUTELOG_TRUE='#' | |
6312 | ENABLE_ATTRIBUTELOG_FALSE= | |
6313 | fi | |
6314 | ||
6315 | ||
6316 | # Check whether --enable-sample was given. | |
6317 | if test "${enable_sample+set}" = set; then : | |
6318 | enableval=$enable_sample; smartd_suffix=; test "$enableval" = "yes" && smartd_suffix=".sample" | |
6319 | else | |
6320 | smartd_suffix=; | |
6321 | fi | |
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | # Check whether --with-os-deps was given. | |
6327 | if test "${with_os_deps+set}" = set; then : | |
6328 | withval=$with_os_deps; for x in $with_os_deps; do | |
6329 | case $x in | |
6330 | *.o) ;; | |
6331 | *) as_fn_error $? "non-object file specified by --with-os-deps" "$LINENO" 5 ;; | |
6332 | esac | |
6333 | done | |
6334 | ||
6335 | fi | |
6336 | ||
6337 | ||
6338 | ||
6339 | # Check whether --with-selinux was given. | |
6340 | if test "${with_selinux+set}" = set; then : | |
6341 | withval=$with_selinux; if test "$withval" = "yes"; then | |
6342 | for ac_header in selinux/selinux.h | |
6343 | do : | |
6344 | ac_fn_cxx_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
6345 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | |
6346 | cat >>confdefs.h <<_ACEOF | |
6347 | #define HAVE_SELINUX_SELINUX_H 1 | |
6348 | _ACEOF | |
6349 | ||
6350 | else | |
6351 | as_fn_error $? "Missing SELinux header files" "$LINENO" 5 | |
6352 | fi | |
6353 | ||
6354 | done | |
6355 | ||
6356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matchpathcon in -lselinux" >&5 | |
6357 | $as_echo_n "checking for matchpathcon in -lselinux... " >&6; } | |
6358 | if ${ac_cv_lib_selinux_matchpathcon+:} false; then : | |
6359 | $as_echo_n "(cached) " >&6 | |
6360 | else | |
6361 | ac_check_lib_save_LIBS=$LIBS | |
6362 | LIBS="-lselinux $LIBS" | |
6363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6364 | /* end confdefs.h. */ | |
6365 | ||
6366 | /* Override any GCC internal prototype to avoid an error. | |
6367 | Use char because int might match the return type of a GCC | |
6368 | builtin and then its argument prototype would still apply. */ | |
6369 | #ifdef __cplusplus | |
6370 | extern "C" | |
6371 | #endif | |
6372 | char matchpathcon (); | |
6373 | int | |
6374 | main () | |
6375 | { | |
6376 | return matchpathcon (); | |
6377 | ; | |
6378 | return 0; | |
6379 | } | |
6380 | _ACEOF | |
6381 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6382 | ac_cv_lib_selinux_matchpathcon=yes | |
6383 | else | |
6384 | ac_cv_lib_selinux_matchpathcon=no | |
6385 | fi | |
6386 | rm -f core conftest.err conftest.$ac_objext \ | |
6387 | conftest$ac_exeext conftest.$ac_ext | |
6388 | LIBS=$ac_check_lib_save_LIBS | |
6389 | fi | |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_matchpathcon" >&5 | |
6391 | $as_echo "$ac_cv_lib_selinux_matchpathcon" >&6; } | |
6392 | if test "x$ac_cv_lib_selinux_matchpathcon" = xyes; then : | |
6393 | cat >>confdefs.h <<_ACEOF | |
6394 | #define HAVE_LIBSELINUX 1 | |
6395 | _ACEOF | |
6396 | ||
6397 | LIBS="-lselinux $LIBS" | |
6398 | ||
6399 | else | |
6400 | as_fn_error $? "Missing or incorrect SELinux library files" "$LINENO" 5 | |
6401 | fi | |
6402 | ||
6403 | fi | |
6404 | ||
6405 | fi | |
6406 | ||
6407 | ||
6408 | if test "$with_selinux" = "yes"; then | |
6409 | ||
6410 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | |
6411 | ||
6412 | fi | |
6413 | ||
6414 | ||
6415 | # Check whether --with-libcap-ng was given. | |
6416 | if test "${with_libcap_ng+set}" = set; then : | |
6417 | withval=$with_libcap_ng; | |
6418 | else | |
6419 | with_libcap_ng=auto | |
6420 | fi | |
6421 | ||
6422 | ||
6423 | use_libcap_ng=no | |
6424 | if test "$with_libcap_ng" != "no"; then | |
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_clear in -lcap-ng" >&5 | |
6426 | $as_echo_n "checking for capng_clear in -lcap-ng... " >&6; } | |
6427 | if ${ac_cv_lib_cap_ng_capng_clear+:} false; then : | |
6428 | $as_echo_n "(cached) " >&6 | |
6429 | else | |
6430 | ac_check_lib_save_LIBS=$LIBS | |
6431 | LIBS="-lcap-ng $LIBS" | |
6432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6433 | /* end confdefs.h. */ | |
6434 | ||
6435 | /* Override any GCC internal prototype to avoid an error. | |
6436 | Use char because int might match the return type of a GCC | |
6437 | builtin and then its argument prototype would still apply. */ | |
6438 | #ifdef __cplusplus | |
6439 | extern "C" | |
6440 | #endif | |
6441 | char capng_clear (); | |
6442 | int | |
6443 | main () | |
6444 | { | |
6445 | return capng_clear (); | |
6446 | ; | |
6447 | return 0; | |
6448 | } | |
6449 | _ACEOF | |
6450 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6451 | ac_cv_lib_cap_ng_capng_clear=yes | |
6452 | else | |
6453 | ac_cv_lib_cap_ng_capng_clear=no | |
6454 | fi | |
6455 | rm -f core conftest.err conftest.$ac_objext \ | |
6456 | conftest$ac_exeext conftest.$ac_ext | |
6457 | LIBS=$ac_check_lib_save_LIBS | |
6458 | fi | |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_clear" >&5 | |
6460 | $as_echo "$ac_cv_lib_cap_ng_capng_clear" >&6; } | |
6461 | if test "x$ac_cv_lib_cap_ng_capng_clear" = xyes; then : | |
6462 | ||
6463 | $as_echo "#define HAVE_LIBCAP_NG 1" >>confdefs.h | |
6464 | CAPNG_LDADD="-lcap-ng"; use_libcap_ng=yes | |
6465 | fi | |
6466 | ||
6467 | ||
6468 | if test "$use_libcap_ng" = "yes"; then | |
6469 | ac_fn_cxx_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" | |
6470 | if test "x$ac_cv_header_cap_ng_h" = xyes; then : | |
6471 | ||
6472 | else | |
6473 | as_fn_error $? "libcap-ng libraries found but headers are missing" "$LINENO" 5 | |
6474 | fi | |
6475 | ||
6476 | ||
6477 | elif test "$with_libcap_ng" = "yes"; then | |
6478 | as_fn_error $? "libcap-ng support was requested but the library was not found" "$LINENO" 5 | |
6479 | fi | |
6480 | fi | |
6481 | ||
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5 | |
6483 | $as_echo_n "checking whether to use libcap-ng... " >&6; } | |
6484 | ||
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libcap_ng" >&5 | |
6486 | $as_echo "$use_libcap_ng" >&6; } | |
6487 | ||
6488 | # TODO: Remove when NVMe support is no longer EXPERIMENTAL | |
6489 | ||
6490 | # Check whether --with-nvme-devicescan was given. | |
6491 | if test "${with_nvme_devicescan+set}" = set; then : | |
6492 | withval=$with_nvme_devicescan; | |
6493 | fi | |
6494 | ||
6495 | ||
6496 | if test "$with_nvme_devicescan" = "yes"; then | |
6497 | ||
6498 | $as_echo "#define WITH_NVME_DEVICESCAN 1" >>confdefs.h | |
6499 | ||
6500 | fi | |
6501 | ||
6502 | ||
6503 | # Check whether --with-solaris-sparc-ata was given. | |
6504 | if test "${with_solaris_sparc_ata+set}" = set; then : | |
6505 | withval=$with_solaris_sparc_ata; | |
6506 | fi | |
6507 | ||
6508 | ||
6509 | case "$host:$with_solaris_sparc_ata" in | |
6510 | sparc-*-solaris*:yes) | |
6511 | if test ! -f "$srcdir/os_solaris_ata.s"; then | |
6512 | as_fn_error $? "Missing source file: $srcdir/os_solaris_ata.s | |
6513 | This file is no longer included in the source tarball but still | |
6514 | available in the SVN repository." "$LINENO" 5 | |
6515 | fi | |
6516 | ||
6517 | $as_echo "#define WITH_SOLARIS_SPARC_ATA 1" >>confdefs.h | |
6518 | ||
6519 | ;; | |
6520 | esac | |
6521 | ||
6522 | # Assume broken snprintf only on Windows with MSVCRT (MinGW without ANSI stdio support) | |
6523 | libc_have_working_snprintf=yes | |
6524 | ||
6525 | case "$host" in | |
6526 | *-*-mingw*) | |
6527 | case " $CPPFLAGS $CXXFLAGS" in | |
6528 | *\ -[DU]__USE_MINGW_ANSI_STDIO*) | |
6529 | ;; | |
6530 | *) | |
6531 | # Older MinGW do not properly define PRI?64 if __USE_MINGW_ANSI_STDIO is set | |
6532 | # Newer MinGW set __USE_MINGW_ANSI_STDIO in first C++ include which may be too late | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __USE_MINGW_ANSI_STDIO is defined by C++ includes" >&5 | |
6534 | $as_echo_n "checking whether __USE_MINGW_ANSI_STDIO is defined by C++ includes... " >&6; } | |
6535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6536 | /* end confdefs.h. */ | |
6537 | ||
6538 | #undef __USE_MINGW_ANSI_STDIO | |
6539 | #include <iostream> | |
6540 | #ifndef __USE_MINGW_ANSI_STDIO | |
6541 | #error false | |
6542 | #endif | |
6543 | _ACEOF | |
6544 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
6545 | CXXFLAGS="-D__USE_MINGW_ANSI_STDIO $CXXFLAGS" | |
6546 | else | |
6547 | libc_have_working_snprintf=no | |
6548 | fi | |
6549 | rm -f conftest.err conftest.i conftest.$ac_ext | |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_have_working_snprintf" >&5 | |
6551 | $as_echo "$libc_have_working_snprintf" >&6; } | |
6552 | ;; | |
6553 | esac ;; | |
6554 | esac | |
6555 | ||
6556 | ||
6557 | # Check whether --with-working-snprintf was given. | |
6558 | if test "${with_working_snprintf+set}" = set; then : | |
6559 | withval=$with_working_snprintf; libc_have_working_snprintf=$withval | |
6560 | fi | |
6561 | ||
6562 | ||
6563 | if test "$libc_have_working_snprintf" = "yes"; then | |
6564 | ||
6565 | $as_echo "#define HAVE_WORKING_SNPRINTF 1" >>confdefs.h | |
6566 | fi | |
6567 | ||
6568 | ||
6569 | # Check whether --with-mingw-aslr was given. | |
6570 | if test "${with_mingw_aslr+set}" = set; then : | |
6571 | withval=$with_mingw_aslr; | |
6572 | else | |
6573 | with_mingw_aslr=auto | |
6574 | fi | |
6575 | ||
6576 | ||
6577 | case "$host:${LDFLAGS+set}" in | |
6578 | *-*-mingw*:) # MinGW defaults: link statically and indicate DEP and TS compatibility | |
6579 | LDFLAGS="-static -Wl,--nxcompat,--tsaware" ;; | |
6580 | esac | |
6581 | ||
6582 | case "$host:$with_mingw_aslr" in | |
6583 | x86_64-*-mingw*:auto) | |
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports --high-entropy-va" >&5 | |
6585 | $as_echo_n "checking whether $CXX supports --high-entropy-va... " >&6; } | |
6586 | save_LDFLAGS=$LDFLAGS | |
6587 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000" | |
6588 | # Link libstdc++ to detect MinGW 6.3.0 problems with high --image-base | |
6589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6590 | /* end confdefs.h. */ | |
6591 | ||
6592 | #include <string> | |
6593 | std::string s(42, '.'); | |
6594 | int | |
6595 | main () | |
6596 | { | |
6597 | ||
6598 | ; | |
6599 | return 0; | |
6600 | } | |
6601 | _ACEOF | |
6602 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6603 | with_mingw_aslr=yes | |
6604 | else | |
6605 | with_mingw_aslr=no | |
6606 | fi | |
6607 | rm -f core conftest.err conftest.$ac_objext \ | |
6608 | conftest$ac_exeext conftest.$ac_ext | |
6609 | LDFLAGS=$save_LDFLAGS | |
6610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mingw_aslr" >&5 | |
6611 | $as_echo "$with_mingw_aslr" >&6; } | |
6612 | test "$with_mingw_aslr" = "yes" || with_mingw_aslr=low | |
6613 | ;; | |
6614 | esac | |
6615 | ||
6616 | case "$host:$with_mingw_aslr" in | |
6617 | x86_64-*-mingw*:yes) | |
6618 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000" ;; | |
6619 | x86_64-*-mingw*:low) | |
6620 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup" ;; | |
6621 | *-*-mingw*:auto|*-*-mingw*:yes|*-*-mingw*:low) | |
6622 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-e_mainCRTStartup" ;; | |
6623 | esac | |
6624 | ||
6625 | os_win32_manifest= | |
6626 | case "$host" in | |
6627 | *-*-mingw*) | |
6628 | # Newer MinGW may add a default manifest | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX adds an application manifest" >&5 | |
6630 | $as_echo_n "checking whether $CXX adds an application manifest... " >&6; } | |
6631 | cc_adds_manifest=no | |
6632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6633 | /* end confdefs.h. */ | |
6634 | ||
6635 | int | |
6636 | main () | |
6637 | { | |
6638 | ||
6639 | ; | |
6640 | return 0; | |
6641 | } | |
6642 | _ACEOF | |
6643 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6644 | ||
6645 | if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '^1.*RT_MANIFEST' >/dev/null 2>&1; then | |
6646 | cc_adds_manifest=incomplete | |
6647 | # Manifest must provide a Win 10 compatibility ID | |
6648 | if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}' >/dev/null 2>&1; then | |
6649 | cc_adds_manifest=yes | |
6650 | fi | |
6651 | fi | |
6652 | else | |
6653 | as_fn_error $? "test compile failed" "$LINENO" 5 | |
6654 | fi | |
6655 | rm -f core conftest.err conftest.$ac_objext \ | |
6656 | conftest$ac_exeext conftest.$ac_ext | |
6657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_adds_manifest" >&5 | |
6658 | $as_echo "$cc_adds_manifest" >&6; } | |
6659 | test "$cc_adds_manifest" = "yes" || os_win32_manifest='os_win32/default.manifest' | |
6660 | ;; | |
6661 | esac | |
6662 | ||
6663 | ||
6664 | # Check whether --with-cxx11-option was given. | |
6665 | if test "${with_cxx11_option+set}" = set; then : | |
6666 | withval=$with_cxx11_option; | |
6667 | else | |
6668 | with_cxx11_option=auto | |
6669 | fi | |
6670 | ||
6671 | ||
6672 | check_cxx11_support() | |
6673 | { | |
6674 | save_CXXFLAGS=$CXXFLAGS | |
6675 | CXXFLAGS=$1 | |
6676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6677 | /* end confdefs.h. */ | |
6678 | ||
6679 | #if __cplusplus < 201103L | |
6680 | #error false | |
6681 | #endif | |
6682 | // use some C++11 features (and return v * 42 :-) | |
6683 | auto cxx11(long v) noexcept -> decltype(v) { | |
6684 | typedef decltype(v) t; t r = v; | |
6685 | static const t a[] = { -7, -1, 1, 2, 3 }; | |
6686 | static_assert(sizeof(r) == sizeof(a[0]), "fail"); | |
6687 | auto f = [](t x, t y){ return x * y; }; | |
6688 | for (const auto & e : a) r = f(r, e); | |
6689 | return r; | |
6690 | } | |
6691 | int | |
6692 | main () | |
6693 | { | |
6694 | ||
6695 | ; | |
6696 | return 0; | |
6697 | } | |
6698 | _ACEOF | |
6699 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6700 | CXXFLAGS=$save_CXXFLAGS; return 0 | |
6701 | else | |
6702 | CXXFLAGS=$save_CXXFLAGS; return 1 | |
6703 | fi | |
6704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6705 | } | |
6706 | ||
6707 | case "$with_cxx11_option" in | |
6708 | no) ;; | |
6709 | auto) | |
6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to accept C++11" >&5 | |
6711 | $as_echo_n "checking for $CXX option to accept C++11... " >&6; } | |
6712 | with_cxx11_option=unknown | |
6713 | for option in "" "-std=gnu++11" "-std=gnu++0x" "-std=c++11" "-std=c++0x"; do | |
6714 | if check_cxx11_support "$option"; then with_cxx11_option=$option; break; fi | |
6715 | done | |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_cxx11_option:-none needed}" >&5 | |
6717 | $as_echo "${with_cxx11_option:-none needed}" >&6; } | |
6718 | test "$with_cxx11_option" != "unknown" || as_fn_error $? " | |
6719 | This version of smartmontools does not use C++11 features, but future | |
6720 | versions possibly will. | |
6721 | This script was unable to determine a compiler option to enable C++11. | |
6722 | Use option '--with-cxx11-option=OPTION' to specify the compiler option | |
6723 | (it will be checked, but not used in the actual build). | |
6724 | Use option '--without-cxx11-option' to suppress this error message if the | |
6725 | compiler lacks C++11 support. | |
6726 | In both cases, please send info about compiler and platform to | |
6727 | $PACKAGE_BUGREPORT - Thanks!" "$LINENO" 5 | |
6728 | ;; | |
6729 | *) | |
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX $with_cxx11_option accepts C++11" >&5 | |
6731 | $as_echo_n "checking whether $CXX $with_cxx11_option accepts C++11... " >&6; } | |
6732 | res=no; check_cxx11_support "$with_cxx11_option" && res=yes | |
6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5 | |
6734 | $as_echo "$res" >&6; } | |
6735 | test "$res" = "yes" || as_fn_error $? "$CXX $with_cxx11_option does not accept C++11" "$LINENO" 5 | |
6736 | ;; | |
6737 | esac | |
6738 | ||
6739 | ||
6740 | releaseversion='${PACKAGE}-${VERSION}' | |
6741 | ||
6742 | ||
6743 | ||
6744 | ||
6745 | # Set platform-specific modules and symbols | |
6746 | os_libs= | |
6747 | os_dltools='curl wget lynx svn' | |
6748 | os_mailer=mail | |
6749 | os_hostname="'hostname'" | |
6750 | os_dnsdomainname= | |
6751 | os_nisdomainname="'domainname'" | |
6752 | os_darwin=no | |
6753 | os_solaris=no | |
6754 | os_win32=no | |
6755 | os_win32_mingw=no | |
6756 | os_win64=no | |
6757 | os_man_filter= | |
6758 | case "${host}" in | |
6759 | *-*-linux*) | |
6760 | os_deps='os_linux.o cciss.o dev_areca.o' | |
6761 | os_dnsdomainname="'dnsdomainname' 'hostname -d'" | |
6762 | os_nisdomainname="'nisdomainname' 'hostname -y' 'domainname'" | |
6763 | os_man_filter=Linux | |
6764 | ;; | |
6765 | *-*-freebsd*|*-*-dragonfly*|*-*-kfreebsd*-gnu*) | |
6766 | os_deps='os_freebsd.o cciss.o dev_areca.o' | |
6767 | os_libs='-lcam' | |
6768 | os_dltools='curl wget lynx fetch svn' | |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb20_dev_get_device_desc in -lusb" >&5 | |
6770 | $as_echo_n "checking for libusb20_dev_get_device_desc in -lusb... " >&6; } | |
6771 | if ${ac_cv_lib_usb_libusb20_dev_get_device_desc+:} false; then : | |
6772 | $as_echo_n "(cached) " >&6 | |
6773 | else | |
6774 | ac_check_lib_save_LIBS=$LIBS | |
6775 | LIBS="-lusb $LIBS" | |
6776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6777 | /* end confdefs.h. */ | |
6778 | ||
6779 | /* Override any GCC internal prototype to avoid an error. | |
6780 | Use char because int might match the return type of a GCC | |
6781 | builtin and then its argument prototype would still apply. */ | |
6782 | #ifdef __cplusplus | |
6783 | extern "C" | |
6784 | #endif | |
6785 | char libusb20_dev_get_device_desc (); | |
6786 | int | |
6787 | main () | |
6788 | { | |
6789 | return libusb20_dev_get_device_desc (); | |
6790 | ; | |
6791 | return 0; | |
6792 | } | |
6793 | _ACEOF | |
6794 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6795 | ac_cv_lib_usb_libusb20_dev_get_device_desc=yes | |
6796 | else | |
6797 | ac_cv_lib_usb_libusb20_dev_get_device_desc=no | |
6798 | fi | |
6799 | rm -f core conftest.err conftest.$ac_objext \ | |
6800 | conftest$ac_exeext conftest.$ac_ext | |
6801 | LIBS=$ac_check_lib_save_LIBS | |
6802 | fi | |
6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb20_dev_get_device_desc" >&5 | |
6804 | $as_echo "$ac_cv_lib_usb_libusb20_dev_get_device_desc" >&6; } | |
6805 | if test "x$ac_cv_lib_usb_libusb20_dev_get_device_desc" = xyes; then : | |
6806 | cat >>confdefs.h <<_ACEOF | |
6807 | #define HAVE_LIBUSB 1 | |
6808 | _ACEOF | |
6809 | ||
6810 | LIBS="-lusb $LIBS" | |
6811 | ||
6812 | fi | |
6813 | ||
6814 | os_man_filter=FreeBSD | |
6815 | ;; | |
6816 | sparc-*-solaris*) | |
6817 | os_deps='os_solaris.o' | |
6818 | test "$with_solaris_sparc_ata" = "yes" \ | |
6819 | && os_deps="$os_deps os_solaris_ata.o" | |
6820 | os_mailer='mailx' | |
6821 | os_solaris=yes | |
6822 | os_man_filter=Solaris | |
6823 | ;; | |
6824 | *-pc-solaris*) | |
6825 | os_deps='os_solaris.o' | |
6826 | os_mailer='mailx' | |
6827 | os_solaris=yes | |
6828 | os_man_filter=Solaris | |
6829 | ;; | |
6830 | *-*-netbsd*) | |
6831 | os_deps='os_netbsd.o' | |
6832 | os_libs='-lutil' | |
6833 | os_man_filter=NetBSD | |
6834 | ;; | |
6835 | *-*-openbsd*) | |
6836 | os_deps='os_openbsd.o' | |
6837 | os_libs='-lutil' | |
6838 | os_dltools='curl wget lynx ftp svn' | |
6839 | os_man_filter=OpenBSD | |
6840 | ;; | |
6841 | *-*-cygwin*) | |
6842 | os_deps='os_win32.o dev_areca.o' | |
6843 | os_mailer='email' | |
6844 | os_hostname="'hostname' 'echo "'"${HOSTNAME?unset}"'"'" | |
6845 | os_dnsdomainname="'dnsdomainname' 'hostname -d' 'echo "'"${USERDNSDOMAIN?unset}"'"'" | |
6846 | os_nisdomainname= | |
6847 | os_win32=yes | |
6848 | os_man_filter=Cygwin | |
6849 | ;; | |
6850 | x86_64-*-mingw*) | |
6851 | os_deps='os_win32.o dev_areca.o' | |
6852 | os_win32=yes | |
6853 | os_win32_mingw=yes | |
6854 | os_win64=yes | |
6855 | os_man_filter=Windows | |
6856 | ;; | |
6857 | *-*-mingw*) | |
6858 | os_deps='os_win32.o dev_areca.o' | |
6859 | os_win32=yes | |
6860 | os_win32_mingw=yes | |
6861 | os_man_filter=Windows | |
6862 | ;; | |
6863 | *-*-darwin*) | |
6864 | os_deps='os_darwin.o' | |
6865 | os_libs='-framework CoreFoundation -framework IOKit' | |
6866 | os_darwin=yes | |
6867 | os_man_filter=Darwin | |
6868 | ;; | |
6869 | *-*-nto-qnx*) | |
6870 | os_deps='os_qnxnto.o' | |
6871 | ;; | |
6872 | *-*-os2-*) | |
6873 | os_deps='os_os2.o' | |
6874 | ;; | |
6875 | *) | |
6876 | os_deps='os_generic.o' | |
6877 | ;; | |
6878 | esac | |
6879 | ||
6880 | # Replace if '--with-os-deps' was specified | |
6881 | test -z "$with_os_deps" || os_deps="$with_os_deps" | |
6882 | ||
6883 | # Check if we need adapter to old interface (dev_legacy.cpp) | |
6884 | os_src=`echo "${os_deps}"|sed -n 's,^\([^ .]*\)\.o.*$,\1.cpp,p'` | |
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${os_src} uses new interface" >&5 | |
6886 | $as_echo_n "checking whether ${os_src} uses new interface... " >&6; } | |
6887 | if grep "smart_interface" "${srcdir}/${os_src}" >/dev/null 2>&1; then | |
6888 | os_new_interface=yes | |
6889 | else | |
6890 | os_new_interface=no | |
6891 | os_deps="${os_deps} dev_legacy.o" | |
6892 | ||
6893 | $as_echo "#define OLD_INTERFACE 1" >>confdefs.h | |
6894 | ||
6895 | fi | |
6896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_new_interface" >&5 | |
6897 | $as_echo "$os_new_interface" >&6; } | |
6898 | ||
6899 | ||
6900 | ||
6901 | ||
6902 | ||
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
6908 | ||
6909 | # Create drivedb.h update branch name from version: 5.41[.X] -> RELEASE_5_41_DRIVEDB | |
6910 | DRIVEDB_BRANCH=`echo "$drivedb_version" | sed 's,^\([0-9]*\.[0-9]*\)\..*$,\1,' \ | |
6911 | | sed -n 's,^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$,RELEASE_\1_\2_DRIVEDB,p'` | |
6912 | if test -z "$DRIVEDB_BRANCH"; then | |
6913 | as_fn_error $? "Unable to create DRIVEDB_BRANCH for version: $drivedb_version" "$LINENO" 5 | |
6914 | fi | |
6915 | ||
6916 | ||
6917 | # Enable platform-specific makefile sections | |
6918 | if test "$os_darwin" = "yes"; then | |
6919 | OS_DARWIN_TRUE= | |
6920 | OS_DARWIN_FALSE='#' | |
6921 | else | |
6922 | OS_DARWIN_TRUE='#' | |
6923 | OS_DARWIN_FALSE= | |
6924 | fi | |
6925 | ||
6926 | if test "$os_solaris" = "yes"; then | |
6927 | OS_SOLARIS_TRUE= | |
6928 | OS_SOLARIS_FALSE='#' | |
6929 | else | |
6930 | OS_SOLARIS_TRUE='#' | |
6931 | OS_SOLARIS_FALSE= | |
6932 | fi | |
6933 | ||
6934 | if test "$os_win32" = "yes"; then | |
6935 | OS_WIN32_TRUE= | |
6936 | OS_WIN32_FALSE='#' | |
6937 | else | |
6938 | OS_WIN32_TRUE='#' | |
6939 | OS_WIN32_FALSE= | |
6940 | fi | |
6941 | ||
6942 | if test "$os_win32_mingw" = "yes"; then | |
6943 | OS_WIN32_MINGW_TRUE= | |
6944 | OS_WIN32_MINGW_FALSE='#' | |
6945 | else | |
6946 | OS_WIN32_MINGW_TRUE='#' | |
6947 | OS_WIN32_MINGW_FALSE= | |
6948 | fi | |
6949 | ||
6950 | if test -n "$MAKENSIS"; then | |
6951 | OS_WIN32_NSIS_TRUE= | |
6952 | OS_WIN32_NSIS_FALSE='#' | |
6953 | else | |
6954 | OS_WIN32_NSIS_TRUE='#' | |
6955 | OS_WIN32_NSIS_FALSE= | |
6956 | fi | |
6957 | ||
6958 | if test "$os_win64" = "yes"; then | |
6959 | OS_WIN64_TRUE= | |
6960 | OS_WIN64_FALSE='#' | |
6961 | else | |
6962 | OS_WIN64_TRUE='#' | |
6963 | OS_WIN64_FALSE= | |
6964 | fi | |
6965 | ||
6966 | ||
6967 | if test "$GXX" = "yes"; then | |
6968 | # Add -Wall and -W[extra] if its not already specified | |
6969 | case " $CXXFLAGS " in | |
6970 | *\ -Wall\ *) ;; | |
6971 | *) CXXFLAGS="$CXXFLAGS -Wall" ;; | |
6972 | esac | |
6973 | case " $CXXFLAGS " in | |
6974 | *\ -W\ *|*\ -Wextra\ *) ;; | |
6975 | *) CXXFLAGS="$CXXFLAGS -W" ;; | |
6976 | esac | |
6977 | # Add -Wformat=2 (GCC 3.0) -fstack-protector[-strong] (GCC 4.1[4.9]) if supported | |
6978 | # and CXXFLAGS was not set in configure cmdline (TODO: -Wformat-signedness) | |
6979 | case "${ac_test_CXXFLAGS+set}:$ac_test_CXXFLAGS" in | |
6980 | set:) | |
6981 | for option in "-Wformat=2" "-fstack-protector-strong" "-fstack-protector"; do | |
6982 | case " $CXXFLAGS:$option" in *\ -fstack-p*:-fstack-p*) continue ;; esac | |
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 | |
6984 | $as_echo_n "checking whether $CXX supports $option... " >&6; } | |
6985 | save_CXXFLAGS=$CXXFLAGS | |
6986 | CXXFLAGS="$CXXFLAGS $option" | |
6987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6988 | /* end confdefs.h. */ | |
6989 | ||
6990 | int | |
6991 | main () | |
6992 | { | |
6993 | ||
6994 | ; | |
6995 | return 0; | |
6996 | } | |
6997 | _ACEOF | |
6998 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6999 | res=yes | |
7000 | else | |
7001 | res=no; CXXFLAGS=$save_CXXFLAGS | |
7002 | fi | |
7003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5 | |
7005 | $as_echo "$res" >&6; } | |
7006 | done | |
7007 | ;; | |
7008 | esac | |
7009 | else | |
7010 | # We are NOT using gcc, so enable host-specific compiler flags | |
7011 | case "${host}" in | |
7012 | sparc*-*-solaris*) | |
7013 | # Tell the Solaris/SPARC C++ compiler about packed ATA structures | |
7014 | case " $CXXFLAGS" in | |
7015 | *\ -xmemalign*) ;; | |
7016 | *) CXXFLAGS="-xmemalign=1i $CXXFLAGS" ;; | |
7017 | esac ;; | |
7018 | esac | |
7019 | case "${host}" in | |
7020 | *-*-solaris*) | |
7021 | # Turn on optimization if user has not explicitly set its value | |
7022 | case " $CXXFLAGS" in | |
7023 | *\ -xO*) ;; | |
7024 | *) CXXFLAGS="-xO2 $CXXFLAGS" ;; | |
7025 | esac | |
7026 | # Suppress trivial warnings | |
7027 | case " $CXXFLAGS" in | |
7028 | *\ -erroff*) ;; | |
7029 | *) CXXFLAGS="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w,badargtype2w $CXXFLAGS" ;; | |
7030 | esac ;; | |
7031 | esac | |
7032 | fi | |
7033 | ||
7034 | ||
7035 | cat >>confdefs.h <<_ACEOF | |
7036 | #define SMARTMONTOOLS_BUILD_HOST "${host}" | |
7037 | _ACEOF | |
7038 | ||
7039 | ||
7040 | ||
7041 | ||
7042 | ac_config_files="$ac_config_files Makefile" | |
7043 | ||
7044 | cat >confcache <<\_ACEOF | |
7045 | # This file is a shell script that caches the results of configure | |
7046 | # tests run on this system so they can be shared between configure | |
7047 | # scripts and configure runs, see configure's option --config-cache. | |
7048 | # It is not useful on other systems. If it contains results you don't | |
7049 | # want to keep, you may remove or edit it. | |
7050 | # | |
7051 | # config.status only pays attention to the cache file if you give it | |
7052 | # the --recheck option to rerun configure. | |
7053 | # | |
7054 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7055 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7056 | # following values. | |
7057 | ||
7058 | _ACEOF | |
7059 | ||
7060 | # The following way of writing the cache mishandles newlines in values, | |
7061 | # but we know of no workaround that is simple, portable, and efficient. | |
7062 | # So, we kill variables containing newlines. | |
7063 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7064 | # and sets the high bit in the cache file unless we assign to the vars. | |
7065 | ( | |
7066 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7067 | eval ac_val=\$$ac_var | |
7068 | case $ac_val in #( | |
7069 | *${as_nl}*) | |
7070 | case $ac_var in #( | |
7071 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7072 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7073 | esac | |
7074 | case $ac_var in #( | |
7075 | _ | IFS | as_nl) ;; #( | |
7076 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7077 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7078 | esac ;; | |
7079 | esac | |
7080 | done | |
7081 | ||
7082 | (set) 2>&1 | | |
7083 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
7084 | *${as_nl}ac_space=\ *) | |
7085 | # `set' does not quote correctly, so add quotes: double-quote | |
7086 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
7087 | sed -n \ | |
7088 | "s/'/'\\\\''/g; | |
7089 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7090 | ;; #( | |
7091 | *) | |
7092 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7093 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
7094 | ;; | |
7095 | esac | | |
7096 | sort | |
7097 | ) | | |
7098 | sed ' | |
7099 | /^ac_cv_env_/b end | |
7100 | t clear | |
7101 | :clear | |
7102 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7103 | t end | |
7104 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7105 | :end' >>confcache | |
7106 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7107 | if test -w "$cache_file"; then | |
7108 | if test "x$cache_file" != "x/dev/null"; then | |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7110 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
7111 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
7112 | cat confcache >"$cache_file" | |
7113 | else | |
7114 | case $cache_file in #( | |
7115 | */* | ?:*) | |
7116 | mv -f confcache "$cache_file"$$ && | |
7117 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7118 | *) | |
7119 | mv -f confcache "$cache_file" ;; | |
7120 | esac | |
7121 | fi | |
7122 | fi | |
7123 | else | |
7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
7125 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
7126 | fi | |
7127 | fi | |
7128 | rm -f confcache | |
7129 | ||
7130 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7131 | # Let make expand exec_prefix. | |
7132 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7133 | ||
7134 | DEFS=-DHAVE_CONFIG_H | |
7135 | ||
7136 | ac_libobjs= | |
7137 | ac_ltlibobjs= | |
7138 | U= | |
7139 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7140 | # 1. Remove the extension, and $U if already installed. | |
7141 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
7142 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7143 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7144 | # will be set to the directory where LIBOBJS objects are built. | |
7145 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7146 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
7147 | done | |
7148 | LIBOBJS=$ac_libobjs | |
7149 | ||
7150 | LTLIBOBJS=$ac_ltlibobjs | |
7151 | ||
7152 | ||
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
7154 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
7155 | if test -n "$am_sleep_pid"; then | |
7156 | # Hide warnings about reused PIDs. | |
7157 | wait $am_sleep_pid 2>/dev/null | |
7158 | fi | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
7160 | $as_echo "done" >&6; } | |
7161 | if test -n "$EXEEXT"; then | |
7162 | am__EXEEXT_TRUE= | |
7163 | am__EXEEXT_FALSE='#' | |
7164 | else | |
7165 | am__EXEEXT_TRUE='#' | |
7166 | am__EXEEXT_FALSE= | |
7167 | fi | |
7168 | ||
7169 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
7170 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
7171 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7172 | fi | |
7173 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
7174 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
7175 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7176 | fi | |
7177 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
7178 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
7179 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7180 | fi | |
7181 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
7182 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
7183 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7184 | fi | |
7185 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
7186 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
7187 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7188 | fi | |
7189 | if test -z "${IS_SVN_BUILD_TRUE}" && test -z "${IS_SVN_BUILD_FALSE}"; then | |
7190 | as_fn_error $? "conditional \"IS_SVN_BUILD\" was never defined. | |
7191 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7192 | fi | |
7193 | if test -z "${NEED_GETOPT_LONG_TRUE}" && test -z "${NEED_GETOPT_LONG_FALSE}"; then | |
7194 | as_fn_error $? "conditional \"NEED_GETOPT_LONG\" was never defined. | |
7195 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7196 | fi | |
7197 | if test -z "${NEED_REGEX_TRUE}" && test -z "${NEED_REGEX_FALSE}"; then | |
7198 | as_fn_error $? "conditional \"NEED_REGEX\" was never defined. | |
7199 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7200 | fi | |
7201 | ||
7202 | if test -z "${INSTALL_SYSTEMDUNIT_TRUE}" && test -z "${INSTALL_SYSTEMDUNIT_FALSE}"; then | |
7203 | as_fn_error $? "conditional \"INSTALL_SYSTEMDUNIT\" was never defined. | |
7204 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7205 | fi | |
7206 | if test -z "${INSTALL_INITSCRIPT_TRUE}" && test -z "${INSTALL_INITSCRIPT_FALSE}"; then | |
7207 | as_fn_error $? "conditional \"INSTALL_INITSCRIPT\" was never defined. | |
7208 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7209 | fi | |
7210 | if test -z "${ENABLE_DRIVEDB_TRUE}" && test -z "${ENABLE_DRIVEDB_FALSE}"; then | |
7211 | as_fn_error $? "conditional \"ENABLE_DRIVEDB\" was never defined. | |
7212 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7213 | fi | |
7214 | if test -z "${ENABLE_UPDATE_SMART_DRIVEDB_TRUE}" && test -z "${ENABLE_UPDATE_SMART_DRIVEDB_FALSE}"; then | |
7215 | as_fn_error $? "conditional \"ENABLE_UPDATE_SMART_DRIVEDB\" was never defined. | |
7216 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7217 | fi | |
7218 | if test -z "${ENABLE_SCRIPTPATH_TRUE}" && test -z "${ENABLE_SCRIPTPATH_FALSE}"; then | |
7219 | as_fn_error $? "conditional \"ENABLE_SCRIPTPATH\" was never defined. | |
7220 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7221 | fi | |
7222 | if test -z "${ENABLE_SAVESTATES_TRUE}" && test -z "${ENABLE_SAVESTATES_FALSE}"; then | |
7223 | as_fn_error $? "conditional \"ENABLE_SAVESTATES\" was never defined. | |
7224 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7225 | fi | |
7226 | if test -z "${ENABLE_ATTRIBUTELOG_TRUE}" && test -z "${ENABLE_ATTRIBUTELOG_FALSE}"; then | |
7227 | as_fn_error $? "conditional \"ENABLE_ATTRIBUTELOG\" was never defined. | |
7228 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7229 | fi | |
7230 | if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then | |
7231 | as_fn_error $? "conditional \"OS_DARWIN\" was never defined. | |
7232 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7233 | fi | |
7234 | if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then | |
7235 | as_fn_error $? "conditional \"OS_SOLARIS\" was never defined. | |
7236 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7237 | fi | |
7238 | if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then | |
7239 | as_fn_error $? "conditional \"OS_WIN32\" was never defined. | |
7240 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7241 | fi | |
7242 | if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then | |
7243 | as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined. | |
7244 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7245 | fi | |
7246 | if test -z "${OS_WIN32_NSIS_TRUE}" && test -z "${OS_WIN32_NSIS_FALSE}"; then | |
7247 | as_fn_error $? "conditional \"OS_WIN32_NSIS\" was never defined. | |
7248 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7249 | fi | |
7250 | if test -z "${OS_WIN64_TRUE}" && test -z "${OS_WIN64_FALSE}"; then | |
7251 | as_fn_error $? "conditional \"OS_WIN64\" was never defined. | |
7252 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7253 | fi | |
7254 | ||
7255 | : "${CONFIG_STATUS=./config.status}" | |
7256 | ac_write_fail=0 | |
7257 | ac_clean_files_save=$ac_clean_files | |
7258 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
7260 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7261 | as_write_fail=0 | |
7262 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
7263 | #! $SHELL | |
7264 | # Generated by $as_me. | |
7265 | # Run this file to recreate the current configuration. | |
7266 | # Compiler output produced by configure, useful for debugging | |
7267 | # configure, is in config.log if it exists. | |
7268 | ||
7269 | debug=false | |
7270 | ac_cs_recheck=false | |
7271 | ac_cs_silent=false | |
7272 | ||
7273 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7274 | export SHELL | |
7275 | _ASEOF | |
7276 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7277 | ## -------------------- ## | |
7278 | ## M4sh Initialization. ## | |
7279 | ## -------------------- ## | |
7280 | ||
7281 | # Be more Bourne compatible | |
7282 | DUALCASE=1; export DUALCASE # for MKS sh | |
7283 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
7284 | emulate sh | |
7285 | NULLCMD=: | |
7286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
7287 | # is contrary to our usage. Disable this feature. | |
7288 | alias -g '${1+"$@"}'='"$@"' | |
7289 | setopt NO_GLOB_SUBST | |
7290 | else | |
7291 | case `(set -o) 2>/dev/null` in #( | |
7292 | *posix*) : | |
7293 | set -o posix ;; #( | |
7294 | *) : | |
7295 | ;; | |
7296 | esac | |
7297 | fi | |
7298 | ||
7299 | ||
7300 | as_nl=' | |
7301 | ' | |
7302 | export as_nl | |
7303 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7304 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7305 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7306 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7307 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7308 | # but without wasting forks for bash or zsh. | |
7309 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7310 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7311 | as_echo='print -r --' | |
7312 | as_echo_n='print -rn --' | |
7313 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7314 | as_echo='printf %s\n' | |
7315 | as_echo_n='printf %s' | |
7316 | else | |
7317 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7318 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7319 | as_echo_n='/usr/ucb/echo -n' | |
7320 | else | |
7321 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7322 | as_echo_n_body='eval | |
7323 | arg=$1; | |
7324 | case $arg in #( | |
7325 | *"$as_nl"*) | |
7326 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7327 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7328 | esac; | |
7329 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7330 | ' | |
7331 | export as_echo_n_body | |
7332 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7333 | fi | |
7334 | export as_echo_body | |
7335 | as_echo='sh -c $as_echo_body as_echo' | |
7336 | fi | |
7337 | ||
7338 | # The user is always right. | |
7339 | if test "${PATH_SEPARATOR+set}" != set; then | |
7340 | PATH_SEPARATOR=: | |
7341 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7342 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7343 | PATH_SEPARATOR=';' | |
7344 | } | |
7345 | fi | |
7346 | ||
7347 | ||
7348 | # IFS | |
7349 | # We need space, tab and new line, in precisely that order. Quoting is | |
7350 | # there to prevent editors from complaining about space-tab. | |
7351 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7352 | # splitting by setting IFS to empty value.) | |
7353 | IFS=" "" $as_nl" | |
7354 | ||
7355 | # Find who we are. Look in the path if we contain no directory separator. | |
7356 | as_myself= | |
7357 | case $0 in #(( | |
7358 | *[\\/]* ) as_myself=$0 ;; | |
7359 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7360 | for as_dir in $PATH | |
7361 | do | |
7362 | IFS=$as_save_IFS | |
7363 | test -z "$as_dir" && as_dir=. | |
7364 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7365 | done | |
7366 | IFS=$as_save_IFS | |
7367 | ||
7368 | ;; | |
7369 | esac | |
7370 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7371 | # in which case we are not to be found in the path. | |
7372 | if test "x$as_myself" = x; then | |
7373 | as_myself=$0 | |
7374 | fi | |
7375 | if test ! -f "$as_myself"; then | |
7376 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7377 | exit 1 | |
7378 | fi | |
7379 | ||
7380 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7381 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7382 | # suppresses any "Segmentation fault" message there. '((' could | |
7383 | # trigger a bug in pdksh 5.2.14. | |
7384 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7385 | do eval test x\${$as_var+set} = xset \ | |
7386 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7387 | done | |
7388 | PS1='$ ' | |
7389 | PS2='> ' | |
7390 | PS4='+ ' | |
7391 | ||
7392 | # NLS nuisances. | |
7393 | LC_ALL=C | |
7394 | export LC_ALL | |
7395 | LANGUAGE=C | |
7396 | export LANGUAGE | |
7397 | ||
7398 | # CDPATH. | |
7399 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7400 | ||
7401 | ||
7402 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
7403 | # ---------------------------------------- | |
7404 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7405 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7406 | # script with STATUS, using 1 if that was 0. | |
7407 | as_fn_error () | |
7408 | { | |
7409 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
7410 | if test "$4"; then | |
7411 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7412 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7413 | fi | |
7414 | $as_echo "$as_me: error: $2" >&2 | |
7415 | as_fn_exit $as_status | |
7416 | } # as_fn_error | |
7417 | ||
7418 | ||
7419 | # as_fn_set_status STATUS | |
7420 | # ----------------------- | |
7421 | # Set $? to STATUS, without forking. | |
7422 | as_fn_set_status () | |
7423 | { | |
7424 | return $1 | |
7425 | } # as_fn_set_status | |
7426 | ||
7427 | # as_fn_exit STATUS | |
7428 | # ----------------- | |
7429 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7430 | as_fn_exit () | |
7431 | { | |
7432 | set +e | |
7433 | as_fn_set_status $1 | |
7434 | exit $1 | |
7435 | } # as_fn_exit | |
7436 | ||
7437 | # as_fn_unset VAR | |
7438 | # --------------- | |
7439 | # Portably unset VAR. | |
7440 | as_fn_unset () | |
7441 | { | |
7442 | { eval $1=; unset $1;} | |
7443 | } | |
7444 | as_unset=as_fn_unset | |
7445 | # as_fn_append VAR VALUE | |
7446 | # ---------------------- | |
7447 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7448 | # advantage of any shell optimizations that allow amortized linear growth over | |
7449 | # repeated appends, instead of the typical quadratic growth present in naive | |
7450 | # implementations. | |
7451 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7452 | eval 'as_fn_append () | |
7453 | { | |
7454 | eval $1+=\$2 | |
7455 | }' | |
7456 | else | |
7457 | as_fn_append () | |
7458 | { | |
7459 | eval $1=\$$1\$2 | |
7460 | } | |
7461 | fi # as_fn_append | |
7462 | ||
7463 | # as_fn_arith ARG... | |
7464 | # ------------------ | |
7465 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7466 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7467 | # must be portable across $(()) and expr. | |
7468 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7469 | eval 'as_fn_arith () | |
7470 | { | |
7471 | as_val=$(( $* )) | |
7472 | }' | |
7473 | else | |
7474 | as_fn_arith () | |
7475 | { | |
7476 | as_val=`expr "$@" || test $? -eq 1` | |
7477 | } | |
7478 | fi # as_fn_arith | |
7479 | ||
7480 | ||
7481 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
7483 | as_expr=expr | |
7484 | else | |
7485 | as_expr=false | |
7486 | fi | |
7487 | ||
7488 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
7489 | as_basename=basename | |
7490 | else | |
7491 | as_basename=false | |
7492 | fi | |
7493 | ||
7494 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
7495 | as_dirname=dirname | |
7496 | else | |
7497 | as_dirname=false | |
7498 | fi | |
7499 | ||
7500 | as_me=`$as_basename -- "$0" || | |
7501 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7502 | X"$0" : 'X\(//\)$' \| \ | |
7503 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
7504 | $as_echo X/"$0" | | |
7505 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7506 | s//\1/ | |
7507 | q | |
7508 | } | |
7509 | /^X\/\(\/\/\)$/{ | |
7510 | s//\1/ | |
7511 | q | |
7512 | } | |
7513 | /^X\/\(\/\).*/{ | |
7514 | s//\1/ | |
7515 | q | |
7516 | } | |
7517 | s/.*/./; q'` | |
7518 | ||
7519 | # Avoid depending upon Character Ranges. | |
7520 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7521 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7522 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7523 | as_cr_digits='0123456789' | |
7524 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7525 | ||
7526 | ECHO_C= ECHO_N= ECHO_T= | |
7527 | case `echo -n x` in #((((( | |
7528 | -n*) | |
7529 | case `echo 'xy\c'` in | |
7530 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7531 | xy) ECHO_C='\c';; | |
7532 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7533 | ECHO_T=' ';; | |
7534 | esac;; | |
7535 | *) | |
7536 | ECHO_N='-n';; | |
7537 | esac | |
7538 | ||
7539 | rm -f conf$$ conf$$.exe conf$$.file | |
7540 | if test -d conf$$.dir; then | |
7541 | rm -f conf$$.dir/conf$$.file | |
7542 | else | |
7543 | rm -f conf$$.dir | |
7544 | mkdir conf$$.dir 2>/dev/null | |
7545 | fi | |
7546 | if (echo >conf$$.file) 2>/dev/null; then | |
7547 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7548 | as_ln_s='ln -s' | |
7549 | # ... but there are two gotchas: | |
7550 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7551 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7552 | # In both cases, we have to default to `cp -pR'. | |
7553 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7554 | as_ln_s='cp -pR' | |
7555 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7556 | as_ln_s=ln | |
7557 | else | |
7558 | as_ln_s='cp -pR' | |
7559 | fi | |
7560 | else | |
7561 | as_ln_s='cp -pR' | |
7562 | fi | |
7563 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
7564 | rmdir conf$$.dir 2>/dev/null | |
7565 | ||
7566 | ||
7567 | # as_fn_mkdir_p | |
7568 | # ------------- | |
7569 | # Create "$as_dir" as a directory, including parents if necessary. | |
7570 | as_fn_mkdir_p () | |
7571 | { | |
7572 | ||
7573 | case $as_dir in #( | |
7574 | -*) as_dir=./$as_dir;; | |
7575 | esac | |
7576 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7577 | as_dirs= | |
7578 | while :; do | |
7579 | case $as_dir in #( | |
7580 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7581 | *) as_qdir=$as_dir;; | |
7582 | esac | |
7583 | as_dirs="'$as_qdir' $as_dirs" | |
7584 | as_dir=`$as_dirname -- "$as_dir" || | |
7585 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7586 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7587 | X"$as_dir" : 'X\(//\)$' \| \ | |
7588 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7589 | $as_echo X"$as_dir" | | |
7590 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7591 | s//\1/ | |
7592 | q | |
7593 | } | |
7594 | /^X\(\/\/\)[^/].*/{ | |
7595 | s//\1/ | |
7596 | q | |
7597 | } | |
7598 | /^X\(\/\/\)$/{ | |
7599 | s//\1/ | |
7600 | q | |
7601 | } | |
7602 | /^X\(\/\).*/{ | |
7603 | s//\1/ | |
7604 | q | |
7605 | } | |
7606 | s/.*/./; q'` | |
7607 | test -d "$as_dir" && break | |
7608 | done | |
7609 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7610 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
7611 | ||
7612 | ||
7613 | } # as_fn_mkdir_p | |
7614 | if mkdir -p . 2>/dev/null; then | |
7615 | as_mkdir_p='mkdir -p "$as_dir"' | |
7616 | else | |
7617 | test -d ./-p && rmdir ./-p | |
7618 | as_mkdir_p=false | |
7619 | fi | |
7620 | ||
7621 | ||
7622 | # as_fn_executable_p FILE | |
7623 | # ----------------------- | |
7624 | # Test if FILE is an executable regular file. | |
7625 | as_fn_executable_p () | |
7626 | { | |
7627 | test -f "$1" && test -x "$1" | |
7628 | } # as_fn_executable_p | |
7629 | as_test_x='test -x' | |
7630 | as_executable_p=as_fn_executable_p | |
7631 | ||
7632 | # Sed expression to map a string onto a valid CPP name. | |
7633 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7634 | ||
7635 | # Sed expression to map a string onto a valid variable name. | |
7636 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7637 | ||
7638 | ||
7639 | exec 6>&1 | |
7640 | ## ----------------------------------- ## | |
7641 | ## Main body of $CONFIG_STATUS script. ## | |
7642 | ## ----------------------------------- ## | |
7643 | _ASEOF | |
7644 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
7645 | ||
7646 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7647 | # Save the log message, to keep $0 and so on meaningful, and to | |
7648 | # report actual input values of CONFIG_FILES etc. instead of their | |
7649 | # values after options handling. | |
7650 | ac_log=" | |
7651 | This file was extended by smartmontools $as_me 6.6, which was | |
7652 | generated by GNU Autoconf 2.69. Invocation command line was | |
7653 | ||
7654 | CONFIG_FILES = $CONFIG_FILES | |
7655 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7656 | CONFIG_LINKS = $CONFIG_LINKS | |
7657 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7658 | $ $0 $@ | |
7659 | ||
7660 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7661 | " | |
7662 | ||
7663 | _ACEOF | |
7664 | ||
7665 | case $ac_config_files in *" | |
7666 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7667 | esac | |
7668 | ||
7669 | case $ac_config_headers in *" | |
7670 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7671 | esac | |
7672 | ||
7673 | ||
7674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7675 | # Files that config.status was made for. | |
7676 | config_files="$ac_config_files" | |
7677 | config_headers="$ac_config_headers" | |
7678 | config_commands="$ac_config_commands" | |
7679 | ||
7680 | _ACEOF | |
7681 | ||
7682 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7683 | ac_cs_usage="\ | |
7684 | \`$as_me' instantiates files and other configuration actions | |
7685 | from templates according to the current configuration. Unless the files | |
7686 | and actions are specified as TAGs, all are instantiated by default. | |
7687 | ||
7688 | Usage: $0 [OPTION]... [TAG]... | |
7689 | ||
7690 | -h, --help print this help, then exit | |
7691 | -V, --version print version number and configuration settings, then exit | |
7692 | --config print configuration, then exit | |
7693 | -q, --quiet, --silent | |
7694 | do not print progress messages | |
7695 | -d, --debug don't remove temporary files | |
7696 | --recheck update $as_me by reconfiguring in the same conditions | |
7697 | --file=FILE[:TEMPLATE] | |
7698 | instantiate the configuration file FILE | |
7699 | --header=FILE[:TEMPLATE] | |
7700 | instantiate the configuration header FILE | |
7701 | ||
7702 | Configuration files: | |
7703 | $config_files | |
7704 | ||
7705 | Configuration headers: | |
7706 | $config_headers | |
7707 | ||
7708 | Configuration commands: | |
7709 | $config_commands | |
7710 | ||
7711 | Report bugs to <smartmontools-support@listi.jpberlin.de>." | |
7712 | ||
7713 | _ACEOF | |
7714 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7715 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
7716 | ac_cs_version="\\ | |
7717 | smartmontools config.status 6.6 | |
7718 | configured by $0, generated by GNU Autoconf 2.69, | |
7719 | with options \\"\$ac_cs_config\\" | |
7720 | ||
7721 | Copyright (C) 2012 Free Software Foundation, Inc. | |
7722 | This config.status script is free software; the Free Software Foundation | |
7723 | gives unlimited permission to copy, distribute and modify it." | |
7724 | ||
7725 | ac_pwd='$ac_pwd' | |
7726 | srcdir='$srcdir' | |
7727 | INSTALL='$INSTALL' | |
7728 | MKDIR_P='$MKDIR_P' | |
7729 | AWK='$AWK' | |
7730 | test -n "\$AWK" || AWK=awk | |
7731 | _ACEOF | |
7732 | ||
7733 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7734 | # The default lists apply if the user does not specify any file. | |
7735 | ac_need_defaults=: | |
7736 | while test $# != 0 | |
7737 | do | |
7738 | case $1 in | |
7739 | --*=?*) | |
7740 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7741 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
7742 | ac_shift=: | |
7743 | ;; | |
7744 | --*=) | |
7745 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7746 | ac_optarg= | |
7747 | ac_shift=: | |
7748 | ;; | |
7749 | *) | |
7750 | ac_option=$1 | |
7751 | ac_optarg=$2 | |
7752 | ac_shift=shift | |
7753 | ;; | |
7754 | esac | |
7755 | ||
7756 | case $ac_option in | |
7757 | # Handling of the options. | |
7758 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7759 | ac_cs_recheck=: ;; | |
7760 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
7761 | $as_echo "$ac_cs_version"; exit ;; | |
7762 | --config | --confi | --conf | --con | --co | --c ) | |
7763 | $as_echo "$ac_cs_config"; exit ;; | |
7764 | --debug | --debu | --deb | --de | --d | -d ) | |
7765 | debug=: ;; | |
7766 | --file | --fil | --fi | --f ) | |
7767 | $ac_shift | |
7768 | case $ac_optarg in | |
7769 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7770 | '') as_fn_error $? "missing file argument" ;; | |
7771 | esac | |
7772 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
7773 | ac_need_defaults=false;; | |
7774 | --header | --heade | --head | --hea ) | |
7775 | $ac_shift | |
7776 | case $ac_optarg in | |
7777 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7778 | esac | |
7779 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
7780 | ac_need_defaults=false;; | |
7781 | --he | --h) | |
7782 | # Conflict between --help and --header | |
7783 | as_fn_error $? "ambiguous option: \`$1' | |
7784 | Try \`$0 --help' for more information.";; | |
7785 | --help | --hel | -h ) | |
7786 | $as_echo "$ac_cs_usage"; exit ;; | |
7787 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7788 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7789 | ac_cs_silent=: ;; | |
7790 | ||
7791 | # This is an error. | |
7792 | -*) as_fn_error $? "unrecognized option: \`$1' | |
7793 | Try \`$0 --help' for more information." ;; | |
7794 | ||
7795 | *) as_fn_append ac_config_targets " $1" | |
7796 | ac_need_defaults=false ;; | |
7797 | ||
7798 | esac | |
7799 | shift | |
7800 | done | |
7801 | ||
7802 | ac_configure_extra_args= | |
7803 | ||
7804 | if $ac_cs_silent; then | |
7805 | exec 6>/dev/null | |
7806 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7807 | fi | |
7808 | ||
7809 | _ACEOF | |
7810 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7811 | if \$ac_cs_recheck; then | |
7812 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7813 | shift | |
7814 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7815 | CONFIG_SHELL='$SHELL' | |
7816 | export CONFIG_SHELL | |
7817 | exec "\$@" | |
7818 | fi | |
7819 | ||
7820 | _ACEOF | |
7821 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7822 | exec 5>>config.log | |
7823 | { | |
7824 | echo | |
7825 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7826 | ## Running $as_me. ## | |
7827 | _ASBOX | |
7828 | $as_echo "$ac_log" | |
7829 | } >&5 | |
7830 | ||
7831 | _ACEOF | |
7832 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7833 | # | |
7834 | # INIT-COMMANDS | |
7835 | # | |
7836 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
7837 | ||
7838 | _ACEOF | |
7839 | ||
7840 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7841 | ||
7842 | # Handling of arguments. | |
7843 | for ac_config_target in $ac_config_targets | |
7844 | do | |
7845 | case $ac_config_target in | |
7846 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7847 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7848 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7849 | ||
7850 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
7851 | esac | |
7852 | done | |
7853 | ||
7854 | ||
7855 | # If the user did not use the arguments to specify the items to instantiate, | |
7856 | # then the envvar interface is used. Set only those that are not. | |
7857 | # We use the long form for the default assignment because of an extremely | |
7858 | # bizarre bug on SunOS 4.1.3. | |
7859 | if $ac_need_defaults; then | |
7860 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7861 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7862 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7863 | fi | |
7864 | ||
7865 | # Have a temporary directory for convenience. Make it in the build tree | |
7866 | # simply because there is no reason against having it here, and in addition, | |
7867 | # creating and moving files from /tmp can sometimes cause problems. | |
7868 | # Hook for its removal unless debugging. | |
7869 | # Note that there is a small window in which the directory will not be cleaned: | |
7870 | # after its creation but before its name has been assigned to `$tmp'. | |
7871 | $debug || | |
7872 | { | |
7873 | tmp= ac_tmp= | |
7874 | trap 'exit_status=$? | |
7875 | : "${ac_tmp:=$tmp}" | |
7876 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7877 | ' 0 | |
7878 | trap 'as_fn_exit 1' 1 2 13 15 | |
7879 | } | |
7880 | # Create a (secure) tmp directory for tmp files. | |
7881 | ||
7882 | { | |
7883 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
7884 | test -d "$tmp" | |
7885 | } || | |
7886 | { | |
7887 | tmp=./conf$$-$RANDOM | |
7888 | (umask 077 && mkdir "$tmp") | |
7889 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
7890 | ac_tmp=$tmp | |
7891 | ||
7892 | # Set up the scripts for CONFIG_FILES section. | |
7893 | # No need to generate them if there are no CONFIG_FILES. | |
7894 | # This happens for instance with `./config.status config.h'. | |
7895 | if test -n "$CONFIG_FILES"; then | |
7896 | ||
7897 | ||
7898 | ac_cr=`echo X | tr X '\015'` | |
7899 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7900 | # But we know of no other shell where ac_cr would be empty at this | |
7901 | # point, so we can use a bashism as a fallback. | |
7902 | if test "x$ac_cr" = x; then | |
7903 | eval ac_cr=\$\'\\r\' | |
7904 | fi | |
7905 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7906 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7907 | ac_cs_awk_cr='\\r' | |
7908 | else | |
7909 | ac_cs_awk_cr=$ac_cr | |
7910 | fi | |
7911 | ||
7912 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
7913 | _ACEOF | |
7914 | ||
7915 | ||
7916 | { | |
7917 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7918 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7919 | echo "_ACEOF" | |
7920 | } >conf$$subs.sh || | |
7921 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7922 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7923 | ac_delim='%!_!# ' | |
7924 | for ac_last_try in false false false false false :; do | |
7925 | . ./conf$$subs.sh || | |
7926 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7927 | ||
7928 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7929 | if test $ac_delim_n = $ac_delim_num; then | |
7930 | break | |
7931 | elif $ac_last_try; then | |
7932 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7933 | else | |
7934 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7935 | fi | |
7936 | done | |
7937 | rm -f conf$$subs.sh | |
7938 | ||
7939 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7940 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
7941 | _ACEOF | |
7942 | sed -n ' | |
7943 | h | |
7944 | s/^/S["/; s/!.*/"]=/ | |
7945 | p | |
7946 | g | |
7947 | s/^[^!]*!// | |
7948 | :repl | |
7949 | t repl | |
7950 | s/'"$ac_delim"'$// | |
7951 | t delim | |
7952 | :nl | |
7953 | h | |
7954 | s/\(.\{148\}\)..*/\1/ | |
7955 | t more1 | |
7956 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7957 | p | |
7958 | n | |
7959 | b repl | |
7960 | :more1 | |
7961 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7962 | p | |
7963 | g | |
7964 | s/.\{148\}// | |
7965 | t nl | |
7966 | :delim | |
7967 | h | |
7968 | s/\(.\{148\}\)..*/\1/ | |
7969 | t more2 | |
7970 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7971 | p | |
7972 | b | |
7973 | :more2 | |
7974 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7975 | p | |
7976 | g | |
7977 | s/.\{148\}// | |
7978 | t delim | |
7979 | ' <conf$$subs.awk | sed ' | |
7980 | /^[^""]/{ | |
7981 | N | |
7982 | s/\n// | |
7983 | } | |
7984 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
7985 | rm -f conf$$subs.awk | |
7986 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7987 | _ACAWK | |
7988 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
7989 | for (key in S) S_is_set[key] = 1 | |
7990 | FS = "\a" | |
7991 | ||
7992 | } | |
7993 | { | |
7994 | line = $ 0 | |
7995 | nfields = split(line, field, "@") | |
7996 | substed = 0 | |
7997 | len = length(field[1]) | |
7998 | for (i = 2; i < nfields; i++) { | |
7999 | key = field[i] | |
8000 | keylen = length(key) | |
8001 | if (S_is_set[key]) { | |
8002 | value = S[key] | |
8003 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8004 | len += length(value) + length(field[++i]) | |
8005 | substed = 1 | |
8006 | } else | |
8007 | len += 1 + keylen | |
8008 | } | |
8009 | ||
8010 | print line | |
8011 | } | |
8012 | ||
8013 | _ACAWK | |
8014 | _ACEOF | |
8015 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8016 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8017 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8018 | else | |
8019 | cat | |
8020 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
8021 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8022 | _ACEOF | |
8023 | ||
8024 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
8025 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8026 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8027 | # (actually we leave an empty line to preserve line numbers). | |
8028 | if test "x$srcdir" = x.; then | |
8029 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
8030 | h | |
8031 | s/// | |
8032 | s/^/:/ | |
8033 | s/[ ]*$/:/ | |
8034 | s/:\$(srcdir):/:/g | |
8035 | s/:\${srcdir}:/:/g | |
8036 | s/:@srcdir@:/:/g | |
8037 | s/^:*// | |
8038 | s/:*$// | |
8039 | x | |
8040 | s/\(=[ ]*\).*/\1/ | |
8041 | G | |
8042 | s/\n// | |
8043 | s/^[^=]*=[ ]*$// | |
8044 | }' | |
8045 | fi | |
8046 | ||
8047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8048 | fi # test -n "$CONFIG_FILES" | |
8049 | ||
8050 | # Set up the scripts for CONFIG_HEADERS section. | |
8051 | # No need to generate them if there are no CONFIG_HEADERS. | |
8052 | # This happens for instance with `./config.status Makefile'. | |
8053 | if test -n "$CONFIG_HEADERS"; then | |
8054 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
8055 | BEGIN { | |
8056 | _ACEOF | |
8057 | ||
8058 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8059 | # here-document in config.status, that substitutes the proper values into | |
8060 | # config.h.in to produce config.h. | |
8061 | ||
8062 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8063 | # handling of long lines. | |
8064 | ac_delim='%!_!# ' | |
8065 | for ac_last_try in false false :; do | |
8066 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
8067 | if test -z "$ac_tt"; then | |
8068 | break | |
8069 | elif $ac_last_try; then | |
8070 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8071 | else | |
8072 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8073 | fi | |
8074 | done | |
8075 | ||
8076 | # For the awk script, D is an array of macro values keyed by name, | |
8077 | # likewise P contains macro parameters if any. Preserve backslash | |
8078 | # newline sequences. | |
8079 | ||
8080 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8081 | sed -n ' | |
8082 | s/.\{148\}/&'"$ac_delim"'/g | |
8083 | t rset | |
8084 | :rset | |
8085 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8086 | t def | |
8087 | d | |
8088 | :def | |
8089 | s/\\$// | |
8090 | t bsnl | |
8091 | s/["\\]/\\&/g | |
8092 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8093 | D["\1"]=" \3"/p | |
8094 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8095 | d | |
8096 | :bsnl | |
8097 | s/["\\]/\\&/g | |
8098 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8099 | D["\1"]=" \3\\\\\\n"\\/p | |
8100 | t cont | |
8101 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8102 | t cont | |
8103 | d | |
8104 | :cont | |
8105 | n | |
8106 | s/.\{148\}/&'"$ac_delim"'/g | |
8107 | t clear | |
8108 | :clear | |
8109 | s/\\$// | |
8110 | t bsnlc | |
8111 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8112 | d | |
8113 | :bsnlc | |
8114 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8115 | b cont | |
8116 | ' <confdefs.h | sed ' | |
8117 | s/'"$ac_delim"'/"\\\ | |
8118 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8119 | ||
8120 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8121 | for (key in D) D_is_set[key] = 1 | |
8122 | FS = "\a" | |
8123 | } | |
8124 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8125 | line = \$ 0 | |
8126 | split(line, arg, " ") | |
8127 | if (arg[1] == "#") { | |
8128 | defundef = arg[2] | |
8129 | mac1 = arg[3] | |
8130 | } else { | |
8131 | defundef = substr(arg[1], 2) | |
8132 | mac1 = arg[2] | |
8133 | } | |
8134 | split(mac1, mac2, "(") #) | |
8135 | macro = mac2[1] | |
8136 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8137 | if (D_is_set[macro]) { | |
8138 | # Preserve the white space surrounding the "#". | |
8139 | print prefix "define", macro P[macro] D[macro] | |
8140 | next | |
8141 | } else { | |
8142 | # Replace #undef with comments. This is necessary, for example, | |
8143 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8144 | # on some systems where configure will not decide to define it. | |
8145 | if (defundef == "undef") { | |
8146 | print "/*", prefix defundef, macro, "*/" | |
8147 | next | |
8148 | } | |
8149 | } | |
8150 | } | |
8151 | { print } | |
8152 | _ACAWK | |
8153 | _ACEOF | |
8154 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8155 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
8156 | fi # test -n "$CONFIG_HEADERS" | |
8157 | ||
8158 | ||
8159 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8160 | shift | |
8161 | for ac_tag | |
8162 | do | |
8163 | case $ac_tag in | |
8164 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8165 | esac | |
8166 | case $ac_mode$ac_tag in | |
8167 | :[FHL]*:*);; | |
8168 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8169 | :[FH]-) ac_tag=-:-;; | |
8170 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8171 | esac | |
8172 | ac_save_IFS=$IFS | |
8173 | IFS=: | |
8174 | set x $ac_tag | |
8175 | IFS=$ac_save_IFS | |
8176 | shift | |
8177 | ac_file=$1 | |
8178 | shift | |
8179 | ||
8180 | case $ac_mode in | |
8181 | :L) ac_source=$1;; | |
8182 | :[FH]) | |
8183 | ac_file_inputs= | |
8184 | for ac_f | |
8185 | do | |
8186 | case $ac_f in | |
8187 | -) ac_f="$ac_tmp/stdin";; | |
8188 | *) # Look for the file first in the build tree, then in the source tree | |
8189 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8190 | # because $ac_f cannot contain `:'. | |
8191 | test -f "$ac_f" || | |
8192 | case $ac_f in | |
8193 | [\\/$]*) false;; | |
8194 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8195 | esac || | |
8196 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8197 | esac | |
8198 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8199 | as_fn_append ac_file_inputs " '$ac_f'" | |
8200 | done | |
8201 | ||
8202 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8203 | # use $as_me), people would be surprised to read: | |
8204 | # /* config.h. Generated by config.status. */ | |
8205 | configure_input='Generated from '` | |
8206 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8207 | `' by configure.' | |
8208 | if test x"$ac_file" != x-; then | |
8209 | configure_input="$ac_file. $configure_input" | |
8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8211 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8212 | fi | |
8213 | # Neutralize special characters interpreted by sed in replacement strings. | |
8214 | case $configure_input in #( | |
8215 | *\&* | *\|* | *\\* ) | |
8216 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8217 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8218 | *) ac_sed_conf_input=$configure_input;; | |
8219 | esac | |
8220 | ||
8221 | case $ac_tag in | |
8222 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
8223 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8224 | esac | |
8225 | ;; | |
8226 | esac | |
8227 | ||
8228 | ac_dir=`$as_dirname -- "$ac_file" || | |
8229 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8230 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8231 | X"$ac_file" : 'X\(//\)$' \| \ | |
8232 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
8233 | $as_echo X"$ac_file" | | |
8234 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8235 | s//\1/ | |
8236 | q | |
8237 | } | |
8238 | /^X\(\/\/\)[^/].*/{ | |
8239 | s//\1/ | |
8240 | q | |
8241 | } | |
8242 | /^X\(\/\/\)$/{ | |
8243 | s//\1/ | |
8244 | q | |
8245 | } | |
8246 | /^X\(\/\).*/{ | |
8247 | s//\1/ | |
8248 | q | |
8249 | } | |
8250 | s/.*/./; q'` | |
8251 | as_dir="$ac_dir"; as_fn_mkdir_p | |
8252 | ac_builddir=. | |
8253 | ||
8254 | case "$ac_dir" in | |
8255 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8256 | *) | |
8257 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8258 | # A ".." for each directory in $ac_dir_suffix. | |
8259 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8260 | case $ac_top_builddir_sub in | |
8261 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8262 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8263 | esac ;; | |
8264 | esac | |
8265 | ac_abs_top_builddir=$ac_pwd | |
8266 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8267 | # for backward compatibility: | |
8268 | ac_top_builddir=$ac_top_build_prefix | |
8269 | ||
8270 | case $srcdir in | |
8271 | .) # We are building in place. | |
8272 | ac_srcdir=. | |
8273 | ac_top_srcdir=$ac_top_builddir_sub | |
8274 | ac_abs_top_srcdir=$ac_pwd ;; | |
8275 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
8276 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8277 | ac_top_srcdir=$srcdir | |
8278 | ac_abs_top_srcdir=$srcdir ;; | |
8279 | *) # Relative name. | |
8280 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8281 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8282 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8283 | esac | |
8284 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
8285 | ||
8286 | ||
8287 | case $ac_mode in | |
8288 | :F) | |
8289 | # | |
8290 | # CONFIG_FILE | |
8291 | # | |
8292 | ||
8293 | case $INSTALL in | |
8294 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8295 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
8296 | esac | |
8297 | ac_MKDIR_P=$MKDIR_P | |
8298 | case $MKDIR_P in | |
8299 | [\\/$]* | ?:[\\/]* ) ;; | |
8300 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8301 | esac | |
8302 | _ACEOF | |
8303 | ||
8304 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8305 | # If the template does not know about datarootdir, expand it. | |
8306 | # FIXME: This hack should be removed a few years after 2.60. | |
8307 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8308 | ac_sed_dataroot=' | |
8309 | /datarootdir/ { | |
8310 | p | |
8311 | q | |
8312 | } | |
8313 | /@datadir@/p | |
8314 | /@docdir@/p | |
8315 | /@infodir@/p | |
8316 | /@localedir@/p | |
8317 | /@mandir@/p' | |
8318 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8319 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8320 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8321 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8322 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8323 | _ACEOF | |
8324 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8325 | ac_datarootdir_hack=' | |
8326 | s&@datadir@&$datadir&g | |
8327 | s&@docdir@&$docdir&g | |
8328 | s&@infodir@&$infodir&g | |
8329 | s&@localedir@&$localedir&g | |
8330 | s&@mandir@&$mandir&g | |
8331 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8332 | esac | |
8333 | _ACEOF | |
8334 | ||
8335 | # Neutralize VPATH when `$srcdir' = `.'. | |
8336 | # Shell code in configure.ac might set extrasub. | |
8337 | # FIXME: do we really want to maintain this feature? | |
8338 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8339 | ac_sed_extra="$ac_vpsub | |
8340 | $extrasub | |
8341 | _ACEOF | |
8342 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8343 | :t | |
8344 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8345 | s|@configure_input@|$ac_sed_conf_input|;t t | |
8346 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8347 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8348 | s&@srcdir@&$ac_srcdir&;t t | |
8349 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8350 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8351 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8352 | s&@builddir@&$ac_builddir&;t t | |
8353 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8354 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8355 | s&@INSTALL@&$ac_INSTALL&;t t | |
8356 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8357 | $ac_datarootdir_hack | |
8358 | " | |
8359 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
8360 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8361 | ||
8362 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8363 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
8364 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8365 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8367 | which seems to be undefined. Please make sure it is defined" >&5 | |
8368 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8369 | which seems to be undefined. Please make sure it is defined" >&2;} | |
8370 | ||
8371 | rm -f "$ac_tmp/stdin" | |
8372 | case $ac_file in | |
8373 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
8374 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8375 | esac \ | |
8376 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8377 | ;; | |
8378 | :H) | |
8379 | # | |
8380 | # CONFIG_HEADER | |
8381 | # | |
8382 | if test x"$ac_file" != x-; then | |
8383 | { | |
8384 | $as_echo "/* $configure_input */" \ | |
8385 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
8386 | } >"$ac_tmp/config.h" \ | |
8387 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8388 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8390 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
8391 | else | |
8392 | rm -f "$ac_file" | |
8393 | mv "$ac_tmp/config.h" "$ac_file" \ | |
8394 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8395 | fi | |
8396 | else | |
8397 | $as_echo "/* $configure_input */" \ | |
8398 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
8399 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8400 | fi | |
8401 | # Compute "$ac_file"'s index in $config_headers. | |
8402 | _am_arg="$ac_file" | |
8403 | _am_stamp_count=1 | |
8404 | for _am_header in $config_headers :; do | |
8405 | case $_am_header in | |
8406 | $_am_arg | $_am_arg:* ) | |
8407 | break ;; | |
8408 | * ) | |
8409 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8410 | esac | |
8411 | done | |
8412 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
8413 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8414 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8415 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8416 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8417 | $as_echo X"$_am_arg" | | |
8418 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8419 | s//\1/ | |
8420 | q | |
8421 | } | |
8422 | /^X\(\/\/\)[^/].*/{ | |
8423 | s//\1/ | |
8424 | q | |
8425 | } | |
8426 | /^X\(\/\/\)$/{ | |
8427 | s//\1/ | |
8428 | q | |
8429 | } | |
8430 | /^X\(\/\).*/{ | |
8431 | s//\1/ | |
8432 | q | |
8433 | } | |
8434 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8435 | ;; | |
8436 | ||
8437 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
8438 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8439 | ;; | |
8440 | esac | |
8441 | ||
8442 | ||
8443 | case $ac_file$ac_mode in | |
8444 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8445 | # Older Autoconf quotes --file arguments for eval, but not when files | |
8446 | # are listed without --file. Let's play safe and only enable the eval | |
8447 | # if we detect the quoting. | |
8448 | case $CONFIG_FILES in | |
8449 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8450 | *) set x $CONFIG_FILES ;; | |
8451 | esac | |
8452 | shift | |
8453 | for mf | |
8454 | do | |
8455 | # Strip MF so we end up with the name of the file. | |
8456 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8457 | # Check whether this is an Automake generated Makefile or not. | |
8458 | # We used to match only the files named 'Makefile.in', but | |
8459 | # some people rename them; so instead we look at the file content. | |
8460 | # Grep'ing the first line is not enough: some people post-process | |
8461 | # each Makefile.in and add a new line on top of each file to say so. | |
8462 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8463 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8464 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8465 | dirpart=`$as_dirname -- "$mf" || | |
8466 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8467 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8468 | X"$mf" : 'X\(//\)$' \| \ | |
8469 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
8470 | $as_echo X"$mf" | | |
8471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8472 | s//\1/ | |
8473 | q | |
8474 | } | |
8475 | /^X\(\/\/\)[^/].*/{ | |
8476 | s//\1/ | |
8477 | q | |
8478 | } | |
8479 | /^X\(\/\/\)$/{ | |
8480 | s//\1/ | |
8481 | q | |
8482 | } | |
8483 | /^X\(\/\).*/{ | |
8484 | s//\1/ | |
8485 | q | |
8486 | } | |
8487 | s/.*/./; q'` | |
8488 | else | |
8489 | continue | |
8490 | fi | |
8491 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8492 | # from the Makefile without running 'make'. | |
8493 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8494 | test -z "$DEPDIR" && continue | |
8495 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8496 | test -z "$am__include" && continue | |
8497 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8498 | # Find all dependency output files, they are included files with | |
8499 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8500 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8501 | # expansion. | |
8502 | for file in `sed -n " | |
8503 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8504 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
8505 | # Make sure the directory exists. | |
8506 | test -f "$dirpart/$file" && continue | |
8507 | fdir=`$as_dirname -- "$file" || | |
8508 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8509 | X"$file" : 'X\(//\)[^/]' \| \ | |
8510 | X"$file" : 'X\(//\)$' \| \ | |
8511 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
8512 | $as_echo X"$file" | | |
8513 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8514 | s//\1/ | |
8515 | q | |
8516 | } | |
8517 | /^X\(\/\/\)[^/].*/{ | |
8518 | s//\1/ | |
8519 | q | |
8520 | } | |
8521 | /^X\(\/\/\)$/{ | |
8522 | s//\1/ | |
8523 | q | |
8524 | } | |
8525 | /^X\(\/\).*/{ | |
8526 | s//\1/ | |
8527 | q | |
8528 | } | |
8529 | s/.*/./; q'` | |
8530 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8531 | # echo "creating $dirpart/$file" | |
8532 | echo '# dummy' > "$dirpart/$file" | |
8533 | done | |
8534 | done | |
8535 | } | |
8536 | ;; | |
8537 | ||
8538 | esac | |
8539 | done # for ac_tag | |
8540 | ||
8541 | ||
8542 | as_fn_exit 0 | |
8543 | _ACEOF | |
8544 | ac_clean_files=$ac_clean_files_save | |
8545 | ||
8546 | test $ac_write_fail = 0 || | |
8547 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8548 | ||
8549 | ||
8550 | # configure is writing to config.log, and then calls config.status. | |
8551 | # config.status does its own redirection, appending to config.log. | |
8552 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8553 | # by configure, so config.status won't be able to write to it; its | |
8554 | # output is simply discarded. So we exec the FD to /dev/null, | |
8555 | # effectively closing config.log, so it can be properly (re)opened and | |
8556 | # appended to by config.status. When coming back to configure, we | |
8557 | # need to make the FD available again. | |
8558 | if test "$no_create" != yes; then | |
8559 | ac_cs_success=: | |
8560 | ac_config_status_args= | |
8561 | test "$silent" = yes && | |
8562 | ac_config_status_args="$ac_config_status_args --quiet" | |
8563 | exec 5>/dev/null | |
8564 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8565 | exec 5>>config.log | |
8566 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8567 | # would make configure fail if this is the last instruction. | |
8568 | $ac_cs_success || as_fn_exit 1 | |
8569 | fi | |
8570 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8572 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
8573 | fi | |
8574 | ||
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
8576 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
8577 | set x ${MAKE-make} | |
8578 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
8579 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
8580 | $as_echo_n "(cached) " >&6 | |
8581 | else | |
8582 | cat >conftest.make <<\_ACEOF | |
8583 | SHELL = /bin/sh | |
8584 | all: | |
8585 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
8586 | _ACEOF | |
8587 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
8588 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
8589 | *@@@%%%=?*=@@@%%%*) | |
8590 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
8591 | *) | |
8592 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
8593 | esac | |
8594 | rm -f conftest.make | |
8595 | fi | |
8596 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8598 | $as_echo "yes" >&6; } | |
8599 | SET_MAKE= | |
8600 | else | |
8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8602 | $as_echo "no" >&6; } | |
8603 | SET_MAKE="MAKE=${MAKE-make}" | |
8604 | fi | |
8605 | ||
8606 | ||
8607 | # Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)' | |
8608 | info=` | |
8609 | echo "-----------------------------------------------------------------------------" | |
8610 | echo "${PACKAGE}-${VERSION} configuration:" | |
8611 | echo "host operating system: $host" | |
8612 | echo "C++ compiler: $CXX" | |
8613 | echo "C compiler: $CC" | |
8614 | echo "preprocessor flags: $CPPFLAGS" | |
8615 | echo "C++ compiler flags: $CXXFLAGS" | |
8616 | echo "C compiler flags: $CFLAGS" | |
8617 | echo "linker flags: $LDFLAGS" | |
8618 | echo "OS specific modules: $os_deps $os_libs $LIBS" | |
8619 | ||
8620 | case "$host_os" in | |
8621 | mingw*) | |
8622 | echo "application manifest: ${os_win32_manifest:-built-in}" | |
8623 | echo "resource compiler: $WINDRES" | |
8624 | echo "message compiler: $WINDMC" | |
8625 | echo "NSIS compiler: $MAKENSIS" | |
8626 | if test -n "$drivedbdir"; then | |
8627 | echo "drive database file: EXEDIR/drivedb.h" | |
8628 | if test -n "$MAKENSIS"; then | |
8629 | echo "database update tool: EXEDIR/update-smart-drivedb.exe" | |
8630 | fi | |
8631 | else | |
8632 | echo "drive database file: [disabled]" | |
8633 | fi | |
8634 | if test -n "$savestates"; then | |
8635 | echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state" | |
8636 | fi | |
8637 | if test -n "$attributelog"; then | |
8638 | echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv" | |
8639 | fi | |
8640 | echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}" | |
8641 | ;; | |
8642 | ||
8643 | *) | |
8644 | echo "binary install path: \`eval eval eval echo $sbindir\`" | |
8645 | echo "man page install path: \`eval eval eval echo $mandir\`" | |
8646 | echo "doc file install path: \`eval eval eval echo $docdir\`" | |
8647 | echo "examples install path: \`eval eval eval echo $exampledir\`" | |
8648 | if test -n "$drivedbdir"; then | |
8649 | echo "drive database file: \`eval eval eval echo $drivedbdir\`/drivedb.h" | |
8650 | if test "$with_update_smart_drivedb" = "yes"; then | |
8651 | echo "database update script: \`eval eval eval echo $sbindir\`/update-smart-drivedb" | |
8652 | if test "$drivedb_version" != "$VERSION"; then | |
8653 | echo "... backported to: branches/$DRIVEDB_BRANCH" | |
8654 | fi | |
8655 | echo "download tools: \`eval eval eval echo $os_dltools\`" | |
8656 | if test -n "$gnupg"; then | |
8657 | echo "GnuPG for verification: \`eval eval eval echo $gnupg\`" | |
8658 | else | |
8659 | echo "GnuPG for verification: [disabled]" | |
8660 | fi | |
8661 | else | |
8662 | echo "database update script: [disabled]" | |
8663 | fi | |
8664 | else | |
8665 | echo "drive database file: [disabled]" | |
8666 | fi | |
8667 | echo "local drive database: \`eval eval eval echo $sysconfdir\`/smart_drivedb.h" | |
8668 | echo "smartd config file: \`eval eval eval echo $sysconfdir\`/smartd.conf${smartd_suffix}" | |
8669 | echo "smartd warning script: \`eval eval eval echo $smartdscriptdir\`/smartd_warning.sh" | |
8670 | if test -n "$smartdplugindir"; then | |
8671 | echo "smartd plugin path: \`eval eval eval echo $smartdplugindir\`" | |
8672 | else | |
8673 | echo "smartd plugin path: [disabled]" | |
8674 | fi | |
8675 | if test -n "$scriptpath"; then | |
8676 | echo "PATH within scripts: \`eval eval eval echo $scriptpath\`" | |
8677 | else | |
8678 | echo "PATH within scripts: [inherited]" | |
8679 | fi | |
8680 | if test -n "$initddir"; then | |
8681 | echo "smartd initd script: \`eval eval eval echo $initddir\`/${initdfile}" | |
8682 | elif test -z "$systemdsystemunitdir"; then | |
8683 | echo "smartd initd script: [disabled]" | |
8684 | fi | |
8685 | if test -n "$systemdsystemunitdir"; then | |
8686 | echo "smartd systemd file: \`eval eval eval echo $systemdsystemunitdir\`/smartd.service" | |
8687 | if test -n "$systemdenvfile"; then | |
8688 | echo "smartd environ file: \`eval eval eval echo $systemdenvfile\`" | |
8689 | else | |
8690 | echo "smartd environ file: [disabled]" | |
8691 | fi | |
8692 | fi | |
8693 | if test -n "$savestates"; then | |
8694 | echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state" | |
8695 | else | |
8696 | echo "smartd save files: [disabled]" | |
8697 | fi | |
8698 | if test -n "$attributelog"; then | |
8699 | echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv" | |
8700 | else | |
8701 | echo "smartd attribute logs: [disabled]" | |
8702 | fi | |
8703 | echo "libcap-ng support: $use_libcap_ng" | |
8704 | case "$host_os" in | |
8705 | linux*) echo "SELinux support: ${with_selinux-no}" ;; | |
8706 | esac | |
8707 | case "$host_os" in | |
8708 | linux*|darwin*|netbsd*|cygwin*) | |
8709 | echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}" ;; | |
8710 | esac | |
8711 | ;; | |
8712 | esac | |
8713 | echo "-----------------------------------------------------------------------------" | |
8714 | ` | |
8715 | ||
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: | |
8717 | $info | |
8718 | " >&5 | |
8719 | $as_echo "$as_me: | |
8720 | $info | |
8721 | " >&6;} | |
8722 | ||
8723 | # TODO: Remove when NVMe support is no longer EXPERIMENTAL | |
8724 | case "$host_os:${with_nvme_devicescan+set}" in | |
8725 | linux*:|darwin*:|netbsd*:|cygwin*:|mingw*:) | |
8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
8727 | This version of smartmontools provides NVMe support which is still | |
8728 | EXPERIMENTAL. NVMe devices are not yet included in smartd.conf | |
8729 | 'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified. | |
8730 | Use option '--with-nvme-devicescan' to include NVMe devices. | |
8731 | Use option '--without-nvme-devicescan' to suppress this warning. | |
8732 | " >&5 | |
8733 | $as_echo "$as_me: WARNING: | |
8734 | This version of smartmontools provides NVMe support which is still | |
8735 | EXPERIMENTAL. NVMe devices are not yet included in smartd.conf | |
8736 | 'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified. | |
8737 | Use option '--with-nvme-devicescan' to include NVMe devices. | |
8738 | Use option '--without-nvme-devicescan' to suppress this warning. | |
8739 | " >&2;} | |
8740 | ;; | |
8741 | esac | |
8742 | ||
8743 | # TODO: Remove after smartmontools 6.6 | |
8744 | case "$host:${with_solaris_sparc_ata+set}" in | |
8745 | sparc-*-solaris*:) | |
8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
8747 | Legacy ATA support is no longer enabled by default on Solaris SPARC. | |
8748 | The required source file 'os_solaris_ata.s' is no longer included in | |
8749 | the source tarball but still available in the SVN repository. | |
8750 | Use option '--with-solaris-sparc-ata' to enable legacy ATA support. | |
8751 | Use option '--without-solaris-sparc-ata' to suppress this warning. | |
8752 | " >&5 | |
8753 | $as_echo "$as_me: WARNING: | |
8754 | Legacy ATA support is no longer enabled by default on Solaris SPARC. | |
8755 | The required source file 'os_solaris_ata.s' is no longer included in | |
8756 | the source tarball but still available in the SVN repository. | |
8757 | Use option '--with-solaris-sparc-ata' to enable legacy ATA support. | |
8758 | Use option '--without-solaris-sparc-ata' to suppress this warning. | |
8759 | " >&2;} | |
8760 | ;; | |
8761 | esac |