]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - configure
import smartmontools 7.0
[mirror_smartmontools-debian.git] / configure
CommitLineData
f9e10201
JD
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ff28b140 3# Generated by GNU Autoconf 2.69 for smartmontools 7.0.
f9e10201
JD
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 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.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='smartmontools'
582PACKAGE_TARNAME='smartmontools'
ff28b140
TL
583PACKAGE_VERSION='7.0'
584PACKAGE_STRING='smartmontools 7.0'
f9e10201
JD
585PACKAGE_BUGREPORT='smartmontools-support@listi.jpberlin.de'
586PACKAGE_URL=''
587
588ac_unique_file="smartctl.cpp"
589# Factoring default headers for most tests.
590ac_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
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629OS_WIN64_FALSE
630OS_WIN64_TRUE
631OS_WIN32_NSIS_FALSE
632OS_WIN32_NSIS_TRUE
633OS_WIN32_MINGW_FALSE
634OS_WIN32_MINGW_TRUE
635OS_WIN32_FALSE
636OS_WIN32_TRUE
637OS_SOLARIS_FALSE
638OS_SOLARIS_TRUE
639OS_DARWIN_FALSE
640OS_DARWIN_TRUE
641DRIVEDB_BRANCH
642os_win32_manifest
643os_man_filter
644os_nisdomainname
645os_dnsdomainname
646os_hostname
647os_mailer
648os_dltools
649os_libs
650os_deps
ff28b140 651with_nvme_devicescan
f9e10201
JD
652smartmontools_release_time
653smartmontools_release_date
654releaseversion
ff28b140
TL
655NEED_REGEX_FALSE
656NEED_REGEX_TRUE
657systemdenvfile
658INSTALL_SYSTEMDUNIT_FALSE
659INSTALL_SYSTEMDUNIT_TRUE
660systemdsystemunitdir
661SYSTEMD_LDADD
f9e10201 662CAPNG_LDADD
f9e10201
JD
663smartd_suffix
664ENABLE_ATTRIBUTELOG_FALSE
665ENABLE_ATTRIBUTELOG_TRUE
666attributelogdir
667attributelog
668ENABLE_SAVESTATES_FALSE
669ENABLE_SAVESTATES_TRUE
670savestatesdir
671savestates
672ENABLE_SCRIPTPATH_FALSE
673ENABLE_SCRIPTPATH_TRUE
674scriptpath
675smartdplugindir
676smartdscriptdir
677gnupg
678ENABLE_UPDATE_SMART_DRIVEDB_FALSE
679ENABLE_UPDATE_SMART_DRIVEDB_TRUE
680with_update_smart_drivedb
681ENABLE_DRIVEDB_FALSE
682ENABLE_DRIVEDB_TRUE
683drivedbdir
684exampledir
685initdfile
686INSTALL_INITSCRIPT_FALSE
687INSTALL_INITSCRIPT_TRUE
688initddir
f9e10201
JD
689ASFLAGS
690gcc_have_attr_packed
f9e10201
JD
691NEED_GETOPT_LONG_FALSE
692NEED_GETOPT_LONG_TRUE
693EGREP
694GREP
695CXXCPP
696IS_SVN_BUILD_FALSE
697IS_SVN_BUILD_TRUE
698svn_deps
699host_os
700host_vendor
701host_cpu
702host
703build_os
704build_vendor
705build_cpu
706build
707MAKENSIS
708WINDRES
709WINDMC
710PKG_CONFIG_LIBDIR
711PKG_CONFIG_PATH
712PKG_CONFIG
713am__fastdepCCAS_FALSE
714am__fastdepCCAS_TRUE
715CCASDEPMODE
716CCASFLAGS
717CCAS
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721ac_ct_CC
722CFLAGS
723CC
724am__fastdepCXX_FALSE
725am__fastdepCXX_TRUE
726CXXDEPMODE
727am__nodep
728AMDEPBACKSLASH
729AMDEP_FALSE
730AMDEP_TRUE
731am__quote
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CXX
737CPPFLAGS
738LDFLAGS
739CXXFLAGS
740CXX
741MAINT
742MAINTAINER_MODE_FALSE
743MAINTAINER_MODE_TRUE
744AM_BACKSLASH
745AM_DEFAULT_VERBOSITY
746AM_DEFAULT_V
747AM_V
748am__untar
749am__tar
750AMTAR
751am__leading_dot
752SET_MAKE
753AWK
754mkdir_p
755MKDIR_P
756INSTALL_STRIP_PROGRAM
757STRIP
758install_sh
759MAKEINFO
760AUTOHEADER
761AUTOMAKE
762AUTOCONF
763ACLOCAL
764VERSION
765PACKAGE
766CYGPATH_W
767am__isrc
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
771target_alias
772host_alias
773build_alias
774LIBS
775ECHO_T
776ECHO_N
777ECHO_C
778DEFS
779mandir
780localedir
781libdir
782psdir
783pdfdir
784dvidir
785htmldir
786infodir
787docdir
788oldincludedir
789includedir
790localstatedir
791sharedstatedir
792sysconfdir
793datadir
794datarootdir
795libexecdir
796sbindir
797bindir
798program_transform_name
799prefix
800exec_prefix
801PACKAGE_URL
802PACKAGE_BUGREPORT
803PACKAGE_STRING
804PACKAGE_VERSION
805PACKAGE_TARNAME
806PACKAGE_NAME
807PATH_SEPARATOR
808SHELL'
809ac_subst_files=''
810ac_user_opts='
811enable_option_checking
812enable_silent_rules
813enable_maintainer_mode
814enable_dependency_tracking
f9e10201
JD
815with_initscriptdir
816with_exampledir
817with_drivedbdir
818with_update_smart_drivedb
819with_gnupg
820with_smartdscriptdir
821with_smartdplugindir
822with_scriptpath
823with_savestates
824with_attributelog
825enable_sample
ff28b140
TL
826enable_scsi_cdb_check
827enable_fast_lebe
f9e10201
JD
828with_os_deps
829with_selinux
830with_libcap_ng
ff28b140
TL
831with_libsystemd
832with_systemdsystemunitdir
833with_systemdenvfile
f9e10201
JD
834with_nvme_devicescan
835with_solaris_sparc_ata
ff28b140 836with_signal_func
f9e10201
JD
837with_working_snprintf
838with_mingw_aslr
839with_cxx11_option
ff28b140 840with_cxx11_regex
f9e10201
JD
841'
842 ac_precious_vars='build_alias
843host_alias
844target_alias
845CXX
846CXXFLAGS
847LDFLAGS
848LIBS
849CPPFLAGS
850CCC
851CC
852CFLAGS
853CCAS
854CCASFLAGS
855PKG_CONFIG
856PKG_CONFIG_PATH
857PKG_CONFIG_LIBDIR
858WINDMC
859WINDRES
860MAKENSIS
861CXXCPP'
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367else
1368 ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
ff28b140 1402\`configure' configures smartmontools 7.0 to adapt to many kinds of systems.
f9e10201
JD
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471 case $ac_init_help in
ff28b140 1472 short | recursive ) echo "Configuration of smartmontools 7.0:";;
f9e10201
JD
1473 esac
1474 cat <<\_ACEOF
1475
1476Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --enable-sample Enables appending .sample to the installed smartd rc
1490 script and configuration file
ff28b140
TL
1491 --enable-scsi-cdb-check do sanity check on each SCSI cdb
1492 --disable-fast-lebe use generic little-endian/big-endian code instead
f9e10201
JD
1493
1494Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ff28b140
TL
1497 --with-initscriptdir=[DIR|no]
1498 Location of init scripts [no]
f9e10201
JD
1499 --with-exampledir=DIR Location of example scripts [DOCDIR/examplescripts]
1500 --with-drivedbdir[=DIR|yes|no]
1501 Location of drive database file
1502 [DATADIR/smartmontools]
1503 --with-update-smart-drivedb[=yes|no|X.Y]
1504 Install update-smart-drivedb script (and backport it
1505 to branches/RELEASE_X_Y_DRIVEDB) [yes]
1506 --with-gnupg[=FILE|yes|no]
1507 GnuPG used to verify drivedb.h [gpg]
1508 --with-smartdscriptdir=DIR
1509 Location of smartd_warning.sh script [SYSCONFDIR]
1510 --with-smartdplugindir=[DIR|no]
1511 Location of smartd_warning.sh plugin scripts
1512 [SMARTDSCRIPTDIR/smartd_warning.d]
1513 --with-scriptpath=[PATH|no]
ff28b140
TL
1514 PATH variable set within scripts
1515 [/usr/local/bin:/usr/bin:/bin]
f9e10201
JD
1516 --with-savestates[=PREFIX|yes|no]
1517 Enable default smartd state files [no]
1518 (yes=LOCALSTATEDIR/lib/smartmontools/smartd.)
1519 --with-attributelog[=PREFIX|yes|no]
1520 Enable default smartd attribute log files [no]
1521 (yes=LOCALSTATEDIR/lib/smartmontools/attrlog.)
1522 --with-os-deps='os_module.o ...'
1523 Specify OS dependent module(s) [guessed]
1524 --with-selinux[=yes|no] Enables SELinux support [no]
1525 --with-libcap-ng[=auto|yes|no]
1526 Add Libcap-ng support to smartd [auto]
ff28b140
TL
1527 --with-libsystemd[=auto|yes|no]
1528 Add systemd 'Type=notify' support to smartd [auto]
1529 --with-systemdsystemunitdir[=DIR|auto|yes|no]
1530 Location of systemd service files [auto]
1531 --with-systemdenvfile[=FILE|auto|yes|no]
1532 Path of systemd EnvironmentFile [auto]
f9e10201 1533 --with-nvme-devicescan[=yes|no]
ff28b140
TL
1534 Include NVMe devices in smartd DEVICESCAN
1535 [Linux,Windows:yes;Others:no]
f9e10201
JD
1536 --with-solaris-sparc-ata[=yes|no]
1537 Enable legacy ATA support on Solaris SPARC (requires
1538 os_solaris_ata.s from SVN repository) [no]
ff28b140
TL
1539 --with-signal-func=[sigaction|sigset|signal]
1540 Function to set signal(2) action [sigaction]
f9e10201
JD
1541 --with-working-snprintf[=yes|no]
1542 Function snprintf() handles output truncation as
ff28b140 1543 specified by C99 [yes]
f9e10201
JD
1544 --with-mingw-aslr[=auto|yes|low|no]
1545 Enable ASLR for MinGW executables [auto]
ff28b140 1546 --with-cxx11-option=[OPTION|auto|no]
f9e10201
JD
1547 Compiler option to enable C++11 support for future
1548 versions of smartmontools, 'no' if unsupported
1549 [auto]
ff28b140
TL
1550 --with-cxx11-regex[=yes|no]
1551 Use C++11 std::regex instead of POSIX regex(3) [no]
f9e10201
JD
1552
1553Some influential environment variables:
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 CCAS assembler compiler command (defaults to CC)
1564 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1565 PKG_CONFIG path to pkg-config utility
1566 PKG_CONFIG_PATH
1567 directories to add to pkg-config's search path
1568 PKG_CONFIG_LIBDIR
1569 path overriding pkg-config's built-in search path
1570 WINDMC Windows message compiler command
1571 WINDRES Windows resource compiler command
1572 MAKENSIS NSIS compiler command
1573 CXXCPP C++ preprocessor
1574
1575Use these variables to override the choices made by `configure' or to help
1576it to find libraries and programs with nonstandard names/locations.
1577
1578Report bugs to <smartmontools-support@listi.jpberlin.de>.
1579_ACEOF
1580ac_status=$?
1581fi
1582
1583if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
1589 ac_builddir=.
1590
1591case "$ac_dir" in
1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593*)
1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601esac
1602ac_abs_top_builddir=$ac_pwd
1603ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604# for backward compatibility:
1605ac_top_builddir=$ac_top_build_prefix
1606
1607case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620esac
1621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1636fi
1637
1638test -n "$ac_init_help" && exit $ac_status
1639if $ac_init_version; then
1640 cat <<\_ACEOF
ff28b140 1641smartmontools configure 7.0
f9e10201
JD
1642generated by GNU Autoconf 2.69
1643
1644Copyright (C) 2012 Free Software Foundation, Inc.
1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647_ACEOF
1648 exit
1649fi
1650
1651## ------------------------ ##
1652## Autoconf initialization. ##
1653## ------------------------ ##
1654
1655# ac_fn_cxx_try_compile LINENO
1656# ----------------------------
1657# Try to compile conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_cxx_try_compile ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_cxx_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691} # ac_fn_cxx_try_compile
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_cxx_try_cpp LINENO
1732# ------------------------
1733# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_cxx_try_cpp ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } > conftest.i && {
1753 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 }; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762fi
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766} # ac_fn_cxx_try_cpp
1767
1768# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1769# ---------------------------------------------------------
1770# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771# the include files in INCLUDES and setting the cache variable VAR
1772# accordingly.
1773ac_fn_cxx_check_header_mongrel ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if eval \${$3+:} false; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785else
1786 # Is the header compilable?
1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788$as_echo_n "checking $2 usability... " >&6; }
1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_cxx_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1796else
1797 ac_header_compiler=no
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801$as_echo "$ac_header_compiler" >&6; }
1802
1803# Is the header present?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805$as_echo_n "checking $2 presence... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808#include <$2>
1809_ACEOF
1810if ac_fn_cxx_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1812else
1813 ac_header_preproc=no
1814fi
1815rm -f conftest.err conftest.i conftest.$ac_ext
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817$as_echo "$ac_header_preproc" >&6; }
1818
1819# So? What about this header?
1820case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1821 yes:no: )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ;;
1827 no:yes:* )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838( $as_echo "## ------------------------------------------------------ ##
1839## Report this to smartmontools-support@listi.jpberlin.de ##
1840## ------------------------------------------------------ ##"
1841 ) | sed "s/^/$as_me: WARNING: /" >&2
1842 ;;
1843esac
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
1846if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848else
1849 eval "$3=\$ac_header_compiler"
1850fi
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854fi
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857} # ac_fn_cxx_check_header_mongrel
1858
1859# ac_fn_cxx_try_run LINENO
1860# ------------------------
1861# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1862# that executables *can* be run.
1863ac_fn_cxx_try_run ()
1864{
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_link"
1867case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870esac
1871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872$as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877 { { case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880esac
1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882$as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_try") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; }; }; then :
1887 ac_retval=0
1888else
1889 $as_echo "$as_me: program exited with status $ac_status" >&5
1890 $as_echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=$ac_status
1894fi
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1898
1899} # ac_fn_cxx_try_run
1900
1901# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1902# ---------------------------------------------------------
1903# Tests whether HEADER exists and can be compiled using the include files in
1904# INCLUDES, setting the cache variable VAR accordingly.
1905ac_fn_cxx_check_header_compile ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909$as_echo_n "checking for $2... " >&6; }
1910if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1912else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916#include <$2>
1917_ACEOF
1918if ac_fn_cxx_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920else
1921 eval "$3=no"
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_cxx_check_header_compile
1931
1932# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1933# ---------------------------------------------
1934# Tests whether TYPE exists after having included INCLUDES, setting cache
1935# variable VAR accordingly.
1936ac_fn_cxx_check_type ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940$as_echo_n "checking for $2... " >&6; }
1941if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943else
1944 eval "$3=no"
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h. */
1947$4
1948int
1949main ()
1950{
1951if (sizeof ($2))
1952 return 0;
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_cxx_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h. */
1960$4
1961int
1962main ()
1963{
1964if (sizeof (($2)))
1965 return 0;
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_cxx_try_compile "$LINENO"; then :
1971
1972else
1973 eval "$3=yes"
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_cxx_check_type
1985
1986# ac_fn_cxx_try_link LINENO
1987# -------------------------
1988# Try to link conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_cxx_try_link ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 test -x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016else
2017 $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2029
2030} # ac_fn_cxx_try_link
2031
2032# ac_fn_cxx_check_func LINENO FUNC VAR
2033# ------------------------------------
2034# Tests whether FUNC exists, setting the cache variable VAR accordingly
2035ac_fn_cxx_check_func ()
2036{
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2047#define $2 innocuous_$2
2048
2049/* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char $2 (); below.
2051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052 <limits.h> exists even on freestanding compilers. */
2053
2054#ifdef __STDC__
2055# include <limits.h>
2056#else
2057# include <assert.h>
2058#endif
2059
2060#undef $2
2061
2062/* Override any GCC internal prototype to avoid an error.
2063 Use char because int might match the return type of a GCC
2064 builtin and then its argument prototype would still apply. */
2065#ifdef __cplusplus
2066extern "C"
2067#endif
2068char $2 ();
2069/* The GNU C library defines this for functions which it implements
2070 to always fail with ENOSYS. Some functions are actually named
2071 something starting with __ and the normal name is an alias. */
2072#if defined __stub_$2 || defined __stub___$2
2073choke me
2074#endif
2075
2076int
2077main ()
2078{
2079return $2 ();
2080 ;
2081 return 0;
2082}
2083_ACEOF
2084if ac_fn_cxx_try_link "$LINENO"; then :
2085 eval "$3=yes"
2086else
2087 eval "$3=no"
2088fi
2089rm -f core conftest.err conftest.$ac_objext \
2090 conftest$ac_exeext conftest.$ac_ext
2091fi
2092eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094$as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096
2097} # ac_fn_cxx_check_func
2098cat >config.log <<_ACEOF
2099This file contains any messages produced by compilers while
2100running configure, to aid debugging if configure makes a mistake.
2101
ff28b140 2102It was created by smartmontools $as_me 7.0, which was
f9e10201
JD
2103generated by GNU Autoconf 2.69. Invocation command line was
2104
2105 $ $0 $@
2106
2107_ACEOF
2108exec 5>>config.log
2109{
2110cat <<_ASUNAME
2111## --------- ##
2112## Platform. ##
2113## --------- ##
2114
2115hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120
2121/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2123
2124/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2125/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2126/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2128/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2129/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2130/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2131
2132_ASUNAME
2133
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2140 done
2141IFS=$as_save_IFS
2142
2143} >&5
2144
2145cat >&5 <<_ACEOF
2146
2147
2148## ----------- ##
2149## Core tests. ##
2150## ----------- ##
2151
2152_ACEOF
2153
2154
2155# Keep a trace of the command line.
2156# Strip out --no-create and --no-recursion so they do not pile up.
2157# Strip out --silent because we don't want to record it for future runs.
2158# Also quote any args containing shell meta-characters.
2159# Make two passes to allow for proper duplicate-argument suppression.
2160ac_configure_args=
2161ac_configure_args0=
2162ac_configure_args1=
2163ac_must_keep_next=false
2164for ac_pass in 1 2
2165do
2166 for ac_arg
2167 do
2168 case $ac_arg in
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2172 continue ;;
2173 *\'*)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 esac
2176 case $ac_pass in
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178 2)
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2182 else
2183 case $ac_arg in
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 esac
2191 ;;
2192 -* ) ac_must_keep_next=true ;;
2193 esac
2194 fi
2195 as_fn_append ac_configure_args " '$ac_arg'"
2196 ;;
2197 esac
2198 done
2199done
2200{ ac_configure_args0=; unset ac_configure_args0;}
2201{ ac_configure_args1=; unset ac_configure_args1;}
2202
2203# When interrupted or exit'd, cleanup temporary files, and complete
2204# config.log. We remove comments because anyway the quotes in there
2205# would cause problems or look ugly.
2206# WARNING: Use '\'' to represent an apostrophe within the trap.
2207# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2210 {
2211 echo
2212
2213 $as_echo "## ---------------- ##
2214## Cache variables. ##
2215## ---------------- ##"
2216 echo
2217 # The following way of writing the cache mishandles newlines in values,
2218(
2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in #(
2222 *${as_nl}*)
2223 case $ac_var in #(
2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226 esac
2227 case $ac_var in #(
2228 _ | IFS | as_nl) ;; #(
2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230 *) { eval $ac_var=; unset $ac_var;} ;;
2231 esac ;;
2232 esac
2233 done
2234 (set) 2>&1 |
2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236 *${as_nl}ac_space=\ *)
2237 sed -n \
2238 "s/'\''/'\''\\\\'\'''\''/g;
2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240 ;; #(
2241 *)
2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243 ;;
2244 esac |
2245 sort
2246)
2247 echo
2248
2249 $as_echo "## ----------------- ##
2250## Output variables. ##
2251## ----------------- ##"
2252 echo
2253 for ac_var in $ac_subst_vars
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
2263 if test -n "$ac_subst_files"; then
2264 $as_echo "## ------------------- ##
2265## File substitutions. ##
2266## ------------------- ##"
2267 echo
2268 for ac_var in $ac_subst_files
2269 do
2270 eval ac_val=\$$ac_var
2271 case $ac_val in
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273 esac
2274 $as_echo "$ac_var='\''$ac_val'\''"
2275 done | sort
2276 echo
2277 fi
2278
2279 if test -s confdefs.h; then
2280 $as_echo "## ----------- ##
2281## confdefs.h. ##
2282## ----------- ##"
2283 echo
2284 cat confdefs.h
2285 echo
2286 fi
2287 test "$ac_signal" != 0 &&
2288 $as_echo "$as_me: caught signal $ac_signal"
2289 $as_echo "$as_me: exit $exit_status"
2290 } >&5
2291 rm -f core *.core core.conftest.* &&
2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293 exit $exit_status
2294' 0
2295for ac_signal in 1 2 13 15; do
2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2297done
2298ac_signal=0
2299
2300# confdefs.h avoids OS command line length limits that DEFS can exceed.
2301rm -f -r conftest* confdefs.h
2302
2303$as_echo "/* confdefs.h */" > confdefs.h
2304
2305# Predefined preprocessor variables.
2306
2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_NAME "$PACKAGE_NAME"
2309_ACEOF
2310
2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313_ACEOF
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_VERSION "$PACKAGE_VERSION"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_STRING "$PACKAGE_STRING"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_URL "$PACKAGE_URL"
2329_ACEOF
2330
2331
2332# Let the site file select an alternate cache file if it wants to.
2333# Prefer an explicitly selected file to automatically selected ones.
2334ac_site_file1=NONE
2335ac_site_file2=NONE
2336if test -n "$CONFIG_SITE"; then
2337 # We do not want a PATH search for config.site.
2338 case $CONFIG_SITE in #((
2339 -*) ac_site_file1=./$CONFIG_SITE;;
2340 */*) ac_site_file1=$CONFIG_SITE;;
2341 *) ac_site_file1=./$CONFIG_SITE;;
2342 esac
2343elif test "x$prefix" != xNONE; then
2344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
2346else
2347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
2349fi
2350for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2351do
2352 test "x$ac_site_file" = xNONE && continue
2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2355$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356 sed 's/^/| /' "$ac_site_file" >&5
2357 . "$ac_site_file" \
2358 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360as_fn_error $? "failed to load site script $ac_site_file
2361See \`config.log' for more details" "$LINENO" 5; }
2362 fi
2363done
2364
2365if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special files
2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370$as_echo "$as_me: loading cache $cache_file" >&6;}
2371 case $cache_file in
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2374 esac
2375 fi
2376else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378$as_echo "$as_me: creating cache $cache_file" >&6;}
2379 >$cache_file
2380fi
2381
2382# Check that the precious variables saved in the cache have kept the same
2383# value.
2384ac_cache_corrupted=false
2385for ac_var in $ac_precious_vars; do
2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387 eval ac_new_set=\$ac_env_${ac_var}_set
2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389 eval ac_new_val=\$ac_env_${ac_var}_value
2390 case $ac_old_set,$ac_new_set in
2391 set,)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,set)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2397$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,);;
2400 *)
2401 if test "x$ac_old_val" != "x$ac_new_val"; then
2402 # differences in whitespace do not lead to failure.
2403 ac_old_val_w=`echo x $ac_old_val`
2404 ac_new_val_w=`echo x $ac_new_val`
2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408 ac_cache_corrupted=:
2409 else
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412 eval $ac_var=\$ac_old_val
2413 fi
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2415$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2417$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2418 fi;;
2419 esac
2420 # Pass precious variables to config.status.
2421 if test "$ac_new_set" = set; then
2422 case $ac_new_val in
2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 *) ac_arg=$ac_var=$ac_new_val ;;
2425 esac
2426 case " $ac_configure_args " in
2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2428 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429 esac
2430 fi
2431done
2432if $ac_cache_corrupted; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438fi
2439## -------------------- ##
2440## Main body of script. ##
2441## -------------------- ##
2442
2443ac_ext=c
2444ac_cpp='$CPP $CPPFLAGS'
2445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449
2450am__api_version='1.15'
2451
2452ac_aux_dir=
2453for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2454 if test -f "$ac_dir/install-sh"; then
2455 ac_aux_dir=$ac_dir
2456 ac_install_sh="$ac_aux_dir/install-sh -c"
2457 break
2458 elif test -f "$ac_dir/install.sh"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/install.sh -c"
2461 break
2462 elif test -f "$ac_dir/shtool"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/shtool install -c"
2465 break
2466 fi
2467done
2468if test -z "$ac_aux_dir"; then
2469 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2470fi
2471
2472# These three variables are undocumented and unsupported,
2473# and are intended to be withdrawn in a future Autoconf release.
2474# They can cause serious problems if a builder's source tree is in a directory
2475# whose full name contains unusual characters.
2476ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2477ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2478ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2479
2480
2481# Find a good install program. We prefer a C program (faster),
2482# so one script is as good as another. But avoid the broken or
2483# incompatible versions:
2484# SysV /etc/install, /usr/sbin/install
2485# SunOS /usr/etc/install
2486# IRIX /sbin/install
2487# AIX /bin/install
2488# AmigaOS /C/install, which installs bootblocks on floppy discs
2489# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492# OS/2's system install, which has a completely different semantic
2493# ./install, which can be erroneously created by make from ./install.sh.
2494# Reject install programs that cannot install multiple files.
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2496$as_echo_n "checking for a BSD-compatible install... " >&6; }
2497if test -z "$INSTALL"; then
2498if ${ac_cv_path_install+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 # Account for people who put trailing slashes in PATH elements.
2507case $as_dir/ in #((
2508 ./ | .// | /[cC]/* | \
2509 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2510 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2511 /usr/ucb/* ) ;;
2512 *)
2513 # OSF1 and SCO ODT 3.0 have their own names for install.
2514 # Don't use installbsd from OSF since it installs stuff as root
2515 # by default.
2516 for ac_prog in ginstall scoinst install; do
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2519 if test $ac_prog = install &&
2520 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # AIX install. It has an incompatible calling convention.
2522 :
2523 elif test $ac_prog = install &&
2524 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # program-specific install script used by HP pwplus--don't use.
2526 :
2527 else
2528 rm -rf conftest.one conftest.two conftest.dir
2529 echo one > conftest.one
2530 echo two > conftest.two
2531 mkdir conftest.dir
2532 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2533 test -s conftest.one && test -s conftest.two &&
2534 test -s conftest.dir/conftest.one &&
2535 test -s conftest.dir/conftest.two
2536 then
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538 break 3
2539 fi
2540 fi
2541 fi
2542 done
2543 done
2544 ;;
2545esac
2546
2547 done
2548IFS=$as_save_IFS
2549
2550rm -rf conftest.one conftest.two conftest.dir
2551
2552fi
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2555 else
2556 # As a last resort, use the slow shell script. Don't cache a
2557 # value for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the value is a relative name.
2560 INSTALL=$ac_install_sh
2561 fi
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2564$as_echo "$INSTALL" >&6; }
2565
2566# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567# It thinks the first close brace ends the variable substitution.
2568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569
2570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571
2572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2575$as_echo_n "checking whether build environment is sane... " >&6; }
2576# Reject unsafe characters in $srcdir or the absolute working directory
2577# name. Accept space and tab only in the latter.
2578am_lf='
2579'
2580case `pwd` in
2581 *[\\\"\#\$\&\'\`$am_lf]*)
2582 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2583esac
2584case $srcdir in
2585 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2586 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2587esac
2588
2589# Do 'set' in a subshell so we don't clobber the current shell's
2590# arguments. Must try -L first in case configure is actually a
2591# symlink; some systems play weird games with the mod time of symlinks
2592# (eg FreeBSD returns the mod time of the symlink's containing
2593# directory).
2594if (
2595 am_has_slept=no
2596 for am_try in 1 2; do
2597 echo "timestamp, slept: $am_has_slept" > conftest.file
2598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2599 if test "$*" = "X"; then
2600 # -L didn't work.
2601 set X `ls -t "$srcdir/configure" conftest.file`
2602 fi
2603 if test "$*" != "X $srcdir/configure conftest.file" \
2604 && test "$*" != "X conftest.file $srcdir/configure"; then
2605
2606 # If neither matched, then we have a broken ls. This can happen
2607 # if, for instance, CONFIG_SHELL is bash and it inherits a
2608 # broken ls alias from the environment. This has actually
2609 # happened. Such a system could not be considered "sane".
2610 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2611 alias in your environment" "$LINENO" 5
2612 fi
2613 if test "$2" = conftest.file || test $am_try -eq 2; then
2614 break
2615 fi
2616 # Just in case.
2617 sleep 1
2618 am_has_slept=yes
2619 done
2620 test "$2" = conftest.file
2621 )
2622then
2623 # Ok.
2624 :
2625else
2626 as_fn_error $? "newly created file is older than distributed files!
2627Check your system clock" "$LINENO" 5
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630$as_echo "yes" >&6; }
2631# If we didn't sleep, we still need to ensure time stamps of config.status and
2632# generated files are strictly newer.
2633am_sleep_pid=
2634if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2635 ( sleep 1 ) &
2636 am_sleep_pid=$!
2637fi
2638
2639rm -f conftest.file
2640
2641test "$program_prefix" != NONE &&
2642 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2643# Use a double $ so make ignores it.
2644test "$program_suffix" != NONE &&
2645 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2646# Double any \ or $.
2647# By default was `s,x,x', remove it if useless.
2648ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2649program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2650
2651# Expand $ac_aux_dir to an absolute path.
2652am_aux_dir=`cd "$ac_aux_dir" && pwd`
2653
2654if test x"${MISSING+set}" != xset; then
2655 case $am_aux_dir in
2656 *\ * | *\ *)
2657 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2658 *)
2659 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2660 esac
2661fi
2662# Use eval to expand $SHELL
2663if eval "$MISSING --is-lightweight"; then
2664 am_missing_run="$MISSING "
2665else
2666 am_missing_run=
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2668$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2669fi
2670
2671if test x"${install_sh+set}" != xset; then
2672 case $am_aux_dir in
2673 *\ * | *\ *)
2674 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2675 *)
2676 install_sh="\${SHELL} $am_aux_dir/install-sh"
2677 esac
2678fi
2679
2680# Installed binaries are usually stripped using 'strip' when the user
2681# run "make install-strip". However 'strip' might not be the right
2682# tool to use in cross-compilation environments, therefore Automake
2683# will honor the 'STRIP' environment variable to overrule this program.
2684if test "$cross_compiling" != no; then
2685 if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2687set dummy ${ac_tool_prefix}strip; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if ${ac_cv_prog_STRIP+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 if test -n "$STRIP"; then
2694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707done
2708 done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713STRIP=$ac_cv_prog_STRIP
2714if test -n "$STRIP"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2716$as_echo "$STRIP" >&6; }
2717else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722
2723fi
2724if test -z "$ac_cv_prog_STRIP"; then
2725 ac_ct_STRIP=$STRIP
2726 # Extract the first word of "strip", so it can be a program name with args.
2727set dummy strip; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732else
2733 if test -n "$ac_ct_STRIP"; then
2734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_ac_ct_STRIP="strip"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748 done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2754if test -n "$ac_ct_STRIP"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2756$as_echo "$ac_ct_STRIP" >&6; }
2757else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762 if test "x$ac_ct_STRIP" = x; then
2763 STRIP=":"
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766yes:)
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2769ac_tool_warned=yes ;;
2770esac
2771 STRIP=$ac_ct_STRIP
2772 fi
2773else
2774 STRIP="$ac_cv_prog_STRIP"
2775fi
2776
2777fi
2778INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2781$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2782if test -z "$MKDIR_P"; then
2783 if ${ac_cv_path_mkdir+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_prog in mkdir gmkdir; do
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2794 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2795 'mkdir (GNU coreutils) '* | \
2796 'mkdir (coreutils) '* | \
2797 'mkdir (fileutils) '4.1*)
2798 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2799 break 3;;
2800 esac
2801 done
2802 done
2803 done
2804IFS=$as_save_IFS
2805
2806fi
2807
2808 test -d ./--version && rmdir ./--version
2809 if test "${ac_cv_path_mkdir+set}" = set; then
2810 MKDIR_P="$ac_cv_path_mkdir -p"
2811 else
2812 # As a last resort, use the slow shell script. Don't cache a
2813 # value for MKDIR_P within a source directory, because that will
2814 # break other packages using the cache if that directory is
2815 # removed, or if the value is a relative name.
2816 MKDIR_P="$ac_install_sh -d"
2817 fi
2818fi
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2820$as_echo "$MKDIR_P" >&6; }
2821
2822for ac_prog in gawk mawk nawk awk
2823do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825set dummy $ac_prog; ac_word=$2
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if ${ac_cv_prog_AWK+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830else
2831 if test -n "$AWK"; then
2832 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_AWK="$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846 done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851AWK=$ac_cv_prog_AWK
2852if test -n "$AWK"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2854$as_echo "$AWK" >&6; }
2855else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860
2861 test -n "$AWK" && break
2862done
2863
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2865$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2866set x ${MAKE-make}
2867ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2868if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870else
2871 cat >conftest.make <<\_ACEOF
2872SHELL = /bin/sh
2873all:
2874 @echo '@@@%%%=$(MAKE)=@@@%%%'
2875_ACEOF
2876# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2877case `${MAKE-make} -f conftest.make 2>/dev/null` in
2878 *@@@%%%=?*=@@@%%%*)
2879 eval ac_cv_prog_make_${ac_make}_set=yes;;
2880 *)
2881 eval ac_cv_prog_make_${ac_make}_set=no;;
2882esac
2883rm -f conftest.make
2884fi
2885if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2887$as_echo "yes" >&6; }
2888 SET_MAKE=
2889else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891$as_echo "no" >&6; }
2892 SET_MAKE="MAKE=${MAKE-make}"
2893fi
2894
2895rm -rf .tst 2>/dev/null
2896mkdir .tst 2>/dev/null
2897if test -d .tst; then
2898 am__leading_dot=.
2899else
2900 am__leading_dot=_
2901fi
2902rmdir .tst 2>/dev/null
2903
2904# Check whether --enable-silent-rules was given.
2905if test "${enable_silent_rules+set}" = set; then :
2906 enableval=$enable_silent_rules;
2907fi
2908
2909case $enable_silent_rules in # (((
2910 yes) AM_DEFAULT_VERBOSITY=0;;
2911 no) AM_DEFAULT_VERBOSITY=1;;
2912 *) AM_DEFAULT_VERBOSITY=1;;
2913esac
2914am_make=${MAKE-make}
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2916$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2917if ${am_cv_make_support_nested_variables+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919else
2920 if $as_echo 'TRUE=$(BAR$(V))
2921BAR0=false
2922BAR1=true
2923V=1
2924am__doit:
2925 @$(TRUE)
2926.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2927 am_cv_make_support_nested_variables=yes
2928else
2929 am_cv_make_support_nested_variables=no
2930fi
2931fi
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2933$as_echo "$am_cv_make_support_nested_variables" >&6; }
2934if test $am_cv_make_support_nested_variables = yes; then
2935 AM_V='$(V)'
2936 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2937else
2938 AM_V=$AM_DEFAULT_VERBOSITY
2939 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2940fi
2941AM_BACKSLASH='\'
2942
2943if test "`cd $srcdir && pwd`" != "`pwd`"; then
2944 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2945 # is not polluted with repeated "-I."
2946 am__isrc=' -I$(srcdir)'
2947 # test to see if srcdir already configured
2948 if test -f $srcdir/config.status; then
2949 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2950 fi
2951fi
2952
2953# test whether we have cygpath
2954if test -z "$CYGPATH_W"; then
2955 if (cygpath --version) >/dev/null 2>/dev/null; then
2956 CYGPATH_W='cygpath -w'
2957 else
2958 CYGPATH_W=echo
2959 fi
2960fi
2961
2962
2963# Define the identity of the package.
2964 PACKAGE='smartmontools'
ff28b140 2965 VERSION='7.0'
f9e10201
JD
2966
2967
2968cat >>confdefs.h <<_ACEOF
2969#define PACKAGE "$PACKAGE"
2970_ACEOF
2971
2972
2973cat >>confdefs.h <<_ACEOF
2974#define VERSION "$VERSION"
2975_ACEOF
2976
2977# Some tools Automake needs.
2978
2979ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2980
2981
2982AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2983
2984
2985AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2986
2987
2988AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2989
2990
2991MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2992
2993# For better backward compatibility. To be removed once Automake 1.9.x
2994# dies out for good. For more background, see:
2995# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2996# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2997mkdir_p='$(MKDIR_P)'
2998
2999# We need awk for the "check" target (and possibly the TAP driver). The
3000# system "awk" is bad on some platforms.
3001# Always define AMTAR for backward compatibility. Yes, it's still used
3002# in the wild :-( We should find a proper way to deprecate it ...
3003AMTAR='$${TAR-tar}'
3004
3005
3006# We'll loop over all known methods to create a tar archive until one works.
3007_am_tools='gnutar pax cpio none'
3008
3009am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3010
3011
3012
3013
3014
3015
3016# POSIX will say in a future version that running "rm -f" with no argument
3017# is OK; and we want to be able to make that assumption in our Makefile
3018# recipes. So use an aggressive probe to check that the usage we want is
3019# actually supported "in the wild" to an acceptable degree.
3020# See automake bug#10828.
3021# To make any issue more visible, cause the running configure to be aborted
3022# by default if the 'rm' program in use doesn't match our expectations; the
3023# user can still override this though.
3024if rm -f && rm -fr && rm -rf; then : OK; else
3025 cat >&2 <<'END'
3026Oops!
3027
3028Your 'rm' program seems unable to run without file operands specified
3029on the command line, even when the '-f' option is present. This is contrary
3030to the behaviour of most rm programs out there, and not conforming with
3031the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3032
3033Please tell bug-automake@gnu.org about your system, including the value
3034of your $PATH and any error possibly output before this message. This
3035can help us improve future automake versions.
3036
3037END
3038 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3039 echo 'Configuration will proceed anyway, since you have set the' >&2
3040 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3041 echo >&2
3042 else
3043 cat >&2 <<'END'
3044Aborting the configuration process, to ensure you take notice of the issue.
3045
3046You can download and install GNU coreutils to get an 'rm' implementation
3047that behaves properly: <http://www.gnu.org/software/coreutils/>.
3048
3049If you want to complete the configuration process using your problematic
3050'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3051to "yes", and re-run configure.
3052
3053END
3054 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3055 fi
3056fi
3057
3058
ff28b140
TL
3059# Version of drive database branch
3060smartmontools_drivedb_version=7.0
3061
3062smartmontools_cvs_tag=`echo '$Id: configure.ac 4883 2018-12-30 14:48:54Z chrfranke $'`
3063smartmontools_release_date=2018-12-30
3064smartmontools_release_time="14:47:55 UTC"
f9e10201
JD
3065
3066
3067cat >>confdefs.h <<_ACEOF
3068#define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args"
3069_ACEOF
3070
3071
3072cat >>confdefs.h <<_ACEOF
3073#define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date"
3074_ACEOF
3075
3076
3077cat >>confdefs.h <<_ACEOF
3078#define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time"
3079_ACEOF
3080
3081
3082cat >>confdefs.h <<_ACEOF
3083#define CONFIG_H_CVSID "$smartmontools_cvs_tag"
3084_ACEOF
3085
3086
3087cat >>confdefs.h <<_ACEOF
ff28b140 3088#define PACKAGE_HOMEPAGE "https://www.smartmontools.org/"
f9e10201
JD
3089_ACEOF
3090
3091
3092
3093ac_config_headers="$ac_config_headers config.h"
3094
3095
3096
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3098$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3099 # Check whether --enable-maintainer-mode was given.
3100if test "${enable_maintainer_mode+set}" = set; then :
3101 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3102else
3103 USE_MAINTAINER_MODE=no
3104fi
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3107$as_echo "$USE_MAINTAINER_MODE" >&6; }
3108 if test $USE_MAINTAINER_MODE = yes; then
3109 MAINTAINER_MODE_TRUE=
3110 MAINTAINER_MODE_FALSE='#'
3111else
3112 MAINTAINER_MODE_TRUE='#'
3113 MAINTAINER_MODE_FALSE=
3114fi
3115
3116 MAINT=$MAINTAINER_MODE_TRUE
3117
3118
3119
3120ac_ext=cpp
3121ac_cpp='$CXXCPP $CPPFLAGS'
3122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3125
3126ac_ext=cpp
3127ac_cpp='$CXXCPP $CPPFLAGS'
3128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3131if test -z "$CXX"; then
3132 if test -n "$CCC"; then
3133 CXX=$CCC
3134 else
3135 if test -n "$ac_tool_prefix"; then
3136 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3137 do
3138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if ${ac_cv_prog_CXX+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144else
3145 if test -n "$CXX"; then
3146 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159done
3160 done
3161IFS=$as_save_IFS
3162
3163fi
3164fi
3165CXX=$ac_cv_prog_CXX
3166if test -n "$CXX"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3168$as_echo "$CXX" >&6; }
3169else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172fi
3173
3174
3175 test -n "$CXX" && break
3176 done
3177fi
3178if test -z "$CXX"; then
3179 ac_ct_CXX=$CXX
3180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3181do
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183set dummy $ac_prog; ac_word=$2
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188else
3189 if test -n "$ac_ct_CXX"; then
3190 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_ac_ct_CXX="$ac_prog"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203done
3204 done
3205IFS=$as_save_IFS
3206
3207fi
3208fi
3209ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3210if test -n "$ac_ct_CXX"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3212$as_echo "$ac_ct_CXX" >&6; }
3213else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216fi
3217
3218
3219 test -n "$ac_ct_CXX" && break
3220done
3221
3222 if test "x$ac_ct_CXX" = x; then
3223 CXX="g++"
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226yes:)
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229ac_tool_warned=yes ;;
3230esac
3231 CXX=$ac_ct_CXX
3232 fi
3233fi
3234
3235 fi
3236fi
3237# Provide some information about the compiler.
3238$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3239set X $ac_compile
3240ac_compiler=$2
3241for ac_option in --version -v -V -qversion; do
3242 { { ac_try="$ac_compiler $ac_option >&5"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248$as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3250 ac_status=$?
3251 if test -s conftest.err; then
3252 sed '10a\
3253... rest of stderr output deleted ...
3254 10q' conftest.err >conftest.er1
3255 cat conftest.er1 >&5
3256 fi
3257 rm -f conftest.er1 conftest.err
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }
3260done
3261
3262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273ac_clean_files_save=$ac_clean_files
3274ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275# Try to create an executable without -o first, disregard a.out.
3276# It will help us diagnose broken compilers, and finding out an intuition
3277# of exeext.
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3279$as_echo_n "checking whether the C++ compiler works... " >&6; }
3280ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281
3282# The possible output files:
3283ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3284
3285ac_rmfiles=
3286for ac_file in $ac_files
3287do
3288 case $ac_file in
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3291 esac
3292done
3293rm -f $ac_rmfiles
3294
3295if { { ac_try="$ac_link_default"
3296case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301$as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link_default") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308# in a Makefile. We should not override ac_cv_exeext if it was cached,
3309# so that the user can short-circuit this test for compilers unknown to
3310# Autoconf.
3311for ac_file in $ac_files ''
3312do
3313 test -f "$ac_file" || continue
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3316 ;;
3317 [ab].out )
3318 # We found the default executable, but exeext='' is most
3319 # certainly right.
3320 break;;
3321 *.* )
3322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3323 then :; else
3324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325 fi
3326 # We set ac_cv_exeext here because the later test for it is not
3327 # safe: cross compilers may not add the suffix if given an `-o'
3328 # argument, so we may need to know it at that point already.
3329 # Even if this section looks crufty: it has the advantage of
3330 # actually working.
3331 break;;
3332 * )
3333 break;;
3334 esac
3335done
3336test "$ac_cv_exeext" = no && ac_cv_exeext=
3337
3338else
3339 ac_file=''
3340fi
3341if test -z "$ac_file"; then :
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
3344$as_echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349as_fn_error 77 "C++ compiler cannot create executables
3350See \`config.log' for more details" "$LINENO" 5; }
3351else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353$as_echo "yes" >&6; }
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3356$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358$as_echo "$ac_file" >&6; }
3359ac_exeext=$ac_cv_exeext
3360
3361rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362ac_clean_files=$ac_clean_files_save
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364$as_echo_n "checking for suffix of executables... " >&6; }
3365if { { ac_try="$ac_link"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371$as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_link") 2>&5
3373 ac_status=$?
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; then :
3376 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3378# work properly (i.e., refer to `conftest.exe'), while it won't with
3379# `rm'.
3380for ac_file in conftest.exe conftest conftest.*; do
3381 test -f "$ac_file" || continue
3382 case $ac_file in
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385 break;;
3386 * ) break;;
3387 esac
3388done
3389else
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393See \`config.log' for more details" "$LINENO" 5; }
3394fi
3395rm -f conftest conftest$ac_cv_exeext
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397$as_echo "$ac_cv_exeext" >&6; }
3398
3399rm -f conftest.$ac_ext
3400EXEEXT=$ac_cv_exeext
3401ac_exeext=$EXEEXT
3402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h. */
3404#include <stdio.h>
3405int
3406main ()
3407{
3408FILE *f = fopen ("conftest.out", "w");
3409 return ferror (f) || fclose (f) != 0;
3410
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415ac_clean_files="$ac_clean_files conftest.out"
3416# Check that the compiler produces executables we can run. If not, either
3417# the compiler is broken, or we cross compile.
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419$as_echo_n "checking whether we are cross compiling... " >&6; }
3420if test "$cross_compiling" != yes; then
3421 { { ac_try="$ac_link"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }
3432 if { ac_try='./conftest$ac_cv_exeext'
3433 { { case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_try") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; }; then
3443 cross_compiling=no
3444 else
3445 if test "$cross_compiling" = maybe; then
3446 cross_compiling=yes
3447 else
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450as_fn_error $? "cannot run C++ compiled programs.
3451If you meant to cross compile, use \`--host'.
3452See \`config.log' for more details" "$LINENO" 5; }
3453 fi
3454 fi
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457$as_echo "$cross_compiling" >&6; }
3458
3459rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460ac_clean_files=$ac_clean_files_save
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462$as_echo_n "checking for suffix of object files... " >&6; }
3463if ${ac_cv_objext+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465else
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h. */
3468
3469int
3470main ()
3471{
3472
3473 ;
3474 return 0;
3475}
3476_ACEOF
3477rm -f conftest.o conftest.obj
3478if { { ac_try="$ac_compile"
3479case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_compile") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 for ac_file in conftest.o conftest.obj conftest.*; do
3490 test -f "$ac_file" || continue;
3491 case $ac_file in
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494 break;;
3495 esac
3496done
3497else
3498 $as_echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503as_fn_error $? "cannot compute suffix of object files: cannot compile
3504See \`config.log' for more details" "$LINENO" 5; }
3505fi
3506rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509$as_echo "$ac_cv_objext" >&6; }
3510OBJEXT=$ac_cv_objext
3511ac_objext=$OBJEXT
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3513$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3514if ${ac_cv_cxx_compiler_gnu+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516else
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h. */
3519
3520int
3521main ()
3522{
3523#ifndef __GNUC__
3524 choke me
3525#endif
3526
3527 ;
3528 return 0;
3529}
3530_ACEOF
3531if ac_fn_cxx_try_compile "$LINENO"; then :
3532 ac_compiler_gnu=yes
3533else
3534 ac_compiler_gnu=no
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3538
3539fi
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3541$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3542if test $ac_compiler_gnu = yes; then
3543 GXX=yes
3544else
3545 GXX=
3546fi
3547ac_test_CXXFLAGS=${CXXFLAGS+set}
3548ac_save_CXXFLAGS=$CXXFLAGS
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3550$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3551if ${ac_cv_prog_cxx_g+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3555 ac_cxx_werror_flag=yes
3556 ac_cv_prog_cxx_g=no
3557 CXXFLAGS="-g"
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h. */
3560
3561int
3562main ()
3563{
3564
3565 ;
3566 return 0;
3567}
3568_ACEOF
3569if ac_fn_cxx_try_compile "$LINENO"; then :
3570 ac_cv_prog_cxx_g=yes
3571else
3572 CXXFLAGS=""
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h. */
3575
3576int
3577main ()
3578{
3579
3580 ;
3581 return 0;
3582}
3583_ACEOF
3584if ac_fn_cxx_try_compile "$LINENO"; then :
3585
3586else
3587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3588 CXXFLAGS="-g"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h. */
3591
3592int
3593main ()
3594{
3595
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600if ac_fn_cxx_try_compile "$LINENO"; then :
3601 ac_cv_prog_cxx_g=yes
3602fi
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604fi
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606fi
3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3611$as_echo "$ac_cv_prog_cxx_g" >&6; }
3612if test "$ac_test_CXXFLAGS" = set; then
3613 CXXFLAGS=$ac_save_CXXFLAGS
3614elif test $ac_cv_prog_cxx_g = yes; then
3615 if test "$GXX" = yes; then
3616 CXXFLAGS="-g -O2"
3617 else
3618 CXXFLAGS="-g"
3619 fi
3620else
3621 if test "$GXX" = yes; then
3622 CXXFLAGS="-O2"
3623 else
3624 CXXFLAGS=
3625 fi
3626fi
3627ac_ext=cpp
3628ac_cpp='$CXXCPP $CPPFLAGS'
3629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3632DEPDIR="${am__leading_dot}deps"
3633
3634ac_config_commands="$ac_config_commands depfiles"
3635
3636
3637am_make=${MAKE-make}
3638cat > confinc << 'END'
3639am__doit:
3640 @echo this is the am__doit target
3641.PHONY: am__doit
3642END
3643# If we don't find an include directive, just comment out the code.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3645$as_echo_n "checking for style of include used by $am_make... " >&6; }
3646am__include="#"
3647am__quote=
3648_am_result=none
3649# First try GNU make style include.
3650echo "include confinc" > confmf
3651# Ignore all kinds of additional output from 'make'.
3652case `$am_make -s -f confmf 2> /dev/null` in #(
3653*the\ am__doit\ target*)
3654 am__include=include
3655 am__quote=
3656 _am_result=GNU
3657 ;;
3658esac
3659# Now try BSD make style include.
3660if test "$am__include" = "#"; then
3661 echo '.include "confinc"' > confmf
3662 case `$am_make -s -f confmf 2> /dev/null` in #(
3663 *the\ am__doit\ target*)
3664 am__include=.include
3665 am__quote="\""
3666 _am_result=BSD
3667 ;;
3668 esac
3669fi
3670
3671
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673$as_echo "$_am_result" >&6; }
3674rm -f confinc confmf
3675
3676# Check whether --enable-dependency-tracking was given.
3677if test "${enable_dependency_tracking+set}" = set; then :
3678 enableval=$enable_dependency_tracking;
3679fi
3680
3681if test "x$enable_dependency_tracking" != xno; then
3682 am_depcomp="$ac_aux_dir/depcomp"
3683 AMDEPBACKSLASH='\'
3684 am__nodep='_no'
3685fi
3686 if test "x$enable_dependency_tracking" != xno; then
3687 AMDEP_TRUE=
3688 AMDEP_FALSE='#'
3689else
3690 AMDEP_TRUE='#'
3691 AMDEP_FALSE=
3692fi
3693
3694
3695
3696depcc="$CXX" am_compiler_list=
3697
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3699$as_echo_n "checking dependency style of $depcc... " >&6; }
3700if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702else
3703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3704 # We make a subdir and do the tests there. Otherwise we can end up
3705 # making bogus files that we don't know about and never remove. For
3706 # instance it was reported that on HP-UX the gcc test will end up
3707 # making a dummy file named 'D' -- because '-MD' means "put the output
3708 # in D".
3709 rm -rf conftest.dir
3710 mkdir conftest.dir
3711 # Copy depcomp to subdir because otherwise we won't find it if we're
3712 # using a relative directory.
3713 cp "$am_depcomp" conftest.dir
3714 cd conftest.dir
3715 # We will build objects and dependencies in a subdirectory because
3716 # it helps to detect inapplicable dependency modes. For instance
3717 # both Tru64's cc and ICC support -MD to output dependencies as a
3718 # side effect of compilation, but ICC will put the dependencies in
3719 # the current directory while Tru64 will put them in the object
3720 # directory.
3721 mkdir sub
3722
3723 am_cv_CXX_dependencies_compiler_type=none
3724 if test "$am_compiler_list" = ""; then
3725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3726 fi
3727 am__universal=false
3728 case " $depcc " in #(
3729 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3730 esac
3731
3732 for depmode in $am_compiler_list; do
3733 # Setup a source with many dependencies, because some compilers
3734 # like to wrap large dependency lists on column 80 (with \), and
3735 # we should not choose a depcomp mode which is confused by this.
3736 #
3737 # We need to recreate these files for each test, as the compiler may
3738 # overwrite some of them when testing with obscure command lines.
3739 # This happens at least with the AIX C compiler.
3740 : > sub/conftest.c
3741 for i in 1 2 3 4 5 6; do
3742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3743 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3744 # Solaris 10 /bin/sh.
3745 echo '/* dummy */' > sub/conftst$i.h
3746 done
3747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3748
3749 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3750 # mode. It turns out that the SunPro C++ compiler does not properly
3751 # handle '-M -o', and we need to detect this. Also, some Intel
3752 # versions had trouble with output in subdirs.
3753 am__obj=sub/conftest.${OBJEXT-o}
3754 am__minus_obj="-o $am__obj"
3755 case $depmode in
3756 gcc)
3757 # This depmode causes a compiler race in universal mode.
3758 test "$am__universal" = false || continue
3759 ;;
3760 nosideeffect)
3761 # After this tag, mechanisms are not by side-effect, so they'll
3762 # only be used when explicitly requested.
3763 if test "x$enable_dependency_tracking" = xyes; then
3764 continue
3765 else
3766 break
3767 fi
3768 ;;
3769 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3770 # This compiler won't grok '-c -o', but also, the minuso test has
3771 # not run yet. These depmodes are late enough in the game, and
3772 # so weak that their functioning should not be impacted.
3773 am__obj=conftest.${OBJEXT-o}
3774 am__minus_obj=
3775 ;;
3776 none) break ;;
3777 esac
3778 if depmode=$depmode \
3779 source=sub/conftest.c object=$am__obj \
3780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3781 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3782 >/dev/null 2>conftest.err &&
3783 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3785 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3787 # icc doesn't choke on unknown options, it will just issue warnings
3788 # or remarks (even with -Werror). So we grep stderr for any message
3789 # that says an option was ignored or not supported.
3790 # When given -MP, icc 7.0 and 7.1 complain thusly:
3791 # icc: Command line warning: ignoring option '-M'; no argument required
3792 # The diagnosis changed in icc 8.0:
3793 # icc: Command line remark: option '-MP' not supported
3794 if (grep 'ignoring option' conftest.err ||
3795 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3796 am_cv_CXX_dependencies_compiler_type=$depmode
3797 break
3798 fi
3799 fi
3800 done
3801
3802 cd ..
3803 rm -rf conftest.dir
3804else
3805 am_cv_CXX_dependencies_compiler_type=none
3806fi
3807
3808fi
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3810$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3811CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3812
3813 if
3814 test "x$enable_dependency_tracking" != xno \
3815 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3816 am__fastdepCXX_TRUE=
3817 am__fastdepCXX_FALSE='#'
3818else
3819 am__fastdepCXX_TRUE='#'
3820 am__fastdepCXX_FALSE=
3821fi
3822
3823
3824ac_ext=c
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3831set dummy ${ac_tool_prefix}gcc; ac_word=$2
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833$as_echo_n "checking for $ac_word... " >&6; }
3834if ${ac_cv_prog_CC+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836else
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3839else
3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851done
3852 done
3853IFS=$as_save_IFS
3854
3855fi
3856fi
3857CC=$ac_cv_prog_CC
3858if test -n "$CC"; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3860$as_echo "$CC" >&6; }
3861else
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863$as_echo "no" >&6; }
3864fi
3865
3866
3867fi
3868if test -z "$ac_cv_prog_CC"; then
3869 ac_ct_CC=$CC
3870 # Extract the first word of "gcc", so it can be a program name with args.
3871set dummy gcc; ac_word=$2
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873$as_echo_n "checking for $ac_word... " >&6; }
3874if ${ac_cv_prog_ac_ct_CC+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876else
3877 if test -n "$ac_ct_CC"; then
3878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3879else
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_ac_ct_CC="gcc"
3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 break 2
3890 fi
3891done
3892 done
3893IFS=$as_save_IFS
3894
3895fi
3896fi
3897ac_ct_CC=$ac_cv_prog_ac_ct_CC
3898if test -n "$ac_ct_CC"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3900$as_echo "$ac_ct_CC" >&6; }
3901else
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
3904fi
3905
3906 if test "x$ac_ct_CC" = x; then
3907 CC=""
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910yes:)
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3913ac_tool_warned=yes ;;
3914esac
3915 CC=$ac_ct_CC
3916 fi
3917else
3918 CC="$ac_cv_prog_CC"
3919fi
3920
3921if test -z "$CC"; then
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3924set dummy ${ac_tool_prefix}cc; ac_word=$2
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926$as_echo_n "checking for $ac_word... " >&6; }
3927if ${ac_cv_prog_CC+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929else
3930 if test -n "$CC"; then
3931 ac_cv_prog_CC="$CC" # Let the user override the test.
3932else
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_CC="${ac_tool_prefix}cc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945 done
3946IFS=$as_save_IFS
3947
3948fi
3949fi
3950CC=$ac_cv_prog_CC
3951if test -n "$CC"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953$as_echo "$CC" >&6; }
3954else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
3957fi
3958
3959
3960 fi
3961fi
3962if test -z "$CC"; then
3963 # Extract the first word of "cc", so it can be a program name with args.
3964set dummy cc; ac_word=$2
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966$as_echo_n "checking for $ac_word... " >&6; }
3967if ${ac_cv_prog_CC+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969else
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3972else
3973 ac_prog_rejected=no
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3982 ac_prog_rejected=yes
3983 continue
3984 fi
3985 ac_cv_prog_CC="cc"
3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3988 fi
3989done
3990 done
3991IFS=$as_save_IFS
3992
3993if test $ac_prog_rejected = yes; then
3994 # We found a bogon in the path, so make sure we never use it.
3995 set dummy $ac_cv_prog_CC
3996 shift
3997 if test $# != 0; then
3998 # We chose a different compiler from the bogus one.
3999 # However, it has the same basename, so the bogon will be chosen
4000 # first if we set CC to just the basename; use the full file name.
4001 shift
4002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4003 fi
4004fi
4005fi
4006fi
4007CC=$ac_cv_prog_CC
4008if test -n "$CC"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010$as_echo "$CC" >&6; }
4011else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014fi
4015
4016
4017fi
4018if test -z "$CC"; then
4019 if test -n "$ac_tool_prefix"; then
4020 for ac_prog in cl.exe
4021 do
4022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if ${ac_cv_prog_CC+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028else
4029 if test -n "$CC"; then
4030 ac_cv_prog_CC="$CC" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043done
4044 done
4045IFS=$as_save_IFS
4046
4047fi
4048fi
4049CC=$ac_cv_prog_CC
4050if test -n "$CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052$as_echo "$CC" >&6; }
4053else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
4056fi
4057
4058
4059 test -n "$CC" && break
4060 done
4061fi
4062if test -z "$CC"; then
4063 ac_ct_CC=$CC
4064 for ac_prog in cl.exe
4065do
4066 # Extract the first word of "$ac_prog", so it can be a program name with args.
4067set dummy $ac_prog; ac_word=$2
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
4070if ${ac_cv_prog_ac_ct_CC+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072else
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_ac_ct_CC="$ac_prog"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087done
4088 done
4089IFS=$as_save_IFS
4090
4091fi
4092fi
4093ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094if test -n "$ac_ct_CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096$as_echo "$ac_ct_CC" >&6; }
4097else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099$as_echo "no" >&6; }
4100fi
4101
4102
4103 test -n "$ac_ct_CC" && break
4104done
4105
4106 if test "x$ac_ct_CC" = x; then
4107 CC=""
4108 else
4109 case $cross_compiling:$ac_tool_warned in
4110yes:)
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4113ac_tool_warned=yes ;;
4114esac
4115 CC=$ac_ct_CC
4116 fi
4117fi
4118
4119fi
4120
4121
4122test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124as_fn_error $? "no acceptable C compiler found in \$PATH
4125See \`config.log' for more details" "$LINENO" 5; }
4126
4127# Provide some information about the compiler.
4128$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4129set X $ac_compile
4130ac_compiler=$2
4131for ac_option in --version -v -V -qversion; do
4132 { { ac_try="$ac_compiler $ac_option >&5"
4133case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136esac
4137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138$as_echo "$ac_try_echo"; } >&5
4139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4140 ac_status=$?
4141 if test -s conftest.err; then
4142 sed '10a\
4143... rest of stderr output deleted ...
4144 10q' conftest.err >conftest.er1
4145 cat conftest.er1 >&5
4146 fi
4147 rm -f conftest.er1 conftest.err
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }
4150done
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4153$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4154if ${ac_cv_c_compiler_gnu+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h. */
4159
4160int
4161main ()
4162{
4163#ifndef __GNUC__
4164 choke me
4165#endif
4166
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_compiler_gnu=yes
4173else
4174 ac_compiler_gnu=no
4175fi
4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177ac_cv_c_compiler_gnu=$ac_compiler_gnu
4178
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4181$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4182if test $ac_compiler_gnu = yes; then
4183 GCC=yes
4184else
4185 GCC=
4186fi
4187ac_test_CFLAGS=${CFLAGS+set}
4188ac_save_CFLAGS=$CFLAGS
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4190$as_echo_n "checking whether $CC accepts -g... " >&6; }
4191if ${ac_cv_prog_cc_g+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193else
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 ac_cv_prog_cc_g=no
4197 CFLAGS="-g"
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h. */
4200
4201int
4202main ()
4203{
4204
4205 ;
4206 return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_g=yes
4211else
4212 CFLAGS=""
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h. */
4215
4216int
4217main ()
4218{
4219
4220 ;
4221 return 0;
4222}
4223_ACEOF
4224if ac_fn_c_try_compile "$LINENO"; then :
4225
4226else
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4228 CFLAGS="-g"
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h. */
4231
4232int
4233main ()
4234{
4235
4236 ;
4237 return 0;
4238}
4239_ACEOF
4240if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_cv_prog_cc_g=yes
4242fi
4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246fi
4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4251$as_echo "$ac_cv_prog_cc_g" >&6; }
4252if test "$ac_test_CFLAGS" = set; then
4253 CFLAGS=$ac_save_CFLAGS
4254elif test $ac_cv_prog_cc_g = yes; then
4255 if test "$GCC" = yes; then
4256 CFLAGS="-g -O2"
4257 else
4258 CFLAGS="-g"
4259 fi
4260else
4261 if test "$GCC" = yes; then
4262 CFLAGS="-O2"
4263 else
4264 CFLAGS=
4265 fi
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4268$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4269if ${ac_cv_prog_cc_c89+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271else
4272 ac_cv_prog_cc_c89=no
4273ac_save_CC=$CC
4274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h. */
4276#include <stdarg.h>
4277#include <stdio.h>
4278struct stat;
4279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4280struct buf { int x; };
4281FILE * (*rcsopen) (struct buf *, struct stat *, int);
4282static char *e (p, i)
4283 char **p;
4284 int i;
4285{
4286 return p[i];
4287}
4288static char *f (char * (*g) (char **, int), char **p, ...)
4289{
4290 char *s;
4291 va_list v;
4292 va_start (v,p);
4293 s = g (p, va_arg (v,int));
4294 va_end (v);
4295 return s;
4296}
4297
4298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4299 function prototypes and stuff, but not '\xHH' hex character constants.
4300 These don't provoke an error unfortunately, instead are silently treated
4301 as 'x'. The following induces an error, until -std is added to get
4302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4303 array size at least. It's necessary to write '\x00'==0 to get something
4304 that's true only with -std. */
4305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4306
4307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4308 inside strings and character constants. */
4309#define FOO(x) 'x'
4310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4311
4312int test (int i, double x);
4313struct s1 {int (*f) (int a);};
4314struct s2 {int (*f) (double a);};
4315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4316int argc;
4317char **argv;
4318int
4319main ()
4320{
4321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4328do
4329 CC="$ac_save_CC $ac_arg"
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_prog_cc_c89=$ac_arg
4332fi
4333rm -f core conftest.err conftest.$ac_objext
4334 test "x$ac_cv_prog_cc_c89" != "xno" && break
4335done
4336rm -f conftest.$ac_ext
4337CC=$ac_save_CC
4338
4339fi
4340# AC_CACHE_VAL
4341case "x$ac_cv_prog_cc_c89" in
4342 x)
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4344$as_echo "none needed" >&6; } ;;
4345 xno)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347$as_echo "unsupported" >&6; } ;;
4348 *)
4349 CC="$CC $ac_cv_prog_cc_c89"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4352esac
4353if test "x$ac_cv_prog_cc_c89" != xno; then :
4354
4355fi
4356
4357ac_ext=cpp
4358ac_cpp='$CXXCPP $CPPFLAGS'
4359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4362
4363ac_ext=c
4364ac_cpp='$CPP $CPPFLAGS'
4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4369$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4370if ${am_cv_prog_cc_c_o+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372else
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h. */
4375
4376int
4377main ()
4378{
4379
4380 ;
4381 return 0;
4382}
4383_ACEOF
4384 # Make sure it works both with $CC and with simple cc.
4385 # Following AC_PROG_CC_C_O, we do the test twice because some
4386 # compilers refuse to overwrite an existing .o file with -o,
4387 # though they will create one.
4388 am_cv_prog_cc_c_o=yes
4389 for am_i in 1 2; do
4390 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4391 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } \
4395 && test -f conftest2.$ac_objext; then
4396 : OK
4397 else
4398 am_cv_prog_cc_c_o=no
4399 break
4400 fi
4401 done
4402 rm -f core conftest*
4403 unset am_i
4404fi
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4406$as_echo "$am_cv_prog_cc_c_o" >&6; }
4407if test "$am_cv_prog_cc_c_o" != yes; then
4408 # Losing compiler, so override with the script.
4409 # FIXME: It is wrong to rewrite CC.
4410 # But if we don't then we get into trouble of one sort or another.
4411 # A longer-term fix would be to have automake use am__CC in this case,
4412 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4413 CC="$am_aux_dir/compile $CC"
4414fi
4415ac_ext=cpp
4416ac_cpp='$CXXCPP $CPPFLAGS'
4417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420
4421
4422depcc="$CC" am_compiler_list=
4423
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4425$as_echo_n "checking dependency style of $depcc... " >&6; }
4426if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428else
4429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4430 # We make a subdir and do the tests there. Otherwise we can end up
4431 # making bogus files that we don't know about and never remove. For
4432 # instance it was reported that on HP-UX the gcc test will end up
4433 # making a dummy file named 'D' -- because '-MD' means "put the output
4434 # in D".
4435 rm -rf conftest.dir
4436 mkdir conftest.dir
4437 # Copy depcomp to subdir because otherwise we won't find it if we're
4438 # using a relative directory.
4439 cp "$am_depcomp" conftest.dir
4440 cd conftest.dir
4441 # We will build objects and dependencies in a subdirectory because
4442 # it helps to detect inapplicable dependency modes. For instance
4443 # both Tru64's cc and ICC support -MD to output dependencies as a
4444 # side effect of compilation, but ICC will put the dependencies in
4445 # the current directory while Tru64 will put them in the object
4446 # directory.
4447 mkdir sub
4448
4449 am_cv_CC_dependencies_compiler_type=none
4450 if test "$am_compiler_list" = ""; then
4451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4452 fi
4453 am__universal=false
4454 case " $depcc " in #(
4455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4456 esac
4457
4458 for depmode in $am_compiler_list; do
4459 # Setup a source with many dependencies, because some compilers
4460 # like to wrap large dependency lists on column 80 (with \), and
4461 # we should not choose a depcomp mode which is confused by this.
4462 #
4463 # We need to recreate these files for each test, as the compiler may
4464 # overwrite some of them when testing with obscure command lines.
4465 # This happens at least with the AIX C compiler.
4466 : > sub/conftest.c
4467 for i in 1 2 3 4 5 6; do
4468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4469 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4470 # Solaris 10 /bin/sh.
4471 echo '/* dummy */' > sub/conftst$i.h
4472 done
4473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4474
4475 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4476 # mode. It turns out that the SunPro C++ compiler does not properly
4477 # handle '-M -o', and we need to detect this. Also, some Intel
4478 # versions had trouble with output in subdirs.
4479 am__obj=sub/conftest.${OBJEXT-o}
4480 am__minus_obj="-o $am__obj"
4481 case $depmode in
4482 gcc)
4483 # This depmode causes a compiler race in universal mode.
4484 test "$am__universal" = false || continue
4485 ;;
4486 nosideeffect)
4487 # After this tag, mechanisms are not by side-effect, so they'll
4488 # only be used when explicitly requested.
4489 if test "x$enable_dependency_tracking" = xyes; then
4490 continue
4491 else
4492 break
4493 fi
4494 ;;
4495 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4496 # This compiler won't grok '-c -o', but also, the minuso test has
4497 # not run yet. These depmodes are late enough in the game, and
4498 # so weak that their functioning should not be impacted.
4499 am__obj=conftest.${OBJEXT-o}
4500 am__minus_obj=
4501 ;;
4502 none) break ;;
4503 esac
4504 if depmode=$depmode \
4505 source=sub/conftest.c object=$am__obj \
4506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4508 >/dev/null 2>conftest.err &&
4509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4513 # icc doesn't choke on unknown options, it will just issue warnings
4514 # or remarks (even with -Werror). So we grep stderr for any message
4515 # that says an option was ignored or not supported.
4516 # When given -MP, icc 7.0 and 7.1 complain thusly:
4517 # icc: Command line warning: ignoring option '-M'; no argument required
4518 # The diagnosis changed in icc 8.0:
4519 # icc: Command line remark: option '-MP' not supported
4520 if (grep 'ignoring option' conftest.err ||
4521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4522 am_cv_CC_dependencies_compiler_type=$depmode
4523 break
4524 fi
4525 fi
4526 done
4527
4528 cd ..
4529 rm -rf conftest.dir
4530else
4531 am_cv_CC_dependencies_compiler_type=none
4532fi
4533
4534fi
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4536$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4537CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4538
4539 if
4540 test "x$enable_dependency_tracking" != xno \
4541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4542 am__fastdepCC_TRUE=
4543 am__fastdepCC_FALSE='#'
4544else
4545 am__fastdepCC_TRUE='#'
4546 am__fastdepCC_FALSE=
4547fi
4548
4549
4550# By default we simply use the C compiler to build assembly code.
4551
4552test "${CCAS+set}" = set || CCAS=$CC
4553test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4554
4555
4556
4557depcc="$CCAS" am_compiler_list=
4558
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4560$as_echo_n "checking dependency style of $depcc... " >&6; }
4561if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563else
4564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4565 # We make a subdir and do the tests there. Otherwise we can end up
4566 # making bogus files that we don't know about and never remove. For
4567 # instance it was reported that on HP-UX the gcc test will end up
4568 # making a dummy file named 'D' -- because '-MD' means "put the output
4569 # in D".
4570 rm -rf conftest.dir
4571 mkdir conftest.dir
4572 # Copy depcomp to subdir because otherwise we won't find it if we're
4573 # using a relative directory.
4574 cp "$am_depcomp" conftest.dir
4575 cd conftest.dir
4576 # We will build objects and dependencies in a subdirectory because
4577 # it helps to detect inapplicable dependency modes. For instance
4578 # both Tru64's cc and ICC support -MD to output dependencies as a
4579 # side effect of compilation, but ICC will put the dependencies in
4580 # the current directory while Tru64 will put them in the object
4581 # directory.
4582 mkdir sub
4583
4584 am_cv_CCAS_dependencies_compiler_type=none
4585 if test "$am_compiler_list" = ""; then
4586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4587 fi
4588 am__universal=false
4589
4590
4591 for depmode in $am_compiler_list; do
4592 # Setup a source with many dependencies, because some compilers
4593 # like to wrap large dependency lists on column 80 (with \), and
4594 # we should not choose a depcomp mode which is confused by this.
4595 #
4596 # We need to recreate these files for each test, as the compiler may
4597 # overwrite some of them when testing with obscure command lines.
4598 # This happens at least with the AIX C compiler.
4599 : > sub/conftest.c
4600 for i in 1 2 3 4 5 6; do
4601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4603 # Solaris 10 /bin/sh.
4604 echo '/* dummy */' > sub/conftst$i.h
4605 done
4606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4607
4608 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4609 # mode. It turns out that the SunPro C++ compiler does not properly
4610 # handle '-M -o', and we need to detect this. Also, some Intel
4611 # versions had trouble with output in subdirs.
4612 am__obj=sub/conftest.${OBJEXT-o}
4613 am__minus_obj="-o $am__obj"
4614 case $depmode in
4615 gcc)
4616 # This depmode causes a compiler race in universal mode.
4617 test "$am__universal" = false || continue
4618 ;;
4619 nosideeffect)
4620 # After this tag, mechanisms are not by side-effect, so they'll
4621 # only be used when explicitly requested.
4622 if test "x$enable_dependency_tracking" = xyes; then
4623 continue
4624 else
4625 break
4626 fi
4627 ;;
4628 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4629 # This compiler won't grok '-c -o', but also, the minuso test has
4630 # not run yet. These depmodes are late enough in the game, and
4631 # so weak that their functioning should not be impacted.
4632 am__obj=conftest.${OBJEXT-o}
4633 am__minus_obj=
4634 ;;
4635 none) break ;;
4636 esac
4637 if depmode=$depmode \
4638 source=sub/conftest.c object=$am__obj \
4639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4641 >/dev/null 2>conftest.err &&
4642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4646 # icc doesn't choke on unknown options, it will just issue warnings
4647 # or remarks (even with -Werror). So we grep stderr for any message
4648 # that says an option was ignored or not supported.
4649 # When given -MP, icc 7.0 and 7.1 complain thusly:
4650 # icc: Command line warning: ignoring option '-M'; no argument required
4651 # The diagnosis changed in icc 8.0:
4652 # icc: Command line remark: option '-MP' not supported
4653 if (grep 'ignoring option' conftest.err ||
4654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4655 am_cv_CCAS_dependencies_compiler_type=$depmode
4656 break
4657 fi
4658 fi
4659 done
4660
4661 cd ..
4662 rm -rf conftest.dir
4663else
4664 am_cv_CCAS_dependencies_compiler_type=none
4665fi
4666
4667fi
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4669$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4670CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4671
4672 if
4673 test "x$enable_dependency_tracking" != xno \
4674 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4675 am__fastdepCCAS_TRUE=
4676 am__fastdepCCAS_FALSE='#'
4677else
4678 am__fastdepCCAS_TRUE='#'
4679 am__fastdepCCAS_FALSE=
4680fi
4681
4682
4683
4684
4685
4686if test "$cross_compiling" = "no"; then
4687
4688
4689
4690
4691
4692
4693
4694if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4697set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_path_PKG_CONFIG+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 case $PKG_CONFIG in
4704 [\\/]* | ?:[\\/]*)
4705 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4706 ;;
4707 *)
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719done
4720 done
4721IFS=$as_save_IFS
4722
4723 ;;
4724esac
4725fi
4726PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4727if test -n "$PKG_CONFIG"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4729$as_echo "$PKG_CONFIG" >&6; }
4730else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736fi
4737if test -z "$ac_cv_path_PKG_CONFIG"; then
4738 ac_pt_PKG_CONFIG=$PKG_CONFIG
4739 # Extract the first word of "pkg-config", so it can be a program name with args.
4740set dummy pkg-config; ac_word=$2
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742$as_echo_n "checking for $ac_word... " >&6; }
4743if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745else
4746 case $ac_pt_PKG_CONFIG in
4747 [\\/]* | ?:[\\/]*)
4748 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4749 ;;
4750 *)
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762done
4763 done
4764IFS=$as_save_IFS
4765
4766 ;;
4767esac
4768fi
4769ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4770if test -n "$ac_pt_PKG_CONFIG"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4772$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4773else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778 if test "x$ac_pt_PKG_CONFIG" = x; then
4779 PKG_CONFIG=""
4780 else
4781 case $cross_compiling:$ac_tool_warned in
4782yes:)
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785ac_tool_warned=yes ;;
4786esac
4787 PKG_CONFIG=$ac_pt_PKG_CONFIG
4788 fi
4789else
4790 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4791fi
4792
4793fi
4794if test -n "$PKG_CONFIG"; then
4795 _pkg_min_version=0.9.0
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4797$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4798 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4800$as_echo "yes" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804 PKG_CONFIG=""
4805 fi
4806fi
4807fi
4808
4809
4810
4811
4812
4813# Make sure we can run config.sub.
4814$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4815 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4816
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4818$as_echo_n "checking build system type... " >&6; }
4819if ${ac_cv_build+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821else
4822 ac_build_alias=$build_alias
4823test "x$ac_build_alias" = x &&
4824 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4825test "x$ac_build_alias" = x &&
4826 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4827ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4828 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4832$as_echo "$ac_cv_build" >&6; }
4833case $ac_cv_build in
4834*-*-*) ;;
4835*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4836esac
4837build=$ac_cv_build
4838ac_save_IFS=$IFS; IFS='-'
4839set x $ac_cv_build
4840shift
4841build_cpu=$1
4842build_vendor=$2
4843shift; shift
4844# Remember, the first character of IFS is used to create $*,
4845# except with old shells:
4846build_os=$*
4847IFS=$ac_save_IFS
4848case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4849
4850
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4852$as_echo_n "checking host system type... " >&6; }
4853if ${ac_cv_host+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 if test "x$host_alias" = x; then
4857 ac_cv_host=$ac_cv_build
4858else
4859 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4861fi
4862
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4865$as_echo "$ac_cv_host" >&6; }
4866case $ac_cv_host in
4867*-*-*) ;;
4868*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4869esac
4870host=$ac_cv_host
4871ac_save_IFS=$IFS; IFS='-'
4872set x $ac_cv_host
4873shift
4874host_cpu=$1
4875host_vendor=$2
4876shift; shift
4877# Remember, the first character of IFS is used to create $*,
4878# except with old shells:
4879host_os=$*
4880IFS=$ac_save_IFS
4881case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4882
4883
4884case "${host}" in
4885 *-*-mingw*)
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}windmc", so it can be a program name with args.
4888set dummy ${ac_tool_prefix}windmc; ac_word=$2
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890$as_echo_n "checking for $ac_word... " >&6; }
4891if ${ac_cv_prog_WINDMC+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893else
4894 if test -n "$WINDMC"; then
4895 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_WINDMC="${ac_tool_prefix}windmc"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908done
4909 done
4910IFS=$as_save_IFS
4911
4912fi
4913fi
4914WINDMC=$ac_cv_prog_WINDMC
4915if test -n "$WINDMC"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
4917$as_echo "$WINDMC" >&6; }
4918else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920$as_echo "no" >&6; }
4921fi
4922
4923
4924fi
4925if test -z "$ac_cv_prog_WINDMC"; then
4926 ac_ct_WINDMC=$WINDMC
4927 # Extract the first word of "windmc", so it can be a program name with args.
4928set dummy windmc; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if ${ac_cv_prog_ac_ct_WINDMC+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 if test -n "$ac_ct_WINDMC"; then
4935 ac_cv_prog_ac_ct_WINDMC="$ac_ct_WINDMC" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_ac_ct_WINDMC="windmc"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
4949 done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954ac_ct_WINDMC=$ac_cv_prog_ac_ct_WINDMC
4955if test -n "$ac_ct_WINDMC"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDMC" >&5
4957$as_echo "$ac_ct_WINDMC" >&6; }
4958else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963 if test "x$ac_ct_WINDMC" = x; then
4964 WINDMC=""
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967yes:)
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970ac_tool_warned=yes ;;
4971esac
4972 WINDMC=$ac_ct_WINDMC
4973 fi
4974else
4975 WINDMC="$ac_cv_prog_WINDMC"
4976fi
4977
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4980set dummy ${ac_tool_prefix}windres; ac_word=$2
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982$as_echo_n "checking for $ac_word... " >&6; }
4983if ${ac_cv_prog_WINDRES+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985else
4986 if test -n "$WINDRES"; then
4987 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001 done
5002IFS=$as_save_IFS
5003
5004fi
5005fi
5006WINDRES=$ac_cv_prog_WINDRES
5007if test -n "$WINDRES"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
5009$as_echo "$WINDRES" >&6; }
5010else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012$as_echo "no" >&6; }
5013fi
5014
5015
5016fi
5017if test -z "$ac_cv_prog_WINDRES"; then
5018 ac_ct_WINDRES=$WINDRES
5019 # Extract the first word of "windres", so it can be a program name with args.
5020set dummy windres; ac_word=$2
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022$as_echo_n "checking for $ac_word... " >&6; }
5023if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025else
5026 if test -n "$ac_ct_WINDRES"; then
5027 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_ac_ct_WINDRES="windres"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041 done
5042IFS=$as_save_IFS
5043
5044fi
5045fi
5046ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5047if test -n "$ac_ct_WINDRES"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
5049$as_echo "$ac_ct_WINDRES" >&6; }
5050else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055 if test "x$ac_ct_WINDRES" = x; then
5056 WINDRES=""
5057 else
5058 case $cross_compiling:$ac_tool_warned in
5059yes:)
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062ac_tool_warned=yes ;;
5063esac
5064 WINDRES=$ac_ct_WINDRES
5065 fi
5066else
5067 WINDRES="$ac_cv_prog_WINDRES"
5068fi
5069
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makensis" >&5
5072$as_echo_n "checking for makensis... " >&6; }
5073 if test -z "$MAKENSIS"; then
5074 if test -n "$PROGRAMFILES" && "$PROGRAMFILES/NSIS/makensis" -VERSION >/dev/null 2>&1; then
5075 MAKENSIS="$PROGRAMFILES/NSIS/makensis"
5076 elif makensis -VERSION >/dev/null 2>&1; then
5077 MAKENSIS=makensis
5078 fi
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MAKENSIS:-no}" >&5
5081$as_echo "${MAKENSIS:-no}" >&6; }
5082 ;;
5083esac
5084
5085# Check for SVN.
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a build from SVN" >&5
5087$as_echo_n "checking whether this is a build from SVN... " >&6; }
5088is_svn_build=no
5089svn_deps=
5090if test -f "$srcdir/.svn/wc.db"; then
5091 # SVN 1.7, 1.8 working copy
5092 svn_deps='${srcdir}/.svn/wc.db'
5093elif test -f "${srcdir}/.svn/entries"; then
5094 # SVN <= 1.6 working copy (SVN 1.7 has empty entries file)
5095 svn_deps='${srcdir}/.svn/entries'
5096fi
5097if test -n "$svn_deps"; then
5098 is_svn_build=unknown
5099 if (cd "$srcdir" && svn --version && svnversion && svn info) >/dev/null 2>&1; then
5100 is_svn_build=yes
5101 fi
5102fi
5103
5104 if test "$is_svn_build" = "yes"; then
5105 IS_SVN_BUILD_TRUE=
5106 IS_SVN_BUILD_FALSE='#'
5107else
5108 IS_SVN_BUILD_TRUE='#'
5109 IS_SVN_BUILD_FALSE=
5110fi
5111
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_svn_build" >&5
5113$as_echo "$is_svn_build" >&6; }
5114
5115# Note: On Linux, clock_gettime() requires -lrt which implies -lpthreads
ff28b140 5116# Check omitted for now, gettimeofday() provides reasonable precision
f9e10201
JD
5117# AC_SEARCH_LIBS(clock_gettime, rt)
5118
ff28b140 5119# Checks for header files.
f9e10201
JD
5120
5121ac_ext=cpp
5122ac_cpp='$CXXCPP $CPPFLAGS'
5123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5127$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5128if test -z "$CXXCPP"; then
5129 if ${ac_cv_prog_CXXCPP+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131else
5132 # Double quotes because CXXCPP needs to be expanded
5133 for CXXCPP in "$CXX -E" "/lib/cpp"
5134 do
5135 ac_preproc_ok=false
5136for ac_cxx_preproc_warn_flag in '' yes
5137do
5138 # Use a header file that comes with gcc, so configuring glibc
5139 # with a fresh cross-compiler works.
5140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 # <limits.h> exists even on freestanding compilers.
5142 # On the NeXT, cc -E runs the code through the compiler's parser,
5143 # not just through cpp. "Syntax error" is here to catch this case.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h. */
5146#ifdef __STDC__
5147# include <limits.h>
5148#else
5149# include <assert.h>
5150#endif
5151 Syntax error
5152_ACEOF
5153if ac_fn_cxx_try_cpp "$LINENO"; then :
5154
5155else
5156 # Broken: fails on valid input.
5157continue
5158fi
5159rm -f conftest.err conftest.i conftest.$ac_ext
5160
5161 # OK, works on sane cases. Now check whether nonexistent headers
5162 # can be detected and how.
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h. */
5165#include <ac_nonexistent.h>
5166_ACEOF
5167if ac_fn_cxx_try_cpp "$LINENO"; then :
5168 # Broken: success on invalid input.
5169continue
5170else
5171 # Passes both tests.
5172ac_preproc_ok=:
5173break
5174fi
5175rm -f conftest.err conftest.i conftest.$ac_ext
5176
5177done
5178# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179rm -f conftest.i conftest.err conftest.$ac_ext
5180if $ac_preproc_ok; then :
5181 break
5182fi
5183
5184 done
5185 ac_cv_prog_CXXCPP=$CXXCPP
5186
5187fi
5188 CXXCPP=$ac_cv_prog_CXXCPP
5189else
5190 ac_cv_prog_CXXCPP=$CXXCPP
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5193$as_echo "$CXXCPP" >&6; }
5194ac_preproc_ok=false
5195for ac_cxx_preproc_warn_flag in '' yes
5196do
5197 # Use a header file that comes with gcc, so configuring glibc
5198 # with a fresh cross-compiler works.
5199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200 # <limits.h> exists even on freestanding compilers.
5201 # On the NeXT, cc -E runs the code through the compiler's parser,
5202 # not just through cpp. "Syntax error" is here to catch this case.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
5205#ifdef __STDC__
5206# include <limits.h>
5207#else
5208# include <assert.h>
5209#endif
5210 Syntax error
5211_ACEOF
5212if ac_fn_cxx_try_cpp "$LINENO"; then :
5213
5214else
5215 # Broken: fails on valid input.
5216continue
5217fi
5218rm -f conftest.err conftest.i conftest.$ac_ext
5219
5220 # OK, works on sane cases. Now check whether nonexistent headers
5221 # can be detected and how.
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223/* end confdefs.h. */
5224#include <ac_nonexistent.h>
5225_ACEOF
5226if ac_fn_cxx_try_cpp "$LINENO"; then :
5227 # Broken: success on invalid input.
5228continue
5229else
5230 # Passes both tests.
5231ac_preproc_ok=:
5232break
5233fi
5234rm -f conftest.err conftest.i conftest.$ac_ext
5235
5236done
5237# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5238rm -f conftest.i conftest.err conftest.$ac_ext
5239if $ac_preproc_ok; then :
5240
5241else
5242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5244as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5245See \`config.log' for more details" "$LINENO" 5; }
5246fi
5247
5248ac_ext=cpp
5249ac_cpp='$CXXCPP $CPPFLAGS'
5250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5253
5254
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5256$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5257if ${ac_cv_path_GREP+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259else
5260 if test -z "$GREP"; then
5261 ac_path_GREP_found=false
5262 # Loop through the user's path and test for each of PROGNAME-LIST
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_prog in grep ggrep; do
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5271 as_fn_executable_p "$ac_path_GREP" || continue
5272# Check for GNU ac_path_GREP and select it if it is found.
5273 # Check for GNU $ac_path_GREP
5274case `"$ac_path_GREP" --version 2>&1` in
5275*GNU*)
5276 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5277*)
5278 ac_count=0
5279 $as_echo_n 0123456789 >"conftest.in"
5280 while :
5281 do
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 $as_echo 'GREP' >> "conftest.nl"
5286 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288 as_fn_arith $ac_count + 1 && ac_count=$as_val
5289 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_GREP="$ac_path_GREP"
5292 ac_path_GREP_max=$ac_count
5293 fi
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5296 done
5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298esac
5299
5300 $ac_path_GREP_found && break 3
5301 done
5302 done
5303 done
5304IFS=$as_save_IFS
5305 if test -z "$ac_cv_path_GREP"; then
5306 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5307 fi
5308else
5309 ac_cv_path_GREP=$GREP
5310fi
5311
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5314$as_echo "$ac_cv_path_GREP" >&6; }
5315 GREP="$ac_cv_path_GREP"
5316
5317
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5319$as_echo_n "checking for egrep... " >&6; }
5320if ${ac_cv_path_EGREP+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322else
5323 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5324 then ac_cv_path_EGREP="$GREP -E"
5325 else
5326 if test -z "$EGREP"; then
5327 ac_path_EGREP_found=false
5328 # Loop through the user's path and test for each of PROGNAME-LIST
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_prog in egrep; do
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5337 as_fn_executable_p "$ac_path_EGREP" || continue
5338# Check for GNU ac_path_EGREP and select it if it is found.
5339 # Check for GNU $ac_path_EGREP
5340case `"$ac_path_EGREP" --version 2>&1` in
5341*GNU*)
5342 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5343*)
5344 ac_count=0
5345 $as_echo_n 0123456789 >"conftest.in"
5346 while :
5347 do
5348 cat "conftest.in" "conftest.in" >"conftest.tmp"
5349 mv "conftest.tmp" "conftest.in"
5350 cp "conftest.in" "conftest.nl"
5351 $as_echo 'EGREP' >> "conftest.nl"
5352 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5354 as_fn_arith $ac_count + 1 && ac_count=$as_val
5355 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5356 # Best one so far, save it but keep looking for a better one
5357 ac_cv_path_EGREP="$ac_path_EGREP"
5358 ac_path_EGREP_max=$ac_count
5359 fi
5360 # 10*(2^10) chars as input seems more than enough
5361 test $ac_count -gt 10 && break
5362 done
5363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5364esac
5365
5366 $ac_path_EGREP_found && break 3
5367 done
5368 done
5369 done
5370IFS=$as_save_IFS
5371 if test -z "$ac_cv_path_EGREP"; then
5372 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5373 fi
5374else
5375 ac_cv_path_EGREP=$EGREP
5376fi
5377
5378 fi
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5381$as_echo "$ac_cv_path_EGREP" >&6; }
5382 EGREP="$ac_cv_path_EGREP"
5383
5384
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5386$as_echo_n "checking for ANSI C header files... " >&6; }
5387if ${ac_cv_header_stdc+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389else
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391/* end confdefs.h. */
5392#include <stdlib.h>
5393#include <stdarg.h>
5394#include <string.h>
5395#include <float.h>
5396
5397int
5398main ()
5399{
5400
5401 ;
5402 return 0;
5403}
5404_ACEOF
5405if ac_fn_cxx_try_compile "$LINENO"; then :
5406 ac_cv_header_stdc=yes
5407else
5408 ac_cv_header_stdc=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411
5412if test $ac_cv_header_stdc = yes; then
5413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416#include <string.h>
5417
5418_ACEOF
5419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "memchr" >/dev/null 2>&1; then :
5421
5422else
5423 ac_cv_header_stdc=no
5424fi
5425rm -f conftest*
5426
5427fi
5428
5429if test $ac_cv_header_stdc = yes; then
5430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#include <stdlib.h>
5434
5435_ACEOF
5436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 $EGREP "free" >/dev/null 2>&1; then :
5438
5439else
5440 ac_cv_header_stdc=no
5441fi
5442rm -f conftest*
5443
5444fi
5445
5446if test $ac_cv_header_stdc = yes; then
5447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5448 if test "$cross_compiling" = yes; then :
5449 :
5450else
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h. */
5453#include <ctype.h>
5454#include <stdlib.h>
5455#if ((' ' & 0x0FF) == 0x020)
5456# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5457# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5458#else
5459# define ISLOWER(c) \
5460 (('a' <= (c) && (c) <= 'i') \
5461 || ('j' <= (c) && (c) <= 'r') \
5462 || ('s' <= (c) && (c) <= 'z'))
5463# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5464#endif
5465
5466#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5467int
5468main ()
5469{
5470 int i;
5471 for (i = 0; i < 256; i++)
5472 if (XOR (islower (i), ISLOWER (i))
5473 || toupper (i) != TOUPPER (i))
5474 return 2;
5475 return 0;
5476}
5477_ACEOF
5478if ac_fn_cxx_try_run "$LINENO"; then :
5479
5480else
5481 ac_cv_header_stdc=no
5482fi
5483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5484 conftest.$ac_objext conftest.beam conftest.$ac_ext
5485fi
5486
5487fi
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5490$as_echo "$ac_cv_header_stdc" >&6; }
5491if test $ac_cv_header_stdc = yes; then
5492
5493$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5494
5495fi
5496
5497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5498for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5499 inttypes.h stdint.h unistd.h
5500do :
5501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5503"
5504if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5505 cat >>confdefs.h <<_ACEOF
5506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5507_ACEOF
5508
5509fi
5510
5511done
5512
5513
5514for ac_header in locale.h
5515do :
5516 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5517if test "x$ac_cv_header_locale_h" = xyes; then :
5518 cat >>confdefs.h <<_ACEOF
5519#define HAVE_LOCALE_H 1
5520_ACEOF
5521
5522fi
5523
5524done
5525
ff28b140 5526for ac_header in byteswap.h
f9e10201 5527do :
ff28b140
TL
5528 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
5529if test "x$ac_cv_header_byteswap_h" = xyes; then :
f9e10201 5530 cat >>confdefs.h <<_ACEOF
ff28b140 5531#define HAVE_BYTESWAP_H 1
f9e10201
JD
5532_ACEOF
5533
5534fi
5535
5536done
5537
f9e10201 5538
ff28b140
TL
5539case "$host" in
5540 *-*-freebsd*|*-*-dragonfly*|*-*-kfreebsd*-gnu*)
5541 # Check for FreeBSD twe and twa include files
5542 for ac_header in sys/tweio.h sys/twereg.h sys/tw_osl_ioctl.h
f9e10201 5543do :
ff28b140
TL
5544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
f9e10201 5547 cat >>confdefs.h <<_ACEOF
ff28b140 5548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
f9e10201
JD
5549_ACEOF
5550
5551fi
5552
5553done
5554
ff28b140
TL
5555 # Check for the FreeBSD CCISS system header and use internal one if not found
5556 for ac_header in dev/ciss/cissio.h
f9e10201 5557do :
ff28b140
TL
5558 ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ciss/cissio.h" "ac_cv_header_dev_ciss_cissio_h" "$ac_includes_default"
5559if test "x$ac_cv_header_dev_ciss_cissio_h" = xyes; then :
f9e10201 5560 cat >>confdefs.h <<_ACEOF
ff28b140 5561#define HAVE_DEV_CISS_CISSIO_H 1
f9e10201
JD
5562_ACEOF
5563
ff28b140 5564$as_echo "#define CISS_LOCATION <dev/ciss/cissio.h>" >>confdefs.h
f9e10201 5565
ff28b140 5566else
f9e10201 5567
ff28b140 5568$as_echo "#define CISS_LOCATION \"cissio_freebsd.h\"" >>confdefs.h
f9e10201
JD
5569
5570fi
5571
5572done
5573
ff28b140
TL
5574 ;;
5575 *-*-linux*)
5576 # <linux/compiler.h> is needed for cciss_ioctl.h at least on SuSE LINUX
5577 for ac_header in sys/sysmacros.h linux/compiler.h
f9e10201 5578do :
ff28b140
TL
5579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5580ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
f9e10201 5582 cat >>confdefs.h <<_ACEOF
ff28b140 5583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
f9e10201
JD
5584_ACEOF
5585
f9e10201
JD
5586fi
5587
5588done
5589
ff28b140
TL
5590 # Check for Linux CCISS include file
5591 for ac_header in linux/cciss_ioctl.h
f9e10201
JD
5592do :
5593 ac_fn_cxx_check_header_compile "$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default
5594#ifdef HAVE_LINUX_COMPILER_H
5595# include <linux/compiler.h>
5596#endif
5597
5598"
5599if test "x$ac_cv_header_linux_cciss_ioctl_h" = xyes; then :
5600 cat >>confdefs.h <<_ACEOF
5601#define HAVE_LINUX_CCISS_IOCTL_H 1
5602_ACEOF
5603
5604fi
5605
5606done
5607
ff28b140
TL
5608 ;;
5609 *-*-netbsd*|*-*-openbsd*)
5610 for ac_header in dev/ata/atavar.h
f9e10201 5611do :
ff28b140
TL
5612 ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ata/atavar.h" "ac_cv_header_dev_ata_atavar_h" "$ac_includes_default"
5613if test "x$ac_cv_header_dev_ata_atavar_h" = xyes; then :
f9e10201 5614 cat >>confdefs.h <<_ACEOF
ff28b140 5615#define HAVE_DEV_ATA_ATAVAR_H 1
f9e10201
JD
5616_ACEOF
5617
5618fi
5619
5620done
5621
ff28b140
TL
5622 ;;
5623 *-*-cygwin*|*-*-mingw*)
5624 # Check for Windows DDK header files
5625 for ac_header in ntdddisk.h ddk/ntdddisk.h
f9e10201 5626do :
ff28b140
TL
5627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5628ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5629#include <windows.h>
5630
5631"
5632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
f9e10201 5633 cat >>confdefs.h <<_ACEOF
ff28b140 5634#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
f9e10201
JD
5635_ACEOF
5636
5637fi
5638
5639done
5640
ff28b140
TL
5641 ;;
5642esac
f9e10201 5643
ff28b140
TL
5644# Checks for typedefs, and compiler characteristics.
5645ac_fn_cxx_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
5646if test "x$ac_cv_type___int128" = xyes; then :
f9e10201
JD
5647
5648cat >>confdefs.h <<_ACEOF
ff28b140 5649#define HAVE___INT128 1
f9e10201
JD
5650_ACEOF
5651
5652
5653fi
f9e10201 5654
f9e10201 5655
ff28b140
TL
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
5657$as_echo_n "checking for long double with more range or precision than double... " >&6; }
5658if ${ac_cv_type_long_double_wider+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663#include <float.h>
5664 long double const a[] =
5665 {
5666 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
5667 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
5668 };
5669 long double
5670 f (long double x)
5671 {
5672 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
5673 + (x ? f (x) : 'c'));
5674 }
5675
5676int
5677main ()
5678{
5679static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
5680 + (DBL_MANT_DIG < LDBL_MANT_DIG)
5681 - (LDBL_MAX_EXP < DBL_MAX_EXP)
5682 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
5683 && (int) LDBL_EPSILON == 0
5684 )];
5685test_array [0] = 0;
5686return test_array [0];
f9e10201 5687
ff28b140
TL
5688 ;
5689 return 0;
5690}
5691_ACEOF
5692if ac_fn_cxx_try_compile "$LINENO"; then :
5693 ac_cv_type_long_double_wider=yes
5694else
5695 ac_cv_type_long_double_wider=no
5696fi
5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f9e10201 5698fi
ff28b140
TL
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
5700$as_echo "$ac_cv_type_long_double_wider" >&6; }
5701 if test $ac_cv_type_long_double_wider = yes; then
f9e10201 5702
ff28b140 5703$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
f9e10201 5704
ff28b140
TL
5705 fi
5706
5707
5708# Checks for library functions.
f9e10201
JD
5709for ac_func in getopt_long
5710do :
5711 ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5712if test "x$ac_cv_func_getopt_long" = xyes; then :
5713 cat >>confdefs.h <<_ACEOF
5714#define HAVE_GETOPT_LONG 1
5715_ACEOF
5716 need_getopt_long=no
5717else
5718 need_getopt_long=yes
5719fi
5720done
5721
5722 if test "$need_getopt_long" = "yes"; then
5723 NEED_GETOPT_LONG_TRUE=
5724 NEED_GETOPT_LONG_FALSE='#'
5725else
5726 NEED_GETOPT_LONG_TRUE='#'
5727 NEED_GETOPT_LONG_FALSE=
5728fi
5729
f9e10201
JD
5730
5731for ac_func in clock_gettime ftime gettimeofday
5732do :
5733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5734ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5735if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5736 cat >>confdefs.h <<_ACEOF
5737#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5738_ACEOF
5739
5740fi
5741done
5742
5743
5744# Check byte ordering (defines WORDS_BIGENDIAN)
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5746$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5747if ${ac_cv_c_bigendian+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749else
5750 ac_cv_c_bigendian=unknown
5751 # See if we're dealing with a universal compiler.
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h. */
5754#ifndef __APPLE_CC__
5755 not a universal capable compiler
5756 #endif
5757 typedef int dummy;
5758
5759_ACEOF
5760if ac_fn_cxx_try_compile "$LINENO"; then :
5761
5762 # Check for potential -arch flags. It is not universal unless
5763 # there are at least two -arch flags with different values.
5764 ac_arch=
5765 ac_prev=
5766 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5767 if test -n "$ac_prev"; then
5768 case $ac_word in
5769 i?86 | x86_64 | ppc | ppc64)
5770 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5771 ac_arch=$ac_word
5772 else
5773 ac_cv_c_bigendian=universal
5774 break
5775 fi
5776 ;;
5777 esac
5778 ac_prev=
5779 elif test "x$ac_word" = "x-arch"; then
5780 ac_prev=arch
5781 fi
5782 done
5783fi
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 if test $ac_cv_c_bigendian = unknown; then
5786 # See if sys/param.h defines the BYTE_ORDER macro.
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h. */
5789#include <sys/types.h>
5790 #include <sys/param.h>
5791
5792int
5793main ()
5794{
5795#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5796 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5797 && LITTLE_ENDIAN)
5798 bogus endian macros
5799 #endif
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805if ac_fn_cxx_try_compile "$LINENO"; then :
5806 # It does; now see whether it defined to BIG_ENDIAN or not.
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h. */
5809#include <sys/types.h>
5810 #include <sys/param.h>
5811
5812int
5813main ()
5814{
5815#if BYTE_ORDER != BIG_ENDIAN
5816 not big endian
5817 #endif
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
5823if ac_fn_cxx_try_compile "$LINENO"; then :
5824 ac_cv_c_bigendian=yes
5825else
5826 ac_cv_c_bigendian=no
5827fi
5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829fi
5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 fi
5832 if test $ac_cv_c_bigendian = unknown; then
5833 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h. */
5836#include <limits.h>
5837
5838int
5839main ()
5840{
5841#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5842 bogus endian macros
5843 #endif
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
5849if ac_fn_cxx_try_compile "$LINENO"; then :
5850 # It does; now see whether it defined to _BIG_ENDIAN or not.
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h. */
5853#include <limits.h>
5854
5855int
5856main ()
5857{
5858#ifndef _BIG_ENDIAN
5859 not big endian
5860 #endif
5861
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866if ac_fn_cxx_try_compile "$LINENO"; then :
5867 ac_cv_c_bigendian=yes
5868else
5869 ac_cv_c_bigendian=no
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 fi
5875 if test $ac_cv_c_bigendian = unknown; then
5876 # Compile a test program.
5877 if test "$cross_compiling" = yes; then :
5878 # Try to guess by grepping values from an object file.
5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880/* end confdefs.h. */
5881short int ascii_mm[] =
5882 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5883 short int ascii_ii[] =
5884 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5885 int use_ascii (int i) {
5886 return ascii_mm[i] + ascii_ii[i];
5887 }
5888 short int ebcdic_ii[] =
5889 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5890 short int ebcdic_mm[] =
5891 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5892 int use_ebcdic (int i) {
5893 return ebcdic_mm[i] + ebcdic_ii[i];
5894 }
5895 extern int foo;
5896
5897int
5898main ()
5899{
5900return use_ascii (foo) == use_ebcdic (foo);
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905if ac_fn_cxx_try_compile "$LINENO"; then :
5906 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5907 ac_cv_c_bigendian=yes
5908 fi
5909 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5910 if test "$ac_cv_c_bigendian" = unknown; then
5911 ac_cv_c_bigendian=no
5912 else
5913 # finding both strings is unlikely to happen, but who knows?
5914 ac_cv_c_bigendian=unknown
5915 fi
5916 fi
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919else
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h. */
5922$ac_includes_default
5923int
5924main ()
5925{
5926
5927 /* Are we little or big endian? From Harbison&Steele. */
5928 union
5929 {
5930 long int l;
5931 char c[sizeof (long int)];
5932 } u;
5933 u.l = 1;
5934 return u.c[sizeof (long int) - 1] == 1;
5935
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940if ac_fn_cxx_try_run "$LINENO"; then :
5941 ac_cv_c_bigendian=no
5942else
5943 ac_cv_c_bigendian=yes
5944fi
5945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5946 conftest.$ac_objext conftest.beam conftest.$ac_ext
5947fi
5948
5949 fi
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5952$as_echo "$ac_cv_c_bigendian" >&6; }
5953 case $ac_cv_c_bigendian in #(
5954 yes)
5955 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5956;; #(
5957 no)
5958 ;; #(
5959 universal)
5960
5961$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5962
5963 ;; #(
5964 *)
5965 as_fn_error $? "unknown endianness
5966 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5967 esac
5968
5969
5970# check for __attribute__((packed))
5971# (sizeof() check is required to avoid false positives if other
5972# __attribute__((x)) are supported)
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __attribute__((packed))" >&5
5974$as_echo_n "checking whether $CXX supports __attribute__((packed))... " >&6; }
5975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h. */
5977
5978int
5979main ()
5980{
5981
5982 struct s { char a; short b; } __attribute__((packed));
5983 typedef char t[sizeof(struct s) == 3 ? 1 : -1];
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988if ac_fn_cxx_try_compile "$LINENO"; then :
5989 gcc_have_attr_packed=yes
5990else
5991 gcc_have_attr_packed=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994
5995if test "$gcc_have_attr_packed" = "yes"; then
5996
5997$as_echo "#define HAVE_ATTR_PACKED 1" >>confdefs.h
5998
5999fi
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_attr_packed" >&5
6001$as_echo "$gcc_have_attr_packed" >&6; }
6002
6003
6004
6005
6006
ff28b140 6007initddir=
f9e10201
JD
6008
6009# Check whether --with-initscriptdir was given.
6010if test "${with_initscriptdir+set}" = set; then :
ff28b140
TL
6011 withval=$with_initscriptdir; case "$withval" in
6012 auto|yes) as_fn_error $? "'--with-initscriptdir=$withval' is no longer supported" "$LINENO" 5 ;;
6013 no) ;;
6014 *) initddir="$withval" ;;
6015 esac
f9e10201 6016
ff28b140 6017fi
f9e10201 6018
f9e10201
JD
6019
6020 if test -n "$initddir"; then
6021 INSTALL_INITSCRIPT_TRUE=
6022 INSTALL_INITSCRIPT_FALSE='#'
6023else
6024 INSTALL_INITSCRIPT_TRUE='#'
6025 INSTALL_INITSCRIPT_FALSE=
6026fi
6027
6028
6029# use different init script templates for different OS
6030case "${host}" in
6031 *-*-freebsd*)
6032 initdfile="smartd.freebsd.initd"
6033 ;;
6034 *-apple-darwin*)
6035 initdfile="com.smartmontools.smartd.plist"
6036 ;;
ff28b140
TL
6037 *-*-cygwin*)
6038 initdfile="smartd.cygwin.initd"
6039 ;;
f9e10201
JD
6040 *)
6041 initdfile="smartd.initd"
6042 ;;
6043esac
6044
6045
6046
6047# Check whether --with-exampledir was given.
6048if test "${with_exampledir+set}" = set; then :
6049 withval=$with_exampledir; exampledir="$withval"
6050else
6051 exampledir='${docdir}/examplescripts'
6052fi
6053
6054
6055
6056drivedbdir='${datadir}/${PACKAGE}'
6057
6058# Check whether --with-drivedbdir was given.
6059if test "${with_drivedbdir+set}" = set; then :
6060 withval=$with_drivedbdir; case "$withval" in yes) ;; no) drivedbdir= ;; *) drivedbdir="$withval" ;; esac
6061fi
6062
6063
6064 if test -n "$drivedbdir"; then
6065 ENABLE_DRIVEDB_TRUE=
6066 ENABLE_DRIVEDB_FALSE='#'
6067else
6068 ENABLE_DRIVEDB_TRUE='#'
6069 ENABLE_DRIVEDB_FALSE=
6070fi
6071
6072
ff28b140 6073drivedb_version=$smartmontools_drivedb_version
f9e10201
JD
6074
6075# Check whether --with-update-smart_drivedb was given.
6076if test "${with_update_smart_drivedb+set}" = set; then :
6077 withval=$with_update_smart_drivedb; case "$withval" in
6078 yes|no) ;;
6079 5.4[0-3]|6.[0-9]) drivedb_version=$withval; with_update_smart_drivedb=yes ;;
6080 *) as_fn_error $? "Invalid drivedb branch version: $withval" "$LINENO" 5 ;;
6081 esac
6082
6083else
6084 with_update_smart_drivedb=yes
6085fi
6086
6087test -n "$drivedbdir" || with_update_smart_drivedb=no
6088
6089 if test "$with_update_smart_drivedb" = "yes"; then
6090 ENABLE_UPDATE_SMART_DRIVEDB_TRUE=
6091 ENABLE_UPDATE_SMART_DRIVEDB_FALSE='#'
6092else
6093 ENABLE_UPDATE_SMART_DRIVEDB_TRUE='#'
6094 ENABLE_UPDATE_SMART_DRIVEDB_FALSE=
6095fi
6096
6097
6098gnupg="gpg"
6099# Also check for '--with-gnupg[=yes]' because 'yes' is a valid command with infinite output
6100
6101# Check whether --with-gnupg was given.
6102if test "${with_gnupg+set}" = set; then :
6103 withval=$with_gnupg; case "$withval" in yes) ;; no) gnupg= ;; *) gnupg="$withval" ;; esac
6104fi
6105
6106
6107
6108case "$with_update_smart_drivedb:$gnupg" in
6109 no:?*)
6110 as_fn_error $? "
6111'--without-update-smart-drivedb' now requires '--without-gnupg'.
6112NEWS: update-smart-drivedb now verifies the downloaded drivedb.h file with GnuPG." "$LINENO" 5
6113 ;;
6114esac
6115
6116
6117# Check whether --with-smartdscriptdir was given.
6118if test "${with_smartdscriptdir+set}" = set; then :
6119 withval=$with_smartdscriptdir; smartdscriptdir="$withval"
6120else
6121 smartdscriptdir='${sysconfdir}'
6122fi
6123
6124
6125
6126
6127# Check whether --with-smartdplugindir was given.
6128if test "${with_smartdplugindir+set}" = set; then :
6129 withval=$with_smartdplugindir; smartdplugindir=; test "$withval" != "no" && smartdplugindir="$withval"
6130else
6131 smartdplugindir='${smartdscriptdir}/smartd_warning.d'
6132fi
6133
6134
6135
6136
6137# Check whether --with-scriptpath was given.
6138if test "${with_scriptpath+set}" = set; then :
6139 withval=$with_scriptpath; scriptpath=; test "$withval" != "no" && scriptpath="$withval"
6140else
ff28b140 6141 scriptpath="/usr/local/bin:/usr/bin:/bin"
f9e10201
JD
6142fi
6143
6144
6145 if test -n "$scriptpath"; then
6146 ENABLE_SCRIPTPATH_TRUE=
6147 ENABLE_SCRIPTPATH_FALSE='#'
6148else
6149 ENABLE_SCRIPTPATH_TRUE='#'
6150 ENABLE_SCRIPTPATH_FALSE=
6151fi
6152
6153
6154savestates=
6155
6156# Check whether --with-savestates was given.
6157if test "${with_savestates+set}" = set; then :
6158 withval=$with_savestates; case "$withval" in yes) savestates='${localstatedir}/lib/${PACKAGE}/smartd.' ;;
6159 no) ;; *) savestates="$withval" ;; esac
6160fi
6161
6162savestatesdir="${savestates%/*}"
6163
6164
6165 if test -n "$savestates"; then
6166 ENABLE_SAVESTATES_TRUE=
6167 ENABLE_SAVESTATES_FALSE='#'
6168else
6169 ENABLE_SAVESTATES_TRUE='#'
6170 ENABLE_SAVESTATES_FALSE=
6171fi
6172
6173
6174attributelog=
6175
6176# Check whether --with-attributelog was given.
6177if test "${with_attributelog+set}" = set; then :
6178 withval=$with_attributelog; case "$withval" in yes) attributelog='${localstatedir}/lib/${PACKAGE}/attrlog.' ;;
6179 no) ;; *) attributelog="$withval" ;; esac
6180fi
6181
6182attributelogdir="${attributelog%/*}"
6183
6184
6185 if test -n "$attributelog"; then
6186 ENABLE_ATTRIBUTELOG_TRUE=
6187 ENABLE_ATTRIBUTELOG_FALSE='#'
6188else
6189 ENABLE_ATTRIBUTELOG_TRUE='#'
6190 ENABLE_ATTRIBUTELOG_FALSE=
6191fi
6192
6193
6194# Check whether --enable-sample was given.
6195if test "${enable_sample+set}" = set; then :
6196 enableval=$enable_sample; smartd_suffix=; test "$enableval" = "yes" && smartd_suffix=".sample"
6197else
6198 smartd_suffix=;
6199fi
6200
6201
6202
ff28b140
TL
6203# Check whether --enable-scsi-cdb-check was given.
6204if test "${enable_scsi_cdb_check+set}" = set; then :
6205 enableval=$enable_scsi_cdb_check; if test "$enableval" = "yes"; then
6206
6207$as_echo "#define SCSI_CDB_CHECK 1" >>confdefs.h
6208
6209 fi
6210
6211fi
6212
6213
6214# Check whether --enable-fast-lebe was given.
6215if test "${enable_fast_lebe+set}" = set; then :
6216 enableval=$enable_fast_lebe; if test "$enableval" = "no"; then
6217
6218$as_echo "#define IGNORE_FAST_LEBE 1" >>confdefs.h
6219
6220 fi
6221
6222fi
6223
6224
f9e10201
JD
6225
6226# Check whether --with-os-deps was given.
6227if test "${with_os_deps+set}" = set; then :
6228 withval=$with_os_deps; for x in $with_os_deps; do
6229 case $x in
6230 *.o) ;;
6231 *) as_fn_error $? "non-object file specified by --with-os-deps" "$LINENO" 5 ;;
6232 esac
6233 done
6234
6235fi
6236
6237
6238
6239# Check whether --with-selinux was given.
6240if test "${with_selinux+set}" = set; then :
6241 withval=$with_selinux; if test "$withval" = "yes"; then
6242 for ac_header in selinux/selinux.h
6243do :
6244 ac_fn_cxx_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
6245if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
6246 cat >>confdefs.h <<_ACEOF
6247#define HAVE_SELINUX_SELINUX_H 1
6248_ACEOF
6249
6250else
6251 as_fn_error $? "Missing SELinux header files" "$LINENO" 5
6252fi
6253
6254done
6255
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matchpathcon in -lselinux" >&5
6257$as_echo_n "checking for matchpathcon in -lselinux... " >&6; }
6258if ${ac_cv_lib_selinux_matchpathcon+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260else
6261 ac_check_lib_save_LIBS=$LIBS
6262LIBS="-lselinux $LIBS"
6263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h. */
6265
6266/* Override any GCC internal prototype to avoid an error.
6267 Use char because int might match the return type of a GCC
6268 builtin and then its argument prototype would still apply. */
6269#ifdef __cplusplus
6270extern "C"
6271#endif
6272char matchpathcon ();
6273int
6274main ()
6275{
6276return matchpathcon ();
6277 ;
6278 return 0;
6279}
6280_ACEOF
6281if ac_fn_cxx_try_link "$LINENO"; then :
6282 ac_cv_lib_selinux_matchpathcon=yes
6283else
6284 ac_cv_lib_selinux_matchpathcon=no
6285fi
6286rm -f core conftest.err conftest.$ac_objext \
6287 conftest$ac_exeext conftest.$ac_ext
6288LIBS=$ac_check_lib_save_LIBS
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_matchpathcon" >&5
6291$as_echo "$ac_cv_lib_selinux_matchpathcon" >&6; }
6292if test "x$ac_cv_lib_selinux_matchpathcon" = xyes; then :
6293 cat >>confdefs.h <<_ACEOF
6294#define HAVE_LIBSELINUX 1
6295_ACEOF
6296
6297 LIBS="-lselinux $LIBS"
6298
6299else
6300 as_fn_error $? "Missing or incorrect SELinux library files" "$LINENO" 5
6301fi
6302
6303 fi
6304
6305fi
6306
6307
f9e10201
JD
6308
6309# Check whether --with-libcap-ng was given.
6310if test "${with_libcap_ng+set}" = set; then :
6311 withval=$with_libcap_ng;
6312else
6313 with_libcap_ng=auto
6314fi
6315
6316
6317use_libcap_ng=no
ff28b140
TL
6318case "$with_libcap_ng:$host_os" in
6319 auto:linux*|yes:*)
6320 for ac_header in cap-ng.h
6321do :
6322 ac_fn_cxx_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default"
6323if test "x$ac_cv_header_cap_ng_h" = xyes; then :
6324 cat >>confdefs.h <<_ACEOF
6325#define HAVE_CAP_NG_H 1
6326_ACEOF
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_clear in -lcap-ng" >&5
f9e10201
JD
6328$as_echo_n "checking for capng_clear in -lcap-ng... " >&6; }
6329if ${ac_cv_lib_cap_ng_capng_clear+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 ac_check_lib_save_LIBS=$LIBS
6333LIBS="-lcap-ng $LIBS"
6334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h. */
6336
6337/* Override any GCC internal prototype to avoid an error.
6338 Use char because int might match the return type of a GCC
6339 builtin and then its argument prototype would still apply. */
6340#ifdef __cplusplus
6341extern "C"
6342#endif
6343char capng_clear ();
6344int
6345main ()
6346{
6347return capng_clear ();
6348 ;
6349 return 0;
6350}
6351_ACEOF
6352if ac_fn_cxx_try_link "$LINENO"; then :
6353 ac_cv_lib_cap_ng_capng_clear=yes
6354else
6355 ac_cv_lib_cap_ng_capng_clear=no
6356fi
6357rm -f core conftest.err conftest.$ac_objext \
6358 conftest$ac_exeext conftest.$ac_ext
6359LIBS=$ac_check_lib_save_LIBS
6360fi
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_clear" >&5
6362$as_echo "$ac_cv_lib_cap_ng_capng_clear" >&6; }
6363if test "x$ac_cv_lib_cap_ng_capng_clear" = xyes; then :
6364
6365$as_echo "#define HAVE_LIBCAP_NG 1" >>confdefs.h
ff28b140
TL
6366 CAPNG_LDADD="-lcap-ng"; use_libcap_ng=yes
6367else
6368 as_fn_error $? "libcap-ng headers found but library is missing" "$LINENO" 5
f9e10201
JD
6369fi
6370
ff28b140
TL
6371else
6372 test "$with_libcap_ng" != "yes" || as_fn_error $? "Missing libcap-ng header files" "$LINENO" 5
6373fi
f9e10201 6374
ff28b140 6375done
f9e10201 6376
ff28b140
TL
6377 ;;
6378esac
6379
6380
6381
6382# Check whether --with-libsystemd was given.
6383if test "${with_libsystemd+set}" = set; then :
6384 withval=$with_libsystemd;
f9e10201 6385else
ff28b140 6386 with_libsystemd=auto
f9e10201
JD
6387fi
6388
6389
ff28b140
TL
6390use_libsystemd=no
6391case "$with_libsystemd:$host_os" in
6392 auto:linux*|yes:*)
6393 for ac_header in systemd/sd-daemon.h
6394do :
6395 ac_fn_cxx_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
6396if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
6397 cat >>confdefs.h <<_ACEOF
6398#define HAVE_SYSTEMD_SD_DAEMON_H 1
6399_ACEOF
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd" >&5
6401$as_echo_n "checking for sd_notify in -lsystemd... " >&6; }
6402if ${ac_cv_lib_systemd_sd_notify+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404else
6405 ac_check_lib_save_LIBS=$LIBS
6406LIBS="-lsystemd $LIBS"
6407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408/* end confdefs.h. */
6409
6410/* Override any GCC internal prototype to avoid an error.
6411 Use char because int might match the return type of a GCC
6412 builtin and then its argument prototype would still apply. */
6413#ifdef __cplusplus
6414extern "C"
6415#endif
6416char sd_notify ();
6417int
6418main ()
6419{
6420return sd_notify ();
6421 ;
6422 return 0;
6423}
6424_ACEOF
6425if ac_fn_cxx_try_link "$LINENO"; then :
6426 ac_cv_lib_systemd_sd_notify=yes
6427else
6428 ac_cv_lib_systemd_sd_notify=no
f9e10201 6429fi
ff28b140
TL
6430rm -f core conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6432LIBS=$ac_check_lib_save_LIBS
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_notify" >&5
6435$as_echo "$ac_cv_lib_systemd_sd_notify" >&6; }
6436if test "x$ac_cv_lib_systemd_sd_notify" = xyes; then :
f9e10201 6437
ff28b140
TL
6438$as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
6439 SYSTEMD_LDADD="-lsystemd"; use_libsystemd=yes
6440else
6441 as_fn_error $? "libsystemd headers found but library is missing" "$LINENO" 5
6442fi
f9e10201 6443
ff28b140
TL
6444else
6445 test "$with_libsystemd" != "yes" || as_fn_error $? "Missing libsystemd header files" "$LINENO" 5
6446fi
f9e10201 6447
ff28b140 6448done
f9e10201 6449
ff28b140
TL
6450 ;;
6451esac
6452
6453
6454
6455# Check whether --with-systemdsystemunitdir was given.
6456if test "${with_systemdsystemunitdir+set}" = set; then :
6457 withval=$with_systemdsystemunitdir;
6458else
6459 with_systemdsystemunitdir=auto
f9e10201
JD
6460fi
6461
6462
ff28b140
TL
6463systemdsystemunitdir=
6464case "$with_systemdsystemunitdir:$use_libsystemd" in
6465 auto:yes|yes:yes)
6466 if test -n "$PKG_CONFIG"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemdsystemunitdir" >&5
6468$as_echo_n "checking for systemdsystemunitdir... " >&6; }
6469 systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd 2>/dev/null`
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdsystemunitdir:-no}" >&5
6471$as_echo "${systemdsystemunitdir:-no}" >&6; }
6472 fi
6473 case "$with_systemdsystemunitdir:$sysconfdir:$systemdsystemunitdir" in
6474 yes:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;;
6475 yes:*:*|auto:*:|auto:/etc:*) ;;
6476 *) systemdsystemunitdir='${prefix}'$systemdsystemunitdir ;;
6477 esac ;;
6478 auto:*|no:*) ;;
6479 *:yes) systemdsystemunitdir="$with_systemdsystemunitdir" ;;
6480 *) as_fn_error $? "'--with-systemdsystemunitdir=$with_systemdsystemunitdir' now requires '--with-libsystemd'" "$LINENO" 5 ;;
6481esac
f9e10201 6482
ff28b140
TL
6483 if test -n "$systemdsystemunitdir"; then
6484 INSTALL_SYSTEMDUNIT_TRUE=
6485 INSTALL_SYSTEMDUNIT_FALSE='#'
6486else
6487 INSTALL_SYSTEMDUNIT_TRUE='#'
6488 INSTALL_SYSTEMDUNIT_FALSE=
6489fi
6490
6491
6492
6493# Check whether --with-systemdenvfile was given.
6494if test "${with_systemdenvfile+set}" = set; then :
6495 withval=$with_systemdenvfile;
6496else
6497 with_systemdenvfile=auto
6498fi
6499
6500
6501systemdenvfile=
6502case "$with_systemdenvfile:$cross_compiling:$systemdsystemunitdir" in
6503 auto:no:?*|yes:*:?*)
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path of systemd EnvironmentFile" >&5
6505$as_echo_n "checking for path of systemd EnvironmentFile... " >&6; }
6506 for dir in sysconfig default; do
6507 if test -d /etc/$dir; then
6508 systemdenvfile='${sysconfdir}'/$dir/smartmontools
6509 break
6510 fi
6511 done
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdenvfile:-no}" >&5
6513$as_echo "${systemdenvfile:-no}" >&6; }
6514 case "$with_systemdenvfile:$systemdenvfile" in
6515 yes:) as_fn_error $? "Path of systemd EnvironmentFile not found" "$LINENO" 5 ;;
6516 esac ;;
6517 auto:*|no:*) ;;
6518 *:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;;
6519 *) systemdenvfile="$with_systemdenvfile"
6520esac
6521
6522
6523# TODO: Remove when NVMe support is no longer EXPERIMENTAL
f9e10201 6524
ff28b140
TL
6525# Check whether --with-nvme-devicescan was given.
6526if test "${with_nvme_devicescan+set}" = set; then :
6527 withval=$with_nvme_devicescan;
f9e10201
JD
6528fi
6529
6530
ff28b140 6531
f9e10201
JD
6532# Check whether --with-solaris-sparc-ata was given.
6533if test "${with_solaris_sparc_ata+set}" = set; then :
6534 withval=$with_solaris_sparc_ata;
6535fi
6536
6537
6538case "$host:$with_solaris_sparc_ata" in
6539 sparc-*-solaris*:yes)
6540 if test ! -f "$srcdir/os_solaris_ata.s"; then
6541 as_fn_error $? "Missing source file: $srcdir/os_solaris_ata.s
6542This file is no longer included in the source tarball but still
6543available in the SVN repository." "$LINENO" 5
6544 fi
6545
6546$as_echo "#define WITH_SOLARIS_SPARC_ATA 1" >>confdefs.h
6547
6548 ;;
6549esac
6550
f9e10201 6551
ff28b140
TL
6552# Check whether --with-signal-func was given.
6553if test "${with_signal_func+set}" = set; then :
6554 withval=$with_signal_func;
6555else
6556 with_signal_func=sigaction
6557fi
6558
f9e10201 6559
ff28b140
TL
6560case "$host:$with_signal_func" in
6561 *-*-mingw*:*) ;;
6562 *:sigaction)
6563 for ac_func in sigaction
6564do :
6565 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6566if test "x$ac_cv_func_sigaction" = xyes; then :
6567 cat >>confdefs.h <<_ACEOF
6568#define HAVE_SIGACTION 1
f9e10201 6569_ACEOF
ff28b140 6570
f9e10201 6571else
ff28b140
TL
6572 as_fn_error $? "Missing function 'sigaction()'.
6573Try '--with-signal-func=sigset' or '--with-signal-func=signal'.
6574Please send info about your system to $PACKAGE_BUGREPORT." "$LINENO" 5
f9e10201 6575fi
ff28b140
TL
6576done
6577 ;;
6578 *:sigset)
6579 for ac_func in sigset
6580do :
6581 ac_fn_cxx_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
6582if test "x$ac_cv_func_sigset" = xyes; then :
6583 cat >>confdefs.h <<_ACEOF
6584#define HAVE_SIGSET 1
6585_ACEOF
6586
6587else
6588 as_fn_error $? "Missing function 'sigset()'" "$LINENO" 5
6589fi
6590done
6591 ;;
6592 *:signal) ;;
6593 *) as_fn_error $? "Invalid option '--with-signal-func=$with_signal_func'" "$LINENO" 5 ;;
f9e10201
JD
6594esac
6595
ff28b140 6596# TODO: Remove after smartmontools 6.7
f9e10201
JD
6597
6598# Check whether --with-working-snprintf was given.
6599if test "${with_working_snprintf+set}" = set; then :
ff28b140
TL
6600 withval=$with_working_snprintf;
6601else
6602 with_working_snprintf=yes
f9e10201
JD
6603fi
6604
6605
ff28b140 6606if test "$with_working_snprintf" = "yes"; then
f9e10201
JD
6607
6608$as_echo "#define HAVE_WORKING_SNPRINTF 1" >>confdefs.h
6609 fi
6610
ff28b140
TL
6611case "$with_working_snprintf:$host_os: $CPPFLAGS $CXXFLAGS" in
6612 yes:mingw*:*\ -[DU]__USE_MINGW_ANSI_STDIO*)
6613 ;;
6614 yes:mingw*:*)
6615 # Older MinGW (4.6.3) do not properly define PRI?64 if __USE_MINGW_ANSI_STDIO is set.
6616 # Newer MinGW (4.9.1) set __USE_MINGW_ANSI_STDIO in first C++ include which may be too late.
6617 # Set __USE_MINGW_ANSI_STDIO always and fail if not fully supported.
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __USE_MINGW_ANSI_STDIO" >&5
6619$as_echo_n "checking whether $CXX supports __USE_MINGW_ANSI_STDIO... " >&6; }
6620 save_CXXFLAGS=$CXXFLAGS
6621 CXXFLAGS="-Wformat -Werror -D__USE_MINGW_ANSI_STDIO"
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h. */
6624
6625 #define __STDC_FORMAT_MACROS 1
6626 #include <inttypes.h>
6627 #include <stdio.h>
6628 void f(char * buf1, char * buf2, size_t size) {
6629 snprintf(buf1, size, "%lld", 42LL);
6630 snprintf(buf2, size, "%" PRId64, (int64_t)42);
6631 }
6632_ACEOF
6633if ac_fn_cxx_try_compile "$LINENO"; then :
6634 result=yes
6635else
6636 result=no
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6640$as_echo "$result" >&6; }
6641 if test "$result" != "yes"; then
6642 as_fn_error $? "
6643This version of $CXX does not support __USE_MINGW_ANSI_STDIO.
6644Use option '--without-working-snprintf' to skip this check.
6645Please send info about your system to $PACKAGE_BUGREPORT.
6646" "$LINENO" 5
6647 fi
6648 CXXFLAGS="-D__USE_MINGW_ANSI_STDIO $save_CXXFLAGS"
6649 ;;
6650esac
6651
f9e10201
JD
6652
6653# Check whether --with-mingw-aslr was given.
6654if test "${with_mingw_aslr+set}" = set; then :
6655 withval=$with_mingw_aslr;
6656else
6657 with_mingw_aslr=auto
6658fi
6659
6660
6661case "$host:${LDFLAGS+set}" in
6662 *-*-mingw*:) # MinGW defaults: link statically and indicate DEP and TS compatibility
6663 LDFLAGS="-static -Wl,--nxcompat,--tsaware" ;;
6664esac
6665
6666case "$host:$with_mingw_aslr" in
6667 x86_64-*-mingw*:auto)
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports --high-entropy-va" >&5
6669$as_echo_n "checking whether $CXX supports --high-entropy-va... " >&6; }
6670 save_LDFLAGS=$LDFLAGS
6671 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000"
6672 # Link libstdc++ to detect MinGW 6.3.0 problems with high --image-base
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675
6676 #include <string>
6677 std::string s(42, '.');
6678int
6679main ()
6680{
6681
6682 ;
6683 return 0;
6684}
6685_ACEOF
6686if ac_fn_cxx_try_link "$LINENO"; then :
6687 with_mingw_aslr=yes
6688else
6689 with_mingw_aslr=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext \
6692 conftest$ac_exeext conftest.$ac_ext
6693 LDFLAGS=$save_LDFLAGS
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mingw_aslr" >&5
6695$as_echo "$with_mingw_aslr" >&6; }
6696 test "$with_mingw_aslr" = "yes" || with_mingw_aslr=low
6697 ;;
6698esac
6699
6700case "$host:$with_mingw_aslr" in
6701 x86_64-*-mingw*:yes)
6702 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000" ;;
6703 x86_64-*-mingw*:low)
6704 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup" ;;
6705 *-*-mingw*:auto|*-*-mingw*:yes|*-*-mingw*:low)
6706 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-e_mainCRTStartup" ;;
6707esac
6708
6709os_win32_manifest=
6710case "$host" in
6711 *-*-mingw*)
6712 # Newer MinGW may add a default manifest
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX adds an application manifest" >&5
6714$as_echo_n "checking whether $CXX adds an application manifest... " >&6; }
6715 cc_adds_manifest=no
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h. */
6718
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727if ac_fn_cxx_try_link "$LINENO"; then :
6728
6729 if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '^1.*RT_MANIFEST' >/dev/null 2>&1; then
6730 cc_adds_manifest=incomplete
6731 # Manifest must provide a Win 10 compatibility ID
6732 if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}' >/dev/null 2>&1; then
6733 cc_adds_manifest=yes
6734 fi
6735 fi
6736else
6737 as_fn_error $? "test compile failed" "$LINENO" 5
6738fi
6739rm -f core conftest.err conftest.$ac_objext \
6740 conftest$ac_exeext conftest.$ac_ext
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_adds_manifest" >&5
6742$as_echo "$cc_adds_manifest" >&6; }
6743 test "$cc_adds_manifest" = "yes" || os_win32_manifest='os_win32/default.manifest'
6744 ;;
6745esac
6746
6747
6748# Check whether --with-cxx11-option was given.
6749if test "${with_cxx11_option+set}" = set; then :
6750 withval=$with_cxx11_option;
6751else
6752 with_cxx11_option=auto
6753fi
6754
6755
6756check_cxx11_support()
6757{
6758 save_CXXFLAGS=$CXXFLAGS
6759 CXXFLAGS=$1
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h. */
6762
6763 #if __cplusplus < 201103L
6764 #error false
6765 #endif
6766 // use some C++11 features (and return v * 42 :-)
6767 auto cxx11(long v) noexcept -> decltype(v) {
6768 typedef decltype(v) t; t r = v;
6769 static const t a[] = { -7, -1, 1, 2, 3 };
6770 static_assert(sizeof(r) == sizeof(a[0]), "fail");
6771 auto f = [](t x, t y){ return x * y; };
6772 for (const auto & e : a) r = f(r, e);
6773 return r;
6774 }
6775int
6776main ()
6777{
6778
6779 ;
6780 return 0;
6781}
6782_ACEOF
6783if ac_fn_cxx_try_compile "$LINENO"; then :
6784 CXXFLAGS=$save_CXXFLAGS; return 0
6785else
6786 CXXFLAGS=$save_CXXFLAGS; return 1
6787fi
6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789}
6790
6791case "$with_cxx11_option" in
6792 no) ;;
6793 auto)
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to accept C++11" >&5
6795$as_echo_n "checking for $CXX option to accept C++11... " >&6; }
6796 with_cxx11_option=unknown
6797 for option in "" "-std=gnu++11" "-std=gnu++0x" "-std=c++11" "-std=c++0x"; do
6798 if check_cxx11_support "$option"; then with_cxx11_option=$option; break; fi
6799 done
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_cxx11_option:-none needed}" >&5
6801$as_echo "${with_cxx11_option:-none needed}" >&6; }
6802 test "$with_cxx11_option" != "unknown" || as_fn_error $? "
6803This version of smartmontools does not use C++11 features, but future
6804versions possibly will.
6805This script was unable to determine a compiler option to enable C++11.
6806Use option '--with-cxx11-option=OPTION' to specify the compiler option
ff28b140 6807(it will be used in the actual build only if '--with-cxx11-regex' is set).
f9e10201
JD
6808Use option '--without-cxx11-option' to suppress this error message if the
6809compiler lacks C++11 support.
6810In both cases, please send info about compiler and platform to
6811$PACKAGE_BUGREPORT - Thanks!" "$LINENO" 5
6812 ;;
6813 *)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX $with_cxx11_option accepts C++11" >&5
6815$as_echo_n "checking whether $CXX $with_cxx11_option accepts C++11... " >&6; }
6816 res=no; check_cxx11_support "$with_cxx11_option" && res=yes
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
6818$as_echo "$res" >&6; }
6819 test "$res" = "yes" || as_fn_error $? "$CXX $with_cxx11_option does not accept C++11" "$LINENO" 5
6820 ;;
6821esac
6822
6823
ff28b140
TL
6824# Check whether --with-cxx11-regex was given.
6825if test "${with_cxx11_regex+set}" = set; then :
6826 withval=$with_cxx11_regex;
6827fi
6828
6829
6830need_regex=no
6831if test "$with_cxx11_regex" = "yes"; then
6832
6833$as_echo "#define WITH_CXX11_REGEX 1" >>confdefs.h
6834
6835 case "$with_cxx11_option: $CXXFLAGS " in
6836 no:*) as_fn_error $? "'--with-cxx11-regex' requires C++11 support" "$LINENO" 5 ;;
6837 ?*:*\ $with_cxx11_option\ *) ;;
6838 ?*:*) CXXFLAGS="$CXXFLAGS $with_cxx11_option" ;;
6839 esac
6840else
6841 for ac_func in regcomp
6842do :
6843 ac_fn_cxx_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
6844if test "x$ac_cv_func_regcomp" = xyes; then :
6845 cat >>confdefs.h <<_ACEOF
6846#define HAVE_REGCOMP 1
6847_ACEOF
6848
6849else
6850 need_regex=yes
6851fi
6852done
6853
6854fi
6855 if test "$need_regex" = "yes"; then
6856 NEED_REGEX_TRUE=
6857 NEED_REGEX_FALSE='#'
6858else
6859 NEED_REGEX_TRUE='#'
6860 NEED_REGEX_FALSE=
6861fi
6862
6863
f9e10201
JD
6864releaseversion='${PACKAGE}-${VERSION}'
6865
6866
6867
6868
6869# Set platform-specific modules and symbols
6870os_libs=
6871os_dltools='curl wget lynx svn'
6872os_mailer=mail
6873os_hostname="'hostname'"
6874os_dnsdomainname=
6875os_nisdomainname="'domainname'"
6876os_darwin=no
6877os_solaris=no
6878os_win32=no
6879os_win32_mingw=no
6880os_win64=no
6881os_man_filter=
ff28b140 6882os_nvme_devicescan=
f9e10201
JD
6883case "${host}" in
6884 *-*-linux*)
6885 os_deps='os_linux.o cciss.o dev_areca.o'
6886 os_dnsdomainname="'dnsdomainname' 'hostname -d'"
6887 os_nisdomainname="'nisdomainname' 'hostname -y' 'domainname'"
6888 os_man_filter=Linux
ff28b140 6889 os_nvme_devicescan=yes
f9e10201
JD
6890 ;;
6891 *-*-freebsd*|*-*-dragonfly*|*-*-kfreebsd*-gnu*)
6892 os_deps='os_freebsd.o cciss.o dev_areca.o'
ff28b140 6893 os_libs='-lcam -lsbuf'
f9e10201
JD
6894 os_dltools='curl wget lynx fetch svn'
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb20_dev_get_device_desc in -lusb" >&5
6896$as_echo_n "checking for libusb20_dev_get_device_desc in -lusb... " >&6; }
6897if ${ac_cv_lib_usb_libusb20_dev_get_device_desc+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899else
6900 ac_check_lib_save_LIBS=$LIBS
6901LIBS="-lusb $LIBS"
6902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h. */
6904
6905/* Override any GCC internal prototype to avoid an error.
6906 Use char because int might match the return type of a GCC
6907 builtin and then its argument prototype would still apply. */
6908#ifdef __cplusplus
6909extern "C"
6910#endif
6911char libusb20_dev_get_device_desc ();
6912int
6913main ()
6914{
6915return libusb20_dev_get_device_desc ();
6916 ;
6917 return 0;
6918}
6919_ACEOF
6920if ac_fn_cxx_try_link "$LINENO"; then :
6921 ac_cv_lib_usb_libusb20_dev_get_device_desc=yes
6922else
6923 ac_cv_lib_usb_libusb20_dev_get_device_desc=no
6924fi
6925rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927LIBS=$ac_check_lib_save_LIBS
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb20_dev_get_device_desc" >&5
6930$as_echo "$ac_cv_lib_usb_libusb20_dev_get_device_desc" >&6; }
6931if test "x$ac_cv_lib_usb_libusb20_dev_get_device_desc" = xyes; then :
6932 cat >>confdefs.h <<_ACEOF
6933#define HAVE_LIBUSB 1
6934_ACEOF
6935
6936 LIBS="-lusb $LIBS"
6937
6938fi
6939
6940 os_man_filter=FreeBSD
ff28b140 6941 os_nvme_devicescan=no
f9e10201
JD
6942 ;;
6943 sparc-*-solaris*)
6944 os_deps='os_solaris.o'
6945 test "$with_solaris_sparc_ata" = "yes" \
6946 && os_deps="$os_deps os_solaris_ata.o"
6947 os_mailer='mailx'
6948 os_solaris=yes
6949 os_man_filter=Solaris
6950 ;;
6951 *-pc-solaris*)
6952 os_deps='os_solaris.o'
6953 os_mailer='mailx'
6954 os_solaris=yes
6955 os_man_filter=Solaris
6956 ;;
6957 *-*-netbsd*)
6958 os_deps='os_netbsd.o'
6959 os_libs='-lutil'
6960 os_man_filter=NetBSD
ff28b140 6961 os_nvme_devicescan=no
f9e10201
JD
6962 ;;
6963 *-*-openbsd*)
6964 os_deps='os_openbsd.o'
6965 os_libs='-lutil'
6966 os_dltools='curl wget lynx ftp svn'
6967 os_man_filter=OpenBSD
6968 ;;
6969 *-*-cygwin*)
6970 os_deps='os_win32.o dev_areca.o'
6971 os_mailer='email'
6972 os_hostname="'hostname' 'echo "'"${HOSTNAME?unset}"'"'"
6973 os_dnsdomainname="'dnsdomainname' 'hostname -d' 'echo "'"${USERDNSDOMAIN?unset}"'"'"
6974 os_nisdomainname=
6975 os_win32=yes
6976 os_man_filter=Cygwin
ff28b140 6977 os_nvme_devicescan=yes
f9e10201
JD
6978 ;;
6979 x86_64-*-mingw*)
6980 os_deps='os_win32.o dev_areca.o'
6981 os_win32=yes
6982 os_win32_mingw=yes
6983 os_win64=yes
6984 os_man_filter=Windows
ff28b140 6985 os_nvme_devicescan=yes
f9e10201
JD
6986 ;;
6987 *-*-mingw*)
6988 os_deps='os_win32.o dev_areca.o'
6989 os_win32=yes
6990 os_win32_mingw=yes
6991 os_man_filter=Windows
ff28b140 6992 os_nvme_devicescan=yes
f9e10201
JD
6993 ;;
6994 *-*-darwin*)
6995 os_deps='os_darwin.o'
6996 os_libs='-framework CoreFoundation -framework IOKit'
6997 os_darwin=yes
6998 os_man_filter=Darwin
ff28b140 6999 os_nvme_devicescan=no
f9e10201
JD
7000 ;;
7001 *-*-nto-qnx*)
7002 os_deps='os_qnxnto.o'
7003 ;;
7004 *-*-os2-*)
7005 os_deps='os_os2.o'
7006 ;;
7007 *)
7008 os_deps='os_generic.o'
7009 ;;
7010esac
7011
7012# Replace if '--with-os-deps' was specified
7013test -z "$with_os_deps" || os_deps="$with_os_deps"
7014
7015# Check if we need adapter to old interface (dev_legacy.cpp)
7016os_src=`echo "${os_deps}"|sed -n 's,^\([^ .]*\)\.o.*$,\1.cpp,p'`
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${os_src} uses new interface" >&5
7018$as_echo_n "checking whether ${os_src} uses new interface... " >&6; }
7019if grep "smart_interface" "${srcdir}/${os_src}" >/dev/null 2>&1; then
7020 os_new_interface=yes
7021else
7022 os_new_interface=no
7023 os_deps="${os_deps} dev_legacy.o"
7024
7025$as_echo "#define OLD_INTERFACE 1" >>confdefs.h
7026
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_new_interface" >&5
7029$as_echo "$os_new_interface" >&6; }
7030
ff28b140
TL
7031# TODO: Remove when NVMe support is no longer EXPERIMENTAL
7032case "$os_nvme_devicescan:${with_nvme_devicescan+set}" in
7033 no:|yes:)
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NVMe device scanning could be safely enabled" >&5
7035$as_echo_n "checking whether NVMe device scanning could be safely enabled... " >&6; }
7036 with_nvme_devicescan=$os_nvme_devicescan
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_nvme_devicescan" >&5
7038$as_echo "$os_nvme_devicescan" >&6; }
7039 os_nvme_devicescan=used ;;
7040esac
7041
7042if test "$with_nvme_devicescan" = "yes"; then
7043
7044$as_echo "#define WITH_NVME_DEVICESCAN 1" >>confdefs.h
7045
7046fi
7047
f9e10201
JD
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058# Create drivedb.h update branch name from version: 5.41[.X] -> RELEASE_5_41_DRIVEDB
7059DRIVEDB_BRANCH=`echo "$drivedb_version" | sed 's,^\([0-9]*\.[0-9]*\)\..*$,\1,' \
7060 | sed -n 's,^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$,RELEASE_\1_\2_DRIVEDB,p'`
7061if test -z "$DRIVEDB_BRANCH"; then
7062 as_fn_error $? "Unable to create DRIVEDB_BRANCH for version: $drivedb_version" "$LINENO" 5
7063fi
7064
7065
7066# Enable platform-specific makefile sections
7067 if test "$os_darwin" = "yes"; then
7068 OS_DARWIN_TRUE=
7069 OS_DARWIN_FALSE='#'
7070else
7071 OS_DARWIN_TRUE='#'
7072 OS_DARWIN_FALSE=
7073fi
7074
7075 if test "$os_solaris" = "yes"; then
7076 OS_SOLARIS_TRUE=
7077 OS_SOLARIS_FALSE='#'
7078else
7079 OS_SOLARIS_TRUE='#'
7080 OS_SOLARIS_FALSE=
7081fi
7082
7083 if test "$os_win32" = "yes"; then
7084 OS_WIN32_TRUE=
7085 OS_WIN32_FALSE='#'
7086else
7087 OS_WIN32_TRUE='#'
7088 OS_WIN32_FALSE=
7089fi
7090
7091 if test "$os_win32_mingw" = "yes"; then
7092 OS_WIN32_MINGW_TRUE=
7093 OS_WIN32_MINGW_FALSE='#'
7094else
7095 OS_WIN32_MINGW_TRUE='#'
7096 OS_WIN32_MINGW_FALSE=
7097fi
7098
7099 if test -n "$MAKENSIS"; then
7100 OS_WIN32_NSIS_TRUE=
7101 OS_WIN32_NSIS_FALSE='#'
7102else
7103 OS_WIN32_NSIS_TRUE='#'
7104 OS_WIN32_NSIS_FALSE=
7105fi
7106
7107 if test "$os_win64" = "yes"; then
7108 OS_WIN64_TRUE=
7109 OS_WIN64_FALSE='#'
7110else
7111 OS_WIN64_TRUE='#'
7112 OS_WIN64_FALSE=
7113fi
7114
7115
7116if test "$GXX" = "yes"; then
ff28b140 7117 orig_CXXFLAGS=$CXXFLAGS
f9e10201
JD
7118 # Add -Wall and -W[extra] if its not already specified
7119 case " $CXXFLAGS " in
7120 *\ -Wall\ *) ;;
7121 *) CXXFLAGS="$CXXFLAGS -Wall" ;;
7122 esac
7123 case " $CXXFLAGS " in
7124 *\ -W\ *|*\ -Wextra\ *) ;;
7125 *) CXXFLAGS="$CXXFLAGS -W" ;;
7126 esac
7127 # Add -Wformat=2 (GCC 3.0) -fstack-protector[-strong] (GCC 4.1[4.9]) if supported
ff28b140
TL
7128 # and no -W or -f option was set in configure cmdline (TODO: -Wformat-signedness)
7129 for option in "-Wformat=2" "-fstack-protector-strong" "-fstack-protector"; do
7130 case " $orig_CXXFLAGS:$option" in *\ -W*:-W*|*\ -f*:-f*) continue ;; esac
7131 case " $CXXFLAGS:$option" in *\ -fstack-p*:-fstack-p*) continue ;; esac
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
f9e10201 7133$as_echo_n "checking whether $CXX supports $option... " >&6; }
ff28b140
TL
7134 save_CXXFLAGS=$CXXFLAGS
7135 CXXFLAGS="$CXXFLAGS $option"
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9e10201
JD
7137/* end confdefs.h. */
7138
7139int
7140main ()
7141{
7142
7143 ;
7144 return 0;
7145}
7146_ACEOF
7147if ac_fn_cxx_try_compile "$LINENO"; then :
7148 res=yes
7149else
7150 res=no; CXXFLAGS=$save_CXXFLAGS
7151fi
7152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ff28b140 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
f9e10201 7154$as_echo "$res" >&6; }
ff28b140 7155 done
f9e10201
JD
7156else
7157 # We are NOT using gcc, so enable host-specific compiler flags
7158 case "${host}" in
7159 sparc*-*-solaris*)
7160 # Tell the Solaris/SPARC C++ compiler about packed ATA structures
7161 case " $CXXFLAGS" in
7162 *\ -xmemalign*) ;;
7163 *) CXXFLAGS="-xmemalign=1i $CXXFLAGS" ;;
7164 esac ;;
7165 esac
7166 case "${host}" in
7167 *-*-solaris*)
7168 # Turn on optimization if user has not explicitly set its value
7169 case " $CXXFLAGS" in
7170 *\ -xO*) ;;
7171 *) CXXFLAGS="-xO2 $CXXFLAGS" ;;
7172 esac
7173 # Suppress trivial warnings
7174 case " $CXXFLAGS" in
7175 *\ -erroff*) ;;
7176 *) CXXFLAGS="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w,badargtype2w $CXXFLAGS" ;;
7177 esac ;;
7178 esac
7179fi
7180
7181
7182cat >>confdefs.h <<_ACEOF
7183#define SMARTMONTOOLS_BUILD_HOST "${host}"
7184_ACEOF
7185
7186
7187
7188
7189ac_config_files="$ac_config_files Makefile"
7190
7191cat >confcache <<\_ACEOF
7192# This file is a shell script that caches the results of configure
7193# tests run on this system so they can be shared between configure
7194# scripts and configure runs, see configure's option --config-cache.
7195# It is not useful on other systems. If it contains results you don't
7196# want to keep, you may remove or edit it.
7197#
7198# config.status only pays attention to the cache file if you give it
7199# the --recheck option to rerun configure.
7200#
7201# `ac_cv_env_foo' variables (set or unset) will be overridden when
7202# loading this file, other *unset* `ac_cv_foo' will be assigned the
7203# following values.
7204
7205_ACEOF
7206
7207# The following way of writing the cache mishandles newlines in values,
7208# but we know of no workaround that is simple, portable, and efficient.
7209# So, we kill variables containing newlines.
7210# Ultrix sh set writes to stderr and can't be redirected directly,
7211# and sets the high bit in the cache file unless we assign to the vars.
7212(
7213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7214 eval ac_val=\$$ac_var
7215 case $ac_val in #(
7216 *${as_nl}*)
7217 case $ac_var in #(
7218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7220 esac
7221 case $ac_var in #(
7222 _ | IFS | as_nl) ;; #(
7223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7224 *) { eval $ac_var=; unset $ac_var;} ;;
7225 esac ;;
7226 esac
7227 done
7228
7229 (set) 2>&1 |
7230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7231 *${as_nl}ac_space=\ *)
7232 # `set' does not quote correctly, so add quotes: double-quote
7233 # substitution turns \\\\ into \\, and sed turns \\ into \.
7234 sed -n \
7235 "s/'/'\\\\''/g;
7236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7237 ;; #(
7238 *)
7239 # `set' quotes correctly as required by POSIX, so do not add quotes.
7240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7241 ;;
7242 esac |
7243 sort
7244) |
7245 sed '
7246 /^ac_cv_env_/b end
7247 t clear
7248 :clear
7249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7250 t end
7251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7252 :end' >>confcache
7253if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7254 if test -w "$cache_file"; then
7255 if test "x$cache_file" != "x/dev/null"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7257$as_echo "$as_me: updating cache $cache_file" >&6;}
7258 if test ! -f "$cache_file" || test -h "$cache_file"; then
7259 cat confcache >"$cache_file"
7260 else
7261 case $cache_file in #(
7262 */* | ?:*)
7263 mv -f confcache "$cache_file"$$ &&
7264 mv -f "$cache_file"$$ "$cache_file" ;; #(
7265 *)
7266 mv -f confcache "$cache_file" ;;
7267 esac
7268 fi
7269 fi
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7272$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7273 fi
7274fi
7275rm -f confcache
7276
7277test "x$prefix" = xNONE && prefix=$ac_default_prefix
7278# Let make expand exec_prefix.
7279test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7280
7281DEFS=-DHAVE_CONFIG_H
7282
7283ac_libobjs=
7284ac_ltlibobjs=
7285U=
7286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7287 # 1. Remove the extension, and $U if already installed.
7288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7291 # will be set to the directory where LIBOBJS objects are built.
7292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7294done
7295LIBOBJS=$ac_libobjs
7296
7297LTLIBOBJS=$ac_ltlibobjs
7298
7299
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7301$as_echo_n "checking that generated files are newer than configure... " >&6; }
7302 if test -n "$am_sleep_pid"; then
7303 # Hide warnings about reused PIDs.
7304 wait $am_sleep_pid 2>/dev/null
7305 fi
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7307$as_echo "done" >&6; }
7308 if test -n "$EXEEXT"; then
7309 am__EXEEXT_TRUE=
7310 am__EXEEXT_FALSE='#'
7311else
7312 am__EXEEXT_TRUE='#'
7313 am__EXEEXT_FALSE=
7314fi
7315
7316if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7317 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7318Usually this means the macro was only invoked conditionally." "$LINENO" 5
7319fi
7320if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7321 as_fn_error $? "conditional \"AMDEP\" was never defined.
7322Usually this means the macro was only invoked conditionally." "$LINENO" 5
7323fi
7324if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7325 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7326Usually this means the macro was only invoked conditionally." "$LINENO" 5
7327fi
7328if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7329 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7330Usually this means the macro was only invoked conditionally." "$LINENO" 5
7331fi
7332if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
7333 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
7334Usually this means the macro was only invoked conditionally." "$LINENO" 5
7335fi
7336if test -z "${IS_SVN_BUILD_TRUE}" && test -z "${IS_SVN_BUILD_FALSE}"; then
7337 as_fn_error $? "conditional \"IS_SVN_BUILD\" was never defined.
7338Usually this means the macro was only invoked conditionally." "$LINENO" 5
7339fi
7340if test -z "${NEED_GETOPT_LONG_TRUE}" && test -z "${NEED_GETOPT_LONG_FALSE}"; then
7341 as_fn_error $? "conditional \"NEED_GETOPT_LONG\" was never defined.
7342Usually this means the macro was only invoked conditionally." "$LINENO" 5
7343fi
f9e10201 7344
f9e10201
JD
7345if test -z "${INSTALL_INITSCRIPT_TRUE}" && test -z "${INSTALL_INITSCRIPT_FALSE}"; then
7346 as_fn_error $? "conditional \"INSTALL_INITSCRIPT\" was never defined.
7347Usually this means the macro was only invoked conditionally." "$LINENO" 5
7348fi
7349if test -z "${ENABLE_DRIVEDB_TRUE}" && test -z "${ENABLE_DRIVEDB_FALSE}"; then
7350 as_fn_error $? "conditional \"ENABLE_DRIVEDB\" was never defined.
7351Usually this means the macro was only invoked conditionally." "$LINENO" 5
7352fi
7353if test -z "${ENABLE_UPDATE_SMART_DRIVEDB_TRUE}" && test -z "${ENABLE_UPDATE_SMART_DRIVEDB_FALSE}"; then
7354 as_fn_error $? "conditional \"ENABLE_UPDATE_SMART_DRIVEDB\" was never defined.
7355Usually this means the macro was only invoked conditionally." "$LINENO" 5
7356fi
7357if test -z "${ENABLE_SCRIPTPATH_TRUE}" && test -z "${ENABLE_SCRIPTPATH_FALSE}"; then
7358 as_fn_error $? "conditional \"ENABLE_SCRIPTPATH\" was never defined.
7359Usually this means the macro was only invoked conditionally." "$LINENO" 5
7360fi
7361if test -z "${ENABLE_SAVESTATES_TRUE}" && test -z "${ENABLE_SAVESTATES_FALSE}"; then
7362 as_fn_error $? "conditional \"ENABLE_SAVESTATES\" was never defined.
7363Usually this means the macro was only invoked conditionally." "$LINENO" 5
7364fi
7365if test -z "${ENABLE_ATTRIBUTELOG_TRUE}" && test -z "${ENABLE_ATTRIBUTELOG_FALSE}"; then
7366 as_fn_error $? "conditional \"ENABLE_ATTRIBUTELOG\" was never defined.
7367Usually this means the macro was only invoked conditionally." "$LINENO" 5
7368fi
ff28b140
TL
7369if test -z "${INSTALL_SYSTEMDUNIT_TRUE}" && test -z "${INSTALL_SYSTEMDUNIT_FALSE}"; then
7370 as_fn_error $? "conditional \"INSTALL_SYSTEMDUNIT\" was never defined.
7371Usually this means the macro was only invoked conditionally." "$LINENO" 5
7372fi
7373if test -z "${NEED_REGEX_TRUE}" && test -z "${NEED_REGEX_FALSE}"; then
7374 as_fn_error $? "conditional \"NEED_REGEX\" was never defined.
7375Usually this means the macro was only invoked conditionally." "$LINENO" 5
7376fi
f9e10201
JD
7377if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
7378 as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
7379Usually this means the macro was only invoked conditionally." "$LINENO" 5
7380fi
7381if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
7382 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
7383Usually this means the macro was only invoked conditionally." "$LINENO" 5
7384fi
7385if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
7386 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
7387Usually this means the macro was only invoked conditionally." "$LINENO" 5
7388fi
7389if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
7390 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
7391Usually this means the macro was only invoked conditionally." "$LINENO" 5
7392fi
7393if test -z "${OS_WIN32_NSIS_TRUE}" && test -z "${OS_WIN32_NSIS_FALSE}"; then
7394 as_fn_error $? "conditional \"OS_WIN32_NSIS\" was never defined.
7395Usually this means the macro was only invoked conditionally." "$LINENO" 5
7396fi
7397if test -z "${OS_WIN64_TRUE}" && test -z "${OS_WIN64_FALSE}"; then
7398 as_fn_error $? "conditional \"OS_WIN64\" was never defined.
7399Usually this means the macro was only invoked conditionally." "$LINENO" 5
7400fi
7401
7402: "${CONFIG_STATUS=./config.status}"
7403ac_write_fail=0
7404ac_clean_files_save=$ac_clean_files
7405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7407$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7408as_write_fail=0
7409cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7410#! $SHELL
7411# Generated by $as_me.
7412# Run this file to recreate the current configuration.
7413# Compiler output produced by configure, useful for debugging
7414# configure, is in config.log if it exists.
7415
7416debug=false
7417ac_cs_recheck=false
7418ac_cs_silent=false
7419
7420SHELL=\${CONFIG_SHELL-$SHELL}
7421export SHELL
7422_ASEOF
7423cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7424## -------------------- ##
7425## M4sh Initialization. ##
7426## -------------------- ##
7427
7428# Be more Bourne compatible
7429DUALCASE=1; export DUALCASE # for MKS sh
7430if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7431 emulate sh
7432 NULLCMD=:
7433 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7434 # is contrary to our usage. Disable this feature.
7435 alias -g '${1+"$@"}'='"$@"'
7436 setopt NO_GLOB_SUBST
7437else
7438 case `(set -o) 2>/dev/null` in #(
7439 *posix*) :
7440 set -o posix ;; #(
7441 *) :
7442 ;;
7443esac
7444fi
7445
7446
7447as_nl='
7448'
7449export as_nl
7450# Printing a long string crashes Solaris 7 /usr/bin/printf.
7451as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7453as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7454# Prefer a ksh shell builtin over an external printf program on Solaris,
7455# but without wasting forks for bash or zsh.
7456if test -z "$BASH_VERSION$ZSH_VERSION" \
7457 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7458 as_echo='print -r --'
7459 as_echo_n='print -rn --'
7460elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7461 as_echo='printf %s\n'
7462 as_echo_n='printf %s'
7463else
7464 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7465 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7466 as_echo_n='/usr/ucb/echo -n'
7467 else
7468 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7469 as_echo_n_body='eval
7470 arg=$1;
7471 case $arg in #(
7472 *"$as_nl"*)
7473 expr "X$arg" : "X\\(.*\\)$as_nl";
7474 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7475 esac;
7476 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7477 '
7478 export as_echo_n_body
7479 as_echo_n='sh -c $as_echo_n_body as_echo'
7480 fi
7481 export as_echo_body
7482 as_echo='sh -c $as_echo_body as_echo'
7483fi
7484
7485# The user is always right.
7486if test "${PATH_SEPARATOR+set}" != set; then
7487 PATH_SEPARATOR=:
7488 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7489 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7490 PATH_SEPARATOR=';'
7491 }
7492fi
7493
7494
7495# IFS
7496# We need space, tab and new line, in precisely that order. Quoting is
7497# there to prevent editors from complaining about space-tab.
7498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7499# splitting by setting IFS to empty value.)
7500IFS=" "" $as_nl"
7501
7502# Find who we are. Look in the path if we contain no directory separator.
7503as_myself=
7504case $0 in #((
7505 *[\\/]* ) as_myself=$0 ;;
7506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7512 done
7513IFS=$as_save_IFS
7514
7515 ;;
7516esac
7517# We did not find ourselves, most probably we were run as `sh COMMAND'
7518# in which case we are not to be found in the path.
7519if test "x$as_myself" = x; then
7520 as_myself=$0
7521fi
7522if test ! -f "$as_myself"; then
7523 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7524 exit 1
7525fi
7526
7527# Unset variables that we do not need and which cause bugs (e.g. in
7528# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7529# suppresses any "Segmentation fault" message there. '((' could
7530# trigger a bug in pdksh 5.2.14.
7531for as_var in BASH_ENV ENV MAIL MAILPATH
7532do eval test x\${$as_var+set} = xset \
7533 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7534done
7535PS1='$ '
7536PS2='> '
7537PS4='+ '
7538
7539# NLS nuisances.
7540LC_ALL=C
7541export LC_ALL
7542LANGUAGE=C
7543export LANGUAGE
7544
7545# CDPATH.
7546(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7547
7548
7549# as_fn_error STATUS ERROR [LINENO LOG_FD]
7550# ----------------------------------------
7551# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7552# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7553# script with STATUS, using 1 if that was 0.
7554as_fn_error ()
7555{
7556 as_status=$1; test $as_status -eq 0 && as_status=1
7557 if test "$4"; then
7558 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7559 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7560 fi
7561 $as_echo "$as_me: error: $2" >&2
7562 as_fn_exit $as_status
7563} # as_fn_error
7564
7565
7566# as_fn_set_status STATUS
7567# -----------------------
7568# Set $? to STATUS, without forking.
7569as_fn_set_status ()
7570{
7571 return $1
7572} # as_fn_set_status
7573
7574# as_fn_exit STATUS
7575# -----------------
7576# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7577as_fn_exit ()
7578{
7579 set +e
7580 as_fn_set_status $1
7581 exit $1
7582} # as_fn_exit
7583
7584# as_fn_unset VAR
7585# ---------------
7586# Portably unset VAR.
7587as_fn_unset ()
7588{
7589 { eval $1=; unset $1;}
7590}
7591as_unset=as_fn_unset
7592# as_fn_append VAR VALUE
7593# ----------------------
7594# Append the text in VALUE to the end of the definition contained in VAR. Take
7595# advantage of any shell optimizations that allow amortized linear growth over
7596# repeated appends, instead of the typical quadratic growth present in naive
7597# implementations.
7598if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7599 eval 'as_fn_append ()
7600 {
7601 eval $1+=\$2
7602 }'
7603else
7604 as_fn_append ()
7605 {
7606 eval $1=\$$1\$2
7607 }
7608fi # as_fn_append
7609
7610# as_fn_arith ARG...
7611# ------------------
7612# Perform arithmetic evaluation on the ARGs, and store the result in the
7613# global $as_val. Take advantage of shells that can avoid forks. The arguments
7614# must be portable across $(()) and expr.
7615if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7616 eval 'as_fn_arith ()
7617 {
7618 as_val=$(( $* ))
7619 }'
7620else
7621 as_fn_arith ()
7622 {
7623 as_val=`expr "$@" || test $? -eq 1`
7624 }
7625fi # as_fn_arith
7626
7627
7628if expr a : '\(a\)' >/dev/null 2>&1 &&
7629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7630 as_expr=expr
7631else
7632 as_expr=false
7633fi
7634
7635if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7636 as_basename=basename
7637else
7638 as_basename=false
7639fi
7640
7641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7642 as_dirname=dirname
7643else
7644 as_dirname=false
7645fi
7646
7647as_me=`$as_basename -- "$0" ||
7648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7649 X"$0" : 'X\(//\)$' \| \
7650 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7651$as_echo X/"$0" |
7652 sed '/^.*\/\([^/][^/]*\)\/*$/{
7653 s//\1/
7654 q
7655 }
7656 /^X\/\(\/\/\)$/{
7657 s//\1/
7658 q
7659 }
7660 /^X\/\(\/\).*/{
7661 s//\1/
7662 q
7663 }
7664 s/.*/./; q'`
7665
7666# Avoid depending upon Character Ranges.
7667as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7668as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7669as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7670as_cr_digits='0123456789'
7671as_cr_alnum=$as_cr_Letters$as_cr_digits
7672
7673ECHO_C= ECHO_N= ECHO_T=
7674case `echo -n x` in #(((((
7675-n*)
7676 case `echo 'xy\c'` in
7677 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7678 xy) ECHO_C='\c';;
7679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7680 ECHO_T=' ';;
7681 esac;;
7682*)
7683 ECHO_N='-n';;
7684esac
7685
7686rm -f conf$$ conf$$.exe conf$$.file
7687if test -d conf$$.dir; then
7688 rm -f conf$$.dir/conf$$.file
7689else
7690 rm -f conf$$.dir
7691 mkdir conf$$.dir 2>/dev/null
7692fi
7693if (echo >conf$$.file) 2>/dev/null; then
7694 if ln -s conf$$.file conf$$ 2>/dev/null; then
7695 as_ln_s='ln -s'
7696 # ... but there are two gotchas:
7697 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7698 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7699 # In both cases, we have to default to `cp -pR'.
7700 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7701 as_ln_s='cp -pR'
7702 elif ln conf$$.file conf$$ 2>/dev/null; then
7703 as_ln_s=ln
7704 else
7705 as_ln_s='cp -pR'
7706 fi
7707else
7708 as_ln_s='cp -pR'
7709fi
7710rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7711rmdir conf$$.dir 2>/dev/null
7712
7713
7714# as_fn_mkdir_p
7715# -------------
7716# Create "$as_dir" as a directory, including parents if necessary.
7717as_fn_mkdir_p ()
7718{
7719
7720 case $as_dir in #(
7721 -*) as_dir=./$as_dir;;
7722 esac
7723 test -d "$as_dir" || eval $as_mkdir_p || {
7724 as_dirs=
7725 while :; do
7726 case $as_dir in #(
7727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7728 *) as_qdir=$as_dir;;
7729 esac
7730 as_dirs="'$as_qdir' $as_dirs"
7731 as_dir=`$as_dirname -- "$as_dir" ||
7732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7733 X"$as_dir" : 'X\(//\)[^/]' \| \
7734 X"$as_dir" : 'X\(//\)$' \| \
7735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7736$as_echo X"$as_dir" |
7737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7738 s//\1/
7739 q
7740 }
7741 /^X\(\/\/\)[^/].*/{
7742 s//\1/
7743 q
7744 }
7745 /^X\(\/\/\)$/{
7746 s//\1/
7747 q
7748 }
7749 /^X\(\/\).*/{
7750 s//\1/
7751 q
7752 }
7753 s/.*/./; q'`
7754 test -d "$as_dir" && break
7755 done
7756 test -z "$as_dirs" || eval "mkdir $as_dirs"
7757 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7758
7759
7760} # as_fn_mkdir_p
7761if mkdir -p . 2>/dev/null; then
7762 as_mkdir_p='mkdir -p "$as_dir"'
7763else
7764 test -d ./-p && rmdir ./-p
7765 as_mkdir_p=false
7766fi
7767
7768
7769# as_fn_executable_p FILE
7770# -----------------------
7771# Test if FILE is an executable regular file.
7772as_fn_executable_p ()
7773{
7774 test -f "$1" && test -x "$1"
7775} # as_fn_executable_p
7776as_test_x='test -x'
7777as_executable_p=as_fn_executable_p
7778
7779# Sed expression to map a string onto a valid CPP name.
7780as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7781
7782# Sed expression to map a string onto a valid variable name.
7783as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7784
7785
7786exec 6>&1
7787## ----------------------------------- ##
7788## Main body of $CONFIG_STATUS script. ##
7789## ----------------------------------- ##
7790_ASEOF
7791test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7792
7793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7794# Save the log message, to keep $0 and so on meaningful, and to
7795# report actual input values of CONFIG_FILES etc. instead of their
7796# values after options handling.
7797ac_log="
ff28b140 7798This file was extended by smartmontools $as_me 7.0, which was
f9e10201
JD
7799generated by GNU Autoconf 2.69. Invocation command line was
7800
7801 CONFIG_FILES = $CONFIG_FILES
7802 CONFIG_HEADERS = $CONFIG_HEADERS
7803 CONFIG_LINKS = $CONFIG_LINKS
7804 CONFIG_COMMANDS = $CONFIG_COMMANDS
7805 $ $0 $@
7806
7807on `(hostname || uname -n) 2>/dev/null | sed 1q`
7808"
7809
7810_ACEOF
7811
7812case $ac_config_files in *"
7813"*) set x $ac_config_files; shift; ac_config_files=$*;;
7814esac
7815
7816case $ac_config_headers in *"
7817"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7818esac
7819
7820
7821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7822# Files that config.status was made for.
7823config_files="$ac_config_files"
7824config_headers="$ac_config_headers"
7825config_commands="$ac_config_commands"
7826
7827_ACEOF
7828
7829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7830ac_cs_usage="\
7831\`$as_me' instantiates files and other configuration actions
7832from templates according to the current configuration. Unless the files
7833and actions are specified as TAGs, all are instantiated by default.
7834
7835Usage: $0 [OPTION]... [TAG]...
7836
7837 -h, --help print this help, then exit
7838 -V, --version print version number and configuration settings, then exit
7839 --config print configuration, then exit
7840 -q, --quiet, --silent
7841 do not print progress messages
7842 -d, --debug don't remove temporary files
7843 --recheck update $as_me by reconfiguring in the same conditions
7844 --file=FILE[:TEMPLATE]
7845 instantiate the configuration file FILE
7846 --header=FILE[:TEMPLATE]
7847 instantiate the configuration header FILE
7848
7849Configuration files:
7850$config_files
7851
7852Configuration headers:
7853$config_headers
7854
7855Configuration commands:
7856$config_commands
7857
7858Report bugs to <smartmontools-support@listi.jpberlin.de>."
7859
7860_ACEOF
7861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7862ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7863ac_cs_version="\\
ff28b140 7864smartmontools config.status 7.0
f9e10201
JD
7865configured by $0, generated by GNU Autoconf 2.69,
7866 with options \\"\$ac_cs_config\\"
7867
7868Copyright (C) 2012 Free Software Foundation, Inc.
7869This config.status script is free software; the Free Software Foundation
7870gives unlimited permission to copy, distribute and modify it."
7871
7872ac_pwd='$ac_pwd'
7873srcdir='$srcdir'
7874INSTALL='$INSTALL'
7875MKDIR_P='$MKDIR_P'
7876AWK='$AWK'
7877test -n "\$AWK" || AWK=awk
7878_ACEOF
7879
7880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7881# The default lists apply if the user does not specify any file.
7882ac_need_defaults=:
7883while test $# != 0
7884do
7885 case $1 in
7886 --*=?*)
7887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7888 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7889 ac_shift=:
7890 ;;
7891 --*=)
7892 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7893 ac_optarg=
7894 ac_shift=:
7895 ;;
7896 *)
7897 ac_option=$1
7898 ac_optarg=$2
7899 ac_shift=shift
7900 ;;
7901 esac
7902
7903 case $ac_option in
7904 # Handling of the options.
7905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7906 ac_cs_recheck=: ;;
7907 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7908 $as_echo "$ac_cs_version"; exit ;;
7909 --config | --confi | --conf | --con | --co | --c )
7910 $as_echo "$ac_cs_config"; exit ;;
7911 --debug | --debu | --deb | --de | --d | -d )
7912 debug=: ;;
7913 --file | --fil | --fi | --f )
7914 $ac_shift
7915 case $ac_optarg in
7916 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7917 '') as_fn_error $? "missing file argument" ;;
7918 esac
7919 as_fn_append CONFIG_FILES " '$ac_optarg'"
7920 ac_need_defaults=false;;
7921 --header | --heade | --head | --hea )
7922 $ac_shift
7923 case $ac_optarg in
7924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7925 esac
7926 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7927 ac_need_defaults=false;;
7928 --he | --h)
7929 # Conflict between --help and --header
7930 as_fn_error $? "ambiguous option: \`$1'
7931Try \`$0 --help' for more information.";;
7932 --help | --hel | -h )
7933 $as_echo "$ac_cs_usage"; exit ;;
7934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7936 ac_cs_silent=: ;;
7937
7938 # This is an error.
7939 -*) as_fn_error $? "unrecognized option: \`$1'
7940Try \`$0 --help' for more information." ;;
7941
7942 *) as_fn_append ac_config_targets " $1"
7943 ac_need_defaults=false ;;
7944
7945 esac
7946 shift
7947done
7948
7949ac_configure_extra_args=
7950
7951if $ac_cs_silent; then
7952 exec 6>/dev/null
7953 ac_configure_extra_args="$ac_configure_extra_args --silent"
7954fi
7955
7956_ACEOF
7957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7958if \$ac_cs_recheck; then
7959 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7960 shift
7961 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7962 CONFIG_SHELL='$SHELL'
7963 export CONFIG_SHELL
7964 exec "\$@"
7965fi
7966
7967_ACEOF
7968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7969exec 5>>config.log
7970{
7971 echo
7972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7973## Running $as_me. ##
7974_ASBOX
7975 $as_echo "$ac_log"
7976} >&5
7977
7978_ACEOF
7979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7980#
7981# INIT-COMMANDS
7982#
7983AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7984
7985_ACEOF
7986
7987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7988
7989# Handling of arguments.
7990for ac_config_target in $ac_config_targets
7991do
7992 case $ac_config_target in
7993 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7994 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7995 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7996
7997 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7998 esac
7999done
8000
8001
8002# If the user did not use the arguments to specify the items to instantiate,
8003# then the envvar interface is used. Set only those that are not.
8004# We use the long form for the default assignment because of an extremely
8005# bizarre bug on SunOS 4.1.3.
8006if $ac_need_defaults; then
8007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8010fi
8011
8012# Have a temporary directory for convenience. Make it in the build tree
8013# simply because there is no reason against having it here, and in addition,
8014# creating and moving files from /tmp can sometimes cause problems.
8015# Hook for its removal unless debugging.
8016# Note that there is a small window in which the directory will not be cleaned:
8017# after its creation but before its name has been assigned to `$tmp'.
8018$debug ||
8019{
8020 tmp= ac_tmp=
8021 trap 'exit_status=$?
8022 : "${ac_tmp:=$tmp}"
8023 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8024' 0
8025 trap 'as_fn_exit 1' 1 2 13 15
8026}
8027# Create a (secure) tmp directory for tmp files.
8028
8029{
8030 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8031 test -d "$tmp"
8032} ||
8033{
8034 tmp=./conf$$-$RANDOM
8035 (umask 077 && mkdir "$tmp")
8036} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8037ac_tmp=$tmp
8038
8039# Set up the scripts for CONFIG_FILES section.
8040# No need to generate them if there are no CONFIG_FILES.
8041# This happens for instance with `./config.status config.h'.
8042if test -n "$CONFIG_FILES"; then
8043
8044
8045ac_cr=`echo X | tr X '\015'`
8046# On cygwin, bash can eat \r inside `` if the user requested igncr.
8047# But we know of no other shell where ac_cr would be empty at this
8048# point, so we can use a bashism as a fallback.
8049if test "x$ac_cr" = x; then
8050 eval ac_cr=\$\'\\r\'
8051fi
8052ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8053if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8054 ac_cs_awk_cr='\\r'
8055else
8056 ac_cs_awk_cr=$ac_cr
8057fi
8058
8059echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8060_ACEOF
8061
8062
8063{
8064 echo "cat >conf$$subs.awk <<_ACEOF" &&
8065 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8066 echo "_ACEOF"
8067} >conf$$subs.sh ||
8068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8069ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8070ac_delim='%!_!# '
8071for ac_last_try in false false false false false :; do
8072 . ./conf$$subs.sh ||
8073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8074
8075 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8076 if test $ac_delim_n = $ac_delim_num; then
8077 break
8078 elif $ac_last_try; then
8079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8080 else
8081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8082 fi
8083done
8084rm -f conf$$subs.sh
8085
8086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8087cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8088_ACEOF
8089sed -n '
8090h
8091s/^/S["/; s/!.*/"]=/
8092p
8093g
8094s/^[^!]*!//
8095:repl
8096t repl
8097s/'"$ac_delim"'$//
8098t delim
8099:nl
8100h
8101s/\(.\{148\}\)..*/\1/
8102t more1
8103s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8104p
8105n
8106b repl
8107:more1
8108s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8109p
8110g
8111s/.\{148\}//
8112t nl
8113:delim
8114h
8115s/\(.\{148\}\)..*/\1/
8116t more2
8117s/["\\]/\\&/g; s/^/"/; s/$/"/
8118p
8119b
8120:more2
8121s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8122p
8123g
8124s/.\{148\}//
8125t delim
8126' <conf$$subs.awk | sed '
8127/^[^""]/{
8128 N
8129 s/\n//
8130}
8131' >>$CONFIG_STATUS || ac_write_fail=1
8132rm -f conf$$subs.awk
8133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8134_ACAWK
8135cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8136 for (key in S) S_is_set[key] = 1
8137 FS = "\a"
8138
8139}
8140{
8141 line = $ 0
8142 nfields = split(line, field, "@")
8143 substed = 0
8144 len = length(field[1])
8145 for (i = 2; i < nfields; i++) {
8146 key = field[i]
8147 keylen = length(key)
8148 if (S_is_set[key]) {
8149 value = S[key]
8150 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8151 len += length(value) + length(field[++i])
8152 substed = 1
8153 } else
8154 len += 1 + keylen
8155 }
8156
8157 print line
8158}
8159
8160_ACAWK
8161_ACEOF
8162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8163if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8164 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8165else
8166 cat
8167fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8168 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8169_ACEOF
8170
8171# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8172# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8173# trailing colons and then remove the whole line if VPATH becomes empty
8174# (actually we leave an empty line to preserve line numbers).
8175if test "x$srcdir" = x.; then
8176 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8177h
8178s///
8179s/^/:/
8180s/[ ]*$/:/
8181s/:\$(srcdir):/:/g
8182s/:\${srcdir}:/:/g
8183s/:@srcdir@:/:/g
8184s/^:*//
8185s/:*$//
8186x
8187s/\(=[ ]*\).*/\1/
8188G
8189s/\n//
8190s/^[^=]*=[ ]*$//
8191}'
8192fi
8193
8194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8195fi # test -n "$CONFIG_FILES"
8196
8197# Set up the scripts for CONFIG_HEADERS section.
8198# No need to generate them if there are no CONFIG_HEADERS.
8199# This happens for instance with `./config.status Makefile'.
8200if test -n "$CONFIG_HEADERS"; then
8201cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8202BEGIN {
8203_ACEOF
8204
8205# Transform confdefs.h into an awk script `defines.awk', embedded as
8206# here-document in config.status, that substitutes the proper values into
8207# config.h.in to produce config.h.
8208
8209# Create a delimiter string that does not exist in confdefs.h, to ease
8210# handling of long lines.
8211ac_delim='%!_!# '
8212for ac_last_try in false false :; do
8213 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8214 if test -z "$ac_tt"; then
8215 break
8216 elif $ac_last_try; then
8217 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8218 else
8219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8220 fi
8221done
8222
8223# For the awk script, D is an array of macro values keyed by name,
8224# likewise P contains macro parameters if any. Preserve backslash
8225# newline sequences.
8226
8227ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8228sed -n '
8229s/.\{148\}/&'"$ac_delim"'/g
8230t rset
8231:rset
8232s/^[ ]*#[ ]*define[ ][ ]*/ /
8233t def
8234d
8235:def
8236s/\\$//
8237t bsnl
8238s/["\\]/\\&/g
8239s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8240D["\1"]=" \3"/p
8241s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8242d
8243:bsnl
8244s/["\\]/\\&/g
8245s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8246D["\1"]=" \3\\\\\\n"\\/p
8247t cont
8248s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8249t cont
8250d
8251:cont
8252n
8253s/.\{148\}/&'"$ac_delim"'/g
8254t clear
8255:clear
8256s/\\$//
8257t bsnlc
8258s/["\\]/\\&/g; s/^/"/; s/$/"/p
8259d
8260:bsnlc
8261s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8262b cont
8263' <confdefs.h | sed '
8264s/'"$ac_delim"'/"\\\
8265"/g' >>$CONFIG_STATUS || ac_write_fail=1
8266
8267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8268 for (key in D) D_is_set[key] = 1
8269 FS = "\a"
8270}
8271/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8272 line = \$ 0
8273 split(line, arg, " ")
8274 if (arg[1] == "#") {
8275 defundef = arg[2]
8276 mac1 = arg[3]
8277 } else {
8278 defundef = substr(arg[1], 2)
8279 mac1 = arg[2]
8280 }
8281 split(mac1, mac2, "(") #)
8282 macro = mac2[1]
8283 prefix = substr(line, 1, index(line, defundef) - 1)
8284 if (D_is_set[macro]) {
8285 # Preserve the white space surrounding the "#".
8286 print prefix "define", macro P[macro] D[macro]
8287 next
8288 } else {
8289 # Replace #undef with comments. This is necessary, for example,
8290 # in the case of _POSIX_SOURCE, which is predefined and required
8291 # on some systems where configure will not decide to define it.
8292 if (defundef == "undef") {
8293 print "/*", prefix defundef, macro, "*/"
8294 next
8295 }
8296 }
8297}
8298{ print }
8299_ACAWK
8300_ACEOF
8301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8302 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8303fi # test -n "$CONFIG_HEADERS"
8304
8305
8306eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8307shift
8308for ac_tag
8309do
8310 case $ac_tag in
8311 :[FHLC]) ac_mode=$ac_tag; continue;;
8312 esac
8313 case $ac_mode$ac_tag in
8314 :[FHL]*:*);;
8315 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8316 :[FH]-) ac_tag=-:-;;
8317 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8318 esac
8319 ac_save_IFS=$IFS
8320 IFS=:
8321 set x $ac_tag
8322 IFS=$ac_save_IFS
8323 shift
8324 ac_file=$1
8325 shift
8326
8327 case $ac_mode in
8328 :L) ac_source=$1;;
8329 :[FH])
8330 ac_file_inputs=
8331 for ac_f
8332 do
8333 case $ac_f in
8334 -) ac_f="$ac_tmp/stdin";;
8335 *) # Look for the file first in the build tree, then in the source tree
8336 # (if the path is not absolute). The absolute path cannot be DOS-style,
8337 # because $ac_f cannot contain `:'.
8338 test -f "$ac_f" ||
8339 case $ac_f in
8340 [\\/$]*) false;;
8341 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8342 esac ||
8343 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8344 esac
8345 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8346 as_fn_append ac_file_inputs " '$ac_f'"
8347 done
8348
8349 # Let's still pretend it is `configure' which instantiates (i.e., don't
8350 # use $as_me), people would be surprised to read:
8351 # /* config.h. Generated by config.status. */
8352 configure_input='Generated from '`
8353 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8354 `' by configure.'
8355 if test x"$ac_file" != x-; then
8356 configure_input="$ac_file. $configure_input"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8358$as_echo "$as_me: creating $ac_file" >&6;}
8359 fi
8360 # Neutralize special characters interpreted by sed in replacement strings.
8361 case $configure_input in #(
8362 *\&* | *\|* | *\\* )
8363 ac_sed_conf_input=`$as_echo "$configure_input" |
8364 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8365 *) ac_sed_conf_input=$configure_input;;
8366 esac
8367
8368 case $ac_tag in
8369 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8371 esac
8372 ;;
8373 esac
8374
8375 ac_dir=`$as_dirname -- "$ac_file" ||
8376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8377 X"$ac_file" : 'X\(//\)[^/]' \| \
8378 X"$ac_file" : 'X\(//\)$' \| \
8379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8380$as_echo X"$ac_file" |
8381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8382 s//\1/
8383 q
8384 }
8385 /^X\(\/\/\)[^/].*/{
8386 s//\1/
8387 q
8388 }
8389 /^X\(\/\/\)$/{
8390 s//\1/
8391 q
8392 }
8393 /^X\(\/\).*/{
8394 s//\1/
8395 q
8396 }
8397 s/.*/./; q'`
8398 as_dir="$ac_dir"; as_fn_mkdir_p
8399 ac_builddir=.
8400
8401case "$ac_dir" in
8402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8403*)
8404 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8405 # A ".." for each directory in $ac_dir_suffix.
8406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8407 case $ac_top_builddir_sub in
8408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8410 esac ;;
8411esac
8412ac_abs_top_builddir=$ac_pwd
8413ac_abs_builddir=$ac_pwd$ac_dir_suffix
8414# for backward compatibility:
8415ac_top_builddir=$ac_top_build_prefix
8416
8417case $srcdir in
8418 .) # We are building in place.
8419 ac_srcdir=.
8420 ac_top_srcdir=$ac_top_builddir_sub
8421 ac_abs_top_srcdir=$ac_pwd ;;
8422 [\\/]* | ?:[\\/]* ) # Absolute name.
8423 ac_srcdir=$srcdir$ac_dir_suffix;
8424 ac_top_srcdir=$srcdir
8425 ac_abs_top_srcdir=$srcdir ;;
8426 *) # Relative name.
8427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8428 ac_top_srcdir=$ac_top_build_prefix$srcdir
8429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8430esac
8431ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8432
8433
8434 case $ac_mode in
8435 :F)
8436 #
8437 # CONFIG_FILE
8438 #
8439
8440 case $INSTALL in
8441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8443 esac
8444 ac_MKDIR_P=$MKDIR_P
8445 case $MKDIR_P in
8446 [\\/$]* | ?:[\\/]* ) ;;
8447 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8448 esac
8449_ACEOF
8450
8451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8452# If the template does not know about datarootdir, expand it.
8453# FIXME: This hack should be removed a few years after 2.60.
8454ac_datarootdir_hack=; ac_datarootdir_seen=
8455ac_sed_dataroot='
8456/datarootdir/ {
8457 p
8458 q
8459}
8460/@datadir@/p
8461/@docdir@/p
8462/@infodir@/p
8463/@localedir@/p
8464/@mandir@/p'
8465case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8466*datarootdir*) ac_datarootdir_seen=yes;;
8467*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8469$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8470_ACEOF
8471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8472 ac_datarootdir_hack='
8473 s&@datadir@&$datadir&g
8474 s&@docdir@&$docdir&g
8475 s&@infodir@&$infodir&g
8476 s&@localedir@&$localedir&g
8477 s&@mandir@&$mandir&g
8478 s&\\\${datarootdir}&$datarootdir&g' ;;
8479esac
8480_ACEOF
8481
8482# Neutralize VPATH when `$srcdir' = `.'.
8483# Shell code in configure.ac might set extrasub.
8484# FIXME: do we really want to maintain this feature?
8485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8486ac_sed_extra="$ac_vpsub
8487$extrasub
8488_ACEOF
8489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8490:t
8491/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8492s|@configure_input@|$ac_sed_conf_input|;t t
8493s&@top_builddir@&$ac_top_builddir_sub&;t t
8494s&@top_build_prefix@&$ac_top_build_prefix&;t t
8495s&@srcdir@&$ac_srcdir&;t t
8496s&@abs_srcdir@&$ac_abs_srcdir&;t t
8497s&@top_srcdir@&$ac_top_srcdir&;t t
8498s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8499s&@builddir@&$ac_builddir&;t t
8500s&@abs_builddir@&$ac_abs_builddir&;t t
8501s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8502s&@INSTALL@&$ac_INSTALL&;t t
8503s&@MKDIR_P@&$ac_MKDIR_P&;t t
8504$ac_datarootdir_hack
8505"
8506eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8507 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8508
8509test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8510 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8511 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8512 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8514which seems to be undefined. Please make sure it is defined" >&5
8515$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8516which seems to be undefined. Please make sure it is defined" >&2;}
8517
8518 rm -f "$ac_tmp/stdin"
8519 case $ac_file in
8520 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8521 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8522 esac \
8523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8524 ;;
8525 :H)
8526 #
8527 # CONFIG_HEADER
8528 #
8529 if test x"$ac_file" != x-; then
8530 {
8531 $as_echo "/* $configure_input */" \
8532 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8533 } >"$ac_tmp/config.h" \
8534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8535 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8537$as_echo "$as_me: $ac_file is unchanged" >&6;}
8538 else
8539 rm -f "$ac_file"
8540 mv "$ac_tmp/config.h" "$ac_file" \
8541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8542 fi
8543 else
8544 $as_echo "/* $configure_input */" \
8545 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8546 || as_fn_error $? "could not create -" "$LINENO" 5
8547 fi
8548# Compute "$ac_file"'s index in $config_headers.
8549_am_arg="$ac_file"
8550_am_stamp_count=1
8551for _am_header in $config_headers :; do
8552 case $_am_header in
8553 $_am_arg | $_am_arg:* )
8554 break ;;
8555 * )
8556 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8557 esac
8558done
8559echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8560$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8561 X"$_am_arg" : 'X\(//\)[^/]' \| \
8562 X"$_am_arg" : 'X\(//\)$' \| \
8563 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8564$as_echo X"$_am_arg" |
8565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8566 s//\1/
8567 q
8568 }
8569 /^X\(\/\/\)[^/].*/{
8570 s//\1/
8571 q
8572 }
8573 /^X\(\/\/\)$/{
8574 s//\1/
8575 q
8576 }
8577 /^X\(\/\).*/{
8578 s//\1/
8579 q
8580 }
8581 s/.*/./; q'`/stamp-h$_am_stamp_count
8582 ;;
8583
8584 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8585$as_echo "$as_me: executing $ac_file commands" >&6;}
8586 ;;
8587 esac
8588
8589
8590 case $ac_file$ac_mode in
8591 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8592 # Older Autoconf quotes --file arguments for eval, but not when files
8593 # are listed without --file. Let's play safe and only enable the eval
8594 # if we detect the quoting.
8595 case $CONFIG_FILES in
8596 *\'*) eval set x "$CONFIG_FILES" ;;
8597 *) set x $CONFIG_FILES ;;
8598 esac
8599 shift
8600 for mf
8601 do
8602 # Strip MF so we end up with the name of the file.
8603 mf=`echo "$mf" | sed -e 's/:.*$//'`
8604 # Check whether this is an Automake generated Makefile or not.
8605 # We used to match only the files named 'Makefile.in', but
8606 # some people rename them; so instead we look at the file content.
8607 # Grep'ing the first line is not enough: some people post-process
8608 # each Makefile.in and add a new line on top of each file to say so.
8609 # Grep'ing the whole file is not good either: AIX grep has a line
8610 # limit of 2048, but all sed's we know have understand at least 4000.
8611 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8612 dirpart=`$as_dirname -- "$mf" ||
8613$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8614 X"$mf" : 'X\(//\)[^/]' \| \
8615 X"$mf" : 'X\(//\)$' \| \
8616 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8617$as_echo X"$mf" |
8618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8619 s//\1/
8620 q
8621 }
8622 /^X\(\/\/\)[^/].*/{
8623 s//\1/
8624 q
8625 }
8626 /^X\(\/\/\)$/{
8627 s//\1/
8628 q
8629 }
8630 /^X\(\/\).*/{
8631 s//\1/
8632 q
8633 }
8634 s/.*/./; q'`
8635 else
8636 continue
8637 fi
8638 # Extract the definition of DEPDIR, am__include, and am__quote
8639 # from the Makefile without running 'make'.
8640 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8641 test -z "$DEPDIR" && continue
8642 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8643 test -z "$am__include" && continue
8644 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8645 # Find all dependency output files, they are included files with
8646 # $(DEPDIR) in their names. We invoke sed twice because it is the
8647 # simplest approach to changing $(DEPDIR) to its actual value in the
8648 # expansion.
8649 for file in `sed -n "
8650 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8651 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8652 # Make sure the directory exists.
8653 test -f "$dirpart/$file" && continue
8654 fdir=`$as_dirname -- "$file" ||
8655$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8656 X"$file" : 'X\(//\)[^/]' \| \
8657 X"$file" : 'X\(//\)$' \| \
8658 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8659$as_echo X"$file" |
8660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8661 s//\1/
8662 q
8663 }
8664 /^X\(\/\/\)[^/].*/{
8665 s//\1/
8666 q
8667 }
8668 /^X\(\/\/\)$/{
8669 s//\1/
8670 q
8671 }
8672 /^X\(\/\).*/{
8673 s//\1/
8674 q
8675 }
8676 s/.*/./; q'`
8677 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8678 # echo "creating $dirpart/$file"
8679 echo '# dummy' > "$dirpart/$file"
8680 done
8681 done
8682}
8683 ;;
8684
8685 esac
8686done # for ac_tag
8687
8688
8689as_fn_exit 0
8690_ACEOF
8691ac_clean_files=$ac_clean_files_save
8692
8693test $ac_write_fail = 0 ||
8694 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8695
8696
8697# configure is writing to config.log, and then calls config.status.
8698# config.status does its own redirection, appending to config.log.
8699# Unfortunately, on DOS this fails, as config.log is still kept open
8700# by configure, so config.status won't be able to write to it; its
8701# output is simply discarded. So we exec the FD to /dev/null,
8702# effectively closing config.log, so it can be properly (re)opened and
8703# appended to by config.status. When coming back to configure, we
8704# need to make the FD available again.
8705if test "$no_create" != yes; then
8706 ac_cs_success=:
8707 ac_config_status_args=
8708 test "$silent" = yes &&
8709 ac_config_status_args="$ac_config_status_args --quiet"
8710 exec 5>/dev/null
8711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8712 exec 5>>config.log
8713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8714 # would make configure fail if this is the last instruction.
8715 $ac_cs_success || as_fn_exit 1
8716fi
8717if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8719$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8720fi
8721
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8723$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8724set x ${MAKE-make}
8725ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8726if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728else
8729 cat >conftest.make <<\_ACEOF
8730SHELL = /bin/sh
8731all:
8732 @echo '@@@%%%=$(MAKE)=@@@%%%'
8733_ACEOF
8734# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8735case `${MAKE-make} -f conftest.make 2>/dev/null` in
8736 *@@@%%%=?*=@@@%%%*)
8737 eval ac_cv_prog_make_${ac_make}_set=yes;;
8738 *)
8739 eval ac_cv_prog_make_${ac_make}_set=no;;
8740esac
8741rm -f conftest.make
8742fi
8743if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8745$as_echo "yes" >&6; }
8746 SET_MAKE=
8747else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749$as_echo "no" >&6; }
8750 SET_MAKE="MAKE=${MAKE-make}"
8751fi
8752
8753
8754# Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)'
8755info=`
8756 echo "-----------------------------------------------------------------------------"
8757 echo "${PACKAGE}-${VERSION} configuration:"
8758 echo "host operating system: $host"
8759 echo "C++ compiler: $CXX"
8760 echo "C compiler: $CC"
8761 echo "preprocessor flags: $CPPFLAGS"
8762 echo "C++ compiler flags: $CXXFLAGS"
8763 echo "C compiler flags: $CFLAGS"
8764 echo "linker flags: $LDFLAGS"
8765 echo "OS specific modules: $os_deps $os_libs $LIBS"
8766
8767 case "$host_os" in
8768 mingw*)
8769 echo "application manifest: ${os_win32_manifest:-built-in}"
8770 echo "resource compiler: $WINDRES"
8771 echo "message compiler: $WINDMC"
8772 echo "NSIS compiler: $MAKENSIS"
8773 if test -n "$drivedbdir"; then
8774 echo "drive database file: EXEDIR/drivedb.h"
8775 if test -n "$MAKENSIS"; then
8776 echo "database update tool: EXEDIR/update-smart-drivedb.exe"
8777 fi
8778 else
8779 echo "drive database file: [disabled]"
8780 fi
8781 if test -n "$savestates"; then
8782 echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state"
8783 fi
8784 if test -n "$attributelog"; then
8785 echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv"
8786 fi
8787 echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}"
8788 ;;
8789
8790 *)
8791 echo "binary install path: \`eval eval eval echo $sbindir\`"
8792 echo "man page install path: \`eval eval eval echo $mandir\`"
8793 echo "doc file install path: \`eval eval eval echo $docdir\`"
8794 echo "examples install path: \`eval eval eval echo $exampledir\`"
8795 if test -n "$drivedbdir"; then
8796 echo "drive database file: \`eval eval eval echo $drivedbdir\`/drivedb.h"
8797 if test "$with_update_smart_drivedb" = "yes"; then
8798 echo "database update script: \`eval eval eval echo $sbindir\`/update-smart-drivedb"
ff28b140
TL
8799 if test "$drivedb_version" = "$smartmontools_drivedb_version"; then
8800 echo "database update branch: branches/$DRIVEDB_BRANCH"
8801 else
f9e10201
JD
8802 echo "... backported to: branches/$DRIVEDB_BRANCH"
8803 fi
8804 echo "download tools: \`eval eval eval echo $os_dltools\`"
8805 if test -n "$gnupg"; then
8806 echo "GnuPG for verification: \`eval eval eval echo $gnupg\`"
8807 else
8808 echo "GnuPG for verification: [disabled]"
8809 fi
8810 else
8811 echo "database update script: [disabled]"
8812 fi
8813 else
8814 echo "drive database file: [disabled]"
8815 fi
8816 echo "local drive database: \`eval eval eval echo $sysconfdir\`/smart_drivedb.h"
8817 echo "smartd config file: \`eval eval eval echo $sysconfdir\`/smartd.conf${smartd_suffix}"
8818 echo "smartd warning script: \`eval eval eval echo $smartdscriptdir\`/smartd_warning.sh"
8819 if test -n "$smartdplugindir"; then
8820 echo "smartd plugin path: \`eval eval eval echo $smartdplugindir\`"
8821 else
8822 echo "smartd plugin path: [disabled]"
8823 fi
8824 if test -n "$scriptpath"; then
8825 echo "PATH within scripts: \`eval eval eval echo $scriptpath\`"
8826 else
8827 echo "PATH within scripts: [inherited]"
8828 fi
8829 if test -n "$initddir"; then
ff28b140 8830 echo "smartd initd script: \`eval eval eval echo $initddir\`/smartd"
f9e10201
JD
8831 elif test -z "$systemdsystemunitdir"; then
8832 echo "smartd initd script: [disabled]"
8833 fi
8834 if test -n "$systemdsystemunitdir"; then
ff28b140 8835 echo "smartd service file: \`eval eval eval echo $systemdsystemunitdir\`/smartd.service"
f9e10201
JD
8836 if test -n "$systemdenvfile"; then
8837 echo "smartd environ file: \`eval eval eval echo $systemdenvfile\`"
8838 else
8839 echo "smartd environ file: [disabled]"
8840 fi
8841 fi
8842 if test -n "$savestates"; then
8843 echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state"
8844 else
8845 echo "smartd save files: [disabled]"
8846 fi
8847 if test -n "$attributelog"; then
8848 echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv"
8849 else
8850 echo "smartd attribute logs: [disabled]"
8851 fi
f9e10201 8852 case "$host_os" in
ff28b140
TL
8853 linux*)
8854 echo "SELinux support: ${with_selinux-no}"
8855 echo "libcap-ng support: $use_libcap_ng"
8856 echo "systemd notify support: $use_libsystemd" ;;
f9e10201 8857 esac
ff28b140 8858 echo "NVMe DEVICESCAN: ${with_nvme_devicescan-[not implemented]}"
f9e10201
JD
8859 ;;
8860 esac
8861 echo "-----------------------------------------------------------------------------"
8862`
8863
8864{ $as_echo "$as_me:${as_lineno-$LINENO}:
8865$info
8866" >&5
8867$as_echo "$as_me:
8868$info
8869" >&6;}
8870
8871# TODO: Remove when NVMe support is no longer EXPERIMENTAL
ff28b140
TL
8872case "$os_nvme_devicescan:$with_nvme_devicescan" in
8873 used:yes) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8874The default for the inclusion of NVME devices in smartd.conf
8875'DEVICESCAN' and 'smartctl --scan' has been changed to 'yes' on
8876this platform. If '--without-nvme-devicescan' is still needed,
8877please inform $PACKAGE_BUGREPORT.
8878Use option '--with-nvme-devicescan' to suppress this warning.
8879" >&5
8880$as_echo "$as_me: WARNING:
8881The default for the inclusion of NVME devices in smartd.conf
8882'DEVICESCAN' and 'smartctl --scan' has been changed to 'yes' on
8883this platform. If '--without-nvme-devicescan' is still needed,
8884please inform $PACKAGE_BUGREPORT.
8885Use option '--with-nvme-devicescan' to suppress this warning.
8886" >&2;} ;;
8887 used:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
f9e10201
JD
8888This version of smartmontools provides NVMe support which is still
8889EXPERIMENTAL. NVMe devices are not yet included in smartd.conf
8890'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified.
8891Use option '--with-nvme-devicescan' to include NVMe devices.
8892Use option '--without-nvme-devicescan' to suppress this warning.
8893" >&5
8894$as_echo "$as_me: WARNING:
8895This version of smartmontools provides NVMe support which is still
8896EXPERIMENTAL. NVMe devices are not yet included in smartd.conf
8897'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified.
8898Use option '--with-nvme-devicescan' to include NVMe devices.
8899Use option '--without-nvme-devicescan' to suppress this warning.
ff28b140 8900" >&2;} ;;
f9e10201
JD
8901esac
8902
ff28b140
TL
8903# TODO: Remove after smartmontools 6.7
8904if test "$with_working_snprintf" != "yes"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8906The option '--without-working-snprintf' is deprecated and will be removed
8907in a future version of smartmontools. If you still need support for
8908pre-C99 snprintf(), please inform $PACKAGE_BUGREPORT.
f9e10201
JD
8909" >&5
8910$as_echo "$as_me: WARNING:
ff28b140
TL
8911The option '--without-working-snprintf' is deprecated and will be removed
8912in a future version of smartmontools. If you still need support for
8913pre-C99 snprintf(), please inform $PACKAGE_BUGREPORT.
f9e10201 8914" >&2;}
ff28b140
TL
8915fi
8916
8917case "$host_os:$with_libsystemd:$use_libsystemd:$PKG_CONFIG" in
8918 linux*:auto:no:?*)
8919 if $PKG_CONFIG systemd >/dev/null 2>&1; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8921systemd(1) is used on this system but smartd systemd notify support will
8922not be available because libsystemd-dev[el] package is not installed.
8923Use option '--without-libsystemd' to suppress this warning.
8924" >&5
8925$as_echo "$as_me: WARNING:
8926systemd(1) is used on this system but smartd systemd notify support will
8927not be available because libsystemd-dev[el] package is not installed.
8928Use option '--without-libsystemd' to suppress this warning.
8929" >&2;}
8930 fi ;;
f9e10201 8931esac