2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for smartmontools 6.6.
5 # Report bugs to <smartmontools-support@listi.jpberlin.de>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
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.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
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 :
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
240 if test "x$CONFIG_SHELL" != x
; then :
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.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
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."
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."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
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.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='smartmontools'
582 PACKAGE_TARNAME
='smartmontools'
583 PACKAGE_VERSION
='6.6'
584 PACKAGE_STRING
='smartmontools 6.6'
585 PACKAGE_BUGREPORT
='smartmontools-support@listi.jpberlin.de'
588 ac_unique_file
="smartctl.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='am__EXEEXT_FALSE
651 smartmontools_release_time
652 smartmontools_release_date
658 ENABLE_ATTRIBUTELOG_FALSE
659 ENABLE_ATTRIBUTELOG_TRUE
662 ENABLE_SAVESTATES_FALSE
663 ENABLE_SAVESTATES_TRUE
666 ENABLE_SCRIPTPATH_FALSE
667 ENABLE_SCRIPTPATH_TRUE
672 ENABLE_UPDATE_SMART_DRIVEDB_FALSE
673 ENABLE_UPDATE_SMART_DRIVEDB_TRUE
674 with_update_smart_drivedb
680 INSTALL_INITSCRIPT_FALSE
681 INSTALL_INITSCRIPT_TRUE
684 INSTALL_SYSTEMDUNIT_FALSE
685 INSTALL_SYSTEMDUNIT_TRUE
691 NEED_GETOPT_LONG_FALSE
692 NEED_GETOPT_LONG_TRUE
713 am__fastdepCCAS_FALSE
742 MAINTAINER_MODE_FALSE
756 INSTALL_STRIP_PROGRAM
798 program_transform_name
811 enable_option_checking
813 enable_maintainer_mode
814 enable_dependency_tracking
815 with_systemdsystemunitdir
820 with_update_smart_drivedb
832 with_solaris_sparc_ata
833 with_working_snprintf
837 ac_precious_vars
='build_alias
859 # Initialize some variables set by options.
861 ac_init_version
=false
862 ac_unrecognized_opts
=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
873 program_transform_name
=s
,x
,x
,
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir
='${exec_prefix}/bin'
888 sbindir
='${exec_prefix}/sbin'
889 libexecdir
='${exec_prefix}/libexec'
890 datarootdir
='${prefix}/share'
891 datadir
='${datarootdir}'
892 sysconfdir
='${prefix}/etc'
893 sharedstatedir
='${prefix}/com'
894 localstatedir
='${prefix}/var'
895 includedir
='${prefix}/include'
896 oldincludedir
='/usr/include'
897 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir
='${datarootdir}/info'
903 libdir
='${exec_prefix}/lib'
904 localedir
='${datarootdir}/locale'
905 mandir
='${datarootdir}/man'
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\
$ac_option
919 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 # Accept the important Cygnus configure options, so we can diagnose typos.
926 case $ac_dashdash$ac_option in
930 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
932 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
935 -build |
--build |
--buil |
--bui |
--bu)
936 ac_prev
=build_alias
;;
937 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
938 build_alias
=$ac_optarg ;;
940 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
941 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
942 ac_prev
=cache_file
;;
943 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
944 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
945 cache_file
=$ac_optarg ;;
948 cache_file
=config.cache
;;
950 -datadir |
--datadir |
--datadi |
--datad)
952 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
953 datadir
=$ac_optarg ;;
955 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
956 |
--dataroo |
--dataro |
--datar)
957 ac_prev
=datarootdir
;;
958 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
959 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
960 datarootdir
=$ac_optarg ;;
962 -disable-* |
--disable-*)
963 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
966 as_fn_error $?
"invalid feature name: $ac_useropt"
967 ac_useropt_orig
=$ac_useropt
968 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep
=', ';;
976 eval enable_
$ac_useropt=no
;;
978 -docdir |
--docdir |
--docdi |
--doc |
--do)
980 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
983 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
985 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
988 -enable-* |
--enable-*)
989 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
992 as_fn_error $?
"invalid feature name: $ac_useropt"
993 ac_useropt_orig
=$ac_useropt
994 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
999 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep
=', ';;
1002 eval enable_
$ac_useropt=\
$ac_optarg ;;
1004 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1005 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1006 |
--exec |
--exe |
--ex)
1007 ac_prev
=exec_prefix
;;
1008 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1009 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1010 |
--exec=* |
--exe=* |
--ex=*)
1011 exec_prefix
=$ac_optarg ;;
1013 -gas |
--gas |
--ga |
--g)
1014 # Obsolete; use --with-gas.
1017 -help |
--help |
--hel |
--he |
-h)
1018 ac_init_help
=long
;;
1019 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1020 ac_init_help
=recursive
;;
1021 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1022 ac_init_help
=short
;;
1024 -host |
--host |
--hos |
--ho)
1025 ac_prev
=host_alias
;;
1026 -host=* |
--host=* |
--hos=* |
--ho=*)
1027 host_alias
=$ac_optarg ;;
1029 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1031 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1033 htmldir
=$ac_optarg ;;
1035 -includedir |
--includedir |
--includedi |
--included |
--include \
1036 |
--includ |
--inclu |
--incl |
--inc)
1037 ac_prev
=includedir
;;
1038 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1039 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1040 includedir
=$ac_optarg ;;
1042 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1044 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1045 infodir
=$ac_optarg ;;
1047 -libdir |
--libdir |
--libdi |
--libd)
1049 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1050 libdir
=$ac_optarg ;;
1052 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1053 |
--libexe |
--libex |
--libe)
1054 ac_prev
=libexecdir
;;
1055 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1056 |
--libexe=* |
--libex=* |
--libe=*)
1057 libexecdir
=$ac_optarg ;;
1059 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1060 ac_prev
=localedir
;;
1061 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1062 localedir
=$ac_optarg ;;
1064 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1065 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1066 ac_prev
=localstatedir
;;
1067 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1068 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1069 localstatedir
=$ac_optarg ;;
1071 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1073 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1074 mandir
=$ac_optarg ;;
1076 -nfp |
--nfp |
--nf)
1077 # Obsolete; use --without-fp.
1080 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1081 |
--no-cr |
--no-c |
-n)
1084 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1085 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1088 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1089 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1090 |
--oldin |
--oldi |
--old |
--ol |
--o)
1091 ac_prev
=oldincludedir
;;
1092 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1093 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1094 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1095 oldincludedir
=$ac_optarg ;;
1097 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1099 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1100 prefix
=$ac_optarg ;;
1102 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1103 |
--program-pre |
--program-pr |
--program-p)
1104 ac_prev
=program_prefix
;;
1105 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1106 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1107 program_prefix
=$ac_optarg ;;
1109 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1110 |
--program-suf |
--program-su |
--program-s)
1111 ac_prev
=program_suffix
;;
1112 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1113 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1114 program_suffix
=$ac_optarg ;;
1116 -program-transform-name |
--program-transform-name \
1117 |
--program-transform-nam |
--program-transform-na \
1118 |
--program-transform-n |
--program-transform- \
1119 |
--program-transform |
--program-transfor \
1120 |
--program-transfo |
--program-transf \
1121 |
--program-trans |
--program-tran \
1122 |
--progr-tra |
--program-tr |
--program-t)
1123 ac_prev
=program_transform_name
;;
1124 -program-transform-name=* |
--program-transform-name=* \
1125 |
--program-transform-nam=* |
--program-transform-na=* \
1126 |
--program-transform-n=* |
--program-transform-=* \
1127 |
--program-transform=* |
--program-transfor=* \
1128 |
--program-transfo=* |
--program-transf=* \
1129 |
--program-trans=* |
--program-tran=* \
1130 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1131 program_transform_name
=$ac_optarg ;;
1133 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1135 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1136 pdfdir
=$ac_optarg ;;
1138 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1140 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1143 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1144 |
-silent |
--silent |
--silen |
--sile |
--sil)
1147 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1149 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1151 sbindir
=$ac_optarg ;;
1153 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1154 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1155 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1157 ac_prev
=sharedstatedir
;;
1158 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1159 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1160 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1162 sharedstatedir
=$ac_optarg ;;
1164 -site |
--site |
--sit)
1166 -site=* |
--site=* |
--sit=*)
1169 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1171 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1172 srcdir
=$ac_optarg ;;
1174 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1175 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1176 ac_prev
=sysconfdir
;;
1177 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1178 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1179 sysconfdir
=$ac_optarg ;;
1181 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1182 ac_prev
=target_alias
;;
1183 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1184 target_alias
=$ac_optarg ;;
1186 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1189 -version |
--version |
--versio |
--versi |
--vers |
-V)
1190 ac_init_version
=: ;;
1193 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 as_fn_error $?
"invalid package name: $ac_useropt"
1197 ac_useropt_orig
=$ac_useropt
1198 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1203 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep
=', ';;
1206 eval with_
$ac_useropt=\
$ac_optarg ;;
1208 -without-* |
--without-*)
1209 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1212 as_fn_error $?
"invalid package name: $ac_useropt"
1213 ac_useropt_orig
=$ac_useropt
1214 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep
=', ';;
1222 eval with_
$ac_useropt=no
;;
1225 # Obsolete; use --with-x.
1228 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1229 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1230 ac_prev
=x_includes
;;
1231 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1232 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1233 x_includes
=$ac_optarg ;;
1235 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1236 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1237 ac_prev
=x_libraries
;;
1238 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1239 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1240 x_libraries
=$ac_optarg ;;
1242 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1247 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1251 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1253 eval $ac_envvar=\
$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 if test -n "$ac_prev"; then
1268 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $?
"missing argument to $ac_option"
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1275 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 # Check all directory arguments for consistency.
1281 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val
=\$
$ac_var
1287 # Remove trailing slashes.
1290 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\
$ac_val;;
1293 # Be sure to have absolute directory names.
1295 [\\/$
]* | ?
:[\\/]* ) continue;;
1296 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1298 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1306 target
=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x
; then
1310 if test "x$build_alias" = x
; then
1311 cross_compiling
=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1318 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1320 test "$silent" = yes && exec 6>/dev
/null
1323 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di
=`ls -di .` &&
1325 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $?
"working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $?
"pwd does not report name of working directory"
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted
=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir
=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted
=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1367 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1369 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var
in $ac_precious_vars; do
1384 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1386 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures smartmontools 6.6 to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1460 --build=BUILD configure
for building on BUILD
[guessed
]
1461 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive
) echo "Configuration of smartmontools 6.6:";;
1472 --disable-option-checking ignore unrecognized
--enable/--with options
1473 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1474 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1475 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1476 --disable-silent-rules verbose build output
(undo
: "make V=0")
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful
(and
1479 sometimes confusing
) to the casual installer
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-sample Enables appending .sample to the installed smartd rc
1485 script and configuration
file
1488 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1489 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1490 --with-systemdsystemunitdir[=DIR|auto|
yes|no
]
1491 Location of systemd service files
[auto
]
1492 --with-systemdenvfile[=FILE|auto|
yes|no
]
1493 Path of systemd EnvironmentFile
[auto
]
1494 --with-initscriptdir[=DIR|auto|
yes|no
]
1495 Location of init scripts
[auto
]
1496 --with-exampledir=DIR Location of example scripts
[DOCDIR
/examplescripts
]
1497 --with-drivedbdir[=DIR|
yes|no
]
1498 Location of drive database
file
1499 [DATADIR
/smartmontools
]
1500 --with-update-smart-drivedb[=yes|no|X.Y
]
1501 Install update-smart-drivedb
script (and backport it
1502 to branches
/RELEASE_X_Y_DRIVEDB
) [yes]
1503 --with-gnupg[=FILE|
yes|no
]
1504 GnuPG used to verify drivedb.h
[gpg
]
1505 --with-smartdscriptdir=DIR
1506 Location of smartd_warning.sh
script [SYSCONFDIR
]
1507 --with-smartdplugindir=[DIR|no
]
1508 Location of smartd_warning.sh plugin scripts
1509 [SMARTDSCRIPTDIR
/smartd_warning.d
]
1510 --with-scriptpath=[PATH|no
]
1511 PATH variable
set within scripts
[/usr
/bin
:/bin
]
1512 --with-savestates[=PREFIX|
yes|no
]
1513 Enable default smartd state files
[no
]
1514 (yes=LOCALSTATEDIR
/lib
/smartmontools
/smartd.
)
1515 --with-attributelog[=PREFIX|
yes|no
]
1516 Enable default smartd attribute log files
[no
]
1517 (yes=LOCALSTATEDIR
/lib
/smartmontools
/attrlog.
)
1518 --with-os-deps='os_module.o ...'
1519 Specify OS dependent module
(s
) [guessed
]
1520 --with-selinux[=yes|no
] Enables SELinux support
[no
]
1521 --with-libcap-ng[=auto|
yes|no
]
1522 Add Libcap-ng support to smartd
[auto
]
1523 --with-nvme-devicescan[=yes|no
]
1524 Include NVMe devices
in smartd DEVICESCAN
[no
]
1525 --with-solaris-sparc-ata[=yes|no
]
1526 Enable legacy ATA support on Solaris SPARC
(requires
1527 os_solaris_ata.s from SVN repository
) [no
]
1528 --with-working-snprintf[=yes|no
]
1529 Function snprintf
() handles output truncation as
1530 specified by C99
[MinGW
:guessed
,others
:yes]
1531 --with-mingw-aslr[=auto|
yes|low|no
]
1532 Enable ASLR
for MinGW executables
[auto
]
1533 --with-cxx11-option[=OPTION|auto|no
]
1534 Compiler option to
enable C
++11 support
for future
1535 versions of smartmontools
, 'no' if unsupported
1538 Some influential environment variables
:
1539 CXX C
++ compiler
command
1540 CXXFLAGS C
++ compiler flags
1541 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1542 nonstandard directory
<lib dir
>
1543 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1544 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1545 you have headers
in a nonstandard directory
<include dir
>
1546 CC C compiler
command
1547 CFLAGS C compiler flags
1548 CCAS assembler compiler
command (defaults to CC
)
1549 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1550 PKG_CONFIG path to pkg-config utility
1552 directories to add to pkg-config
's search path
1554 path overriding pkg-config's built-in search path
1555 WINDMC Windows message compiler
command
1556 WINDRES Windows resource compiler
command
1557 MAKENSIS NSIS compiler
command
1558 CXXCPP C
++ preprocessor
1560 Use these variables to override the choices made by
`configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to <smartmontools-support@listi.jpberlin.de>.
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1626 smartmontools configure 6.6
1627 generated by GNU Autoconf 2.69
1629 Copyright (C) 2012 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1640 # ac_fn_cxx_try_compile LINENO
1641 # ----------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_cxx_try_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1650 *) ac_try_echo
=$ac_try;;
1652 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1656 if test -s conftest.err
; then
1657 grep -v '^ *+' conftest.err
>conftest.er1
1658 cat conftest.er1
>&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_cxx_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.
$ac_objext; then :
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.
$ac_ext >&5
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status
$ac_retval
1676 } # ac_fn_cxx_try_compile
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile
()
1683 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1684 rm -f conftest.
$ac_objext
1685 if { { ac_try
="$ac_compile"
1687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_compile
1716 # ac_fn_cxx_try_cpp LINENO
1717 # ------------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_cxx_try_cpp ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1725 *) ac_try_echo
=$ac_try;;
1727 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731 if test -s conftest.err
; then
1732 grep -v '^ *+' conftest.err
>conftest.er1
1733 cat conftest.er1
>&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } > conftest.i
&& {
1738 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1739 test ! -s conftest.err
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.
$ac_ext >&5
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status
$ac_retval
1751 } # ac_fn_cxx_try_cpp
1753 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # ---------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1758 ac_fn_cxx_check_header_mongrel
()
1760 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1761 if eval \
${$3+:} false
; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \
${$3+:} false
; then :
1765 $as_echo_n "(cached) " >&6
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_cxx_try_compile
"$LINENO"; then :
1780 ac_header_compiler
=yes
1782 ac_header_compiler
=no
1784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1795 if ac_fn_cxx_try_cpp
"$LINENO"; then :
1796 ac_header_preproc
=yes
1798 ac_header_preproc
=no
1800 rm -f conftest.err conftest.i conftest.
$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ( $as_echo "## ------------------------------------------------------ ##
1824 ## Report this to smartmontools-support@listi.jpberlin.de ##
1825 ## ------------------------------------------------------ ##"
1826 ) |
sed "s/^/$as_me: WARNING: /" >&2
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \
${$3+:} false
; then :
1832 $as_echo_n "(cached) " >&6
1834 eval "$3=\$ac_header_compiler"
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 } # ac_fn_cxx_check_header_mongrel
1844 # ac_fn_cxx_try_run LINENO
1845 # ------------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847 # that executables *can* be run.
1848 ac_fn_cxx_try_run
()
1850 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1851 if { { ac_try
="$ac_link"
1853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1864 *) ac_try_echo
=$ac_try;;
1866 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.
$ac_ext >&5
1878 ac_retval
=$ac_status
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status
$ac_retval
1884 } # ac_fn_cxx_try_run
1886 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1887 # ---------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_cxx_check_header_compile
()
1892 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \
${$3+:} false
; then :
1896 $as_echo_n "(cached) " >&6
1898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1903 if ac_fn_cxx_try_compile
"$LINENO"; then :
1908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_cxx_check_header_compile
1917 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1918 # ---------------------------------------------
1919 # Tests whether TYPE exists after having included INCLUDES, setting cache
1920 # variable VAR accordingly.
1921 ac_fn_cxx_check_type
()
1923 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \
${$3+:} false
; then :
1927 $as_echo_n "(cached) " >&6
1930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1942 if ac_fn_cxx_try_compile
"$LINENO"; then :
1943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1955 if ac_fn_cxx_try_compile
"$LINENO"; then :
1960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_cxx_check_type
1971 # ac_fn_cxx_try_link LINENO
1972 # -------------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 ac_fn_cxx_try_link
()
1976 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1977 rm -f conftest.
$ac_objext conftest
$ac_exeext
1978 if { { ac_try
="$ac_link"
1980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>conftest.err
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest$ac_exeext && {
1997 test "$cross_compiling" = yes ||
1998 test -x conftest$ac_exeext
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009 # interfere with the next link command; also delete a directory that is
2010 # left behind by Apple's compiler. We do this before executing the actions.
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_cxx_try_link
2017 # ac_fn_cxx_check_func LINENO FUNC VAR
2018 # ------------------------------------
2019 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2020 ac_fn_cxx_check_func ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2032 #define $2 innocuous_$2
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $2 (); below.
2036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2037 <limits.h> exists even on freestanding compilers. */
2040 # include <limits.h>
2042 # include <assert.h>
2047 /* Override any GCC internal prototype to avoid an error.
2048 Use char because int might match the return type of a GCC
2049 builtin and then its argument prototype would still apply. */
2054 /* The GNU C library defines this for functions which it implements
2055 to always fail with ENOSYS. Some functions are actually named
2056 something starting with __ and the normal name is an alias. */
2057 #if defined __stub_$2 || defined __stub___$2
2069 if ac_fn_cxx_try_link "$LINENO"; then :
2074 rm -f core conftest.err conftest.$ac_objext \
2075 conftest$ac_exeext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_cxx_check_func
2083 cat >config.log <<_ACEOF
2084 This file contains any messages produced by compilers while
2085 running configure, to aid debugging if configure makes a mistake.
2087 It was created by smartmontools $as_me 6.6, which was
2088 generated by GNU Autoconf 2.69. Invocation command line was
2100 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2101 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2102 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2103 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2104 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2106 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2107 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2109 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2110 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2111 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2112 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2113 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2114 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2115 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 $as_echo "PATH: $as_dir"
2140 # Keep a trace of the command line.
2141 # Strip out --no-create and --no-recursion so they do not pile up.
2142 # Strip out --silent because we don't want to record it for future runs.
2143 # Also quote any args containing shell meta-characters.
2144 # Make two passes to allow for proper duplicate-argument suppression.
2148 ac_must_keep_next=false
2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2156 | -silent | --silent | --silen | --sile | --sil)
2159 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164 as_fn_append ac_configure_args1 " '$ac_arg'"
2165 if test $ac_must_keep_next = true; then
2166 ac_must_keep_next=false # Got value, back to normal.
2169 *=* | --config-cache | -C | -disable-* | --disable-* \
2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2172 | -with-* | --with-* | -without-* | --without-* | --x)
2173 case "$ac_configure_args0 " in
2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2177 -* ) ac_must_keep_next=true ;;
2180 as_fn_append ac_configure_args " '$ac_arg'"
2185 { ac_configure_args0=; unset ac_configure_args0;}
2186 { ac_configure_args1=; unset ac_configure_args1;}
2188 # When interrupted or exit'd, cleanup temporary files, and complete
2189 # config.log. We remove comments because anyway the quotes in there
2190 # would cause problems or look ugly.
2191 # WARNING: Use '\'' to represent an apostrophe within the trap.
2192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2193 trap 'exit_status=$?
2194 # Save into config.log some information that might help in debugging.
2198 $as_echo "## ---------------- ##
2199 ## Cache variables. ##
2200 ## ---------------- ##"
2202 # The following way of writing the cache mishandles newlines in values,
2204 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2205 eval ac_val=\$$ac_var
2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2213 _ | IFS | as_nl) ;; #(
2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2215 *) { eval $ac_var=; unset $ac_var;} ;;
2220 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2221 *${as_nl}ac_space=\ *)
2223 "s/'\''/'\''\\\\'\'''\''/g;
2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2234 $as_echo "## ----------------- ##
2235 ## Output variables. ##
2236 ## ----------------- ##"
2238 for ac_var in $ac_subst_vars
2240 eval ac_val=\$$ac_var
2242 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244 $as_echo "$ac_var='\''$ac_val'\''"
2248 if test -n "$ac_subst_files"; then
2249 $as_echo "## ------------------- ##
2250 ## File substitutions. ##
2251 ## ------------------- ##"
2253 for ac_var in $ac_subst_files
2255 eval ac_val=\$$ac_var
2257 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 $as_echo "$ac_var='\''$ac_val'\''"
2264 if test -s confdefs.h; then
2265 $as_echo "## ----------- ##
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2321 if test -n "$CONFIG_SITE"; then
2322 # We do not want a PATH search for config.site.
2323 case $CONFIG_SITE in #((
2324 -*) ac_site_file1=./$CONFIG_SITE;;
2325 */*) ac_site_file1=$CONFIG_SITE;;
2326 *) ac_site_file1=./$CONFIG_SITE;;
2328 elif test "x$prefix" != xNONE; then
2329 ac_site_file1=$prefix/share/config.site
2330 ac_site_file2=$prefix/etc/config.site
2332 ac_site_file1=$ac_default_prefix/share/config.site
2333 ac_site_file2=$ac_default_prefix/etc/config.site
2335 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2337 test "x$ac_site_file" = xNONE && continue
2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2340 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2341 sed 's/^/| /' "$ac_site_file" >&5
2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345 as_fn_error $? "failed to load site
script $ac_site_file
2346 See \
`config.log' for more details" "$LINENO" 5; }
2350 if test -r "$cache_file"; then
2351 # Some versions of bash will fail to source /dev/null (special files
2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2355 $as_echo "$as_me: loading cache $cache_file" >&6;}
2357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2358 *) . "./$cache_file";;
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2363 $as_echo "$as_me: creating cache $cache_file" >&6;}
2367 # Check that the precious variables saved in the cache have kept the same
2369 ac_cache_corrupted=false
2370 for ac_var in $ac_precious_vars; do
2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372 eval ac_new_set=\$ac_env_${ac_var}_set
2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374 eval ac_new_val=\$ac_env_${ac_var}_value
2375 case $ac_old_set,$ac_new_set in
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2378 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379 ac_cache_corrupted=: ;;
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2382 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2386 if test "x$ac_old_val" != "x$ac_new_val"; then
2387 # differences in whitespace do not lead to failure.
2388 ac_old_val_w=`echo x
$ac_old_val`
2389 ac_new_val_w=`echo x
$ac_new_val`
2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2392 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2393 ac_cache_corrupted=:
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2396 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2397 eval $ac_var=\$ac_old_val
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2400 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2402 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2405 # Pass precious variables to config.status.
2406 if test "$ac_new_set" = set; then
2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2409 *) ac_arg=$ac_var=$ac_new_val ;;
2411 case " $ac_configure_args " in
2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2417 if $ac_cache_corrupted; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2421 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2424 ## -------------------- ##
2425 ## Main body of script. ##
2426 ## -------------------- ##
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 am__api_version='1.15'
2438 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2439 if test -f "$ac_dir/install-sh"; then
2441 ac_install_sh="$ac_aux_dir/install-sh -c"
2443 elif test -f "$ac_dir/install.sh"; then
2445 ac_install_sh="$ac_aux_dir/install.sh -c"
2447 elif test -f "$ac_dir/shtool"; then
2449 ac_install_sh="$ac_aux_dir/shtool install -c"
2453 if test -z "$ac_aux_dir"; then
2454 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2457 # These three variables are undocumented and unsupported,
2458 # and are intended to be withdrawn in a future Autoconf release.
2459 # They can cause serious problems if a builder's source tree is in a directory
2460 # whose full name contains unusual characters.
2461 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2462 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2463 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2466 # Find a good install program. We prefer a C program (faster),
2467 # so one script is as good as another. But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2473 # AmigaOS /C/install, which installs bootblocks on floppy discs
2474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2477 # OS/2's system install, which has a completely different semantic
2478 # ./install, which can be erroneously created by make from ./install.sh.
2479 # Reject install programs that cannot install multiple files.
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2481 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2482 if test -z "$INSTALL"; then
2483 if ${ac_cv_path_install+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 # Account for people who put trailing slashes in PATH elements.
2492 case $as_dir/ in #((
2493 ./ | .// | /[cC]/* | \
2494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2495 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2498 # OSF1 and SCO ODT 3.0 have their own names for install.
2499 # Don't use installbsd from OSF since it installs stuff as root
2501 for ac_prog in ginstall scoinst install; do
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2504 if test $ac_prog = install &&
2505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # AIX install. It has an incompatible calling convention.
2508 elif test $ac_prog = install &&
2509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # program-specific install script used by HP pwplus--don't use.
2513 rm -rf conftest.one conftest.two conftest.dir
2514 echo one > conftest.one
2515 echo two > conftest.two
2517 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2518 test -s conftest.one && test -s conftest.two &&
2519 test -s conftest.dir/conftest.one &&
2520 test -s conftest.dir/conftest.two
2522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 rm -rf conftest.one conftest.two conftest.dir
2538 if test "${ac_cv_path_install+set}" = set; then
2539 INSTALL=$ac_cv_path_install
2541 # As a last resort, use the slow shell script. Don't cache a
2542 # value for INSTALL within a source directory, because that will
2543 # break other packages using the cache if that directory is
2544 # removed, or if the value is a relative name.
2545 INSTALL=$ac_install_sh
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2549 $as_echo "$INSTALL" >&6; }
2551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2552 # It thinks the first close brace ends the variable substitution.
2553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2560 $as_echo_n "checking whether build environment is sane... " >&6; }
2561 # Reject unsafe characters in $srcdir or the absolute working directory
2562 # name. Accept space and tab only in the latter.
2566 *[\\\"\#\$\&\'\`$am_lf]*)
2567 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2570 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2571 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2574 # Do 'set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2581 for am_try
in 1 2; do
2582 echo "timestamp, slept: $am_has_slept" > conftest.
file
2583 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2586 set X
`ls -t "$srcdir/configure" conftest.file`
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" "$LINENO" 5
2598 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2605 test "$2" = conftest.
file
2611 as_fn_error $?
"newly created file is older than distributed files!
2612 Check your system clock" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 # If we didn't sleep, we still need to ensure time stamps of config.status and
2617 # generated files are strictly newer.
2619 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2626 test "$program_prefix" != NONE
&&
2627 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2628 # Use a double $ so make ignores it.
2629 test "$program_suffix" != NONE
&&
2630 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2631 # Double any \ or $.
2632 # By default was `s,x,x', remove it if useless.
2633 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2634 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2639 if test x
"${MISSING+set}" != xset
; then
2642 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2644 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2647 # Use eval to expand $SHELL
2648 if eval "$MISSING --is-lightweight"; then
2649 am_missing_run
="$MISSING "
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2653 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2656 if test x
"${install_sh+set}" != xset
; then
2659 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2661 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2665 # Installed binaries are usually stripped using 'strip' when the user
2666 # run "make install-strip". However 'strip' might not be the right
2667 # tool to use in cross-compilation environments, therefore Automake
2668 # will honor the 'STRIP' environment variable to overrule this program.
2669 if test "$cross_compiling" != no
; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_STRIP+:} false
; then :
2676 $as_echo_n "(cached) " >&6
2678 if test -n "$STRIP"; then
2679 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir
=.
2686 for ac_exec_ext
in '' $ac_executable_extensions; do
2687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 STRIP
=$ac_cv_prog_STRIP
2699 if test -n "$STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701 $as_echo "$STRIP" >&6; }
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2709 if test -z "$ac_cv_prog_STRIP"; then
2711 # Extract the first word of "strip", so it can be a program name with args.
2712 set dummy strip
; ac_word
=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2716 $as_echo_n "(cached) " >&6
2718 if test -n "$ac_ct_STRIP"; then
2719 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir
=.
2726 for ac_exec_ext
in '' $ac_executable_extensions; do
2727 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_STRIP
="strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2739 if test -n "$ac_ct_STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741 $as_echo "$ac_ct_STRIP" >&6; }
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2747 if test "x$ac_ct_STRIP" = x
; then
2750 case $cross_compiling:$ac_tool_warned in
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754 ac_tool_warned
=yes ;;
2759 STRIP
="$ac_cv_prog_STRIP"
2763 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767 if test -z "$MKDIR_P"; then
2768 if ${ac_cv_path_mkdir+:} false
; then :
2769 $as_echo_n "(cached) " >&6
2771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2775 test -z "$as_dir" && as_dir
=.
2776 for ac_prog
in mkdir gmkdir
; do
2777 for ac_exec_ext
in '' $ac_executable_extensions; do
2778 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780 'mkdir (GNU coreutils) '* | \
2781 'mkdir (coreutils) '* | \
2782 'mkdir (fileutils) '4.1*)
2783 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2793 test -d .
/--version && rmdir .
/--version
2794 if test "${ac_cv_path_mkdir+set}" = set; then
2795 MKDIR_P
="$ac_cv_path_mkdir -p"
2797 # As a last resort, use the slow shell script. Don't cache a
2798 # value for MKDIR_P within a source directory, because that will
2799 # break other packages using the cache if that directory is
2800 # removed, or if the value is a relative name.
2801 MKDIR_P
="$ac_install_sh -d"
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805 $as_echo "$MKDIR_P" >&6; }
2807 for ac_prog
in gawk mawk nawk
awk
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy
$ac_prog; ac_word
=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_AWK+:} false
; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$AWK"; then
2817 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_AWK
="$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$AWK"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2839 $as_echo "$AWK" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2846 test -n "$AWK" && break
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2852 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2853 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2854 $as_echo_n "(cached) " >&6
2856 cat >conftest.
make <<\_ACEOF
2859 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2861 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2864 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2866 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2870 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 SET_MAKE
="MAKE=${MAKE-make}"
2880 rm -rf .tst
2>/dev
/null
2881 mkdir .tst
2>/dev
/null
2882 if test -d .tst
; then
2887 rmdir .tst
2>/dev
/null
2889 # Check whether --enable-silent-rules was given.
2890 if test "${enable_silent_rules+set}" = set; then :
2891 enableval
=$enable_silent_rules;
2894 case $enable_silent_rules in # (((
2895 yes) AM_DEFAULT_VERBOSITY
=0;;
2896 no
) AM_DEFAULT_VERBOSITY
=1;;
2897 *) AM_DEFAULT_VERBOSITY
=1;;
2899 am_make
=${MAKE-make}
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2901 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2902 if ${am_cv_make_support_nested_variables+:} false
; then :
2903 $as_echo_n "(cached) " >&6
2905 if $as_echo 'TRUE=$(BAR$(V))
2911 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2912 am_cv_make_support_nested_variables
=yes
2914 am_cv_make_support_nested_variables
=no
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2918 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2919 if test $am_cv_make_support_nested_variables = yes; then
2921 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2923 AM_V
=$AM_DEFAULT_VERBOSITY
2924 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2928 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2930 # is not polluted with repeated "-I."
2931 am__isrc
=' -I$(srcdir)'
2932 # test to see if srcdir already configured
2933 if test -f $srcdir/config.status
; then
2934 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2938 # test whether we have cygpath
2939 if test -z "$CYGPATH_W"; then
2940 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2941 CYGPATH_W
='cygpath -w'
2948 # Define the identity of the package.
2949 PACKAGE
='smartmontools'
2953 cat >>confdefs.h
<<_ACEOF
2954 #define PACKAGE "$PACKAGE"
2958 cat >>confdefs.h
<<_ACEOF
2959 #define VERSION "$VERSION"
2962 # Some tools Automake needs.
2964 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2967 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2970 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2973 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2976 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2978 # For better backward compatibility. To be removed once Automake 1.9.x
2979 # dies out for good. For more background, see:
2980 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2981 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2982 mkdir_p
='$(MKDIR_P)'
2984 # We need awk for the "check" target (and possibly the TAP driver). The
2985 # system "awk" is bad on some platforms.
2986 # Always define AMTAR for backward compatibility. Yes, it's still used
2987 # in the wild :-( We should find a proper way to deprecate it ...
2991 # We'll loop over all known methods to create a tar archive until one works.
2992 _am_tools
='gnutar pax cpio none'
2994 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3001 # POSIX will say in a future version that running "rm -f" with no argument
3002 # is OK; and we want to be able to make that assumption in our Makefile
3003 # recipes. So use an aggressive probe to check that the usage we want is
3004 # actually supported "in the wild" to an acceptable degree.
3005 # See automake bug#10828.
3006 # To make any issue more visible, cause the running configure to be aborted
3007 # by default if the 'rm' program in use doesn't match our expectations; the
3008 # user can still override this though.
3009 if rm -f && rm -fr && rm -rf; then : OK
; else
3013 Your 'rm' program seems unable to run without file operands specified
3014 on the command line, even when the '-f' option is present. This is contrary
3015 to the behaviour of most rm programs out there, and not conforming with
3016 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3018 Please tell bug-automake@gnu.org about your system, including the value
3019 of your $PATH and any error possibly output before this message. This
3020 can help us improve future automake versions.
3023 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3024 echo 'Configuration will proceed anyway, since you have set the' >&2
3025 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3029 Aborting the configuration process, to ensure you take notice of the issue.
3031 You can download and install GNU coreutils to get an 'rm' implementation
3032 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3034 If you want to complete the configuration process using your problematic
3035 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3036 to "yes", and re-run configure.
3039 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3044 smartmontools_cvs_tag
=`echo '$Id: configure.ac 4594 2017-11-05 15:21:35Z chrfranke $'`
3045 smartmontools_release_date
=2017-11-05
3046 smartmontools_release_time
="15:20:58 UTC"
3049 cat >>confdefs.h
<<_ACEOF
3050 #define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date"
3059 cat >>confdefs.h
<<_ACEOF
3060 #define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time"
3064 cat >>confdefs.h
<<_ACEOF
3065 #define CONFIG_H_CVSID "$smartmontools_cvs_tag"
3069 cat >>confdefs.h
<<_ACEOF
3070 #define PACKAGE_HOMEPAGE "http://www.smartmontools.org/"
3075 ac_config_headers
="$ac_config_headers config.h"
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3080 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3081 # Check whether --enable-maintainer-mode was given.
3082 if test "${enable_maintainer_mode+set}" = set; then :
3083 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3085 USE_MAINTAINER_MODE
=no
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3089 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3090 if test $USE_MAINTAINER_MODE = yes; then
3091 MAINTAINER_MODE_TRUE
=
3092 MAINTAINER_MODE_FALSE
='#'
3094 MAINTAINER_MODE_TRUE
='#'
3095 MAINTAINER_MODE_FALSE
=
3098 MAINT
=$MAINTAINER_MODE_TRUE
3103 ac_cpp
='$CXXCPP $CPPFLAGS'
3104 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3109 ac_cpp
='$CXXCPP $CPPFLAGS'
3110 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3113 if test -z "$CXX"; then
3114 if test -n "$CCC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CXX+:} false
; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$CXX"; then
3128 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir
=.
3135 for ac_exec_ext
in '' $ac_executable_extensions; do
3136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$CXX"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3150 $as_echo "$CXX" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3157 test -n "$CXX" && break
3160 if test -z "$CXX"; then
3162 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy
$ac_prog; ac_word
=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$ac_ct_CXX"; then
3172 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir
=.
3179 for ac_exec_ext
in '' $ac_executable_extensions; do
3180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3192 if test -n "$ac_ct_CXX"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3194 $as_echo "$ac_ct_CXX" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3201 test -n "$ac_ct_CXX" && break
3204 if test "x$ac_ct_CXX" = x
; then
3207 case $cross_compiling:$ac_tool_warned in
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned
=yes ;;
3219 # Provide some information about the compiler.
3220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3223 for ac_option
in --version -v -V -qversion; do
3224 { { ac_try
="$ac_compiler $ac_option >&5"
3226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233 if test -s conftest.err; then
3235 ... rest of stderr output deleted ...
3236 10q' conftest.err >conftest.er1
3237 cat conftest.er1 >&5
3239 rm -f conftest.er1 conftest.err
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3261 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3262 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3264 # The possible output files:
3265 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3268 for ac_file in $ac_files
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277 if { { ac_try="$ac_link_default"
3279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3280 *) ac_try_echo
=$ac_try;;
3282 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link_default") 2>&5
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3291 # so that the user can short-circuit this test for compilers unknown to
3293 for ac_file
in $ac_files ''
3295 test -f "$ac_file" ||
continue
3297 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3300 # We found the default executable, but exeext='' is most
3304 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3306 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 # We set ac_cv_exeext here because the later test for it is not
3309 # safe: cross compilers may not add the suffix if given an `-o'
3310 # argument, so we may need to know it at that point already.
3311 # Even if this section looks crufty: it has the advantage of
3318 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3323 if test -z "$ac_file"; then :
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.
$ac_ext >&5
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error
77 "C++ compiler cannot create executables
3332 See \`config.log' for more details" "$LINENO" 5; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3338 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3340 $as_echo "$ac_file" >&6; }
3341 ac_exeext
=$ac_cv_exeext
3343 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3344 ac_clean_files
=$ac_clean_files_save
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3346 $as_echo_n "checking for suffix of executables... " >&6; }
3347 if { { ac_try
="$ac_link"
3349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_link") 2>&5
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3359 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3360 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 for ac_file
in conftest.exe conftest conftest.
*; do
3363 test -f "$ac_file" ||
continue
3365 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3366 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details" "$LINENO" 5; }
3377 rm -f conftest conftest
$ac_cv_exeext
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379 $as_echo "$ac_cv_exeext" >&6; }
3381 rm -f conftest.
$ac_ext
3382 EXEEXT
=$ac_cv_exeext
3384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3390 FILE *f = fopen ("conftest.out", "w");
3391 return ferror (f) || fclose (f) != 0;
3397 ac_clean_files
="$ac_clean_files conftest.out"
3398 # Check that the compiler produces executables we can run. If not, either
3399 # the compiler is broken, or we cross compile.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401 $as_echo_n "checking whether we are cross compiling... " >&6; }
3402 if test "$cross_compiling" != yes; then
3403 { { ac_try
="$ac_link"
3405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }
3414 if { ac_try='./conftest$ac_cv_exeext'
3415 { { case "(($ac_try" in
3416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3417 *) ac_try_echo
=$ac_try;;
3419 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_try") 2>&5
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; }; then
3427 if test "$cross_compiling" = maybe
; then
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $?
"cannot run C++ compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details" "$LINENO" 5; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439 $as_echo "$cross_compiling" >&6; }
3441 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3442 ac_clean_files
=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444 $as_echo_n "checking for suffix of object files... " >&6; }
3445 if ${ac_cv_objext+:} false
; then :
3446 $as_echo_n "(cached) " >&6
3448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 rm -f conftest.o conftest.obj
3460 if { { ac_try
="$ac_compile"
3462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compile") 2>&5
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
3471 for ac_file in conftest.o conftest.obj conftest.*; do
3472 test -f "$ac_file" || continue;
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3486 See \
`config.log' for more details" "$LINENO" 5; }
3488 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491 $as_echo "$ac_cv_objext" >&6; }
3492 OBJEXT=$ac_cv_objext
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3495 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3496 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3497 $as_echo_n "(cached) " >&6
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3513 if ac_fn_cxx_try_compile "$LINENO"; then :
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3523 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3524 if test $ac_compiler_gnu = yes; then
3529 ac_test_CXXFLAGS=${CXXFLAGS+set}
3530 ac_save_CXXFLAGS=$CXXFLAGS
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3532 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3533 if ${ac_cv_prog_cxx_g+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3537 ac_cxx_werror_flag=yes
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3551 if ac_fn_cxx_try_compile "$LINENO"; then :
3552 ac_cv_prog_cxx_g=yes
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 if ac_fn_cxx_try_compile "$LINENO"; then :
3569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3582 if ac_fn_cxx_try_compile "$LINENO"; then :
3583 ac_cv_prog_cxx_g=yes
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3593 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3594 if test "$ac_test_CXXFLAGS" = set; then
3595 CXXFLAGS=$ac_save_CXXFLAGS
3596 elif test $ac_cv_prog_cxx_g = yes; then
3597 if test "$GXX" = yes; then
3603 if test "$GXX" = yes; then
3610 ac_cpp='$CXXCPP $CPPFLAGS'
3611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3614 DEPDIR="${am__leading_dot}deps"
3616 ac_config_commands="$ac_config_commands depfiles"
3619 am_make=${MAKE-make}
3620 cat > confinc << 'END'
3622 @echo this is the am__doit target
3625 # If we don't find an include directive, just comment out the code.
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3627 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3631 # First try GNU make style include.
3632 echo "include confinc" > confmf
3633 # Ignore all kinds of additional output from 'make'.
3634 case `$am_make -s -f confmf
2> /dev
/null
` in #(
3635 *the\ am__doit\ target*)
3641 # Now try BSD make style include.
3642 if test "$am__include" = "#"; then
3643 echo '.include "confinc"' > confmf
3644 case `$am_make -s -f confmf
2> /dev
/null
` in #(
3645 *the\ am__doit\ target*)
3646 am__include=.include
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3655 $as_echo "$_am_result" >&6; }
3656 rm -f confinc confmf
3658 # Check whether --enable-dependency-tracking was given.
3659 if test "${enable_dependency_tracking+set}" = set; then :
3660 enableval=$enable_dependency_tracking;
3663 if test "x$enable_dependency_tracking" != xno; then
3664 am_depcomp="$ac_aux_dir/depcomp"
3668 if test "x$enable_dependency_tracking" != xno; then
3678 depcc="$CXX" am_compiler_list=
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3681 $as_echo_n "checking dependency style of $depcc... " >&6; }
3682 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3686 # We make a subdir and do the tests there. Otherwise we can end up
3687 # making bogus files that we don't know about and never remove. For
3688 # instance it was reported that on HP-UX the gcc test will end up
3689 # making a dummy file named 'D' -- because '-MD' means "put the output
3693 # Copy depcomp to subdir because otherwise we won't find it if we're
3694 # using a relative directory.
3695 cp "$am_depcomp" conftest.dir
3697 # We will build objects and dependencies in a subdirectory because
3698 # it helps to detect inapplicable dependency modes. For instance
3699 # both Tru64's cc and ICC support -MD to output dependencies as a
3700 # side effect of compilation, but ICC will put the dependencies in
3701 # the current directory while Tru64 will put them in the object
3705 am_cv_CXX_dependencies_compiler_type=none
3706 if test "$am_compiler_list" = ""; then
3707 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3710 case " $depcc " in #(
3711 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3714 for depmode in $am_compiler_list; do
3715 # Setup a source with many dependencies, because some compilers
3716 # like to wrap large dependency lists on column 80 (with \), and
3717 # we should not choose a depcomp mode which is confused by this.
3719 # We need to recreate these files for each test, as the compiler may
3720 # overwrite some of them when testing with obscure command lines.
3721 # This happens at least with the AIX C compiler.
3723 for i in 1 2 3 4 5 6; do
3724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3725 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3726 # Solaris 10 /bin/sh.
3727 echo '/* dummy */' > sub/conftst$i.h
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3731 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3732 # mode. It turns out that the SunPro C++ compiler does not properly
3733 # handle '-M -o', and we need to detect this. Also, some Intel
3734 # versions had trouble with output in subdirs.
3735 am__obj=sub/conftest.${OBJEXT-o}
3736 am__minus_obj="-o $am__obj"
3739 # This depmode causes a compiler race in universal mode.
3740 test "$am__universal" = false || continue
3743 # After this tag, mechanisms are not by side-effect, so they'll
3744 # only be used when explicitly requested.
3745 if test "x$enable_dependency_tracking" = xyes; then
3751 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3752 # This compiler won't grok '-c -o', but also, the minuso test has
3753 # not run yet. These depmodes are late enough in the game, and
3754 # so weak that their functioning should not be impacted.
3755 am__obj=conftest.${OBJEXT-o}
3760 if depmode=$depmode \
3761 source=sub/conftest.c object=$am__obj \
3762 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3763 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3764 >/dev/null 2>conftest.err &&
3765 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3767 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3769 # icc doesn't choke on unknown options, it will just issue warnings
3770 # or remarks (even with -Werror). So we grep stderr for any message
3771 # that says an option was ignored or not supported.
3772 # When given -MP, icc 7.0 and 7.1 complain thusly:
3773 # icc: Command line warning: ignoring option '-M'; no argument required
3774 # The diagnosis changed in icc 8.0:
3775 # icc: Command line remark: option '-MP' not supported
3776 if (grep 'ignoring option' conftest.err ||
3777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3778 am_cv_CXX_dependencies_compiler_type=$depmode
3787 am_cv_CXX_dependencies_compiler_type=none
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3792 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3793 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3796 test "x$enable_dependency_tracking" != xno \
3797 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3798 am__fastdepCXX_TRUE=
3799 am__fastdepCXX_FALSE='#'
3801 am__fastdepCXX_TRUE='#'
3802 am__fastdepCXX_FALSE=
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$CC"; then
3820 ac_cv_prog_CC="$CC" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test -n "$CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3850 if test -z "$ac_cv_prog_CC"; then
3852 # Extract the first word of "gcc", so it can be a program name with args.
3853 set dummy gcc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_ac_ct_CC="gcc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 $as_echo "$ac_ct_CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3888 if test "x$ac_ct_CC" = x; then
3891 case $cross_compiling:$ac_tool_warned in
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3903 if test -z "$CC"; then
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3906 set dummy ${ac_tool_prefix}cc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_CC+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_CC="${ac_tool_prefix}cc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3944 if test -z "$CC"; then
3945 # Extract the first word of "cc", so it can be a program name with args.
3946 set dummy cc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3964 ac_prog_rejected=yes
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 if test $ac_prog_rejected = yes; then
3976 # We found a bogon in the path, so make sure we never use it.
3977 set dummy $ac_cv_prog_CC
3979 if test $# != 0; then
3980 # We chose a different compiler from the bogus one.
3981 # However, it has the same basename, so the bogon will be chosen
3982 # first if we set CC to just the basename; use the full file name.
3984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3990 if test -n "$CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992 $as_echo "$CC" >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
4000 if test -z "$CC"; then
4001 if test -n "$ac_tool_prefix"; then
4002 for ac_prog in cl.exe
4004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_CC+:} false; then :
4009 $as_echo_n "(cached) " >&6
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4041 test -n "$CC" && break
4044 if test -z "$CC"; then
4046 for ac_prog in cl.exe
4048 # Extract the first word of "$ac_prog", so it can be a program name with args.
4049 set dummy $ac_prog; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 if test -n "$ac_ct_CC"; then
4056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_ac_ct_CC="$ac_prog"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4076 if test -n "$ac_ct_CC"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4078 $as_echo "$ac_ct_CC" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4085 test -n "$ac_ct_CC" && break
4088 if test "x$ac_ct_CC" = x; then
4091 case $cross_compiling:$ac_tool_warned in
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4104 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4107 See \
`config.log' for more details" "$LINENO" 5; }
4109 # Provide some information about the compiler.
4110 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4113 for ac_option in --version -v -V -qversion; do
4114 { { ac_try="$ac_compiler $ac_option >&5"
4116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4117 *) ac_try_echo
=$ac_try;;
4119 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4123 if test -s conftest.err
; then
4125 ... rest of stderr output deleted ...
4126 10q' conftest.err
>conftest.er1
4127 cat conftest.er1
>&5
4129 rm -f conftest.er1 conftest.err
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136 if ${ac_cv_c_compiler_gnu+:} false
; then :
4137 $as_echo_n "(cached) " >&6
4139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4153 if ac_fn_c_try_compile
"$LINENO"; then :
4158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4159 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164 if test $ac_compiler_gnu = yes; then
4169 ac_test_CFLAGS
=${CFLAGS+set}
4170 ac_save_CFLAGS
=$CFLAGS
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4173 if ${ac_cv_prog_cc_g+:} false
; then :
4174 $as_echo_n "(cached) " >&6
4176 ac_save_c_werror_flag
=$ac_c_werror_flag
4177 ac_c_werror_flag
=yes
4180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4191 if ac_fn_c_try_compile
"$LINENO"; then :
4195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 if ac_fn_c_try_compile
"$LINENO"; then :
4209 ac_c_werror_flag
=$ac_save_c_werror_flag
4211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4222 if ac_fn_c_try_compile
"$LINENO"; then :
4225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4230 ac_c_werror_flag
=$ac_save_c_werror_flag
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233 $as_echo "$ac_cv_prog_cc_g" >&6; }
4234 if test "$ac_test_CFLAGS" = set; then
4235 CFLAGS
=$ac_save_CFLAGS
4236 elif test $ac_cv_prog_cc_g = yes; then
4237 if test "$GCC" = yes; then
4243 if test "$GCC" = yes; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251 if ${ac_cv_prog_cc_c89+:} false
; then :
4252 $as_echo_n "(cached) " >&6
4254 ac_cv_prog_cc_c89
=no
4256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4262 struct buf { int x; };
4263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4264 static char *e (p, i)
4270 static char *f (char * (*g) (char **, int), char **p, ...)
4275 s = g (p, va_arg (v,int));
4280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4281 function prototypes and stuff, but not '\xHH' hex character constants.
4282 These don't provoke an error unfortunately, instead are silently treated
4283 as 'x'. The following induces an error, until -std is added to get
4284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4285 array size at least. It's necessary to write '\x00'==0 to get something
4286 that's true only with -std. */
4287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4290 inside strings and character constants. */
4292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4294 int test (int i, double x);
4295 struct s1 {int (*f) (int a);};
4296 struct s2 {int (*f) (double a);};
4297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4308 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311 CC
="$ac_save_CC $ac_arg"
4312 if ac_fn_c_try_compile
"$LINENO"; then :
4313 ac_cv_prog_cc_c89
=$ac_arg
4315 rm -f core conftest.err conftest.
$ac_objext
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
4318 rm -f conftest.
$ac_ext
4323 case "x$ac_cv_prog_cc_c89" in
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326 $as_echo "none needed" >&6; } ;;
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329 $as_echo "unsupported" >&6; } ;;
4331 CC
="$CC $ac_cv_prog_cc_c89"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4340 ac_cpp
='$CXXCPP $CPPFLAGS'
4341 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4346 ac_cpp
='$CPP $CPPFLAGS'
4347 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4351 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4352 if ${am_cv_prog_cc_c_o+:} false
; then :
4353 $as_echo_n "(cached) " >&6
4355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 # Make sure it works both with $CC and with simple cc.
4367 # Following AC_PROG_CC_C_O, we do the test twice because some
4368 # compilers refuse to overwrite an existing .o file with -o,
4369 # though they will create one.
4370 am_cv_prog_cc_c_o
=yes
4372 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4373 ($CC -c conftest.
$ac_ext -o conftest2.
$ac_objext) >&5 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } \
4377 && test -f conftest2.
$ac_objext; then
4380 am_cv_prog_cc_c_o
=no
4384 rm -f core conftest
*
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4388 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4389 if test "$am_cv_prog_cc_c_o" != yes; then
4390 # Losing compiler, so override with the script.
4391 # FIXME: It is wrong to rewrite CC.
4392 # But if we don't then we get into trouble of one sort or another.
4393 # A longer-term fix would be to have automake use am__CC in this case,
4394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4395 CC
="$am_aux_dir/compile $CC"
4398 ac_cpp
='$CXXCPP $CPPFLAGS'
4399 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4404 depcc
="$CC" am_compiler_list
=
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4407 $as_echo_n "checking dependency style of $depcc... " >&6; }
4408 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4409 $as_echo_n "(cached) " >&6
4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4412 # We make a subdir and do the tests there. Otherwise we can end up
4413 # making bogus files that we don't know about and never remove. For
4414 # instance it was reported that on HP-UX the gcc test will end up
4415 # making a dummy file named 'D' -- because '-MD' means "put the output
4419 # Copy depcomp to subdir because otherwise we won't find it if we're
4420 # using a relative directory.
4421 cp "$am_depcomp" conftest.dir
4423 # We will build objects and dependencies in a subdirectory because
4424 # it helps to detect inapplicable dependency modes. For instance
4425 # both Tru64's cc and ICC support -MD to output dependencies as a
4426 # side effect of compilation, but ICC will put the dependencies in
4427 # the current directory while Tru64 will put them in the object
4431 am_cv_CC_dependencies_compiler_type
=none
4432 if test "$am_compiler_list" = ""; then
4433 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4436 case " $depcc " in #(
4437 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4440 for depmode
in $am_compiler_list; do
4441 # Setup a source with many dependencies, because some compilers
4442 # like to wrap large dependency lists on column 80 (with \), and
4443 # we should not choose a depcomp mode which is confused by this.
4445 # We need to recreate these files for each test, as the compiler may
4446 # overwrite some of them when testing with obscure command lines.
4447 # This happens at least with the AIX C compiler.
4449 for i
in 1 2 3 4 5 6; do
4450 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4451 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4452 # Solaris 10 /bin/sh.
4453 echo '/* dummy */' > sub
/conftst
$i.h
4455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4457 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4458 # mode. It turns out that the SunPro C++ compiler does not properly
4459 # handle '-M -o', and we need to detect this. Also, some Intel
4460 # versions had trouble with output in subdirs.
4461 am__obj
=sub
/conftest.
${OBJEXT-o}
4462 am__minus_obj
="-o $am__obj"
4465 # This depmode causes a compiler race in universal mode.
4466 test "$am__universal" = false ||
continue
4469 # After this tag, mechanisms are not by side-effect, so they'll
4470 # only be used when explicitly requested.
4471 if test "x$enable_dependency_tracking" = xyes
; then
4477 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4478 # This compiler won't grok '-c -o', but also, the minuso test has
4479 # not run yet. These depmodes are late enough in the game, and
4480 # so weak that their functioning should not be impacted.
4481 am__obj
=conftest.
${OBJEXT-o}
4486 if depmode
=$depmode \
4487 source=sub
/conftest.c object
=$am__obj \
4488 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4489 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4490 >/dev
/null
2>conftest.err
&&
4491 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4492 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4493 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4494 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4495 # icc doesn't choke on unknown options, it will just issue warnings
4496 # or remarks (even with -Werror). So we grep stderr for any message
4497 # that says an option was ignored or not supported.
4498 # When given -MP, icc 7.0 and 7.1 complain thusly:
4499 # icc: Command line warning: ignoring option '-M'; no argument required
4500 # The diagnosis changed in icc 8.0:
4501 # icc: Command line remark: option '-MP' not supported
4502 if (grep 'ignoring option' conftest.err ||
4503 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4504 am_cv_CC_dependencies_compiler_type
=$depmode
4513 am_cv_CC_dependencies_compiler_type
=none
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4518 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4519 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4522 test "x$enable_dependency_tracking" != xno \
4523 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4525 am__fastdepCC_FALSE
='#'
4527 am__fastdepCC_TRUE
='#'
4528 am__fastdepCC_FALSE
=
4532 # By default we simply use the C compiler to build assembly code.
4534 test "${CCAS+set}" = set || CCAS
=$CC
4535 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4539 depcc
="$CCAS" am_compiler_list
=
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4542 $as_echo_n "checking dependency style of $depcc... " >&6; }
4543 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
4544 $as_echo_n "(cached) " >&6
4546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4547 # We make a subdir and do the tests there. Otherwise we can end up
4548 # making bogus files that we don't know about and never remove. For
4549 # instance it was reported that on HP-UX the gcc test will end up
4550 # making a dummy file named 'D' -- because '-MD' means "put the output
4554 # Copy depcomp to subdir because otherwise we won't find it if we're
4555 # using a relative directory.
4556 cp "$am_depcomp" conftest.dir
4558 # We will build objects and dependencies in a subdirectory because
4559 # it helps to detect inapplicable dependency modes. For instance
4560 # both Tru64's cc and ICC support -MD to output dependencies as a
4561 # side effect of compilation, but ICC will put the dependencies in
4562 # the current directory while Tru64 will put them in the object
4566 am_cv_CCAS_dependencies_compiler_type
=none
4567 if test "$am_compiler_list" = ""; then
4568 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4573 for depmode
in $am_compiler_list; do
4574 # Setup a source with many dependencies, because some compilers
4575 # like to wrap large dependency lists on column 80 (with \), and
4576 # we should not choose a depcomp mode which is confused by this.
4578 # We need to recreate these files for each test, as the compiler may
4579 # overwrite some of them when testing with obscure command lines.
4580 # This happens at least with the AIX C compiler.
4582 for i
in 1 2 3 4 5 6; do
4583 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4584 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4585 # Solaris 10 /bin/sh.
4586 echo '/* dummy */' > sub
/conftst
$i.h
4588 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4590 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4591 # mode. It turns out that the SunPro C++ compiler does not properly
4592 # handle '-M -o', and we need to detect this. Also, some Intel
4593 # versions had trouble with output in subdirs.
4594 am__obj
=sub
/conftest.
${OBJEXT-o}
4595 am__minus_obj
="-o $am__obj"
4598 # This depmode causes a compiler race in universal mode.
4599 test "$am__universal" = false ||
continue
4602 # After this tag, mechanisms are not by side-effect, so they'll
4603 # only be used when explicitly requested.
4604 if test "x$enable_dependency_tracking" = xyes
; then
4610 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4611 # This compiler won't grok '-c -o', but also, the minuso test has
4612 # not run yet. These depmodes are late enough in the game, and
4613 # so weak that their functioning should not be impacted.
4614 am__obj
=conftest.
${OBJEXT-o}
4619 if depmode
=$depmode \
4620 source=sub
/conftest.c object
=$am__obj \
4621 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4622 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4623 >/dev
/null
2>conftest.err
&&
4624 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4625 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4626 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4627 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4628 # icc doesn't choke on unknown options, it will just issue warnings
4629 # or remarks (even with -Werror). So we grep stderr for any message
4630 # that says an option was ignored or not supported.
4631 # When given -MP, icc 7.0 and 7.1 complain thusly:
4632 # icc: Command line warning: ignoring option '-M'; no argument required
4633 # The diagnosis changed in icc 8.0:
4634 # icc: Command line remark: option '-MP' not supported
4635 if (grep 'ignoring option' conftest.err ||
4636 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4637 am_cv_CCAS_dependencies_compiler_type
=$depmode
4646 am_cv_CCAS_dependencies_compiler_type
=none
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4651 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4652 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4655 test "x$enable_dependency_tracking" != xno \
4656 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4657 am__fastdepCCAS_TRUE
=
4658 am__fastdepCCAS_FALSE
='#'
4660 am__fastdepCCAS_TRUE
='#'
4661 am__fastdepCCAS_FALSE
=
4668 if test "$cross_compiling" = "no"; then
4676 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4677 if test -n "$ac_tool_prefix"; then
4678 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4679 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
4683 $as_echo_n "(cached) " >&6
4687 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir
=.
4695 for ac_exec_ext
in '' $ac_executable_extensions; do
4696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4709 if test -n "$PKG_CONFIG"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4711 $as_echo "$PKG_CONFIG" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4719 if test -z "$ac_cv_path_PKG_CONFIG"; then
4720 ac_pt_PKG_CONFIG
=$PKG_CONFIG
4721 # Extract the first word of "pkg-config", so it can be a program name with args.
4722 set dummy pkg-config
; ac_word
=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
4726 $as_echo_n "(cached) " >&6
4728 case $ac_pt_PKG_CONFIG in
4730 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir
=.
4738 for ac_exec_ext
in '' $ac_executable_extensions; do
4739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
4752 if test -n "$ac_pt_PKG_CONFIG"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4754 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4760 if test "x$ac_pt_PKG_CONFIG" = x
; then
4763 case $cross_compiling:$ac_tool_warned in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned
=yes ;;
4769 PKG_CONFIG
=$ac_pt_PKG_CONFIG
4772 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
4776 if test -n "$PKG_CONFIG"; then
4777 _pkg_min_version
=0.9.0
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4779 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4780 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782 $as_echo "yes" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4795 # Make sure we can run config.sub.
4796 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4797 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4800 $as_echo_n "checking build system type... " >&6; }
4801 if ${ac_cv_build+:} false
; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_build_alias
=$build_alias
4805 test "x$ac_build_alias" = x
&&
4806 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4807 test "x$ac_build_alias" = x
&&
4808 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4809 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4810 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4814 $as_echo "$ac_cv_build" >&6; }
4815 case $ac_cv_build in
4817 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4820 ac_save_IFS
=$IFS; IFS
='-'
4826 # Remember, the first character of IFS is used to create $*,
4827 # except with old shells:
4830 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4834 $as_echo_n "checking host system type... " >&6; }
4835 if ${ac_cv_host+:} false
; then :
4836 $as_echo_n "(cached) " >&6
4838 if test "x$host_alias" = x
; then
4839 ac_cv_host
=$ac_cv_build
4841 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4842 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4847 $as_echo "$ac_cv_host" >&6; }
4850 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4853 ac_save_IFS
=$IFS; IFS
='-'
4859 # Remember, the first character of IFS is used to create $*,
4860 # except with old shells:
4863 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4868 if test -n "$ac_tool_prefix"; then
4869 # Extract the first word of "${ac_tool_prefix}windmc", so it can be a program name with args.
4870 set dummy
${ac_tool_prefix}windmc
; ac_word
=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_WINDMC+:} false
; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$WINDMC"; then
4877 ac_cv_prog_WINDMC
="$WINDMC" # Let the user override the test.
4879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir
=.
4884 for ac_exec_ext
in '' $ac_executable_extensions; do
4885 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_prog_WINDMC
="${ac_tool_prefix}windmc"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 WINDMC
=$ac_cv_prog_WINDMC
4897 if test -n "$WINDMC"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
4899 $as_echo "$WINDMC" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4907 if test -z "$ac_cv_prog_WINDMC"; then
4908 ac_ct_WINDMC
=$WINDMC
4909 # Extract the first word of "windmc", so it can be a program name with args.
4910 set dummy windmc
; ac_word
=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_ac_ct_WINDMC+:} false
; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -n "$ac_ct_WINDMC"; then
4917 ac_cv_prog_ac_ct_WINDMC
="$ac_ct_WINDMC" # Let the user override the test.
4919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir
=.
4924 for ac_exec_ext
in '' $ac_executable_extensions; do
4925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_ac_ct_WINDMC
="windmc"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 ac_ct_WINDMC
=$ac_cv_prog_ac_ct_WINDMC
4937 if test -n "$ac_ct_WINDMC"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDMC" >&5
4939 $as_echo "$ac_ct_WINDMC" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4945 if test "x$ac_ct_WINDMC" = x
; then
4948 case $cross_compiling:$ac_tool_warned in
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952 ac_tool_warned
=yes ;;
4954 WINDMC
=$ac_ct_WINDMC
4957 WINDMC
="$ac_cv_prog_WINDMC"
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4962 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_WINDRES+:} false
; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$WINDRES"; then
4969 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
4971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir
=.
4976 for ac_exec_ext
in '' $ac_executable_extensions; do
4977 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 WINDRES
=$ac_cv_prog_WINDRES
4989 if test -n "$WINDRES"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4991 $as_echo "$WINDRES" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4999 if test -z "$ac_cv_prog_WINDRES"; then
5000 ac_ct_WINDRES
=$WINDRES
5001 # Extract the first word of "windres", so it can be a program name with args.
5002 set dummy windres
; ac_word
=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$ac_ct_WINDRES"; then
5009 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
5011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir
=.
5016 for ac_exec_ext
in '' $ac_executable_extensions; do
5017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_ac_ct_WINDRES
="windres"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
5029 if test -n "$ac_ct_WINDRES"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
5031 $as_echo "$ac_ct_WINDRES" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5037 if test "x$ac_ct_WINDRES" = x
; then
5040 case $cross_compiling:$ac_tool_warned in
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned
=yes ;;
5046 WINDRES
=$ac_ct_WINDRES
5049 WINDRES
="$ac_cv_prog_WINDRES"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makensis" >&5
5054 $as_echo_n "checking for makensis... " >&6; }
5055 if test -z "$MAKENSIS"; then
5056 if test -n "$PROGRAMFILES" && "$PROGRAMFILES/NSIS/makensis" -VERSION >/dev
/null
2>&1; then
5057 MAKENSIS
="$PROGRAMFILES/NSIS/makensis"
5058 elif makensis
-VERSION >/dev
/null
2>&1; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MAKENSIS:-no}" >&5
5063 $as_echo "${MAKENSIS:-no}" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a build from SVN" >&5
5069 $as_echo_n "checking whether this is a build from SVN... " >&6; }
5072 if test -f "$srcdir/.svn/wc.db"; then
5073 # SVN 1.7, 1.8 working copy
5074 svn_deps
='${srcdir}/.svn/wc.db'
5075 elif test -f "${srcdir}/.svn/entries"; then
5076 # SVN <= 1.6 working copy (SVN 1.7 has empty entries file)
5077 svn_deps
='${srcdir}/.svn/entries'
5079 if test -n "$svn_deps"; then
5080 is_svn_build
=unknown
5081 if (cd "$srcdir" && svn
--version && svnversion
&& svn info
) >/dev
/null
2>&1; then
5086 if test "$is_svn_build" = "yes"; then
5088 IS_SVN_BUILD_FALSE
='#'
5090 IS_SVN_BUILD_TRUE
='#'
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_svn_build" >&5
5095 $as_echo "$is_svn_build" >&6; }
5097 # Note: On Linux, clock_gettime() requires -lrt which implies -lpthreads
5098 # Check ommitted for now, gettimeofday() provides reasonable precision
5099 # AC_SEARCH_LIBS(clock_gettime, rt)
5103 ac_cpp
='$CXXCPP $CPPFLAGS'
5104 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5108 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5109 if test -z "$CXXCPP"; then
5110 if ${ac_cv_prog_CXXCPP+:} false
; then :
5111 $as_echo_n "(cached) " >&6
5113 # Double quotes because CXXCPP needs to be expanded
5114 for CXXCPP
in "$CXX -E" "/lib/cpp"
5117 for ac_cxx_preproc_warn_flag
in '' yes
5119 # Use a header file that comes with gcc, so configuring glibc
5120 # with a fresh cross-compiler works.
5121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5122 # <limits.h> exists even on freestanding compilers.
5123 # On the NeXT, cc -E runs the code through the compiler's parser,
5124 # not just through cpp. "Syntax error" is here to catch this case.
5125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5128 # include <limits.h>
5130 # include <assert.h>
5134 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5137 # Broken: fails on valid input.
5140 rm -f conftest.err conftest.i conftest.
$ac_ext
5142 # OK, works on sane cases. Now check whether nonexistent headers
5143 # can be detected and how.
5144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <ac_nonexistent.h>
5148 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5149 # Broken: success on invalid input.
5152 # Passes both tests.
5156 rm -f conftest.err conftest.i conftest.
$ac_ext
5159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5160 rm -f conftest.i conftest.err conftest.
$ac_ext
5161 if $ac_preproc_ok; then :
5166 ac_cv_prog_CXXCPP
=$CXXCPP
5169 CXXCPP
=$ac_cv_prog_CXXCPP
5171 ac_cv_prog_CXXCPP
=$CXXCPP
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5174 $as_echo "$CXXCPP" >&6; }
5176 for ac_cxx_preproc_warn_flag
in '' yes
5178 # Use a header file that comes with gcc, so configuring glibc
5179 # with a fresh cross-compiler works.
5180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 # <limits.h> exists even on freestanding compilers.
5182 # On the NeXT, cc -E runs the code through the compiler's parser,
5183 # not just through cpp. "Syntax error" is here to catch this case.
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5187 # include <limits.h>
5189 # include <assert.h>
5193 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5196 # Broken: fails on valid input.
5199 rm -f conftest.err conftest.i conftest.
$ac_ext
5201 # OK, works on sane cases. Now check whether nonexistent headers
5202 # can be detected and how.
5203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <ac_nonexistent.h>
5207 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5208 # Broken: success on invalid input.
5211 # Passes both tests.
5215 rm -f conftest.err conftest.i conftest.
$ac_ext
5218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219 rm -f conftest.i conftest.err conftest.
$ac_ext
5220 if $ac_preproc_ok; then :
5223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5225 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5226 See \`config.log' for more details" "$LINENO" 5; }
5230 ac_cpp
='$CXXCPP $CPPFLAGS'
5231 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5237 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5238 if ${ac_cv_path_GREP+:} false
; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -z "$GREP"; then
5242 ac_path_GREP_found
=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5245 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5248 test -z "$as_dir" && as_dir
=.
5249 for ac_prog
in grep ggrep
; do
5250 for ac_exec_ext
in '' $ac_executable_extensions; do
5251 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5252 as_fn_executable_p
"$ac_path_GREP" ||
continue
5253 # Check for GNU ac_path_GREP and select it if it is found.
5254 # Check for GNU $ac_path_GREP
5255 case `"$ac_path_GREP" --version 2>&1` in
5257 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5260 $as_echo_n 0123456789 >"conftest.in"
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo 'GREP' >> "conftest.nl"
5267 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5268 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5269 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5270 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_GREP
="$ac_path_GREP"
5273 ac_path_GREP_max
=$ac_count
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5278 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5281 $ac_path_GREP_found && break 3
5286 if test -z "$ac_cv_path_GREP"; then
5287 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290 ac_cv_path_GREP
=$GREP
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5295 $as_echo "$ac_cv_path_GREP" >&6; }
5296 GREP
="$ac_cv_path_GREP"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5300 $as_echo_n "checking for egrep... " >&6; }
5301 if ${ac_cv_path_EGREP+:} false
; then :
5302 $as_echo_n "(cached) " >&6
5304 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5305 then ac_cv_path_EGREP
="$GREP -E"
5307 if test -z "$EGREP"; then
5308 ac_path_EGREP_found
=false
5309 # Loop through the user's path and test for each of PROGNAME-LIST
5310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5311 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5314 test -z "$as_dir" && as_dir
=.
5315 for ac_prog
in egrep; do
5316 for ac_exec_ext
in '' $ac_executable_extensions; do
5317 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5318 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5319 # Check for GNU ac_path_EGREP and select it if it is found.
5320 # Check for GNU $ac_path_EGREP
5321 case `"$ac_path_EGREP" --version 2>&1` in
5323 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5326 $as_echo_n 0123456789 >"conftest.in"
5329 cat "conftest.in" "conftest.in" >"conftest.tmp"
5330 mv "conftest.tmp" "conftest.in"
5331 cp "conftest.in" "conftest.nl"
5332 $as_echo 'EGREP' >> "conftest.nl"
5333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5334 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5335 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5337 # Best one so far, save it but keep looking for a better one
5338 ac_cv_path_EGREP
="$ac_path_EGREP"
5339 ac_path_EGREP_max
=$ac_count
5341 # 10*(2^10) chars as input seems more than enough
5342 test $ac_count -gt 10 && break
5344 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5347 $ac_path_EGREP_found && break 3
5352 if test -z "$ac_cv_path_EGREP"; then
5353 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 ac_cv_path_EGREP
=$EGREP
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5362 $as_echo "$ac_cv_path_EGREP" >&6; }
5363 EGREP
="$ac_cv_path_EGREP"
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5367 $as_echo_n "checking for ANSI C header files... " >&6; }
5368 if ${ac_cv_header_stdc+:} false
; then :
5369 $as_echo_n "(cached) " >&6
5371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5386 if ac_fn_cxx_try_compile
"$LINENO"; then :
5387 ac_cv_header_stdc
=yes
5389 ac_cv_header_stdc
=no
5391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 if test $ac_cv_header_stdc = yes; then
5394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5401 $EGREP "memchr" >/dev
/null
2>&1; then :
5404 ac_cv_header_stdc
=no
5410 if test $ac_cv_header_stdc = yes; then
5411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "free" >/dev
/null
2>&1; then :
5421 ac_cv_header_stdc
=no
5427 if test $ac_cv_header_stdc = yes; then
5428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5429 if test "$cross_compiling" = yes; then :
5432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5436 #if ((' ' & 0x0FF) == 0x020)
5437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5440 # define ISLOWER(c) \
5441 (('a' <= (c) && (c) <= 'i') \
5442 || ('j' <= (c) && (c) <= 'r') \
5443 || ('s' <= (c) && (c) <= 'z'))
5444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5452 for (i = 0; i < 256; i++)
5453 if (XOR (islower (i), ISLOWER (i))
5454 || toupper (i) != TOUPPER (i))
5459 if ac_fn_cxx_try_run
"$LINENO"; then :
5462 ac_cv_header_stdc
=no
5464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5471 $as_echo "$ac_cv_header_stdc" >&6; }
5472 if test $ac_cv_header_stdc = yes; then
5474 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5478 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5479 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5480 inttypes.h stdint.h unistd.h
5482 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5485 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5486 cat >>confdefs.h
<<_ACEOF
5487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5495 for ac_header
in locale.h
5497 ac_fn_cxx_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5498 if test "x$ac_cv_header_locale_h" = xyes
; then :
5499 cat >>confdefs.h
<<_ACEOF
5500 #define HAVE_LOCALE_H 1
5507 for ac_header
in dev
/ata
/atavar.h
5509 ac_fn_cxx_check_header_mongrel
"$LINENO" "dev/ata/atavar.h" "ac_cv_header_dev_ata_atavar_h" "$ac_includes_default"
5510 if test "x$ac_cv_header_dev_ata_atavar_h" = xyes
; then :
5511 cat >>confdefs.h
<<_ACEOF
5512 #define HAVE_DEV_ATA_ATAVAR_H 1
5519 for ac_header
in inttypes.h
5521 ac_fn_cxx_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5522 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
5523 cat >>confdefs.h
<<_ACEOF
5524 #define HAVE_INTTYPES_H 1
5530 for ac_header
in stdint.h
5532 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5533 if test "x$ac_cv_header_stdint_h" = xyes
; then :
5534 cat >>confdefs.h
<<_ACEOF
5535 #define HAVE_STDINT_H 1
5541 for ac_header
in sys
/inttypes.h
5543 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
5544 if test "x$ac_cv_header_sys_inttypes_h" = xyes
; then :
5545 cat >>confdefs.h
<<_ACEOF
5546 #define HAVE_SYS_INTTYPES_H 1
5552 for ac_header
in sys
/int_types.h
5554 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
5555 if test "x$ac_cv_header_sys_int_types_h" = xyes
; then :
5556 cat >>confdefs.h
<<_ACEOF
5557 #define HAVE_SYS_INT_TYPES_H 1
5563 for ac_header
in sys
/tweio.h
5565 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/tweio.h" "ac_cv_header_sys_tweio_h" "$ac_includes_default"
5566 if test "x$ac_cv_header_sys_tweio_h" = xyes
; then :
5567 cat >>confdefs.h
<<_ACEOF
5568 #define HAVE_SYS_TWEIO_H 1
5575 for ac_header
in sys
/twereg.h
5577 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/twereg.h" "ac_cv_header_sys_twereg_h" "$ac_includes_default"
5578 if test "x$ac_cv_header_sys_twereg_h" = xyes
; then :
5579 cat >>confdefs.h
<<_ACEOF
5580 #define HAVE_SYS_TWEREG_H 1
5587 for ac_header
in sys
/tw_osl_ioctl.h
5589 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/tw_osl_ioctl.h" "ac_cv_header_sys_tw_osl_ioctl_h" "$ac_includes_default"
5590 if test "x$ac_cv_header_sys_tw_osl_ioctl_h" = xyes
; then :
5591 cat >>confdefs.h
<<_ACEOF
5592 #define HAVE_SYS_TW_OSL_IOCTL_H 1
5599 for ac_header
in linux
/compiler.h
5601 ac_fn_cxx_check_header_mongrel
"$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
5602 if test "x$ac_cv_header_linux_compiler_h" = xyes
; then :
5603 cat >>confdefs.h
<<_ACEOF
5604 #define HAVE_LINUX_COMPILER_H 1
5611 for ac_header
in dev
/ciss
/cissio.h
5613 ac_fn_cxx_check_header_mongrel
"$LINENO" "dev/ciss/cissio.h" "ac_cv_header_dev_ciss_cissio_h" "$ac_includes_default"
5614 if test "x$ac_cv_header_dev_ciss_cissio_h" = xyes
; then :
5615 cat >>confdefs.h
<<_ACEOF
5616 #define HAVE_DEV_CISS_CISSIO_H 1
5619 $as_echo "#define CISS_LOCATION <dev/ciss/cissio.h>" >>confdefs.h
5623 $as_echo "#define CISS_LOCATION \"cissio_freebsd.h\"" >>confdefs.h
5630 for ac_header
in linux
/cciss_ioctl.h
5632 ac_fn_cxx_check_header_compile
"$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default
5633 #ifdef HAVE_LINUX_COMPILER_H
5634 # include <linux/compiler.h>
5638 if test "x$ac_cv_header_linux_cciss_ioctl_h" = xyes
; then :
5639 cat >>confdefs.h
<<_ACEOF
5640 #define HAVE_LINUX_CCISS_IOCTL_H 1
5647 for ac_header
in ntdddisk.h
ddk
/ntdddisk.h
5649 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5650 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5651 #include <windows.h>
5654 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5655 cat >>confdefs.h
<<_ACEOF
5656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5663 for ac_header
in wbemcli.h
5665 ac_fn_cxx_check_header_mongrel
"$LINENO" "wbemcli.h" "ac_cv_header_wbemcli_h" "$ac_includes_default"
5666 if test "x$ac_cv_header_wbemcli_h" = xyes
; then :
5667 cat >>confdefs.h
<<_ACEOF
5668 #define HAVE_WBEMCLI_H 1
5676 ac_fn_cxx_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5677 if test "x$ac_cv_type_int64_t" = xyes
; then :
5679 cat >>confdefs.h
<<_ACEOF
5680 #define HAVE_INT64_T 1
5685 ac_fn_cxx_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5686 if test "x$ac_cv_type_uint64_t" = xyes
; then :
5688 cat >>confdefs.h
<<_ACEOF
5689 #define HAVE_UINT64_T 1
5696 for ac_func
in getopt_long
5698 ac_fn_cxx_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5699 if test "x$ac_cv_func_getopt_long" = xyes
; then :
5700 cat >>confdefs.h
<<_ACEOF
5701 #define HAVE_GETOPT_LONG 1
5705 need_getopt_long
=yes
5709 if test "$need_getopt_long" = "yes"; then
5710 NEED_GETOPT_LONG_TRUE
=
5711 NEED_GETOPT_LONG_FALSE
='#'
5713 NEED_GETOPT_LONG_TRUE
='#'
5714 NEED_GETOPT_LONG_FALSE
=
5717 for ac_func
in regcomp
5719 ac_fn_cxx_check_func
"$LINENO" "regcomp" "ac_cv_func_regcomp"
5720 if test "x$ac_cv_func_regcomp" = xyes
; then :
5721 cat >>confdefs.h
<<_ACEOF
5722 #define HAVE_REGCOMP 1
5730 if test "$need_regex" = "yes"; then
5732 NEED_REGEX_FALSE
='#'
5739 for ac_func
in sigset
5741 ac_fn_cxx_check_func
"$LINENO" "sigset" "ac_cv_func_sigset"
5742 if test "x$ac_cv_func_sigset" = xyes
; then :
5743 cat >>confdefs.h
<<_ACEOF
5744 #define HAVE_SIGSET 1
5750 for ac_func
in strtoull
5752 ac_fn_cxx_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
5753 if test "x$ac_cv_func_strtoull" = xyes
; then :
5754 cat >>confdefs.h
<<_ACEOF
5755 #define HAVE_STRTOULL 1
5761 for ac_func
in uname
5763 ac_fn_cxx_check_func
"$LINENO" "uname" "ac_cv_func_uname"
5764 if test "x$ac_cv_func_uname" = xyes
; then :
5765 cat >>confdefs.h
<<_ACEOF
5766 #define HAVE_UNAME 1
5772 for ac_func
in clock_gettime ftime gettimeofday
5774 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5775 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5776 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5777 cat >>confdefs.h
<<_ACEOF
5778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5785 # Check byte ordering (defines WORDS_BIGENDIAN)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5787 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5788 if ${ac_cv_c_bigendian+:} false
; then :
5789 $as_echo_n "(cached) " >&6
5791 ac_cv_c_bigendian
=unknown
5792 # See if we're dealing with a universal compiler.
5793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #ifndef __APPLE_CC__
5796 not a universal capable compiler
5801 if ac_fn_cxx_try_compile
"$LINENO"; then :
5803 # Check for potential -arch flags. It is not universal unless
5804 # there are at least two -arch flags with different values.
5807 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5808 if test -n "$ac_prev"; then
5810 i?
86 | x86_64 | ppc | ppc64
)
5811 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5814 ac_cv_c_bigendian
=universal
5820 elif test "x$ac_word" = "x-arch"; then
5825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5826 if test $ac_cv_c_bigendian = unknown
; then
5827 # See if sys/param.h defines the BYTE_ORDER macro.
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 #include <sys/param.h>
5836 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5837 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5846 if ac_fn_cxx_try_compile
"$LINENO"; then :
5847 # It does; now see whether it defined to BIG_ENDIAN or not.
5848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 #include <sys/param.h>
5856 #if BYTE_ORDER != BIG_ENDIAN
5864 if ac_fn_cxx_try_compile
"$LINENO"; then :
5865 ac_cv_c_bigendian
=yes
5867 ac_cv_c_bigendian
=no
5869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5873 if test $ac_cv_c_bigendian = unknown
; then
5874 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5882 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5890 if ac_fn_cxx_try_compile
"$LINENO"; then :
5891 # It does; now see whether it defined to _BIG_ENDIAN or not.
5892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5907 if ac_fn_cxx_try_compile
"$LINENO"; then :
5908 ac_cv_c_bigendian
=yes
5910 ac_cv_c_bigendian
=no
5912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5916 if test $ac_cv_c_bigendian = unknown
; then
5917 # Compile a test program.
5918 if test "$cross_compiling" = yes; then :
5919 # Try to guess by grepping values from an object file.
5920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922 short int ascii_mm[] =
5923 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5924 short int ascii_ii[] =
5925 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5926 int use_ascii (int i) {
5927 return ascii_mm[i] + ascii_ii[i];
5929 short int ebcdic_ii[] =
5930 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5931 short int ebcdic_mm[] =
5932 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5933 int use_ebcdic (int i) {
5934 return ebcdic_mm[i] + ebcdic_ii[i];
5941 return use_ascii (foo) == use_ebcdic (foo);
5946 if ac_fn_cxx_try_compile
"$LINENO"; then :
5947 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5948 ac_cv_c_bigendian
=yes
5950 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5951 if test "$ac_cv_c_bigendian" = unknown
; then
5952 ac_cv_c_bigendian
=no
5954 # finding both strings is unlikely to happen, but who knows?
5955 ac_cv_c_bigendian
=unknown
5959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 $ac_includes_default
5968 /* Are we little or big endian? From Harbison&Steele. */
5972 char c[sizeof (long int)];
5975 return u.c[sizeof (long int) - 1] == 1;
5981 if ac_fn_cxx_try_run
"$LINENO"; then :
5982 ac_cv_c_bigendian
=no
5984 ac_cv_c_bigendian
=yes
5986 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5987 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5993 $as_echo "$ac_cv_c_bigendian" >&6; }
5994 case $ac_cv_c_bigendian in #(
5996 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6002 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6006 as_fn_error $?
"unknown endianness
6007 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6011 # check for __attribute__((packed))
6012 # (sizeof() check is required to avoid false positives if other
6013 # __attribute__((x)) are supported)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __attribute__((packed))" >&5
6015 $as_echo_n "checking whether $CXX supports __attribute__((packed))... " >&6; }
6016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6023 struct s { char a; short b; } __attribute__((packed));
6024 typedef char t[sizeof(struct s) == 3 ? 1 : -1];
6029 if ac_fn_cxx_try_compile
"$LINENO"; then :
6030 gcc_have_attr_packed
=yes
6032 gcc_have_attr_packed
=no
6034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6036 if test "$gcc_have_attr_packed" = "yes"; then
6038 $as_echo "#define HAVE_ATTR_PACKED 1" >>confdefs.h
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_attr_packed" >&5
6042 $as_echo "$gcc_have_attr_packed" >&6; }
6049 # Check whether --with-systemdsystemunitdir was given.
6050 if test "${with_systemdsystemunitdir+set}" = set; then :
6051 withval
=$with_systemdsystemunitdir;
6053 with_systemdsystemunitdir
=auto
6057 systemdsystemunitdir
=
6058 case "$with_systemdsystemunitdir" in
6060 if test -n "$PKG_CONFIG"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemdsystemunitdir" >&5
6062 $as_echo_n "checking for systemdsystemunitdir... " >&6; }
6063 systemdsystemunitdir
=`$PKG_CONFIG --variable=systemdsystemunitdir systemd 2>/dev/null`
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdsystemunitdir:-no}" >&5
6065 $as_echo "${systemdsystemunitdir:-no}" >&6; }
6067 case "$with_systemdsystemunitdir:$sysconfdir:$systemdsystemunitdir" in
6068 yes:*:) as_fn_error $?
"Location of systemd service files not found" "$LINENO" 5 ;;
6069 yes:*:*|auto
:*:|auto
:/etc
:*) ;;
6070 *) systemdsystemunitdir
='${prefix}'$systemdsystemunitdir ;;
6073 *) systemdsystemunitdir
="$with_systemdsystemunitdir" ;;
6076 if test -n "$systemdsystemunitdir"; then
6077 INSTALL_SYSTEMDUNIT_TRUE
=
6078 INSTALL_SYSTEMDUNIT_FALSE
='#'
6080 INSTALL_SYSTEMDUNIT_TRUE
='#'
6081 INSTALL_SYSTEMDUNIT_FALSE
=
6086 # Check whether --with-systemdenvfile was given.
6087 if test "${with_systemdenvfile+set}" = set; then :
6088 withval
=$with_systemdenvfile;
6090 with_systemdenvfile
=auto
6095 case "$with_systemdenvfile:$cross_compiling:$systemdsystemunitdir" in
6096 auto
:no
:?
*|
yes:*:?
*)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path of systemd EnvironmentFile" >&5
6098 $as_echo_n "checking for path of systemd EnvironmentFile... " >&6; }
6099 for dir
in sysconfig default
; do
6100 if test -d /etc
/$dir; then
6101 systemdenvfile
='${sysconfdir}'/$dir/smartmontools
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdenvfile:-no}" >&5
6106 $as_echo "${systemdenvfile:-no}" >&6; }
6107 case "$with_systemdenvfile:$systemdenvfile" in
6108 yes:) as_fn_error $?
"Path of systemd EnvironmentFile not found" "$LINENO" 5 ;;
6111 *:*:) as_fn_error $?
"Location of systemd service files not found" "$LINENO" 5 ;;
6112 *) systemdenvfile
="$with_systemdenvfile"
6117 # Check whether --with-initscriptdir was given.
6118 if test "${with_initscriptdir+set}" = set; then :
6119 withval
=$with_initscriptdir;
6121 with_initscriptdir
=auto
6126 case "$with_initscriptdir:$cross_compiling:$systemdsystemunitdir" in
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init (rc) directory" >&5
6129 $as_echo_n "checking for init (rc) directory... " >&6; }
6130 for dir
in rc.d
/init.d init.d rc.d
; do
6131 if test -d /etc
/$dir; then
6132 initddir
='${sysconfdir}'/$dir
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${initddir:-no}" >&5
6137 $as_echo "${initddir:-no}" >&6; }
6138 case "$with_initscriptdir:$initddir" in
6139 yes:) as_fn_error $?
"Location of init scripts not found" "$LINENO" 5 ;;
6142 *) initddir
="$with_initscriptdir" ;;
6145 if test -n "$initddir"; then
6146 INSTALL_INITSCRIPT_TRUE
=
6147 INSTALL_INITSCRIPT_FALSE
='#'
6149 INSTALL_INITSCRIPT_TRUE
='#'
6150 INSTALL_INITSCRIPT_FALSE
=
6154 # use different init script templates for different OS
6157 initdfile
="smartd.freebsd.initd"
6160 initdfile
="com.smartmontools.smartd.plist"
6163 initdfile
="smartd.initd"
6169 # Check whether --with-exampledir was given.
6170 if test "${with_exampledir+set}" = set; then :
6171 withval
=$with_exampledir; exampledir
="$withval"
6173 exampledir
='${docdir}/examplescripts'
6178 drivedbdir
='${datadir}/${PACKAGE}'
6180 # Check whether --with-drivedbdir was given.
6181 if test "${with_drivedbdir+set}" = set; then :
6182 withval
=$with_drivedbdir; case "$withval" in yes) ;; no
) drivedbdir
= ;; *) drivedbdir
="$withval" ;; esac
6186 if test -n "$drivedbdir"; then
6187 ENABLE_DRIVEDB_TRUE
=
6188 ENABLE_DRIVEDB_FALSE
='#'
6190 ENABLE_DRIVEDB_TRUE
='#'
6191 ENABLE_DRIVEDB_FALSE
=
6195 drivedb_version
=$VERSION
6197 # Check whether --with-update-smart_drivedb was given.
6198 if test "${with_update_smart_drivedb+set}" = set; then :
6199 withval
=$with_update_smart_drivedb; case "$withval" in
6201 5.4[0-3]|
6.
[0-9]) drivedb_version
=$withval; with_update_smart_drivedb
=yes ;;
6202 *) as_fn_error $?
"Invalid drivedb branch version: $withval" "$LINENO" 5 ;;
6206 with_update_smart_drivedb
=yes
6209 test -n "$drivedbdir" || with_update_smart_drivedb
=no
6211 if test "$with_update_smart_drivedb" = "yes"; then
6212 ENABLE_UPDATE_SMART_DRIVEDB_TRUE
=
6213 ENABLE_UPDATE_SMART_DRIVEDB_FALSE
='#'
6215 ENABLE_UPDATE_SMART_DRIVEDB_TRUE
='#'
6216 ENABLE_UPDATE_SMART_DRIVEDB_FALSE
=
6221 # Also check for '--with-gnupg[=yes]' because 'yes' is a valid command with infinite output
6223 # Check whether --with-gnupg was given.
6224 if test "${with_gnupg+set}" = set; then :
6225 withval
=$with_gnupg; case "$withval" in yes) ;; no
) gnupg
= ;; *) gnupg
="$withval" ;; esac
6230 case "$with_update_smart_drivedb:$gnupg" in
6233 '--without-update-smart-drivedb' now requires '--without-gnupg'.
6234 NEWS: update-smart-drivedb now verifies the downloaded drivedb.h file with GnuPG." "$LINENO" 5
6239 # Check whether --with-smartdscriptdir was given.
6240 if test "${with_smartdscriptdir+set}" = set; then :
6241 withval
=$with_smartdscriptdir; smartdscriptdir
="$withval"
6243 smartdscriptdir
='${sysconfdir}'
6249 # Check whether --with-smartdplugindir was given.
6250 if test "${with_smartdplugindir+set}" = set; then :
6251 withval
=$with_smartdplugindir; smartdplugindir
=; test "$withval" != "no" && smartdplugindir
="$withval"
6253 smartdplugindir
='${smartdscriptdir}/smartd_warning.d'
6259 # Check whether --with-scriptpath was given.
6260 if test "${with_scriptpath+set}" = set; then :
6261 withval
=$with_scriptpath; scriptpath
=; test "$withval" != "no" && scriptpath
="$withval"
6263 scriptpath
="/usr/bin:/bin"
6267 if test -n "$scriptpath"; then
6268 ENABLE_SCRIPTPATH_TRUE
=
6269 ENABLE_SCRIPTPATH_FALSE
='#'
6271 ENABLE_SCRIPTPATH_TRUE
='#'
6272 ENABLE_SCRIPTPATH_FALSE
=
6278 # Check whether --with-savestates was given.
6279 if test "${with_savestates+set}" = set; then :
6280 withval
=$with_savestates; case "$withval" in yes) savestates
='${localstatedir}/lib/${PACKAGE}/smartd.' ;;
6281 no
) ;; *) savestates
="$withval" ;; esac
6284 savestatesdir
="${savestates%/*}"
6287 if test -n "$savestates"; then
6288 ENABLE_SAVESTATES_TRUE
=
6289 ENABLE_SAVESTATES_FALSE
='#'
6291 ENABLE_SAVESTATES_TRUE
='#'
6292 ENABLE_SAVESTATES_FALSE
=
6298 # Check whether --with-attributelog was given.
6299 if test "${with_attributelog+set}" = set; then :
6300 withval
=$with_attributelog; case "$withval" in yes) attributelog
='${localstatedir}/lib/${PACKAGE}/attrlog.' ;;
6301 no
) ;; *) attributelog
="$withval" ;; esac
6304 attributelogdir
="${attributelog%/*}"
6307 if test -n "$attributelog"; then
6308 ENABLE_ATTRIBUTELOG_TRUE
=
6309 ENABLE_ATTRIBUTELOG_FALSE
='#'
6311 ENABLE_ATTRIBUTELOG_TRUE
='#'
6312 ENABLE_ATTRIBUTELOG_FALSE
=
6316 # Check whether --enable-sample was given.
6317 if test "${enable_sample+set}" = set; then :
6318 enableval
=$enable_sample; smartd_suffix
=; test "$enableval" = "yes" && smartd_suffix
=".sample"
6326 # Check whether --with-os-deps was given.
6327 if test "${with_os_deps+set}" = set; then :
6328 withval
=$with_os_deps; for x
in $with_os_deps; do
6331 *) as_fn_error $?
"non-object file specified by --with-os-deps" "$LINENO" 5 ;;
6339 # Check whether --with-selinux was given.
6340 if test "${with_selinux+set}" = set; then :
6341 withval
=$with_selinux; if test "$withval" = "yes"; then
6342 for ac_header
in selinux
/selinux.h
6344 ac_fn_cxx_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
6345 if test "x$ac_cv_header_selinux_selinux_h" = xyes
; then :
6346 cat >>confdefs.h
<<_ACEOF
6347 #define HAVE_SELINUX_SELINUX_H 1
6351 as_fn_error $?
"Missing SELinux header files" "$LINENO" 5
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matchpathcon in -lselinux" >&5
6357 $as_echo_n "checking for matchpathcon in -lselinux... " >&6; }
6358 if ${ac_cv_lib_selinux_matchpathcon+:} false
; then :
6359 $as_echo_n "(cached) " >&6
6361 ac_check_lib_save_LIBS
=$LIBS
6362 LIBS
="-lselinux $LIBS"
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6366 /* Override any GCC internal prototype to avoid an error.
6367 Use char because int might match the return type of a GCC
6368 builtin and then its argument prototype would still apply. */
6372 char matchpathcon ();
6376 return matchpathcon ();
6381 if ac_fn_cxx_try_link
"$LINENO"; then :
6382 ac_cv_lib_selinux_matchpathcon
=yes
6384 ac_cv_lib_selinux_matchpathcon
=no
6386 rm -f core conftest.err conftest.
$ac_objext \
6387 conftest
$ac_exeext conftest.
$ac_ext
6388 LIBS
=$ac_check_lib_save_LIBS
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_matchpathcon" >&5
6391 $as_echo "$ac_cv_lib_selinux_matchpathcon" >&6; }
6392 if test "x$ac_cv_lib_selinux_matchpathcon" = xyes
; then :
6393 cat >>confdefs.h
<<_ACEOF
6394 #define HAVE_LIBSELINUX 1
6397 LIBS
="-lselinux $LIBS"
6400 as_fn_error $?
"Missing or incorrect SELinux library files" "$LINENO" 5
6408 if test "$with_selinux" = "yes"; then
6410 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
6415 # Check whether --with-libcap-ng was given.
6416 if test "${with_libcap_ng+set}" = set; then :
6417 withval
=$with_libcap_ng;
6424 if test "$with_libcap_ng" != "no"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_clear in -lcap-ng" >&5
6426 $as_echo_n "checking for capng_clear in -lcap-ng... " >&6; }
6427 if ${ac_cv_lib_cap_ng_capng_clear+:} false
; then :
6428 $as_echo_n "(cached) " >&6
6430 ac_check_lib_save_LIBS
=$LIBS
6431 LIBS
="-lcap-ng $LIBS"
6432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6435 /* Override any GCC internal prototype to avoid an error.
6436 Use char because int might match the return type of a GCC
6437 builtin and then its argument prototype would still apply. */
6441 char capng_clear ();
6445 return capng_clear ();
6450 if ac_fn_cxx_try_link
"$LINENO"; then :
6451 ac_cv_lib_cap_ng_capng_clear
=yes
6453 ac_cv_lib_cap_ng_capng_clear
=no
6455 rm -f core conftest.err conftest.
$ac_objext \
6456 conftest
$ac_exeext conftest.
$ac_ext
6457 LIBS
=$ac_check_lib_save_LIBS
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_clear" >&5
6460 $as_echo "$ac_cv_lib_cap_ng_capng_clear" >&6; }
6461 if test "x$ac_cv_lib_cap_ng_capng_clear" = xyes
; then :
6463 $as_echo "#define HAVE_LIBCAP_NG 1" >>confdefs.h
6464 CAPNG_LDADD
="-lcap-ng"; use_libcap_ng
=yes
6468 if test "$use_libcap_ng" = "yes"; then
6469 ac_fn_cxx_check_header_mongrel
"$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default"
6470 if test "x$ac_cv_header_cap_ng_h" = xyes
; then :
6473 as_fn_error $?
"libcap-ng libraries found but headers are missing" "$LINENO" 5
6477 elif test "$with_libcap_ng" = "yes"; then
6478 as_fn_error $?
"libcap-ng support was requested but the library was not found" "$LINENO" 5
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5
6483 $as_echo_n "checking whether to use libcap-ng... " >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libcap_ng" >&5
6486 $as_echo "$use_libcap_ng" >&6; }
6488 # TODO: Remove when NVMe support is no longer EXPERIMENTAL
6490 # Check whether --with-nvme-devicescan was given.
6491 if test "${with_nvme_devicescan+set}" = set; then :
6492 withval
=$with_nvme_devicescan;
6496 if test "$with_nvme_devicescan" = "yes"; then
6498 $as_echo "#define WITH_NVME_DEVICESCAN 1" >>confdefs.h
6503 # Check whether --with-solaris-sparc-ata was given.
6504 if test "${with_solaris_sparc_ata+set}" = set; then :
6505 withval
=$with_solaris_sparc_ata;
6509 case "$host:$with_solaris_sparc_ata" in
6510 sparc-
*-solaris*:yes)
6511 if test ! -f "$srcdir/os_solaris_ata.s"; then
6512 as_fn_error $?
"Missing source file: $srcdir/os_solaris_ata.s
6513 This file is no longer included in the source tarball but still
6514 available in the SVN repository." "$LINENO" 5
6517 $as_echo "#define WITH_SOLARIS_SPARC_ATA 1" >>confdefs.h
6522 # Assume broken snprintf only on Windows with MSVCRT (MinGW without ANSI stdio support)
6523 libc_have_working_snprintf
=yes
6527 case " $CPPFLAGS $CXXFLAGS" in
6528 *\
-[DU
]__USE_MINGW_ANSI_STDIO
*)
6531 # Older MinGW do not properly define PRI?64 if __USE_MINGW_ANSI_STDIO is set
6532 # Newer MinGW set __USE_MINGW_ANSI_STDIO in first C++ include which may be too late
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __USE_MINGW_ANSI_STDIO is defined by C++ includes" >&5
6534 $as_echo_n "checking whether __USE_MINGW_ANSI_STDIO is defined by C++ includes... " >&6; }
6535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6538 #undef __USE_MINGW_ANSI_STDIO
6540 #ifndef __USE_MINGW_ANSI_STDIO
6544 if ac_fn_cxx_try_cpp
"$LINENO"; then :
6545 CXXFLAGS
="-D__USE_MINGW_ANSI_STDIO $CXXFLAGS"
6547 libc_have_working_snprintf
=no
6549 rm -f conftest.err conftest.i conftest.
$ac_ext
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_have_working_snprintf" >&5
6551 $as_echo "$libc_have_working_snprintf" >&6; }
6557 # Check whether --with-working-snprintf was given.
6558 if test "${with_working_snprintf+set}" = set; then :
6559 withval
=$with_working_snprintf; libc_have_working_snprintf
=$withval
6563 if test "$libc_have_working_snprintf" = "yes"; then
6565 $as_echo "#define HAVE_WORKING_SNPRINTF 1" >>confdefs.h
6569 # Check whether --with-mingw-aslr was given.
6570 if test "${with_mingw_aslr+set}" = set; then :
6571 withval
=$with_mingw_aslr;
6573 with_mingw_aslr
=auto
6577 case "$host:${LDFLAGS+set}" in
6578 *-*-mingw*:) # MinGW defaults: link statically and indicate DEP and TS compatibility
6579 LDFLAGS
="-static -Wl,--nxcompat,--tsaware" ;;
6582 case "$host:$with_mingw_aslr" in
6583 x86_64-
*-mingw*:auto
)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports --high-entropy-va" >&5
6585 $as_echo_n "checking whether $CXX supports --high-entropy-va... " >&6; }
6586 save_LDFLAGS
=$LDFLAGS
6587 LDFLAGS
="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000"
6588 # Link libstdc++ to detect MinGW 6.3.0 problems with high --image-base
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6593 std::string s(42, '.');
6602 if ac_fn_cxx_try_link
"$LINENO"; then :
6607 rm -f core conftest.err conftest.
$ac_objext \
6608 conftest
$ac_exeext conftest.
$ac_ext
6609 LDFLAGS
=$save_LDFLAGS
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mingw_aslr" >&5
6611 $as_echo "$with_mingw_aslr" >&6; }
6612 test "$with_mingw_aslr" = "yes" || with_mingw_aslr
=low
6616 case "$host:$with_mingw_aslr" in
6617 x86_64-
*-mingw*:yes)
6618 LDFLAGS
="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000" ;;
6619 x86_64-
*-mingw*:low
)
6620 LDFLAGS
="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup" ;;
6621 *-*-mingw*:auto|
*-*-mingw*:yes|
*-*-mingw*:low
)
6622 LDFLAGS
="$LDFLAGS -pie -Wl,--dynamicbase,-e_mainCRTStartup" ;;
6628 # Newer MinGW may add a default manifest
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX adds an application manifest" >&5
6630 $as_echo_n "checking whether $CXX adds an application manifest... " >&6; }
6632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6643 if ac_fn_cxx_try_link
"$LINENO"; then :
6645 if "$WINDRES" -O rc conftest.exe
2>/dev
/null |
grep '^1.*RT_MANIFEST' >/dev
/null
2>&1; then
6646 cc_adds_manifest
=incomplete
6647 # Manifest must provide a Win 10 compatibility ID
6648 if "$WINDRES" -O rc conftest.exe
2>/dev
/null |
grep '{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}' >/dev
/null
2>&1; then
6649 cc_adds_manifest
=yes
6653 as_fn_error $?
"test compile failed" "$LINENO" 5
6655 rm -f core conftest.err conftest.
$ac_objext \
6656 conftest
$ac_exeext conftest.
$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_adds_manifest" >&5
6658 $as_echo "$cc_adds_manifest" >&6; }
6659 test "$cc_adds_manifest" = "yes" || os_win32_manifest
='os_win32/default.manifest'
6664 # Check whether --with-cxx11-option was given.
6665 if test "${with_cxx11_option+set}" = set; then :
6666 withval
=$with_cxx11_option;
6668 with_cxx11_option
=auto
6672 check_cxx11_support
()
6674 save_CXXFLAGS
=$CXXFLAGS
6676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6679 #if __cplusplus < 201103L
6682 // use some C++11 features (and return v * 42 :-)
6683 auto cxx11(long v) noexcept -> decltype(v) {
6684 typedef decltype(v) t; t r = v;
6685 static const t a[] = { -7, -1, 1, 2, 3 };
6686 static_assert(sizeof(r) == sizeof(a[0]), "fail");
6687 auto f = [](t x, t y){ return x * y; };
6688 for (const auto & e : a) r = f(r, e);
6699 if ac_fn_cxx_try_compile
"$LINENO"; then :
6700 CXXFLAGS
=$save_CXXFLAGS; return 0
6702 CXXFLAGS
=$save_CXXFLAGS; return 1
6704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6707 case "$with_cxx11_option" in
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to accept C++11" >&5
6711 $as_echo_n "checking for $CXX option to accept C++11... " >&6; }
6712 with_cxx11_option
=unknown
6713 for option
in "" "-std=gnu++11" "-std=gnu++0x" "-std=c++11" "-std=c++0x"; do
6714 if check_cxx11_support
"$option"; then with_cxx11_option
=$option; break; fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_cxx11_option:-none needed}" >&5
6717 $as_echo "${with_cxx11_option:-none needed}" >&6; }
6718 test "$with_cxx11_option" != "unknown" || as_fn_error $?
"
6719 This version of smartmontools does not use C++11 features, but future
6720 versions possibly will.
6721 This script was unable to determine a compiler option to enable C++11.
6722 Use option '--with-cxx11-option=OPTION' to specify the compiler option
6723 (it will be checked, but not used in the actual build).
6724 Use option '--without-cxx11-option' to suppress this error message if the
6725 compiler lacks C++11 support.
6726 In both cases, please send info about compiler and platform to
6727 $PACKAGE_BUGREPORT - Thanks!" "$LINENO" 5
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX $with_cxx11_option accepts C++11" >&5
6731 $as_echo_n "checking whether $CXX $with_cxx11_option accepts C++11... " >&6; }
6732 res
=no
; check_cxx11_support
"$with_cxx11_option" && res
=yes
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
6734 $as_echo "$res" >&6; }
6735 test "$res" = "yes" || as_fn_error $?
"$CXX $with_cxx11_option does not accept C++11" "$LINENO" 5
6740 releaseversion
='${PACKAGE}-${VERSION}'
6745 # Set platform-specific modules and symbols
6747 os_dltools
='curl wget lynx svn'
6749 os_hostname
="'hostname'"
6751 os_nisdomainname
="'domainname'"
6760 os_deps
='os_linux.o cciss.o dev_areca.o'
6761 os_dnsdomainname
="'dnsdomainname' 'hostname -d'"
6762 os_nisdomainname
="'nisdomainname' 'hostname -y' 'domainname'"
6765 *-*-freebsd*|
*-*-dragonfly*|
*-*-kfreebsd*-gnu*)
6766 os_deps
='os_freebsd.o cciss.o dev_areca.o'
6768 os_dltools
='curl wget lynx fetch svn'
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb20_dev_get_device_desc in -lusb" >&5
6770 $as_echo_n "checking for libusb20_dev_get_device_desc in -lusb... " >&6; }
6771 if ${ac_cv_lib_usb_libusb20_dev_get_device_desc+:} false
; then :
6772 $as_echo_n "(cached) " >&6
6774 ac_check_lib_save_LIBS
=$LIBS
6776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6779 /* Override any GCC internal prototype to avoid an error.
6780 Use char because int might match the return type of a GCC
6781 builtin and then its argument prototype would still apply. */
6785 char libusb20_dev_get_device_desc ();
6789 return libusb20_dev_get_device_desc ();
6794 if ac_fn_cxx_try_link
"$LINENO"; then :
6795 ac_cv_lib_usb_libusb20_dev_get_device_desc
=yes
6797 ac_cv_lib_usb_libusb20_dev_get_device_desc
=no
6799 rm -f core conftest.err conftest.
$ac_objext \
6800 conftest
$ac_exeext conftest.
$ac_ext
6801 LIBS
=$ac_check_lib_save_LIBS
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb20_dev_get_device_desc" >&5
6804 $as_echo "$ac_cv_lib_usb_libusb20_dev_get_device_desc" >&6; }
6805 if test "x$ac_cv_lib_usb_libusb20_dev_get_device_desc" = xyes
; then :
6806 cat >>confdefs.h
<<_ACEOF
6807 #define HAVE_LIBUSB 1
6814 os_man_filter
=FreeBSD
6817 os_deps
='os_solaris.o'
6818 test "$with_solaris_sparc_ata" = "yes" \
6819 && os_deps
="$os_deps os_solaris_ata.o"
6822 os_man_filter
=Solaris
6825 os_deps
='os_solaris.o'
6828 os_man_filter
=Solaris
6831 os_deps
='os_netbsd.o'
6833 os_man_filter
=NetBSD
6836 os_deps
='os_openbsd.o'
6838 os_dltools
='curl wget lynx ftp svn'
6839 os_man_filter
=OpenBSD
6842 os_deps
='os_win32.o dev_areca.o'
6844 os_hostname
="'hostname' 'echo "'"${HOSTNAME?unset}"'"'"
6845 os_dnsdomainname
="'dnsdomainname' 'hostname -d' 'echo "'"${USERDNSDOMAIN?unset}"'"'"
6848 os_man_filter
=Cygwin
6851 os_deps
='os_win32.o dev_areca.o'
6855 os_man_filter
=Windows
6858 os_deps
='os_win32.o dev_areca.o'
6861 os_man_filter
=Windows
6864 os_deps
='os_darwin.o'
6865 os_libs
='-framework CoreFoundation -framework IOKit'
6867 os_man_filter
=Darwin
6870 os_deps
='os_qnxnto.o'
6876 os_deps
='os_generic.o'
6880 # Replace if '--with-os-deps' was specified
6881 test -z "$with_os_deps" || os_deps
="$with_os_deps"
6883 # Check if we need adapter to old interface (dev_legacy.cpp)
6884 os_src
=`echo "${os_deps}"|sed -n 's,^\([^ .]*\)\.o.*$,\1.cpp,p'`
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${os_src} uses new interface" >&5
6886 $as_echo_n "checking whether ${os_src} uses new interface... " >&6; }
6887 if grep "smart_interface" "${srcdir}/${os_src}" >/dev
/null
2>&1; then
6888 os_new_interface
=yes
6891 os_deps
="${os_deps} dev_legacy.o"
6893 $as_echo "#define OLD_INTERFACE 1" >>confdefs.h
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_new_interface" >&5
6897 $as_echo "$os_new_interface" >&6; }
6909 # Create drivedb.h update branch name from version: 5.41[.X] -> RELEASE_5_41_DRIVEDB
6910 DRIVEDB_BRANCH
=`echo "$drivedb_version" | sed 's,^\([0-9]*\.[0-9]*\)\..*$,\1,' \
6911 | sed -n 's,^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$,RELEASE_\1_\2_DRIVEDB,p'`
6912 if test -z "$DRIVEDB_BRANCH"; then
6913 as_fn_error $?
"Unable to create DRIVEDB_BRANCH for version: $drivedb_version" "$LINENO" 5
6917 # Enable platform-specific makefile sections
6918 if test "$os_darwin" = "yes"; then
6926 if test "$os_solaris" = "yes"; then
6928 OS_SOLARIS_FALSE
='#'
6934 if test "$os_win32" = "yes"; then
6942 if test "$os_win32_mingw" = "yes"; then
6943 OS_WIN32_MINGW_TRUE
=
6944 OS_WIN32_MINGW_FALSE
='#'
6946 OS_WIN32_MINGW_TRUE
='#'
6947 OS_WIN32_MINGW_FALSE
=
6950 if test -n "$MAKENSIS"; then
6952 OS_WIN32_NSIS_FALSE
='#'
6954 OS_WIN32_NSIS_TRUE
='#'
6955 OS_WIN32_NSIS_FALSE
=
6958 if test "$os_win64" = "yes"; then
6967 if test "$GXX" = "yes"; then
6968 # Add -Wall and -W[extra] if its not already specified
6969 case " $CXXFLAGS " in
6971 *) CXXFLAGS
="$CXXFLAGS -Wall" ;;
6973 case " $CXXFLAGS " in
6974 *\
-W\
*|
*\
-Wextra\
*) ;;
6975 *) CXXFLAGS
="$CXXFLAGS -W" ;;
6977 # Add -Wformat=2 (GCC 3.0) -fstack-protector[-strong] (GCC 4.1[4.9]) if supported
6978 # and CXXFLAGS was not set in configure cmdline (TODO: -Wformat-signedness)
6979 case "${ac_test_CXXFLAGS+set}:$ac_test_CXXFLAGS" in
6981 for option
in "-Wformat=2" "-fstack-protector-strong" "-fstack-protector"; do
6982 case " $CXXFLAGS:$option" in *\
-fstack-p*:-fstack-p*) continue ;; esac
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6984 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6985 save_CXXFLAGS
=$CXXFLAGS
6986 CXXFLAGS
="$CXXFLAGS $option"
6987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6998 if ac_fn_cxx_try_compile
"$LINENO"; then :
7001 res
=no
; CXXFLAGS
=$save_CXXFLAGS
7003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
7005 $as_echo "$res" >&6; }
7010 # We are NOT using gcc, so enable host-specific compiler flags
7013 # Tell the Solaris/SPARC C++ compiler about packed ATA structures
7014 case " $CXXFLAGS" in
7016 *) CXXFLAGS
="-xmemalign=1i $CXXFLAGS" ;;
7021 # Turn on optimization if user has not explicitly set its value
7022 case " $CXXFLAGS" in
7024 *) CXXFLAGS
="-xO2 $CXXFLAGS" ;;
7026 # Suppress trivial warnings
7027 case " $CXXFLAGS" in
7029 *) CXXFLAGS
="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w,badargtype2w $CXXFLAGS" ;;
7035 cat >>confdefs.h
<<_ACEOF
7036 #define SMARTMONTOOLS_BUILD_HOST "${host}"
7042 ac_config_files
="$ac_config_files Makefile"
7044 cat >confcache
<<\_ACEOF
7045 # This file is a shell script that caches the results of configure
7046 # tests run on this system so they can be shared between configure
7047 # scripts and configure runs, see configure's option --config-cache.
7048 # It is not useful on other systems. If it contains results you don't
7049 # want to keep, you may remove or edit it.
7051 # config.status only pays attention to the cache file if you give it
7052 # the --recheck option to rerun configure.
7054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7060 # The following way of writing the cache mishandles newlines in values,
7061 # but we know of no workaround that is simple, portable, and efficient.
7062 # So, we kill variables containing newlines.
7063 # Ultrix sh set writes to stderr and can't be redirected directly,
7064 # and sets the high bit in the cache file unless we assign to the vars.
7066 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7067 eval ac_val
=\$
$ac_var
7071 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7075 _ | IFS | as_nl
) ;; #(
7076 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7077 *) { eval $ac_var=; unset $ac_var;} ;;
7083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7084 *${as_nl}ac_space
=\
*)
7085 # `set' does not quote correctly, so add quotes: double-quote
7086 # substitution turns \\\\ into \\, and sed turns \\ into \.
7089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7092 # `set' quotes correctly as required by POSIX, so do not add quotes.
7093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7106 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7107 if test -w "$cache_file"; then
7108 if test "x$cache_file" != "x/dev/null"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7110 $as_echo "$as_me: updating cache $cache_file" >&6;}
7111 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7112 cat confcache
>"$cache_file"
7114 case $cache_file in #(
7116 mv -f confcache
"$cache_file"$$
&&
7117 mv -f "$cache_file"$$
"$cache_file" ;; #(
7119 mv -f confcache
"$cache_file" ;;
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7125 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7130 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7131 # Let make expand exec_prefix.
7132 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7134 DEFS
=-DHAVE_CONFIG_H
7139 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7140 # 1. Remove the extension, and $U if already installed.
7141 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7142 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7144 # will be set to the directory where LIBOBJS objects are built.
7145 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7146 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7150 LTLIBOBJS
=$ac_ltlibobjs
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7154 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7155 if test -n "$am_sleep_pid"; then
7156 # Hide warnings about reused PIDs.
7157 wait $am_sleep_pid 2>/dev
/null
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7160 $as_echo "done" >&6; }
7161 if test -n "$EXEEXT"; then
7163 am__EXEEXT_FALSE
='#'
7169 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7170 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7173 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7174 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7177 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7178 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
7179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7181 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7182 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7185 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
7186 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
7187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7189 if test -z "${IS_SVN_BUILD_TRUE}" && test -z "${IS_SVN_BUILD_FALSE}"; then
7190 as_fn_error $?
"conditional \"IS_SVN_BUILD\" was never defined.
7191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7193 if test -z "${NEED_GETOPT_LONG_TRUE}" && test -z "${NEED_GETOPT_LONG_FALSE}"; then
7194 as_fn_error $?
"conditional \"NEED_GETOPT_LONG\" was never defined.
7195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7197 if test -z "${NEED_REGEX_TRUE}" && test -z "${NEED_REGEX_FALSE}"; then
7198 as_fn_error $?
"conditional \"NEED_REGEX\" was never defined.
7199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7202 if test -z "${INSTALL_SYSTEMDUNIT_TRUE}" && test -z "${INSTALL_SYSTEMDUNIT_FALSE}"; then
7203 as_fn_error $?
"conditional \"INSTALL_SYSTEMDUNIT\" was never defined.
7204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7206 if test -z "${INSTALL_INITSCRIPT_TRUE}" && test -z "${INSTALL_INITSCRIPT_FALSE}"; then
7207 as_fn_error $?
"conditional \"INSTALL_INITSCRIPT\" was never defined.
7208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7210 if test -z "${ENABLE_DRIVEDB_TRUE}" && test -z "${ENABLE_DRIVEDB_FALSE}"; then
7211 as_fn_error $?
"conditional \"ENABLE_DRIVEDB\" was never defined.
7212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7214 if test -z "${ENABLE_UPDATE_SMART_DRIVEDB_TRUE}" && test -z "${ENABLE_UPDATE_SMART_DRIVEDB_FALSE}"; then
7215 as_fn_error $?
"conditional \"ENABLE_UPDATE_SMART_DRIVEDB\" was never defined.
7216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7218 if test -z "${ENABLE_SCRIPTPATH_TRUE}" && test -z "${ENABLE_SCRIPTPATH_FALSE}"; then
7219 as_fn_error $?
"conditional \"ENABLE_SCRIPTPATH\" was never defined.
7220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7222 if test -z "${ENABLE_SAVESTATES_TRUE}" && test -z "${ENABLE_SAVESTATES_FALSE}"; then
7223 as_fn_error $?
"conditional \"ENABLE_SAVESTATES\" was never defined.
7224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7226 if test -z "${ENABLE_ATTRIBUTELOG_TRUE}" && test -z "${ENABLE_ATTRIBUTELOG_FALSE}"; then
7227 as_fn_error $?
"conditional \"ENABLE_ATTRIBUTELOG\" was never defined.
7228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7230 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
7231 as_fn_error $?
"conditional \"OS_DARWIN\" was never defined.
7232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7234 if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
7235 as_fn_error $?
"conditional \"OS_SOLARIS\" was never defined.
7236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7238 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
7239 as_fn_error $?
"conditional \"OS_WIN32\" was never defined.
7240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7242 if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
7243 as_fn_error $?
"conditional \"OS_WIN32_MINGW\" was never defined.
7244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7246 if test -z "${OS_WIN32_NSIS_TRUE}" && test -z "${OS_WIN32_NSIS_FALSE}"; then
7247 as_fn_error $?
"conditional \"OS_WIN32_NSIS\" was never defined.
7248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7250 if test -z "${OS_WIN64_TRUE}" && test -z "${OS_WIN64_FALSE}"; then
7251 as_fn_error $?
"conditional \"OS_WIN64\" was never defined.
7252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7255 : "${CONFIG_STATUS=./config.status}"
7257 ac_clean_files_save
=$ac_clean_files
7258 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7260 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7262 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7264 # Generated by $as_me.
7265 # Run this file to recreate the current configuration.
7266 # Compiler output produced by configure, useful for debugging
7267 # configure, is in config.log if it exists.
7273 SHELL=\${CONFIG_SHELL-$SHELL}
7276 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7277 ## -------------------- ##
7278 ## M4sh Initialization. ##
7279 ## -------------------- ##
7281 # Be more Bourne compatible
7282 DUALCASE
=1; export DUALCASE
# for MKS sh
7283 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7287 # is contrary to our usage. Disable this feature.
7288 alias -g '${1+"$@"}'='"$@"'
7289 setopt NO_GLOB_SUBST
7291 case `(set -o) 2>/dev/null` in #(
7303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7304 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7307 # Prefer a ksh shell builtin over an external printf program on Solaris,
7308 # but without wasting forks for bash or zsh.
7309 if test -z "$BASH_VERSION$ZSH_VERSION" \
7310 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7311 as_echo='print
-r --'
7312 as_echo_n='print
-rn --'
7313 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7314 as_echo='printf %s
\n'
7315 as_echo_n='printf %s
'
7317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7318 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7319 as_echo_n='/usr
/ucb
/echo -n'
7321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7322 as_echo_n_body='eval
7326 expr "X$arg" : "X\\(.*\\)$as_nl";
7327 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7329 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7331 export as_echo_n_body
7332 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7335 as_echo='sh
-c $as_echo_body as_echo
'
7338 # The user is always right.
7339 if test "${PATH_SEPARATOR+set}" != set; then
7341 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7342 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7349 # We need space, tab and new line, in precisely that order. Quoting is
7350 # there to prevent editors from complaining about space-tab.
7351 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7352 # splitting by setting IFS to empty value.)
7355 # Find who we are. Look in the path if we contain no directory separator.
7358 *[\\/]* ) as_myself=$0 ;;
7359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7370 # We did not find ourselves, most probably we were run as `sh COMMAND'
7371 # in which case we are not to be found in the path.
7372 if test "x$as_myself" = x
; then
7375 if test ! -f "$as_myself"; then
7376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7380 # Unset variables that we do not need and which cause bugs (e.g. in
7381 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7382 # suppresses any "Segmentation fault" message there. '((' could
7383 # trigger a bug in pdksh 5.2.14.
7384 for as_var
in BASH_ENV ENV MAIL MAILPATH
7385 do eval test x\
${$as_var+set} = xset \
7386 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7399 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7403 # ----------------------------------------
7404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7406 # script with STATUS, using 1 if that was 0.
7409 as_status
=$1; test $as_status -eq 0 && as_status
=1
7411 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7414 $as_echo "$as_me: error: $2" >&2
7415 as_fn_exit
$as_status
7419 # as_fn_set_status STATUS
7420 # -----------------------
7421 # Set $? to STATUS, without forking.
7425 } # as_fn_set_status
7429 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7439 # Portably unset VAR.
7442 { eval $1=; unset $1;}
7444 as_unset
=as_fn_unset
7445 # as_fn_append VAR VALUE
7446 # ----------------------
7447 # Append the text in VALUE to the end of the definition contained in VAR. Take
7448 # advantage of any shell optimizations that allow amortized linear growth over
7449 # repeated appends, instead of the typical quadratic growth present in naive
7451 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7452 eval 'as_fn_append ()
7463 # as_fn_arith ARG...
7464 # ------------------
7465 # Perform arithmetic evaluation on the ARGs, and store the result in the
7466 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7467 # must be portable across $(()) and expr.
7468 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7469 eval 'as_fn_arith ()
7476 as_val
=`expr "$@" || test $? -eq 1`
7481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7488 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7489 as_basename
=basename
7494 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7500 as_me
=`$as_basename -- "$0" ||
7501 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7502 X"$0" : 'X\(//\)$' \| \
7503 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7505 sed '/^.*\/\([^/][^/]*\)\/*$/{
7519 # Avoid depending upon Character Ranges.
7520 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7521 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7522 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7523 as_cr_digits
='0123456789'
7524 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7526 ECHO_C
= ECHO_N
= ECHO_T
=
7527 case `echo -n x` in #(((((
7529 case `echo 'xy\c'` in
7530 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7532 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7539 rm -f conf$$ conf$$.exe conf$$.
file
7540 if test -d conf$$.dir
; then
7541 rm -f conf$$.dir
/conf$$.
file
7544 mkdir conf$$.dir
2>/dev
/null
7546 if (echo >conf$$.
file) 2>/dev
/null
; then
7547 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7549 # ... but there are two gotchas:
7550 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7551 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7552 # In both cases, we have to default to `cp -pR'.
7553 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7555 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7563 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7564 rmdir conf$$.dir
2>/dev
/null
7569 # Create "$as_dir" as a directory, including parents if necessary.
7574 -*) as_dir
=.
/$as_dir;;
7576 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7580 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7581 *) as_qdir
=$as_dir;;
7583 as_dirs
="'$as_qdir' $as_dirs"
7584 as_dir
=`$as_dirname -- "$as_dir" ||
7585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586 X"$as_dir" : 'X\(//\)[^/]' \| \
7587 X"$as_dir" : 'X\(//\)$' \| \
7588 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7589 $as_echo X"$as_dir" |
7590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7607 test -d "$as_dir" && break
7609 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7610 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7614 if mkdir
-p .
2>/dev
/null
; then
7615 as_mkdir_p
='mkdir -p "$as_dir"'
7617 test -d .
/-p && rmdir .
/-p
7622 # as_fn_executable_p FILE
7623 # -----------------------
7624 # Test if FILE is an executable regular file.
7625 as_fn_executable_p
()
7627 test -f "$1" && test -x "$1"
7628 } # as_fn_executable_p
7630 as_executable_p
=as_fn_executable_p
7632 # Sed expression to map a string onto a valid CPP name.
7633 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7635 # Sed expression to map a string onto a valid variable name.
7636 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7640 ## ----------------------------------- ##
7641 ## Main body of $CONFIG_STATUS script. ##
7642 ## ----------------------------------- ##
7644 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7647 # Save the log message, to keep $0 and so on meaningful, and to
7648 # report actual input values of CONFIG_FILES etc. instead of their
7649 # values after options handling.
7651 This file was extended by smartmontools $as_me 6.6, which was
7652 generated by GNU Autoconf 2.69. Invocation command line was
7654 CONFIG_FILES = $CONFIG_FILES
7655 CONFIG_HEADERS = $CONFIG_HEADERS
7656 CONFIG_LINKS = $CONFIG_LINKS
7657 CONFIG_COMMANDS = $CONFIG_COMMANDS
7660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7665 case $ac_config_files in *"
7666 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7669 case $ac_config_headers in *"
7670 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7675 # Files that config.status was made for.
7676 config_files="$ac_config_files"
7677 config_headers="$ac_config_headers"
7678 config_commands="$ac_config_commands"
7682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7684 \`$as_me' instantiates files and other configuration actions
7685 from templates according to the current configuration. Unless the files
7686 and actions are specified as TAGs, all are instantiated by default.
7688 Usage: $0 [OPTION]... [TAG]...
7690 -h, --help print this help, then exit
7691 -V, --version print version number and configuration settings, then exit
7692 --config print configuration, then exit
7693 -q, --quiet, --silent
7694 do not print progress messages
7695 -d, --debug don't remove temporary files
7696 --recheck update $as_me by reconfiguring in the same conditions
7697 --file=FILE[:TEMPLATE]
7698 instantiate the configuration file FILE
7699 --header=FILE[:TEMPLATE]
7700 instantiate the configuration header FILE
7702 Configuration files:
7705 Configuration headers:
7708 Configuration commands:
7711 Report bugs to <smartmontools-support@listi.jpberlin.de>."
7714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7715 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7717 smartmontools config.status 6.6
7718 configured by $0, generated by GNU Autoconf 2.69,
7719 with options \\"\$ac_cs_config\\"
7721 Copyright (C) 2012 Free Software Foundation, Inc.
7722 This config.status script is free software; the Free Software Foundation
7723 gives unlimited permission to copy, distribute and modify it."
7730 test -n "\$AWK" || AWK=awk
7733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7734 # The default lists apply if the user does not specify any file.
7740 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7741 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7745 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7757 # Handling of the options.
7758 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7760 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7761 $as_echo "$ac_cs_version"; exit ;;
7762 --config |
--confi |
--conf |
--con |
--co |
--c )
7763 $as_echo "$ac_cs_config"; exit ;;
7764 --debug |
--debu |
--deb |
--de |
--d |
-d )
7766 --file |
--fil |
--fi |
--f )
7769 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7770 '') as_fn_error $?
"missing file argument" ;;
7772 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7773 ac_need_defaults
=false
;;
7774 --header |
--heade |
--head |
--hea )
7777 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7779 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7780 ac_need_defaults
=false
;;
7782 # Conflict between --help and --header
7783 as_fn_error $?
"ambiguous option: \`$1'
7784 Try \`$0 --help' for more information.";;
7785 --help |
--hel |
-h )
7786 $as_echo "$ac_cs_usage"; exit ;;
7787 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7788 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7792 -*) as_fn_error $?
"unrecognized option: \`$1'
7793 Try \`$0 --help' for more information." ;;
7795 *) as_fn_append ac_config_targets
" $1"
7796 ac_need_defaults
=false
;;
7802 ac_configure_extra_args
=
7804 if $ac_cs_silent; then
7806 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7811 if \$ac_cs_recheck; then
7812 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7814 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7815 CONFIG_SHELL='$SHELL'
7821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7825 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7826 ## Running $as_me. ##
7832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7836 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7842 # Handling of arguments.
7843 for ac_config_target
in $ac_config_targets
7845 case $ac_config_target in
7846 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7847 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7848 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7850 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7855 # If the user did not use the arguments to specify the items to instantiate,
7856 # then the envvar interface is used. Set only those that are not.
7857 # We use the long form for the default assignment because of an extremely
7858 # bizarre bug on SunOS 4.1.3.
7859 if $ac_need_defaults; then
7860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7862 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7865 # Have a temporary directory for convenience. Make it in the build tree
7866 # simply because there is no reason against having it here, and in addition,
7867 # creating and moving files from /tmp can sometimes cause problems.
7868 # Hook for its removal unless debugging.
7869 # Note that there is a small window in which the directory will not be cleaned:
7870 # after its creation but before its name has been assigned to `$tmp'.
7874 trap 'exit_status=$?
7876 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7878 trap 'as_fn_exit 1' 1 2 13 15
7880 # Create a (secure) tmp directory for tmp files.
7883 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7887 tmp
=.
/conf$$
-$RANDOM
7888 (umask 077 && mkdir
"$tmp")
7889 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7892 # Set up the scripts for CONFIG_FILES section.
7893 # No need to generate them if there are no CONFIG_FILES.
7894 # This happens for instance with `./config.status config.h'.
7895 if test -n "$CONFIG_FILES"; then
7898 ac_cr
=`echo X | tr X '\015'`
7899 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7900 # But we know of no other shell where ac_cr would be empty at this
7901 # point, so we can use a bashism as a fallback.
7902 if test "x$ac_cr" = x
; then
7903 eval ac_cr
=\$
\'\\r
\'
7905 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7906 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7912 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7917 echo "cat >conf$$subs.awk <<_ACEOF" &&
7918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7921 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7922 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7924 for ac_last_try in false false false false false :; do
7925 . ./conf$$subs.sh ||
7926 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7928 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7929 if test $ac_delim_n = $ac_delim_num; then
7931 elif $ac_last_try; then
7932 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7934 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7940 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7944 s/^/S["/; s
/!.
*/"]=/
7954 s/\(.\{148\}\)..*/\1/
7956 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7961 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7968 s/\(.\{148\}\)..*/\1/
7970 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7974 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7979 ' <conf$$subs.awk | sed '
7984 ' >>$CONFIG_STATUS || ac_write_fail=1
7985 rm -f conf$$subs.awk
7986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7988 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7989 for (key in S) S_is_set[key] = 1
7995 nfields = split(line, field, "@
")
7997 len = length(field[1])
7998 for (i = 2; i < nfields; i++) {
8000 keylen = length(key)
8001 if (S_is_set[key]) {
8003 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8004 len += length(value) + length(field[++i])
8015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8016 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8017 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8020 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8021 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8024 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8025 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8026 # trailing colons and then remove the whole line if VPATH becomes empty
8027 # (actually we leave an empty line to preserve line numbers).
8028 if test "x
$srcdir" = x.; then
8029 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8048 fi # test -n "$CONFIG_FILES"
8050 # Set up the scripts for CONFIG_HEADERS section.
8051 # No need to generate them if there are no CONFIG_HEADERS.
8052 # This happens for instance with `./config.status Makefile'.
8053 if test -n "$CONFIG_HEADERS"; then
8054 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8058 # Transform confdefs.h into an awk script `defines.awk', embedded as
8059 # here-document in config.status, that substitutes the proper values into
8060 # config.h.in to produce config.h.
8062 # Create a delimiter string that does not exist in confdefs.h, to ease
8063 # handling of long lines.
8065 for ac_last_try in false false :; do
8066 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8067 if test -z "$ac_tt"; then
8069 elif $ac_last_try; then
8070 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8072 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8076 # For the awk script, D is an array of macro values keyed by name,
8077 # likewise P contains macro parameters if any. Preserve backslash
8078 # newline sequences.
8080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8082 s/.\{148\}/&'"$ac_delim"'/g
8085 s/^[ ]*#[ ]*define[ ][ ]*/ /
8092 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8094 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8099 D["\
1"]=" \
3\\\\\\n
"\\/p
8101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8106 s/.\{148\}/&'"$ac_delim"'/g
8111 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8114 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8116 ' <confdefs.h | sed '
8117 s/'"$ac_delim"'/"\\\
8118 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8121 for (key in D) D_is_set[key] = 1
8124 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8126 split(line, arg, " ")
8127 if (arg[1] == "#") {
8131 defundef
= substr
(arg
[1], 2)
8134 split(mac1
, mac2
, "(") #)
8136 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8137 if (D_is_set
[macro
]) {
8138 # Preserve the white space surrounding the "#".
8139 print prefix
"define", macro P
[macro
] D
[macro
]
8142 # Replace #undef with comments. This is necessary, for example,
8143 # in the case of _POSIX_SOURCE, which is predefined and required
8144 # on some systems where configure will not decide to define it.
8145 if (defundef
== "undef") {
8146 print
"/*", prefix defundef
, macro
, "*/"
8154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8155 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8156 fi # test -n "$CONFIG_HEADERS"
8159 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8164 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8166 case $ac_mode$ac_tag in
8168 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8169 :[FH
]-) ac_tag
=-:-;;
8170 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8187 -) ac_f
="$ac_tmp/stdin";;
8188 *) # Look for the file first in the build tree, then in the source tree
8189 # (if the path is not absolute). The absolute path cannot be DOS-style,
8190 # because $ac_f cannot contain `:'.
8194 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8196 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8198 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8199 as_fn_append ac_file_inputs
" '$ac_f'"
8202 # Let's still pretend it is `configure' which instantiates (i.e., don't
8203 # use $as_me), people would be surprised to read:
8204 # /* config.h. Generated by config.status. */
8205 configure_input
='Generated from '`
8206 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8208 if test x
"$ac_file" != x-
; then
8209 configure_input
="$ac_file. $configure_input"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8211 $as_echo "$as_me: creating $ac_file" >&6;}
8213 # Neutralize special characters interpreted by sed in replacement strings.
8214 case $configure_input in #(
8215 *\
&* |
*\|
* |
*\\* )
8216 ac_sed_conf_input
=`$as_echo "$configure_input" |
8217 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8218 *) ac_sed_conf_input
=$configure_input;;
8222 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8223 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8228 ac_dir
=`$as_dirname -- "$ac_file" ||
8229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8230 X"$ac_file" : 'X\(//\)[^/]' \| \
8231 X"$ac_file" : 'X\(//\)$' \| \
8232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8233 $as_echo X"$ac_file" |
8234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8251 as_dir
="$ac_dir"; as_fn_mkdir_p
8255 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8257 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8258 # A ".." for each directory in $ac_dir_suffix.
8259 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8260 case $ac_top_builddir_sub in
8261 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8262 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8265 ac_abs_top_builddir
=$ac_pwd
8266 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8267 # for backward compatibility:
8268 ac_top_builddir
=$ac_top_build_prefix
8271 .
) # We are building in place.
8273 ac_top_srcdir
=$ac_top_builddir_sub
8274 ac_abs_top_srcdir
=$ac_pwd ;;
8275 [\\/]* | ?
:[\\/]* ) # Absolute name.
8276 ac_srcdir
=$srcdir$ac_dir_suffix;
8277 ac_top_srcdir
=$srcdir
8278 ac_abs_top_srcdir
=$srcdir ;;
8280 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8281 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8282 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8284 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8294 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8295 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8299 [\\/$
]* | ?
:[\\/]* ) ;;
8300 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8305 # If the template does not know about datarootdir, expand it.
8306 # FIXME: This hack should be removed a few years after 2.60.
8307 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8319 *datarootdir
*) ac_datarootdir_seen
=yes;;
8320 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8322 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8325 ac_datarootdir_hack='
8326 s&@datadir@&$datadir&g
8327 s&@docdir@&$docdir&g
8328 s&@infodir@&$infodir&g
8329 s&@localedir@&$localedir&g
8330 s&@mandir@&$mandir&g
8331 s&\\\${datarootdir}&$datarootdir&g' ;;
8335 # Neutralize VPATH when `$srcdir' = `.'.
8336 # Shell code in configure.ac might set extrasub.
8337 # FIXME: do we really want to maintain this feature?
8338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8339 ac_sed_extra="$ac_vpsub
8342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8344 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8345 s|@configure_input@|
$ac_sed_conf_input|
;t t
8346 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8347 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8348 s
&@srcdir@
&$ac_srcdir&;t t
8349 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8350 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8351 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8352 s
&@builddir@
&$ac_builddir&;t t
8353 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8354 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8355 s
&@INSTALL@
&$ac_INSTALL&;t t
8356 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8357 $ac_datarootdir_hack
8359 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8360 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8365 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8367 which seems to be undefined. Please make sure it is defined" >&5
8368 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8369 which seems to be undefined. Please make sure it is defined" >&2;}
8371 rm -f "$ac_tmp/stdin"
8373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8382 if test x"$ac_file" != x-; then
8384 $as_echo "/* $configure_input */" \
8385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8386 } >"$ac_tmp/config.h" \
8387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8388 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8390 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8393 mv "$ac_tmp/config.h" "$ac_file" \
8394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8397 $as_echo "/* $configure_input */" \
8398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8399 || as_fn_error $? "could not create -" "$LINENO" 5
8401 # Compute "$ac_file"'s index
in $config_headers.
8404 for _am_header
in $config_headers :; do
8406 $_am_arg |
$_am_arg:* )
8409 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
8412 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8413 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8414 X"$_am_arg" : 'X\(//\)[^/]' \| \
8415 X"$_am_arg" : 'X\(//\)$' \| \
8416 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8417 $as_echo X"$_am_arg" |
8418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8434 s/.*/./; q'`/stamp-h
$_am_stamp_count
8437 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8438 $as_echo "$as_me: executing $ac_file commands" >&6;}
8443 case $ac_file$ac_mode in
8444 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
8445 # Older Autoconf quotes --file arguments for eval, but not when files
8446 # are listed without --file. Let's play safe and only enable the eval
8447 # if we detect the quoting.
8448 case $CONFIG_FILES in
8449 *\'*) eval set x
"$CONFIG_FILES" ;;
8450 *) set x
$CONFIG_FILES ;;
8455 # Strip MF so we end up with the name of the file.
8456 mf
=`echo "$mf" | sed -e 's/:.*$//'`
8457 # Check whether this is an Automake generated Makefile or not.
8458 # We used to match only the files named 'Makefile.in', but
8459 # some people rename them; so instead we look at the file content.
8460 # Grep'ing the first line is not enough: some people post-process
8461 # each Makefile.in and add a new line on top of each file to say so.
8462 # Grep'ing the whole file is not good either: AIX grep has a line
8463 # limit of 2048, but all sed's we know have understand at least 4000.
8464 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
8465 dirpart
=`$as_dirname -- "$mf" ||
8466 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8467 X"$mf" : 'X\(//\)[^/]' \| \
8468 X"$mf" : 'X\(//\)$' \| \
8469 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8491 # Extract the definition of DEPDIR, am__include, and am__quote
8492 # from the Makefile without running 'make'.
8493 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
8494 test -z "$DEPDIR" && continue
8495 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
8496 test -z "$am__include" && continue
8497 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
8498 # Find all dependency output files, they are included files with
8499 # $(DEPDIR) in their names. We invoke sed twice because it is the
8500 # simplest approach to changing $(DEPDIR) to its actual value in the
8502 for file in `sed -n "
8503 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8504 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8505 # Make sure the directory exists.
8506 test -f "$dirpart/$file" && continue
8507 fdir
=`$as_dirname -- "$file" ||
8508 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8509 X"$file" : 'X\(//\)[^/]' \| \
8510 X"$file" : 'X\(//\)$' \| \
8511 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8530 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
8531 # echo "creating $dirpart/$file"
8532 echo '# dummy' > "$dirpart/$file"
8544 ac_clean_files
=$ac_clean_files_save
8546 test $ac_write_fail = 0 ||
8547 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
8550 # configure is writing to config.log, and then calls config.status.
8551 # config.status does its own redirection, appending to config.log.
8552 # Unfortunately, on DOS this fails, as config.log is still kept open
8553 # by configure, so config.status won't be able to write to it; its
8554 # output is simply discarded. So we exec the FD to /dev/null,
8555 # effectively closing config.log, so it can be properly (re)opened and
8556 # appended to by config.status. When coming back to configure, we
8557 # need to make the FD available again.
8558 if test "$no_create" != yes; then
8560 ac_config_status_args
=
8561 test "$silent" = yes &&
8562 ac_config_status_args
="$ac_config_status_args --quiet"
8564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8567 # would make configure fail if this is the last instruction.
8568 $ac_cs_success || as_fn_exit
1
8570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8572 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8576 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8578 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8579 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8580 $as_echo_n "(cached) " >&6
8582 cat >conftest.
make <<\_ACEOF
8585 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8587 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8588 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8590 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8592 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8596 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8598 $as_echo "yes" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 SET_MAKE
="MAKE=${MAKE-make}"
8607 # Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)'
8609 echo "-----------------------------------------------------------------------------"
8610 echo "${PACKAGE}-${VERSION} configuration:"
8611 echo "host operating system: $host"
8612 echo "C++ compiler: $CXX"
8613 echo "C compiler: $CC"
8614 echo "preprocessor flags: $CPPFLAGS"
8615 echo "C++ compiler flags: $CXXFLAGS"
8616 echo "C compiler flags: $CFLAGS"
8617 echo "linker flags: $LDFLAGS"
8618 echo "OS specific modules: $os_deps $os_libs $LIBS"
8622 echo "application manifest: ${os_win32_manifest:-built-in}"
8623 echo "resource compiler: $WINDRES"
8624 echo "message compiler: $WINDMC"
8625 echo "NSIS compiler: $MAKENSIS"
8626 if test -n "$drivedbdir"; then
8627 echo "drive database file: EXEDIR/drivedb.h"
8628 if test -n "$MAKENSIS"; then
8629 echo "database update tool: EXEDIR/update-smart-drivedb.exe"
8632 echo "drive database file: [disabled]"
8634 if test -n "$savestates"; then
8635 echo "smartd save files: \`eval eval eval echo $savestates\
`MODEL-SERIAL.TYPE.state"
8637 if test -n "$attributelog"; then
8638 echo "smartd attribute logs: \`eval eval eval echo $attributelog\
`MODEL-SERIAL.TYPE.csv"
8640 echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}"
8644 echo "binary install path: \`eval eval eval echo $sbindir\
`"
8645 echo "man page install path: \`eval eval eval echo $mandir\
`"
8646 echo "doc file install path: \`eval eval eval echo $docdir\
`"
8647 echo "examples install path: \`eval eval eval echo $exampledir\
`"
8648 if test -n "$drivedbdir"; then
8649 echo "drive database file: \`eval eval eval echo $drivedbdir\
`/drivedb.h"
8650 if test "$with_update_smart_drivedb" = "yes"; then
8651 echo "database update script: \`eval eval eval echo $sbindir\
`/update-smart-drivedb"
8652 if test "$drivedb_version" != "$VERSION"; then
8653 echo "... backported to: branches/$DRIVEDB_BRANCH"
8655 echo "download tools: \`eval eval eval echo $os_dltools\
`"
8656 if test -n "$gnupg"; then
8657 echo "GnuPG for verification: \`eval eval eval echo $gnupg\
`"
8659 echo "GnuPG for verification: [disabled]"
8662 echo "database update script: [disabled]"
8665 echo "drive database file: [disabled]"
8667 echo "local drive database: \`eval eval eval echo $sysconfdir\
`/smart_drivedb.h"
8668 echo "smartd config file: \`eval eval eval echo $sysconfdir\
`/smartd.conf${smartd_suffix}"
8669 echo "smartd warning script: \`eval eval eval echo $smartdscriptdir\
`/smartd_warning.sh"
8670 if test -n "$smartdplugindir"; then
8671 echo "smartd plugin path: \`eval eval eval echo $smartdplugindir\
`"
8673 echo "smartd plugin path: [disabled]"
8675 if test -n "$scriptpath"; then
8676 echo "PATH within scripts: \`eval eval eval echo $scriptpath\
`"
8678 echo "PATH within scripts: [inherited]"
8680 if test -n "$initddir"; then
8681 echo "smartd initd script: \`eval eval eval echo $initddir\
`/${initdfile}"
8682 elif test -z "$systemdsystemunitdir"; then
8683 echo "smartd initd script: [disabled]"
8685 if test -n "$systemdsystemunitdir"; then
8686 echo "smartd systemd file: \`eval eval eval echo $systemdsystemunitdir\
`/smartd.service"
8687 if test -n "$systemdenvfile"; then
8688 echo "smartd environ file: \`eval eval eval echo $systemdenvfile\
`"
8690 echo "smartd environ file: [disabled]"
8693 if test -n "$savestates"; then
8694 echo "smartd save files: \`eval eval eval echo $savestates\
`MODEL-SERIAL.TYPE.state"
8696 echo "smartd save files: [disabled]"
8698 if test -n "$attributelog"; then
8699 echo "smartd attribute logs: \`eval eval eval echo $attributelog\
`MODEL-SERIAL.TYPE.csv"
8701 echo "smartd attribute logs: [disabled]"
8703 echo "libcap-ng support: $use_libcap_ng"
8705 linux*) echo "SELinux support: ${with_selinux-no}" ;;
8708 linux*|darwin*|netbsd*|cygwin*)
8709 echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}" ;;
8713 echo "-----------------------------------------------------------------------------"
8716 { $as_echo "$as_me:${as_lineno-$LINENO}:
8723 # TODO: Remove when NVMe support is no longer EXPERIMENTAL
8724 case "$host_os:${with_nvme_devicescan+set}" in
8725 linux
*:|darwin
*:|netbsd
*:|cygwin
*:|mingw
*:)
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8727 This version of smartmontools provides NVMe support which is still
8728 EXPERIMENTAL. NVMe devices are not yet included in smartd.conf
8729 'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified.
8730 Use option '--with-nvme-devicescan' to include NVMe devices.
8731 Use option '--without-nvme-devicescan' to suppress this warning.
8733 $as_echo "$as_me: WARNING:
8734 This version of smartmontools provides NVMe support which is still
8735 EXPERIMENTAL. NVMe devices are not yet included in smartd.conf
8736 'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified.
8737 Use option '--with-nvme-devicescan' to include NVMe devices.
8738 Use option '--without-nvme-devicescan' to suppress this warning.
8743 # TODO: Remove after smartmontools 6.6
8744 case "$host:${with_solaris_sparc_ata+set}" in
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8747 Legacy ATA support is no longer enabled by default on Solaris SPARC.
8748 The required source file 'os_solaris_ata.s' is no longer included in
8749 the source tarball but still available in the SVN repository.
8750 Use option '--with-solaris-sparc-ata' to enable legacy ATA support.
8751 Use option '--without-solaris-sparc-ata' to suppress this warning.
8753 $as_echo "$as_me: WARNING:
8754 Legacy ATA support is no longer enabled by default on Solaris SPARC.
8755 The required source file 'os_solaris_ata.s' is no longer included in
8756 the source tarball but still available in the SVN repository.
8757 Use option '--with-solaris-sparc-ata' to enable legacy ATA support.
8758 Use option '--without-solaris-sparc-ata' to suppress this warning.