]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8a2fc586 | 3 | # Generated by GNU Autoconf 2.59. |
795ca3e5 | 4 | # |
8a2fc586 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
795ca3e5 AK |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
8a2fc586 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
23 | |
24 | # Support unset when possible. | |
8a2fc586 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
8a2fc586 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
795ca3e5 | 185 | |
ad6254c5 AK |
186 | |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
8a2fc586 | 221 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
232 | |
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
795ca3e5 | 254 | ac_default_prefix=/usr/local |
ad6254c5 AK |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="lib/device/dev-cache.h" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
795ca3e5 | 312 | ac_default_prefix=/usr |
8a2fc586 | 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CFLOW_CMD CSCOPE_CMD CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP LVM_DEFS COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS' |
ad6254c5 | 314 | ac_subst_files='' |
795ca3e5 AK |
315 | |
316 | # Initialize some variables set by options. | |
ad6254c5 AK |
317 | ac_init_help= |
318 | ac_init_version=false | |
795ca3e5 AK |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
ad6254c5 | 321 | cache_file=/dev/null |
795ca3e5 | 322 | exec_prefix=NONE |
795ca3e5 | 323 | no_create= |
795ca3e5 AK |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
795ca3e5 AK |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
ad6254c5 AK |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
795ca3e5 AK |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
344 | datadir='${prefix}/share' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
795ca3e5 AK |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
795ca3e5 AK |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
ad6254c5 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
795ca3e5 AK |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
ad6254c5 | 368 | case $ac_option in |
795ca3e5 AK |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 373 | bindir=$ac_optarg ;; |
795ca3e5 AK |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 376 | ac_prev=build_alias ;; |
795ca3e5 | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 378 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
795ca3e5 AK |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
ad6254c5 | 394 | datadir=$ac_optarg ;; |
795ca3e5 AK |
395 | |
396 | -disable-* | --disable-*) | |
ad6254c5 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 398 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
403 | eval "enable_$ac_feature=no" ;; | |
795ca3e5 AK |
404 | |
405 | -enable-* | --enable-*) | |
ad6254c5 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 407 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
412 | case $ac_option in | |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
414 | *) ac_optarg=yes ;; |
415 | esac | |
ad6254c5 | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
795ca3e5 AK |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 425 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
ad6254c5 AK |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
795ca3e5 AK |
437 | |
438 | -host | --host | --hos | --ho) | |
ad6254c5 | 439 | ac_prev=host_alias ;; |
795ca3e5 | 440 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 441 | host_alias=$ac_optarg ;; |
795ca3e5 AK |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 448 | includedir=$ac_optarg ;; |
795ca3e5 AK |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 453 | infodir=$ac_optarg ;; |
795ca3e5 AK |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 458 | libdir=$ac_optarg ;; |
795ca3e5 AK |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 465 | libexecdir=$ac_optarg ;; |
795ca3e5 AK |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
468 | | --localstate | --localstat | --localsta | --localst \ | |
469 | | --locals | --local | --loca | --loc | --lo) | |
470 | ac_prev=localstatedir ;; | |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
ad6254c5 | 474 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 479 | mandir=$ac_optarg ;; |
795ca3e5 AK |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 486 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 500 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 505 | prefix=$ac_optarg ;; |
795ca3e5 AK |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 512 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 519 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 536 | program_transform_name=$ac_optarg ;; |
795ca3e5 AK |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
ad6254c5 | 546 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
ad6254c5 | 557 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 562 | site=$ac_optarg ;; |
795ca3e5 AK |
563 | |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 567 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 574 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 577 | ac_prev=target_alias ;; |
795ca3e5 | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 579 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
ad6254c5 AK |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
795ca3e5 AK |
586 | |
587 | -with-* | --with-*) | |
ad6254c5 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 589 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
795ca3e5 | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
ad6254c5 AK |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
596 | *) ac_optarg=yes ;; |
597 | esac | |
ad6254c5 | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
795ca3e5 AK |
599 | |
600 | -without-* | --without-*) | |
ad6254c5 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 602 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
607 | eval "with_$ac_package=no" ;; | |
795ca3e5 AK |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 618 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 625 | x_libraries=$ac_optarg ;; |
795ca3e5 | 626 | |
ad6254c5 AK |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
630 | ;; |
631 | ||
ad6254c5 AK |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
639 | eval "$ac_envvar='$ac_optarg'" | |
640 | export $ac_envvar ;; | |
641 | ||
795ca3e5 | 642 | *) |
ad6254c5 AK |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
795ca3e5 AK |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
ad6254c5 AK |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
795ca3e5 | 657 | fi |
795ca3e5 | 658 | |
ad6254c5 AK |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
661 | do | |
662 | eval ac_val=$`echo $ac_var` | |
663 | case $ac_val in | |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
666 | { (exit 1); exit 1; }; };; | |
667 | esac | |
668 | done | |
795ca3e5 | 669 | |
ad6254c5 AK |
670 | # Be sure to have absolute paths. |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
8a2fc586 | 672 | localstatedir libdir includedir oldincludedir infodir mandir |
795ca3e5 | 673 | do |
ad6254c5 AK |
674 | eval ac_val=$`echo $ac_var` |
675 | case $ac_val in | |
676 | [\\/$]* | ?:[\\/]* ) ;; | |
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
678 | { (exit 1); exit 1; }; };; | |
795ca3e5 AK |
679 | esac |
680 | done | |
681 | ||
ad6254c5 AK |
682 | # There might be people who depend on the old broken behavior: `$host' |
683 | # used to hold the argument of --host etc. | |
684 | # FIXME: To remove some day. | |
685 | build=$build_alias | |
686 | host=$host_alias | |
687 | target=$target_alias | |
688 | ||
689 | # FIXME: To remove some day. | |
690 | if test "x$host_alias" != x; then | |
691 | if test "x$build_alias" = x; then | |
692 | cross_compiling=maybe | |
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
694 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
695 | elif test "x$build_alias" != "x$host_alias"; then | |
696 | cross_compiling=yes | |
697 | fi | |
698 | fi | |
8106cdd5 | 699 | |
ad6254c5 AK |
700 | ac_tool_prefix= |
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
702 | ||
703 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 704 | |
795ca3e5 AK |
705 | |
706 | # Find the source files, if location was not specified. | |
707 | if test -z "$srcdir"; then | |
708 | ac_srcdir_defaulted=yes | |
709 | # Try the directory containing this script, then its parent. | |
ad6254c5 AK |
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
712 | X"$0" : 'X\(//\)[^/]' \| \ |
713 | X"$0" : 'X\(//\)$' \| \ | |
714 | X"$0" : 'X\(/\)' \| \ | |
715 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
716 | echo X"$0" | |
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
719 | /^X\(\/\/\)$/{ s//\1/; q; } | |
720 | /^X\(\/\).*/{ s//\1/; q; } | |
721 | s/.*/./; q'` | |
795ca3e5 AK |
722 | srcdir=$ac_confdir |
723 | if test ! -r $srcdir/$ac_unique_file; then | |
724 | srcdir=.. | |
725 | fi | |
726 | else | |
727 | ac_srcdir_defaulted=no | |
728 | fi | |
729 | if test ! -r $srcdir/$ac_unique_file; then | |
730 | if test "$ac_srcdir_defaulted" = yes; then | |
ad6254c5 AK |
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
732 | { (exit 1); exit 1; }; } | |
795ca3e5 | 733 | else |
ad6254c5 AK |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
735 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
736 | fi |
737 | fi | |
ad6254c5 AK |
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
740 | { (exit 1); exit 1; }; } | |
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
742 | ac_env_build_alias_set=${build_alias+set} | |
743 | ac_env_build_alias_value=$build_alias | |
744 | ac_cv_env_build_alias_set=${build_alias+set} | |
745 | ac_cv_env_build_alias_value=$build_alias | |
746 | ac_env_host_alias_set=${host_alias+set} | |
747 | ac_env_host_alias_value=$host_alias | |
748 | ac_cv_env_host_alias_set=${host_alias+set} | |
749 | ac_cv_env_host_alias_value=$host_alias | |
750 | ac_env_target_alias_set=${target_alias+set} | |
751 | ac_env_target_alias_value=$target_alias | |
752 | ac_cv_env_target_alias_set=${target_alias+set} | |
753 | ac_cv_env_target_alias_value=$target_alias | |
754 | ac_env_CC_set=${CC+set} | |
755 | ac_env_CC_value=$CC | |
756 | ac_cv_env_CC_set=${CC+set} | |
757 | ac_cv_env_CC_value=$CC | |
758 | ac_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_env_CFLAGS_value=$CFLAGS | |
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_cv_env_CFLAGS_value=$CFLAGS | |
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_env_CPP_set=${CPP+set} | |
771 | ac_env_CPP_value=$CPP | |
772 | ac_cv_env_CPP_set=${CPP+set} | |
773 | ac_cv_env_CPP_value=$CPP | |
774 | ||
775 | # | |
776 | # Report the --help message. | |
777 | # | |
778 | if test "$ac_init_help" = "long"; then | |
779 | # Omit some internal or obsolete options to make the list less imposing. | |
780 | # This message is too long to be a string in the A/UX 3.1 sh. | |
781 | cat <<_ACEOF | |
782 | \`configure' configures this package to adapt to many kinds of systems. | |
783 | ||
784 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
785 | ||
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
787 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
788 | ||
789 | Defaults for the options are specified in brackets. | |
790 | ||
791 | Configuration: | |
792 | -h, --help display this help and exit | |
793 | --help=short display options specific to this package | |
794 | --help=recursive display the short help of all the included packages | |
795 | -V, --version display version information and exit | |
796 | -q, --quiet, --silent do not print \`checking...' messages | |
797 | --cache-file=FILE cache test results in FILE [disabled] | |
798 | -C, --config-cache alias for \`--cache-file=config.cache' | |
799 | -n, --no-create do not create output files | |
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
801 | ||
802 | _ACEOF | |
803 | ||
804 | cat <<_ACEOF | |
805 | Installation directories: | |
806 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8a2fc586 | 807 | [$ac_default_prefix] |
ad6254c5 | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a2fc586 | 809 | [PREFIX] |
ad6254c5 AK |
810 | |
811 | By default, \`make install' will install all the files in | |
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
814 | for instance \`--prefix=\$HOME'. | |
815 | ||
816 | For better control, use the options below. | |
817 | ||
818 | Fine tuning of the installation directories: | |
819 | --bindir=DIR user executables [EPREFIX/bin] | |
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
821 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
826 | --libdir=DIR object code libraries [EPREFIX/lib] | |
827 | --includedir=DIR C header files [PREFIX/include] | |
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
829 | --infodir=DIR info documentation [PREFIX/info] | |
830 | --mandir=DIR man documentation [PREFIX/man] | |
831 | _ACEOF | |
832 | ||
833 | cat <<\_ACEOF | |
834 | ||
835 | System types: | |
836 | --build=BUILD configure for building on BUILD [guessed] | |
837 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
838 | --target=TARGET configure for building compilers for TARGET [HOST] | |
839 | _ACEOF | |
840 | fi | |
841 | ||
842 | if test -n "$ac_init_help"; then | |
843 | ||
844 | cat <<\_ACEOF | |
845 | ||
846 | Optional Features: | |
847 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
848 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
849 | --enable-jobs=NUM Number of jobs to run simultaneously | |
850 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if | |
851 | device-mapper is missing from the kernel | |
852 | --enable-static_link Use this to link the tools to their libraries | |
853 | statically. Default is dynamic linking | |
854 | --enable-readline Enable readline support | |
855 | --disable-selinux Disable selinux support | |
856 | --enable-debug Enable debugging | |
857 | --disable-devmapper Disable device-mapper interaction | |
858 | --disable-o_direct Disable O_DIRECT | |
859 | --enable-cmdlib Build shared command library | |
860 | --enable-fsadm Enable fsadm | |
15d91f5a | 861 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
862 | --enable-nls Enable Native Language Support |
863 | ||
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-user=USER Set the owner of installed files | |
868 | --with-group=GROUP Set the group owner of installed files | |
869 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
870 | TYPE=internal | |
871 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
872 | TYPE=internal | |
873 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
874 | TYPE=internal | |
875 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
876 | TYPE=internal | |
877 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
878 | TYPE=internal | |
5c7fc7c4 | 879 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 880 | TYPE=none |
ad6254c5 AK |
881 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
882 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
883 | --with-confdir=DIR Configuration files in DIR /etc | |
884 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
885 | ||
886 | Some influential environment variables: | |
887 | CC C compiler command | |
888 | CFLAGS C compiler flags | |
889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
890 | nonstandard directory <lib dir> | |
891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
892 | headers in a nonstandard directory <include dir> | |
893 | CPP C preprocessor | |
894 | ||
895 | Use these variables to override the choices made by `configure' or to help | |
896 | it to find libraries and programs with nonstandard names/locations. | |
897 | ||
898 | _ACEOF | |
899 | fi | |
900 | ||
901 | if test "$ac_init_help" = "recursive"; then | |
902 | # If there are subdirs, report their specific --help. | |
903 | ac_popdir=`pwd` | |
904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
905 | test -d $ac_dir || continue | |
906 | ac_builddir=. | |
907 | ||
908 | if test "$ac_dir" != .; then | |
909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
910 | # A "../" for each directory in $ac_dir_suffix. | |
911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
912 | else | |
913 | ac_dir_suffix= ac_top_builddir= | |
914 | fi | |
915 | ||
916 | case $srcdir in | |
917 | .) # No --srcdir option. We are building in place. | |
918 | ac_srcdir=. | |
919 | if test -z "$ac_top_builddir"; then | |
920 | ac_top_srcdir=. | |
921 | else | |
922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
923 | fi ;; | |
924 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
925 | ac_srcdir=$srcdir$ac_dir_suffix; | |
926 | ac_top_srcdir=$srcdir ;; | |
927 | *) # Relative path. | |
928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
930 | esac | |
8a2fc586 AK |
931 | |
932 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
933 | # the directories may not exist. | |
934 | case `pwd` in | |
935 | .) ac_abs_builddir="$ac_dir";; | |
936 | *) | |
937 | case "$ac_dir" in | |
938 | .) ac_abs_builddir=`pwd`;; | |
939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
941 | esac;; | |
942 | esac | |
943 | case $ac_abs_builddir in | |
944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
945 | *) | |
946 | case ${ac_top_builddir}. in | |
947 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
950 | esac;; | |
951 | esac | |
952 | case $ac_abs_builddir in | |
953 | .) ac_abs_srcdir=$ac_srcdir;; | |
954 | *) | |
955 | case $ac_srcdir in | |
956 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
959 | esac;; | |
960 | esac | |
961 | case $ac_abs_builddir in | |
962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
963 | *) | |
964 | case $ac_top_srcdir in | |
965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
968 | esac;; | |
969 | esac | |
ad6254c5 AK |
970 | |
971 | cd $ac_dir | |
972 | # Check for guested configure; otherwise get Cygnus style configure. | |
973 | if test -f $ac_srcdir/configure.gnu; then | |
974 | echo | |
975 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
976 | elif test -f $ac_srcdir/configure; then | |
977 | echo | |
978 | $SHELL $ac_srcdir/configure --help=recursive | |
979 | elif test -f $ac_srcdir/configure.ac || | |
8a2fc586 | 980 | test -f $ac_srcdir/configure.in; then |
ad6254c5 AK |
981 | echo |
982 | $ac_configure --help | |
983 | else | |
984 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
985 | fi | |
986 | cd $ac_popdir | |
987 | done | |
988 | fi | |
989 | ||
990 | test -n "$ac_init_help" && exit 0 | |
991 | if $ac_init_version; then | |
992 | cat <<\_ACEOF | |
993 | ||
8a2fc586 | 994 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
995 | This configure script is free software; the Free Software Foundation |
996 | gives unlimited permission to copy, distribute and modify it. | |
997 | _ACEOF | |
998 | exit 0 | |
999 | fi | |
1000 | exec 5>config.log | |
1001 | cat >&5 <<_ACEOF | |
1002 | This file contains any messages produced by compilers while | |
1003 | running configure, to aid debugging if configure makes a mistake. | |
1004 | ||
1005 | It was created by $as_me, which was | |
8a2fc586 | 1006 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
1007 | |
1008 | $ $0 $@ | |
1009 | ||
1010 | _ACEOF | |
1011 | { | |
1012 | cat <<_ASUNAME | |
1013 | ## --------- ## | |
1014 | ## Platform. ## | |
1015 | ## --------- ## | |
1016 | ||
1017 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1018 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1019 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1020 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1021 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1022 | ||
1023 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1024 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1025 | ||
1026 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1027 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1028 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1029 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1030 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1031 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1032 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1033 | ||
1034 | _ASUNAME | |
1035 | ||
1036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1037 | for as_dir in $PATH | |
1038 | do | |
1039 | IFS=$as_save_IFS | |
1040 | test -z "$as_dir" && as_dir=. | |
1041 | echo "PATH: $as_dir" | |
1042 | done | |
1043 | ||
1044 | } >&5 | |
1045 | ||
1046 | cat >&5 <<_ACEOF | |
1047 | ||
1048 | ||
1049 | ## ----------- ## | |
1050 | ## Core tests. ## | |
1051 | ## ----------- ## | |
1052 | ||
1053 | _ACEOF | |
1054 | ||
1055 | ||
1056 | # Keep a trace of the command line. | |
1057 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1058 | # Strip out --silent because we don't want to record it for future runs. | |
1059 | # Also quote any args containing shell meta-characters. | |
1060 | # Make two passes to allow for proper duplicate-argument suppression. | |
1061 | ac_configure_args= | |
1062 | ac_configure_args0= | |
1063 | ac_configure_args1= | |
1064 | ac_sep= | |
1065 | ac_must_keep_next=false | |
1066 | for ac_pass in 1 2 | |
1067 | do | |
1068 | for ac_arg | |
1069 | do | |
1070 | case $ac_arg in | |
1071 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1073 | | -silent | --silent | --silen | --sile | --sil) | |
1074 | continue ;; | |
1075 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1076 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1077 | esac | |
1078 | case $ac_pass in | |
1079 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1080 | 2) | |
1081 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1082 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1083 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1084 | else |
8a2fc586 AK |
1085 | case $ac_arg in |
1086 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1087 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1088 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1089 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1090 | case "$ac_configure_args0 " in | |
1091 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1092 | esac | |
1093 | ;; | |
1094 | -* ) ac_must_keep_next=true ;; | |
1095 | esac | |
ad6254c5 AK |
1096 | fi |
1097 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1098 | # Get rid of the leading space. | |
1099 | ac_sep=" " | |
1100 | ;; | |
1101 | esac | |
1102 | done | |
1103 | done | |
1104 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1105 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1106 | ||
1107 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1108 | # config.log. We remove comments because anyway the quotes in there | |
1109 | # would cause problems or look ugly. | |
1110 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1111 | # such as our DU 5.0 friend, will then `close' the trap. | |
1112 | trap 'exit_status=$? | |
1113 | # Save into config.log some information that might help in debugging. | |
1114 | { | |
1115 | echo | |
1116 | ||
1117 | cat <<\_ASBOX | |
1118 | ## ---------------- ## | |
1119 | ## Cache variables. ## | |
1120 | ## ---------------- ## | |
1121 | _ASBOX | |
1122 | echo | |
1123 | # The following way of writing the cache mishandles newlines in values, | |
1124 | { | |
1125 | (set) 2>&1 | | |
1126 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1127 | *ac_space=\ *) | |
1128 | sed -n \ | |
8a2fc586 AK |
1129 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1130 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ad6254c5 AK |
1131 | ;; |
1132 | *) | |
1133 | sed -n \ | |
8a2fc586 | 1134 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
1135 | ;; |
1136 | esac; | |
1137 | } | |
1138 | echo | |
1139 | ||
1140 | cat <<\_ASBOX | |
1141 | ## ----------------- ## | |
1142 | ## Output variables. ## | |
1143 | ## ----------------- ## | |
1144 | _ASBOX | |
1145 | echo | |
1146 | for ac_var in $ac_subst_vars | |
1147 | do | |
1148 | eval ac_val=$`echo $ac_var` | |
1149 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1150 | done | sort | |
1151 | echo | |
1152 | ||
1153 | if test -n "$ac_subst_files"; then | |
1154 | cat <<\_ASBOX | |
1155 | ## ------------- ## | |
1156 | ## Output files. ## | |
1157 | ## ------------- ## | |
1158 | _ASBOX | |
1159 | echo | |
1160 | for ac_var in $ac_subst_files | |
1161 | do | |
1162 | eval ac_val=$`echo $ac_var` | |
8a2fc586 | 1163 | echo "$ac_var='"'"'$ac_val'"'"'" |
ad6254c5 AK |
1164 | done | sort |
1165 | echo | |
1166 | fi | |
1167 | ||
1168 | if test -s confdefs.h; then | |
1169 | cat <<\_ASBOX | |
1170 | ## ----------- ## | |
1171 | ## confdefs.h. ## | |
1172 | ## ----------- ## | |
1173 | _ASBOX | |
1174 | echo | |
1175 | sed "/^$/d" confdefs.h | sort | |
1176 | echo | |
1177 | fi | |
1178 | test "$ac_signal" != 0 && | |
1179 | echo "$as_me: caught signal $ac_signal" | |
1180 | echo "$as_me: exit $exit_status" | |
1181 | } >&5 | |
8a2fc586 | 1182 | rm -f core *.core && |
ad6254c5 AK |
1183 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1184 | exit $exit_status | |
1185 | ' 0 | |
1186 | for ac_signal in 1 2 13 15; do | |
1187 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1188 | done | |
1189 | ac_signal=0 | |
1190 | ||
1191 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1192 | rm -rf conftest* confdefs.h | |
1193 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1194 | echo >confdefs.h | |
1195 | ||
1196 | # Predefined preprocessor variables. | |
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1210 | _ACEOF | |
8106cdd5 | 1211 | |
ad6254c5 AK |
1212 | |
1213 | cat >>confdefs.h <<_ACEOF | |
1214 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | cat >>confdefs.h <<_ACEOF | |
1219 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1220 | _ACEOF | |
1221 | ||
1222 | ||
1223 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1224 | # Prefer explicitly selected file to automatically selected ones. |
1225 | if test -z "$CONFIG_SITE"; then | |
1226 | if test "x$prefix" != xNONE; then | |
1227 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1228 | else | |
1229 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1230 | fi | |
1231 | fi | |
1232 | for ac_site_file in $CONFIG_SITE; do | |
1233 | if test -r "$ac_site_file"; then | |
ad6254c5 AK |
1234 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1235 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1236 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1237 | . "$ac_site_file" |
1238 | fi | |
1239 | done | |
1240 | ||
1241 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1242 | # Some versions of bash will fail to source /dev/null (special |
1243 | # files actually), so we avoid doing that. | |
1244 | if test -f "$cache_file"; then | |
1245 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1246 | echo "$as_me: loading cache $cache_file" >&6;} | |
1247 | case $cache_file in | |
1248 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1249 | *) . ./$cache_file;; | |
1250 | esac | |
1251 | fi | |
795ca3e5 | 1252 | else |
ad6254c5 AK |
1253 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1254 | echo "$as_me: creating cache $cache_file" >&6;} | |
1255 | >$cache_file | |
1256 | fi | |
1257 | ||
1258 | # Check that the precious variables saved in the cache have kept the same | |
1259 | # value. | |
1260 | ac_cache_corrupted=false | |
1261 | for ac_var in `(set) 2>&1 | | |
8a2fc586 | 1262 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ad6254c5 AK |
1263 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1264 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1265 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1266 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1267 | case $ac_old_set,$ac_new_set in | |
1268 | set,) | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1271 | ac_cache_corrupted=: ;; | |
1272 | ,set) | |
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1274 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1275 | ac_cache_corrupted=: ;; | |
1276 | ,);; | |
1277 | *) | |
1278 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8a2fc586 | 1279 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ad6254c5 | 1280 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
8a2fc586 | 1281 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ad6254c5 | 1282 | echo "$as_me: former value: $ac_old_val" >&2;} |
8a2fc586 | 1283 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ad6254c5 | 1284 | echo "$as_me: current value: $ac_new_val" >&2;} |
8a2fc586 | 1285 | ac_cache_corrupted=: |
ad6254c5 AK |
1286 | fi;; |
1287 | esac | |
1288 | # Pass precious variables to config.status. | |
1289 | if test "$ac_new_set" = set; then | |
1290 | case $ac_new_val in | |
1291 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1292 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1293 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1294 | esac | |
1295 | case " $ac_configure_args " in | |
1296 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1297 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1298 | esac | |
1299 | fi | |
1300 | done | |
1301 | if $ac_cache_corrupted; then | |
1302 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1303 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1304 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1305 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1306 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1307 | fi |
1308 | ||
1309 | ac_ext=c | |
795ca3e5 | 1310 | ac_cpp='$CPP $CPPFLAGS' |
ad6254c5 AK |
1311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
795ca3e5 AK |
1331 | |
1332 | ||
1333 | ||
80992638 | 1334 | ################################################################################ |
795ca3e5 AK |
1335 | ac_aux_dir= |
1336 | for ac_dir in autoconf $srcdir/autoconf; do | |
1337 | if test -f $ac_dir/install-sh; then | |
1338 | ac_aux_dir=$ac_dir | |
1339 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1340 | break | |
1341 | elif test -f $ac_dir/install.sh; then | |
1342 | ac_aux_dir=$ac_dir | |
1343 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1344 | break | |
ad6254c5 AK |
1345 | elif test -f $ac_dir/shtool; then |
1346 | ac_aux_dir=$ac_dir | |
1347 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1348 | break | |
795ca3e5 AK |
1349 | fi |
1350 | done | |
1351 | if test -z "$ac_aux_dir"; then | |
ad6254c5 AK |
1352 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1353 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1354 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1355 | fi |
ad6254c5 AK |
1356 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1357 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1358 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
8ce0cbda AK |
1359 | |
1360 | ||
ad6254c5 | 1361 | ################################################################################ |
8ce0cbda | 1362 | # Make sure we can run config.sub. |
ad6254c5 AK |
1363 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1364 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1365 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1366 | { (exit 1); exit 1; }; } | |
1367 | ||
1368 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1369 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1370 | if test "${ac_cv_build+set}" = set; then | |
1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1372 | else | |
1373 | ac_cv_build_alias=$build_alias | |
1374 | test -z "$ac_cv_build_alias" && | |
1375 | ac_cv_build_alias=`$ac_config_guess` | |
1376 | test -z "$ac_cv_build_alias" && | |
1377 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1378 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1379 | { (exit 1); exit 1; }; } | |
1380 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1381 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1382 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1383 | { (exit 1); exit 1; }; } | |
1384 | ||
1385 | fi | |
1386 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1387 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1388 | build=$ac_cv_build | |
1389 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1390 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1391 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1392 | ||
1393 | ||
1394 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1395 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1396 | if test "${ac_cv_host+set}" = set; then | |
1397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1398 | else | |
1399 | ac_cv_host_alias=$host_alias | |
1400 | test -z "$ac_cv_host_alias" && | |
1401 | ac_cv_host_alias=$ac_cv_build_alias | |
1402 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1403 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1404 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1405 | { (exit 1); exit 1; }; } | |
1406 | ||
1407 | fi | |
1408 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1409 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1410 | host=$ac_cv_host | |
1411 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1412 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1413 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1414 | ||
1415 | ||
1416 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1417 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1418 | if test "${ac_cv_target+set}" = set; then | |
1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1420 | else | |
1421 | ac_cv_target_alias=$target_alias | |
1422 | test "x$ac_cv_target_alias" = "x" && | |
1423 | ac_cv_target_alias=$ac_cv_host_alias | |
1424 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1425 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1426 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1427 | { (exit 1); exit 1; }; } | |
8ce0cbda | 1428 | |
ad6254c5 AK |
1429 | fi |
1430 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1431 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1432 | target=$ac_cv_target | |
1433 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1434 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1435 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8ce0cbda | 1436 | |
8ce0cbda | 1437 | |
ad6254c5 AK |
1438 | # The aliases save the names the user supplied, while $host etc. |
1439 | # will get canonicalized. | |
1440 | test -n "$target_alias" && | |
8ce0cbda AK |
1441 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1442 | NONENONEs,x,x, && | |
1443 | program_prefix=${target_alias}- | |
1444 | ||
8ce0cbda AK |
1445 | case "$host_os" in |
1446 | linux*) | |
1447 | CFLAGS="$CFLAGS" | |
1448 | COPTIMISE_FLAG="-O2" | |
1449 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1450 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1451 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1452 | LDDEPS="$LDDEPS .export.sym" | |
1453 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1454 | LIB_SUFFIX="so" |
8ce0cbda AK |
1455 | DEVMAPPER=yes |
1456 | ODIRECT=yes | |
1457 | SELINUX=yes | |
1458 | CLUSTER=internal | |
1459 | FSADM=no ;; | |
1460 | darwin*) | |
1461 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1462 | COPTIMISE_FLAG="-O2" | |
1463 | CLDFLAGS="$CLDFLAGS" | |
1464 | CLDWHOLEARCHIVE="-all_load" | |
1465 | CLDNOWHOLEARCHIVE= | |
1466 | LDDEPS="$LDDEPS" | |
1467 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1468 | LIB_SUFFIX="dylib" |
a653923f | 1469 | DEVMAPPER=yes |
8ce0cbda AK |
1470 | ODIRECT=no |
1471 | SELINUX=no | |
1472 | CLUSTER=none | |
1473 | FSADM=no ;; | |
1474 | esac | |
1475 | ||
80992638 | 1476 | ################################################################################ |
ad6254c5 | 1477 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1478 | do |
ad6254c5 | 1479 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1480 | set dummy $ac_prog; ac_word=$2 |
ad6254c5 AK |
1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1483 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1485 | else |
1486 | if test -n "$AWK"; then | |
1487 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1488 | else | |
ad6254c5 AK |
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1490 | for as_dir in $PATH | |
1491 | do | |
1492 | IFS=$as_save_IFS | |
1493 | test -z "$as_dir" && as_dir=. | |
1494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1496 | ac_cv_prog_AWK="$ac_prog" | |
1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1498 | break 2 | |
1499 | fi | |
1500 | done | |
1501 | done | |
1502 | ||
795ca3e5 AK |
1503 | fi |
1504 | fi | |
ad6254c5 | 1505 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1506 | if test -n "$AWK"; then |
ad6254c5 AK |
1507 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1508 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1509 | else |
ad6254c5 AK |
1510 | echo "$as_me:$LINENO: result: no" >&5 |
1511 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1512 | fi |
1513 | ||
ad6254c5 AK |
1514 | test -n "$AWK" && break |
1515 | done | |
1516 | ||
1517 | ac_ext=c | |
1518 | ac_cpp='$CPP $CPPFLAGS' | |
1519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1522 | if test -n "$ac_tool_prefix"; then | |
1523 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1524 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1525 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1527 | if test "${ac_cv_prog_CC+set}" = set; then | |
1528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1529 | else | |
1530 | if test -n "$CC"; then | |
1531 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1532 | else | |
1533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1534 | for as_dir in $PATH | |
1535 | do | |
1536 | IFS=$as_save_IFS | |
1537 | test -z "$as_dir" && as_dir=. | |
1538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1539 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1540 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1542 | break 2 | |
1543 | fi | |
1544 | done | |
8106cdd5 AK |
1545 | done |
1546 | ||
ad6254c5 AK |
1547 | fi |
1548 | fi | |
1549 | CC=$ac_cv_prog_CC | |
1550 | if test -n "$CC"; then | |
1551 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1552 | echo "${ECHO_T}$CC" >&6 | |
1553 | else | |
1554 | echo "$as_me:$LINENO: result: no" >&5 | |
1555 | echo "${ECHO_T}no" >&6 | |
1556 | fi | |
1557 | ||
1558 | fi | |
1559 | if test -z "$ac_cv_prog_CC"; then | |
1560 | ac_ct_CC=$CC | |
1561 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 1562 | set dummy gcc; ac_word=$2 |
ad6254c5 AK |
1563 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1565 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1567 | else | |
1568 | if test -n "$ac_ct_CC"; then | |
1569 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1570 | else | |
1571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1572 | for as_dir in $PATH | |
1573 | do | |
1574 | IFS=$as_save_IFS | |
1575 | test -z "$as_dir" && as_dir=. | |
1576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1577 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1578 | ac_cv_prog_ac_ct_CC="gcc" | |
1579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1580 | break 2 | |
1581 | fi | |
1582 | done | |
1583 | done | |
1584 | ||
1585 | fi | |
1586 | fi | |
1587 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1588 | if test -n "$ac_ct_CC"; then | |
1589 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1590 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1591 | else | |
1592 | echo "$as_me:$LINENO: result: no" >&5 | |
1593 | echo "${ECHO_T}no" >&6 | |
1594 | fi | |
1595 | ||
1596 | CC=$ac_ct_CC | |
1597 | else | |
1598 | CC="$ac_cv_prog_CC" | |
1599 | fi | |
1600 | ||
1601 | if test -z "$CC"; then | |
1602 | if test -n "$ac_tool_prefix"; then | |
1603 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1604 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1605 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1607 | if test "${ac_cv_prog_CC+set}" = set; then | |
1608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 AK |
1609 | else |
1610 | if test -n "$CC"; then | |
1611 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1612 | else | |
ad6254c5 AK |
1613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1614 | for as_dir in $PATH | |
1615 | do | |
1616 | IFS=$as_save_IFS | |
1617 | test -z "$as_dir" && as_dir=. | |
1618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1620 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1622 | break 2 | |
1623 | fi | |
1624 | done | |
1625 | done | |
1626 | ||
8106cdd5 AK |
1627 | fi |
1628 | fi | |
ad6254c5 | 1629 | CC=$ac_cv_prog_CC |
8106cdd5 | 1630 | if test -n "$CC"; then |
ad6254c5 AK |
1631 | echo "$as_me:$LINENO: result: $CC" >&5 |
1632 | echo "${ECHO_T}$CC" >&6 | |
1633 | else | |
1634 | echo "$as_me:$LINENO: result: no" >&5 | |
1635 | echo "${ECHO_T}no" >&6 | |
1636 | fi | |
1637 | ||
1638 | fi | |
1639 | if test -z "$ac_cv_prog_CC"; then | |
1640 | ac_ct_CC=$CC | |
1641 | # Extract the first word of "cc", so it can be a program name with args. | |
1642 | set dummy cc; ac_word=$2 | |
1643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1645 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1647 | else | |
1648 | if test -n "$ac_ct_CC"; then | |
1649 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1650 | else | |
1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1652 | for as_dir in $PATH | |
1653 | do | |
1654 | IFS=$as_save_IFS | |
1655 | test -z "$as_dir" && as_dir=. | |
1656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1658 | ac_cv_prog_ac_ct_CC="cc" | |
1659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1660 | break 2 | |
1661 | fi | |
1662 | done | |
1663 | done | |
1664 | ||
1665 | fi | |
1666 | fi | |
1667 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1668 | if test -n "$ac_ct_CC"; then | |
1669 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1670 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1671 | else | |
1672 | echo "$as_me:$LINENO: result: no" >&5 | |
1673 | echo "${ECHO_T}no" >&6 | |
1674 | fi | |
1675 | ||
1676 | CC=$ac_ct_CC | |
8106cdd5 | 1677 | else |
ad6254c5 | 1678 | CC="$ac_cv_prog_CC" |
8106cdd5 AK |
1679 | fi |
1680 | ||
ad6254c5 | 1681 | fi |
795ca3e5 AK |
1682 | if test -z "$CC"; then |
1683 | # Extract the first word of "cc", so it can be a program name with args. | |
1684 | set dummy cc; ac_word=$2 | |
ad6254c5 AK |
1685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1687 | if test "${ac_cv_prog_CC+set}" = set; then | |
1688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1689 | else |
1690 | if test -n "$CC"; then | |
1691 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1692 | else | |
795ca3e5 | 1693 | ac_prog_rejected=no |
ad6254c5 AK |
1694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1695 | for as_dir in $PATH | |
1696 | do | |
1697 | IFS=$as_save_IFS | |
1698 | test -z "$as_dir" && as_dir=. | |
1699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1701 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1702 | ac_prog_rejected=yes | |
1703 | continue | |
1704 | fi | |
1705 | ac_cv_prog_CC="cc" | |
1706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1707 | break 2 | |
1708 | fi | |
1709 | done | |
1710 | done | |
1711 | ||
795ca3e5 AK |
1712 | if test $ac_prog_rejected = yes; then |
1713 | # We found a bogon in the path, so make sure we never use it. | |
1714 | set dummy $ac_cv_prog_CC | |
1715 | shift | |
ad6254c5 | 1716 | if test $# != 0; then |
795ca3e5 AK |
1717 | # We chose a different compiler from the bogus one. |
1718 | # However, it has the same basename, so the bogon will be chosen | |
1719 | # first if we set CC to just the basename; use the full file name. | |
1720 | shift | |
ad6254c5 | 1721 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1722 | fi |
1723 | fi | |
1724 | fi | |
1725 | fi | |
ad6254c5 | 1726 | CC=$ac_cv_prog_CC |
795ca3e5 | 1727 | if test -n "$CC"; then |
ad6254c5 AK |
1728 | echo "$as_me:$LINENO: result: $CC" >&5 |
1729 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1730 | else |
ad6254c5 AK |
1731 | echo "$as_me:$LINENO: result: no" >&5 |
1732 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1733 | fi |
1734 | ||
ad6254c5 AK |
1735 | fi |
1736 | if test -z "$CC"; then | |
1737 | if test -n "$ac_tool_prefix"; then | |
1738 | for ac_prog in cl | |
1739 | do | |
1740 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1741 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1744 | if test "${ac_cv_prog_CC+set}" = set; then | |
1745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1746 | else |
1747 | if test -n "$CC"; then | |
1748 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1749 | else | |
ad6254c5 AK |
1750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1751 | for as_dir in $PATH | |
1752 | do | |
1753 | IFS=$as_save_IFS | |
1754 | test -z "$as_dir" && as_dir=. | |
1755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1757 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1759 | break 2 | |
1760 | fi | |
1761 | done | |
1762 | done | |
1763 | ||
795ca3e5 AK |
1764 | fi |
1765 | fi | |
ad6254c5 | 1766 | CC=$ac_cv_prog_CC |
795ca3e5 | 1767 | if test -n "$CC"; then |
ad6254c5 AK |
1768 | echo "$as_me:$LINENO: result: $CC" >&5 |
1769 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1770 | else |
ad6254c5 AK |
1771 | echo "$as_me:$LINENO: result: no" >&5 |
1772 | echo "${ECHO_T}no" >&6 | |
795ca3e5 | 1773 | fi |
ad6254c5 AK |
1774 | |
1775 | test -n "$CC" && break | |
1776 | done | |
1777 | fi | |
1778 | if test -z "$CC"; then | |
1779 | ac_ct_CC=$CC | |
1780 | for ac_prog in cl | |
1781 | do | |
1782 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1783 | set dummy $ac_prog; ac_word=$2 | |
1784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1786 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1788 | else | |
1789 | if test -n "$ac_ct_CC"; then | |
1790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1791 | else | |
1792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1793 | for as_dir in $PATH | |
1794 | do | |
1795 | IFS=$as_save_IFS | |
1796 | test -z "$as_dir" && as_dir=. | |
1797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1799 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1801 | break 2 | |
795ca3e5 | 1802 | fi |
ad6254c5 AK |
1803 | done |
1804 | done | |
1805 | ||
1806 | fi | |
1807 | fi | |
1808 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1809 | if test -n "$ac_ct_CC"; then | |
1810 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1811 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1812 | else | |
1813 | echo "$as_me:$LINENO: result: no" >&5 | |
1814 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1815 | fi |
1816 | ||
ad6254c5 AK |
1817 | test -n "$ac_ct_CC" && break |
1818 | done | |
795ca3e5 | 1819 | |
ad6254c5 AK |
1820 | CC=$ac_ct_CC |
1821 | fi | |
1822 | ||
1823 | fi | |
1824 | ||
1825 | ||
1826 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1827 | See \`config.log' for more details." >&5 | |
1828 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1829 | See \`config.log' for more details." >&2;} | |
1830 | { (exit 1); exit 1; }; } | |
1831 | ||
1832 | # Provide some information about the compiler. | |
1833 | echo "$as_me:$LINENO:" \ | |
1834 | "checking for C compiler version" >&5 | |
1835 | ac_compiler=`set X $ac_compile; echo $2` | |
1836 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1837 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1838 | ac_status=$? | |
1839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1840 | (exit $ac_status); } | |
1841 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1842 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1843 | ac_status=$? | |
1844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1845 | (exit $ac_status); } | |
1846 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1847 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1848 | ac_status=$? | |
1849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1850 | (exit $ac_status); } | |
1851 | ||
1852 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
1853 | /* confdefs.h. */ |
1854 | _ACEOF | |
1855 | cat confdefs.h >>conftest.$ac_ext | |
1856 | cat >>conftest.$ac_ext <<_ACEOF | |
1857 | /* end confdefs.h. */ | |
1858 | ||
1859 | int | |
1860 | main () | |
1861 | { | |
1862 | ||
1863 | ; | |
1864 | return 0; | |
1865 | } | |
1866 | _ACEOF | |
1867 | ac_clean_files_save=$ac_clean_files | |
1868 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1869 | # Try to create an executable without -o first, disregard a.out. | |
1870 | # It will help us diagnose broken compilers, and finding out an intuition | |
1871 | # of exeext. | |
8a2fc586 AK |
1872 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1873 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ad6254c5 AK |
1874 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1875 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1876 | (eval $ac_link_default) 2>&5 | |
1877 | ac_status=$? | |
1878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1879 | (exit $ac_status); }; then | |
1880 | # Find the output, starting from the most likely. This scheme is | |
1881 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1882 | # resort. | |
1883 | ||
1884 | # Be careful to initialize this variable, since it used to be cached. | |
1885 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1886 | ac_cv_exeext= | |
1887 | # b.out is created by i960 compilers. | |
1888 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1889 | do | |
1890 | test -f "$ac_file" || continue | |
1891 | case $ac_file in | |
1892 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
8a2fc586 | 1893 | ;; |
ad6254c5 | 1894 | conftest.$ac_ext ) |
8a2fc586 AK |
1895 | # This is the source file. |
1896 | ;; | |
ad6254c5 | 1897 | [ab].out ) |
8a2fc586 AK |
1898 | # We found the default executable, but exeext='' is most |
1899 | # certainly right. | |
1900 | break;; | |
ad6254c5 | 1901 | *.* ) |
8a2fc586 AK |
1902 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1903 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1904 | # but it would be cool to find out if it's true. Does anybody | |
1905 | # maintain Libtool? --akim. | |
1906 | export ac_cv_exeext | |
1907 | break;; | |
ad6254c5 | 1908 | * ) |
8a2fc586 | 1909 | break;; |
ad6254c5 AK |
1910 | esac |
1911 | done | |
1912 | else | |
1913 | echo "$as_me: failed program was:" >&5 | |
1914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1915 | ||
1916 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1917 | See \`config.log' for more details." >&5 | |
1918 | echo "$as_me: error: C compiler cannot create executables | |
1919 | See \`config.log' for more details." >&2;} | |
1920 | { (exit 77); exit 77; }; } | |
1921 | fi | |
1922 | ||
1923 | ac_exeext=$ac_cv_exeext | |
1924 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1925 | echo "${ECHO_T}$ac_file" >&6 | |
1926 | ||
1927 | # Check the compiler produces executables we can run. If not, either | |
1928 | # the compiler is broken, or we cross compile. | |
1929 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1930 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1931 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1932 | # If not cross compiling, check that we can run a simple program. | |
1933 | if test "$cross_compiling" != yes; then | |
1934 | if { ac_try='./$ac_file' | |
1935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1936 | (eval $ac_try) 2>&5 | |
1937 | ac_status=$? | |
1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1939 | (exit $ac_status); }; }; then | |
1940 | cross_compiling=no | |
795ca3e5 | 1941 | else |
ad6254c5 AK |
1942 | if test "$cross_compiling" = maybe; then |
1943 | cross_compiling=yes | |
1944 | else | |
1945 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1946 | If you meant to cross compile, use \`--host'. | |
1947 | See \`config.log' for more details." >&5 | |
1948 | echo "$as_me: error: cannot run C compiled programs. | |
1949 | If you meant to cross compile, use \`--host'. | |
1950 | See \`config.log' for more details." >&2;} | |
1951 | { (exit 1); exit 1; }; } | |
1952 | fi | |
795ca3e5 | 1953 | fi |
80992638 | 1954 | fi |
ad6254c5 AK |
1955 | echo "$as_me:$LINENO: result: yes" >&5 |
1956 | echo "${ECHO_T}yes" >&6 | |
1957 | ||
1958 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1959 | ac_clean_files=$ac_clean_files_save | |
1960 | # Check the compiler produces executables we can run. If not, either | |
1961 | # the compiler is broken, or we cross compile. | |
1962 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1963 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1964 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1965 | echo "${ECHO_T}$cross_compiling" >&6 | |
1966 | ||
1967 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1968 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1970 | (eval $ac_link) 2>&5 | |
1971 | ac_status=$? | |
1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1973 | (exit $ac_status); }; then | |
1974 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1975 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1976 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1977 | # `rm'. | |
1978 | for ac_file in conftest.exe conftest conftest.*; do | |
1979 | test -f "$ac_file" || continue | |
1980 | case $ac_file in | |
1981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1982 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
8a2fc586 AK |
1983 | export ac_cv_exeext |
1984 | break;; | |
ad6254c5 AK |
1985 | * ) break;; |
1986 | esac | |
1987 | done | |
80992638 | 1988 | else |
ad6254c5 AK |
1989 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1990 | See \`config.log' for more details." >&5 | |
1991 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1992 | See \`config.log' for more details." >&2;} | |
1993 | { (exit 1); exit 1; }; } | |
1994 | fi | |
1995 | ||
1996 | rm -f conftest$ac_cv_exeext | |
1997 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1998 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1999 | ||
2000 | rm -f conftest.$ac_ext | |
2001 | EXEEXT=$ac_cv_exeext | |
2002 | ac_exeext=$EXEEXT | |
2003 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2004 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2005 | if test "${ac_cv_objext+set}" = set; then | |
2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2007 | else |
ad6254c5 | 2008 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2009 | /* confdefs.h. */ |
2010 | _ACEOF | |
2011 | cat confdefs.h >>conftest.$ac_ext | |
2012 | cat >>conftest.$ac_ext <<_ACEOF | |
2013 | /* end confdefs.h. */ | |
2014 | ||
2015 | int | |
2016 | main () | |
2017 | { | |
2018 | ||
2019 | ; | |
2020 | return 0; | |
2021 | } | |
2022 | _ACEOF | |
2023 | rm -f conftest.o conftest.obj | |
2024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2025 | (eval $ac_compile) 2>&5 | |
2026 | ac_status=$? | |
2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2028 | (exit $ac_status); }; then | |
2029 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2030 | case $ac_file in | |
2031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2032 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2033 | break;; | |
2034 | esac | |
2035 | done | |
2036 | else | |
2037 | echo "$as_me: failed program was:" >&5 | |
2038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2039 | ||
2040 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2041 | See \`config.log' for more details." >&5 | |
2042 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2043 | See \`config.log' for more details." >&2;} | |
2044 | { (exit 1); exit 1; }; } | |
2045 | fi | |
2046 | ||
2047 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2048 | fi | |
2049 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2050 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2051 | OBJEXT=$ac_cv_objext | |
2052 | ac_objext=$OBJEXT | |
2053 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2054 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2055 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2057 | else | |
2058 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2059 | /* confdefs.h. */ |
2060 | _ACEOF | |
2061 | cat confdefs.h >>conftest.$ac_ext | |
2062 | cat >>conftest.$ac_ext <<_ACEOF | |
2063 | /* end confdefs.h. */ | |
2064 | ||
2065 | int | |
2066 | main () | |
2067 | { | |
2068 | #ifndef __GNUC__ | |
2069 | choke me | |
2070 | #endif | |
80992638 | 2071 | |
ad6254c5 AK |
2072 | ; |
2073 | return 0; | |
2074 | } | |
2075 | _ACEOF | |
2076 | rm -f conftest.$ac_objext | |
2077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2078 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2079 | ac_status=$? |
8a2fc586 AK |
2080 | grep -v '^ *+' conftest.er1 >conftest.err |
2081 | rm -f conftest.er1 | |
2082 | cat conftest.err >&5 | |
ad6254c5 AK |
2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2084 | (exit $ac_status); } && | |
8a2fc586 AK |
2085 | { ac_try='test -z "$ac_c_werror_flag" |
2086 | || test ! -s conftest.err' | |
2087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2088 | (eval $ac_try) 2>&5 | |
2089 | ac_status=$? | |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2091 | (exit $ac_status); }; } && | |
2092 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2094 | (eval $ac_try) 2>&5 | |
2095 | ac_status=$? | |
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2097 | (exit $ac_status); }; }; then | |
2098 | ac_compiler_gnu=yes | |
80992638 | 2099 | else |
ad6254c5 AK |
2100 | echo "$as_me: failed program was:" >&5 |
2101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2102 | ||
2103 | ac_compiler_gnu=no | |
8106cdd5 | 2104 | fi |
8a2fc586 | 2105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2106 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2107 | |
ad6254c5 AK |
2108 | fi |
2109 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2110 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2111 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2112 | ac_test_CFLAGS=${CFLAGS+set} | |
2113 | ac_save_CFLAGS=$CFLAGS | |
2114 | CFLAGS="-g" | |
2115 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2116 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2117 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2119 | else |
ad6254c5 | 2120 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2121 | /* confdefs.h. */ |
2122 | _ACEOF | |
2123 | cat confdefs.h >>conftest.$ac_ext | |
2124 | cat >>conftest.$ac_ext <<_ACEOF | |
2125 | /* end confdefs.h. */ | |
2126 | ||
2127 | int | |
2128 | main () | |
2129 | { | |
2130 | ||
2131 | ; | |
2132 | return 0; | |
2133 | } | |
2134 | _ACEOF | |
2135 | rm -f conftest.$ac_objext | |
2136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2137 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2138 | ac_status=$? |
8a2fc586 AK |
2139 | grep -v '^ *+' conftest.er1 >conftest.err |
2140 | rm -f conftest.er1 | |
2141 | cat conftest.err >&5 | |
ad6254c5 AK |
2142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2143 | (exit $ac_status); } && | |
8a2fc586 AK |
2144 | { ac_try='test -z "$ac_c_werror_flag" |
2145 | || test ! -s conftest.err' | |
2146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2147 | (eval $ac_try) 2>&5 | |
2148 | ac_status=$? | |
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2150 | (exit $ac_status); }; } && | |
2151 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2153 | (eval $ac_try) 2>&5 | |
2154 | ac_status=$? | |
2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2156 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2157 | ac_cv_prog_cc_g=yes |
2158 | else | |
ad6254c5 AK |
2159 | echo "$as_me: failed program was:" >&5 |
2160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2161 | |
ad6254c5 | 2162 | ac_cv_prog_cc_g=no |
8106cdd5 | 2163 | fi |
8a2fc586 | 2164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2165 | fi |
2166 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2167 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 2168 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2169 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2170 | elif test $ac_cv_prog_cc_g = yes; then |
2171 | if test "$GCC" = yes; then | |
2172 | CFLAGS="-g -O2" | |
2173 | else | |
2174 | CFLAGS="-g" | |
2175 | fi | |
2176 | else | |
2177 | if test "$GCC" = yes; then | |
2178 | CFLAGS="-O2" | |
2179 | else | |
2180 | CFLAGS= | |
2181 | fi | |
2182 | fi | |
ad6254c5 AK |
2183 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2184 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2185 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2187 | else | |
2188 | ac_cv_prog_cc_stdc=no | |
2189 | ac_save_CC=$CC | |
2190 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2191 | /* confdefs.h. */ |
2192 | _ACEOF | |
2193 | cat confdefs.h >>conftest.$ac_ext | |
2194 | cat >>conftest.$ac_ext <<_ACEOF | |
2195 | /* end confdefs.h. */ | |
2196 | #include <stdarg.h> | |
2197 | #include <stdio.h> | |
2198 | #include <sys/types.h> | |
2199 | #include <sys/stat.h> | |
2200 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2201 | struct buf { int x; }; | |
2202 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2203 | static char *e (p, i) | |
2204 | char **p; | |
2205 | int i; | |
2206 | { | |
2207 | return p[i]; | |
2208 | } | |
2209 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2210 | { | |
2211 | char *s; | |
2212 | va_list v; | |
2213 | va_start (v,p); | |
2214 | s = g (p, va_arg (v,int)); | |
2215 | va_end (v); | |
2216 | return s; | |
2217 | } | |
8a2fc586 AK |
2218 | |
2219 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2220 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2221 | These don't provoke an error unfortunately, instead are silently treated | |
2222 | as 'x'. The following induces an error, until -std1 is added to get | |
2223 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2224 | array size at least. It's necessary to write '\x00'==0 to get something | |
2225 | that's true only with -std1. */ | |
2226 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2227 | ||
ad6254c5 AK |
2228 | int test (int i, double x); |
2229 | struct s1 {int (*f) (int a);}; | |
2230 | struct s2 {int (*f) (double a);}; | |
2231 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2232 | int argc; | |
2233 | char **argv; | |
2234 | int | |
2235 | main () | |
2236 | { | |
2237 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2238 | ; | |
2239 | return 0; | |
2240 | } | |
2241 | _ACEOF | |
2242 | # Don't try gcc -ansi; that turns off useful extensions and | |
2243 | # breaks some systems' header files. | |
2244 | # AIX -qlanglvl=ansi | |
2245 | # Ultrix and OSF/1 -std1 | |
2246 | # HP-UX 10.20 and later -Ae | |
2247 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2248 | # SVR4 -Xc -D__EXTENSIONS__ | |
2249 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2250 | do | |
2251 | CC="$ac_save_CC $ac_arg" | |
2252 | rm -f conftest.$ac_objext | |
2253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2254 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2255 | ac_status=$? |
8a2fc586 AK |
2256 | grep -v '^ *+' conftest.er1 >conftest.err |
2257 | rm -f conftest.er1 | |
2258 | cat conftest.err >&5 | |
ad6254c5 AK |
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2260 | (exit $ac_status); } && | |
8a2fc586 AK |
2261 | { ac_try='test -z "$ac_c_werror_flag" |
2262 | || test ! -s conftest.err' | |
2263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2264 | (eval $ac_try) 2>&5 | |
2265 | ac_status=$? | |
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2267 | (exit $ac_status); }; } && | |
2268 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2270 | (eval $ac_try) 2>&5 | |
2271 | ac_status=$? | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); }; }; then | |
2274 | ac_cv_prog_cc_stdc=$ac_arg | |
2275 | break | |
2276 | else | |
2277 | echo "$as_me: failed program was:" >&5 | |
2278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2279 | ||
2280 | fi | |
8a2fc586 | 2281 | rm -f conftest.err conftest.$ac_objext |
ad6254c5 AK |
2282 | done |
2283 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2284 | CC=$ac_save_CC | |
2285 | ||
2286 | fi | |
2287 | ||
2288 | case "x$ac_cv_prog_cc_stdc" in | |
2289 | x|xno) | |
2290 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2291 | echo "${ECHO_T}none needed" >&6 ;; | |
2292 | *) | |
2293 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2294 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2295 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2296 | esac | |
2297 | ||
2298 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2299 | # in C++ we need to declare it. In case someone uses the same compiler | |
2300 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2301 | # the declaration of exit, since it's the most demanding environment. | |
2302 | cat >conftest.$ac_ext <<_ACEOF | |
2303 | #ifndef __cplusplus | |
2304 | choke me | |
2305 | #endif | |
2306 | _ACEOF | |
2307 | rm -f conftest.$ac_objext | |
2308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2309 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2310 | ac_status=$? |
8a2fc586 AK |
2311 | grep -v '^ *+' conftest.er1 >conftest.err |
2312 | rm -f conftest.er1 | |
2313 | cat conftest.err >&5 | |
ad6254c5 AK |
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2315 | (exit $ac_status); } && | |
8a2fc586 AK |
2316 | { ac_try='test -z "$ac_c_werror_flag" |
2317 | || test ! -s conftest.err' | |
2318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2319 | (eval $ac_try) 2>&5 | |
2320 | ac_status=$? | |
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2322 | (exit $ac_status); }; } && | |
2323 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2325 | (eval $ac_try) 2>&5 | |
2326 | ac_status=$? | |
2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2328 | (exit $ac_status); }; }; then | |
2329 | for ac_declaration in \ | |
8a2fc586 | 2330 | '' \ |
ad6254c5 AK |
2331 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2332 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2333 | 'extern "C" void exit (int) throw ();' \ | |
2334 | 'extern "C" void exit (int);' \ | |
2335 | 'void exit (int);' | |
2336 | do | |
2337 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2338 | /* confdefs.h. */ |
2339 | _ACEOF | |
2340 | cat confdefs.h >>conftest.$ac_ext | |
2341 | cat >>conftest.$ac_ext <<_ACEOF | |
2342 | /* end confdefs.h. */ | |
c1c065a3 | 2343 | $ac_declaration |
8a2fc586 | 2344 | #include <stdlib.h> |
ad6254c5 AK |
2345 | int |
2346 | main () | |
2347 | { | |
2348 | exit (42); | |
2349 | ; | |
2350 | return 0; | |
2351 | } | |
2352 | _ACEOF | |
2353 | rm -f conftest.$ac_objext | |
2354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2355 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2356 | ac_status=$? |
8a2fc586 AK |
2357 | grep -v '^ *+' conftest.er1 >conftest.err |
2358 | rm -f conftest.er1 | |
2359 | cat conftest.err >&5 | |
ad6254c5 AK |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2361 | (exit $ac_status); } && | |
8a2fc586 AK |
2362 | { ac_try='test -z "$ac_c_werror_flag" |
2363 | || test ! -s conftest.err' | |
2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2365 | (eval $ac_try) 2>&5 | |
2366 | ac_status=$? | |
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2368 | (exit $ac_status); }; } && | |
2369 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2371 | (eval $ac_try) 2>&5 | |
2372 | ac_status=$? | |
2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2374 | (exit $ac_status); }; }; then | |
2375 | : | |
2376 | else | |
2377 | echo "$as_me: failed program was:" >&5 | |
2378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2379 | ||
2380 | continue | |
2381 | fi | |
8a2fc586 | 2382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2383 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2384 | /* confdefs.h. */ |
2385 | _ACEOF | |
2386 | cat confdefs.h >>conftest.$ac_ext | |
2387 | cat >>conftest.$ac_ext <<_ACEOF | |
2388 | /* end confdefs.h. */ | |
2389 | $ac_declaration | |
2390 | int | |
2391 | main () | |
2392 | { | |
2393 | exit (42); | |
2394 | ; | |
2395 | return 0; | |
2396 | } | |
2397 | _ACEOF | |
2398 | rm -f conftest.$ac_objext | |
2399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2400 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2401 | ac_status=$? |
8a2fc586 AK |
2402 | grep -v '^ *+' conftest.er1 >conftest.err |
2403 | rm -f conftest.er1 | |
2404 | cat conftest.err >&5 | |
ad6254c5 AK |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2406 | (exit $ac_status); } && | |
8a2fc586 AK |
2407 | { ac_try='test -z "$ac_c_werror_flag" |
2408 | || test ! -s conftest.err' | |
2409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2410 | (eval $ac_try) 2>&5 | |
2411 | ac_status=$? | |
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2413 | (exit $ac_status); }; } && | |
2414 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2416 | (eval $ac_try) 2>&5 | |
2417 | ac_status=$? | |
2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2419 | (exit $ac_status); }; }; then | |
2420 | break | |
2421 | else | |
2422 | echo "$as_me: failed program was:" >&5 | |
2423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2424 | ||
2425 | fi | |
8a2fc586 | 2426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2427 | done |
2428 | rm -f conftest* | |
2429 | if test -n "$ac_declaration"; then | |
2430 | echo '#ifdef __cplusplus' >>confdefs.h | |
2431 | echo $ac_declaration >>confdefs.h | |
2432 | echo '#endif' >>confdefs.h | |
2433 | fi | |
2434 | ||
2435 | else | |
2436 | echo "$as_me: failed program was:" >&5 | |
2437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2438 | ||
2439 | fi | |
8a2fc586 | 2440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2441 | ac_ext=c |
2442 | ac_cpp='$CPP $CPPFLAGS' | |
2443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2446 | |
2447 | # Find a good install program. We prefer a C program (faster), | |
2448 | # so one script is as good as another. But avoid the broken or | |
2449 | # incompatible versions: | |
2450 | # SysV /etc/install, /usr/sbin/install | |
2451 | # SunOS /usr/etc/install | |
2452 | # IRIX /sbin/install | |
2453 | # AIX /bin/install | |
ad6254c5 | 2454 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2455 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2456 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2457 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8a2fc586 | 2458 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2459 | # ./install, which can be erroneously created by make from ./install.sh. |
ad6254c5 AK |
2460 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2461 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2462 | if test -z "$INSTALL"; then |
ad6254c5 AK |
2463 | if test "${ac_cv_path_install+set}" = set; then |
2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2465 | else | |
2466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2467 | for as_dir in $PATH | |
2468 | do | |
2469 | IFS=$as_save_IFS | |
2470 | test -z "$as_dir" && as_dir=. | |
2471 | # Account for people who put trailing slashes in PATH elements. | |
2472 | case $as_dir/ in | |
2473 | ./ | .// | /cC/* | \ | |
2474 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8a2fc586 | 2475 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
2476 | /usr/ucb/* ) ;; |
2477 | *) | |
2478 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2479 | # Don't use installbsd from OSF since it installs stuff as root | |
2480 | # by default. | |
2481 | for ac_prog in ginstall scoinst install; do | |
2482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a2fc586 AK |
2483 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2484 | if test $ac_prog = install && | |
2485 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2486 | # AIX install. It has an incompatible calling convention. | |
2487 | : | |
2488 | elif test $ac_prog = install && | |
2489 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2490 | # program-specific install script used by HP pwplus--don't use. | |
2491 | : | |
2492 | else | |
2493 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2494 | break 3 | |
2495 | fi | |
2496 | fi | |
795ca3e5 | 2497 | done |
ad6254c5 AK |
2498 | done |
2499 | ;; | |
2500 | esac | |
2501 | done | |
2502 | ||
795ca3e5 AK |
2503 | |
2504 | fi | |
2505 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 2506 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2507 | else |
2508 | # As a last resort, use the slow shell script. We don't cache a | |
2509 | # path for INSTALL within a source directory, because that will | |
2510 | # break other packages using the cache if that directory is | |
2511 | # removed, or if the path is relative. | |
ad6254c5 | 2512 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2513 | fi |
2514 | fi | |
ad6254c5 AK |
2515 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2516 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2517 | |
2518 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2519 | # It thinks the first close brace ends the variable substitution. | |
2520 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2521 | ||
ad6254c5 | 2522 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2523 | |
2524 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2525 | ||
ad6254c5 AK |
2526 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2527 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2528 | LN_S=$as_ln_s | |
2529 | if test "$LN_S" = "ln -s"; then | |
2530 | echo "$as_me:$LINENO: result: yes" >&5 | |
2531 | echo "${ECHO_T}yes" >&6 | |
80992638 | 2532 | else |
ad6254c5 AK |
2533 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2534 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2535 | fi |
2536 | ||
ad6254c5 AK |
2537 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2538 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
8a2fc586 | 2539 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ad6254c5 AK |
2540 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2542 | else |
ad6254c5 | 2543 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2544 | all: |
ad6254c5 AK |
2545 | @echo 'ac_maketemp="$(MAKE)"' |
2546 | _ACEOF | |
795ca3e5 | 2547 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ad6254c5 | 2548 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2549 | if test -n "$ac_maketemp"; then |
2550 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2551 | else | |
2552 | eval ac_cv_prog_make_${ac_make}_set=no | |
2553 | fi | |
ad6254c5 | 2554 | rm -f conftest.make |
795ca3e5 AK |
2555 | fi |
2556 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
ad6254c5 AK |
2557 | echo "$as_me:$LINENO: result: yes" >&5 |
2558 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2559 | SET_MAKE= |
2560 | else | |
ad6254c5 AK |
2561 | echo "$as_me:$LINENO: result: no" >&5 |
2562 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2563 | SET_MAKE="MAKE=${MAKE-make}" |
2564 | fi | |
2565 | ||
ad6254c5 AK |
2566 | if test -n "$ac_tool_prefix"; then |
2567 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2568 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2569 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2571 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2573 | else |
2574 | if test -n "$RANLIB"; then | |
2575 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2576 | else | |
ad6254c5 AK |
2577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2578 | for as_dir in $PATH | |
2579 | do | |
2580 | IFS=$as_save_IFS | |
2581 | test -z "$as_dir" && as_dir=. | |
2582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2584 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2586 | break 2 | |
2587 | fi | |
2588 | done | |
2589 | done | |
2590 | ||
795ca3e5 AK |
2591 | fi |
2592 | fi | |
ad6254c5 | 2593 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2594 | if test -n "$RANLIB"; then |
ad6254c5 AK |
2595 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2596 | echo "${ECHO_T}$RANLIB" >&6 | |
8106cdd5 | 2597 | else |
ad6254c5 AK |
2598 | echo "$as_me:$LINENO: result: no" >&5 |
2599 | echo "${ECHO_T}no" >&6 | |
8106cdd5 AK |
2600 | fi |
2601 | ||
795ca3e5 | 2602 | fi |
ad6254c5 AK |
2603 | if test -z "$ac_cv_prog_RANLIB"; then |
2604 | ac_ct_RANLIB=$RANLIB | |
2605 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2606 | set dummy ranlib; ac_word=$2 | |
2607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2609 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 2611 | else |
ad6254c5 AK |
2612 | if test -n "$ac_ct_RANLIB"; then |
2613 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2614 | else | |
2615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2616 | for as_dir in $PATH | |
2617 | do | |
2618 | IFS=$as_save_IFS | |
2619 | test -z "$as_dir" && as_dir=. | |
2620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2622 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2624 | break 2 | |
2625 | fi | |
2626 | done | |
795ca3e5 | 2627 | done |
8106cdd5 | 2628 | |
ad6254c5 | 2629 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
795ca3e5 | 2630 | fi |
80992638 | 2631 | fi |
ad6254c5 AK |
2632 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2633 | if test -n "$ac_ct_RANLIB"; then | |
2634 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2635 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
80992638 | 2636 | else |
ad6254c5 AK |
2637 | echo "$as_me:$LINENO: result: no" >&5 |
2638 | echo "${ECHO_T}no" >&6 | |
8106cdd5 | 2639 | fi |
8106cdd5 | 2640 | |
ad6254c5 | 2641 | RANLIB=$ac_ct_RANLIB |
80992638 | 2642 | else |
ad6254c5 | 2643 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 2644 | fi |
795ca3e5 | 2645 | |
8a2fc586 AK |
2646 | # Extract the first word of "cflow", so it can be a program name with args. |
2647 | set dummy cflow; ac_word=$2 | |
2648 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2650 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then | |
2651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2652 | else | |
2653 | case $CFLOW_CMD in | |
2654 | [\\/]* | ?:[\\/]*) | |
2655 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
2656 | ;; | |
2657 | *) | |
2658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2659 | for as_dir in $PATH | |
2660 | do | |
2661 | IFS=$as_save_IFS | |
2662 | test -z "$as_dir" && as_dir=. | |
2663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2665 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
2666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2667 | break 2 | |
2668 | fi | |
2669 | done | |
2670 | done | |
2671 | ||
2672 | ;; | |
2673 | esac | |
2674 | fi | |
2675 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
2676 | ||
2677 | if test -n "$CFLOW_CMD"; then | |
2678 | echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 | |
2679 | echo "${ECHO_T}$CFLOW_CMD" >&6 | |
2680 | else | |
2681 | echo "$as_me:$LINENO: result: no" >&5 | |
2682 | echo "${ECHO_T}no" >&6 | |
2683 | fi | |
2684 | ||
2685 | # Extract the first word of "cscope", so it can be a program name with args. | |
2686 | set dummy cscope; ac_word=$2 | |
2687 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2689 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then | |
2690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2691 | else | |
2692 | case $CSCOPE_CMD in | |
2693 | [\\/]* | ?:[\\/]*) | |
2694 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
2695 | ;; | |
2696 | *) | |
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2698 | for as_dir in $PATH | |
2699 | do | |
2700 | IFS=$as_save_IFS | |
2701 | test -z "$as_dir" && as_dir=. | |
2702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2704 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
2705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2706 | break 2 | |
2707 | fi | |
2708 | done | |
2709 | done | |
2710 | ||
2711 | ;; | |
2712 | esac | |
2713 | fi | |
2714 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
2715 | ||
2716 | if test -n "$CSCOPE_CMD"; then | |
2717 | echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 | |
2718 | echo "${ECHO_T}$CSCOPE_CMD" >&6 | |
2719 | else | |
2720 | echo "$as_me:$LINENO: result: no" >&5 | |
2721 | echo "${ECHO_T}no" >&6 | |
2722 | fi | |
2723 | ||
795ca3e5 | 2724 | |
ad6254c5 AK |
2725 | ################################################################################ |
2726 | ||
2727 | ||
2728 | ||
2729 | ||
2730 | ||
2731 | ||
2732 | ac_header_dirent=no | |
2733 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
2734 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2735 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2736 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 2739 | else |
ad6254c5 | 2740 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2741 | /* confdefs.h. */ |
2742 | _ACEOF | |
2743 | cat confdefs.h >>conftest.$ac_ext | |
2744 | cat >>conftest.$ac_ext <<_ACEOF | |
2745 | /* end confdefs.h. */ | |
2746 | #include <sys/types.h> | |
2747 | #include <$ac_hdr> | |
2748 | ||
2749 | int | |
2750 | main () | |
2751 | { | |
2752 | if ((DIR *) 0) | |
2753 | return 0; | |
2754 | ; | |
2755 | return 0; | |
2756 | } | |
2757 | _ACEOF | |
2758 | rm -f conftest.$ac_objext | |
2759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 2760 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2761 | ac_status=$? |
8a2fc586 AK |
2762 | grep -v '^ *+' conftest.er1 >conftest.err |
2763 | rm -f conftest.er1 | |
2764 | cat conftest.err >&5 | |
ad6254c5 AK |
2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2766 | (exit $ac_status); } && | |
8a2fc586 AK |
2767 | { ac_try='test -z "$ac_c_werror_flag" |
2768 | || test ! -s conftest.err' | |
2769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2770 | (eval $ac_try) 2>&5 | |
2771 | ac_status=$? | |
2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2773 | (exit $ac_status); }; } && | |
2774 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2776 | (eval $ac_try) 2>&5 | |
2777 | ac_status=$? | |
2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2779 | (exit $ac_status); }; }; then | |
2780 | eval "$as_ac_Header=yes" | |
8106cdd5 | 2781 | else |
ad6254c5 AK |
2782 | echo "$as_me: failed program was:" >&5 |
2783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2784 | ||
2785 | eval "$as_ac_Header=no" | |
795ca3e5 | 2786 | fi |
8a2fc586 | 2787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 2788 | fi |
ad6254c5 AK |
2789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2792 | cat >>confdefs.h <<_ACEOF | |
2793 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2794 | _ACEOF | |
2795 | ||
2796 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2797 | fi |
8106cdd5 | 2798 | |
ad6254c5 AK |
2799 | done |
2800 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2801 | if test $ac_header_dirent = dirent.h; then | |
2802 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
2803 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2804 | if test "${ac_cv_search_opendir+set}" = set; then | |
2805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2806 | else |
ad6254c5 AK |
2807 | ac_func_search_save_LIBS=$LIBS |
2808 | ac_cv_search_opendir=no | |
2809 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2810 | /* confdefs.h. */ |
2811 | _ACEOF | |
2812 | cat confdefs.h >>conftest.$ac_ext | |
2813 | cat >>conftest.$ac_ext <<_ACEOF | |
2814 | /* end confdefs.h. */ | |
2815 | ||
2816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2817 | #ifdef __cplusplus | |
2818 | extern "C" | |
2819 | #endif | |
2820 | /* We use char because int might match the return type of a gcc2 | |
2821 | builtin and then its argument prototype would still apply. */ | |
2822 | char opendir (); | |
2823 | int | |
2824 | main () | |
2825 | { | |
2826 | opendir (); | |
2827 | ; | |
2828 | return 0; | |
2829 | } | |
2830 | _ACEOF | |
2831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2833 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2834 | ac_status=$? |
8a2fc586 AK |
2835 | grep -v '^ *+' conftest.er1 >conftest.err |
2836 | rm -f conftest.er1 | |
2837 | cat conftest.err >&5 | |
ad6254c5 AK |
2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2839 | (exit $ac_status); } && | |
8a2fc586 AK |
2840 | { ac_try='test -z "$ac_c_werror_flag" |
2841 | || test ! -s conftest.err' | |
2842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2843 | (eval $ac_try) 2>&5 | |
2844 | ac_status=$? | |
2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2846 | (exit $ac_status); }; } && | |
2847 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2849 | (eval $ac_try) 2>&5 | |
2850 | ac_status=$? | |
2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2852 | (exit $ac_status); }; }; then | |
2853 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2854 | else |
ad6254c5 AK |
2855 | echo "$as_me: failed program was:" >&5 |
2856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2857 | ||
2858 | fi | |
8a2fc586 AK |
2859 | rm -f conftest.err conftest.$ac_objext \ |
2860 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2861 | if test "$ac_cv_search_opendir" = no; then |
2862 | for ac_lib in dir; do | |
2863 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2864 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2865 | /* confdefs.h. */ |
2866 | _ACEOF | |
2867 | cat confdefs.h >>conftest.$ac_ext | |
2868 | cat >>conftest.$ac_ext <<_ACEOF | |
2869 | /* end confdefs.h. */ | |
795ca3e5 | 2870 | |
ad6254c5 AK |
2871 | /* Override any gcc2 internal prototype to avoid an error. */ |
2872 | #ifdef __cplusplus | |
2873 | extern "C" | |
2874 | #endif | |
2875 | /* We use char because int might match the return type of a gcc2 | |
2876 | builtin and then its argument prototype would still apply. */ | |
2877 | char opendir (); | |
2878 | int | |
2879 | main () | |
2880 | { | |
2881 | opendir (); | |
2882 | ; | |
2883 | return 0; | |
2884 | } | |
2885 | _ACEOF | |
2886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2888 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2889 | ac_status=$? |
8a2fc586 AK |
2890 | grep -v '^ *+' conftest.er1 >conftest.err |
2891 | rm -f conftest.er1 | |
2892 | cat conftest.err >&5 | |
ad6254c5 AK |
2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2894 | (exit $ac_status); } && | |
8a2fc586 AK |
2895 | { ac_try='test -z "$ac_c_werror_flag" |
2896 | || test ! -s conftest.err' | |
2897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2898 | (eval $ac_try) 2>&5 | |
2899 | ac_status=$? | |
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2901 | (exit $ac_status); }; } && | |
2902 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2904 | (eval $ac_try) 2>&5 | |
2905 | ac_status=$? | |
2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2907 | (exit $ac_status); }; }; then | |
2908 | ac_cv_search_opendir="-l$ac_lib" | |
2909 | break | |
795ca3e5 | 2910 | else |
ad6254c5 AK |
2911 | echo "$as_me: failed program was:" >&5 |
2912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 AK |
2913 | |
2914 | fi | |
8a2fc586 AK |
2915 | rm -f conftest.err conftest.$ac_objext \ |
2916 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2917 | done |
795ca3e5 | 2918 | fi |
ad6254c5 AK |
2919 | LIBS=$ac_func_search_save_LIBS |
2920 | fi | |
2921 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2922 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2923 | if test "$ac_cv_search_opendir" != no; then | |
2924 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
795ca3e5 AK |
2925 | |
2926 | fi | |
2927 | ||
795ca3e5 | 2928 | else |
ad6254c5 AK |
2929 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2930 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2931 | if test "${ac_cv_search_opendir+set}" = set; then | |
2932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2933 | else | |
2934 | ac_func_search_save_LIBS=$LIBS | |
2935 | ac_cv_search_opendir=no | |
2936 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2937 | /* confdefs.h. */ |
2938 | _ACEOF | |
2939 | cat confdefs.h >>conftest.$ac_ext | |
2940 | cat >>conftest.$ac_ext <<_ACEOF | |
2941 | /* end confdefs.h. */ | |
80992638 | 2942 | |
ad6254c5 AK |
2943 | /* Override any gcc2 internal prototype to avoid an error. */ |
2944 | #ifdef __cplusplus | |
2945 | extern "C" | |
2946 | #endif | |
2947 | /* We use char because int might match the return type of a gcc2 | |
2948 | builtin and then its argument prototype would still apply. */ | |
2949 | char opendir (); | |
2950 | int | |
2951 | main () | |
2952 | { | |
2953 | opendir (); | |
2954 | ; | |
2955 | return 0; | |
2956 | } | |
2957 | _ACEOF | |
2958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 2960 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2961 | ac_status=$? |
8a2fc586 AK |
2962 | grep -v '^ *+' conftest.er1 >conftest.err |
2963 | rm -f conftest.er1 | |
2964 | cat conftest.err >&5 | |
ad6254c5 AK |
2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2966 | (exit $ac_status); } && | |
8a2fc586 AK |
2967 | { ac_try='test -z "$ac_c_werror_flag" |
2968 | || test ! -s conftest.err' | |
2969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2970 | (eval $ac_try) 2>&5 | |
2971 | ac_status=$? | |
2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2973 | (exit $ac_status); }; } && | |
2974 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2976 | (eval $ac_try) 2>&5 | |
2977 | ac_status=$? | |
2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2979 | (exit $ac_status); }; }; then | |
2980 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2981 | else |
ad6254c5 AK |
2982 | echo "$as_me: failed program was:" >&5 |
2983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2984 | ||
2985 | fi | |
8a2fc586 AK |
2986 | rm -f conftest.err conftest.$ac_objext \ |
2987 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2988 | if test "$ac_cv_search_opendir" = no; then |
2989 | for ac_lib in x; do | |
2990 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2991 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2992 | /* confdefs.h. */ |
2993 | _ACEOF | |
2994 | cat confdefs.h >>conftest.$ac_ext | |
2995 | cat >>conftest.$ac_ext <<_ACEOF | |
2996 | /* end confdefs.h. */ | |
2997 | ||
2998 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2999 | #ifdef __cplusplus | |
3000 | extern "C" | |
3001 | #endif | |
3002 | /* We use char because int might match the return type of a gcc2 | |
3003 | builtin and then its argument prototype would still apply. */ | |
3004 | char opendir (); | |
3005 | int | |
3006 | main () | |
3007 | { | |
3008 | opendir (); | |
3009 | ; | |
3010 | return 0; | |
3011 | } | |
3012 | _ACEOF | |
3013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 3015 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 3016 | ac_status=$? |
8a2fc586 AK |
3017 | grep -v '^ *+' conftest.er1 >conftest.err |
3018 | rm -f conftest.er1 | |
3019 | cat conftest.err >&5 | |
ad6254c5 AK |
3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3021 | (exit $ac_status); } && | |
8a2fc586 AK |
3022 | { ac_try='test -z "$ac_c_werror_flag" |
3023 | || test ! -s conftest.err' | |
3024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3025 | (eval $ac_try) 2>&5 | |
3026 | ac_status=$? | |
3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3028 | (exit $ac_status); }; } && | |
3029 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
3030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3031 | (eval $ac_try) 2>&5 | |
3032 | ac_status=$? | |
3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3034 | (exit $ac_status); }; }; then | |
3035 | ac_cv_search_opendir="-l$ac_lib" | |
3036 | break | |
3037 | else | |
3038 | echo "$as_me: failed program was:" >&5 | |
3039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 3040 | |
795ca3e5 | 3041 | fi |
8a2fc586 AK |
3042 | rm -f conftest.err conftest.$ac_objext \ |
3043 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
3044 | done |
3045 | fi | |
3046 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 3047 | fi |
ad6254c5 AK |
3048 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3049 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
3050 | if test "$ac_cv_search_opendir" != no; then | |
3051 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8106cdd5 | 3052 | |
ad6254c5 | 3053 | fi |
8106cdd5 | 3054 | |
795ca3e5 | 3055 | fi |
8106cdd5 | 3056 | |
ad6254c5 AK |
3057 | ac_ext=c |
3058 | ac_cpp='$CPP $CPPFLAGS' | |
3059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3062 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3063 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3064 | # On Suns, sometimes $CPP names a directory. | |
3065 | if test -n "$CPP" && test -d "$CPP"; then | |
3066 | CPP= | |
3067 | fi | |
3068 | if test -z "$CPP"; then | |
3069 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3071 | else | |
3072 | # Double quotes because CPP needs to be expanded | |
3073 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3074 | do | |
3075 | ac_preproc_ok=false | |
3076 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 3077 | do |
ad6254c5 AK |
3078 | # Use a header file that comes with gcc, so configuring glibc |
3079 | # with a fresh cross-compiler works. | |
3080 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3081 | # <limits.h> exists even on freestanding compilers. | |
3082 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3083 | # not just through cpp. "Syntax error" is here to catch this case. | |
3084 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3085 | /* confdefs.h. */ |
3086 | _ACEOF | |
3087 | cat confdefs.h >>conftest.$ac_ext | |
3088 | cat >>conftest.$ac_ext <<_ACEOF | |
3089 | /* end confdefs.h. */ | |
3090 | #ifdef __STDC__ | |
3091 | # include <limits.h> | |
3092 | #else | |
3093 | # include <assert.h> | |
3094 | #endif | |
8a2fc586 | 3095 | Syntax error |
ad6254c5 AK |
3096 | _ACEOF |
3097 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3098 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3099 | ac_status=$? | |
3100 | grep -v '^ *+' conftest.er1 >conftest.err | |
3101 | rm -f conftest.er1 | |
3102 | cat conftest.err >&5 | |
3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3104 | (exit $ac_status); } >/dev/null; then | |
3105 | if test -s conftest.err; then | |
3106 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3107 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3108 | else |
3109 | ac_cpp_err= | |
3110 | fi | |
3111 | else | |
3112 | ac_cpp_err=yes | |
8106cdd5 | 3113 | fi |
ad6254c5 AK |
3114 | if test -z "$ac_cpp_err"; then |
3115 | : | |
3116 | else | |
3117 | echo "$as_me: failed program was:" >&5 | |
3118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3119 | ||
3120 | # Broken: fails on valid input. | |
3121 | continue | |
3122 | fi | |
3123 | rm -f conftest.err conftest.$ac_ext | |
3124 | ||
3125 | # OK, works on sane cases. Now check whether non-existent headers | |
3126 | # can be detected and how. | |
3127 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3128 | /* confdefs.h. */ |
3129 | _ACEOF | |
3130 | cat confdefs.h >>conftest.$ac_ext | |
3131 | cat >>conftest.$ac_ext <<_ACEOF | |
3132 | /* end confdefs.h. */ | |
3133 | #include <ac_nonexistent.h> | |
3134 | _ACEOF | |
3135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3137 | ac_status=$? | |
3138 | grep -v '^ *+' conftest.er1 >conftest.err | |
3139 | rm -f conftest.er1 | |
3140 | cat conftest.err >&5 | |
3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3142 | (exit $ac_status); } >/dev/null; then | |
3143 | if test -s conftest.err; then | |
3144 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3146 | else |
3147 | ac_cpp_err= | |
3148 | fi | |
3149 | else | |
3150 | ac_cpp_err=yes | |
8106cdd5 | 3151 | fi |
ad6254c5 AK |
3152 | if test -z "$ac_cpp_err"; then |
3153 | # Broken: success on invalid input. | |
3154 | continue | |
80992638 | 3155 | else |
ad6254c5 AK |
3156 | echo "$as_me: failed program was:" >&5 |
3157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3158 | ||
3159 | # Passes both tests. | |
3160 | ac_preproc_ok=: | |
3161 | break | |
795ca3e5 | 3162 | fi |
ad6254c5 AK |
3163 | rm -f conftest.err conftest.$ac_ext |
3164 | ||
795ca3e5 | 3165 | done |
ad6254c5 AK |
3166 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3167 | rm -f conftest.err conftest.$ac_ext | |
3168 | if $ac_preproc_ok; then | |
3169 | break | |
3170 | fi | |
795ca3e5 | 3171 | |
ad6254c5 AK |
3172 | done |
3173 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3174 | |
ad6254c5 AK |
3175 | fi |
3176 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3177 | else |
ad6254c5 | 3178 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3179 | fi |
ad6254c5 AK |
3180 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3181 | echo "${ECHO_T}$CPP" >&6 | |
3182 | ac_preproc_ok=false | |
3183 | for ac_c_preproc_warn_flag in '' yes | |
3184 | do | |
3185 | # Use a header file that comes with gcc, so configuring glibc | |
3186 | # with a fresh cross-compiler works. | |
3187 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3188 | # <limits.h> exists even on freestanding compilers. | |
3189 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3190 | # not just through cpp. "Syntax error" is here to catch this case. | |
3191 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3192 | /* confdefs.h. */ |
3193 | _ACEOF | |
3194 | cat confdefs.h >>conftest.$ac_ext | |
3195 | cat >>conftest.$ac_ext <<_ACEOF | |
3196 | /* end confdefs.h. */ | |
3197 | #ifdef __STDC__ | |
3198 | # include <limits.h> | |
3199 | #else | |
3200 | # include <assert.h> | |
3201 | #endif | |
8a2fc586 | 3202 | Syntax error |
ad6254c5 AK |
3203 | _ACEOF |
3204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3206 | ac_status=$? | |
3207 | grep -v '^ *+' conftest.er1 >conftest.err | |
3208 | rm -f conftest.er1 | |
3209 | cat conftest.err >&5 | |
3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3211 | (exit $ac_status); } >/dev/null; then | |
3212 | if test -s conftest.err; then | |
3213 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3215 | else |
3216 | ac_cpp_err= | |
3217 | fi | |
3218 | else | |
3219 | ac_cpp_err=yes | |
795ca3e5 | 3220 | fi |
ad6254c5 AK |
3221 | if test -z "$ac_cpp_err"; then |
3222 | : | |
3223 | else | |
3224 | echo "$as_me: failed program was:" >&5 | |
3225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3226 | ||
3227 | # Broken: fails on valid input. | |
3228 | continue | |
3229 | fi | |
3230 | rm -f conftest.err conftest.$ac_ext | |
3231 | ||
3232 | # OK, works on sane cases. Now check whether non-existent headers | |
3233 | # can be detected and how. | |
3234 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3235 | /* confdefs.h. */ |
3236 | _ACEOF | |
3237 | cat confdefs.h >>conftest.$ac_ext | |
3238 | cat >>conftest.$ac_ext <<_ACEOF | |
3239 | /* end confdefs.h. */ | |
3240 | #include <ac_nonexistent.h> | |
3241 | _ACEOF | |
3242 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3243 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3244 | ac_status=$? | |
3245 | grep -v '^ *+' conftest.er1 >conftest.err | |
3246 | rm -f conftest.er1 | |
3247 | cat conftest.err >&5 | |
3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3249 | (exit $ac_status); } >/dev/null; then | |
3250 | if test -s conftest.err; then | |
3251 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3252 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3253 | else |
3254 | ac_cpp_err= | |
3255 | fi | |
3256 | else | |
3257 | ac_cpp_err=yes | |
3258 | fi | |
3259 | if test -z "$ac_cpp_err"; then | |
3260 | # Broken: success on invalid input. | |
3261 | continue | |
3262 | else | |
3263 | echo "$as_me: failed program was:" >&5 | |
3264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3265 | |
ad6254c5 AK |
3266 | # Passes both tests. |
3267 | ac_preproc_ok=: | |
3268 | break | |
795ca3e5 | 3269 | fi |
ad6254c5 | 3270 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3271 | |
ad6254c5 AK |
3272 | done |
3273 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3274 | rm -f conftest.err conftest.$ac_ext | |
3275 | if $ac_preproc_ok; then | |
3276 | : | |
795ca3e5 | 3277 | else |
ad6254c5 AK |
3278 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3279 | See \`config.log' for more details." >&5 | |
3280 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3281 | See \`config.log' for more details." >&2;} | |
3282 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3283 | fi |
795ca3e5 | 3284 | |
ad6254c5 AK |
3285 | ac_ext=c |
3286 | ac_cpp='$CPP $CPPFLAGS' | |
3287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3290 | ||
3291 | ||
3292 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3293 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3294 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3296 | else | |
3297 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3298 | then ac_cv_prog_egrep='grep -E' | |
3299 | else ac_cv_prog_egrep='egrep' | |
3300 | fi | |
795ca3e5 | 3301 | fi |
ad6254c5 AK |
3302 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3303 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3304 | EGREP=$ac_cv_prog_egrep | |
80992638 | 3305 | |
795ca3e5 | 3306 | |
ad6254c5 AK |
3307 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3308 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3309 | if test "${ac_cv_header_stdc+set}" = set; then | |
3310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3311 | else |
ad6254c5 | 3312 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3313 | /* confdefs.h. */ |
3314 | _ACEOF | |
3315 | cat confdefs.h >>conftest.$ac_ext | |
3316 | cat >>conftest.$ac_ext <<_ACEOF | |
3317 | /* end confdefs.h. */ | |
80992638 | 3318 | #include <stdlib.h> |
ad6254c5 AK |
3319 | #include <stdarg.h> |
3320 | #include <string.h> | |
3321 | #include <float.h> | |
3322 | ||
3323 | int | |
3324 | main () | |
3325 | { | |
3326 | ||
3327 | ; | |
3328 | return 0; | |
3329 | } | |
3330 | _ACEOF | |
3331 | rm -f conftest.$ac_objext | |
3332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3333 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3334 | ac_status=$? |
8a2fc586 AK |
3335 | grep -v '^ *+' conftest.er1 >conftest.err |
3336 | rm -f conftest.er1 | |
3337 | cat conftest.err >&5 | |
ad6254c5 AK |
3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3339 | (exit $ac_status); } && | |
8a2fc586 AK |
3340 | { ac_try='test -z "$ac_c_werror_flag" |
3341 | || test ! -s conftest.err' | |
3342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3343 | (eval $ac_try) 2>&5 | |
3344 | ac_status=$? | |
3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3346 | (exit $ac_status); }; } && | |
3347 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3349 | (eval $ac_try) 2>&5 | |
3350 | ac_status=$? | |
3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3352 | (exit $ac_status); }; }; then | |
3353 | ac_cv_header_stdc=yes | |
795ca3e5 | 3354 | else |
ad6254c5 AK |
3355 | echo "$as_me: failed program was:" >&5 |
3356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3357 | ||
3358 | ac_cv_header_stdc=no | |
795ca3e5 | 3359 | fi |
8a2fc586 | 3360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3361 | |
3362 | if test $ac_cv_header_stdc = yes; then | |
3363 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3364 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3365 | /* confdefs.h. */ |
3366 | _ACEOF | |
3367 | cat confdefs.h >>conftest.$ac_ext | |
3368 | cat >>conftest.$ac_ext <<_ACEOF | |
3369 | /* end confdefs.h. */ | |
3370 | #include <string.h> | |
8106cdd5 | 3371 | |
ad6254c5 AK |
3372 | _ACEOF |
3373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3374 | $EGREP "memchr" >/dev/null 2>&1; then | |
3375 | : | |
3376 | else | |
3377 | ac_cv_header_stdc=no | |
80992638 | 3378 | fi |
ad6254c5 | 3379 | rm -f conftest* |
795ca3e5 AK |
3380 | |
3381 | fi | |
3382 | ||
ad6254c5 AK |
3383 | if test $ac_cv_header_stdc = yes; then |
3384 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3385 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3386 | /* confdefs.h. */ |
3387 | _ACEOF | |
3388 | cat confdefs.h >>conftest.$ac_ext | |
3389 | cat >>conftest.$ac_ext <<_ACEOF | |
3390 | /* end confdefs.h. */ | |
80992638 | 3391 | #include <stdlib.h> |
ad6254c5 AK |
3392 | |
3393 | _ACEOF | |
80992638 | 3394 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3395 | $EGREP "free" >/dev/null 2>&1; then |
3396 | : | |
795ca3e5 | 3397 | else |
ad6254c5 | 3398 | ac_cv_header_stdc=no |
795ca3e5 | 3399 | fi |
80992638 | 3400 | rm -f conftest* |
8106cdd5 | 3401 | |
795ca3e5 AK |
3402 | fi |
3403 | ||
ad6254c5 AK |
3404 | if test $ac_cv_header_stdc = yes; then |
3405 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3406 | if test "$cross_compiling" = yes; then | |
3407 | : | |
795ca3e5 | 3408 | else |
ad6254c5 | 3409 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3410 | /* confdefs.h. */ |
3411 | _ACEOF | |
3412 | cat confdefs.h >>conftest.$ac_ext | |
3413 | cat >>conftest.$ac_ext <<_ACEOF | |
3414 | /* end confdefs.h. */ | |
3415 | #include <ctype.h> | |
3416 | #if ((' ' & 0x0FF) == 0x020) | |
3417 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3418 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3419 | #else | |
3420 | # define ISLOWER(c) \ | |
8a2fc586 AK |
3421 | (('a' <= (c) && (c) <= 'i') \ |
3422 | || ('j' <= (c) && (c) <= 'r') \ | |
3423 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3424 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3425 | #endif |
ad6254c5 AK |
3426 | |
3427 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3428 | int | |
3429 | main () | |
3430 | { | |
3431 | int i; | |
3432 | for (i = 0; i < 256; i++) | |
3433 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 3434 | || toupper (i) != TOUPPER (i)) |
ad6254c5 AK |
3435 | exit(2); |
3436 | exit (0); | |
3437 | } | |
3438 | _ACEOF | |
3439 | rm -f conftest$ac_exeext | |
3440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3441 | (eval $ac_link) 2>&5 | |
3442 | ac_status=$? | |
3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3446 | (eval $ac_try) 2>&5 | |
3447 | ac_status=$? | |
3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3449 | (exit $ac_status); }; }; then | |
3450 | : | |
795ca3e5 | 3451 | else |
ad6254c5 AK |
3452 | echo "$as_me: program exited with status $ac_status" >&5 |
3453 | echo "$as_me: failed program was:" >&5 | |
3454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3455 | |
ad6254c5 AK |
3456 | ( exit $ac_status ) |
3457 | ac_cv_header_stdc=no | |
80992638 | 3458 | fi |
8a2fc586 | 3459 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3460 | fi |
3461 | fi | |
3462 | fi | |
3463 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3464 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3465 | if test $ac_cv_header_stdc = yes; then | |
3466 | ||
3467 | cat >>confdefs.h <<\_ACEOF | |
3468 | #define STDC_HEADERS 1 | |
3469 | _ACEOF | |
795ca3e5 AK |
3470 | |
3471 | fi | |
3472 | ||
ad6254c5 AK |
3473 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3474 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
3475 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
3476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 3477 | else |
ad6254c5 | 3478 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3479 | /* confdefs.h. */ |
3480 | _ACEOF | |
3481 | cat confdefs.h >>conftest.$ac_ext | |
3482 | cat >>conftest.$ac_ext <<_ACEOF | |
3483 | /* end confdefs.h. */ | |
80992638 | 3484 | #include <sys/types.h> |
ad6254c5 AK |
3485 | #include <sys/wait.h> |
3486 | #ifndef WEXITSTATUS | |
3487 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3488 | #endif | |
3489 | #ifndef WIFEXITED | |
3490 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3491 | #endif | |
3492 | ||
3493 | int | |
3494 | main () | |
3495 | { | |
3496 | int s; | |
3497 | wait (&s); | |
3498 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3499 | ; | |
3500 | return 0; | |
3501 | } | |
3502 | _ACEOF | |
3503 | rm -f conftest.$ac_objext | |
3504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3505 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3506 | ac_status=$? |
8a2fc586 AK |
3507 | grep -v '^ *+' conftest.er1 >conftest.err |
3508 | rm -f conftest.er1 | |
3509 | cat conftest.err >&5 | |
ad6254c5 AK |
3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3511 | (exit $ac_status); } && | |
8a2fc586 AK |
3512 | { ac_try='test -z "$ac_c_werror_flag" |
3513 | || test ! -s conftest.err' | |
3514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3515 | (eval $ac_try) 2>&5 | |
3516 | ac_status=$? | |
3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3518 | (exit $ac_status); }; } && | |
3519 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3521 | (eval $ac_try) 2>&5 | |
3522 | ac_status=$? | |
3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3524 | (exit $ac_status); }; }; then | |
3525 | ac_cv_header_sys_wait_h=yes | |
3526 | else | |
3527 | echo "$as_me: failed program was:" >&5 | |
3528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3529 | ||
3530 | ac_cv_header_sys_wait_h=no | |
8106cdd5 | 3531 | fi |
8a2fc586 | 3532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3533 | fi |
ad6254c5 AK |
3534 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
3535 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
3536 | if test $ac_cv_header_sys_wait_h = yes; then | |
8106cdd5 | 3537 | |
ad6254c5 AK |
3538 | cat >>confdefs.h <<\_ACEOF |
3539 | #define HAVE_SYS_WAIT_H 1 | |
3540 | _ACEOF | |
795ca3e5 AK |
3541 | |
3542 | fi | |
3543 | ||
ad6254c5 AK |
3544 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
3545 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3546 | if test "${ac_cv_header_time+set}" = set; then | |
3547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3548 | else |
ad6254c5 | 3549 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3550 | /* confdefs.h. */ |
3551 | _ACEOF | |
3552 | cat confdefs.h >>conftest.$ac_ext | |
3553 | cat >>conftest.$ac_ext <<_ACEOF | |
3554 | /* end confdefs.h. */ | |
795ca3e5 AK |
3555 | #include <sys/types.h> |
3556 | #include <sys/time.h> | |
3557 | #include <time.h> | |
ad6254c5 AK |
3558 | |
3559 | int | |
3560 | main () | |
3561 | { | |
3562 | if ((struct tm *) 0) | |
3563 | return 0; | |
3564 | ; | |
3565 | return 0; | |
3566 | } | |
3567 | _ACEOF | |
3568 | rm -f conftest.$ac_objext | |
3569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3570 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3571 | ac_status=$? |
8a2fc586 AK |
3572 | grep -v '^ *+' conftest.er1 >conftest.err |
3573 | rm -f conftest.er1 | |
3574 | cat conftest.err >&5 | |
ad6254c5 AK |
3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3576 | (exit $ac_status); } && | |
8a2fc586 AK |
3577 | { ac_try='test -z "$ac_c_werror_flag" |
3578 | || test ! -s conftest.err' | |
3579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3580 | (eval $ac_try) 2>&5 | |
3581 | ac_status=$? | |
3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3583 | (exit $ac_status); }; } && | |
3584 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3586 | (eval $ac_try) 2>&5 | |
3587 | ac_status=$? | |
3588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3589 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3590 | ac_cv_header_time=yes |
3591 | else | |
ad6254c5 AK |
3592 | echo "$as_me: failed program was:" >&5 |
3593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3594 | ||
3595 | ac_cv_header_time=no | |
795ca3e5 | 3596 | fi |
8a2fc586 | 3597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3598 | fi |
ad6254c5 AK |
3599 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3600 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
80992638 | 3601 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
3602 | |
3603 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3604 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 3605 | _ACEOF |
b896caa1 | 3606 | |
8106cdd5 | 3607 | fi |
b896caa1 | 3608 | |
b896caa1 | 3609 | |
ad6254c5 | 3610 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 3611 | |
b896caa1 AK |
3612 | |
3613 | ||
795ca3e5 | 3614 | |
8106cdd5 | 3615 | |
80992638 | 3616 | |
795ca3e5 | 3617 | |
a38df97f | 3618 | |
80992638 | 3619 | |
ad6254c5 | 3620 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8a2fc586 | 3621 | inttypes.h stdint.h unistd.h |
ad6254c5 AK |
3622 | do |
3623 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3624 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3628 | else | |
3629 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3630 | /* confdefs.h. */ |
3631 | _ACEOF | |
3632 | cat confdefs.h >>conftest.$ac_ext | |
3633 | cat >>conftest.$ac_ext <<_ACEOF | |
3634 | /* end confdefs.h. */ | |
3635 | $ac_includes_default | |
3636 | ||
3637 | #include <$ac_header> | |
3638 | _ACEOF | |
3639 | rm -f conftest.$ac_objext | |
3640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3641 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3642 | ac_status=$? |
8a2fc586 AK |
3643 | grep -v '^ *+' conftest.er1 >conftest.err |
3644 | rm -f conftest.er1 | |
3645 | cat conftest.err >&5 | |
ad6254c5 AK |
3646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3647 | (exit $ac_status); } && | |
8a2fc586 AK |
3648 | { ac_try='test -z "$ac_c_werror_flag" |
3649 | || test ! -s conftest.err' | |
3650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3651 | (eval $ac_try) 2>&5 | |
3652 | ac_status=$? | |
3653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3654 | (exit $ac_status); }; } && | |
3655 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3657 | (eval $ac_try) 2>&5 | |
3658 | ac_status=$? | |
3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3660 | (exit $ac_status); }; }; then | |
3661 | eval "$as_ac_Header=yes" | |
3662 | else | |
3663 | echo "$as_me: failed program was:" >&5 | |
3664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3665 | |
ad6254c5 AK |
3666 | eval "$as_ac_Header=no" |
3667 | fi | |
8a2fc586 | 3668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a38df97f | 3669 | fi |
ad6254c5 AK |
3670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3672 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3673 | cat >>confdefs.h <<_ACEOF | |
3674 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3675 | _ACEOF | |
a38df97f | 3676 | |
80992638 AK |
3677 | fi |
3678 | ||
ad6254c5 AK |
3679 | done |
3680 | ||
7d1552c9 | 3681 | |
7d1552c9 | 3682 | |
80992638 | 3683 | |
5a52dca9 | 3684 | |
5a52dca9 | 3685 | |
ad6254c5 AK |
3686 | |
3687 | ||
3688 | ||
3689 | ||
3690 | ||
3691 | for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h | |
3692 | do | |
3693 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3694 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3695 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3696 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3699 | fi | |
3700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3702 | else | |
3703 | # Is the header compilable? | |
3704 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3705 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3706 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3707 | /* confdefs.h. */ |
3708 | _ACEOF | |
3709 | cat confdefs.h >>conftest.$ac_ext | |
3710 | cat >>conftest.$ac_ext <<_ACEOF | |
3711 | /* end confdefs.h. */ | |
3712 | $ac_includes_default | |
3713 | #include <$ac_header> | |
3714 | _ACEOF | |
3715 | rm -f conftest.$ac_objext | |
3716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3717 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3718 | ac_status=$? |
8a2fc586 AK |
3719 | grep -v '^ *+' conftest.er1 >conftest.err |
3720 | rm -f conftest.er1 | |
3721 | cat conftest.err >&5 | |
ad6254c5 AK |
3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3723 | (exit $ac_status); } && | |
8a2fc586 AK |
3724 | { ac_try='test -z "$ac_c_werror_flag" |
3725 | || test ! -s conftest.err' | |
3726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3727 | (eval $ac_try) 2>&5 | |
3728 | ac_status=$? | |
3729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3730 | (exit $ac_status); }; } && | |
3731 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3733 | (eval $ac_try) 2>&5 | |
3734 | ac_status=$? | |
3735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3736 | (exit $ac_status); }; }; then | |
3737 | ac_header_compiler=yes | |
3738 | else | |
3739 | echo "$as_me: failed program was:" >&5 | |
3740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3741 | ||
3742 | ac_header_compiler=no | |
3743 | fi | |
8a2fc586 | 3744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3745 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3746 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3747 | ||
3748 | # Is the header present? | |
3749 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3750 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3751 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3752 | /* confdefs.h. */ |
3753 | _ACEOF | |
3754 | cat confdefs.h >>conftest.$ac_ext | |
3755 | cat >>conftest.$ac_ext <<_ACEOF | |
3756 | /* end confdefs.h. */ | |
3757 | #include <$ac_header> | |
3758 | _ACEOF | |
3759 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3760 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3761 | ac_status=$? | |
3762 | grep -v '^ *+' conftest.er1 >conftest.err | |
3763 | rm -f conftest.er1 | |
3764 | cat conftest.err >&5 | |
3765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3766 | (exit $ac_status); } >/dev/null; then | |
3767 | if test -s conftest.err; then | |
3768 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3769 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3770 | else |
3771 | ac_cpp_err= | |
3772 | fi | |
3773 | else | |
3774 | ac_cpp_err=yes | |
3775 | fi | |
3776 | if test -z "$ac_cpp_err"; then | |
3777 | ac_header_preproc=yes | |
3778 | else | |
3779 | echo "$as_me: failed program was:" >&5 | |
3780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3781 | ||
3782 | ac_header_preproc=no | |
3783 | fi | |
3784 | rm -f conftest.err conftest.$ac_ext | |
3785 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3786 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3787 | ||
3788 | # So? What about this header? | |
8a2fc586 AK |
3789 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3790 | yes:no: ) | |
ad6254c5 AK |
3791 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3792 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
3793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3794 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3795 | ac_header_preproc=yes | |
ad6254c5 | 3796 | ;; |
8a2fc586 | 3797 | no:yes:* ) |
ad6254c5 AK |
3798 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3799 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
3800 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3801 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3802 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3803 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3804 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3805 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3806 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3807 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
3808 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3809 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3810 | ( |
3811 | cat <<\_ASBOX | |
8a2fc586 AK |
3812 | ## ------------------------------------------ ## |
3813 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3814 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3815 | _ASBOX |
3816 | ) | | |
3817 | sed "s/^/$as_me: WARNING: /" >&2 | |
3818 | ;; | |
3819 | esac | |
3820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3824 | else | |
8a2fc586 | 3825 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 3826 | fi |
ad6254c5 AK |
3827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3828 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3829 | ||
3830 | fi | |
3831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3832 | cat >>confdefs.h <<_ACEOF | |
3833 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3834 | _ACEOF | |
b896caa1 | 3835 | |
d8ac0fbc | 3836 | else |
ad6254c5 AK |
3837 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3838 | echo "$as_me: error: bailing out" >&2;} | |
3839 | { (exit 1); exit 1; }; } | |
80992638 AK |
3840 | fi |
3841 | ||
ad6254c5 | 3842 | done |
d8ac0fbc | 3843 | |
d8ac0fbc | 3844 | |
d8ac0fbc | 3845 | |
80992638 | 3846 | |
d3c8211f | 3847 | |
d3c8211f | 3848 | |
d3c8211f | 3849 | |
80992638 | 3850 | |
4922197a | 3851 | |
4922197a | 3852 | |
ad6254c5 AK |
3853 | |
3854 | ||
3855 | ||
3856 | for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h | |
3857 | do | |
3858 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3864 | fi | |
3865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3867 | else | |
3868 | # Is the header compilable? | |
3869 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3870 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3871 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3872 | /* confdefs.h. */ |
3873 | _ACEOF | |
3874 | cat confdefs.h >>conftest.$ac_ext | |
3875 | cat >>conftest.$ac_ext <<_ACEOF | |
3876 | /* end confdefs.h. */ | |
3877 | $ac_includes_default | |
3878 | #include <$ac_header> | |
3879 | _ACEOF | |
3880 | rm -f conftest.$ac_objext | |
3881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 3882 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3883 | ac_status=$? |
8a2fc586 AK |
3884 | grep -v '^ *+' conftest.er1 >conftest.err |
3885 | rm -f conftest.er1 | |
3886 | cat conftest.err >&5 | |
ad6254c5 AK |
3887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3888 | (exit $ac_status); } && | |
8a2fc586 AK |
3889 | { ac_try='test -z "$ac_c_werror_flag" |
3890 | || test ! -s conftest.err' | |
3891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3892 | (eval $ac_try) 2>&5 | |
3893 | ac_status=$? | |
3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3895 | (exit $ac_status); }; } && | |
3896 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3898 | (eval $ac_try) 2>&5 | |
3899 | ac_status=$? | |
3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3901 | (exit $ac_status); }; }; then | |
3902 | ac_header_compiler=yes | |
3903 | else | |
3904 | echo "$as_me: failed program was:" >&5 | |
3905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3906 | ||
3907 | ac_header_compiler=no | |
3908 | fi | |
8a2fc586 | 3909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3910 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3911 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3912 | ||
3913 | # Is the header present? | |
3914 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3916 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3917 | /* confdefs.h. */ |
3918 | _ACEOF | |
3919 | cat confdefs.h >>conftest.$ac_ext | |
3920 | cat >>conftest.$ac_ext <<_ACEOF | |
3921 | /* end confdefs.h. */ | |
3922 | #include <$ac_header> | |
3923 | _ACEOF | |
3924 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3926 | ac_status=$? | |
3927 | grep -v '^ *+' conftest.er1 >conftest.err | |
3928 | rm -f conftest.er1 | |
3929 | cat conftest.err >&5 | |
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3931 | (exit $ac_status); } >/dev/null; then | |
3932 | if test -s conftest.err; then | |
3933 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 3934 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3935 | else |
3936 | ac_cpp_err= | |
3937 | fi | |
3938 | else | |
3939 | ac_cpp_err=yes | |
4922197a | 3940 | fi |
ad6254c5 AK |
3941 | if test -z "$ac_cpp_err"; then |
3942 | ac_header_preproc=yes | |
3943 | else | |
3944 | echo "$as_me: failed program was:" >&5 | |
3945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3946 | ||
3947 | ac_header_preproc=no | |
3948 | fi | |
3949 | rm -f conftest.err conftest.$ac_ext | |
3950 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3951 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3952 | ||
3953 | # So? What about this header? | |
8a2fc586 AK |
3954 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3955 | yes:no: ) | |
ad6254c5 AK |
3956 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3957 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
3958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3959 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3960 | ac_header_preproc=yes | |
ad6254c5 | 3961 | ;; |
8a2fc586 | 3962 | no:yes:* ) |
ad6254c5 AK |
3963 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3964 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
3965 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3966 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3967 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3968 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3969 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3970 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3971 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3972 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
3973 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3974 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3975 | ( |
3976 | cat <<\_ASBOX | |
8a2fc586 AK |
3977 | ## ------------------------------------------ ## |
3978 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3979 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3980 | _ASBOX |
3981 | ) | | |
3982 | sed "s/^/$as_me: WARNING: /" >&2 | |
3983 | ;; | |
3984 | esac | |
3985 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3989 | else | |
8a2fc586 | 3990 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
3991 | fi |
3992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3993 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3994 | ||
3995 | fi | |
3996 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3997 | cat >>confdefs.h <<_ACEOF | |
3998 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3999 | _ACEOF | |
4922197a | 4000 | |
4922197a | 4001 | else |
ad6254c5 AK |
4002 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4003 | echo "$as_me: error: bailing out" >&2;} | |
4004 | { (exit 1); exit 1; }; } | |
80992638 AK |
4005 | fi |
4006 | ||
ad6254c5 | 4007 | done |
4922197a | 4008 | |
4922197a | 4009 | |
ad6254c5 AK |
4010 | case "$host_os" in |
4011 | linux*) | |
4922197a | 4012 | |
ad6254c5 AK |
4013 | |
4014 | ||
4015 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4016 | do | |
4017 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4019 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4020 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4021 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4023 | fi | |
4024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 4026 | else |
ad6254c5 AK |
4027 | # Is the header compilable? |
4028 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4029 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4030 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4031 | /* confdefs.h. */ |
4032 | _ACEOF | |
4033 | cat confdefs.h >>conftest.$ac_ext | |
4034 | cat >>conftest.$ac_ext <<_ACEOF | |
4035 | /* end confdefs.h. */ | |
4036 | $ac_includes_default | |
4037 | #include <$ac_header> | |
4038 | _ACEOF | |
4039 | rm -f conftest.$ac_objext | |
4040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4041 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4042 | ac_status=$? |
8a2fc586 AK |
4043 | grep -v '^ *+' conftest.er1 >conftest.err |
4044 | rm -f conftest.er1 | |
4045 | cat conftest.err >&5 | |
ad6254c5 AK |
4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4047 | (exit $ac_status); } && | |
8a2fc586 AK |
4048 | { ac_try='test -z "$ac_c_werror_flag" |
4049 | || test ! -s conftest.err' | |
4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4051 | (eval $ac_try) 2>&5 | |
4052 | ac_status=$? | |
4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4054 | (exit $ac_status); }; } && | |
4055 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4057 | (eval $ac_try) 2>&5 | |
4058 | ac_status=$? | |
4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4060 | (exit $ac_status); }; }; then | |
4061 | ac_header_compiler=yes | |
4062 | else | |
4063 | echo "$as_me: failed program was:" >&5 | |
4064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4065 | ||
4066 | ac_header_compiler=no | |
4067 | fi | |
8a2fc586 | 4068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4069 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4070 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4071 | ||
4072 | # Is the header present? | |
4073 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4074 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4075 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4076 | /* confdefs.h. */ |
4077 | _ACEOF | |
4078 | cat confdefs.h >>conftest.$ac_ext | |
4079 | cat >>conftest.$ac_ext <<_ACEOF | |
4080 | /* end confdefs.h. */ | |
4081 | #include <$ac_header> | |
4082 | _ACEOF | |
4083 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4084 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4085 | ac_status=$? | |
4086 | grep -v '^ *+' conftest.er1 >conftest.err | |
4087 | rm -f conftest.er1 | |
4088 | cat conftest.err >&5 | |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4090 | (exit $ac_status); } >/dev/null; then | |
4091 | if test -s conftest.err; then | |
4092 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 4093 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4094 | else |
4095 | ac_cpp_err= | |
4096 | fi | |
4097 | else | |
4098 | ac_cpp_err=yes | |
4099 | fi | |
4100 | if test -z "$ac_cpp_err"; then | |
4101 | ac_header_preproc=yes | |
4102 | else | |
4103 | echo "$as_me: failed program was:" >&5 | |
4104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4105 | ||
4106 | ac_header_preproc=no | |
4107 | fi | |
4108 | rm -f conftest.err conftest.$ac_ext | |
4109 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4110 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4111 | ||
4112 | # So? What about this header? | |
8a2fc586 AK |
4113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4114 | yes:no: ) | |
ad6254c5 AK |
4115 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4116 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4118 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4119 | ac_header_preproc=yes | |
ad6254c5 | 4120 | ;; |
8a2fc586 | 4121 | no:yes:* ) |
ad6254c5 AK |
4122 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4123 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4124 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4125 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4126 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4127 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4128 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4129 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4132 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4133 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4134 | ( |
4135 | cat <<\_ASBOX | |
8a2fc586 AK |
4136 | ## ------------------------------------------ ## |
4137 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4138 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4139 | _ASBOX |
4140 | ) | | |
4141 | sed "s/^/$as_me: WARNING: /" >&2 | |
4142 | ;; | |
4143 | esac | |
4144 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4148 | else | |
8a2fc586 | 4149 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4150 | fi |
ad6254c5 AK |
4151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 4153 | |
ad6254c5 AK |
4154 | fi |
4155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4156 | cat >>confdefs.h <<_ACEOF | |
4157 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4158 | _ACEOF | |
795ca3e5 | 4159 | |
795ca3e5 | 4160 | else |
ad6254c5 AK |
4161 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4162 | echo "$as_me: error: bailing out" >&2;} | |
4163 | { (exit 1); exit 1; }; } | |
80992638 AK |
4164 | fi |
4165 | ||
ad6254c5 AK |
4166 | done |
4167 | ;; | |
4168 | darwin*) | |
4169 | ||
795ca3e5 | 4170 | |
ad6254c5 AK |
4171 | for ac_header in machine/endian.h sys/disk.h |
4172 | do | |
4173 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4175 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4179 | fi | |
4180 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4181 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4182 | else | |
4183 | # Is the header compilable? | |
4184 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4185 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4186 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4187 | /* confdefs.h. */ |
4188 | _ACEOF | |
4189 | cat confdefs.h >>conftest.$ac_ext | |
4190 | cat >>conftest.$ac_ext <<_ACEOF | |
4191 | /* end confdefs.h. */ | |
4192 | $ac_includes_default | |
4193 | #include <$ac_header> | |
4194 | _ACEOF | |
4195 | rm -f conftest.$ac_objext | |
4196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4197 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4198 | ac_status=$? |
8a2fc586 AK |
4199 | grep -v '^ *+' conftest.er1 >conftest.err |
4200 | rm -f conftest.er1 | |
4201 | cat conftest.err >&5 | |
ad6254c5 AK |
4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4203 | (exit $ac_status); } && | |
8a2fc586 AK |
4204 | { ac_try='test -z "$ac_c_werror_flag" |
4205 | || test ! -s conftest.err' | |
4206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4207 | (eval $ac_try) 2>&5 | |
4208 | ac_status=$? | |
4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4210 | (exit $ac_status); }; } && | |
4211 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4213 | (eval $ac_try) 2>&5 | |
4214 | ac_status=$? | |
4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4216 | (exit $ac_status); }; }; then | |
4217 | ac_header_compiler=yes | |
4218 | else | |
4219 | echo "$as_me: failed program was:" >&5 | |
4220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4221 | ||
4222 | ac_header_compiler=no | |
4223 | fi | |
8a2fc586 | 4224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4225 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4226 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4227 | ||
4228 | # Is the header present? | |
4229 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4230 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4231 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4232 | /* confdefs.h. */ |
4233 | _ACEOF | |
4234 | cat confdefs.h >>conftest.$ac_ext | |
4235 | cat >>conftest.$ac_ext <<_ACEOF | |
4236 | /* end confdefs.h. */ | |
4237 | #include <$ac_header> | |
4238 | _ACEOF | |
4239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4241 | ac_status=$? | |
4242 | grep -v '^ *+' conftest.er1 >conftest.err | |
4243 | rm -f conftest.er1 | |
4244 | cat conftest.err >&5 | |
4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4246 | (exit $ac_status); } >/dev/null; then | |
4247 | if test -s conftest.err; then | |
4248 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 4249 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4250 | else |
4251 | ac_cpp_err= | |
4252 | fi | |
4253 | else | |
4254 | ac_cpp_err=yes | |
4255 | fi | |
4256 | if test -z "$ac_cpp_err"; then | |
4257 | ac_header_preproc=yes | |
4258 | else | |
4259 | echo "$as_me: failed program was:" >&5 | |
4260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4261 | ||
4262 | ac_header_preproc=no | |
4263 | fi | |
4264 | rm -f conftest.err conftest.$ac_ext | |
4265 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4266 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4267 | ||
4268 | # So? What about this header? | |
8a2fc586 AK |
4269 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4270 | yes:no: ) | |
ad6254c5 AK |
4271 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4272 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
4273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4274 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4275 | ac_header_preproc=yes | |
ad6254c5 | 4276 | ;; |
8a2fc586 | 4277 | no:yes:* ) |
ad6254c5 AK |
4278 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4279 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
4280 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4281 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4282 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4283 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4284 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4285 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4286 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4287 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
4288 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4289 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4290 | ( |
4291 | cat <<\_ASBOX | |
8a2fc586 AK |
4292 | ## ------------------------------------------ ## |
4293 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4294 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4295 | _ASBOX |
4296 | ) | | |
4297 | sed "s/^/$as_me: WARNING: /" >&2 | |
4298 | ;; | |
4299 | esac | |
4300 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4301 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4302 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4304 | else | |
8a2fc586 | 4305 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4306 | fi |
ad6254c5 AK |
4307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4308 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
b896caa1 | 4309 | |
ad6254c5 AK |
4310 | fi |
4311 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4312 | cat >>confdefs.h <<_ACEOF | |
4313 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4314 | _ACEOF | |
4315 | ||
4316 | else | |
4317 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4318 | echo "$as_me: error: bailing out" >&2;} | |
4319 | { (exit 1); exit 1; }; } | |
80992638 AK |
4320 | fi |
4321 | ||
ad6254c5 AK |
4322 | done |
4323 | ;; | |
4324 | esac | |
d3c8211f | 4325 | |
80992638 | 4326 | ################################################################################ |
ad6254c5 AK |
4327 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4328 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4329 | if test "${ac_cv_c_const+set}" = set; then | |
4330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d3c8211f | 4331 | else |
ad6254c5 | 4332 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4333 | /* confdefs.h. */ |
4334 | _ACEOF | |
4335 | cat confdefs.h >>conftest.$ac_ext | |
4336 | cat >>conftest.$ac_ext <<_ACEOF | |
4337 | /* end confdefs.h. */ | |
4338 | ||
4339 | int | |
4340 | main () | |
4341 | { | |
4342 | /* FIXME: Include the comments suggested by Paul. */ | |
4343 | #ifndef __cplusplus | |
4344 | /* Ultrix mips cc rejects this. */ | |
4345 | typedef int charset[2]; | |
4346 | const charset x; | |
4347 | /* SunOS 4.1.1 cc rejects this. */ | |
4348 | char const *const *ccp; | |
4349 | char **p; | |
4350 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4351 | struct point {int x, y;}; | |
4352 | static struct point const zero = {0,0}; | |
4353 | /* AIX XL C 1.02.0.0 rejects this. | |
4354 | It does not let you subtract one const X* pointer from another in | |
4355 | an arm of an if-expression whose if-part is not a constant | |
4356 | expression */ | |
4357 | const char *g = "string"; | |
4358 | ccp = &g + (g ? g-g : 0); | |
4359 | /* HPUX 7.0 cc rejects these. */ | |
4360 | ++ccp; | |
4361 | p = (char**) ccp; | |
4362 | ccp = (char const *const *) p; | |
4363 | { /* SCO 3.2v4 cc rejects this. */ | |
4364 | char *t; | |
4365 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4366 | ||
4367 | *t++ = 0; | |
4368 | } | |
4369 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4370 | int x[] = {25, 17}; | |
4371 | const int *foo = &x[0]; | |
4372 | ++foo; | |
4373 | } | |
4374 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4375 | typedef const int *iptr; | |
4376 | iptr p = 0; | |
4377 | ++p; | |
4378 | } | |
4379 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4380 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4381 | struct s { int j; const int *ap[3]; }; | |
4382 | struct s *b; b->j = 5; | |
4383 | } | |
4384 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4385 | const int foo = 10; | |
4386 | } | |
4387 | #endif | |
4388 | ||
4389 | ; | |
4390 | return 0; | |
4391 | } | |
4392 | _ACEOF | |
4393 | rm -f conftest.$ac_objext | |
4394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4395 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4396 | ac_status=$? |
8a2fc586 AK |
4397 | grep -v '^ *+' conftest.er1 >conftest.err |
4398 | rm -f conftest.er1 | |
4399 | cat conftest.err >&5 | |
ad6254c5 AK |
4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4401 | (exit $ac_status); } && | |
8a2fc586 AK |
4402 | { ac_try='test -z "$ac_c_werror_flag" |
4403 | || test ! -s conftest.err' | |
ad6254c5 AK |
4404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4405 | (eval $ac_try) 2>&5 | |
4406 | ac_status=$? | |
4407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8a2fc586 AK |
4408 | (exit $ac_status); }; } && |
4409 | { ac_try='test -s conftest.$ac_objext' | |
4410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4411 | (eval $ac_try) 2>&5 | |
4412 | ac_status=$? | |
4413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4414 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
4415 | ac_cv_c_const=yes |
4416 | else | |
4417 | echo "$as_me: failed program was:" >&5 | |
4418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4419 | ||
4420 | ac_cv_c_const=no | |
4421 | fi | |
8a2fc586 | 4422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4423 | fi |
ad6254c5 AK |
4424 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4425 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4426 | if test $ac_cv_c_const = no; then | |
80992638 | 4427 | |
ad6254c5 AK |
4428 | cat >>confdefs.h <<\_ACEOF |
4429 | #define const | |
4430 | _ACEOF | |
80992638 | 4431 | |
d3c8211f | 4432 | fi |
d3c8211f | 4433 | |
ad6254c5 AK |
4434 | echo "$as_me:$LINENO: checking for inline" >&5 |
4435 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4436 | if test "${ac_cv_c_inline+set}" = set; then | |
4437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8ef2b021 | 4438 | else |
ad6254c5 AK |
4439 | ac_cv_c_inline=no |
4440 | for ac_kw in inline __inline__ __inline; do | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4442 | /* confdefs.h. */ |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
4447 | #ifndef __cplusplus | |
4448 | typedef int foo_t; | |
4449 | static $ac_kw foo_t static_foo () {return 0; } | |
4450 | $ac_kw foo_t foo () {return 0; } | |
4451 | #endif | |
80992638 | 4452 | |
ad6254c5 AK |
4453 | _ACEOF |
4454 | rm -f conftest.$ac_objext | |
4455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4456 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4457 | ac_status=$? |
8a2fc586 AK |
4458 | grep -v '^ *+' conftest.er1 >conftest.err |
4459 | rm -f conftest.er1 | |
4460 | cat conftest.err >&5 | |
ad6254c5 AK |
4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4462 | (exit $ac_status); } && | |
8a2fc586 AK |
4463 | { ac_try='test -z "$ac_c_werror_flag" |
4464 | || test ! -s conftest.err' | |
4465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4466 | (eval $ac_try) 2>&5 | |
4467 | ac_status=$? | |
4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4469 | (exit $ac_status); }; } && | |
4470 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4472 | (eval $ac_try) 2>&5 | |
4473 | ac_status=$? | |
4474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4475 | (exit $ac_status); }; }; then | |
4476 | ac_cv_c_inline=$ac_kw; break | |
4477 | else | |
4478 | echo "$as_me: failed program was:" >&5 | |
4479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ef2b021 | 4480 | |
8ce0cbda | 4481 | fi |
8a2fc586 | 4482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4483 | done |
8ce0cbda | 4484 | |
8ce0cbda | 4485 | fi |
ad6254c5 AK |
4486 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4487 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
8a2fc586 AK |
4488 | |
4489 | ||
ad6254c5 AK |
4490 | case $ac_cv_c_inline in |
4491 | inline | yes) ;; | |
8a2fc586 AK |
4492 | *) |
4493 | case $ac_cv_c_inline in | |
4494 | no) ac_val=;; | |
4495 | *) ac_val=$ac_cv_c_inline;; | |
4496 | esac | |
4497 | cat >>confdefs.h <<_ACEOF | |
4498 | #ifndef __cplusplus | |
4499 | #define inline $ac_val | |
4500 | #endif | |
c1c065a3 | 4501 | _ACEOF |
8a2fc586 | 4502 | ;; |
ad6254c5 | 4503 | esac |
8ce0cbda | 4504 | |
ad6254c5 AK |
4505 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4506 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4507 | if test "${ac_cv_type_off_t+set}" = set; then | |
4508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4509 | else | |
4510 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4511 | /* confdefs.h. */ |
4512 | _ACEOF | |
4513 | cat confdefs.h >>conftest.$ac_ext | |
4514 | cat >>conftest.$ac_ext <<_ACEOF | |
4515 | /* end confdefs.h. */ | |
4516 | $ac_includes_default | |
4517 | int | |
4518 | main () | |
4519 | { | |
4520 | if ((off_t *) 0) | |
4521 | return 0; | |
4522 | if (sizeof (off_t)) | |
4523 | return 0; | |
4524 | ; | |
4525 | return 0; | |
4526 | } | |
4527 | _ACEOF | |
4528 | rm -f conftest.$ac_objext | |
4529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4530 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4531 | ac_status=$? |
8a2fc586 AK |
4532 | grep -v '^ *+' conftest.er1 >conftest.err |
4533 | rm -f conftest.er1 | |
4534 | cat conftest.err >&5 | |
ad6254c5 AK |
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4536 | (exit $ac_status); } && | |
8a2fc586 AK |
4537 | { ac_try='test -z "$ac_c_werror_flag" |
4538 | || test ! -s conftest.err' | |
4539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4540 | (eval $ac_try) 2>&5 | |
4541 | ac_status=$? | |
4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4543 | (exit $ac_status); }; } && | |
4544 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4546 | (eval $ac_try) 2>&5 | |
4547 | ac_status=$? | |
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4549 | (exit $ac_status); }; }; then | |
4550 | ac_cv_type_off_t=yes | |
4551 | else | |
4552 | echo "$as_me: failed program was:" >&5 | |
4553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 4554 | |
ad6254c5 | 4555 | ac_cv_type_off_t=no |
80992638 | 4556 | fi |
8a2fc586 | 4557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4558 | fi |
4559 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
4560 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4561 | if test $ac_cv_type_off_t = yes; then | |
4562 | : | |
4563 | else | |
80992638 | 4564 | |
ad6254c5 AK |
4565 | cat >>confdefs.h <<_ACEOF |
4566 | #define off_t long | |
4567 | _ACEOF | |
199e490e | 4568 | |
b896caa1 AK |
4569 | fi |
4570 | ||
ad6254c5 AK |
4571 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
4572 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
4573 | if test "${ac_cv_type_pid_t+set}" = set; then | |
4574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4575 | else | |
4576 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4577 | /* confdefs.h. */ |
4578 | _ACEOF | |
4579 | cat confdefs.h >>conftest.$ac_ext | |
4580 | cat >>conftest.$ac_ext <<_ACEOF | |
4581 | /* end confdefs.h. */ | |
4582 | $ac_includes_default | |
4583 | int | |
4584 | main () | |
4585 | { | |
4586 | if ((pid_t *) 0) | |
4587 | return 0; | |
4588 | if (sizeof (pid_t)) | |
4589 | return 0; | |
4590 | ; | |
4591 | return 0; | |
4592 | } | |
4593 | _ACEOF | |
4594 | rm -f conftest.$ac_objext | |
4595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4596 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4597 | ac_status=$? |
8a2fc586 AK |
4598 | grep -v '^ *+' conftest.er1 >conftest.err |
4599 | rm -f conftest.er1 | |
4600 | cat conftest.err >&5 | |
ad6254c5 AK |
4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4602 | (exit $ac_status); } && | |
8a2fc586 AK |
4603 | { ac_try='test -z "$ac_c_werror_flag" |
4604 | || test ! -s conftest.err' | |
4605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4606 | (eval $ac_try) 2>&5 | |
4607 | ac_status=$? | |
4608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4609 | (exit $ac_status); }; } && | |
4610 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4612 | (eval $ac_try) 2>&5 | |
4613 | ac_status=$? | |
4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4615 | (exit $ac_status); }; }; then | |
4616 | ac_cv_type_pid_t=yes | |
4617 | else | |
4618 | echo "$as_me: failed program was:" >&5 | |
4619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4620 | ||
4621 | ac_cv_type_pid_t=no | |
4622 | fi | |
8a2fc586 | 4623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4624 | fi |
ad6254c5 AK |
4625 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
4626 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
4627 | if test $ac_cv_type_pid_t = yes; then | |
4628 | : | |
4629 | else | |
80992638 | 4630 | |
ad6254c5 AK |
4631 | cat >>confdefs.h <<_ACEOF |
4632 | #define pid_t int | |
4633 | _ACEOF | |
2dc95e1c | 4634 | |
2dc95e1c AK |
4635 | fi |
4636 | ||
ad6254c5 AK |
4637 | echo "$as_me:$LINENO: checking for size_t" >&5 |
4638 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4639 | if test "${ac_cv_type_size_t+set}" = set; then | |
4640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 4641 | else |
ad6254c5 | 4642 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4643 | /* confdefs.h. */ |
4644 | _ACEOF | |
4645 | cat confdefs.h >>conftest.$ac_ext | |
4646 | cat >>conftest.$ac_ext <<_ACEOF | |
4647 | /* end confdefs.h. */ | |
4648 | $ac_includes_default | |
4649 | int | |
4650 | main () | |
4651 | { | |
4652 | if ((size_t *) 0) | |
4653 | return 0; | |
4654 | if (sizeof (size_t)) | |
4655 | return 0; | |
4656 | ; | |
4657 | return 0; | |
4658 | } | |
4659 | _ACEOF | |
4660 | rm -f conftest.$ac_objext | |
4661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4662 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4663 | ac_status=$? |
8a2fc586 AK |
4664 | grep -v '^ *+' conftest.er1 >conftest.err |
4665 | rm -f conftest.er1 | |
4666 | cat conftest.err >&5 | |
ad6254c5 AK |
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4668 | (exit $ac_status); } && | |
8a2fc586 AK |
4669 | { ac_try='test -z "$ac_c_werror_flag" |
4670 | || test ! -s conftest.err' | |
4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4672 | (eval $ac_try) 2>&5 | |
4673 | ac_status=$? | |
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4675 | (exit $ac_status); }; } && | |
4676 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4678 | (eval $ac_try) 2>&5 | |
4679 | ac_status=$? | |
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4681 | (exit $ac_status); }; }; then | |
4682 | ac_cv_type_size_t=yes | |
4683 | else | |
4684 | echo "$as_me: failed program was:" >&5 | |
4685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4686 | ||
4687 | ac_cv_type_size_t=no | |
80992638 | 4688 | fi |
8a2fc586 | 4689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4690 | fi |
4691 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
4692 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4693 | if test $ac_cv_type_size_t = yes; then | |
4694 | : | |
4695 | else | |
80992638 | 4696 | |
ad6254c5 AK |
4697 | cat >>confdefs.h <<_ACEOF |
4698 | #define size_t unsigned | |
4699 | _ACEOF | |
8106cdd5 | 4700 | |
8106cdd5 AK |
4701 | fi |
4702 | ||
ad6254c5 AK |
4703 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
4704 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
4705 | if test "${ac_cv_type_mode_t+set}" = set; then | |
4706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4707 | else | |
4708 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4709 | /* confdefs.h. */ |
4710 | _ACEOF | |
4711 | cat confdefs.h >>conftest.$ac_ext | |
4712 | cat >>conftest.$ac_ext <<_ACEOF | |
4713 | /* end confdefs.h. */ | |
4714 | $ac_includes_default | |
4715 | int | |
4716 | main () | |
4717 | { | |
4718 | if ((mode_t *) 0) | |
4719 | return 0; | |
4720 | if (sizeof (mode_t)) | |
4721 | return 0; | |
4722 | ; | |
4723 | return 0; | |
4724 | } | |
4725 | _ACEOF | |
4726 | rm -f conftest.$ac_objext | |
4727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4728 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4729 | ac_status=$? |
8a2fc586 AK |
4730 | grep -v '^ *+' conftest.er1 >conftest.err |
4731 | rm -f conftest.er1 | |
4732 | cat conftest.err >&5 | |
ad6254c5 AK |
4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4734 | (exit $ac_status); } && | |
8a2fc586 AK |
4735 | { ac_try='test -z "$ac_c_werror_flag" |
4736 | || test ! -s conftest.err' | |
4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4738 | (eval $ac_try) 2>&5 | |
4739 | ac_status=$? | |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4741 | (exit $ac_status); }; } && | |
4742 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4744 | (eval $ac_try) 2>&5 | |
4745 | ac_status=$? | |
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4747 | (exit $ac_status); }; }; then | |
4748 | ac_cv_type_mode_t=yes | |
4749 | else | |
4750 | echo "$as_me: failed program was:" >&5 | |
4751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4752 | ||
4753 | ac_cv_type_mode_t=no | |
80992638 | 4754 | fi |
8a2fc586 | 4755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4756 | fi |
4757 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
4758 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
4759 | if test $ac_cv_type_mode_t = yes; then | |
4760 | : | |
4761 | else | |
80992638 | 4762 | |
ad6254c5 AK |
4763 | cat >>confdefs.h <<_ACEOF |
4764 | #define mode_t int | |
4765 | _ACEOF | |
4766 | ||
4767 | fi | |
4768 | ||
4769 | ||
4770 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
4771 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
4772 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4774 | else | |
4775 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4776 | /* confdefs.h. */ |
4777 | _ACEOF | |
4778 | cat confdefs.h >>conftest.$ac_ext | |
4779 | cat >>conftest.$ac_ext <<_ACEOF | |
4780 | /* end confdefs.h. */ | |
4781 | $ac_includes_default | |
4782 | int | |
4783 | main () | |
4784 | { | |
4785 | static struct stat ac_aggr; | |
4786 | if (ac_aggr.st_rdev) | |
4787 | return 0; | |
4788 | ; | |
4789 | return 0; | |
4790 | } | |
4791 | _ACEOF | |
4792 | rm -f conftest.$ac_objext | |
4793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4794 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4795 | ac_status=$? |
8a2fc586 AK |
4796 | grep -v '^ *+' conftest.er1 >conftest.err |
4797 | rm -f conftest.er1 | |
4798 | cat conftest.err >&5 | |
ad6254c5 AK |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4800 | (exit $ac_status); } && | |
8a2fc586 AK |
4801 | { ac_try='test -z "$ac_c_werror_flag" |
4802 | || test ! -s conftest.err' | |
4803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4804 | (eval $ac_try) 2>&5 | |
4805 | ac_status=$? | |
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4807 | (exit $ac_status); }; } && | |
4808 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4810 | (eval $ac_try) 2>&5 | |
4811 | ac_status=$? | |
4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4813 | (exit $ac_status); }; }; then | |
4814 | ac_cv_member_struct_stat_st_rdev=yes | |
4815 | else | |
4816 | echo "$as_me: failed program was:" >&5 | |
4817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4818 | ||
4819 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4820 | /* confdefs.h. */ |
4821 | _ACEOF | |
4822 | cat confdefs.h >>conftest.$ac_ext | |
4823 | cat >>conftest.$ac_ext <<_ACEOF | |
4824 | /* end confdefs.h. */ | |
4825 | $ac_includes_default | |
4826 | int | |
4827 | main () | |
4828 | { | |
4829 | static struct stat ac_aggr; | |
4830 | if (sizeof ac_aggr.st_rdev) | |
4831 | return 0; | |
4832 | ; | |
4833 | return 0; | |
4834 | } | |
4835 | _ACEOF | |
4836 | rm -f conftest.$ac_objext | |
4837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4838 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4839 | ac_status=$? |
8a2fc586 AK |
4840 | grep -v '^ *+' conftest.er1 >conftest.err |
4841 | rm -f conftest.er1 | |
4842 | cat conftest.err >&5 | |
ad6254c5 AK |
4843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4844 | (exit $ac_status); } && | |
8a2fc586 AK |
4845 | { ac_try='test -z "$ac_c_werror_flag" |
4846 | || test ! -s conftest.err' | |
4847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4848 | (eval $ac_try) 2>&5 | |
4849 | ac_status=$? | |
4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4851 | (exit $ac_status); }; } && | |
4852 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4854 | (eval $ac_try) 2>&5 | |
4855 | ac_status=$? | |
4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4857 | (exit $ac_status); }; }; then | |
4858 | ac_cv_member_struct_stat_st_rdev=yes | |
4859 | else | |
4860 | echo "$as_me: failed program was:" >&5 | |
4861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4862 | ||
4863 | ac_cv_member_struct_stat_st_rdev=no | |
4864 | fi | |
8a2fc586 | 4865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4866 | fi |
8a2fc586 | 4867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4868 | fi |
4869 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
4870 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
4871 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
4872 | ||
4873 | cat >>confdefs.h <<_ACEOF | |
4874 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
4875 | _ACEOF | |
4876 | ||
4877 | ||
4878 | cat >>confdefs.h <<\_ACEOF | |
4879 | #define HAVE_ST_RDEV 1 | |
4880 | _ACEOF | |
4881 | ||
4882 | fi | |
4883 | ||
4884 | ||
4885 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4886 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4887 | if test "${ac_cv_struct_tm+set}" = set; then | |
4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4889 | else | |
4890 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4891 | /* confdefs.h. */ |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
4896 | #include <sys/types.h> | |
4897 | #include <time.h> | |
4898 | ||
4899 | int | |
4900 | main () | |
4901 | { | |
4902 | struct tm *tp; tp->tm_sec; | |
4903 | ; | |
4904 | return 0; | |
4905 | } | |
4906 | _ACEOF | |
4907 | rm -f conftest.$ac_objext | |
4908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 4909 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4910 | ac_status=$? |
8a2fc586 AK |
4911 | grep -v '^ *+' conftest.er1 >conftest.err |
4912 | rm -f conftest.er1 | |
4913 | cat conftest.err >&5 | |
ad6254c5 AK |
4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4915 | (exit $ac_status); } && | |
8a2fc586 AK |
4916 | { ac_try='test -z "$ac_c_werror_flag" |
4917 | || test ! -s conftest.err' | |
4918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4919 | (eval $ac_try) 2>&5 | |
4920 | ac_status=$? | |
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4922 | (exit $ac_status); }; } && | |
4923 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4925 | (eval $ac_try) 2>&5 | |
4926 | ac_status=$? | |
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4928 | (exit $ac_status); }; }; then | |
4929 | ac_cv_struct_tm=time.h | |
4930 | else | |
4931 | echo "$as_me: failed program was:" >&5 | |
4932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4933 | ||
4934 | ac_cv_struct_tm=sys/time.h | |
4935 | fi | |
8a2fc586 | 4936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4937 | fi |
4938 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
4939 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
4940 | if test $ac_cv_struct_tm = sys/time.h; then | |
4941 | ||
4942 | cat >>confdefs.h <<\_ACEOF | |
4943 | #define TM_IN_SYS_TIME 1 | |
4944 | _ACEOF | |
4945 | ||
4946 | fi | |
809fae91 | 4947 | |
795ca3e5 | 4948 | |
80992638 | 4949 | ################################################################################ |
ad6254c5 AK |
4950 | |
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
4965 | do | |
4966 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4967 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4968 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4969 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4971 | else |
ad6254c5 | 4972 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4973 | /* confdefs.h. */ |
4974 | _ACEOF | |
4975 | cat confdefs.h >>conftest.$ac_ext | |
4976 | cat >>conftest.$ac_ext <<_ACEOF | |
4977 | /* end confdefs.h. */ | |
8a2fc586 AK |
4978 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4979 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4980 | #define $ac_func innocuous_$ac_func | |
4981 | ||
ad6254c5 AK |
4982 | /* System header to define __stub macros and hopefully few prototypes, |
4983 | which can conflict with char $ac_func (); below. | |
4984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4985 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 4986 | |
ad6254c5 AK |
4987 | #ifdef __STDC__ |
4988 | # include <limits.h> | |
4989 | #else | |
4990 | # include <assert.h> | |
4991 | #endif | |
8a2fc586 AK |
4992 | |
4993 | #undef $ac_func | |
4994 | ||
ad6254c5 AK |
4995 | /* Override any gcc2 internal prototype to avoid an error. */ |
4996 | #ifdef __cplusplus | |
4997 | extern "C" | |
4998 | { | |
4999 | #endif | |
5000 | /* We use char because int might match the return type of a gcc2 | |
5001 | builtin and then its argument prototype would still apply. */ | |
5002 | char $ac_func (); | |
5003 | /* The GNU C library defines this for functions which it implements | |
5004 | to always fail with ENOSYS. Some functions are actually named | |
5005 | something starting with __ and the normal name is an alias. */ | |
5006 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5007 | choke me | |
5008 | #else | |
5009 | char (*f) () = $ac_func; | |
5010 | #endif | |
5011 | #ifdef __cplusplus | |
5012 | } | |
5013 | #endif | |
5014 | ||
5015 | int | |
5016 | main () | |
5017 | { | |
5018 | return f != $ac_func; | |
5019 | ; | |
5020 | return 0; | |
5021 | } | |
5022 | _ACEOF | |
5023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5025 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5026 | ac_status=$? |
8a2fc586 AK |
5027 | grep -v '^ *+' conftest.er1 >conftest.err |
5028 | rm -f conftest.er1 | |
5029 | cat conftest.err >&5 | |
ad6254c5 AK |
5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5031 | (exit $ac_status); } && | |
8a2fc586 AK |
5032 | { ac_try='test -z "$ac_c_werror_flag" |
5033 | || test ! -s conftest.err' | |
5034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5035 | (eval $ac_try) 2>&5 | |
5036 | ac_status=$? | |
5037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5038 | (exit $ac_status); }; } && | |
5039 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5041 | (eval $ac_try) 2>&5 | |
5042 | ac_status=$? | |
5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5044 | (exit $ac_status); }; }; then | |
5045 | eval "$as_ac_var=yes" | |
795ca3e5 | 5046 | else |
ad6254c5 AK |
5047 | echo "$as_me: failed program was:" >&5 |
5048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5049 | ||
5050 | eval "$as_ac_var=no" | |
795ca3e5 | 5051 | fi |
8a2fc586 AK |
5052 | rm -f conftest.err conftest.$ac_objext \ |
5053 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5054 | fi |
5055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5056 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5057 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5058 | cat >>confdefs.h <<_ACEOF | |
5059 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5060 | _ACEOF | |
5061 | ||
5062 | else | |
5063 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
5064 | echo "$as_me: error: bailing out" >&2;} | |
5065 | { (exit 1); exit 1; }; } | |
5066 | fi | |
5067 | done | |
795ca3e5 | 5068 | |
ad6254c5 AK |
5069 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5070 | # for constant arguments. Useless! | |
5071 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
5072 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
5073 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5075 | else | |
5076 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5077 | /* confdefs.h. */ |
5078 | _ACEOF | |
5079 | cat confdefs.h >>conftest.$ac_ext | |
5080 | cat >>conftest.$ac_ext <<_ACEOF | |
5081 | /* end confdefs.h. */ | |
5082 | #include <alloca.h> | |
5083 | int | |
5084 | main () | |
5085 | { | |
5086 | char *p = (char *) alloca (2 * sizeof (int)); | |
5087 | ; | |
5088 | return 0; | |
5089 | } | |
5090 | _ACEOF | |
5091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5093 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5094 | ac_status=$? |
8a2fc586 AK |
5095 | grep -v '^ *+' conftest.er1 >conftest.err |
5096 | rm -f conftest.er1 | |
5097 | cat conftest.err >&5 | |
ad6254c5 AK |
5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5099 | (exit $ac_status); } && | |
8a2fc586 AK |
5100 | { ac_try='test -z "$ac_c_werror_flag" |
5101 | || test ! -s conftest.err' | |
5102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5103 | (eval $ac_try) 2>&5 | |
5104 | ac_status=$? | |
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5106 | (exit $ac_status); }; } && | |
5107 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5109 | (eval $ac_try) 2>&5 | |
5110 | ac_status=$? | |
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5112 | (exit $ac_status); }; }; then | |
5113 | ac_cv_working_alloca_h=yes | |
5114 | else | |
5115 | echo "$as_me: failed program was:" >&5 | |
5116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 5117 | |
ad6254c5 AK |
5118 | ac_cv_working_alloca_h=no |
5119 | fi | |
8a2fc586 AK |
5120 | rm -f conftest.err conftest.$ac_objext \ |
5121 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5122 | fi |
5123 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5124 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5125 | if test $ac_cv_working_alloca_h = yes; then | |
5126 | ||
5127 | cat >>confdefs.h <<\_ACEOF | |
5128 | #define HAVE_ALLOCA_H 1 | |
5129 | _ACEOF | |
5130 | ||
5131 | fi | |
5132 | ||
5133 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
5134 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5135 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5137 | else | |
5138 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5139 | /* confdefs.h. */ |
5140 | _ACEOF | |
5141 | cat confdefs.h >>conftest.$ac_ext | |
5142 | cat >>conftest.$ac_ext <<_ACEOF | |
5143 | /* end confdefs.h. */ | |
5144 | #ifdef __GNUC__ | |
5145 | # define alloca __builtin_alloca | |
5146 | #else | |
5147 | # ifdef _MSC_VER | |
5148 | # include <malloc.h> | |
5149 | # define alloca _alloca | |
5150 | # else | |
5151 | # if HAVE_ALLOCA_H | |
5152 | # include <alloca.h> | |
5153 | # else | |
5154 | # ifdef _AIX | |
5155 | #pragma alloca | |
5156 | # else | |
5157 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5158 | char *alloca (); | |
5159 | # endif | |
5160 | # endif | |
5161 | # endif | |
5162 | # endif | |
5163 | #endif | |
5164 | ||
5165 | int | |
5166 | main () | |
5167 | { | |
5168 | char *p = (char *) alloca (1); | |
5169 | ; | |
5170 | return 0; | |
5171 | } | |
5172 | _ACEOF | |
5173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5175 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5176 | ac_status=$? |
8a2fc586 AK |
5177 | grep -v '^ *+' conftest.er1 >conftest.err |
5178 | rm -f conftest.er1 | |
5179 | cat conftest.err >&5 | |
ad6254c5 AK |
5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5181 | (exit $ac_status); } && | |
8a2fc586 AK |
5182 | { ac_try='test -z "$ac_c_werror_flag" |
5183 | || test ! -s conftest.err' | |
5184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5185 | (eval $ac_try) 2>&5 | |
5186 | ac_status=$? | |
5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5188 | (exit $ac_status); }; } && | |
5189 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5191 | (eval $ac_try) 2>&5 | |
5192 | ac_status=$? | |
5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5194 | (exit $ac_status); }; }; then | |
5195 | ac_cv_func_alloca_works=yes | |
5196 | else | |
5197 | echo "$as_me: failed program was:" >&5 | |
5198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5199 | ||
5200 | ac_cv_func_alloca_works=no | |
5201 | fi | |
8a2fc586 AK |
5202 | rm -f conftest.err conftest.$ac_objext \ |
5203 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5204 | fi |
5205 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
5206 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5207 | ||
5208 | if test $ac_cv_func_alloca_works = yes; then | |
5209 | ||
5210 | cat >>confdefs.h <<\_ACEOF | |
5211 | #define HAVE_ALLOCA 1 | |
5212 | _ACEOF | |
5213 | ||
5214 | else | |
5215 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5216 | # that cause trouble. Some versions do not even contain alloca or | |
5217 | # contain a buggy version. If you still want to use their alloca, | |
5218 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5219 | ||
5220 | ALLOCA=alloca.$ac_objext | |
5221 | ||
5222 | cat >>confdefs.h <<\_ACEOF | |
5223 | #define C_ALLOCA 1 | |
5224 | _ACEOF | |
5225 | ||
5226 | ||
5227 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5228 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5229 | if test "${ac_cv_os_cray+set}" = set; then | |
5230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5231 | else | |
5232 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5233 | /* confdefs.h. */ |
5234 | _ACEOF | |
5235 | cat confdefs.h >>conftest.$ac_ext | |
5236 | cat >>conftest.$ac_ext <<_ACEOF | |
5237 | /* end confdefs.h. */ | |
5238 | #if defined(CRAY) && ! defined(CRAY2) | |
5239 | webecray | |
5240 | #else | |
5241 | wenotbecray | |
5242 | #endif | |
5243 | ||
5244 | _ACEOF | |
795ca3e5 | 5245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5246 | $EGREP "webecray" >/dev/null 2>&1; then |
5247 | ac_cv_os_cray=yes | |
5248 | else | |
5249 | ac_cv_os_cray=no | |
795ca3e5 AK |
5250 | fi |
5251 | rm -f conftest* | |
5252 | ||
795ca3e5 | 5253 | fi |
ad6254c5 AK |
5254 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5255 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5256 | if test $ac_cv_os_cray = yes; then | |
5257 | for ac_func in _getb67 GETB67 getb67; do | |
5258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5259 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5261 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5263 | else | |
5264 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5265 | /* confdefs.h. */ |
5266 | _ACEOF | |
5267 | cat confdefs.h >>conftest.$ac_ext | |
5268 | cat >>conftest.$ac_ext <<_ACEOF | |
5269 | /* end confdefs.h. */ | |
8a2fc586 AK |
5270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5272 | #define $ac_func innocuous_$ac_func | |
5273 | ||
ad6254c5 AK |
5274 | /* System header to define __stub macros and hopefully few prototypes, |
5275 | which can conflict with char $ac_func (); below. | |
5276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5277 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5278 | |
ad6254c5 AK |
5279 | #ifdef __STDC__ |
5280 | # include <limits.h> | |
5281 | #else | |
5282 | # include <assert.h> | |
5283 | #endif | |
8a2fc586 AK |
5284 | |
5285 | #undef $ac_func | |
5286 | ||
ad6254c5 AK |
5287 | /* Override any gcc2 internal prototype to avoid an error. */ |
5288 | #ifdef __cplusplus | |
5289 | extern "C" | |
5290 | { | |
5291 | #endif | |
5292 | /* We use char because int might match the return type of a gcc2 | |
5293 | builtin and then its argument prototype would still apply. */ | |
5294 | char $ac_func (); | |
5295 | /* The GNU C library defines this for functions which it implements | |
5296 | to always fail with ENOSYS. Some functions are actually named | |
5297 | something starting with __ and the normal name is an alias. */ | |
5298 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5299 | choke me | |
5300 | #else | |
5301 | char (*f) () = $ac_func; | |
5302 | #endif | |
5303 | #ifdef __cplusplus | |
5304 | } | |
5305 | #endif | |
5306 | ||
5307 | int | |
5308 | main () | |
5309 | { | |
5310 | return f != $ac_func; | |
5311 | ; | |
5312 | return 0; | |
5313 | } | |
5314 | _ACEOF | |
5315 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5317 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5318 | ac_status=$? |
8a2fc586 AK |
5319 | grep -v '^ *+' conftest.er1 >conftest.err |
5320 | rm -f conftest.er1 | |
5321 | cat conftest.err >&5 | |
ad6254c5 AK |
5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5323 | (exit $ac_status); } && | |
8a2fc586 AK |
5324 | { ac_try='test -z "$ac_c_werror_flag" |
5325 | || test ! -s conftest.err' | |
5326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5327 | (eval $ac_try) 2>&5 | |
5328 | ac_status=$? | |
5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5330 | (exit $ac_status); }; } && | |
5331 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5333 | (eval $ac_try) 2>&5 | |
5334 | ac_status=$? | |
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5336 | (exit $ac_status); }; }; then | |
5337 | eval "$as_ac_var=yes" | |
5338 | else | |
5339 | echo "$as_me: failed program was:" >&5 | |
5340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5341 | ||
5342 | eval "$as_ac_var=no" | |
5343 | fi | |
8a2fc586 AK |
5344 | rm -f conftest.err conftest.$ac_objext \ |
5345 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5346 | fi |
5347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5348 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5349 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 5350 | |
ad6254c5 AK |
5351 | cat >>confdefs.h <<_ACEOF |
5352 | #define CRAY_STACKSEG_END $ac_func | |
5353 | _ACEOF | |
5354 | ||
5355 | break | |
5356 | fi | |
5357 | ||
5358 | done | |
5359 | fi | |
5360 | ||
5361 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5362 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
5363 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5365 | else | |
5366 | if test "$cross_compiling" = yes; then | |
5367 | ac_cv_c_stack_direction=0 | |
5368 | else | |
5369 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5370 | /* confdefs.h. */ |
5371 | _ACEOF | |
5372 | cat confdefs.h >>conftest.$ac_ext | |
5373 | cat >>conftest.$ac_ext <<_ACEOF | |
5374 | /* end confdefs.h. */ | |
5375 | int | |
5376 | find_stack_direction () | |
5377 | { | |
5378 | static char *addr = 0; | |
5379 | auto char dummy; | |
5380 | if (addr == 0) | |
5381 | { | |
5382 | addr = &dummy; | |
5383 | return find_stack_direction (); | |
5384 | } | |
5385 | else | |
5386 | return (&dummy > addr) ? 1 : -1; | |
5387 | } | |
5388 | ||
5389 | int | |
5390 | main () | |
5391 | { | |
5392 | exit (find_stack_direction () < 0); | |
5393 | } | |
5394 | _ACEOF | |
5395 | rm -f conftest$ac_exeext | |
5396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5397 | (eval $ac_link) 2>&5 | |
5398 | ac_status=$? | |
5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5402 | (eval $ac_try) 2>&5 | |
5403 | ac_status=$? | |
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5405 | (exit $ac_status); }; }; then | |
5406 | ac_cv_c_stack_direction=1 | |
5407 | else | |
5408 | echo "$as_me: program exited with status $ac_status" >&5 | |
5409 | echo "$as_me: failed program was:" >&5 | |
5410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5411 | ||
5412 | ( exit $ac_status ) | |
5413 | ac_cv_c_stack_direction=-1 | |
5414 | fi | |
8a2fc586 | 5415 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5416 | fi |
5417 | fi | |
5418 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5419 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5420 | ||
5421 | cat >>confdefs.h <<_ACEOF | |
5422 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5423 | _ACEOF | |
5424 | ||
5425 | ||
5426 | fi | |
5427 | ||
5428 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
5429 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 | |
5430 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
5431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5432 | else | |
5433 | if test "$cross_compiling" = yes; then | |
5434 | ac_cv_func_closedir_void=yes | |
5435 | else | |
5436 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5437 | /* confdefs.h. */ |
5438 | _ACEOF | |
5439 | cat confdefs.h >>conftest.$ac_ext | |
5440 | cat >>conftest.$ac_ext <<_ACEOF | |
5441 | /* end confdefs.h. */ | |
5442 | $ac_includes_default | |
5443 | #include <$ac_header_dirent> | |
5444 | #ifndef __cplusplus | |
5445 | int closedir (); | |
5446 | #endif | |
5447 | ||
5448 | int | |
5449 | main () | |
5450 | { | |
5451 | exit (closedir (opendir (".")) != 0); | |
5452 | ; | |
5453 | return 0; | |
5454 | } | |
5455 | _ACEOF | |
5456 | rm -f conftest$ac_exeext | |
5457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5458 | (eval $ac_link) 2>&5 | |
5459 | ac_status=$? | |
5460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5461 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5463 | (eval $ac_try) 2>&5 | |
5464 | ac_status=$? | |
5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5466 | (exit $ac_status); }; }; then | |
5467 | ac_cv_func_closedir_void=no | |
5468 | else | |
5469 | echo "$as_me: program exited with status $ac_status" >&5 | |
5470 | echo "$as_me: failed program was:" >&5 | |
5471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5472 | ||
5473 | ( exit $ac_status ) | |
5474 | ac_cv_func_closedir_void=yes | |
5475 | fi | |
8a2fc586 | 5476 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5477 | fi |
5478 | fi | |
5479 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
5480 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 | |
5481 | if test $ac_cv_func_closedir_void = yes; then | |
5482 | ||
5483 | cat >>confdefs.h <<\_ACEOF | |
5484 | #define CLOSEDIR_VOID 1 | |
5485 | _ACEOF | |
5486 | ||
5487 | fi | |
5488 | ||
5489 | ||
5490 | ||
5491 | for ac_header in unistd.h vfork.h | |
5492 | do | |
5493 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5495 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5499 | fi | |
5500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5501 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5502 | else | |
5503 | # Is the header compilable? | |
5504 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5505 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5506 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5507 | /* confdefs.h. */ |
5508 | _ACEOF | |
5509 | cat confdefs.h >>conftest.$ac_ext | |
5510 | cat >>conftest.$ac_ext <<_ACEOF | |
5511 | /* end confdefs.h. */ | |
5512 | $ac_includes_default | |
5513 | #include <$ac_header> | |
5514 | _ACEOF | |
5515 | rm -f conftest.$ac_objext | |
5516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 5517 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 5518 | ac_status=$? |
8a2fc586 AK |
5519 | grep -v '^ *+' conftest.er1 >conftest.err |
5520 | rm -f conftest.er1 | |
5521 | cat conftest.err >&5 | |
ad6254c5 AK |
5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5523 | (exit $ac_status); } && | |
8a2fc586 AK |
5524 | { ac_try='test -z "$ac_c_werror_flag" |
5525 | || test ! -s conftest.err' | |
5526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5527 | (eval $ac_try) 2>&5 | |
5528 | ac_status=$? | |
5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5530 | (exit $ac_status); }; } && | |
5531 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
5532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5533 | (eval $ac_try) 2>&5 | |
5534 | ac_status=$? | |
5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5536 | (exit $ac_status); }; }; then | |
5537 | ac_header_compiler=yes | |
5538 | else | |
5539 | echo "$as_me: failed program was:" >&5 | |
5540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5541 | ||
5542 | ac_header_compiler=no | |
5543 | fi | |
8a2fc586 | 5544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5545 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5546 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5547 | ||
5548 | # Is the header present? | |
5549 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5550 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5551 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5552 | /* confdefs.h. */ |
5553 | _ACEOF | |
5554 | cat confdefs.h >>conftest.$ac_ext | |
5555 | cat >>conftest.$ac_ext <<_ACEOF | |
5556 | /* end confdefs.h. */ | |
5557 | #include <$ac_header> | |
5558 | _ACEOF | |
5559 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5560 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5561 | ac_status=$? | |
5562 | grep -v '^ *+' conftest.er1 >conftest.err | |
5563 | rm -f conftest.er1 | |
5564 | cat conftest.err >&5 | |
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5566 | (exit $ac_status); } >/dev/null; then | |
5567 | if test -s conftest.err; then | |
5568 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 5569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
5570 | else |
5571 | ac_cpp_err= | |
795ca3e5 | 5572 | fi |
ad6254c5 AK |
5573 | else |
5574 | ac_cpp_err=yes | |
5575 | fi | |
5576 | if test -z "$ac_cpp_err"; then | |
5577 | ac_header_preproc=yes | |
5578 | else | |
5579 | echo "$as_me: failed program was:" >&5 | |
5580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5581 | ||
5582 | ac_header_preproc=no | |
5583 | fi | |
5584 | rm -f conftest.err conftest.$ac_ext | |
5585 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5586 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5587 | ||
5588 | # So? What about this header? | |
8a2fc586 AK |
5589 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5590 | yes:no: ) | |
ad6254c5 AK |
5591 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5592 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
5593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5594 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5595 | ac_header_preproc=yes | |
ad6254c5 | 5596 | ;; |
8a2fc586 | 5597 | no:yes:* ) |
ad6254c5 AK |
5598 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5599 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
5600 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5601 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5602 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5603 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5604 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5605 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
5606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5607 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
5608 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5609 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
5610 | ( |
5611 | cat <<\_ASBOX | |
8a2fc586 AK |
5612 | ## ------------------------------------------ ## |
5613 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5614 | ## ------------------------------------------ ## | |
ad6254c5 AK |
5615 | _ASBOX |
5616 | ) | | |
5617 | sed "s/^/$as_me: WARNING: /" >&2 | |
5618 | ;; | |
5619 | esac | |
5620 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5624 | else | |
8a2fc586 | 5625 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
5626 | fi |
5627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5629 | ||
795ca3e5 | 5630 | fi |
ad6254c5 AK |
5631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5632 | cat >>confdefs.h <<_ACEOF | |
5633 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5634 | _ACEOF | |
5635 | ||
5636 | fi | |
5637 | ||
5638 | done | |
795ca3e5 | 5639 | |
ad6254c5 AK |
5640 | |
5641 | ||
5642 | for ac_func in fork vfork | |
5643 | do | |
5644 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5645 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5646 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5647 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 5649 | else |
ad6254c5 | 5650 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5651 | /* confdefs.h. */ |
5652 | _ACEOF | |
5653 | cat confdefs.h >>conftest.$ac_ext | |
5654 | cat >>conftest.$ac_ext <<_ACEOF | |
5655 | /* end confdefs.h. */ | |
8a2fc586 AK |
5656 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5657 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5658 | #define $ac_func innocuous_$ac_func | |
5659 | ||
ad6254c5 AK |
5660 | /* System header to define __stub macros and hopefully few prototypes, |
5661 | which can conflict with char $ac_func (); below. | |
5662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5663 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5664 | |
ad6254c5 AK |
5665 | #ifdef __STDC__ |
5666 | # include <limits.h> | |
5667 | #else | |
5668 | # include <assert.h> | |
795ca3e5 | 5669 | #endif |
8a2fc586 AK |
5670 | |
5671 | #undef $ac_func | |
5672 | ||
ad6254c5 | 5673 | /* Override any gcc2 internal prototype to avoid an error. */ |
795ca3e5 | 5674 | #ifdef __cplusplus |
ad6254c5 AK |
5675 | extern "C" |
5676 | { | |
5677 | #endif | |
5678 | /* We use char because int might match the return type of a gcc2 | |
5679 | builtin and then its argument prototype would still apply. */ | |
5680 | char $ac_func (); | |
5681 | /* The GNU C library defines this for functions which it implements | |
5682 | to always fail with ENOSYS. Some functions are actually named | |
5683 | something starting with __ and the normal name is an alias. */ | |
5684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5685 | choke me | |
795ca3e5 | 5686 | #else |
ad6254c5 AK |
5687 | char (*f) () = $ac_func; |
5688 | #endif | |
5689 | #ifdef __cplusplus | |
5690 | } | |
795ca3e5 AK |
5691 | #endif |
5692 | ||
ad6254c5 AK |
5693 | int |
5694 | main () | |
5695 | { | |
5696 | return f != $ac_func; | |
5697 | ; | |
5698 | return 0; | |
5699 | } | |
5700 | _ACEOF | |
5701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 5703 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5704 | ac_status=$? |
8a2fc586 AK |
5705 | grep -v '^ *+' conftest.er1 >conftest.err |
5706 | rm -f conftest.er1 | |
5707 | cat conftest.err >&5 | |
ad6254c5 AK |
5708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5709 | (exit $ac_status); } && | |
8a2fc586 AK |
5710 | { ac_try='test -z "$ac_c_werror_flag" |
5711 | || test ! -s conftest.err' | |
5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5713 | (eval $ac_try) 2>&5 | |
5714 | ac_status=$? | |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5716 | (exit $ac_status); }; } && | |
5717 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5719 | (eval $ac_try) 2>&5 | |
5720 | ac_status=$? | |
5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5722 | (exit $ac_status); }; }; then | |
5723 | eval "$as_ac_var=yes" | |
795ca3e5 | 5724 | else |
ad6254c5 AK |
5725 | echo "$as_me: failed program was:" >&5 |
5726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5727 | ||
5728 | eval "$as_ac_var=no" | |
795ca3e5 | 5729 | fi |
8a2fc586 AK |
5730 | rm -f conftest.err conftest.$ac_objext \ |
5731 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5732 | fi |
5733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5736 | cat >>confdefs.h <<_ACEOF | |
5737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5738 | _ACEOF | |
5739 | ||
5740 | fi | |
5741 | done | |
5742 | ||
5743 | if test "x$ac_cv_func_fork" = xyes; then | |
5744 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
5745 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
5746 | if test "${ac_cv_func_fork_works+set}" = set; then | |
5747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5748 | else | |
5749 | if test "$cross_compiling" = yes; then | |
5750 | ac_cv_func_fork_works=cross | |
5751 | else | |
5752 | cat >conftest.$ac_ext <<_ACEOF | |
5753 | /* By Ruediger Kuhlmann. */ | |
5754 | #include <sys/types.h> | |
5755 | #if HAVE_UNISTD_H | |
5756 | # include <unistd.h> | |
5757 | #endif | |
5758 | /* Some systems only have a dummy stub for fork() */ | |
5759 | int main () | |
5760 | { | |
8a2fc586 AK |
5761 | if (fork() < 0) |
5762 | exit (1); | |
5763 | exit (0); | |
ad6254c5 AK |
5764 | } |
5765 | _ACEOF | |
5766 | rm -f conftest$ac_exeext | |
5767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5768 | (eval $ac_link) 2>&5 | |
5769 | ac_status=$? | |
5770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5771 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5773 | (eval $ac_try) 2>&5 | |
5774 | ac_status=$? | |
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5776 | (exit $ac_status); }; }; then | |
5777 | ac_cv_func_fork_works=yes | |
5778 | else | |
5779 | echo "$as_me: program exited with status $ac_status" >&5 | |
5780 | echo "$as_me: failed program was:" >&5 | |
5781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5782 | ||
5783 | ( exit $ac_status ) | |
5784 | ac_cv_func_fork_works=no | |
5785 | fi | |
8a2fc586 | 5786 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5787 | fi |
5788 | fi | |
5789 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
5790 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
5791 | ||
5792 | else | |
5793 | ac_cv_func_fork_works=$ac_cv_func_fork | |
5794 | fi | |
5795 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5796 | case $host in | |
5797 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5798 | # Override, as these systems have only a dummy fork() stub | |
5799 | ac_cv_func_fork_works=no | |
5800 | ;; | |
5801 | *) | |
5802 | ac_cv_func_fork_works=yes | |
5803 | ;; | |
5804 | esac | |
5805 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5806 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5807 | fi | |
5808 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5809 | if test "x$ac_cv_func_vfork" = xyes; then | |
5810 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
5811 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
5812 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
5813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5814 | else | |
5815 | if test "$cross_compiling" = yes; then | |
5816 | ac_cv_func_vfork_works=cross | |
5817 | else | |
5818 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5819 | /* confdefs.h. */ |
5820 | _ACEOF | |
5821 | cat confdefs.h >>conftest.$ac_ext | |
5822 | cat >>conftest.$ac_ext <<_ACEOF | |
5823 | /* end confdefs.h. */ | |
5824 | /* Thanks to Paul Eggert for this test. */ | |
5825 | #include <stdio.h> | |
5826 | #include <stdlib.h> | |
5827 | #include <sys/types.h> | |
5828 | #include <sys/stat.h> | |
5829 | #include <sys/wait.h> | |
5830 | #if HAVE_UNISTD_H | |
5831 | # include <unistd.h> | |
5832 | #endif | |
5833 | #if HAVE_VFORK_H | |
5834 | # include <vfork.h> | |
5835 | #endif | |
5836 | /* On some sparc systems, changes by the child to local and incoming | |
5837 | argument registers are propagated back to the parent. The compiler | |
5838 | is told about this with #include <vfork.h>, but some compilers | |
5839 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5840 | static variable whose address is put into a register that is | |
5841 | clobbered by the vfork. */ | |
5842 | static void | |
5843 | #ifdef __cplusplus | |
5844 | sparc_address_test (int arg) | |
5845 | # else | |
5846 | sparc_address_test (arg) int arg; | |
5847 | #endif | |
5848 | { | |
5849 | static pid_t child; | |
5850 | if (!child) { | |
5851 | child = vfork (); | |
5852 | if (child < 0) { | |
5853 | perror ("vfork"); | |
5854 | _exit(2); | |
5855 | } | |
5856 | if (!child) { | |
5857 | arg = getpid(); | |
5858 | write(-1, "", 0); | |
5859 | _exit (arg); | |
5860 | } | |
5861 | } | |
5862 | } | |
5863 | ||
5864 | int | |
5865 | main () | |
5866 | { | |
5867 | pid_t parent = getpid (); | |
5868 | pid_t child; | |
5869 | ||
5870 | sparc_address_test (0); | |
5871 | ||
5872 | child = vfork (); | |
5873 | ||
5874 | if (child == 0) { | |
5875 | /* Here is another test for sparc vfork register problems. This | |
5876 | test uses lots of local variables, at least as many local | |
5877 | variables as main has allocated so far including compiler | |
5878 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5879 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5880 | reuse the register of parent for one of the local variables, | |
5881 | since it will think that parent can't possibly be used any more | |
5882 | in this routine. Assigning to the local variable will thus | |
5883 | munge parent in the parent process. */ | |
5884 | pid_t | |
5885 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5886 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5887 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5888 | use the same hardware register for all 8 local variables. */ | |
5889 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5890 | || p != p5 || p != p6 || p != p7) | |
5891 | _exit(1); | |
5892 | ||
5893 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5894 | from child file descriptors. If the child closes a descriptor | |
5895 | before it execs or exits, this munges the parent's descriptor | |
5896 | as well. Test for this by closing stdout in the child. */ | |
5897 | _exit(close(fileno(stdout)) != 0); | |
5898 | } else { | |
5899 | int status; | |
5900 | struct stat st; | |
5901 | ||
5902 | while (wait(&status) != child) | |
5903 | ; | |
5904 | exit( | |
5905 | /* Was there some problem with vforking? */ | |
5906 | child < 0 | |
5907 | ||
5908 | /* Did the child fail? (This shouldn't happen.) */ | |
5909 | || status | |
5910 | ||
5911 | /* Did the vfork/compiler bug occur? */ | |
5912 | || parent != getpid() | |
5913 | ||
5914 | /* Did the file descriptor bug occur? */ | |
5915 | || fstat(fileno(stdout), &st) != 0 | |
5916 | ); | |
5917 | } | |
5918 | } | |
5919 | _ACEOF | |
5920 | rm -f conftest$ac_exeext | |
5921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5922 | (eval $ac_link) 2>&5 | |
5923 | ac_status=$? | |
5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5927 | (eval $ac_try) 2>&5 | |
5928 | ac_status=$? | |
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5930 | (exit $ac_status); }; }; then | |
5931 | ac_cv_func_vfork_works=yes | |
5932 | else | |
5933 | echo "$as_me: program exited with status $ac_status" >&5 | |
5934 | echo "$as_me: failed program was:" >&5 | |
5935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5936 | ||
5937 | ( exit $ac_status ) | |
5938 | ac_cv_func_vfork_works=no | |
5939 | fi | |
8a2fc586 | 5940 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5941 | fi |
5942 | fi | |
5943 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
5944 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5945 | ||
5946 | fi; | |
5947 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 5948 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ad6254c5 AK |
5949 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
5950 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5951 | fi | |
5952 | ||
5953 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
5954 | ||
5955 | cat >>confdefs.h <<\_ACEOF | |
5956 | #define HAVE_WORKING_VFORK 1 | |
5957 | _ACEOF | |
5958 | ||
5959 | else | |
5960 | ||
5961 | cat >>confdefs.h <<\_ACEOF | |
5962 | #define vfork fork | |
5963 | _ACEOF | |
5964 | ||
5965 | fi | |
5966 | if test "x$ac_cv_func_fork_works" = xyes; then | |
5967 | ||
5968 | cat >>confdefs.h <<\_ACEOF | |
5969 | #define HAVE_WORKING_FORK 1 | |
5970 | _ACEOF | |
5971 | ||
5972 | fi | |
5973 | ||
5974 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 | |
5975 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 | |
5976 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then | |
5977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5978 | else | |
5979 | rm -f conftest.sym conftest.file | |
5980 | echo >conftest.file | |
5981 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5982 | if test "$cross_compiling" = yes; then | |
5983 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5984 | else | |
5985 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5986 | /* confdefs.h. */ |
5987 | _ACEOF | |
5988 | cat confdefs.h >>conftest.$ac_ext | |
5989 | cat >>conftest.$ac_ext <<_ACEOF | |
5990 | /* end confdefs.h. */ | |
5991 | $ac_includes_default | |
5992 | int | |
5993 | main () | |
5994 | { | |
5995 | struct stat sbuf; | |
5996 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
5997 | That is better in the sense that it means we will not |
5998 | have to compile and use the lstat wrapper. */ | |
ad6254c5 AK |
5999 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
6000 | ; | |
6001 | return 0; | |
6002 | } | |
6003 | _ACEOF | |
6004 | rm -f conftest$ac_exeext | |
6005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6006 | (eval $ac_link) 2>&5 | |
6007 | ac_status=$? | |
6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6011 | (eval $ac_try) 2>&5 | |
6012 | ac_status=$? | |
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6014 | (exit $ac_status); }; }; then | |
6015 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6016 | else | |
6017 | echo "$as_me: program exited with status $ac_status" >&5 | |
6018 | echo "$as_me: failed program was:" >&5 | |
6019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6020 | ||
6021 | ( exit $ac_status ) | |
6022 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6023 | fi | |
8a2fc586 | 6024 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6025 | fi |
6026 | else | |
6027 | # If the `ln -s' command failed, then we probably don't even | |
6028 | # have an lstat function. | |
6029 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6030 | fi | |
6031 | rm -f conftest.sym conftest.file | |
6032 | ||
6033 | fi | |
6034 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6035 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 | |
6036 | ||
6037 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6038 | ||
6039 | cat >>confdefs.h <<_ACEOF | |
6040 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6041 | _ACEOF | |
6042 | ||
6043 | ||
6044 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
8a2fc586 AK |
6045 | case $LIBOBJS in |
6046 | "lstat.$ac_objext" | \ | |
6047 | *" lstat.$ac_objext" | \ | |
6048 | "lstat.$ac_objext "* | \ | |
6049 | *" lstat.$ac_objext "* ) ;; | |
6050 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6051 | esac | |
6052 | ||
ad6254c5 AK |
6053 | fi |
6054 | ||
6055 | echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 | |
6056 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6 | |
6057 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then | |
6058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6059 | else | |
6060 | if test "$cross_compiling" = yes; then | |
6061 | ac_cv_func_lstat_empty_string_bug=yes | |
6062 | else | |
6063 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6064 | /* confdefs.h. */ |
6065 | _ACEOF | |
6066 | cat confdefs.h >>conftest.$ac_ext | |
6067 | cat >>conftest.$ac_ext <<_ACEOF | |
6068 | /* end confdefs.h. */ | |
6069 | $ac_includes_default | |
6070 | int | |
6071 | main () | |
6072 | { | |
6073 | struct stat sbuf; | |
6074 | exit (lstat ("", &sbuf) ? 1 : 0); | |
6075 | ; | |
6076 | return 0; | |
6077 | } | |
6078 | _ACEOF | |
6079 | rm -f conftest$ac_exeext | |
6080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6081 | (eval $ac_link) 2>&5 | |
6082 | ac_status=$? | |
6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6084 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6086 | (eval $ac_try) 2>&5 | |
6087 | ac_status=$? | |
6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6089 | (exit $ac_status); }; }; then | |
6090 | ac_cv_func_lstat_empty_string_bug=yes | |
6091 | else | |
6092 | echo "$as_me: program exited with status $ac_status" >&5 | |
6093 | echo "$as_me: failed program was:" >&5 | |
6094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6095 | ||
6096 | ( exit $ac_status ) | |
6097 | ac_cv_func_lstat_empty_string_bug=no | |
6098 | fi | |
8a2fc586 | 6099 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6100 | fi |
6101 | fi | |
6102 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6103 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6 | |
6104 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
8a2fc586 AK |
6105 | case $LIBOBJS in |
6106 | "lstat.$ac_objext" | \ | |
6107 | *" lstat.$ac_objext" | \ | |
6108 | "lstat.$ac_objext "* | \ | |
6109 | *" lstat.$ac_objext "* ) ;; | |
6110 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6111 | esac | |
6112 | ||
ad6254c5 AK |
6113 | |
6114 | cat >>confdefs.h <<_ACEOF | |
6115 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6116 | _ACEOF | |
6117 | ||
6118 | fi | |
6119 | ||
6120 | ||
6121 | for ac_header in stdlib.h | |
6122 | do | |
6123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6129 | fi | |
6130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6132 | else | |
6133 | # Is the header compilable? | |
6134 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6136 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6137 | /* confdefs.h. */ |
6138 | _ACEOF | |
6139 | cat confdefs.h >>conftest.$ac_ext | |
6140 | cat >>conftest.$ac_ext <<_ACEOF | |
6141 | /* end confdefs.h. */ | |
6142 | $ac_includes_default | |
6143 | #include <$ac_header> | |
6144 | _ACEOF | |
6145 | rm -f conftest.$ac_objext | |
6146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 6147 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6148 | ac_status=$? |
8a2fc586 AK |
6149 | grep -v '^ *+' conftest.er1 >conftest.err |
6150 | rm -f conftest.er1 | |
6151 | cat conftest.err >&5 | |
ad6254c5 AK |
6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6153 | (exit $ac_status); } && | |
8a2fc586 AK |
6154 | { ac_try='test -z "$ac_c_werror_flag" |
6155 | || test ! -s conftest.err' | |
6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6157 | (eval $ac_try) 2>&5 | |
6158 | ac_status=$? | |
6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6160 | (exit $ac_status); }; } && | |
6161 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6163 | (eval $ac_try) 2>&5 | |
6164 | ac_status=$? | |
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6166 | (exit $ac_status); }; }; then | |
6167 | ac_header_compiler=yes | |
6168 | else | |
6169 | echo "$as_me: failed program was:" >&5 | |
6170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6171 | ||
6172 | ac_header_compiler=no | |
6173 | fi | |
8a2fc586 | 6174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6176 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6177 | ||
6178 | # Is the header present? | |
6179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6181 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6182 | /* confdefs.h. */ |
6183 | _ACEOF | |
6184 | cat confdefs.h >>conftest.$ac_ext | |
6185 | cat >>conftest.$ac_ext <<_ACEOF | |
6186 | /* end confdefs.h. */ | |
6187 | #include <$ac_header> | |
6188 | _ACEOF | |
6189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6190 | (eval $ac_cpp conftest.$ac_ext) 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 | |
6196 | (exit $ac_status); } >/dev/null; then | |
6197 | if test -s conftest.err; then | |
6198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 6199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6200 | else |
6201 | ac_cpp_err= | |
6202 | fi | |
6203 | else | |
6204 | ac_cpp_err=yes | |
6205 | fi | |
6206 | if test -z "$ac_cpp_err"; then | |
6207 | ac_header_preproc=yes | |
6208 | else | |
6209 | echo "$as_me: failed program was:" >&5 | |
6210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6211 | ||
6212 | ac_header_preproc=no | |
6213 | fi | |
6214 | rm -f conftest.err conftest.$ac_ext | |
6215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6216 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6217 | ||
6218 | # So? What about this header? | |
8a2fc586 AK |
6219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6220 | yes:no: ) | |
ad6254c5 AK |
6221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6225 | ac_header_preproc=yes | |
ad6254c5 | 6226 | ;; |
8a2fc586 | 6227 | no:yes:* ) |
ad6254c5 AK |
6228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6240 | ( |
6241 | cat <<\_ASBOX | |
8a2fc586 AK |
6242 | ## ------------------------------------------ ## |
6243 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6244 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6245 | _ASBOX |
6246 | ) | | |
6247 | sed "s/^/$as_me: WARNING: /" >&2 | |
6248 | ;; | |
6249 | esac | |
6250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6254 | else | |
8a2fc586 | 6255 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6256 | fi |
6257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6259 | ||
6260 | fi | |
6261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6262 | cat >>confdefs.h <<_ACEOF | |
6263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6264 | _ACEOF | |
6265 | ||
6266 | fi | |
6267 | ||
6268 | done | |
6269 | ||
6270 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
6271 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 | |
6272 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6274 | else | |
6275 | if test "$cross_compiling" = yes; then | |
6276 | ac_cv_func_malloc_0_nonnull=no | |
6277 | else | |
6278 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6279 | /* confdefs.h. */ |
6280 | _ACEOF | |
6281 | cat confdefs.h >>conftest.$ac_ext | |
6282 | cat >>conftest.$ac_ext <<_ACEOF | |
6283 | /* end confdefs.h. */ | |
6284 | #if STDC_HEADERS || HAVE_STDLIB_H | |
6285 | # include <stdlib.h> | |
6286 | #else | |
6287 | char *malloc (); | |
6288 | #endif | |
6289 | ||
6290 | int | |
6291 | main () | |
6292 | { | |
6293 | exit (malloc (0) ? 0 : 1); | |
6294 | ; | |
6295 | return 0; | |
6296 | } | |
6297 | _ACEOF | |
6298 | rm -f conftest$ac_exeext | |
6299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6300 | (eval $ac_link) 2>&5 | |
6301 | ac_status=$? | |
6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6303 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6305 | (eval $ac_try) 2>&5 | |
6306 | ac_status=$? | |
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6308 | (exit $ac_status); }; }; then | |
6309 | ac_cv_func_malloc_0_nonnull=yes | |
6310 | else | |
6311 | echo "$as_me: program exited with status $ac_status" >&5 | |
6312 | echo "$as_me: failed program was:" >&5 | |
6313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6314 | ||
6315 | ( exit $ac_status ) | |
6316 | ac_cv_func_malloc_0_nonnull=no | |
6317 | fi | |
8a2fc586 | 6318 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6319 | fi |
6320 | fi | |
6321 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
6322 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 | |
6323 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
6324 | ||
6325 | cat >>confdefs.h <<\_ACEOF | |
6326 | #define HAVE_MALLOC 1 | |
6327 | _ACEOF | |
6328 | ||
6329 | else | |
6330 | cat >>confdefs.h <<\_ACEOF | |
6331 | #define HAVE_MALLOC 0 | |
6332 | _ACEOF | |
6333 | ||
8a2fc586 AK |
6334 | case $LIBOBJS in |
6335 | "malloc.$ac_objext" | \ | |
6336 | *" malloc.$ac_objext" | \ | |
6337 | "malloc.$ac_objext "* | \ | |
6338 | *" malloc.$ac_objext "* ) ;; | |
6339 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; | |
6340 | esac | |
6341 | ||
ad6254c5 AK |
6342 | |
6343 | cat >>confdefs.h <<\_ACEOF | |
6344 | #define malloc rpl_malloc | |
6345 | _ACEOF | |
6346 | ||
6347 | fi | |
6348 | ||
6349 | ||
6350 | ||
6351 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
6352 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
6353 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
6354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6355 | else | |
6356 | if test "$cross_compiling" = yes; then | |
6357 | ac_cv_func_memcmp_working=no | |
6358 | else | |
6359 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6360 | /* confdefs.h. */ |
6361 | _ACEOF | |
6362 | cat confdefs.h >>conftest.$ac_ext | |
6363 | cat >>conftest.$ac_ext <<_ACEOF | |
6364 | /* end confdefs.h. */ | |
8a2fc586 | 6365 | $ac_includes_default |
ad6254c5 AK |
6366 | int |
6367 | main () | |
6368 | { | |
6369 | ||
6370 | /* Some versions of memcmp are not 8-bit clean. */ | |
6371 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
6372 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6373 | exit (1); | |
6374 | ||
6375 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
6376 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6377 | William Lewis provided this test program. */ | |
6378 | { | |
6379 | char foo[21]; | |
6380 | char bar[21]; | |
6381 | int i; | |
6382 | for (i = 0; i < 4; i++) | |
6383 | { | |
8a2fc586 AK |
6384 | char *a = foo + i; |
6385 | char *b = bar + i; | |
6386 | strcpy (a, "--------01111111"); | |
6387 | strcpy (b, "--------10000000"); | |
6388 | if (memcmp (a, b, 16) >= 0) | |
6389 | exit (1); | |
ad6254c5 AK |
6390 | } |
6391 | exit (0); | |
6392 | } | |
6393 | ||
6394 | ; | |
6395 | return 0; | |
6396 | } | |
6397 | _ACEOF | |
6398 | rm -f conftest$ac_exeext | |
6399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6400 | (eval $ac_link) 2>&5 | |
6401 | ac_status=$? | |
6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6405 | (eval $ac_try) 2>&5 | |
6406 | ac_status=$? | |
6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6408 | (exit $ac_status); }; }; then | |
6409 | ac_cv_func_memcmp_working=yes | |
6410 | else | |
6411 | echo "$as_me: program exited with status $ac_status" >&5 | |
6412 | echo "$as_me: failed program was:" >&5 | |
6413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6414 | ||
6415 | ( exit $ac_status ) | |
6416 | ac_cv_func_memcmp_working=no | |
6417 | fi | |
8a2fc586 | 6418 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6419 | fi |
6420 | fi | |
6421 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
6422 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
8a2fc586 AK |
6423 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
6424 | "memcmp.$ac_objext" | \ | |
6425 | *" memcmp.$ac_objext" | \ | |
6426 | "memcmp.$ac_objext "* | \ | |
6427 | *" memcmp.$ac_objext "* ) ;; | |
6428 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; | |
6429 | esac | |
6430 | ||
ad6254c5 AK |
6431 | |
6432 | ||
6433 | ||
6434 | for ac_header in stdlib.h unistd.h | |
6435 | do | |
6436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6442 | fi | |
6443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6445 | else | |
6446 | # Is the header compilable? | |
6447 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6449 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6450 | /* confdefs.h. */ |
6451 | _ACEOF | |
6452 | cat confdefs.h >>conftest.$ac_ext | |
6453 | cat >>conftest.$ac_ext <<_ACEOF | |
6454 | /* end confdefs.h. */ | |
6455 | $ac_includes_default | |
6456 | #include <$ac_header> | |
6457 | _ACEOF | |
6458 | rm -f conftest.$ac_objext | |
6459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 6460 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6461 | ac_status=$? |
8a2fc586 AK |
6462 | grep -v '^ *+' conftest.er1 >conftest.err |
6463 | rm -f conftest.er1 | |
6464 | cat conftest.err >&5 | |
ad6254c5 AK |
6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6466 | (exit $ac_status); } && | |
8a2fc586 AK |
6467 | { ac_try='test -z "$ac_c_werror_flag" |
6468 | || test ! -s conftest.err' | |
6469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6470 | (eval $ac_try) 2>&5 | |
6471 | ac_status=$? | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 | (exit $ac_status); }; } && | |
6474 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6476 | (eval $ac_try) 2>&5 | |
6477 | ac_status=$? | |
6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6479 | (exit $ac_status); }; }; then | |
6480 | ac_header_compiler=yes | |
6481 | else | |
6482 | echo "$as_me: failed program was:" >&5 | |
6483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6484 | ||
6485 | ac_header_compiler=no | |
6486 | fi | |
8a2fc586 | 6487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6488 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6489 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6490 | ||
6491 | # Is the header present? | |
6492 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6493 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6494 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6495 | /* confdefs.h. */ |
6496 | _ACEOF | |
6497 | cat confdefs.h >>conftest.$ac_ext | |
6498 | cat >>conftest.$ac_ext <<_ACEOF | |
6499 | /* end confdefs.h. */ | |
6500 | #include <$ac_header> | |
6501 | _ACEOF | |
6502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6504 | ac_status=$? | |
6505 | grep -v '^ *+' conftest.er1 >conftest.err | |
6506 | rm -f conftest.er1 | |
6507 | cat conftest.err >&5 | |
6508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6509 | (exit $ac_status); } >/dev/null; then | |
6510 | if test -s conftest.err; then | |
6511 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 6512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6513 | else |
6514 | ac_cpp_err= | |
6515 | fi | |
6516 | else | |
6517 | ac_cpp_err=yes | |
6518 | fi | |
6519 | if test -z "$ac_cpp_err"; then | |
6520 | ac_header_preproc=yes | |
6521 | else | |
6522 | echo "$as_me: failed program was:" >&5 | |
6523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6524 | ||
6525 | ac_header_preproc=no | |
6526 | fi | |
6527 | rm -f conftest.err conftest.$ac_ext | |
6528 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6529 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6530 | ||
6531 | # So? What about this header? | |
8a2fc586 AK |
6532 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6533 | yes:no: ) | |
ad6254c5 AK |
6534 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6535 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
6536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6537 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6538 | ac_header_preproc=yes | |
ad6254c5 | 6539 | ;; |
8a2fc586 | 6540 | no:yes:* ) |
ad6254c5 AK |
6541 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6542 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
6543 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6544 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6545 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6546 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6547 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6548 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6550 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
6551 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6552 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6553 | ( |
6554 | cat <<\_ASBOX | |
8a2fc586 AK |
6555 | ## ------------------------------------------ ## |
6556 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6557 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6558 | _ASBOX |
6559 | ) | | |
6560 | sed "s/^/$as_me: WARNING: /" >&2 | |
6561 | ;; | |
6562 | esac | |
6563 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6565 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6567 | else | |
8a2fc586 | 6568 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6569 | fi |
6570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6572 | ||
6573 | fi | |
6574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6575 | cat >>confdefs.h <<_ACEOF | |
6576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6577 | _ACEOF | |
6578 | ||
6579 | fi | |
6580 | ||
6581 | done | |
6582 | ||
6583 | ||
6584 | for ac_func in getpagesize | |
6585 | do | |
6586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6587 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6589 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6591 | else | |
6592 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6593 | /* confdefs.h. */ |
6594 | _ACEOF | |
6595 | cat confdefs.h >>conftest.$ac_ext | |
6596 | cat >>conftest.$ac_ext <<_ACEOF | |
6597 | /* end confdefs.h. */ | |
8a2fc586 AK |
6598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6600 | #define $ac_func innocuous_$ac_func | |
6601 | ||
ad6254c5 AK |
6602 | /* System header to define __stub macros and hopefully few prototypes, |
6603 | which can conflict with char $ac_func (); below. | |
6604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6605 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6606 | |
ad6254c5 AK |
6607 | #ifdef __STDC__ |
6608 | # include <limits.h> | |
6609 | #else | |
6610 | # include <assert.h> | |
6611 | #endif | |
8a2fc586 AK |
6612 | |
6613 | #undef $ac_func | |
6614 | ||
ad6254c5 AK |
6615 | /* Override any gcc2 internal prototype to avoid an error. */ |
6616 | #ifdef __cplusplus | |
6617 | extern "C" | |
6618 | { | |
6619 | #endif | |
6620 | /* We use char because int might match the return type of a gcc2 | |
6621 | builtin and then its argument prototype would still apply. */ | |
6622 | char $ac_func (); | |
6623 | /* The GNU C library defines this for functions which it implements | |
6624 | to always fail with ENOSYS. Some functions are actually named | |
6625 | something starting with __ and the normal name is an alias. */ | |
6626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6627 | choke me | |
6628 | #else | |
6629 | char (*f) () = $ac_func; | |
6630 | #endif | |
6631 | #ifdef __cplusplus | |
6632 | } | |
6633 | #endif | |
6634 | ||
6635 | int | |
6636 | main () | |
6637 | { | |
6638 | return f != $ac_func; | |
6639 | ; | |
6640 | return 0; | |
6641 | } | |
6642 | _ACEOF | |
6643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 6645 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 6646 | ac_status=$? |
8a2fc586 AK |
6647 | grep -v '^ *+' conftest.er1 >conftest.err |
6648 | rm -f conftest.er1 | |
6649 | cat conftest.err >&5 | |
ad6254c5 AK |
6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6651 | (exit $ac_status); } && | |
8a2fc586 AK |
6652 | { ac_try='test -z "$ac_c_werror_flag" |
6653 | || test ! -s conftest.err' | |
6654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6655 | (eval $ac_try) 2>&5 | |
6656 | ac_status=$? | |
6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6658 | (exit $ac_status); }; } && | |
6659 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
6660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6661 | (eval $ac_try) 2>&5 | |
6662 | ac_status=$? | |
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6664 | (exit $ac_status); }; }; then | |
6665 | eval "$as_ac_var=yes" | |
6666 | else | |
6667 | echo "$as_me: failed program was:" >&5 | |
6668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6669 | ||
6670 | eval "$as_ac_var=no" | |
6671 | fi | |
8a2fc586 AK |
6672 | rm -f conftest.err conftest.$ac_objext \ |
6673 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
6674 | fi |
6675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6676 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6677 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6678 | cat >>confdefs.h <<_ACEOF | |
6679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6680 | _ACEOF | |
6681 | ||
6682 | fi | |
6683 | done | |
6684 | ||
6685 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
6686 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6687 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6689 | else | |
6690 | if test "$cross_compiling" = yes; then | |
6691 | ac_cv_func_mmap_fixed_mapped=no | |
6692 | else | |
6693 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6694 | /* confdefs.h. */ |
6695 | _ACEOF | |
6696 | cat confdefs.h >>conftest.$ac_ext | |
6697 | cat >>conftest.$ac_ext <<_ACEOF | |
6698 | /* end confdefs.h. */ | |
6699 | $ac_includes_default | |
6700 | /* malloc might have been renamed as rpl_malloc. */ | |
6701 | #undef malloc | |
6702 | ||
6703 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6704 | Here is a matrix of mmap possibilities: | |
6705 | mmap private not fixed | |
6706 | mmap private fixed at somewhere currently unmapped | |
6707 | mmap private fixed at somewhere already mapped | |
6708 | mmap shared not fixed | |
6709 | mmap shared fixed at somewhere currently unmapped | |
6710 | mmap shared fixed at somewhere already mapped | |
6711 | For private mappings, we should verify that changes cannot be read() | |
6712 | back from the file, nor mmap's back from the file at a different | |
6713 | address. (There have been systems where private was not correctly | |
6714 | implemented like the infamous i386 svr4.0, and systems where the | |
6715 | VM page cache was not coherent with the file system buffer cache | |
6716 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6717 | For shared mappings, we should conversely verify that changes get | |
6718 | propagated back to all the places they're supposed to be. | |
6719 | ||
6720 | Grep wants private fixed already mapped. | |
6721 | The main things grep needs to know about mmap are: | |
6722 | * does it exist and is it safe to write into the mmap'd area | |
6723 | * how to use it (BSD variants) */ | |
6724 | ||
6725 | #include <fcntl.h> | |
6726 | #include <sys/mman.h> | |
6727 | ||
6728 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6729 | char *malloc (); | |
6730 | #endif | |
6731 | ||
6732 | /* This mess was copied from the GNU getpagesize.h. */ | |
6733 | #if !HAVE_GETPAGESIZE | |
6734 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6735 | # if !HAVE_SYS_PARAM_H | |
6736 | # define HAVE_SYS_PARAM_H 1 | |
6737 | # endif | |
6738 | ||
6739 | # ifdef _SC_PAGESIZE | |
6740 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6741 | # else /* no _SC_PAGESIZE */ | |
6742 | # if HAVE_SYS_PARAM_H | |
6743 | # include <sys/param.h> | |
6744 | # ifdef EXEC_PAGESIZE | |
6745 | # define getpagesize() EXEC_PAGESIZE | |
6746 | # else /* no EXEC_PAGESIZE */ | |
6747 | # ifdef NBPG | |
6748 | # define getpagesize() NBPG * CLSIZE | |
6749 | # ifndef CLSIZE | |
6750 | # define CLSIZE 1 | |
6751 | # endif /* no CLSIZE */ | |
6752 | # else /* no NBPG */ | |
6753 | # ifdef NBPC | |
6754 | # define getpagesize() NBPC | |
6755 | # else /* no NBPC */ | |
6756 | # ifdef PAGESIZE | |
6757 | # define getpagesize() PAGESIZE | |
6758 | # endif /* PAGESIZE */ | |
6759 | # endif /* no NBPC */ | |
6760 | # endif /* no NBPG */ | |
6761 | # endif /* no EXEC_PAGESIZE */ | |
6762 | # else /* no HAVE_SYS_PARAM_H */ | |
6763 | # define getpagesize() 8192 /* punt totally */ | |
6764 | # endif /* no HAVE_SYS_PARAM_H */ | |
6765 | # endif /* no _SC_PAGESIZE */ | |
6766 | ||
6767 | #endif /* no HAVE_GETPAGESIZE */ | |
6768 | ||
6769 | int | |
6770 | main () | |
6771 | { | |
6772 | char *data, *data2, *data3; | |
6773 | int i, pagesize; | |
6774 | int fd; | |
6775 | ||
6776 | pagesize = getpagesize (); | |
6777 | ||
6778 | /* First, make a file with some known garbage in it. */ | |
6779 | data = (char *) malloc (pagesize); | |
6780 | if (!data) | |
6781 | exit (1); | |
6782 | for (i = 0; i < pagesize; ++i) | |
6783 | *(data + i) = rand (); | |
6784 | umask (0); | |
6785 | fd = creat ("conftest.mmap", 0600); | |
6786 | if (fd < 0) | |
6787 | exit (1); | |
6788 | if (write (fd, data, pagesize) != pagesize) | |
6789 | exit (1); | |
6790 | close (fd); | |
6791 | ||
6792 | /* Next, try to mmap the file at a fixed address which already has | |
6793 | something else allocated at it. If we can, also make sure that | |
6794 | we see the same garbage. */ | |
6795 | fd = open ("conftest.mmap", O_RDWR); | |
6796 | if (fd < 0) | |
6797 | exit (1); | |
6798 | data2 = (char *) malloc (2 * pagesize); | |
6799 | if (!data2) | |
6800 | exit (1); | |
8a2fc586 | 6801 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
ad6254c5 | 6802 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 6803 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ad6254c5 AK |
6804 | exit (1); |
6805 | for (i = 0; i < pagesize; ++i) | |
6806 | if (*(data + i) != *(data2 + i)) | |
6807 | exit (1); | |
6808 | ||
6809 | /* Finally, make sure that changes to the mapped area do not | |
6810 | percolate back to the file as seen by read(). (This is a bug on | |
6811 | some variants of i386 svr4.0.) */ | |
6812 | for (i = 0; i < pagesize; ++i) | |
6813 | *(data2 + i) = *(data2 + i) + 1; | |
6814 | data3 = (char *) malloc (pagesize); | |
6815 | if (!data3) | |
6816 | exit (1); | |
6817 | if (read (fd, data3, pagesize) != pagesize) | |
6818 | exit (1); | |
6819 | for (i = 0; i < pagesize; ++i) | |
6820 | if (*(data + i) != *(data3 + i)) | |
6821 | exit (1); | |
6822 | close (fd); | |
6823 | exit (0); | |
6824 | } | |
6825 | _ACEOF | |
6826 | rm -f conftest$ac_exeext | |
6827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6828 | (eval $ac_link) 2>&5 | |
6829 | ac_status=$? | |
6830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6831 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6833 | (eval $ac_try) 2>&5 | |
6834 | ac_status=$? | |
6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6836 | (exit $ac_status); }; }; then | |
6837 | ac_cv_func_mmap_fixed_mapped=yes | |
6838 | else | |
6839 | echo "$as_me: program exited with status $ac_status" >&5 | |
6840 | echo "$as_me: failed program was:" >&5 | |
6841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6842 | ||
6843 | ( exit $ac_status ) | |
6844 | ac_cv_func_mmap_fixed_mapped=no | |
6845 | fi | |
8a2fc586 | 6846 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6847 | fi |
6848 | fi | |
6849 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
6850 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6851 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6852 | ||
6853 | cat >>confdefs.h <<\_ACEOF | |
6854 | #define HAVE_MMAP 1 | |
6855 | _ACEOF | |
6856 | ||
6857 | fi | |
6858 | rm -f conftest.mmap | |
6859 | ||
6860 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 | |
6861 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 | |
6862 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then | |
6863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6864 | else | |
6865 | if test "$cross_compiling" = yes; then | |
6866 | ac_cv_func_stat_empty_string_bug=yes | |
6867 | else | |
6868 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6869 | /* confdefs.h. */ |
6870 | _ACEOF | |
6871 | cat confdefs.h >>conftest.$ac_ext | |
6872 | cat >>conftest.$ac_ext <<_ACEOF | |
6873 | /* end confdefs.h. */ | |
6874 | $ac_includes_default | |
6875 | int | |
6876 | main () | |
6877 | { | |
6878 | struct stat sbuf; | |
6879 | exit (stat ("", &sbuf) ? 1 : 0); | |
6880 | ; | |
6881 | return 0; | |
6882 | } | |
6883 | _ACEOF | |
6884 | rm -f conftest$ac_exeext | |
6885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6886 | (eval $ac_link) 2>&5 | |
6887 | ac_status=$? | |
6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6891 | (eval $ac_try) 2>&5 | |
6892 | ac_status=$? | |
6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6894 | (exit $ac_status); }; }; then | |
6895 | ac_cv_func_stat_empty_string_bug=yes | |
6896 | else | |
6897 | echo "$as_me: program exited with status $ac_status" >&5 | |
6898 | echo "$as_me: failed program was:" >&5 | |
6899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6900 | ||
6901 | ( exit $ac_status ) | |
6902 | ac_cv_func_stat_empty_string_bug=no | |
6903 | fi | |
8a2fc586 | 6904 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6905 | fi |
6906 | fi | |
6907 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
6908 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 | |
6909 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
8a2fc586 AK |
6910 | case $LIBOBJS in |
6911 | "stat.$ac_objext" | \ | |
6912 | *" stat.$ac_objext" | \ | |
6913 | "stat.$ac_objext "* | \ | |
6914 | *" stat.$ac_objext "* ) ;; | |
6915 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; | |
6916 | esac | |
6917 | ||
ad6254c5 AK |
6918 | |
6919 | cat >>confdefs.h <<_ACEOF | |
6920 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
6921 | _ACEOF | |
6922 | ||
6923 | fi | |
6924 | ||
6925 | echo "$as_me:$LINENO: checking for working strtod" >&5 | |
6926 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 | |
6927 | if test "${ac_cv_func_strtod+set}" = set; then | |
6928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6929 | else | |
6930 | if test "$cross_compiling" = yes; then | |
6931 | ac_cv_func_strtod=no | |
6932 | else | |
6933 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6934 | /* confdefs.h. */ |
6935 | _ACEOF | |
6936 | cat confdefs.h >>conftest.$ac_ext | |
6937 | cat >>conftest.$ac_ext <<_ACEOF | |
6938 | /* end confdefs.h. */ | |
6939 | ||
6940 | double strtod (); | |
6941 | int | |
6942 | main() | |
6943 | { | |
6944 | { | |
6945 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6946 | char *string = " +69"; | |
6947 | char *term; | |
6948 | double value; | |
6949 | value = strtod (string, &term); | |
6950 | if (value != 69 || term != (string + 4)) | |
6951 | exit (1); | |
6952 | } | |
6953 | ||
6954 | { | |
6955 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6956 | terminating character under some conditions. */ | |
6957 | char *string = "NaN"; | |
6958 | char *term; | |
6959 | strtod (string, &term); | |
6960 | if (term != string && *(term - 1) == 0) | |
6961 | exit (1); | |
6962 | } | |
6963 | exit (0); | |
6964 | } | |
6965 | ||
6966 | _ACEOF | |
6967 | rm -f conftest$ac_exeext | |
6968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6969 | (eval $ac_link) 2>&5 | |
6970 | ac_status=$? | |
6971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6974 | (eval $ac_try) 2>&5 | |
6975 | ac_status=$? | |
6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6977 | (exit $ac_status); }; }; then | |
6978 | ac_cv_func_strtod=yes | |
6979 | else | |
6980 | echo "$as_me: program exited with status $ac_status" >&5 | |
6981 | echo "$as_me: failed program was:" >&5 | |
6982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6983 | ||
6984 | ( exit $ac_status ) | |
6985 | ac_cv_func_strtod=no | |
6986 | fi | |
8a2fc586 | 6987 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6988 | fi |
6989 | fi | |
6990 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 | |
6991 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 | |
6992 | if test $ac_cv_func_strtod = no; then | |
8a2fc586 AK |
6993 | case $LIBOBJS in |
6994 | "strtod.$ac_objext" | \ | |
6995 | *" strtod.$ac_objext" | \ | |
6996 | "strtod.$ac_objext "* | \ | |
6997 | *" strtod.$ac_objext "* ) ;; | |
6998 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; | |
6999 | esac | |
7000 | ||
ad6254c5 AK |
7001 | echo "$as_me:$LINENO: checking for pow" >&5 |
7002 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 | |
7003 | if test "${ac_cv_func_pow+set}" = set; then | |
7004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7005 | else | |
7006 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7007 | /* confdefs.h. */ |
7008 | _ACEOF | |
7009 | cat confdefs.h >>conftest.$ac_ext | |
7010 | cat >>conftest.$ac_ext <<_ACEOF | |
7011 | /* end confdefs.h. */ | |
8a2fc586 AK |
7012 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7014 | #define pow innocuous_pow | |
7015 | ||
ad6254c5 AK |
7016 | /* System header to define __stub macros and hopefully few prototypes, |
7017 | which can conflict with char pow (); below. | |
7018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7019 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7020 | |
ad6254c5 AK |
7021 | #ifdef __STDC__ |
7022 | # include <limits.h> | |
7023 | #else | |
7024 | # include <assert.h> | |
7025 | #endif | |
8a2fc586 AK |
7026 | |
7027 | #undef pow | |
7028 | ||
ad6254c5 AK |
7029 | /* Override any gcc2 internal prototype to avoid an error. */ |
7030 | #ifdef __cplusplus | |
7031 | extern "C" | |
7032 | { | |
7033 | #endif | |
7034 | /* We use char because int might match the return type of a gcc2 | |
7035 | builtin and then its argument prototype would still apply. */ | |
7036 | char pow (); | |
7037 | /* The GNU C library defines this for functions which it implements | |
7038 | to always fail with ENOSYS. Some functions are actually named | |
7039 | something starting with __ and the normal name is an alias. */ | |
7040 | #if defined (__stub_pow) || defined (__stub___pow) | |
7041 | choke me | |
7042 | #else | |
7043 | char (*f) () = pow; | |
7044 | #endif | |
7045 | #ifdef __cplusplus | |
7046 | } | |
7047 | #endif | |
7048 | ||
7049 | int | |
7050 | main () | |
7051 | { | |
7052 | return f != pow; | |
7053 | ; | |
7054 | return 0; | |
7055 | } | |
7056 | _ACEOF | |
7057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7059 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7060 | ac_status=$? |
8a2fc586 AK |
7061 | grep -v '^ *+' conftest.er1 >conftest.err |
7062 | rm -f conftest.er1 | |
7063 | cat conftest.err >&5 | |
ad6254c5 AK |
7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7065 | (exit $ac_status); } && | |
8a2fc586 AK |
7066 | { ac_try='test -z "$ac_c_werror_flag" |
7067 | || test ! -s conftest.err' | |
7068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7069 | (eval $ac_try) 2>&5 | |
7070 | ac_status=$? | |
7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7072 | (exit $ac_status); }; } && | |
7073 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7075 | (eval $ac_try) 2>&5 | |
7076 | ac_status=$? | |
7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7078 | (exit $ac_status); }; }; then | |
7079 | ac_cv_func_pow=yes | |
7080 | else | |
7081 | echo "$as_me: failed program was:" >&5 | |
7082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7083 | ||
7084 | ac_cv_func_pow=no | |
7085 | fi | |
8a2fc586 AK |
7086 | rm -f conftest.err conftest.$ac_objext \ |
7087 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7088 | fi |
7089 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 | |
7090 | echo "${ECHO_T}$ac_cv_func_pow" >&6 | |
7091 | ||
7092 | if test $ac_cv_func_pow = no; then | |
7093 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
7094 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
7095 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
7096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7097 | else | |
7098 | ac_check_lib_save_LIBS=$LIBS | |
7099 | LIBS="-lm $LIBS" | |
7100 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7101 | /* confdefs.h. */ |
7102 | _ACEOF | |
7103 | cat confdefs.h >>conftest.$ac_ext | |
7104 | cat >>conftest.$ac_ext <<_ACEOF | |
7105 | /* end confdefs.h. */ | |
7106 | ||
7107 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7108 | #ifdef __cplusplus | |
7109 | extern "C" | |
7110 | #endif | |
7111 | /* We use char because int might match the return type of a gcc2 | |
7112 | builtin and then its argument prototype would still apply. */ | |
7113 | char pow (); | |
7114 | int | |
7115 | main () | |
7116 | { | |
7117 | pow (); | |
7118 | ; | |
7119 | return 0; | |
7120 | } | |
7121 | _ACEOF | |
7122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7124 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7125 | ac_status=$? |
8a2fc586 AK |
7126 | grep -v '^ *+' conftest.er1 >conftest.err |
7127 | rm -f conftest.er1 | |
7128 | cat conftest.err >&5 | |
ad6254c5 AK |
7129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7130 | (exit $ac_status); } && | |
8a2fc586 AK |
7131 | { ac_try='test -z "$ac_c_werror_flag" |
7132 | || test ! -s conftest.err' | |
7133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7134 | (eval $ac_try) 2>&5 | |
7135 | ac_status=$? | |
7136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7137 | (exit $ac_status); }; } && | |
7138 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7140 | (eval $ac_try) 2>&5 | |
7141 | ac_status=$? | |
7142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7143 | (exit $ac_status); }; }; then | |
7144 | ac_cv_lib_m_pow=yes | |
7145 | else | |
7146 | echo "$as_me: failed program was:" >&5 | |
7147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7148 | ||
7149 | ac_cv_lib_m_pow=no | |
7150 | fi | |
8a2fc586 AK |
7151 | rm -f conftest.err conftest.$ac_objext \ |
7152 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7153 | LIBS=$ac_check_lib_save_LIBS |
7154 | fi | |
7155 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
7156 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
7157 | if test $ac_cv_lib_m_pow = yes; then | |
7158 | POW_LIB=-lm | |
7159 | else | |
7160 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
7161 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
7162 | fi | |
7163 | ||
7164 | fi | |
7165 | ||
7166 | fi | |
7167 | ||
7168 | ||
7169 | ################################################################################ | |
7170 | ||
7171 | ||
7172 | ################################################################################ | |
7173 | # Check whether --enable-jobs or --disable-jobs was given. | |
7174 | if test "${enable_jobs+set}" = set; then | |
7175 | enableval="$enable_jobs" | |
7176 | JOBS=-j$enableval | |
7177 | else | |
7178 | JOBS=-j2 | |
7179 | fi; | |
7180 | ||
7181 | ################################################################################ | |
7182 | echo "$as_me:$LINENO: checking file owner" >&5 | |
7183 | echo $ECHO_N "checking file owner... $ECHO_C" >&6 | |
7184 | OWNER="root" | |
7185 | ||
7186 | ||
7187 | # Check whether --with-user or --without-user was given. | |
7188 | if test "${with_user+set}" = set; then | |
7189 | withval="$with_user" | |
7190 | OWNER="$withval" | |
7191 | fi; | |
7192 | echo "$as_me:$LINENO: result: $OWNER" >&5 | |
7193 | echo "${ECHO_T}$OWNER" >&6 | |
7194 | ||
7195 | if test x$OWNER != x; then | |
7196 | OWNER="-o $OWNER" | |
7197 | fi | |
7198 | ||
7199 | ################################################################################ | |
7200 | echo "$as_me:$LINENO: checking group owner" >&5 | |
7201 | echo $ECHO_N "checking group owner... $ECHO_C" >&6 | |
7202 | GROUP="root" | |
7203 | ||
7204 | # Check whether --with-group or --without-group was given. | |
7205 | if test "${with_group+set}" = set; then | |
7206 | withval="$with_group" | |
7207 | GROUP="$withval" | |
7208 | fi; | |
7209 | echo "$as_me:$LINENO: result: $GROUP" >&5 | |
7210 | echo "${ECHO_T}$GROUP" >&6 | |
7211 | ||
7212 | if test x$GROUP != x; then | |
7213 | GROUP="-g $GROUP" | |
7214 | fi | |
7215 | ||
7216 | ################################################################################ | |
7217 | echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 | |
7218 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6 | |
7219 | # Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given. | |
7220 | if test "${enable_lvm1_fallback+set}" = set; then | |
7221 | enableval="$enable_lvm1_fallback" | |
7222 | LVM1_FALLBACK=$enableval | |
7223 | else | |
7224 | LVM1_FALLBACK=no | |
7225 | fi; | |
7226 | echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 | |
7227 | echo "${ECHO_T}$LVM1_FALLBACK" >&6 | |
7228 | ||
7229 | if test x$LVM1_FALLBACK = xyes; then | |
8a2fc586 | 7230 | LVM_DEFS="$LVM_DEFS -DLVM1_FALLBACK" |
ad6254c5 AK |
7231 | fi |
7232 | ||
7233 | ################################################################################ | |
7234 | echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 | |
7235 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6 | |
7236 | ||
7237 | # Check whether --with-lvm1 or --without-lvm1 was given. | |
7238 | if test "${with_lvm1+set}" = set; then | |
7239 | withval="$with_lvm1" | |
7240 | LVM1="$withval" | |
7241 | else | |
7242 | LVM1="internal" | |
7243 | fi; | |
7244 | echo "$as_me:$LINENO: result: $LVM1" >&5 | |
7245 | echo "${ECHO_T}$LVM1" >&6 | |
7246 | ||
7247 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
7248 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
7249 | " >&5 | |
7250 | echo "$as_me: error: --with-lvm1 parameter invalid | |
7251 | " >&2;} | |
7252 | { (exit 1); exit 1; }; } | |
7253 | fi; | |
7254 | ||
7255 | if test x$LVM1 = xinternal; then | |
8a2fc586 | 7256 | LVM_DEFS="$LVM_DEFS -DLVM1_INTERNAL" |
ad6254c5 AK |
7257 | fi |
7258 | ||
7259 | ################################################################################ | |
7260 | echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 | |
7261 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6 | |
7262 | ||
7263 | # Check whether --with-pool or --without-pool was given. | |
7264 | if test "${with_pool+set}" = set; then | |
7265 | withval="$with_pool" | |
7266 | POOL="$withval" | |
7267 | else | |
7268 | POOL="internal" | |
7269 | fi; | |
7270 | echo "$as_me:$LINENO: result: $POOL" >&5 | |
7271 | echo "${ECHO_T}$POOL" >&6 | |
7272 | ||
7273 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
7274 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
7275 | " >&5 | |
7276 | echo "$as_me: error: --with-pool parameter invalid | |
7277 | " >&2;} | |
7278 | { (exit 1); exit 1; }; } | |
7279 | fi; | |
7280 | ||
7281 | if test x$POOL = xinternal; then | |
8a2fc586 | 7282 | LVM_DEFS="$LVM_DEFS -DPOOL_INTERNAL" |
ad6254c5 AK |
7283 | fi |
7284 | ||
7285 | ################################################################################ | |
7286 | echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 | |
7287 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6 | |
7288 | ||
7289 | # Check whether --with-cluster or --without-cluster was given. | |
7290 | if test "${with_cluster+set}" = set; then | |
7291 | withval="$with_cluster" | |
7292 | CLUSTER="$withval" | |
7293 | fi; | |
7294 | echo "$as_me:$LINENO: result: $CLUSTER" >&5 | |
7295 | echo "${ECHO_T}$CLUSTER" >&6 | |
7296 | ||
7297 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
7298 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
7299 | " >&5 | |
7300 | echo "$as_me: error: --with-cluster parameter invalid | |
7301 | " >&2;} | |
7302 | { (exit 1); exit 1; }; } | |
7303 | fi; | |
7304 | ||
7305 | if test x$CLUSTER = xinternal; then | |
8a2fc586 | 7306 | LVM_DEFS="$LVM_DEFS -DCLUSTER_LOCKING_INTERNAL" |
ad6254c5 AK |
7307 | fi |
7308 | ||
7309 | ################################################################################ | |
7310 | echo "$as_me:$LINENO: checking whether to include snapshots" >&5 | |
7311 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6 | |
7312 | ||
7313 | # Check whether --with-snapshots or --without-snapshots was given. | |
7314 | if test "${with_snapshots+set}" = set; then | |
7315 | withval="$with_snapshots" | |
7316 | SNAPSHOTS="$withval" | |
7317 | else | |
7318 | SNAPSHOTS="internal" | |
7319 | fi; | |
7320 | echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 | |
7321 | echo "${ECHO_T}$SNAPSHOTS" >&6 | |
7322 | ||
7323 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
7324 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
7325 | " >&5 | |
7326 | echo "$as_me: error: --with-snapshots parameter invalid | |
7327 | " >&2;} | |
7328 | { (exit 1); exit 1; }; } | |
7329 | fi; | |
7330 | ||
7331 | if test x$SNAPSHOTS = xinternal; then | |
8a2fc586 | 7332 | LVM_DEFS="$LVM_DEFS -DSNAPSHOT_INTERNAL" |
ad6254c5 AK |
7333 | fi |
7334 | ||
7335 | ################################################################################ | |
7336 | echo "$as_me:$LINENO: checking whether to include mirrors" >&5 | |
7337 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6 | |
7338 | ||
7339 | # Check whether --with-mirrors or --without-mirrors was given. | |
7340 | if test "${with_mirrors+set}" = set; then | |
7341 | withval="$with_mirrors" | |
7342 | MIRRORS="$withval" | |
7343 | else | |
7344 | MIRRORS="internal" | |
7345 | fi; | |
7346 | echo "$as_me:$LINENO: result: $MIRRORS" >&5 | |
7347 | echo "${ECHO_T}$MIRRORS" >&6 | |
7348 | ||
7349 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
7350 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
7351 | " >&5 | |
7352 | echo "$as_me: error: --with-mirrors parameter invalid | |
7353 | " >&2;} | |
7354 | { (exit 1); exit 1; }; } | |
7355 | fi; | |
7356 | ||
7357 | if test x$MIRRORS = xinternal; then | |
8a2fc586 | 7358 | LVM_DEFS="$LVM_DEFS -DMIRRORED_INTERNAL" |
ad6254c5 AK |
7359 | fi |
7360 | ||
7361 | ################################################################################ | |
7362 | echo "$as_me:$LINENO: checking whether to use static linking" >&5 | |
7363 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6 | |
7364 | # Check whether --enable-static_link or --disable-static_link was given. | |
7365 | if test "${enable_static_link+set}" = set; then | |
7366 | enableval="$enable_static_link" | |
7367 | STATIC_LINK=$enableval | |
7368 | else | |
7369 | STATIC_LINK=no | |
7370 | fi; | |
7371 | echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
7372 | echo "${ECHO_T}$STATIC_LINK" >&6 | |
7373 | ||
7374 | ################################################################################ | |
7375 | echo "$as_me:$LINENO: checking whether to enable readline" >&5 | |
7376 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6 | |
7377 | # Check whether --enable-readline or --disable-readline was given. | |
7378 | if test "${enable_readline+set}" = set; then | |
7379 | enableval="$enable_readline" | |
7380 | READLINE=$enableval | |
7381 | else | |
7382 | READLINE=no | |
7383 | fi; | |
7384 | echo "$as_me:$LINENO: result: $READLINE" >&5 | |
7385 | echo "${ECHO_T}$READLINE" >&6 | |
7386 | ||
7387 | if test x$READLINE = xyes; then | |
8a2fc586 | 7388 | LVM_DEFS="$LVM_DEFS -DREADLINE_SUPPORT" |
ad6254c5 AK |
7389 | fi |
7390 | ||
7391 | ################################################################################ | |
7392 | echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 | |
7393 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6 | |
7394 | # Check whether --enable-selinux or --disable-selinux was given. | |
7395 | if test "${enable_selinux+set}" = set; then | |
7396 | enableval="$enable_selinux" | |
7397 | SELINUX=$enableval | |
7398 | fi; | |
7399 | echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
7400 | echo "${ECHO_T}$SELINUX" >&6 | |
7401 | ||
7402 | ################################################################################ | |
7403 | echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
7404 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6 | |
7405 | ||
7406 | # Check whether --with-clvmd or --without-clvmd was given. | |
7407 | if test "${with_clvmd+set}" = set; then | |
7408 | withval="$with_clvmd" | |
a266258f | 7409 | CLVMD="$withval" |
ad6254c5 | 7410 | else |
a266258f | 7411 | CLVMD="none" |
ad6254c5 | 7412 | fi; |
a266258f | 7413 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 7414 | CLVMD=all |
b1098701 | 7415 | fi |
ad6254c5 AK |
7416 | echo "$as_me:$LINENO: result: $CLVMD" >&5 |
7417 | echo "${ECHO_T}$CLVMD" >&6 | |
7418 | ||
a266258f | 7419 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
7420 | CLUSTER=internal |
7421 | fi | |
7422 | ||
7423 | ################################################################################ | |
7424 | echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
7425 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
7426 | # Check whether --enable-debug or --disable-debug was given. | |
7427 | if test "${enable_debug+set}" = set; then | |
7428 | enableval="$enable_debug" | |
7429 | DEBUG=$enableval | |
7430 | else | |
7431 | DEBUG=no | |
7432 | fi; | |
7433 | echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
7434 | echo "${ECHO_T}$DEBUG" >&6 | |
7435 | ||
7436 | if test x$DEBUG = xyes; then | |
7437 | COPTIMISE_FLAG= | |
8a2fc586 AK |
7438 | else |
7439 | CSCOPE_CMD= | |
ad6254c5 AK |
7440 | fi |
7441 | ||
7442 | ################################################################################ | |
7443 | echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
7444 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6 | |
7445 | ||
7446 | # Check whether --with-optimisation or --without-optimisation was given. | |
7447 | if test "${with_optimisation+set}" = set; then | |
7448 | withval="$with_optimisation" | |
7449 | COPTIMISE_FLAG="$withval" | |
7450 | fi; | |
7451 | echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
7452 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6 | |
7453 | ||
7454 | ################################################################################ | |
7455 | echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 | |
7456 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6 | |
7457 | # Check whether --enable-devmapper or --disable-devmapper was given. | |
7458 | if test "${enable_devmapper+set}" = set; then | |
7459 | enableval="$enable_devmapper" | |
7460 | DEVMAPPER=$enableval | |
7461 | fi; | |
7462 | echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 | |
7463 | echo "${ECHO_T}$DEVMAPPER" >&6 | |
7464 | ||
7465 | if test x$DEVMAPPER = xyes; then | |
8a2fc586 | 7466 | LVM_DEFS="$LVM_DEFS -DDEVMAPPER_SUPPORT" |
ad6254c5 AK |
7467 | fi |
7468 | ||
7469 | ################################################################################ | |
7470 | echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 | |
7471 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6 | |
7472 | # Check whether --enable-o_direct or --disable-o_direct was given. | |
7473 | if test "${enable_o_direct+set}" = set; then | |
7474 | enableval="$enable_o_direct" | |
7475 | ODIRECT=$enableval | |
7476 | fi; | |
7477 | echo "$as_me:$LINENO: result: $ODIRECT" >&5 | |
7478 | echo "${ECHO_T}$ODIRECT" >&6 | |
7479 | ||
7480 | if test x$ODIRECT = xyes; then | |
8a2fc586 | 7481 | LVM_DEFS="$LVM_DEFS -DO_DIRECT_SUPPORT" |
ad6254c5 AK |
7482 | fi |
7483 | ||
7484 | ################################################################################ | |
7485 | echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 | |
7486 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6 | |
7487 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
7488 | if test "${enable_cmdlib+set}" = set; then | |
7489 | enableval="$enable_cmdlib" | |
7490 | CMDLIB=$enableval | |
7491 | else | |
7492 | CMDLIB=no | |
7493 | fi; | |
7494 | echo "$as_me:$LINENO: result: $CMDLIB" >&5 | |
7495 | echo "${ECHO_T}$CMDLIB" >&6 | |
7496 | ||
59376640 | 7497 | if test x$CMDLIB = xyes; then |
8a2fc586 | 7498 | LVM_DEFS="$LVM_DEFS -DCMDLIB" |
ad6254c5 AK |
7499 | fi |
7500 | ||
7501 | ################################################################################ | |
7502 | echo "$as_me:$LINENO: checking whether to build fsadm" >&5 | |
7503 | echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6 | |
7504 | # Check whether --enable-fsadm or --disable-fsadm was given. | |
7505 | if test "${enable_fsadm+set}" = set; then | |
7506 | enableval="$enable_fsadm" | |
7507 | FSADM=$enableval | |
7508 | fi; | |
7509 | echo "$as_me:$LINENO: result: $FSADM" >&5 | |
7510 | echo "${ECHO_T}$FSADM" >&6 | |
7511 | ||
06f62ad1 AK |
7512 | ################################################################################ |
7513 | echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 | |
7514 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6 | |
7515 | # Check whether --enable-dmeventd or --disable-dmeventd was given. | |
7516 | if test "${enable_dmeventd+set}" = set; then | |
7517 | enableval="$enable_dmeventd" | |
7518 | DMEVENTD=$enableval | |
7519 | fi; | |
7520 | echo "$as_me:$LINENO: result: $DMEVENTD" >&5 | |
7521 | echo "${ECHO_T}$DMEVENTD" >&6 | |
7522 | ||
7523 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
7524 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7525 | " >&5 | |
7526 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7527 | " >&2;} | |
7528 | { (exit 1); exit 1; }; } | |
7529 | fi | |
7530 | ||
15d91f5a | 7531 | if test x$DMEVENTD = xyes; then |
8a2fc586 | 7532 | LVM_DEFS="$LVM_DEFS -DDMEVENTD" |
15d91f5a | 7533 | fi |
ad6254c5 AK |
7534 | ################################################################################ |
7535 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
7536 | then exec_prefix=""; | |
7537 | fi; | |
7538 | ||
7539 | ################################################################################ | |
7540 | if test $ac_cv_c_compiler_gnu = yes; then | |
7541 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
7542 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
7543 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
7544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7545 | else | |
7546 | ac_pattern="Autoconf.*'x'" | |
7547 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7548 | /* confdefs.h. */ |
7549 | _ACEOF | |
7550 | cat confdefs.h >>conftest.$ac_ext | |
7551 | cat >>conftest.$ac_ext <<_ACEOF | |
7552 | /* end confdefs.h. */ | |
7553 | #include <sgtty.h> | |
7554 | Autoconf TIOCGETP | |
7555 | _ACEOF | |
7556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7557 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7558 | ac_cv_prog_gcc_traditional=yes | |
7559 | else | |
7560 | ac_cv_prog_gcc_traditional=no | |
7561 | fi | |
7562 | rm -f conftest* | |
7563 | ||
7564 | ||
7565 | if test $ac_cv_prog_gcc_traditional = no; then | |
7566 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7567 | /* confdefs.h. */ |
7568 | _ACEOF | |
7569 | cat confdefs.h >>conftest.$ac_ext | |
7570 | cat >>conftest.$ac_ext <<_ACEOF | |
7571 | /* end confdefs.h. */ | |
7572 | #include <termio.h> | |
7573 | Autoconf TCGETA | |
7574 | _ACEOF | |
7575 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7576 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7577 | ac_cv_prog_gcc_traditional=yes | |
7578 | fi | |
7579 | rm -f conftest* | |
7580 | ||
7581 | fi | |
7582 | fi | |
7583 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
7584 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
7585 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7586 | CC="$CC -traditional" | |
7587 | fi | |
7588 | fi | |
7589 | ||
7590 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7591 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
7592 | if test "${ac_cv_type_signal+set}" = set; then | |
7593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7594 | else | |
7595 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7596 | /* confdefs.h. */ |
7597 | _ACEOF | |
7598 | cat confdefs.h >>conftest.$ac_ext | |
7599 | cat >>conftest.$ac_ext <<_ACEOF | |
7600 | /* end confdefs.h. */ | |
7601 | #include <sys/types.h> | |
7602 | #include <signal.h> | |
7603 | #ifdef signal | |
7604 | # undef signal | |
7605 | #endif | |
7606 | #ifdef __cplusplus | |
7607 | extern "C" void (*signal (int, void (*)(int)))(int); | |
7608 | #else | |
7609 | void (*signal ()) (); | |
7610 | #endif | |
7611 | ||
7612 | int | |
7613 | main () | |
7614 | { | |
7615 | int i; | |
7616 | ; | |
7617 | return 0; | |
7618 | } | |
7619 | _ACEOF | |
7620 | rm -f conftest.$ac_objext | |
7621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 7622 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 7623 | ac_status=$? |
8a2fc586 AK |
7624 | grep -v '^ *+' conftest.er1 >conftest.err |
7625 | rm -f conftest.er1 | |
7626 | cat conftest.err >&5 | |
ad6254c5 AK |
7627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7628 | (exit $ac_status); } && | |
8a2fc586 AK |
7629 | { ac_try='test -z "$ac_c_werror_flag" |
7630 | || test ! -s conftest.err' | |
7631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7632 | (eval $ac_try) 2>&5 | |
7633 | ac_status=$? | |
7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7635 | (exit $ac_status); }; } && | |
7636 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
7637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7638 | (eval $ac_try) 2>&5 | |
7639 | ac_status=$? | |
7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7641 | (exit $ac_status); }; }; then | |
7642 | ac_cv_type_signal=void | |
7643 | else | |
7644 | echo "$as_me: failed program was:" >&5 | |
7645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7646 | ||
7647 | ac_cv_type_signal=int | |
7648 | fi | |
8a2fc586 | 7649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
7650 | fi |
7651 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
7652 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
7653 | ||
7654 | cat >>confdefs.h <<_ACEOF | |
7655 | #define RETSIGTYPE $ac_cv_type_signal | |
7656 | _ACEOF | |
7657 | ||
7658 | ||
7659 | ||
7660 | for ac_func in vprintf | |
7661 | do | |
7662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7663 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7665 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7667 | else | |
7668 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7669 | /* confdefs.h. */ |
7670 | _ACEOF | |
7671 | cat confdefs.h >>conftest.$ac_ext | |
7672 | cat >>conftest.$ac_ext <<_ACEOF | |
7673 | /* end confdefs.h. */ | |
8a2fc586 AK |
7674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7676 | #define $ac_func innocuous_$ac_func | |
7677 | ||
ad6254c5 AK |
7678 | /* System header to define __stub macros and hopefully few prototypes, |
7679 | which can conflict with char $ac_func (); below. | |
7680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7681 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7682 | |
ad6254c5 AK |
7683 | #ifdef __STDC__ |
7684 | # include <limits.h> | |
7685 | #else | |
7686 | # include <assert.h> | |
7687 | #endif | |
8a2fc586 AK |
7688 | |
7689 | #undef $ac_func | |
7690 | ||
ad6254c5 AK |
7691 | /* Override any gcc2 internal prototype to avoid an error. */ |
7692 | #ifdef __cplusplus | |
7693 | extern "C" | |
7694 | { | |
7695 | #endif | |
7696 | /* We use char because int might match the return type of a gcc2 | |
7697 | builtin and then its argument prototype would still apply. */ | |
7698 | char $ac_func (); | |
7699 | /* The GNU C library defines this for functions which it implements | |
7700 | to always fail with ENOSYS. Some functions are actually named | |
7701 | something starting with __ and the normal name is an alias. */ | |
7702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7703 | choke me | |
7704 | #else | |
7705 | char (*f) () = $ac_func; | |
7706 | #endif | |
7707 | #ifdef __cplusplus | |
7708 | } | |
7709 | #endif | |
7710 | ||
7711 | int | |
7712 | main () | |
7713 | { | |
7714 | return f != $ac_func; | |
7715 | ; | |
7716 | return 0; | |
7717 | } | |
7718 | _ACEOF | |
7719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7721 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7722 | ac_status=$? |
8a2fc586 AK |
7723 | grep -v '^ *+' conftest.er1 >conftest.err |
7724 | rm -f conftest.er1 | |
7725 | cat conftest.err >&5 | |
ad6254c5 AK |
7726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7727 | (exit $ac_status); } && | |
8a2fc586 AK |
7728 | { ac_try='test -z "$ac_c_werror_flag" |
7729 | || test ! -s conftest.err' | |
7730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7731 | (eval $ac_try) 2>&5 | |
7732 | ac_status=$? | |
7733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7734 | (exit $ac_status); }; } && | |
7735 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7737 | (eval $ac_try) 2>&5 | |
7738 | ac_status=$? | |
7739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7740 | (exit $ac_status); }; }; then | |
7741 | eval "$as_ac_var=yes" | |
7742 | else | |
7743 | echo "$as_me: failed program was:" >&5 | |
7744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7745 | ||
7746 | eval "$as_ac_var=no" | |
7747 | fi | |
8a2fc586 AK |
7748 | rm -f conftest.err conftest.$ac_objext \ |
7749 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7750 | fi |
7751 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7752 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7753 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7754 | cat >>confdefs.h <<_ACEOF | |
7755 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7756 | _ACEOF | |
7757 | ||
7758 | echo "$as_me:$LINENO: checking for _doprnt" >&5 | |
7759 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
7760 | if test "${ac_cv_func__doprnt+set}" = set; then | |
7761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7762 | else | |
7763 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7764 | /* confdefs.h. */ |
7765 | _ACEOF | |
7766 | cat confdefs.h >>conftest.$ac_ext | |
7767 | cat >>conftest.$ac_ext <<_ACEOF | |
7768 | /* end confdefs.h. */ | |
8a2fc586 AK |
7769 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
7770 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7771 | #define _doprnt innocuous__doprnt | |
7772 | ||
ad6254c5 AK |
7773 | /* System header to define __stub macros and hopefully few prototypes, |
7774 | which can conflict with char _doprnt (); below. | |
7775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7776 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7777 | |
ad6254c5 AK |
7778 | #ifdef __STDC__ |
7779 | # include <limits.h> | |
7780 | #else | |
7781 | # include <assert.h> | |
7782 | #endif | |
8a2fc586 AK |
7783 | |
7784 | #undef _doprnt | |
7785 | ||
ad6254c5 AK |
7786 | /* Override any gcc2 internal prototype to avoid an error. */ |
7787 | #ifdef __cplusplus | |
7788 | extern "C" | |
7789 | { | |
7790 | #endif | |
7791 | /* We use char because int might match the return type of a gcc2 | |
7792 | builtin and then its argument prototype would still apply. */ | |
7793 | char _doprnt (); | |
7794 | /* The GNU C library defines this for functions which it implements | |
7795 | to always fail with ENOSYS. Some functions are actually named | |
7796 | something starting with __ and the normal name is an alias. */ | |
7797 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
7798 | choke me | |
7799 | #else | |
7800 | char (*f) () = _doprnt; | |
7801 | #endif | |
7802 | #ifdef __cplusplus | |
7803 | } | |
7804 | #endif | |
7805 | ||
7806 | int | |
7807 | main () | |
7808 | { | |
7809 | return f != _doprnt; | |
7810 | ; | |
7811 | return 0; | |
7812 | } | |
7813 | _ACEOF | |
7814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7816 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7817 | ac_status=$? |
8a2fc586 AK |
7818 | grep -v '^ *+' conftest.er1 >conftest.err |
7819 | rm -f conftest.er1 | |
7820 | cat conftest.err >&5 | |
ad6254c5 AK |
7821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7822 | (exit $ac_status); } && | |
8a2fc586 AK |
7823 | { ac_try='test -z "$ac_c_werror_flag" |
7824 | || test ! -s conftest.err' | |
7825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7826 | (eval $ac_try) 2>&5 | |
7827 | ac_status=$? | |
7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7829 | (exit $ac_status); }; } && | |
7830 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7832 | (eval $ac_try) 2>&5 | |
7833 | ac_status=$? | |
7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7835 | (exit $ac_status); }; }; then | |
7836 | ac_cv_func__doprnt=yes | |
7837 | else | |
7838 | echo "$as_me: failed program was:" >&5 | |
7839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7840 | ||
7841 | ac_cv_func__doprnt=no | |
7842 | fi | |
8a2fc586 AK |
7843 | rm -f conftest.err conftest.$ac_objext \ |
7844 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7845 | fi |
7846 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
7847 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
7848 | if test $ac_cv_func__doprnt = yes; then | |
7849 | ||
7850 | cat >>confdefs.h <<\_ACEOF | |
7851 | #define HAVE_DOPRNT 1 | |
7852 | _ACEOF | |
7853 | ||
7854 | fi | |
7855 | ||
7856 | fi | |
7857 | done | |
7858 | ||
7859 | ||
7860 | ||
7861 | ||
7862 | ||
7863 | for ac_func in mkdir rmdir uname | |
7864 | do | |
7865 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7866 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7867 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7868 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7870 | else | |
7871 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7872 | /* confdefs.h. */ |
7873 | _ACEOF | |
7874 | cat confdefs.h >>conftest.$ac_ext | |
7875 | cat >>conftest.$ac_ext <<_ACEOF | |
7876 | /* end confdefs.h. */ | |
8a2fc586 AK |
7877 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7879 | #define $ac_func innocuous_$ac_func | |
7880 | ||
ad6254c5 AK |
7881 | /* System header to define __stub macros and hopefully few prototypes, |
7882 | which can conflict with char $ac_func (); below. | |
7883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7884 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7885 | |
ad6254c5 AK |
7886 | #ifdef __STDC__ |
7887 | # include <limits.h> | |
7888 | #else | |
7889 | # include <assert.h> | |
7890 | #endif | |
8a2fc586 AK |
7891 | |
7892 | #undef $ac_func | |
7893 | ||
ad6254c5 AK |
7894 | /* Override any gcc2 internal prototype to avoid an error. */ |
7895 | #ifdef __cplusplus | |
7896 | extern "C" | |
7897 | { | |
7898 | #endif | |
7899 | /* We use char because int might match the return type of a gcc2 | |
7900 | builtin and then its argument prototype would still apply. */ | |
7901 | char $ac_func (); | |
7902 | /* The GNU C library defines this for functions which it implements | |
7903 | to always fail with ENOSYS. Some functions are actually named | |
7904 | something starting with __ and the normal name is an alias. */ | |
7905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7906 | choke me | |
7907 | #else | |
7908 | char (*f) () = $ac_func; | |
7909 | #endif | |
7910 | #ifdef __cplusplus | |
7911 | } | |
7912 | #endif | |
7913 | ||
7914 | int | |
7915 | main () | |
7916 | { | |
7917 | return f != $ac_func; | |
7918 | ; | |
7919 | return 0; | |
7920 | } | |
7921 | _ACEOF | |
7922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 7924 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7925 | ac_status=$? |
8a2fc586 AK |
7926 | grep -v '^ *+' conftest.er1 >conftest.err |
7927 | rm -f conftest.er1 | |
7928 | cat conftest.err >&5 | |
ad6254c5 AK |
7929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7930 | (exit $ac_status); } && | |
8a2fc586 AK |
7931 | { ac_try='test -z "$ac_c_werror_flag" |
7932 | || test ! -s conftest.err' | |
7933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7934 | (eval $ac_try) 2>&5 | |
7935 | ac_status=$? | |
7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7937 | (exit $ac_status); }; } && | |
7938 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7940 | (eval $ac_try) 2>&5 | |
7941 | ac_status=$? | |
7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7943 | (exit $ac_status); }; }; then | |
7944 | eval "$as_ac_var=yes" | |
7945 | else | |
7946 | echo "$as_me: failed program was:" >&5 | |
7947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7948 | ||
7949 | eval "$as_ac_var=no" | |
7950 | fi | |
8a2fc586 AK |
7951 | rm -f conftest.err conftest.$ac_objext \ |
7952 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7953 | fi |
7954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7955 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7956 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7957 | cat >>confdefs.h <<_ACEOF | |
7958 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7959 | _ACEOF | |
7960 | ||
7961 | else | |
7962 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
7963 | echo "$as_me: error: bailing out" >&2;} | |
7964 | { (exit 1); exit 1; }; } | |
7965 | fi | |
7966 | done | |
7967 | ||
7968 | ||
7969 | ################################################################################ | |
7970 | if test x$READLINE = xyes; then | |
7971 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
7972 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
7973 | if test "${ac_cv_search_tgetent+set}" = set; then | |
7974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7975 | else | |
7976 | ac_func_search_save_LIBS=$LIBS | |
7977 | ac_cv_search_tgetent=no | |
7978 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7979 | /* confdefs.h. */ |
7980 | _ACEOF | |
7981 | cat confdefs.h >>conftest.$ac_ext | |
7982 | cat >>conftest.$ac_ext <<_ACEOF | |
7983 | /* end confdefs.h. */ | |
7984 | ||
7985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7986 | #ifdef __cplusplus | |
7987 | extern "C" | |
7988 | #endif | |
7989 | /* We use char because int might match the return type of a gcc2 | |
7990 | builtin and then its argument prototype would still apply. */ | |
7991 | char tgetent (); | |
7992 | int | |
7993 | main () | |
7994 | { | |
7995 | tgetent (); | |
7996 | ; | |
7997 | return 0; | |
7998 | } | |
7999 | _ACEOF | |
8000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8002 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8003 | ac_status=$? |
8a2fc586 AK |
8004 | grep -v '^ *+' conftest.er1 >conftest.err |
8005 | rm -f conftest.er1 | |
8006 | cat conftest.err >&5 | |
ad6254c5 AK |
8007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8008 | (exit $ac_status); } && | |
8a2fc586 AK |
8009 | { ac_try='test -z "$ac_c_werror_flag" |
8010 | || test ! -s conftest.err' | |
8011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8012 | (eval $ac_try) 2>&5 | |
8013 | ac_status=$? | |
8014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8015 | (exit $ac_status); }; } && | |
8016 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8018 | (eval $ac_try) 2>&5 | |
8019 | ac_status=$? | |
8020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8021 | (exit $ac_status); }; }; then | |
8022 | ac_cv_search_tgetent="none required" | |
8023 | else | |
8024 | echo "$as_me: failed program was:" >&5 | |
8025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8026 | ||
8027 | fi | |
8a2fc586 AK |
8028 | rm -f conftest.err conftest.$ac_objext \ |
8029 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8030 | if test "$ac_cv_search_tgetent" = no; then |
8031 | for ac_lib in ncurses curses termcap termlib; do | |
8032 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8033 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8034 | /* confdefs.h. */ |
8035 | _ACEOF | |
8036 | cat confdefs.h >>conftest.$ac_ext | |
8037 | cat >>conftest.$ac_ext <<_ACEOF | |
8038 | /* end confdefs.h. */ | |
8039 | ||
8040 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8041 | #ifdef __cplusplus | |
8042 | extern "C" | |
8043 | #endif | |
8044 | /* We use char because int might match the return type of a gcc2 | |
8045 | builtin and then its argument prototype would still apply. */ | |
8046 | char tgetent (); | |
8047 | int | |
8048 | main () | |
8049 | { | |
8050 | tgetent (); | |
8051 | ; | |
8052 | return 0; | |
8053 | } | |
8054 | _ACEOF | |
8055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8057 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8058 | ac_status=$? |
8a2fc586 AK |
8059 | grep -v '^ *+' conftest.er1 >conftest.err |
8060 | rm -f conftest.er1 | |
8061 | cat conftest.err >&5 | |
ad6254c5 AK |
8062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8063 | (exit $ac_status); } && | |
8a2fc586 AK |
8064 | { ac_try='test -z "$ac_c_werror_flag" |
8065 | || test ! -s conftest.err' | |
8066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8067 | (eval $ac_try) 2>&5 | |
8068 | ac_status=$? | |
8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8070 | (exit $ac_status); }; } && | |
8071 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8073 | (eval $ac_try) 2>&5 | |
8074 | ac_status=$? | |
8075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8076 | (exit $ac_status); }; }; then | |
8077 | ac_cv_search_tgetent="-l$ac_lib" | |
8078 | break | |
8079 | else | |
8080 | echo "$as_me: failed program was:" >&5 | |
8081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8082 | ||
8083 | fi | |
8a2fc586 AK |
8084 | rm -f conftest.err conftest.$ac_objext \ |
8085 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8086 | done |
8087 | fi | |
8088 | LIBS=$ac_func_search_save_LIBS | |
8089 | fi | |
8090 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8091 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8092 | if test "$ac_cv_search_tgetent" != no; then | |
8093 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
8094 | ||
8095 | else | |
8096 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
8097 | --enable-readline option (which is enabled by default). Either disable readline | |
8098 | support with --disable-readline or download and install termcap from: | |
8099 | ftp.gnu.org/gnu/termcap | |
8100 | Note: if you are using precompiled packages you will also need the development | |
8101 | package as well (which may be called termcap-devel or something similar). | |
8102 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8103 | not found either - but you could try installing that as well. | |
8104 | " >&5 | |
8105 | echo "$as_me: error: termcap could not be found which is required for the | |
8106 | --enable-readline option (which is enabled by default). Either disable readline | |
8107 | support with --disable-readline or download and install termcap from: | |
8108 | ftp.gnu.org/gnu/termcap | |
8109 | Note: if you are using precompiled packages you will also need the development | |
8110 | package as well (which may be called termcap-devel or something similar). | |
8111 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8112 | not found either - but you could try installing that as well. | |
8113 | " >&2;} | |
8114 | { (exit 1); exit 1; }; } | |
8115 | ||
8116 | fi | |
8117 | ||
8118 | fi | |
8119 | ||
8120 | ################################################################################ | |
8121 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8122 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8123 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8125 | else | |
8126 | ac_check_lib_save_LIBS=$LIBS | |
8127 | LIBS="-ldl $LIBS" | |
8128 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8129 | /* confdefs.h. */ |
8130 | _ACEOF | |
8131 | cat confdefs.h >>conftest.$ac_ext | |
8132 | cat >>conftest.$ac_ext <<_ACEOF | |
8133 | /* end confdefs.h. */ | |
8134 | ||
8135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8136 | #ifdef __cplusplus | |
8137 | extern "C" | |
8138 | #endif | |
8139 | /* We use char because int might match the return type of a gcc2 | |
8140 | builtin and then its argument prototype would still apply. */ | |
8141 | char dlopen (); | |
8142 | int | |
8143 | main () | |
8144 | { | |
8145 | dlopen (); | |
8146 | ; | |
8147 | return 0; | |
8148 | } | |
8149 | _ACEOF | |
8150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8152 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8153 | ac_status=$? |
8a2fc586 AK |
8154 | grep -v '^ *+' conftest.er1 >conftest.err |
8155 | rm -f conftest.er1 | |
8156 | cat conftest.err >&5 | |
ad6254c5 AK |
8157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8158 | (exit $ac_status); } && | |
8a2fc586 AK |
8159 | { ac_try='test -z "$ac_c_werror_flag" |
8160 | || test ! -s conftest.err' | |
8161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8162 | (eval $ac_try) 2>&5 | |
8163 | ac_status=$? | |
8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8165 | (exit $ac_status); }; } && | |
8166 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8168 | (eval $ac_try) 2>&5 | |
8169 | ac_status=$? | |
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8171 | (exit $ac_status); }; }; then | |
8172 | ac_cv_lib_dl_dlopen=yes | |
8173 | else | |
8174 | echo "$as_me: failed program was:" >&5 | |
8175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8176 | ||
8177 | ac_cv_lib_dl_dlopen=no | |
8178 | fi | |
8a2fc586 AK |
8179 | rm -f conftest.err conftest.$ac_objext \ |
8180 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8181 | LIBS=$ac_check_lib_save_LIBS |
8182 | fi | |
8183 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8184 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8185 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8186 | HAVE_LIBDL=yes | |
8187 | else | |
8188 | HAVE_LIBDL=no | |
8189 | fi | |
8190 | ||
8191 | ||
7e9e9502 | 8192 | if [ "x$HAVE_LIBDL" = xyes ]; then |
8a2fc586 | 8193 | LVM_DEFS="$LVM_DEFS -DHAVE_LIBDL" |
ad6254c5 AK |
8194 | LIBS="-ldl $LIBS" |
8195 | else | |
8196 | HAVE_LIBDL=no | |
8197 | fi | |
8198 | ||
8199 | ################################################################################ | |
8200 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8201 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8202 | \) -a "x$STATIC_LINK" = xyes ]; | |
8203 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically | |
8204 | " >&5 | |
8205 | echo "$as_me: error: Features cannot be 'shared' when building statically | |
8206 | " >&2;} | |
8207 | { (exit 1); exit 1; }; } | |
8208 | fi | |
8209 | ||
8210 | ################################################################################ | |
8211 | if test x$SELINUX = xyes; then | |
8a2fc586 AK |
8212 | echo "$as_me:$LINENO: checking for sepol_check_context function" >&5 |
8213 | echo $ECHO_N "checking for sepol_check_context function... $ECHO_C" >&6 | |
8214 | echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 | |
8215 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6 | |
8216 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then | |
8217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8218 | else | |
8219 | ac_check_lib_save_LIBS=$LIBS | |
8220 | LIBS="-lsepol $LIBS" | |
8221 | cat >conftest.$ac_ext <<_ACEOF | |
8222 | /* confdefs.h. */ | |
8223 | _ACEOF | |
8224 | cat confdefs.h >>conftest.$ac_ext | |
8225 | cat >>conftest.$ac_ext <<_ACEOF | |
8226 | /* end confdefs.h. */ | |
8227 | ||
8228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8229 | #ifdef __cplusplus | |
8230 | extern "C" | |
8231 | #endif | |
8232 | /* We use char because int might match the return type of a gcc2 | |
8233 | builtin and then its argument prototype would still apply. */ | |
8234 | char sepol_check_context (); | |
8235 | int | |
8236 | main () | |
8237 | { | |
8238 | sepol_check_context (); | |
8239 | ; | |
8240 | return 0; | |
8241 | } | |
8242 | _ACEOF | |
8243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8245 | (eval $ac_link) 2>conftest.er1 | |
8246 | ac_status=$? | |
8247 | grep -v '^ *+' conftest.er1 >conftest.err | |
8248 | rm -f conftest.er1 | |
8249 | cat conftest.err >&5 | |
8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8251 | (exit $ac_status); } && | |
8252 | { ac_try='test -z "$ac_c_werror_flag" | |
8253 | || test ! -s conftest.err' | |
8254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8255 | (eval $ac_try) 2>&5 | |
8256 | ac_status=$? | |
8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8258 | (exit $ac_status); }; } && | |
8259 | { ac_try='test -s conftest$ac_exeext' | |
8260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8261 | (eval $ac_try) 2>&5 | |
8262 | ac_status=$? | |
8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8264 | (exit $ac_status); }; }; then | |
8265 | ac_cv_lib_sepol_sepol_check_context=yes | |
8266 | else | |
8267 | echo "$as_me: failed program was:" >&5 | |
8268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8269 | ||
8270 | ac_cv_lib_sepol_sepol_check_context=no | |
8271 | fi | |
8272 | rm -f conftest.err conftest.$ac_objext \ | |
8273 | conftest$ac_exeext conftest.$ac_ext | |
8274 | LIBS=$ac_check_lib_save_LIBS | |
8275 | fi | |
8276 | echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 | |
8277 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6 | |
8278 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then | |
8279 | HAVE_SEPOL=yes | |
8280 | else | |
8281 | HAVE_SEPOL=no | |
8282 | fi | |
8283 | ||
8284 | echo "$as_me:$LINENO: result: $HAVE_SEPOL" >&5 | |
8285 | echo "${ECHO_T}$HAVE_SEPOL" >&6 | |
8286 | ||
8287 | if test x$HAVE_SEPOL = xyes; then | |
8288 | LIBS="-lsepol $LIBS" | |
8289 | fi | |
8290 | ||
ad6254c5 AK |
8291 | echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5 |
8292 | echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6 | |
8293 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
8294 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 | |
8295 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
8296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8297 | else | |
8298 | ac_check_lib_save_LIBS=$LIBS | |
8299 | LIBS="-lselinux $LIBS" | |
8300 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8301 | /* confdefs.h. */ |
8302 | _ACEOF | |
8303 | cat confdefs.h >>conftest.$ac_ext | |
8304 | cat >>conftest.$ac_ext <<_ACEOF | |
8305 | /* end confdefs.h. */ | |
8306 | ||
8307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8308 | #ifdef __cplusplus | |
8309 | extern "C" | |
8310 | #endif | |
8311 | /* We use char because int might match the return type of a gcc2 | |
8312 | builtin and then its argument prototype would still apply. */ | |
8313 | char is_selinux_enabled (); | |
8314 | int | |
8315 | main () | |
8316 | { | |
8317 | is_selinux_enabled (); | |
8318 | ; | |
8319 | return 0; | |
8320 | } | |
8321 | _ACEOF | |
8322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8324 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8325 | ac_status=$? |
8a2fc586 AK |
8326 | grep -v '^ *+' conftest.er1 >conftest.err |
8327 | rm -f conftest.er1 | |
8328 | cat conftest.err >&5 | |
ad6254c5 AK |
8329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8330 | (exit $ac_status); } && | |
8a2fc586 AK |
8331 | { ac_try='test -z "$ac_c_werror_flag" |
8332 | || test ! -s conftest.err' | |
8333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8334 | (eval $ac_try) 2>&5 | |
8335 | ac_status=$? | |
8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8337 | (exit $ac_status); }; } && | |
8338 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8340 | (eval $ac_try) 2>&5 | |
8341 | ac_status=$? | |
8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8343 | (exit $ac_status); }; }; then | |
8344 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
8345 | else | |
8346 | echo "$as_me: failed program was:" >&5 | |
8347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8348 | ||
8349 | ac_cv_lib_selinux_is_selinux_enabled=no | |
8350 | fi | |
8a2fc586 AK |
8351 | rm -f conftest.err conftest.$ac_objext \ |
8352 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8353 | LIBS=$ac_check_lib_save_LIBS |
8354 | fi | |
8355 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
8356 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 | |
8357 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then | |
8358 | HAVE_SELINUX=yes | |
8359 | else | |
8360 | HAVE_SELINUX=no | |
8361 | fi | |
8362 | ||
8363 | echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5 | |
8364 | echo "${ECHO_T}$HAVE_SELINUX" >&6 | |
8365 | ||
8366 | if test x$HAVE_SELINUX = xyes; then | |
8a2fc586 | 8367 | LVM_DEFS="$LVM_DEFS -DHAVE_SELINUX" |
ad6254c5 AK |
8368 | LIBS="-lselinux $LIBS" |
8369 | else | |
8370 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
8371 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
8372 | fi | |
8373 | fi | |
8374 | ||
8375 | ################################################################################ | |
8376 | ||
8377 | for ac_header in getopt.h | |
8378 | do | |
8379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8385 | fi | |
8386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8388 | else | |
8389 | # Is the header compilable? | |
8390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8392 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8393 | /* confdefs.h. */ |
8394 | _ACEOF | |
8395 | cat confdefs.h >>conftest.$ac_ext | |
8396 | cat >>conftest.$ac_ext <<_ACEOF | |
8397 | /* end confdefs.h. */ | |
8398 | $ac_includes_default | |
8399 | #include <$ac_header> | |
8400 | _ACEOF | |
8401 | rm -f conftest.$ac_objext | |
8402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 8403 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8404 | ac_status=$? |
8a2fc586 AK |
8405 | grep -v '^ *+' conftest.er1 >conftest.err |
8406 | rm -f conftest.er1 | |
8407 | cat conftest.err >&5 | |
ad6254c5 AK |
8408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8409 | (exit $ac_status); } && | |
8a2fc586 AK |
8410 | { ac_try='test -z "$ac_c_werror_flag" |
8411 | || test ! -s conftest.err' | |
8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8413 | (eval $ac_try) 2>&5 | |
8414 | ac_status=$? | |
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8416 | (exit $ac_status); }; } && | |
8417 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8419 | (eval $ac_try) 2>&5 | |
8420 | ac_status=$? | |
8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8422 | (exit $ac_status); }; }; then | |
8423 | ac_header_compiler=yes | |
8424 | else | |
8425 | echo "$as_me: failed program was:" >&5 | |
8426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8427 | ||
8428 | ac_header_compiler=no | |
8429 | fi | |
8a2fc586 | 8430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8432 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8433 | ||
8434 | # Is the header present? | |
8435 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8436 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8437 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8438 | /* confdefs.h. */ |
8439 | _ACEOF | |
8440 | cat confdefs.h >>conftest.$ac_ext | |
8441 | cat >>conftest.$ac_ext <<_ACEOF | |
8442 | /* end confdefs.h. */ | |
8443 | #include <$ac_header> | |
8444 | _ACEOF | |
8445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8447 | ac_status=$? | |
8448 | grep -v '^ *+' conftest.er1 >conftest.err | |
8449 | rm -f conftest.er1 | |
8450 | cat conftest.err >&5 | |
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8452 | (exit $ac_status); } >/dev/null; then | |
8453 | if test -s conftest.err; then | |
8454 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 8455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8456 | else |
8457 | ac_cpp_err= | |
8458 | fi | |
8459 | else | |
8460 | ac_cpp_err=yes | |
8461 | fi | |
8462 | if test -z "$ac_cpp_err"; then | |
8463 | ac_header_preproc=yes | |
8464 | else | |
8465 | echo "$as_me: failed program was:" >&5 | |
8466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8467 | ||
8468 | ac_header_preproc=no | |
8469 | fi | |
8470 | rm -f conftest.err conftest.$ac_ext | |
8471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8472 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8473 | ||
8474 | # So? What about this header? | |
8a2fc586 AK |
8475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8476 | yes:no: ) | |
ad6254c5 AK |
8477 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8478 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
8479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8480 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8481 | ac_header_preproc=yes | |
ad6254c5 | 8482 | ;; |
8a2fc586 | 8483 | no:yes:* ) |
ad6254c5 AK |
8484 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8485 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
8486 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8487 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8488 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8489 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8490 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8491 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8493 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
8494 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8495 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8496 | ( |
8497 | cat <<\_ASBOX | |
8a2fc586 AK |
8498 | ## ------------------------------------------ ## |
8499 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8500 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8501 | _ASBOX |
8502 | ) | | |
8503 | sed "s/^/$as_me: WARNING: /" >&2 | |
8504 | ;; | |
8505 | esac | |
8506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8510 | else | |
8a2fc586 | 8511 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8512 | fi |
8513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8515 | ||
8516 | fi | |
8517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8518 | cat >>confdefs.h <<_ACEOF | |
8519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8520 | _ACEOF | |
8a2fc586 | 8521 | LVM_DEFS="$LVM_DEFS -DHAVE_GETOPTLONG" |
ad6254c5 AK |
8522 | fi |
8523 | ||
8524 | done | |
8525 | ||
8526 | ||
8527 | ################################################################################ | |
8528 | if test x$READLINE = xyes; then | |
8529 | ||
8530 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
8531 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
8532 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
8533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8534 | else | |
8535 | ac_check_lib_save_LIBS=$LIBS | |
8536 | LIBS="-lreadline $LIBS" | |
8537 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8538 | /* confdefs.h. */ |
8539 | _ACEOF | |
8540 | cat confdefs.h >>conftest.$ac_ext | |
8541 | cat >>conftest.$ac_ext <<_ACEOF | |
8542 | /* end confdefs.h. */ | |
8543 | ||
8544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8545 | #ifdef __cplusplus | |
8546 | extern "C" | |
8547 | #endif | |
8548 | /* We use char because int might match the return type of a gcc2 | |
8549 | builtin and then its argument prototype would still apply. */ | |
8550 | char readline (); | |
8551 | int | |
8552 | main () | |
8553 | { | |
8554 | readline (); | |
8555 | ; | |
8556 | return 0; | |
8557 | } | |
8558 | _ACEOF | |
8559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8561 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8562 | ac_status=$? |
8a2fc586 AK |
8563 | grep -v '^ *+' conftest.er1 >conftest.err |
8564 | rm -f conftest.er1 | |
8565 | cat conftest.err >&5 | |
ad6254c5 AK |
8566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8567 | (exit $ac_status); } && | |
8a2fc586 AK |
8568 | { ac_try='test -z "$ac_c_werror_flag" |
8569 | || test ! -s conftest.err' | |
8570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8571 | (eval $ac_try) 2>&5 | |
8572 | ac_status=$? | |
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8574 | (exit $ac_status); }; } && | |
8575 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8577 | (eval $ac_try) 2>&5 | |
8578 | ac_status=$? | |
8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8580 | (exit $ac_status); }; }; then | |
8581 | ac_cv_lib_readline_readline=yes | |
8582 | else | |
8583 | echo "$as_me: failed program was:" >&5 | |
8584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8585 | ||
8586 | ac_cv_lib_readline_readline=no | |
8587 | fi | |
8a2fc586 AK |
8588 | rm -f conftest.err conftest.$ac_objext \ |
8589 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8590 | LIBS=$ac_check_lib_save_LIBS |
8591 | fi | |
8592 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
8593 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
8594 | if test $ac_cv_lib_readline_readline = yes; then | |
8595 | cat >>confdefs.h <<_ACEOF | |
8596 | #define HAVE_LIBREADLINE 1 | |
8597 | _ACEOF | |
8598 | ||
8599 | LIBS="-lreadline $LIBS" | |
8600 | ||
8601 | else | |
8602 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
8603 | --enable-readline option (which is enabled by default). Either disable readline | |
8604 | support with --disable-readline or download and install readline from: | |
8605 | ftp.gnu.org/gnu/readline | |
8606 | Note: if you are using precompiled packages you will also need the development | |
8607 | package as well (which may be called readline-devel or something similar). | |
8608 | " >&5 | |
8609 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
8610 | --enable-readline option (which is enabled by default). Either disable readline | |
8611 | support with --disable-readline or download and install readline from: | |
8612 | ftp.gnu.org/gnu/readline | |
8613 | Note: if you are using precompiled packages you will also need the development | |
8614 | package as well (which may be called readline-devel or something similar). | |
8615 | " >&2;} | |
8616 | { (exit 1); exit 1; }; } | |
8617 | ||
8618 | fi | |
8619 | ||
8620 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 | |
8621 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
8622 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
8623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8624 | else | |
8625 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8626 | /* confdefs.h. */ |
8627 | _ACEOF | |
8628 | cat confdefs.h >>conftest.$ac_ext | |
8629 | cat >>conftest.$ac_ext <<_ACEOF | |
8630 | /* end confdefs.h. */ | |
8a2fc586 AK |
8631 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
8632 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8633 | #define rl_completion_matches innocuous_rl_completion_matches | |
8634 | ||
ad6254c5 AK |
8635 | /* System header to define __stub macros and hopefully few prototypes, |
8636 | which can conflict with char rl_completion_matches (); below. | |
8637 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8638 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8639 | |
ad6254c5 AK |
8640 | #ifdef __STDC__ |
8641 | # include <limits.h> | |
8642 | #else | |
8643 | # include <assert.h> | |
8644 | #endif | |
8a2fc586 AK |
8645 | |
8646 | #undef rl_completion_matches | |
8647 | ||
ad6254c5 AK |
8648 | /* Override any gcc2 internal prototype to avoid an error. */ |
8649 | #ifdef __cplusplus | |
8650 | extern "C" | |
8651 | { | |
8652 | #endif | |
8653 | /* We use char because int might match the return type of a gcc2 | |
8654 | builtin and then its argument prototype would still apply. */ | |
8655 | char rl_completion_matches (); | |
8656 | /* The GNU C library defines this for functions which it implements | |
8657 | to always fail with ENOSYS. Some functions are actually named | |
8658 | something starting with __ and the normal name is an alias. */ | |
8659 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
8660 | choke me | |
8661 | #else | |
8662 | char (*f) () = rl_completion_matches; | |
8663 | #endif | |
8664 | #ifdef __cplusplus | |
8665 | } | |
8666 | #endif | |
8667 | ||
8668 | int | |
8669 | main () | |
8670 | { | |
8671 | return f != rl_completion_matches; | |
8672 | ; | |
8673 | return 0; | |
8674 | } | |
8675 | _ACEOF | |
8676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 8678 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8679 | ac_status=$? |
8a2fc586 AK |
8680 | grep -v '^ *+' conftest.er1 >conftest.err |
8681 | rm -f conftest.er1 | |
8682 | cat conftest.err >&5 | |
ad6254c5 AK |
8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8684 | (exit $ac_status); } && | |
8a2fc586 AK |
8685 | { ac_try='test -z "$ac_c_werror_flag" |
8686 | || test ! -s conftest.err' | |
8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8688 | (eval $ac_try) 2>&5 | |
8689 | ac_status=$? | |
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8691 | (exit $ac_status); }; } && | |
8692 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8694 | (eval $ac_try) 2>&5 | |
8695 | ac_status=$? | |
8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8697 | (exit $ac_status); }; }; then | |
8698 | ac_cv_func_rl_completion_matches=yes | |
8699 | else | |
8700 | echo "$as_me: failed program was:" >&5 | |
8701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8702 | ||
8703 | ac_cv_func_rl_completion_matches=no | |
8704 | fi | |
8a2fc586 AK |
8705 | rm -f conftest.err conftest.$ac_objext \ |
8706 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8707 | fi |
8708 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 | |
8709 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
8710 | if test $ac_cv_func_rl_completion_matches = yes; then | |
8a2fc586 | 8711 | LVM_DEFS="$LVM_DEFS -DHAVE_RL_COMPLETION_MATCHES" |
ad6254c5 AK |
8712 | fi |
8713 | ||
8714 | ||
8715 | fi | |
8716 | ||
8717 | ################################################################################ | |
8718 | echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 | |
8719 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6 | |
8720 | # Check whether --enable-nls or --disable-nls was given. | |
8721 | if test "${enable_nls+set}" = set; then | |
8722 | enableval="$enable_nls" | |
8723 | INTL=$enableval | |
8724 | else | |
8725 | INTL=no | |
8726 | fi; | |
8727 | echo "$as_me:$LINENO: result: $INTL" >&5 | |
8728 | echo "${ECHO_T}$INTL" >&6 | |
8729 | ||
8730 | if test x$INTL = xyes; then | |
8731 | INTL_PACKAGE="lvm2" | |
8732 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8733 | set dummy msgfmt; ac_word=$2 | |
8734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8736 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8738 | else | |
8739 | case $MSGFMT in | |
8740 | [\\/]* | ?:[\\/]*) | |
8741 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8742 | ;; | |
8743 | *) | |
8744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8745 | for as_dir in $PATH | |
8746 | do | |
8747 | IFS=$as_save_IFS | |
8748 | test -z "$as_dir" && as_dir=. | |
8749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8751 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
8752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8753 | break 2 | |
8754 | fi | |
8755 | done | |
8756 | done | |
8757 | ||
8758 | ;; | |
8759 | esac | |
8760 | fi | |
8761 | MSGFMT=$ac_cv_path_MSGFMT | |
8762 | ||
8763 | if test -n "$MSGFMT"; then | |
8764 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
8765 | echo "${ECHO_T}$MSGFMT" >&6 | |
8766 | else | |
8767 | echo "$as_me:$LINENO: result: no" >&5 | |
8768 | echo "${ECHO_T}no" >&6 | |
8769 | fi | |
8770 | ||
8771 | if [ "x$MSGFMT" == x ]; | |
8772 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH | |
8773 | " >&5 | |
8774 | echo "$as_me: error: msgfmt not found in path $PATH | |
8775 | " >&2;} | |
8776 | { (exit 1); exit 1; }; } | |
8777 | fi; | |
8778 | ||
8779 | ||
8780 | # Check whether --with-localedir or --without-localedir was given. | |
8781 | if test "${with_localedir+set}" = set; then | |
8782 | withval="$with_localedir" | |
8783 | LOCALEDIR="$withval" | |
8784 | else | |
8785 | LOCALEDIR='${prefix}/share/locale' | |
8786 | fi; | |
8787 | fi | |
8788 | ||
8789 | ################################################################################ | |
8790 | ||
8791 | # Check whether --with-confdir or --without-confdir was given. | |
8792 | if test "${with_confdir+set}" = set; then | |
8793 | withval="$with_confdir" | |
8794 | CONFDIR="$withval" | |
8795 | else | |
8796 | CONFDIR='/etc' | |
8797 | fi; | |
8798 | ||
8799 | ||
8800 | # Check whether --with-staticdir or --without-staticdir was given. | |
8801 | if test "${with_staticdir+set}" = set; then | |
8802 | withval="$with_staticdir" | |
8803 | STATICDIR="$withval" | |
8804 | else | |
8805 | STATICDIR='${exec_prefix}/sbin' | |
8806 | fi; | |
8807 | ||
8808 | ################################################################################ | |
8809 | if test x$READLINE = xyes; then | |
8810 | ||
8811 | ||
8812 | for ac_header in readline/readline.h readline/history.h | |
8813 | do | |
8814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8816 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8817 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8820 | fi | |
8821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8823 | else | |
8824 | # Is the header compilable? | |
8825 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8826 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8827 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8828 | /* confdefs.h. */ |
8829 | _ACEOF | |
8830 | cat confdefs.h >>conftest.$ac_ext | |
8831 | cat >>conftest.$ac_ext <<_ACEOF | |
8832 | /* end confdefs.h. */ | |
8833 | $ac_includes_default | |
8834 | #include <$ac_header> | |
8835 | _ACEOF | |
8836 | rm -f conftest.$ac_objext | |
8837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 8838 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8839 | ac_status=$? |
8a2fc586 AK |
8840 | grep -v '^ *+' conftest.er1 >conftest.err |
8841 | rm -f conftest.er1 | |
8842 | cat conftest.err >&5 | |
ad6254c5 AK |
8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8844 | (exit $ac_status); } && | |
8a2fc586 AK |
8845 | { ac_try='test -z "$ac_c_werror_flag" |
8846 | || test ! -s conftest.err' | |
8847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8848 | (eval $ac_try) 2>&5 | |
8849 | ac_status=$? | |
8850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8851 | (exit $ac_status); }; } && | |
8852 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8854 | (eval $ac_try) 2>&5 | |
8855 | ac_status=$? | |
8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8857 | (exit $ac_status); }; }; then | |
8858 | ac_header_compiler=yes | |
8859 | else | |
8860 | echo "$as_me: failed program was:" >&5 | |
8861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8862 | ||
8863 | ac_header_compiler=no | |
8864 | fi | |
8a2fc586 | 8865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8866 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8867 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8868 | ||
8869 | # Is the header present? | |
8870 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8871 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8872 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8873 | /* confdefs.h. */ |
8874 | _ACEOF | |
8875 | cat confdefs.h >>conftest.$ac_ext | |
8876 | cat >>conftest.$ac_ext <<_ACEOF | |
8877 | /* end confdefs.h. */ | |
8878 | #include <$ac_header> | |
8879 | _ACEOF | |
8880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8882 | ac_status=$? | |
8883 | grep -v '^ *+' conftest.er1 >conftest.err | |
8884 | rm -f conftest.er1 | |
8885 | cat conftest.err >&5 | |
8886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8887 | (exit $ac_status); } >/dev/null; then | |
8888 | if test -s conftest.err; then | |
8889 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 8890 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8891 | else |
8892 | ac_cpp_err= | |
8893 | fi | |
8894 | else | |
8895 | ac_cpp_err=yes | |
8896 | fi | |
8897 | if test -z "$ac_cpp_err"; then | |
8898 | ac_header_preproc=yes | |
8899 | else | |
8900 | echo "$as_me: failed program was:" >&5 | |
8901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8902 | ||
8903 | ac_header_preproc=no | |
8904 | fi | |
8905 | rm -f conftest.err conftest.$ac_ext | |
8906 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8907 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8908 | ||
8909 | # So? What about this header? | |
8a2fc586 AK |
8910 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8911 | yes:no: ) | |
ad6254c5 AK |
8912 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8913 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
8914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8915 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8916 | ac_header_preproc=yes | |
ad6254c5 | 8917 | ;; |
8a2fc586 | 8918 | no:yes:* ) |
ad6254c5 AK |
8919 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8920 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
8921 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8922 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8923 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8924 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8925 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8926 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8927 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8928 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
8929 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8930 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8931 | ( |
8932 | cat <<\_ASBOX | |
8a2fc586 AK |
8933 | ## ------------------------------------------ ## |
8934 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8935 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8936 | _ASBOX |
8937 | ) | | |
8938 | sed "s/^/$as_me: WARNING: /" >&2 | |
8939 | ;; | |
8940 | esac | |
8941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8945 | else | |
8a2fc586 | 8946 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8947 | fi |
8948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8950 | ||
8951 | fi | |
8952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8953 | cat >>confdefs.h <<_ACEOF | |
8954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8955 | _ACEOF | |
8956 | ||
8957 | else | |
8958 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8959 | echo "$as_me: error: bailing out" >&2;} | |
8960 | { (exit 1); exit 1; }; } | |
8961 | fi | |
8962 | ||
8963 | done | |
8964 | ||
8965 | fi | |
8966 | ||
5c7fc7c4 | 8967 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
8968 | |
8969 | ||
8970 | ||
8971 | ||
8972 | ||
8973 | ||
8974 | ||
8975 | ||
8976 | ||
8977 | ||
8978 | for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h | |
8979 | do | |
8980 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8981 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8986 | fi | |
8987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8988 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8989 | else | |
8990 | # Is the header compilable? | |
8991 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8992 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8993 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8994 | /* confdefs.h. */ |
8995 | _ACEOF | |
8996 | cat confdefs.h >>conftest.$ac_ext | |
8997 | cat >>conftest.$ac_ext <<_ACEOF | |
8998 | /* end confdefs.h. */ | |
8999 | $ac_includes_default | |
9000 | #include <$ac_header> | |
9001 | _ACEOF | |
9002 | rm -f conftest.$ac_objext | |
9003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9004 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9005 | ac_status=$? |
8a2fc586 AK |
9006 | grep -v '^ *+' conftest.er1 >conftest.err |
9007 | rm -f conftest.er1 | |
9008 | cat conftest.err >&5 | |
ad6254c5 AK |
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9010 | (exit $ac_status); } && | |
8a2fc586 AK |
9011 | { ac_try='test -z "$ac_c_werror_flag" |
9012 | || test ! -s conftest.err' | |
9013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9014 | (eval $ac_try) 2>&5 | |
9015 | ac_status=$? | |
9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9017 | (exit $ac_status); }; } && | |
9018 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9020 | (eval $ac_try) 2>&5 | |
9021 | ac_status=$? | |
9022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9023 | (exit $ac_status); }; }; then | |
9024 | ac_header_compiler=yes | |
9025 | else | |
9026 | echo "$as_me: failed program was:" >&5 | |
9027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9028 | ||
9029 | ac_header_compiler=no | |
9030 | fi | |
8a2fc586 | 9031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9032 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9033 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9034 | ||
9035 | # Is the header present? | |
9036 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9037 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9038 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9039 | /* confdefs.h. */ |
9040 | _ACEOF | |
9041 | cat confdefs.h >>conftest.$ac_ext | |
9042 | cat >>conftest.$ac_ext <<_ACEOF | |
9043 | /* end confdefs.h. */ | |
9044 | #include <$ac_header> | |
9045 | _ACEOF | |
9046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9048 | ac_status=$? | |
9049 | grep -v '^ *+' conftest.er1 >conftest.err | |
9050 | rm -f conftest.er1 | |
9051 | cat conftest.err >&5 | |
9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9053 | (exit $ac_status); } >/dev/null; then | |
9054 | if test -s conftest.err; then | |
9055 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9056 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9057 | else |
9058 | ac_cpp_err= | |
9059 | fi | |
9060 | else | |
9061 | ac_cpp_err=yes | |
9062 | fi | |
9063 | if test -z "$ac_cpp_err"; then | |
9064 | ac_header_preproc=yes | |
9065 | else | |
9066 | echo "$as_me: failed program was:" >&5 | |
9067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9068 | ||
9069 | ac_header_preproc=no | |
9070 | fi | |
9071 | rm -f conftest.err conftest.$ac_ext | |
9072 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9073 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9074 | ||
9075 | # So? What about this header? | |
8a2fc586 AK |
9076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9077 | yes:no: ) | |
ad6254c5 AK |
9078 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9079 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9081 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9082 | ac_header_preproc=yes | |
ad6254c5 | 9083 | ;; |
8a2fc586 | 9084 | no:yes:* ) |
ad6254c5 AK |
9085 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9086 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9087 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9088 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9089 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9090 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9091 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9092 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9093 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9094 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9095 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9096 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9097 | ( |
9098 | cat <<\_ASBOX | |
8a2fc586 AK |
9099 | ## ------------------------------------------ ## |
9100 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9101 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9102 | _ASBOX |
9103 | ) | | |
9104 | sed "s/^/$as_me: WARNING: /" >&2 | |
9105 | ;; | |
9106 | esac | |
9107 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9111 | else | |
8a2fc586 | 9112 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
9113 | fi |
9114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9116 | ||
9117 | fi | |
9118 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9119 | cat >>confdefs.h <<_ACEOF | |
9120 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9121 | _ACEOF | |
9122 | ||
9123 | else | |
9124 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9125 | echo "$as_me: error: bailing out" >&2;} | |
9126 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
9127 | fi |
9128 | ||
ad6254c5 AK |
9129 | done |
9130 | ||
9131 | ||
795ca3e5 | 9132 | |
8106cdd5 | 9133 | |
ad6254c5 AK |
9134 | |
9135 | ||
9136 | for ac_func in dup2 getmntent memmove select socket | |
9137 | do | |
9138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9139 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9141 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9143 | else |
ad6254c5 | 9144 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9145 | /* confdefs.h. */ |
9146 | _ACEOF | |
9147 | cat confdefs.h >>conftest.$ac_ext | |
9148 | cat >>conftest.$ac_ext <<_ACEOF | |
9149 | /* end confdefs.h. */ | |
8a2fc586 AK |
9150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9152 | #define $ac_func innocuous_$ac_func | |
9153 | ||
795ca3e5 | 9154 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9155 | which can conflict with char $ac_func (); below. |
9156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9157 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9158 | |
ad6254c5 AK |
9159 | #ifdef __STDC__ |
9160 | # include <limits.h> | |
9161 | #else | |
9162 | # include <assert.h> | |
9163 | #endif | |
8a2fc586 AK |
9164 | |
9165 | #undef $ac_func | |
9166 | ||
795ca3e5 | 9167 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9168 | #ifdef __cplusplus |
9169 | extern "C" | |
9170 | { | |
9171 | #endif | |
795ca3e5 | 9172 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9173 | builtin and then its argument prototype would still apply. */ |
9174 | char $ac_func (); | |
795ca3e5 AK |
9175 | /* The GNU C library defines this for functions which it implements |
9176 | to always fail with ENOSYS. Some functions are actually named | |
9177 | something starting with __ and the normal name is an alias. */ | |
ad6254c5 | 9178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
9179 | choke me |
9180 | #else | |
ad6254c5 AK |
9181 | char (*f) () = $ac_func; |
9182 | #endif | |
9183 | #ifdef __cplusplus | |
9184 | } | |
795ca3e5 AK |
9185 | #endif |
9186 | ||
ad6254c5 AK |
9187 | int |
9188 | main () | |
9189 | { | |
9190 | return f != $ac_func; | |
9191 | ; | |
9192 | return 0; | |
9193 | } | |
9194 | _ACEOF | |
9195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9197 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9198 | ac_status=$? |
8a2fc586 AK |
9199 | grep -v '^ *+' conftest.er1 >conftest.err |
9200 | rm -f conftest.er1 | |
9201 | cat conftest.err >&5 | |
ad6254c5 AK |
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9203 | (exit $ac_status); } && | |
8a2fc586 AK |
9204 | { ac_try='test -z "$ac_c_werror_flag" |
9205 | || test ! -s conftest.err' | |
9206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9207 | (eval $ac_try) 2>&5 | |
9208 | ac_status=$? | |
9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9210 | (exit $ac_status); }; } && | |
9211 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9213 | (eval $ac_try) 2>&5 | |
9214 | ac_status=$? | |
9215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9216 | (exit $ac_status); }; }; then | |
9217 | eval "$as_ac_var=yes" | |
795ca3e5 | 9218 | else |
ad6254c5 AK |
9219 | echo "$as_me: failed program was:" >&5 |
9220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9221 | ||
9222 | eval "$as_ac_var=no" | |
80992638 | 9223 | fi |
8a2fc586 AK |
9224 | rm -f conftest.err conftest.$ac_objext \ |
9225 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9226 | fi |
ad6254c5 AK |
9227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9228 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9230 | cat >>confdefs.h <<_ACEOF | |
9231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9232 | _ACEOF | |
80992638 AK |
9233 | |
9234 | else | |
ad6254c5 AK |
9235 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9236 | echo "$as_me: error: bailing out" >&2;} | |
9237 | { (exit 1); exit 1; }; } | |
8106cdd5 | 9238 | fi |
ad6254c5 | 9239 | done |
795ca3e5 | 9240 | |
ad6254c5 AK |
9241 | # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. |
9242 | echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5 | |
9243 | echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 | |
9244 | if test "${ac_cv_lib_sun_getmntent+set}" = set; then | |
9245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9246 | else |
ad6254c5 AK |
9247 | ac_check_lib_save_LIBS=$LIBS |
9248 | LIBS="-lsun $LIBS" | |
9249 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9250 | /* confdefs.h. */ |
9251 | _ACEOF | |
9252 | cat confdefs.h >>conftest.$ac_ext | |
9253 | cat >>conftest.$ac_ext <<_ACEOF | |
9254 | /* end confdefs.h. */ | |
9255 | ||
795ca3e5 | 9256 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9257 | #ifdef __cplusplus |
9258 | extern "C" | |
9259 | #endif | |
795ca3e5 | 9260 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9261 | builtin and then its argument prototype would still apply. */ |
9262 | char getmntent (); | |
9263 | int | |
9264 | main () | |
9265 | { | |
9266 | getmntent (); | |
9267 | ; | |
9268 | return 0; | |
9269 | } | |
9270 | _ACEOF | |
9271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9273 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9274 | ac_status=$? |
8a2fc586 AK |
9275 | grep -v '^ *+' conftest.er1 >conftest.err |
9276 | rm -f conftest.er1 | |
9277 | cat conftest.err >&5 | |
ad6254c5 AK |
9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9279 | (exit $ac_status); } && | |
8a2fc586 AK |
9280 | { ac_try='test -z "$ac_c_werror_flag" |
9281 | || test ! -s conftest.err' | |
9282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9283 | (eval $ac_try) 2>&5 | |
9284 | ac_status=$? | |
9285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9286 | (exit $ac_status); }; } && | |
9287 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9289 | (eval $ac_try) 2>&5 | |
9290 | ac_status=$? | |
9291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9292 | (exit $ac_status); }; }; then | |
9293 | ac_cv_lib_sun_getmntent=yes | |
9294 | else | |
9295 | echo "$as_me: failed program was:" >&5 | |
9296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 9297 | |
ad6254c5 AK |
9298 | ac_cv_lib_sun_getmntent=no |
9299 | fi | |
8a2fc586 AK |
9300 | rm -f conftest.err conftest.$ac_objext \ |
9301 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9302 | LIBS=$ac_check_lib_save_LIBS |
9303 | fi | |
9304 | echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5 | |
9305 | echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 | |
9306 | if test $ac_cv_lib_sun_getmntent = yes; then | |
9307 | LIBS="-lsun $LIBS" | |
9308 | else | |
9309 | echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5 | |
9310 | echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 | |
9311 | if test "${ac_cv_lib_seq_getmntent+set}" = set; then | |
9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9313 | else | |
9314 | ac_check_lib_save_LIBS=$LIBS | |
9315 | LIBS="-lseq $LIBS" | |
9316 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9317 | /* confdefs.h. */ |
9318 | _ACEOF | |
9319 | cat confdefs.h >>conftest.$ac_ext | |
9320 | cat >>conftest.$ac_ext <<_ACEOF | |
9321 | /* end confdefs.h. */ | |
80992638 | 9322 | |
ad6254c5 AK |
9323 | /* Override any gcc2 internal prototype to avoid an error. */ |
9324 | #ifdef __cplusplus | |
9325 | extern "C" | |
795ca3e5 | 9326 | #endif |
ad6254c5 AK |
9327 | /* We use char because int might match the return type of a gcc2 |
9328 | builtin and then its argument prototype would still apply. */ | |
9329 | char getmntent (); | |
9330 | int | |
9331 | main () | |
9332 | { | |
9333 | getmntent (); | |
9334 | ; | |
9335 | return 0; | |
9336 | } | |
9337 | _ACEOF | |
9338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9340 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9341 | ac_status=$? |
8a2fc586 AK |
9342 | grep -v '^ *+' conftest.er1 >conftest.err |
9343 | rm -f conftest.er1 | |
9344 | cat conftest.err >&5 | |
ad6254c5 AK |
9345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9346 | (exit $ac_status); } && | |
8a2fc586 AK |
9347 | { ac_try='test -z "$ac_c_werror_flag" |
9348 | || test ! -s conftest.err' | |
9349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9350 | (eval $ac_try) 2>&5 | |
9351 | ac_status=$? | |
9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9353 | (exit $ac_status); }; } && | |
9354 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9356 | (eval $ac_try) 2>&5 | |
9357 | ac_status=$? | |
9358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9359 | (exit $ac_status); }; }; then | |
9360 | ac_cv_lib_seq_getmntent=yes | |
795ca3e5 | 9361 | else |
ad6254c5 AK |
9362 | echo "$as_me: failed program was:" >&5 |
9363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9364 | ||
9365 | ac_cv_lib_seq_getmntent=no | |
795ca3e5 | 9366 | fi |
8a2fc586 AK |
9367 | rm -f conftest.err conftest.$ac_objext \ |
9368 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 9369 | LIBS=$ac_check_lib_save_LIBS |
795ca3e5 | 9370 | fi |
ad6254c5 AK |
9371 | echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5 |
9372 | echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 | |
9373 | if test $ac_cv_lib_seq_getmntent = yes; then | |
9374 | LIBS="-lseq $LIBS" | |
9375 | else | |
9376 | echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5 | |
9377 | echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 | |
9378 | if test "${ac_cv_lib_gen_getmntent+set}" = set; then | |
9379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9380 | else | |
9381 | ac_check_lib_save_LIBS=$LIBS | |
9382 | LIBS="-lgen $LIBS" | |
9383 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9384 | /* confdefs.h. */ |
9385 | _ACEOF | |
9386 | cat confdefs.h >>conftest.$ac_ext | |
9387 | cat >>conftest.$ac_ext <<_ACEOF | |
9388 | /* end confdefs.h. */ | |
795ca3e5 | 9389 | |
ad6254c5 AK |
9390 | /* Override any gcc2 internal prototype to avoid an error. */ |
9391 | #ifdef __cplusplus | |
9392 | extern "C" | |
9393 | #endif | |
9394 | /* We use char because int might match the return type of a gcc2 | |
9395 | builtin and then its argument prototype would still apply. */ | |
9396 | char getmntent (); | |
9397 | int | |
9398 | main () | |
9399 | { | |
9400 | getmntent (); | |
9401 | ; | |
9402 | return 0; | |
9403 | } | |
9404 | _ACEOF | |
9405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9407 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9408 | ac_status=$? |
8a2fc586 AK |
9409 | grep -v '^ *+' conftest.er1 >conftest.err |
9410 | rm -f conftest.er1 | |
9411 | cat conftest.err >&5 | |
ad6254c5 AK |
9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9413 | (exit $ac_status); } && | |
8a2fc586 AK |
9414 | { ac_try='test -z "$ac_c_werror_flag" |
9415 | || test ! -s conftest.err' | |
9416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9417 | (eval $ac_try) 2>&5 | |
9418 | ac_status=$? | |
9419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9420 | (exit $ac_status); }; } && | |
9421 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9423 | (eval $ac_try) 2>&5 | |
9424 | ac_status=$? | |
9425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9426 | (exit $ac_status); }; }; then | |
9427 | ac_cv_lib_gen_getmntent=yes | |
80992638 | 9428 | else |
ad6254c5 AK |
9429 | echo "$as_me: failed program was:" >&5 |
9430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9431 | ||
9432 | ac_cv_lib_gen_getmntent=no | |
9433 | fi | |
8a2fc586 AK |
9434 | rm -f conftest.err conftest.$ac_objext \ |
9435 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9436 | LIBS=$ac_check_lib_save_LIBS |
9437 | fi | |
9438 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5 | |
9439 | echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 | |
9440 | if test $ac_cv_lib_gen_getmntent = yes; then | |
9441 | LIBS="-lgen $LIBS" | |
795ca3e5 AK |
9442 | fi |
9443 | ||
9444 | fi | |
9445 | ||
ad6254c5 AK |
9446 | fi |
9447 | ||
9448 | ||
9449 | for ac_func in getmntent | |
795ca3e5 | 9450 | do |
ad6254c5 AK |
9451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9452 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9454 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9456 | else | |
9457 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9458 | /* confdefs.h. */ |
9459 | _ACEOF | |
9460 | cat confdefs.h >>conftest.$ac_ext | |
9461 | cat >>conftest.$ac_ext <<_ACEOF | |
9462 | /* end confdefs.h. */ | |
8a2fc586 AK |
9463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9465 | #define $ac_func innocuous_$ac_func | |
9466 | ||
795ca3e5 | 9467 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9468 | which can conflict with char $ac_func (); below. |
9469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9470 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9471 | |
ad6254c5 AK |
9472 | #ifdef __STDC__ |
9473 | # include <limits.h> | |
9474 | #else | |
9475 | # include <assert.h> | |
9476 | #endif | |
8a2fc586 AK |
9477 | |
9478 | #undef $ac_func | |
9479 | ||
795ca3e5 | 9480 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9481 | #ifdef __cplusplus |
9482 | extern "C" | |
9483 | { | |
9484 | #endif | |
795ca3e5 | 9485 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9486 | builtin and then its argument prototype would still apply. */ |
9487 | char $ac_func (); | |
795ca3e5 AK |
9488 | /* The GNU C library defines this for functions which it implements |
9489 | to always fail with ENOSYS. Some functions are actually named | |
9490 | something starting with __ and the normal name is an alias. */ | |
9491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9492 | choke me | |
9493 | #else | |
ad6254c5 AK |
9494 | char (*f) () = $ac_func; |
9495 | #endif | |
9496 | #ifdef __cplusplus | |
9497 | } | |
795ca3e5 AK |
9498 | #endif |
9499 | ||
ad6254c5 AK |
9500 | int |
9501 | main () | |
9502 | { | |
9503 | return f != $ac_func; | |
9504 | ; | |
9505 | return 0; | |
9506 | } | |
9507 | _ACEOF | |
9508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 9510 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9511 | ac_status=$? |
8a2fc586 AK |
9512 | grep -v '^ *+' conftest.er1 >conftest.err |
9513 | rm -f conftest.er1 | |
9514 | cat conftest.err >&5 | |
ad6254c5 AK |
9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9516 | (exit $ac_status); } && | |
8a2fc586 AK |
9517 | { ac_try='test -z "$ac_c_werror_flag" |
9518 | || test ! -s conftest.err' | |
9519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9520 | (eval $ac_try) 2>&5 | |
9521 | ac_status=$? | |
9522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9523 | (exit $ac_status); }; } && | |
9524 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9526 | (eval $ac_try) 2>&5 | |
9527 | ac_status=$? | |
9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9529 | (exit $ac_status); }; }; then | |
9530 | eval "$as_ac_var=yes" | |
795ca3e5 | 9531 | else |
ad6254c5 AK |
9532 | echo "$as_me: failed program was:" >&5 |
9533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9534 | ||
9535 | eval "$as_ac_var=no" | |
795ca3e5 | 9536 | fi |
8a2fc586 AK |
9537 | rm -f conftest.err conftest.$ac_objext \ |
9538 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9539 | fi |
ad6254c5 AK |
9540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9541 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9542 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9543 | cat >>confdefs.h <<_ACEOF | |
9544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9545 | _ACEOF | |
795ca3e5 | 9546 | |
795ca3e5 AK |
9547 | fi |
9548 | done | |
9549 | ||
9550 | ||
ad6254c5 AK |
9551 | # AC_FUNC_REALLOC |
9552 | ||
9553 | ||
9554 | for ac_header in sys/select.h sys/socket.h | |
9555 | do | |
9556 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9562 | fi | |
9563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 9565 | else |
ad6254c5 AK |
9566 | # Is the header compilable? |
9567 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9569 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9570 | /* confdefs.h. */ |
9571 | _ACEOF | |
9572 | cat confdefs.h >>conftest.$ac_ext | |
9573 | cat >>conftest.$ac_ext <<_ACEOF | |
9574 | /* end confdefs.h. */ | |
9575 | $ac_includes_default | |
9576 | #include <$ac_header> | |
9577 | _ACEOF | |
9578 | rm -f conftest.$ac_objext | |
9579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9580 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9581 | ac_status=$? |
8a2fc586 AK |
9582 | grep -v '^ *+' conftest.er1 >conftest.err |
9583 | rm -f conftest.er1 | |
9584 | cat conftest.err >&5 | |
ad6254c5 AK |
9585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9586 | (exit $ac_status); } && | |
8a2fc586 AK |
9587 | { ac_try='test -z "$ac_c_werror_flag" |
9588 | || test ! -s conftest.err' | |
9589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9590 | (eval $ac_try) 2>&5 | |
9591 | ac_status=$? | |
9592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9593 | (exit $ac_status); }; } && | |
9594 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9596 | (eval $ac_try) 2>&5 | |
9597 | ac_status=$? | |
9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9599 | (exit $ac_status); }; }; then | |
9600 | ac_header_compiler=yes | |
80992638 | 9601 | else |
ad6254c5 AK |
9602 | echo "$as_me: failed program was:" >&5 |
9603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9604 | ||
9605 | ac_header_compiler=no | |
9606 | fi | |
8a2fc586 | 9607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9608 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9609 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9610 | ||
9611 | # Is the header present? | |
9612 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9613 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9614 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9615 | /* confdefs.h. */ |
9616 | _ACEOF | |
9617 | cat confdefs.h >>conftest.$ac_ext | |
9618 | cat >>conftest.$ac_ext <<_ACEOF | |
9619 | /* end confdefs.h. */ | |
9620 | #include <$ac_header> | |
9621 | _ACEOF | |
9622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9623 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9624 | ac_status=$? | |
9625 | grep -v '^ *+' conftest.er1 >conftest.err | |
9626 | rm -f conftest.er1 | |
9627 | cat conftest.err >&5 | |
9628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9629 | (exit $ac_status); } >/dev/null; then | |
9630 | if test -s conftest.err; then | |
9631 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9632 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9633 | else |
9634 | ac_cpp_err= | |
9635 | fi | |
9636 | else | |
9637 | ac_cpp_err=yes | |
795ca3e5 | 9638 | fi |
ad6254c5 AK |
9639 | if test -z "$ac_cpp_err"; then |
9640 | ac_header_preproc=yes | |
9641 | else | |
9642 | echo "$as_me: failed program was:" >&5 | |
9643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9644 | ||
9645 | ac_header_preproc=no | |
9646 | fi | |
9647 | rm -f conftest.err conftest.$ac_ext | |
9648 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9649 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9650 | ||
9651 | # So? What about this header? | |
8a2fc586 AK |
9652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9653 | yes:no: ) | |
ad6254c5 AK |
9654 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9655 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9657 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9658 | ac_header_preproc=yes | |
ad6254c5 | 9659 | ;; |
8a2fc586 | 9660 | no:yes:* ) |
ad6254c5 AK |
9661 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9662 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9663 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9664 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9665 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9666 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9667 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9668 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9671 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9672 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9673 | ( |
9674 | cat <<\_ASBOX | |
8a2fc586 AK |
9675 | ## ------------------------------------------ ## |
9676 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9677 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9678 | _ASBOX |
9679 | ) | | |
9680 | sed "s/^/$as_me: WARNING: /" >&2 | |
9681 | ;; | |
9682 | esac | |
9683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9687 | else | |
8a2fc586 | 9688 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 9689 | fi |
ad6254c5 AK |
9690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9691 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8106cdd5 | 9692 | |
795ca3e5 | 9693 | fi |
ad6254c5 AK |
9694 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9695 | cat >>confdefs.h <<_ACEOF | |
9696 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9697 | _ACEOF | |
9698 | ||
795ca3e5 AK |
9699 | fi |
9700 | ||
ad6254c5 AK |
9701 | done |
9702 | ||
9703 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 | |
9704 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 | |
9705 | if test "${ac_cv_func_select_args+set}" = set; then | |
9706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9707 | else |
ad6254c5 AK |
9708 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9709 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do | |
9710 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9711 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9712 | /* confdefs.h. */ |
9713 | _ACEOF | |
9714 | cat confdefs.h >>conftest.$ac_ext | |
9715 | cat >>conftest.$ac_ext <<_ACEOF | |
9716 | /* end confdefs.h. */ | |
9717 | $ac_includes_default | |
9718 | #if HAVE_SYS_SELECT_H | |
9719 | # include <sys/select.h> | |
9720 | #endif | |
9721 | #if HAVE_SYS_SOCKET_H | |
9722 | # include <sys/socket.h> | |
9723 | #endif | |
9724 | ||
9725 | int | |
9726 | main () | |
9727 | { | |
9728 | extern int select ($ac_arg1, | |
8a2fc586 AK |
9729 | $ac_arg234, $ac_arg234, $ac_arg234, |
9730 | $ac_arg5); | |
ad6254c5 AK |
9731 | ; |
9732 | return 0; | |
9733 | } | |
9734 | _ACEOF | |
9735 | rm -f conftest.$ac_objext | |
9736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9737 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9738 | ac_status=$? |
8a2fc586 AK |
9739 | grep -v '^ *+' conftest.er1 >conftest.err |
9740 | rm -f conftest.er1 | |
9741 | cat conftest.err >&5 | |
ad6254c5 AK |
9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9743 | (exit $ac_status); } && | |
8a2fc586 AK |
9744 | { ac_try='test -z "$ac_c_werror_flag" |
9745 | || test ! -s conftest.err' | |
9746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9747 | (eval $ac_try) 2>&5 | |
9748 | ac_status=$? | |
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9750 | (exit $ac_status); }; } && | |
9751 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9753 | (eval $ac_try) 2>&5 | |
9754 | ac_status=$? | |
9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9756 | (exit $ac_status); }; }; then | |
9757 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9758 | else | |
9759 | echo "$as_me: failed program was:" >&5 | |
9760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9761 | ||
9762 | fi | |
8a2fc586 | 9763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9764 | done |
9765 | done | |
9766 | done | |
9767 | # Provide a safe default value. | |
9768 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
9769 | ||
26e7f2e0 | 9770 | fi |
ad6254c5 AK |
9771 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
9772 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 | |
9773 | ac_save_IFS=$IFS; IFS=',' | |
9774 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9775 | IFS=$ac_save_IFS | |
9776 | shift | |
9777 | ||
9778 | cat >>confdefs.h <<_ACEOF | |
9779 | #define SELECT_TYPE_ARG1 $1 | |
9780 | _ACEOF | |
9781 | ||
9782 | ||
9783 | cat >>confdefs.h <<_ACEOF | |
9784 | #define SELECT_TYPE_ARG234 ($2) | |
9785 | _ACEOF | |
9786 | ||
9787 | ||
9788 | cat >>confdefs.h <<_ACEOF | |
9789 | #define SELECT_TYPE_ARG5 ($3) | |
9790 | _ACEOF | |
9791 | ||
80992638 | 9792 | rm -f conftest* |
80992638 | 9793 | |
8106cdd5 | 9794 | fi |
ad6254c5 AK |
9795 | |
9796 | if test x$FSADM = xyes; then | |
9797 | ||
9798 | ||
9799 | ||
9800 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
9801 | do | |
9802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9804 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9808 | fi | |
9809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9811 | else | |
9812 | # Is the header compilable? | |
9813 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9814 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9815 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9816 | /* confdefs.h. */ |
9817 | _ACEOF | |
9818 | cat confdefs.h >>conftest.$ac_ext | |
9819 | cat >>conftest.$ac_ext <<_ACEOF | |
9820 | /* end confdefs.h. */ | |
9821 | $ac_includes_default | |
9822 | #include <$ac_header> | |
9823 | _ACEOF | |
9824 | rm -f conftest.$ac_objext | |
9825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 9826 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9827 | ac_status=$? |
8a2fc586 AK |
9828 | grep -v '^ *+' conftest.er1 >conftest.err |
9829 | rm -f conftest.er1 | |
9830 | cat conftest.err >&5 | |
ad6254c5 AK |
9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9832 | (exit $ac_status); } && | |
8a2fc586 AK |
9833 | { ac_try='test -z "$ac_c_werror_flag" |
9834 | || test ! -s conftest.err' | |
9835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9836 | (eval $ac_try) 2>&5 | |
9837 | ac_status=$? | |
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9839 | (exit $ac_status); }; } && | |
9840 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9842 | (eval $ac_try) 2>&5 | |
9843 | ac_status=$? | |
9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9845 | (exit $ac_status); }; }; then | |
9846 | ac_header_compiler=yes | |
9847 | else | |
9848 | echo "$as_me: failed program was:" >&5 | |
9849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9850 | ||
9851 | ac_header_compiler=no | |
9852 | fi | |
8a2fc586 | 9853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9854 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9855 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9856 | ||
9857 | # Is the header present? | |
9858 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9859 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9860 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9861 | /* confdefs.h. */ |
9862 | _ACEOF | |
9863 | cat confdefs.h >>conftest.$ac_ext | |
9864 | cat >>conftest.$ac_ext <<_ACEOF | |
9865 | /* end confdefs.h. */ | |
9866 | #include <$ac_header> | |
9867 | _ACEOF | |
9868 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9869 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9870 | ac_status=$? | |
9871 | grep -v '^ *+' conftest.er1 >conftest.err | |
9872 | rm -f conftest.er1 | |
9873 | cat conftest.err >&5 | |
9874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9875 | (exit $ac_status); } >/dev/null; then | |
9876 | if test -s conftest.err; then | |
9877 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 9878 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9879 | else |
9880 | ac_cpp_err= | |
9881 | fi | |
9882 | else | |
9883 | ac_cpp_err=yes | |
9884 | fi | |
9885 | if test -z "$ac_cpp_err"; then | |
9886 | ac_header_preproc=yes | |
9887 | else | |
9888 | echo "$as_me: failed program was:" >&5 | |
9889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9890 | ||
9891 | ac_header_preproc=no | |
9892 | fi | |
9893 | rm -f conftest.err conftest.$ac_ext | |
9894 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9895 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9896 | ||
9897 | # So? What about this header? | |
8a2fc586 AK |
9898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9899 | yes:no: ) | |
ad6254c5 AK |
9900 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9901 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
9902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9903 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9904 | ac_header_preproc=yes | |
ad6254c5 | 9905 | ;; |
8a2fc586 | 9906 | no:yes:* ) |
ad6254c5 AK |
9907 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9908 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
9909 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9910 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9911 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9912 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9913 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9914 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9916 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
9917 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9918 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9919 | ( |
9920 | cat <<\_ASBOX | |
8a2fc586 AK |
9921 | ## ------------------------------------------ ## |
9922 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9923 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9924 | _ASBOX |
9925 | ) | | |
9926 | sed "s/^/$as_me: WARNING: /" >&2 | |
9927 | ;; | |
9928 | esac | |
9929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9933 | else |
8a2fc586 | 9934 | eval "$as_ac_Header=\$ac_header_preproc" |
26e7f2e0 | 9935 | fi |
ad6254c5 AK |
9936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26e7f2e0 | 9938 | |
ad6254c5 AK |
9939 | fi |
9940 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9941 | cat >>confdefs.h <<_ACEOF | |
9942 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9943 | _ACEOF | |
26e7f2e0 | 9944 | |
d68a82ec | 9945 | else |
ad6254c5 AK |
9946 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9947 | echo "$as_me: error: bailing out" >&2;} | |
9948 | { (exit 1); exit 1; }; } | |
26e7f2e0 AK |
9949 | fi |
9950 | ||
ad6254c5 | 9951 | done |
036f273a | 9952 | |
ad6254c5 AK |
9953 | |
9954 | for ac_func in memmove | |
9955 | do | |
9956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9957 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9959 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
036f273a | 9961 | else |
ad6254c5 | 9962 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9963 | /* confdefs.h. */ |
9964 | _ACEOF | |
9965 | cat confdefs.h >>conftest.$ac_ext | |
9966 | cat >>conftest.$ac_ext <<_ACEOF | |
9967 | /* end confdefs.h. */ | |
8a2fc586 AK |
9968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9970 | #define $ac_func innocuous_$ac_func | |
9971 | ||
ad6254c5 AK |
9972 | /* System header to define __stub macros and hopefully few prototypes, |
9973 | which can conflict with char $ac_func (); below. | |
9974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9975 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9976 | |
ad6254c5 AK |
9977 | #ifdef __STDC__ |
9978 | # include <limits.h> | |
9979 | #else | |
9980 | # include <assert.h> | |
9981 | #endif | |
8a2fc586 AK |
9982 | |
9983 | #undef $ac_func | |
9984 | ||
036f273a | 9985 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9986 | #ifdef __cplusplus |
9987 | extern "C" | |
9988 | { | |
9989 | #endif | |
036f273a | 9990 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9991 | builtin and then its argument prototype would still apply. */ |
9992 | char $ac_func (); | |
9993 | /* The GNU C library defines this for functions which it implements | |
9994 | to always fail with ENOSYS. Some functions are actually named | |
9995 | something starting with __ and the normal name is an alias. */ | |
9996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9997 | choke me | |
9998 | #else | |
9999 | char (*f) () = $ac_func; | |
10000 | #endif | |
10001 | #ifdef __cplusplus | |
10002 | } | |
10003 | #endif | |
80992638 | 10004 | |
ad6254c5 AK |
10005 | int |
10006 | main () | |
10007 | { | |
10008 | return f != $ac_func; | |
10009 | ; | |
10010 | return 0; | |
10011 | } | |
10012 | _ACEOF | |
10013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 10015 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10016 | ac_status=$? |
8a2fc586 AK |
10017 | grep -v '^ *+' conftest.er1 >conftest.err |
10018 | rm -f conftest.er1 | |
10019 | cat conftest.err >&5 | |
ad6254c5 AK |
10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10021 | (exit $ac_status); } && | |
8a2fc586 AK |
10022 | { ac_try='test -z "$ac_c_werror_flag" |
10023 | || test ! -s conftest.err' | |
10024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10025 | (eval $ac_try) 2>&5 | |
10026 | ac_status=$? | |
10027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10028 | (exit $ac_status); }; } && | |
10029 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10031 | (eval $ac_try) 2>&5 | |
10032 | ac_status=$? | |
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10034 | (exit $ac_status); }; }; then | |
10035 | eval "$as_ac_var=yes" | |
036f273a | 10036 | else |
ad6254c5 AK |
10037 | echo "$as_me: failed program was:" >&5 |
10038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10039 | ||
10040 | eval "$as_ac_var=no" | |
036f273a | 10041 | fi |
8a2fc586 AK |
10042 | rm -f conftest.err conftest.$ac_objext \ |
10043 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10044 | fi |
10045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10046 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10047 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10048 | cat >>confdefs.h <<_ACEOF | |
10049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10050 | _ACEOF | |
036f273a | 10051 | |
ad6254c5 AK |
10052 | else |
10053 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10054 | echo "$as_me: error: bailing out" >&2;} | |
10055 | { (exit 1); exit 1; }; } | |
10056 | fi | |
10057 | done | |
036f273a | 10058 | |
036f273a | 10059 | fi |
d68a82ec | 10060 | |
ad6254c5 AK |
10061 | if test x$CLUSTER != xnone; then |
10062 | ||
10063 | ||
10064 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10065 | do |
ad6254c5 AK |
10066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10072 | fi | |
10073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10075 | else | |
10076 | # Is the header compilable? | |
10077 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10078 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10079 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10080 | /* confdefs.h. */ |
10081 | _ACEOF | |
10082 | cat confdefs.h >>conftest.$ac_ext | |
10083 | cat >>conftest.$ac_ext <<_ACEOF | |
10084 | /* end confdefs.h. */ | |
10085 | $ac_includes_default | |
10086 | #include <$ac_header> | |
10087 | _ACEOF | |
10088 | rm -f conftest.$ac_objext | |
10089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10090 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10091 | ac_status=$? |
8a2fc586 AK |
10092 | grep -v '^ *+' conftest.er1 >conftest.err |
10093 | rm -f conftest.er1 | |
10094 | cat conftest.err >&5 | |
ad6254c5 AK |
10095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10096 | (exit $ac_status); } && | |
8a2fc586 AK |
10097 | { ac_try='test -z "$ac_c_werror_flag" |
10098 | || test ! -s conftest.err' | |
10099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10100 | (eval $ac_try) 2>&5 | |
10101 | ac_status=$? | |
10102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10103 | (exit $ac_status); }; } && | |
10104 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10106 | (eval $ac_try) 2>&5 | |
10107 | ac_status=$? | |
10108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10109 | (exit $ac_status); }; }; then | |
10110 | ac_header_compiler=yes | |
10111 | else | |
10112 | echo "$as_me: failed program was:" >&5 | |
10113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10114 | ||
10115 | ac_header_compiler=no | |
10116 | fi | |
8a2fc586 | 10117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10119 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10120 | ||
10121 | # Is the header present? | |
10122 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10124 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10125 | /* confdefs.h. */ |
10126 | _ACEOF | |
10127 | cat confdefs.h >>conftest.$ac_ext | |
10128 | cat >>conftest.$ac_ext <<_ACEOF | |
10129 | /* end confdefs.h. */ | |
10130 | #include <$ac_header> | |
10131 | _ACEOF | |
10132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10134 | ac_status=$? | |
10135 | grep -v '^ *+' conftest.er1 >conftest.err | |
10136 | rm -f conftest.er1 | |
10137 | cat conftest.err >&5 | |
10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10139 | (exit $ac_status); } >/dev/null; then | |
10140 | if test -s conftest.err; then | |
10141 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10143 | else |
10144 | ac_cpp_err= | |
10145 | fi | |
10146 | else | |
10147 | ac_cpp_err=yes | |
8106cdd5 | 10148 | fi |
ad6254c5 AK |
10149 | if test -z "$ac_cpp_err"; then |
10150 | ac_header_preproc=yes | |
10151 | else | |
10152 | echo "$as_me: failed program was:" >&5 | |
10153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10154 | ||
10155 | ac_header_preproc=no | |
10156 | fi | |
10157 | rm -f conftest.err conftest.$ac_ext | |
10158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10159 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10160 | ||
10161 | # So? What about this header? | |
8a2fc586 AK |
10162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10163 | yes:no: ) | |
ad6254c5 AK |
10164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10168 | ac_header_preproc=yes | |
ad6254c5 | 10169 | ;; |
8a2fc586 | 10170 | no:yes:* ) |
ad6254c5 AK |
10171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10182 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10183 | ( |
10184 | cat <<\_ASBOX | |
8a2fc586 AK |
10185 | ## ------------------------------------------ ## |
10186 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10187 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10188 | _ASBOX |
10189 | ) | | |
10190 | sed "s/^/$as_me: WARNING: /" >&2 | |
10191 | ;; | |
10192 | esac | |
10193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10197 | else | |
8a2fc586 | 10198 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10199 | fi |
ad6254c5 AK |
10200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10202 | ||
10203 | fi | |
10204 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10205 | cat >>confdefs.h <<_ACEOF | |
10206 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10207 | _ACEOF | |
10208 | ||
80992638 | 10209 | else |
ad6254c5 AK |
10210 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10211 | echo "$as_me: error: bailing out" >&2;} | |
10212 | { (exit 1); exit 1; }; } | |
b896caa1 | 10213 | fi |
ad6254c5 | 10214 | |
b896caa1 AK |
10215 | done |
10216 | ||
10217 | ||
ad6254c5 AK |
10218 | for ac_func in socket |
10219 | do | |
10220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10223 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 10225 | else |
ad6254c5 | 10226 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10227 | /* confdefs.h. */ |
10228 | _ACEOF | |
10229 | cat confdefs.h >>conftest.$ac_ext | |
10230 | cat >>conftest.$ac_ext <<_ACEOF | |
10231 | /* end confdefs.h. */ | |
8a2fc586 AK |
10232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10234 | #define $ac_func innocuous_$ac_func | |
10235 | ||
ad6254c5 AK |
10236 | /* System header to define __stub macros and hopefully few prototypes, |
10237 | which can conflict with char $ac_func (); below. | |
10238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10239 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10240 | |
ad6254c5 AK |
10241 | #ifdef __STDC__ |
10242 | # include <limits.h> | |
10243 | #else | |
10244 | # include <assert.h> | |
10245 | #endif | |
8a2fc586 AK |
10246 | |
10247 | #undef $ac_func | |
10248 | ||
795ca3e5 | 10249 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
10250 | #ifdef __cplusplus |
10251 | extern "C" | |
10252 | { | |
10253 | #endif | |
795ca3e5 | 10254 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
10255 | builtin and then its argument prototype would still apply. */ |
10256 | char $ac_func (); | |
10257 | /* The GNU C library defines this for functions which it implements | |
10258 | to always fail with ENOSYS. Some functions are actually named | |
10259 | something starting with __ and the normal name is an alias. */ | |
10260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10261 | choke me | |
10262 | #else | |
10263 | char (*f) () = $ac_func; | |
10264 | #endif | |
10265 | #ifdef __cplusplus | |
10266 | } | |
10267 | #endif | |
10268 | ||
10269 | int | |
10270 | main () | |
10271 | { | |
10272 | return f != $ac_func; | |
10273 | ; | |
10274 | return 0; | |
10275 | } | |
10276 | _ACEOF | |
10277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a2fc586 | 10279 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10280 | ac_status=$? |
8a2fc586 AK |
10281 | grep -v '^ *+' conftest.er1 >conftest.err |
10282 | rm -f conftest.er1 | |
10283 | cat conftest.err >&5 | |
ad6254c5 AK |
10284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10285 | (exit $ac_status); } && | |
8a2fc586 AK |
10286 | { ac_try='test -z "$ac_c_werror_flag" |
10287 | || test ! -s conftest.err' | |
10288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10289 | (eval $ac_try) 2>&5 | |
10290 | ac_status=$? | |
10291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10292 | (exit $ac_status); }; } && | |
10293 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10295 | (eval $ac_try) 2>&5 | |
10296 | ac_status=$? | |
10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10298 | (exit $ac_status); }; }; then | |
10299 | eval "$as_ac_var=yes" | |
10300 | else | |
10301 | echo "$as_me: failed program was:" >&5 | |
10302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10303 | ||
10304 | eval "$as_ac_var=no" | |
10305 | fi | |
8a2fc586 AK |
10306 | rm -f conftest.err conftest.$ac_objext \ |
10307 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10308 | fi |
10309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10311 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10312 | cat >>confdefs.h <<_ACEOF | |
10313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10314 | _ACEOF | |
10315 | ||
10316 | else | |
10317 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10318 | echo "$as_me: error: bailing out" >&2;} | |
10319 | { (exit 1); exit 1; }; } | |
10320 | fi | |
10321 | done | |
10322 | ||
10323 | fi | |
10324 | ||
10325 | if test x$HAVE_LIBDL = xyes; then | |
10326 | ||
10327 | for ac_header in dlfcn.h | |
10328 | do | |
10329 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10331 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10335 | fi | |
10336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10337 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10338 | else | |
10339 | # Is the header compilable? | |
10340 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10341 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10342 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10343 | /* confdefs.h. */ |
10344 | _ACEOF | |
10345 | cat confdefs.h >>conftest.$ac_ext | |
10346 | cat >>conftest.$ac_ext <<_ACEOF | |
10347 | /* end confdefs.h. */ | |
10348 | $ac_includes_default | |
10349 | #include <$ac_header> | |
10350 | _ACEOF | |
10351 | rm -f conftest.$ac_objext | |
10352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10353 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10354 | ac_status=$? |
8a2fc586 AK |
10355 | grep -v '^ *+' conftest.er1 >conftest.err |
10356 | rm -f conftest.er1 | |
10357 | cat conftest.err >&5 | |
ad6254c5 AK |
10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10359 | (exit $ac_status); } && | |
8a2fc586 AK |
10360 | { ac_try='test -z "$ac_c_werror_flag" |
10361 | || test ! -s conftest.err' | |
10362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10363 | (eval $ac_try) 2>&5 | |
10364 | ac_status=$? | |
10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10366 | (exit $ac_status); }; } && | |
10367 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10369 | (eval $ac_try) 2>&5 | |
10370 | ac_status=$? | |
10371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10372 | (exit $ac_status); }; }; then | |
10373 | ac_header_compiler=yes | |
10374 | else | |
10375 | echo "$as_me: failed program was:" >&5 | |
10376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10377 | ||
10378 | ac_header_compiler=no | |
10379 | fi | |
8a2fc586 | 10380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10381 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10382 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10383 | ||
10384 | # Is the header present? | |
10385 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10386 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10387 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10388 | /* confdefs.h. */ |
10389 | _ACEOF | |
10390 | cat confdefs.h >>conftest.$ac_ext | |
10391 | cat >>conftest.$ac_ext <<_ACEOF | |
10392 | /* end confdefs.h. */ | |
10393 | #include <$ac_header> | |
10394 | _ACEOF | |
10395 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10397 | ac_status=$? | |
10398 | grep -v '^ *+' conftest.er1 >conftest.err | |
10399 | rm -f conftest.er1 | |
10400 | cat conftest.err >&5 | |
10401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10402 | (exit $ac_status); } >/dev/null; then | |
10403 | if test -s conftest.err; then | |
10404 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10406 | else |
10407 | ac_cpp_err= | |
10408 | fi | |
10409 | else | |
10410 | ac_cpp_err=yes | |
10411 | fi | |
10412 | if test -z "$ac_cpp_err"; then | |
10413 | ac_header_preproc=yes | |
10414 | else | |
10415 | echo "$as_me: failed program was:" >&5 | |
10416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10417 | ||
10418 | ac_header_preproc=no | |
10419 | fi | |
10420 | rm -f conftest.err conftest.$ac_ext | |
10421 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10422 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10423 | ||
10424 | # So? What about this header? | |
8a2fc586 AK |
10425 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10426 | yes:no: ) | |
ad6254c5 AK |
10427 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10428 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10430 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10431 | ac_header_preproc=yes | |
ad6254c5 | 10432 | ;; |
8a2fc586 | 10433 | no:yes:* ) |
ad6254c5 AK |
10434 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10435 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10436 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10437 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10438 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10439 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10440 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10441 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10442 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10443 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10444 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10445 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10446 | ( |
10447 | cat <<\_ASBOX | |
8a2fc586 AK |
10448 | ## ------------------------------------------ ## |
10449 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10450 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10451 | _ASBOX |
10452 | ) | | |
10453 | sed "s/^/$as_me: WARNING: /" >&2 | |
10454 | ;; | |
10455 | esac | |
10456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10460 | else | |
8a2fc586 | 10461 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10462 | fi |
ad6254c5 AK |
10463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 10465 | |
8106cdd5 | 10466 | fi |
ad6254c5 AK |
10467 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10468 | cat >>confdefs.h <<_ACEOF | |
10469 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10470 | _ACEOF | |
795ca3e5 AK |
10471 | |
10472 | else | |
ad6254c5 AK |
10473 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10474 | echo "$as_me: error: bailing out" >&2;} | |
10475 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
10476 | fi |
10477 | ||
ad6254c5 | 10478 | done |
80992638 | 10479 | |
ad6254c5 | 10480 | fi |
80992638 | 10481 | |
ad6254c5 | 10482 | if test x$INTL = xyes; then |
83912faa | 10483 | |
ad6254c5 AK |
10484 | for ac_header in libintl.h |
10485 | do | |
10486 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10488 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10492 | fi | |
10493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10494 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10495 | else |
ad6254c5 AK |
10496 | # Is the header compilable? |
10497 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10498 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10499 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10500 | /* confdefs.h. */ |
10501 | _ACEOF | |
10502 | cat confdefs.h >>conftest.$ac_ext | |
10503 | cat >>conftest.$ac_ext <<_ACEOF | |
10504 | /* end confdefs.h. */ | |
10505 | $ac_includes_default | |
10506 | #include <$ac_header> | |
10507 | _ACEOF | |
10508 | rm -f conftest.$ac_objext | |
10509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10510 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10511 | ac_status=$? |
8a2fc586 AK |
10512 | grep -v '^ *+' conftest.er1 >conftest.err |
10513 | rm -f conftest.er1 | |
10514 | cat conftest.err >&5 | |
ad6254c5 AK |
10515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10516 | (exit $ac_status); } && | |
8a2fc586 AK |
10517 | { ac_try='test -z "$ac_c_werror_flag" |
10518 | || test ! -s conftest.err' | |
10519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10520 | (eval $ac_try) 2>&5 | |
10521 | ac_status=$? | |
10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10523 | (exit $ac_status); }; } && | |
10524 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10526 | (eval $ac_try) 2>&5 | |
10527 | ac_status=$? | |
10528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10529 | (exit $ac_status); }; }; then | |
10530 | ac_header_compiler=yes | |
10531 | else | |
10532 | echo "$as_me: failed program was:" >&5 | |
10533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10534 | ||
10535 | ac_header_compiler=no | |
10536 | fi | |
8a2fc586 | 10537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10538 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10539 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10540 | ||
10541 | # Is the header present? | |
10542 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10543 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10544 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10545 | /* confdefs.h. */ |
10546 | _ACEOF | |
10547 | cat confdefs.h >>conftest.$ac_ext | |
10548 | cat >>conftest.$ac_ext <<_ACEOF | |
10549 | /* end confdefs.h. */ | |
10550 | #include <$ac_header> | |
10551 | _ACEOF | |
10552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10554 | ac_status=$? | |
10555 | grep -v '^ *+' conftest.er1 >conftest.err | |
10556 | rm -f conftest.er1 | |
10557 | cat conftest.err >&5 | |
10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10559 | (exit $ac_status); } >/dev/null; then | |
10560 | if test -s conftest.err; then | |
10561 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10562 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10563 | else |
10564 | ac_cpp_err= | |
10565 | fi | |
10566 | else | |
10567 | ac_cpp_err=yes | |
795ca3e5 | 10568 | fi |
ad6254c5 AK |
10569 | if test -z "$ac_cpp_err"; then |
10570 | ac_header_preproc=yes | |
10571 | else | |
10572 | echo "$as_me: failed program was:" >&5 | |
10573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10574 | ||
10575 | ac_header_preproc=no | |
10576 | fi | |
10577 | rm -f conftest.err conftest.$ac_ext | |
10578 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10579 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10580 | ||
10581 | # So? What about this header? | |
8a2fc586 AK |
10582 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10583 | yes:no: ) | |
ad6254c5 AK |
10584 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10585 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10587 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10588 | ac_header_preproc=yes | |
ad6254c5 | 10589 | ;; |
8a2fc586 | 10590 | no:yes:* ) |
ad6254c5 AK |
10591 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10592 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10593 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10594 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10595 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10596 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10597 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10598 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10599 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10600 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10601 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10602 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10603 | ( |
10604 | cat <<\_ASBOX | |
8a2fc586 AK |
10605 | ## ------------------------------------------ ## |
10606 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10607 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10608 | _ASBOX |
10609 | ) | | |
10610 | sed "s/^/$as_me: WARNING: /" >&2 | |
10611 | ;; | |
10612 | esac | |
10613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 10617 | else |
8a2fc586 | 10618 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10619 | fi |
ad6254c5 AK |
10620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10621 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10622 | |
69792976 | 10623 | fi |
ad6254c5 AK |
10624 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10625 | cat >>confdefs.h <<_ACEOF | |
10626 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10627 | _ACEOF | |
69792976 | 10628 | |
69792976 | 10629 | else |
ad6254c5 AK |
10630 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10631 | echo "$as_me: error: bailing out" >&2;} | |
10632 | { (exit 1); exit 1; }; } | |
80992638 AK |
10633 | fi |
10634 | ||
ad6254c5 | 10635 | done |
69792976 | 10636 | |
ad6254c5 AK |
10637 | fi |
10638 | ||
10639 | if test x$DEVMAPPER = xyes; then | |
10640 | ||
10641 | for ac_header in libdevmapper.h | |
10642 | do | |
10643 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10649 | fi | |
10650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10651 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10652 | else |
ad6254c5 AK |
10653 | # Is the header compilable? |
10654 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10656 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10657 | /* confdefs.h. */ |
10658 | _ACEOF | |
10659 | cat confdefs.h >>conftest.$ac_ext | |
10660 | cat >>conftest.$ac_ext <<_ACEOF | |
10661 | /* end confdefs.h. */ | |
10662 | $ac_includes_default | |
10663 | #include <$ac_header> | |
10664 | _ACEOF | |
10665 | rm -f conftest.$ac_objext | |
10666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10667 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10668 | ac_status=$? |
8a2fc586 AK |
10669 | grep -v '^ *+' conftest.er1 >conftest.err |
10670 | rm -f conftest.er1 | |
10671 | cat conftest.err >&5 | |
ad6254c5 AK |
10672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10673 | (exit $ac_status); } && | |
8a2fc586 AK |
10674 | { ac_try='test -z "$ac_c_werror_flag" |
10675 | || test ! -s conftest.err' | |
10676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10677 | (eval $ac_try) 2>&5 | |
10678 | ac_status=$? | |
10679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10680 | (exit $ac_status); }; } && | |
10681 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10683 | (eval $ac_try) 2>&5 | |
10684 | ac_status=$? | |
10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10686 | (exit $ac_status); }; }; then | |
10687 | ac_header_compiler=yes | |
10688 | else | |
10689 | echo "$as_me: failed program was:" >&5 | |
10690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10691 | ||
10692 | ac_header_compiler=no | |
10693 | fi | |
8a2fc586 | 10694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10696 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10697 | ||
10698 | # Is the header present? | |
10699 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10700 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10701 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10702 | /* confdefs.h. */ |
10703 | _ACEOF | |
10704 | cat confdefs.h >>conftest.$ac_ext | |
10705 | cat >>conftest.$ac_ext <<_ACEOF | |
10706 | /* end confdefs.h. */ | |
10707 | #include <$ac_header> | |
10708 | _ACEOF | |
10709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10711 | ac_status=$? | |
10712 | grep -v '^ *+' conftest.er1 >conftest.err | |
10713 | rm -f conftest.er1 | |
10714 | cat conftest.err >&5 | |
10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10716 | (exit $ac_status); } >/dev/null; then | |
10717 | if test -s conftest.err; then | |
10718 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10719 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10720 | else |
10721 | ac_cpp_err= | |
10722 | fi | |
10723 | else | |
10724 | ac_cpp_err=yes | |
69792976 | 10725 | fi |
ad6254c5 AK |
10726 | if test -z "$ac_cpp_err"; then |
10727 | ac_header_preproc=yes | |
10728 | else | |
10729 | echo "$as_me: failed program was:" >&5 | |
10730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10731 | ||
10732 | ac_header_preproc=no | |
10733 | fi | |
10734 | rm -f conftest.err conftest.$ac_ext | |
10735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10736 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10737 | ||
10738 | # So? What about this header? | |
8a2fc586 AK |
10739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10740 | yes:no: ) | |
ad6254c5 AK |
10741 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10742 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10744 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10745 | ac_header_preproc=yes | |
ad6254c5 | 10746 | ;; |
8a2fc586 | 10747 | no:yes:* ) |
ad6254c5 AK |
10748 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10749 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10750 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10751 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10752 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10753 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10754 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10755 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10757 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10758 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10759 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10760 | ( |
10761 | cat <<\_ASBOX | |
8a2fc586 AK |
10762 | ## ------------------------------------------ ## |
10763 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10764 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10765 | _ASBOX |
10766 | ) | | |
10767 | sed "s/^/$as_me: WARNING: /" >&2 | |
10768 | ;; | |
10769 | esac | |
10770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 10774 | else |
8a2fc586 | 10775 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 10776 | fi |
ad6254c5 AK |
10777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10779 | |
ad6254c5 AK |
10780 | fi |
10781 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10782 | cat >>confdefs.h <<_ACEOF | |
10783 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10784 | _ACEOF | |
69792976 | 10785 | |
69792976 | 10786 | else |
ad6254c5 AK |
10787 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10788 | echo "$as_me: error: bailing out" >&2;} | |
10789 | { (exit 1); exit 1; }; } | |
83912faa AK |
10790 | fi |
10791 | ||
ad6254c5 AK |
10792 | done |
10793 | ||
80992638 | 10794 | fi |
4a7f3eb2 | 10795 | |
ad6254c5 AK |
10796 | if test x$HAVE_SELINUX = xyes; then |
10797 | ||
10798 | for ac_header in selinux/selinux.h | |
10799 | do | |
10800 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10806 | fi | |
10807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10808 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10809 | else |
ad6254c5 AK |
10810 | # Is the header compilable? |
10811 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10812 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10813 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10814 | /* confdefs.h. */ |
10815 | _ACEOF | |
10816 | cat confdefs.h >>conftest.$ac_ext | |
10817 | cat >>conftest.$ac_ext <<_ACEOF | |
10818 | /* end confdefs.h. */ | |
10819 | $ac_includes_default | |
10820 | #include <$ac_header> | |
10821 | _ACEOF | |
10822 | rm -f conftest.$ac_objext | |
10823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a2fc586 | 10824 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10825 | ac_status=$? |
8a2fc586 AK |
10826 | grep -v '^ *+' conftest.er1 >conftest.err |
10827 | rm -f conftest.er1 | |
10828 | cat conftest.err >&5 | |
ad6254c5 AK |
10829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10830 | (exit $ac_status); } && | |
8a2fc586 AK |
10831 | { ac_try='test -z "$ac_c_werror_flag" |
10832 | || test ! -s conftest.err' | |
10833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10834 | (eval $ac_try) 2>&5 | |
10835 | ac_status=$? | |
10836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10837 | (exit $ac_status); }; } && | |
10838 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10840 | (eval $ac_try) 2>&5 | |
10841 | ac_status=$? | |
10842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10843 | (exit $ac_status); }; }; then | |
10844 | ac_header_compiler=yes | |
10845 | else | |
10846 | echo "$as_me: failed program was:" >&5 | |
10847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10848 | ||
10849 | ac_header_compiler=no | |
10850 | fi | |
8a2fc586 | 10851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10852 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10853 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10854 | ||
10855 | # Is the header present? | |
10856 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10857 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10858 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10859 | /* confdefs.h. */ |
10860 | _ACEOF | |
10861 | cat confdefs.h >>conftest.$ac_ext | |
10862 | cat >>conftest.$ac_ext <<_ACEOF | |
10863 | /* end confdefs.h. */ | |
10864 | #include <$ac_header> | |
10865 | _ACEOF | |
10866 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10867 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10868 | ac_status=$? | |
10869 | grep -v '^ *+' conftest.er1 >conftest.err | |
10870 | rm -f conftest.er1 | |
10871 | cat conftest.err >&5 | |
10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10873 | (exit $ac_status); } >/dev/null; then | |
10874 | if test -s conftest.err; then | |
10875 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8a2fc586 | 10876 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10877 | else |
10878 | ac_cpp_err= | |
10879 | fi | |
10880 | else | |
10881 | ac_cpp_err=yes | |
10882 | fi | |
10883 | if test -z "$ac_cpp_err"; then | |
10884 | ac_header_preproc=yes | |
10885 | else | |
10886 | echo "$as_me: failed program was:" >&5 | |
10887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10888 | ||
10889 | ac_header_preproc=no | |
10890 | fi | |
10891 | rm -f conftest.err conftest.$ac_ext | |
10892 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10893 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10894 | ||
10895 | # So? What about this header? | |
8a2fc586 AK |
10896 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10897 | yes:no: ) | |
ad6254c5 AK |
10898 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10899 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a2fc586 AK |
10900 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10901 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10902 | ac_header_preproc=yes | |
ad6254c5 | 10903 | ;; |
8a2fc586 | 10904 | no:yes:* ) |
ad6254c5 AK |
10905 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10906 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a2fc586 AK |
10907 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10908 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10909 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10910 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10911 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10912 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8a2fc586 AK |
10915 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10916 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10917 | ( |
10918 | cat <<\_ASBOX | |
8a2fc586 AK |
10919 | ## ------------------------------------------ ## |
10920 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10921 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10922 | _ASBOX |
10923 | ) | | |
10924 | sed "s/^/$as_me: WARNING: /" >&2 | |
10925 | ;; | |
10926 | esac | |
10927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10931 | else | |
8a2fc586 | 10932 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 10933 | fi |
ad6254c5 AK |
10934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10936 | |
ad6254c5 AK |
10937 | fi |
10938 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10939 | cat >>confdefs.h <<_ACEOF | |
10940 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10941 | _ACEOF | |
0a62c911 | 10942 | |
0a62c911 | 10943 | else |
ad6254c5 AK |
10944 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10945 | echo "$as_me: error: bailing out" >&2;} | |
10946 | { (exit 1); exit 1; }; } | |
80992638 AK |
10947 | fi |
10948 | ||
ad6254c5 | 10949 | done |
0a62c911 | 10950 | |
ad6254c5 | 10951 | fi |
0a62c911 | 10952 | |
a653923f AK |
10953 | ################################################################################ |
10954 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10955 | set dummy modprobe; ac_word=$2 | |
10956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10958 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then | |
10959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10960 | else | |
10961 | case $MODPROBE_CMD in | |
10962 | [\\/]* | ?:[\\/]*) | |
10963 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10964 | ;; | |
10965 | *) | |
10966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10967 | for as_dir in $PATH | |
10968 | do | |
10969 | IFS=$as_save_IFS | |
10970 | test -z "$as_dir" && as_dir=. | |
10971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10973 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
10974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10975 | break 2 | |
10976 | fi | |
10977 | done | |
10978 | done | |
10979 | ||
10980 | ;; | |
10981 | esac | |
10982 | fi | |
10983 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
10984 | ||
10985 | if test -n "$MODPROBE_CMD"; then | |
10986 | echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 | |
10987 | echo "${ECHO_T}$MODPROBE_CMD" >&6 | |
10988 | else | |
10989 | echo "$as_me:$LINENO: result: no" >&5 | |
10990 | echo "${ECHO_T}no" >&6 | |
10991 | fi | |
10992 | ||
10993 | ||
10994 | if test x$MODPROBE_CMD != x; then | |
8a2fc586 | 10995 | LVM_DEFS="$LVM_DEFS -DMODPROBE_CMD=\\\"$MODPROBE_CMD\\\"" |
a653923f AK |
10996 | fi |
10997 | ||
80992638 | 10998 | ################################################################################ |
fae0c576 AK |
10999 | if test "-f VERSION"; then |
11000 | LVM_VERSION="\"`cat VERSION`\"" | |
11001 | else | |
11002 | LVM_VERSION="Unknown" | |
11003 | fi | |
11004 | ||
80992638 | 11005 | ################################################################################ |
fae0c576 | 11006 | |
83912faa | 11007 | |
795ca3e5 AK |
11008 | |
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
5a52dca9 | 11014 | |
8ef2b021 | 11015 | |
199e490e | 11016 | |
69792976 AK |
11017 | |
11018 | ||
11019 | ||
11020 | ||
8106cdd5 AK |
11021 | |
11022 | ||
11023 | ||
11024 | ||
11025 | ||
d68a82ec | 11026 | |
036f273a | 11027 | |
7d1552c9 | 11028 | |
8106cdd5 | 11029 | |
0a62c911 | 11030 | |
8106cdd5 | 11031 | |
4a7f3eb2 | 11032 | |
4922197a AK |
11033 | |
11034 | ||
d8ac0fbc | 11035 | |
1a9ea74d | 11036 | |
8a2fc586 AK |
11037 | |
11038 | ||
11039 | ||
8ce0cbda | 11040 | |
06f62ad1 | 11041 | |
d3c8211f AK |
11042 | |
11043 | ||
80992638 | 11044 | ################################################################################ |
06f62ad1 | 11045 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile" |
ad6254c5 | 11046 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11047 | # This file is a shell script that caches the results of configure |
11048 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11049 | # scripts and configure runs, see configure's option --config-cache. |
11050 | # It is not useful on other systems. If it contains results you don't | |
11051 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11052 | # |
ad6254c5 AK |
11053 | # config.status only pays attention to the cache file if you give it |
11054 | # the --recheck option to rerun configure. | |
795ca3e5 | 11055 | # |
ad6254c5 AK |
11056 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11057 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11058 | # following values. | |
11059 | ||
11060 | _ACEOF | |
11061 | ||
795ca3e5 AK |
11062 | # The following way of writing the cache mishandles newlines in values, |
11063 | # but we know of no workaround that is simple, portable, and efficient. | |
11064 | # So, don't put newlines in cache variables' values. | |
11065 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11066 | # and sets the high bit in the cache file unless we assign to the vars. | |
ad6254c5 AK |
11067 | { |
11068 | (set) 2>&1 | | |
11069 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11070 | *ac_space=\ *) | |
11071 | # `set' does not quote correctly, so add quotes (double-quote | |
11072 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11073 | sed -n \ | |
8a2fc586 AK |
11074 | "s/'/'\\\\''/g; |
11075 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ad6254c5 AK |
11076 | ;; |
11077 | *) | |
11078 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11079 | sed -n \ | |
8a2fc586 | 11080 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
11081 | ;; |
11082 | esac; | |
11083 | } | | |
11084 | sed ' | |
11085 | t clear | |
11086 | : clear | |
11087 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11088 | t end | |
11089 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11090 | : end' >>confcache | |
11091 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 11092 | if test -w $cache_file; then |
ad6254c5 AK |
11093 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
11094 | cat confcache >$cache_file | |
795ca3e5 AK |
11095 | else |
11096 | echo "not updating unwritable cache $cache_file" | |
11097 | fi | |
11098 | fi | |
11099 | rm -f confcache | |
11100 | ||
795ca3e5 AK |
11101 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11102 | # Let make expand exec_prefix. | |
11103 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11104 | ||
ad6254c5 AK |
11105 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
11106 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11107 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11108 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 11109 | if test "x$srcdir" = x.; then |
8a2fc586 | 11110 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ad6254c5 AK |
11111 | s/:*\$(srcdir):*/:/; |
11112 | s/:*\${srcdir}:*/:/; | |
11113 | s/:*@srcdir@:*/:/; | |
8a2fc586 | 11114 | s/^\([^=]*=[ ]*\):*/\1/; |
ad6254c5 | 11115 | s/:*$//; |
8a2fc586 | 11116 | s/^[^=]*=[ ]*$//; |
ad6254c5 | 11117 | }' |
795ca3e5 AK |
11118 | fi |
11119 | ||
795ca3e5 AK |
11120 | # Transform confdefs.h into DEFS. |
11121 | # Protect against shell expansion while executing Makefile rules. | |
11122 | # Protect against Makefile macro expansion. | |
ad6254c5 AK |
11123 | # |
11124 | # If the first sed substitution is executed (which looks for macros that | |
11125 | # take arguments), then we branch to the quote section. Otherwise, | |
11126 | # look for a macro that doesn't take arguments. | |
11127 | cat >confdef2opt.sed <<\_ACEOF | |
11128 | t clear | |
11129 | : clear | |
8a2fc586 | 11130 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 | 11131 | t quote |
8a2fc586 | 11132 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 AK |
11133 | t quote |
11134 | d | |
11135 | : quote | |
8a2fc586 | 11136 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
ad6254c5 AK |
11137 | s,\[,\\&,g |
11138 | s,\],\\&,g | |
11139 | s,\$,$$,g | |
11140 | p | |
11141 | _ACEOF | |
11142 | # We use echo to avoid assuming a particular line-breaking character. | |
11143 | # The extra dot is to prevent the shell from consuming trailing | |
11144 | # line-breaks from the sub-command output. A line-break within | |
11145 | # single-quotes doesn't work because, if this script is created in a | |
11146 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
11147 | # would break. | |
11148 | ac_LF_and_DOT=`echo; echo .` | |
11149 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
11150 | rm -f confdef2opt.sed | |
11151 | ||
11152 | ||
11153 | ac_libobjs= | |
11154 | ac_ltlibobjs= | |
11155 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11156 | # 1. Remove the extension, and $U if already installed. | |
11157 | ac_i=`echo "$ac_i" | | |
8a2fc586 | 11158 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
ad6254c5 AK |
11159 | # 2. Add them. |
11160 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11161 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
11162 | done | |
11163 | LIBOBJS=$ac_libobjs | |
80992638 | 11164 | |
ad6254c5 AK |
11165 | LTLIBOBJS=$ac_ltlibobjs |
11166 | ||
11167 | ||
11168 | ||
11169 | : ${CONFIG_STATUS=./config.status} | |
11170 | ac_clean_files_save=$ac_clean_files | |
11171 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11172 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11173 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11174 | cat >$CONFIG_STATUS <<_ACEOF | |
11175 | #! $SHELL | |
11176 | # Generated by $as_me. | |
795ca3e5 | 11177 | # Run this file to recreate the current configuration. |
795ca3e5 | 11178 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11179 | # configure, is in config.log if it exists. |
11180 | ||
11181 | debug=false | |
11182 | ac_cs_recheck=false | |
11183 | ac_cs_silent=false | |
11184 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11185 | _ACEOF | |
11186 | ||
11187 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11188 | ## --------------------- ## | |
11189 | ## M4sh Initialization. ## | |
11190 | ## --------------------- ## | |
11191 | ||
11192 | # Be Bourne compatible | |
11193 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11194 | emulate sh | |
11195 | NULLCMD=: | |
11196 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11197 | # is contrary to our usage. Disable this feature. | |
11198 | alias -g '${1+"$@"}'='"$@"' | |
11199 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11200 | set -o posix | |
11201 | fi | |
8a2fc586 | 11202 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
11203 | |
11204 | # Support unset when possible. | |
8a2fc586 | 11205 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11206 | as_unset=unset |
11207 | else | |
11208 | as_unset=false | |
11209 | fi | |
8106cdd5 | 11210 | |
ad6254c5 AK |
11211 | |
11212 | # Work around bugs in pre-3.0 UWIN ksh. | |
11213 | $as_unset ENV MAIL MAILPATH | |
11214 | PS1='$ ' | |
11215 | PS2='> ' | |
11216 | PS4='+ ' | |
11217 | ||
11218 | # NLS nuisances. | |
11219 | for as_var in \ | |
11220 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11221 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11222 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11223 | do |
8a2fc586 | 11224 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11225 | eval $as_var=C; export $as_var |
11226 | else | |
11227 | $as_unset $as_var | |
11228 | fi | |
8106cdd5 AK |
11229 | done |
11230 | ||
ad6254c5 AK |
11231 | # Required to use basename. |
11232 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11233 | as_expr=expr | |
11234 | else | |
11235 | as_expr=false | |
11236 | fi | |
8106cdd5 | 11237 | |
ad6254c5 AK |
11238 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
11239 | as_basename=basename | |
11240 | else | |
11241 | as_basename=false | |
11242 | fi | |
11243 | ||
11244 | ||
11245 | # Name of the executable. | |
11246 | as_me=`$as_basename "$0" || | |
11247 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11248 | X"$0" : 'X\(//\)$' \| \ | |
11249 | X"$0" : 'X\(/\)$' \| \ | |
11250 | . : '\(.\)' 2>/dev/null || | |
11251 | echo X/"$0" | | |
11252 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11253 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11254 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11255 | s/.*/./; q'` | |
11256 | ||
11257 | ||
11258 | # PATH needs CR, and LINENO needs CR and PATH. | |
11259 | # Avoid depending upon Character Ranges. | |
11260 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11261 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11262 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11263 | as_cr_digits='0123456789' | |
11264 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11265 | ||
11266 | # The user is always right. | |
11267 | if test "${PATH_SEPARATOR+set}" != set; then | |
11268 | echo "#! /bin/sh" >conf$$.sh | |
11269 | echo "exit 0" >>conf$$.sh | |
11270 | chmod +x conf$$.sh | |
11271 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11272 | PATH_SEPARATOR=';' | |
80992638 | 11273 | else |
ad6254c5 | 11274 | PATH_SEPARATOR=: |
80992638 | 11275 | fi |
ad6254c5 AK |
11276 | rm -f conf$$.sh |
11277 | fi | |
11278 | ||
11279 | ||
11280 | as_lineno_1=$LINENO | |
11281 | as_lineno_2=$LINENO | |
11282 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11283 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11284 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11285 | # Find who we are. Look in the path if we contain no path at all | |
11286 | # relative or not. | |
11287 | case $0 in | |
11288 | *[\\/]* ) as_myself=$0 ;; | |
11289 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11290 | for as_dir in $PATH | |
11291 | do | |
11292 | IFS=$as_save_IFS | |
11293 | test -z "$as_dir" && as_dir=. | |
11294 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11295 | done | |
11296 | ||
11297 | ;; | |
11298 | esac | |
11299 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11300 | # in which case we are not to be found in the path. | |
11301 | if test "x$as_myself" = x; then | |
11302 | as_myself=$0 | |
11303 | fi | |
11304 | if test ! -f "$as_myself"; then | |
11305 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11306 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11307 | { (exit 1); exit 1; }; } | |
8106cdd5 | 11308 | fi |
ad6254c5 AK |
11309 | case $CONFIG_SHELL in |
11310 | '') | |
11311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11312 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11313 | do | |
11314 | IFS=$as_save_IFS | |
11315 | test -z "$as_dir" && as_dir=. | |
11316 | for as_base in sh bash ksh sh5; do | |
11317 | case $as_dir in | |
11318 | /*) | |
11319 | if ("$as_dir/$as_base" -c ' | |
11320 | as_lineno_1=$LINENO | |
11321 | as_lineno_2=$LINENO | |
11322 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11323 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11324 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11325 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11326 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11327 | CONFIG_SHELL=$as_dir/$as_base | |
11328 | export CONFIG_SHELL | |
11329 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11330 | fi;; | |
11331 | esac | |
11332 | done | |
80992638 | 11333 | done |
ad6254c5 | 11334 | ;; |
795ca3e5 AK |
11335 | esac |
11336 | ||
ad6254c5 AK |
11337 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11338 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11339 | # line-number line before each line; the second 'sed' does the real | |
11340 | # work. The second script uses 'N' to pair each line-number line | |
11341 | # with the numbered line, and appends trailing '-' during | |
11342 | # substitution so that $LINENO is not a special case at line end. | |
11343 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11344 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11345 | sed '=' <$as_myself | | |
11346 | sed ' | |
11347 | N | |
11348 | s,$,-, | |
11349 | : loop | |
11350 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11351 | t loop | |
11352 | s,-$,, | |
11353 | s,^['$as_cr_digits']*\n,, | |
11354 | ' >$as_me.lineno && | |
11355 | chmod +x $as_me.lineno || | |
11356 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11357 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11358 | { (exit 1); exit 1; }; } | |
11359 | ||
11360 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11361 | # (the dirname of $[0] is not the place where we might find the | |
11362 | # original and so on. Autoconf is especially sensible to this). | |
11363 | . ./$as_me.lineno | |
11364 | # Exit status is that of the last command. | |
11365 | exit | |
11366 | } | |
11367 | ||
11368 | ||
11369 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11370 | *c*,-n*) ECHO_N= ECHO_C=' | |
11371 | ' ECHO_T=' ' ;; | |
11372 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11373 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11374 | esac | |
11375 | ||
11376 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11377 | as_expr=expr | |
11378 | else | |
11379 | as_expr=false | |
11380 | fi | |
80992638 | 11381 | |
ad6254c5 AK |
11382 | rm -f conf$$ conf$$.exe conf$$.file |
11383 | echo >conf$$.file | |
11384 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11385 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11386 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11387 | if test -f conf$$.exe; then | |
11388 | # Don't use ln at all; we don't have any links | |
11389 | as_ln_s='cp -p' | |
8106cdd5 | 11390 | else |
ad6254c5 | 11391 | as_ln_s='ln -s' |
80992638 | 11392 | fi |
ad6254c5 AK |
11393 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11394 | as_ln_s=ln | |
11395 | else | |
11396 | as_ln_s='cp -p' | |
11397 | fi | |
11398 | rm -f conf$$ conf$$.exe conf$$.file | |
8106cdd5 | 11399 | |
ad6254c5 AK |
11400 | if mkdir -p . 2>/dev/null; then |
11401 | as_mkdir_p=: | |
11402 | else | |
8a2fc586 | 11403 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11404 | as_mkdir_p=false |
11405 | fi | |
11406 | ||
11407 | as_executable_p="test -f" | |
11408 | ||
11409 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11410 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11411 | |
11412 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11413 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11414 | |
11415 | ||
11416 | # IFS | |
11417 | # We need space, tab and new line, in precisely that order. | |
11418 | as_nl=' | |
11419 | ' | |
11420 | IFS=" $as_nl" | |
11421 | ||
11422 | # CDPATH. | |
11423 | $as_unset CDPATH | |
11424 | ||
11425 | exec 6>&1 | |
11426 | ||
11427 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11428 | # report actual input values of CONFIG_FILES etc. instead of their | |
11429 | # values after options handling. Logging --version etc. is OK. | |
11430 | exec 5>>config.log | |
11431 | { | |
11432 | echo | |
11433 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11434 | ## Running $as_me. ## | |
11435 | _ASBOX | |
11436 | } >&5 | |
11437 | cat >&5 <<_CSEOF | |
11438 | ||
11439 | This file was extended by $as_me, which was | |
8a2fc586 | 11440 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
11441 | |
11442 | CONFIG_FILES = $CONFIG_FILES | |
11443 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11444 | CONFIG_LINKS = $CONFIG_LINKS | |
11445 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11446 | $ $0 $@ | |
11447 | ||
11448 | _CSEOF | |
11449 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11450 | echo >&5 | |
11451 | _ACEOF | |
11452 | ||
11453 | # Files that config.status was made for. | |
11454 | if test -n "$ac_config_files"; then | |
11455 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11456 | fi | |
11457 | ||
11458 | if test -n "$ac_config_headers"; then | |
11459 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11460 | fi | |
11461 | ||
11462 | if test -n "$ac_config_links"; then | |
11463 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11464 | fi | |
11465 | ||
11466 | if test -n "$ac_config_commands"; then | |
11467 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11468 | fi | |
11469 | ||
11470 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11471 | ||
11472 | ac_cs_usage="\ | |
11473 | \`$as_me' instantiates files from templates according to the | |
11474 | current configuration. | |
11475 | ||
11476 | Usage: $0 [OPTIONS] [FILE]... | |
11477 | ||
11478 | -h, --help print this help, then exit | |
11479 | -V, --version print version number, then exit | |
11480 | -q, --quiet do not print progress messages | |
11481 | -d, --debug don't remove temporary files | |
11482 | --recheck update $as_me by reconfiguring in the same conditions | |
11483 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 11484 | instantiate the configuration file FILE |
ad6254c5 AK |
11485 | |
11486 | Configuration files: | |
11487 | $config_files | |
11488 | ||
11489 | Report bugs to <bug-autoconf@gnu.org>." | |
11490 | _ACEOF | |
11491 | ||
11492 | cat >>$CONFIG_STATUS <<_ACEOF | |
11493 | ac_cs_version="\\ | |
11494 | config.status | |
8a2fc586 | 11495 | configured by $0, generated by GNU Autoconf 2.59, |
ad6254c5 AK |
11496 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
11497 | ||
8a2fc586 | 11498 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
11499 | This config.status script is free software; the Free Software Foundation |
11500 | gives unlimited permission to copy, distribute and modify it." | |
11501 | srcdir=$srcdir | |
11502 | INSTALL="$INSTALL" | |
11503 | _ACEOF | |
11504 | ||
11505 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11506 | # If no file are specified by the user, then we need to provide default | |
11507 | # value. By we need to know if files were specified by the user. | |
11508 | ac_need_defaults=: | |
11509 | while test $# != 0 | |
11510 | do | |
11511 | case $1 in | |
11512 | --*=*) | |
11513 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11514 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11515 | ac_shift=: | |
11516 | ;; | |
11517 | -*) | |
11518 | ac_option=$1 | |
11519 | ac_optarg=$2 | |
11520 | ac_shift=shift | |
11521 | ;; | |
11522 | *) # This is not an option, so the user has probably given explicit | |
11523 | # arguments. | |
11524 | ac_option=$1 | |
11525 | ac_need_defaults=false;; | |
11526 | esac | |
11527 | ||
11528 | case $ac_option in | |
11529 | # Handling of the options. | |
11530 | _ACEOF | |
11531 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11532 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11533 | ac_cs_recheck=: ;; | |
11534 | --version | --vers* | -V ) | |
11535 | echo "$ac_cs_version"; exit 0 ;; | |
11536 | --he | --h) | |
11537 | # Conflict between --help and --header | |
11538 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11539 | Try \`$0 --help' for more information." >&5 | |
11540 | echo "$as_me: error: ambiguous option: $1 | |
11541 | Try \`$0 --help' for more information." >&2;} | |
11542 | { (exit 1); exit 1; }; };; | |
11543 | --help | --hel | -h ) | |
11544 | echo "$ac_cs_usage"; exit 0 ;; | |
11545 | --debug | --d* | -d ) | |
11546 | debug=: ;; | |
11547 | --file | --fil | --fi | --f ) | |
11548 | $ac_shift | |
11549 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11550 | ac_need_defaults=false;; | |
11551 | --header | --heade | --head | --hea ) | |
11552 | $ac_shift | |
11553 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11554 | ac_need_defaults=false;; | |
11555 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11556 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11557 | ac_cs_silent=: ;; | |
11558 | ||
11559 | # This is an error. | |
11560 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11561 | Try \`$0 --help' for more information." >&5 | |
11562 | echo "$as_me: error: unrecognized option: $1 | |
11563 | Try \`$0 --help' for more information." >&2;} | |
11564 | { (exit 1); exit 1; }; } ;; | |
11565 | ||
11566 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11567 | ||
11568 | esac | |
11569 | shift | |
11570 | done | |
11571 | ||
11572 | ac_configure_extra_args= | |
11573 | ||
11574 | if $ac_cs_silent; then | |
11575 | exec 6>/dev/null | |
11576 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11577 | fi | |
11578 | ||
11579 | _ACEOF | |
11580 | cat >>$CONFIG_STATUS <<_ACEOF | |
11581 | if \$ac_cs_recheck; then | |
11582 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11583 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11584 | fi | |
11585 | ||
11586 | _ACEOF | |
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11593 | for ac_config_target in $ac_config_targets | |
11594 | do | |
11595 | case "$ac_config_target" in | |
11596 | # Handling of arguments. | |
11597 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11598 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11599 | "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11600 | "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
06f62ad1 AK |
11601 | "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; |
11602 | "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
ad6254c5 AK |
11603 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11604 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
11605 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11606 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
11607 | "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11608 | "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11609 | "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11610 | "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
11611 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
11612 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
11613 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
11614 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
11615 | "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
11616 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
11617 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
11618 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
11619 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
11620 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
11621 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11622 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11623 | { (exit 1); exit 1; }; };; | |
80992638 | 11624 | esac |
ad6254c5 AK |
11625 | done |
11626 | ||
11627 | # If the user did not use the arguments to specify the items to instantiate, | |
11628 | # then the envvar interface is used. Set only those that are not. | |
11629 | # We use the long form for the default assignment because of an extremely | |
11630 | # bizarre bug on SunOS 4.1.3. | |
11631 | if $ac_need_defaults; then | |
11632 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11633 | fi | |
11634 | ||
11635 | # Have a temporary directory for convenience. Make it in the build tree | |
11636 | # simply because there is no reason to put it here, and in addition, | |
11637 | # creating and moving files from /tmp can sometimes cause problems. | |
11638 | # Create a temporary directory, and hook for its removal unless debugging. | |
11639 | $debug || | |
11640 | { | |
11641 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11642 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11643 | } | |
11644 | ||
11645 | # Create a (secure) tmp directory for tmp files. | |
11646 | ||
11647 | { | |
11648 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11649 | test -n "$tmp" && test -d "$tmp" | |
11650 | } || | |
11651 | { | |
11652 | tmp=./confstat$$-$RANDOM | |
11653 | (umask 077 && mkdir $tmp) | |
11654 | } || | |
11655 | { | |
11656 | echo "$me: cannot create a temporary directory in ." >&2 | |
11657 | { (exit 1); exit 1; } | |
11658 | } | |
11659 | ||
11660 | _ACEOF | |
11661 | ||
11662 | cat >>$CONFIG_STATUS <<_ACEOF | |
11663 | ||
11664 | # | |
11665 | # CONFIG_FILES section. | |
11666 | # | |
11667 | ||
11668 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11669 | # This happens for instance when ./config.status config.h | |
11670 | if test -n "\$CONFIG_FILES"; then | |
11671 | # Protect against being on the right side of a sed subst in config.status. | |
11672 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11673 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11674 | s,@SHELL@,$SHELL,;t t | |
11675 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11676 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11677 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11678 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11679 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11680 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11681 | s,@exec_prefix@,$exec_prefix,;t t | |
11682 | s,@prefix@,$prefix,;t t | |
11683 | s,@program_transform_name@,$program_transform_name,;t t | |
11684 | s,@bindir@,$bindir,;t t | |
11685 | s,@sbindir@,$sbindir,;t t | |
11686 | s,@libexecdir@,$libexecdir,;t t | |
11687 | s,@datadir@,$datadir,;t t | |
11688 | s,@sysconfdir@,$sysconfdir,;t t | |
11689 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11690 | s,@localstatedir@,$localstatedir,;t t | |
11691 | s,@libdir@,$libdir,;t t | |
11692 | s,@includedir@,$includedir,;t t | |
11693 | s,@oldincludedir@,$oldincludedir,;t t | |
11694 | s,@infodir@,$infodir,;t t | |
11695 | s,@mandir@,$mandir,;t t | |
11696 | s,@build_alias@,$build_alias,;t t | |
11697 | s,@host_alias@,$host_alias,;t t | |
11698 | s,@target_alias@,$target_alias,;t t | |
11699 | s,@DEFS@,$DEFS,;t t | |
11700 | s,@ECHO_C@,$ECHO_C,;t t | |
11701 | s,@ECHO_N@,$ECHO_N,;t t | |
11702 | s,@ECHO_T@,$ECHO_T,;t t | |
11703 | s,@LIBS@,$LIBS,;t t | |
11704 | s,@build@,$build,;t t | |
11705 | s,@build_cpu@,$build_cpu,;t t | |
11706 | s,@build_vendor@,$build_vendor,;t t | |
11707 | s,@build_os@,$build_os,;t t | |
11708 | s,@host@,$host,;t t | |
11709 | s,@host_cpu@,$host_cpu,;t t | |
11710 | s,@host_vendor@,$host_vendor,;t t | |
11711 | s,@host_os@,$host_os,;t t | |
11712 | s,@target@,$target,;t t | |
11713 | s,@target_cpu@,$target_cpu,;t t | |
11714 | s,@target_vendor@,$target_vendor,;t t | |
11715 | s,@target_os@,$target_os,;t t | |
11716 | s,@AWK@,$AWK,;t t | |
11717 | s,@CC@,$CC,;t t | |
11718 | s,@CFLAGS@,$CFLAGS,;t t | |
11719 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11720 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11721 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11722 | s,@EXEEXT@,$EXEEXT,;t t | |
11723 | s,@OBJEXT@,$OBJEXT,;t t | |
11724 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11725 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11726 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11727 | s,@LN_S@,$LN_S,;t t | |
11728 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11729 | s,@RANLIB@,$RANLIB,;t t | |
11730 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8a2fc586 AK |
11731 | s,@CFLOW_CMD@,$CFLOW_CMD,;t t |
11732 | s,@CSCOPE_CMD@,$CSCOPE_CMD,;t t | |
ad6254c5 AK |
11733 | s,@CPP@,$CPP,;t t |
11734 | s,@EGREP@,$EGREP,;t t | |
11735 | s,@ALLOCA@,$ALLOCA,;t t | |
11736 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11737 | s,@POW_LIB@,$POW_LIB,;t t | |
11738 | s,@MSGFMT@,$MSGFMT,;t t | |
a653923f | 11739 | s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t |
ad6254c5 AK |
11740 | s,@JOBS@,$JOBS,;t t |
11741 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
11742 | s,@LVM1@,$LVM1,;t t | |
11743 | s,@POOL@,$POOL,;t t | |
11744 | s,@SNAPSHOTS@,$SNAPSHOTS,;t t | |
11745 | s,@MIRRORS@,$MIRRORS,;t t | |
11746 | s,@OWNER@,$OWNER,;t t | |
11747 | s,@GROUP@,$GROUP,;t t | |
8a2fc586 | 11748 | s,@LVM_DEFS@,$LVM_DEFS,;t t |
ad6254c5 AK |
11749 | s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t |
11750 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
11751 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
11752 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
11753 | s,@LDDEPS@,$LDDEPS,;t t | |
c1c065a3 | 11754 | s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t |
ad6254c5 AK |
11755 | s,@LVM_VERSION@,$LVM_VERSION,;t t |
11756 | s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t | |
11757 | s,@DEBUG@,$DEBUG,;t t | |
11758 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
11759 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
11760 | s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t | |
11761 | s,@CMDLIB@,$CMDLIB,;t t | |
11762 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
11763 | s,@CONFDIR@,$CONFDIR,;t t | |
11764 | s,@STATICDIR@,$STATICDIR,;t t | |
11765 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t | |
11766 | s,@INTL@,$INTL,;t t | |
11767 | s,@CLVMD@,$CLVMD,;t t | |
11768 | s,@CLUSTER@,$CLUSTER,;t t | |
11769 | s,@FSADM@,$FSADM,;t t | |
06f62ad1 | 11770 | s,@DMEVENTD@,$DMEVENTD,;t t |
ad6254c5 AK |
11771 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
11772 | CEOF | |
11773 | ||
11774 | _ACEOF | |
11775 | ||
11776 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11777 | # Split the substitutions into bite-sized pieces for seds with | |
11778 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11779 | ac_max_sed_lines=48 | |
11780 | ac_sed_frag=1 # Number of current file. | |
11781 | ac_beg=1 # First line for current file. | |
11782 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11783 | ac_more_lines=: | |
11784 | ac_sed_cmds= | |
11785 | while $ac_more_lines; do | |
11786 | if test $ac_beg -gt 1; then | |
11787 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11788 | else | |
11789 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11790 | fi | |
11791 | if test ! -s $tmp/subs.frag; then | |
11792 | ac_more_lines=false | |
11793 | else | |
11794 | # The purpose of the label and of the branching condition is to | |
11795 | # speed up the sed processing (if there are no `@' at all, there | |
11796 | # is no need to browse any of the substitutions). | |
11797 | # These are the two extra sed commands mentioned above. | |
11798 | (echo ':t | |
11799 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11800 | if test -z "$ac_sed_cmds"; then | |
8a2fc586 | 11801 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 | 11802 | else |
8a2fc586 | 11803 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 AK |
11804 | fi |
11805 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11806 | ac_beg=$ac_end | |
11807 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
11808 | fi | |
11809 | done | |
11810 | if test -z "$ac_sed_cmds"; then | |
11811 | ac_sed_cmds=cat | |
11812 | fi | |
11813 | fi # test -n "$CONFIG_FILES" | |
8106cdd5 | 11814 | |
ad6254c5 AK |
11815 | _ACEOF |
11816 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11817 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
11818 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11819 | case $ac_file in | |
11820 | - | *:- | *:-:* ) # input from stdin | |
8a2fc586 AK |
11821 | cat >$tmp/stdin |
11822 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11823 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
ad6254c5 | 11824 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8a2fc586 | 11825 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
ad6254c5 | 11826 | * ) ac_file_in=$ac_file.in ;; |
80992638 | 11827 | esac |
8106cdd5 | 11828 | |
ad6254c5 AK |
11829 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
11830 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11831 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
11832 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11833 | X"$ac_file" : 'X\(//\)$' \| \ | |
11834 | X"$ac_file" : 'X\(/\)' \| \ | |
11835 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11836 | echo X"$ac_file" | |
11837 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11838 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11839 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11840 | /^X\(\/\).*/{ s//\1/; q; } | |
11841 | s/.*/./; q'` | |
11842 | { if $as_mkdir_p; then | |
11843 | mkdir -p "$ac_dir" | |
11844 | else | |
11845 | as_dir="$ac_dir" | |
11846 | as_dirs= | |
11847 | while test ! -d "$as_dir"; do | |
11848 | as_dirs="$as_dir $as_dirs" | |
11849 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11850 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a2fc586 AK |
11851 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
11852 | X"$as_dir" : 'X\(//\)$' \| \ | |
11853 | X"$as_dir" : 'X\(/\)' \| \ | |
11854 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11855 | echo X"$as_dir" | |
11856 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11857 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11858 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11859 | /^X\(\/\).*/{ s//\1/; q; } | |
11860 | s/.*/./; q'` | |
11861 | done | |
11862 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11863 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11864 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11865 | { (exit 1); exit 1; }; }; } | |
11866 | ||
11867 | ac_builddir=. | |
11868 | ||
11869 | if test "$ac_dir" != .; then | |
11870 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11871 | # A "../" for each directory in $ac_dir_suffix. | |
11872 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11873 | else | |
11874 | ac_dir_suffix= ac_top_builddir= | |
11875 | fi | |
11876 | ||
11877 | case $srcdir in | |
11878 | .) # No --srcdir option. We are building in place. | |
11879 | ac_srcdir=. | |
11880 | if test -z "$ac_top_builddir"; then | |
11881 | ac_top_srcdir=. | |
11882 | else | |
11883 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11884 | fi ;; | |
11885 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11886 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11887 | ac_top_srcdir=$srcdir ;; | |
11888 | *) # Relative path. | |
11889 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
11890 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11891 | esac | |
8a2fc586 AK |
11892 | |
11893 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11894 | # the directories may not exist. | |
11895 | case `pwd` in | |
11896 | .) ac_abs_builddir="$ac_dir";; | |
11897 | *) | |
11898 | case "$ac_dir" in | |
11899 | .) ac_abs_builddir=`pwd`;; | |
11900 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11901 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11902 | esac;; | |
11903 | esac | |
11904 | case $ac_abs_builddir in | |
11905 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11906 | *) | |
11907 | case ${ac_top_builddir}. in | |
11908 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11909 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11910 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11911 | esac;; | |
11912 | esac | |
11913 | case $ac_abs_builddir in | |
11914 | .) ac_abs_srcdir=$ac_srcdir;; | |
11915 | *) | |
11916 | case $ac_srcdir in | |
11917 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11918 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11919 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11920 | esac;; | |
11921 | esac | |
11922 | case $ac_abs_builddir in | |
11923 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11924 | *) | |
11925 | case $ac_top_srcdir in | |
11926 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11927 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11928 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11929 | esac;; | |
11930 | esac | |
ad6254c5 AK |
11931 | |
11932 | ||
11933 | case $INSTALL in | |
11934 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11935 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
11936 | esac |
11937 | ||
ad6254c5 AK |
11938 | if test x"$ac_file" != x-; then |
11939 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11940 | echo "$as_me: creating $ac_file" >&6;} | |
11941 | rm -f "$ac_file" | |
11942 | fi | |
11943 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11944 | # use $as_me), people would be surprised to read: | |
11945 | # /* config.h. Generated by config.status. */ | |
11946 | if test x"$ac_file" = x-; then | |
11947 | configure_input= | |
11948 | else | |
11949 | configure_input="$ac_file. " | |
11950 | fi | |
11951 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8a2fc586 | 11952 | sed 's,.*/,,'` by configure." |
ad6254c5 AK |
11953 | |
11954 | # First look for the input files in the build tree, otherwise in the | |
11955 | # src tree. | |
11956 | ac_file_inputs=`IFS=: | |
11957 | for f in $ac_file_in; do | |
11958 | case $f in | |
11959 | -) echo $tmp/stdin ;; | |
11960 | [\\/$]*) | |
8a2fc586 AK |
11961 | # Absolute (can't be DOS-style, as IFS=:) |
11962 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
11963 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11964 | { (exit 1); exit 1; }; } | |
8a2fc586 | 11965 | echo "$f";; |
ad6254c5 | 11966 | *) # Relative |
8a2fc586 AK |
11967 | if test -f "$f"; then |
11968 | # Build tree | |
11969 | echo "$f" | |
11970 | elif test -f "$srcdir/$f"; then | |
11971 | # Source tree | |
11972 | echo "$srcdir/$f" | |
11973 | else | |
11974 | # /dev/null tree | |
11975 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
11976 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11977 | { (exit 1); exit 1; }; } | |
8a2fc586 | 11978 | fi;; |
ad6254c5 AK |
11979 | esac |
11980 | done` || { (exit 1); exit 1; } | |
11981 | _ACEOF | |
11982 | cat >>$CONFIG_STATUS <<_ACEOF | |
11983 | sed "$ac_vpsub | |
11984 | $extrasub | |
11985 | _ACEOF | |
11986 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11987 | :t | |
11988 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11989 | s,@configure_input@,$configure_input,;t t | |
11990 | s,@srcdir@,$ac_srcdir,;t t | |
11991 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
11992 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
11993 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
11994 | s,@builddir@,$ac_builddir,;t t | |
11995 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
11996 | s,@top_builddir@,$ac_top_builddir,;t t | |
11997 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
11998 | s,@INSTALL@,$ac_INSTALL,;t t | |
11999 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12000 | rm -f $tmp/stdin | |
12001 | if test x"$ac_file" != x-; then | |
12002 | mv $tmp/out $ac_file | |
12003 | else | |
12004 | cat $tmp/out | |
12005 | rm -f $tmp/out | |
12006 | fi | |
795ca3e5 | 12007 | |
ad6254c5 AK |
12008 | done |
12009 | _ACEOF | |
795ca3e5 | 12010 | |
ad6254c5 | 12011 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 12012 | |
ad6254c5 AK |
12013 | { (exit 0); exit 0; } |
12014 | _ACEOF | |
795ca3e5 | 12015 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12016 | ac_clean_files=$ac_clean_files_save |
12017 | ||
12018 | ||
12019 | # configure is writing to config.log, and then calls config.status. | |
12020 | # config.status does its own redirection, appending to config.log. | |
12021 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12022 | # by configure, so config.status won't be able to write to it; its | |
12023 | # output is simply discarded. So we exec the FD to /dev/null, | |
12024 | # effectively closing config.log, so it can be properly (re)opened and | |
12025 | # appended to by config.status. When coming back to configure, we | |
12026 | # need to make the FD available again. | |
12027 | if test "$no_create" != yes; then | |
12028 | ac_cs_success=: | |
12029 | ac_config_status_args= | |
12030 | test "$silent" = yes && | |
12031 | ac_config_status_args="$ac_config_status_args --quiet" | |
12032 | exec 5>/dev/null | |
12033 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12034 | exec 5>>config.log | |
12035 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12036 | # would make configure fail if this is the last instruction. | |
12037 | $ac_cs_success || { (exit 1); exit 1; } | |
12038 | fi | |
795ca3e5 | 12039 | |
2dc95e1c AK |
12040 | |
12041 | if test x$ODIRECT != xyes; then | |
ad6254c5 AK |
12042 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12043 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12044 | fi |
809fae91 AK |
12045 | |
12046 | if test x$FSADM == xyes; then | |
ad6254c5 AK |
12047 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12048 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12049 | fi |
06f62ad1 AK |
12050 | |
12051 | if test x$DMEVENTD == xyes; then | |
12052 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 | |
12053 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
12054 | fi |