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