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