]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5c7fc7c4 | 3 | # Generated by GNU Autoconf 2.59. |
795ca3e5 | 4 | # |
5c7fc7c4 | 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 | |
5c7fc7c4 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
23 | |
24 | # Support unset when possible. | |
5c7fc7c4 | 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 | |
5c7fc7c4 | 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 | |
5c7fc7c4 | 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. | |
5c7fc7c4 | 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. | |
5c7fc7c4 | 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 |
ad6254c5 AK |
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 CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS SOFLAG LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM LTLIBOBJS' |
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 \ | |
5c7fc7c4 | 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\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5c7fc7c4 PC |
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 | |
5c7fc7c4 | 807 | [$ac_default_prefix] |
ad6254c5 | 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5c7fc7c4 | 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 | |
861 | --enable-nls Enable Native Language Support | |
862 | ||
863 | Optional Packages: | |
864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
866 | --with-user=USER Set the owner of installed files | |
867 | --with-group=GROUP Set the group owner of installed files | |
868 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
869 | TYPE=internal | |
870 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
871 | TYPE=internal | |
872 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
873 | TYPE=internal | |
874 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
875 | TYPE=internal | |
876 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
877 | TYPE=internal | |
5c7fc7c4 | 878 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 879 | TYPE=none |
ad6254c5 AK |
880 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
881 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
882 | --with-confdir=DIR Configuration files in DIR /etc | |
883 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
884 | ||
885 | Some influential environment variables: | |
886 | CC C compiler command | |
887 | CFLAGS C compiler flags | |
888 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
889 | nonstandard directory <lib dir> | |
890 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
891 | headers in a nonstandard directory <include dir> | |
892 | CPP C preprocessor | |
893 | ||
894 | Use these variables to override the choices made by `configure' or to help | |
895 | it to find libraries and programs with nonstandard names/locations. | |
896 | ||
897 | _ACEOF | |
898 | fi | |
899 | ||
900 | if test "$ac_init_help" = "recursive"; then | |
901 | # If there are subdirs, report their specific --help. | |
902 | ac_popdir=`pwd` | |
903 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
904 | test -d $ac_dir || continue | |
905 | ac_builddir=. | |
906 | ||
907 | if test "$ac_dir" != .; then | |
908 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
909 | # A "../" for each directory in $ac_dir_suffix. | |
910 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
911 | else | |
912 | ac_dir_suffix= ac_top_builddir= | |
913 | fi | |
914 | ||
915 | case $srcdir in | |
916 | .) # No --srcdir option. We are building in place. | |
917 | ac_srcdir=. | |
918 | if test -z "$ac_top_builddir"; then | |
919 | ac_top_srcdir=. | |
920 | else | |
921 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
922 | fi ;; | |
923 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
924 | ac_srcdir=$srcdir$ac_dir_suffix; | |
925 | ac_top_srcdir=$srcdir ;; | |
926 | *) # Relative path. | |
927 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
928 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
929 | esac | |
5c7fc7c4 PC |
930 | |
931 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
932 | # the directories may not exist. | |
933 | case `pwd` in | |
934 | .) ac_abs_builddir="$ac_dir";; | |
935 | *) | |
936 | case "$ac_dir" in | |
937 | .) ac_abs_builddir=`pwd`;; | |
938 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
939 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
940 | esac;; | |
941 | esac | |
942 | case $ac_abs_builddir in | |
943 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
944 | *) | |
945 | case ${ac_top_builddir}. in | |
946 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
948 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
949 | esac;; | |
950 | esac | |
951 | case $ac_abs_builddir in | |
952 | .) ac_abs_srcdir=$ac_srcdir;; | |
953 | *) | |
954 | case $ac_srcdir in | |
955 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
956 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
957 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
958 | esac;; | |
959 | esac | |
960 | case $ac_abs_builddir in | |
961 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
962 | *) | |
963 | case $ac_top_srcdir in | |
964 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
965 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
966 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
967 | esac;; | |
968 | esac | |
ad6254c5 AK |
969 | |
970 | cd $ac_dir | |
971 | # Check for guested configure; otherwise get Cygnus style configure. | |
972 | if test -f $ac_srcdir/configure.gnu; then | |
973 | echo | |
974 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
975 | elif test -f $ac_srcdir/configure; then | |
976 | echo | |
977 | $SHELL $ac_srcdir/configure --help=recursive | |
978 | elif test -f $ac_srcdir/configure.ac || | |
5c7fc7c4 | 979 | test -f $ac_srcdir/configure.in; then |
ad6254c5 AK |
980 | echo |
981 | $ac_configure --help | |
982 | else | |
983 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
984 | fi | |
985 | cd $ac_popdir | |
986 | done | |
987 | fi | |
988 | ||
989 | test -n "$ac_init_help" && exit 0 | |
990 | if $ac_init_version; then | |
991 | cat <<\_ACEOF | |
992 | ||
5c7fc7c4 | 993 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
994 | This configure script is free software; the Free Software Foundation |
995 | gives unlimited permission to copy, distribute and modify it. | |
996 | _ACEOF | |
997 | exit 0 | |
998 | fi | |
999 | exec 5>config.log | |
1000 | cat >&5 <<_ACEOF | |
1001 | This file contains any messages produced by compilers while | |
1002 | running configure, to aid debugging if configure makes a mistake. | |
1003 | ||
1004 | It was created by $as_me, which was | |
5c7fc7c4 | 1005 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
1006 | |
1007 | $ $0 $@ | |
1008 | ||
1009 | _ACEOF | |
1010 | { | |
1011 | cat <<_ASUNAME | |
1012 | ## --------- ## | |
1013 | ## Platform. ## | |
1014 | ## --------- ## | |
1015 | ||
1016 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1017 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1018 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1019 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1020 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1023 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1024 | ||
1025 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1026 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1027 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1028 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1029 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1030 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1031 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1032 | ||
1033 | _ASUNAME | |
1034 | ||
1035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1036 | for as_dir in $PATH | |
1037 | do | |
1038 | IFS=$as_save_IFS | |
1039 | test -z "$as_dir" && as_dir=. | |
1040 | echo "PATH: $as_dir" | |
1041 | done | |
1042 | ||
1043 | } >&5 | |
1044 | ||
1045 | cat >&5 <<_ACEOF | |
1046 | ||
1047 | ||
1048 | ## ----------- ## | |
1049 | ## Core tests. ## | |
1050 | ## ----------- ## | |
1051 | ||
1052 | _ACEOF | |
1053 | ||
1054 | ||
1055 | # Keep a trace of the command line. | |
1056 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1057 | # Strip out --silent because we don't want to record it for future runs. | |
1058 | # Also quote any args containing shell meta-characters. | |
1059 | # Make two passes to allow for proper duplicate-argument suppression. | |
1060 | ac_configure_args= | |
1061 | ac_configure_args0= | |
1062 | ac_configure_args1= | |
1063 | ac_sep= | |
1064 | ac_must_keep_next=false | |
1065 | for ac_pass in 1 2 | |
1066 | do | |
1067 | for ac_arg | |
1068 | do | |
1069 | case $ac_arg in | |
1070 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1072 | | -silent | --silent | --silen | --sile | --sil) | |
1073 | continue ;; | |
1074 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1075 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1076 | esac | |
1077 | case $ac_pass in | |
1078 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1079 | 2) | |
1080 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1081 | if test $ac_must_keep_next = true; then | |
5c7fc7c4 | 1082 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1083 | else |
5c7fc7c4 PC |
1084 | case $ac_arg in |
1085 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1086 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1087 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1088 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1089 | case "$ac_configure_args0 " in | |
1090 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1091 | esac | |
1092 | ;; | |
1093 | -* ) ac_must_keep_next=true ;; | |
1094 | esac | |
ad6254c5 AK |
1095 | fi |
1096 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1097 | # Get rid of the leading space. | |
1098 | ac_sep=" " | |
1099 | ;; | |
1100 | esac | |
1101 | done | |
1102 | done | |
1103 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1104 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1105 | ||
1106 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1107 | # config.log. We remove comments because anyway the quotes in there | |
1108 | # would cause problems or look ugly. | |
1109 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1110 | # such as our DU 5.0 friend, will then `close' the trap. | |
1111 | trap 'exit_status=$? | |
1112 | # Save into config.log some information that might help in debugging. | |
1113 | { | |
1114 | echo | |
1115 | ||
1116 | cat <<\_ASBOX | |
1117 | ## ---------------- ## | |
1118 | ## Cache variables. ## | |
1119 | ## ---------------- ## | |
1120 | _ASBOX | |
1121 | echo | |
1122 | # The following way of writing the cache mishandles newlines in values, | |
1123 | { | |
1124 | (set) 2>&1 | | |
1125 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1126 | *ac_space=\ *) | |
1127 | sed -n \ | |
5c7fc7c4 PC |
1128 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1129 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ad6254c5 AK |
1130 | ;; |
1131 | *) | |
1132 | sed -n \ | |
5c7fc7c4 | 1133 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
1134 | ;; |
1135 | esac; | |
1136 | } | |
1137 | echo | |
1138 | ||
1139 | cat <<\_ASBOX | |
1140 | ## ----------------- ## | |
1141 | ## Output variables. ## | |
1142 | ## ----------------- ## | |
1143 | _ASBOX | |
1144 | echo | |
1145 | for ac_var in $ac_subst_vars | |
1146 | do | |
1147 | eval ac_val=$`echo $ac_var` | |
1148 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1149 | done | sort | |
1150 | echo | |
1151 | ||
1152 | if test -n "$ac_subst_files"; then | |
1153 | cat <<\_ASBOX | |
1154 | ## ------------- ## | |
1155 | ## Output files. ## | |
1156 | ## ------------- ## | |
1157 | _ASBOX | |
1158 | echo | |
1159 | for ac_var in $ac_subst_files | |
1160 | do | |
1161 | eval ac_val=$`echo $ac_var` | |
5c7fc7c4 | 1162 | echo "$ac_var='"'"'$ac_val'"'"'" |
ad6254c5 AK |
1163 | done | sort |
1164 | echo | |
1165 | fi | |
1166 | ||
1167 | if test -s confdefs.h; then | |
1168 | cat <<\_ASBOX | |
1169 | ## ----------- ## | |
1170 | ## confdefs.h. ## | |
1171 | ## ----------- ## | |
1172 | _ASBOX | |
1173 | echo | |
1174 | sed "/^$/d" confdefs.h | sort | |
1175 | echo | |
1176 | fi | |
1177 | test "$ac_signal" != 0 && | |
1178 | echo "$as_me: caught signal $ac_signal" | |
1179 | echo "$as_me: exit $exit_status" | |
1180 | } >&5 | |
5c7fc7c4 | 1181 | rm -f core *.core && |
ad6254c5 AK |
1182 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1183 | exit $exit_status | |
1184 | ' 0 | |
1185 | for ac_signal in 1 2 13 15; do | |
1186 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1187 | done | |
1188 | ac_signal=0 | |
1189 | ||
1190 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1191 | rm -rf conftest* confdefs.h | |
1192 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1193 | echo >confdefs.h | |
1194 | ||
1195 | # Predefined preprocessor variables. | |
1196 | ||
1197 | cat >>confdefs.h <<_ACEOF | |
1198 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1199 | _ACEOF | |
1200 | ||
1201 | ||
1202 | cat >>confdefs.h <<_ACEOF | |
1203 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1204 | _ACEOF | |
1205 | ||
1206 | ||
1207 | cat >>confdefs.h <<_ACEOF | |
1208 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1209 | _ACEOF | |
8106cdd5 | 1210 | |
ad6254c5 AK |
1211 | |
1212 | cat >>confdefs.h <<_ACEOF | |
1213 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1214 | _ACEOF | |
1215 | ||
1216 | ||
1217 | cat >>confdefs.h <<_ACEOF | |
1218 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1219 | _ACEOF | |
1220 | ||
1221 | ||
1222 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1223 | # Prefer explicitly selected file to automatically selected ones. |
1224 | if test -z "$CONFIG_SITE"; then | |
1225 | if test "x$prefix" != xNONE; then | |
1226 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1227 | else | |
1228 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1229 | fi | |
1230 | fi | |
1231 | for ac_site_file in $CONFIG_SITE; do | |
1232 | if test -r "$ac_site_file"; then | |
ad6254c5 AK |
1233 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1234 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1235 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1236 | . "$ac_site_file" |
1237 | fi | |
1238 | done | |
1239 | ||
1240 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1241 | # Some versions of bash will fail to source /dev/null (special |
1242 | # files actually), so we avoid doing that. | |
1243 | if test -f "$cache_file"; then | |
1244 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1245 | echo "$as_me: loading cache $cache_file" >&6;} | |
1246 | case $cache_file in | |
1247 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1248 | *) . ./$cache_file;; | |
1249 | esac | |
1250 | fi | |
795ca3e5 | 1251 | else |
ad6254c5 AK |
1252 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1253 | echo "$as_me: creating cache $cache_file" >&6;} | |
1254 | >$cache_file | |
1255 | fi | |
1256 | ||
1257 | # Check that the precious variables saved in the cache have kept the same | |
1258 | # value. | |
1259 | ac_cache_corrupted=false | |
1260 | for ac_var in `(set) 2>&1 | | |
5c7fc7c4 | 1261 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ad6254c5 AK |
1262 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1263 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1264 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1265 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1266 | case $ac_old_set,$ac_new_set in | |
1267 | set,) | |
1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1269 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1270 | ac_cache_corrupted=: ;; | |
1271 | ,set) | |
1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1273 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1274 | ac_cache_corrupted=: ;; | |
1275 | ,);; | |
1276 | *) | |
1277 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5c7fc7c4 | 1278 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ad6254c5 | 1279 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
5c7fc7c4 | 1280 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ad6254c5 | 1281 | echo "$as_me: former value: $ac_old_val" >&2;} |
5c7fc7c4 | 1282 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ad6254c5 | 1283 | echo "$as_me: current value: $ac_new_val" >&2;} |
5c7fc7c4 | 1284 | ac_cache_corrupted=: |
ad6254c5 AK |
1285 | fi;; |
1286 | esac | |
1287 | # Pass precious variables to config.status. | |
1288 | if test "$ac_new_set" = set; then | |
1289 | case $ac_new_val in | |
1290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1291 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1292 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1293 | esac | |
1294 | case " $ac_configure_args " in | |
1295 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1296 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1297 | esac | |
1298 | fi | |
1299 | done | |
1300 | if $ac_cache_corrupted; then | |
1301 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1302 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1303 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1304 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1305 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1306 | fi |
1307 | ||
1308 | ac_ext=c | |
795ca3e5 | 1309 | ac_cpp='$CPP $CPPFLAGS' |
ad6254c5 AK |
1310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
795ca3e5 AK |
1330 | |
1331 | ||
1332 | ||
80992638 | 1333 | ################################################################################ |
795ca3e5 AK |
1334 | ac_aux_dir= |
1335 | for ac_dir in autoconf $srcdir/autoconf; do | |
1336 | if test -f $ac_dir/install-sh; then | |
1337 | ac_aux_dir=$ac_dir | |
1338 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1339 | break | |
1340 | elif test -f $ac_dir/install.sh; then | |
1341 | ac_aux_dir=$ac_dir | |
1342 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1343 | break | |
ad6254c5 AK |
1344 | elif test -f $ac_dir/shtool; then |
1345 | ac_aux_dir=$ac_dir | |
1346 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1347 | break | |
795ca3e5 AK |
1348 | fi |
1349 | done | |
1350 | if test -z "$ac_aux_dir"; then | |
ad6254c5 AK |
1351 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1352 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1353 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1354 | fi |
ad6254c5 AK |
1355 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1356 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1357 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
8ce0cbda AK |
1358 | |
1359 | ||
ad6254c5 | 1360 | ################################################################################ |
8ce0cbda | 1361 | # Make sure we can run config.sub. |
ad6254c5 AK |
1362 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1363 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1364 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1365 | { (exit 1); exit 1; }; } | |
1366 | ||
1367 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1368 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1369 | if test "${ac_cv_build+set}" = set; then | |
1370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1371 | else | |
1372 | ac_cv_build_alias=$build_alias | |
1373 | test -z "$ac_cv_build_alias" && | |
1374 | ac_cv_build_alias=`$ac_config_guess` | |
1375 | test -z "$ac_cv_build_alias" && | |
1376 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1377 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1378 | { (exit 1); exit 1; }; } | |
1379 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1380 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1381 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1382 | { (exit 1); exit 1; }; } | |
1383 | ||
1384 | fi | |
1385 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1386 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1387 | build=$ac_cv_build | |
1388 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1389 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1390 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1391 | ||
1392 | ||
1393 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1394 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1395 | if test "${ac_cv_host+set}" = set; then | |
1396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1397 | else | |
1398 | ac_cv_host_alias=$host_alias | |
1399 | test -z "$ac_cv_host_alias" && | |
1400 | ac_cv_host_alias=$ac_cv_build_alias | |
1401 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1402 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1403 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1404 | { (exit 1); exit 1; }; } | |
1405 | ||
1406 | fi | |
1407 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1408 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1409 | host=$ac_cv_host | |
1410 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1411 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1412 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1413 | ||
1414 | ||
1415 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1416 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1417 | if test "${ac_cv_target+set}" = set; then | |
1418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1419 | else | |
1420 | ac_cv_target_alias=$target_alias | |
1421 | test "x$ac_cv_target_alias" = "x" && | |
1422 | ac_cv_target_alias=$ac_cv_host_alias | |
1423 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1424 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1425 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1426 | { (exit 1); exit 1; }; } | |
8ce0cbda | 1427 | |
ad6254c5 AK |
1428 | fi |
1429 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1430 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1431 | target=$ac_cv_target | |
1432 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1433 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1434 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8ce0cbda | 1435 | |
8ce0cbda | 1436 | |
ad6254c5 AK |
1437 | # The aliases save the names the user supplied, while $host etc. |
1438 | # will get canonicalized. | |
1439 | test -n "$target_alias" && | |
8ce0cbda AK |
1440 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1441 | NONENONEs,x,x, && | |
1442 | program_prefix=${target_alias}- | |
1443 | ||
8ce0cbda AK |
1444 | case "$host_os" in |
1445 | linux*) | |
1446 | CFLAGS="$CFLAGS" | |
1447 | COPTIMISE_FLAG="-O2" | |
1448 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1449 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1450 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1451 | LDDEPS="$LDDEPS .export.sym" | |
1452 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
1453 | SOFLAG="-shared" | |
1454 | DEVMAPPER=yes | |
1455 | ODIRECT=yes | |
1456 | SELINUX=yes | |
1457 | CLUSTER=internal | |
1458 | FSADM=no ;; | |
1459 | darwin*) | |
1460 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1461 | COPTIMISE_FLAG="-O2" | |
1462 | CLDFLAGS="$CLDFLAGS" | |
1463 | CLDWHOLEARCHIVE="-all_load" | |
1464 | CLDNOWHOLEARCHIVE= | |
1465 | LDDEPS="$LDDEPS" | |
1466 | LDFLAGS="$LDFLAGS" | |
1467 | SOFLAG="-dynamiclib" | |
1468 | DEVMAPPER=no | |
1469 | ODIRECT=no | |
1470 | SELINUX=no | |
1471 | CLUSTER=none | |
1472 | FSADM=no ;; | |
1473 | esac | |
1474 | ||
80992638 | 1475 | ################################################################################ |
ad6254c5 | 1476 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1477 | do |
ad6254c5 | 1478 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1479 | set dummy $ac_prog; ac_word=$2 |
ad6254c5 AK |
1480 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1482 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1484 | else |
1485 | if test -n "$AWK"; then | |
1486 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1487 | else | |
ad6254c5 AK |
1488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1489 | for as_dir in $PATH | |
1490 | do | |
1491 | IFS=$as_save_IFS | |
1492 | test -z "$as_dir" && as_dir=. | |
1493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1494 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1495 | ac_cv_prog_AWK="$ac_prog" | |
1496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1497 | break 2 | |
1498 | fi | |
1499 | done | |
1500 | done | |
1501 | ||
795ca3e5 AK |
1502 | fi |
1503 | fi | |
ad6254c5 | 1504 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1505 | if test -n "$AWK"; then |
ad6254c5 AK |
1506 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1507 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1508 | else |
ad6254c5 AK |
1509 | echo "$as_me:$LINENO: result: no" >&5 |
1510 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1511 | fi |
1512 | ||
ad6254c5 AK |
1513 | test -n "$AWK" && break |
1514 | done | |
1515 | ||
1516 | ac_ext=c | |
1517 | ac_cpp='$CPP $CPPFLAGS' | |
1518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1521 | if test -n "$ac_tool_prefix"; then | |
1522 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1523 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1526 | if test "${ac_cv_prog_CC+set}" = set; then | |
1527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1528 | else | |
1529 | if test -n "$CC"; then | |
1530 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1531 | else | |
1532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1533 | for as_dir in $PATH | |
1534 | do | |
1535 | IFS=$as_save_IFS | |
1536 | test -z "$as_dir" && as_dir=. | |
1537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1539 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1541 | break 2 | |
1542 | fi | |
1543 | done | |
8106cdd5 AK |
1544 | done |
1545 | ||
ad6254c5 AK |
1546 | fi |
1547 | fi | |
1548 | CC=$ac_cv_prog_CC | |
1549 | if test -n "$CC"; then | |
1550 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1551 | echo "${ECHO_T}$CC" >&6 | |
1552 | else | |
1553 | echo "$as_me:$LINENO: result: no" >&5 | |
1554 | echo "${ECHO_T}no" >&6 | |
1555 | fi | |
1556 | ||
1557 | fi | |
1558 | if test -z "$ac_cv_prog_CC"; then | |
1559 | ac_ct_CC=$CC | |
1560 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 1561 | set dummy gcc; ac_word=$2 |
ad6254c5 AK |
1562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1564 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1566 | else | |
1567 | if test -n "$ac_ct_CC"; then | |
1568 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1569 | else | |
1570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1571 | for as_dir in $PATH | |
1572 | do | |
1573 | IFS=$as_save_IFS | |
1574 | test -z "$as_dir" && as_dir=. | |
1575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1577 | ac_cv_prog_ac_ct_CC="gcc" | |
1578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1579 | break 2 | |
1580 | fi | |
1581 | done | |
1582 | done | |
1583 | ||
1584 | fi | |
1585 | fi | |
1586 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1587 | if test -n "$ac_ct_CC"; then | |
1588 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1589 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1590 | else | |
1591 | echo "$as_me:$LINENO: result: no" >&5 | |
1592 | echo "${ECHO_T}no" >&6 | |
1593 | fi | |
1594 | ||
1595 | CC=$ac_ct_CC | |
1596 | else | |
1597 | CC="$ac_cv_prog_CC" | |
1598 | fi | |
1599 | ||
1600 | if test -z "$CC"; then | |
1601 | if test -n "$ac_tool_prefix"; then | |
1602 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1603 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1606 | if test "${ac_cv_prog_CC+set}" = set; then | |
1607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 AK |
1608 | else |
1609 | if test -n "$CC"; then | |
1610 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1611 | else | |
ad6254c5 AK |
1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1613 | for as_dir in $PATH | |
1614 | do | |
1615 | IFS=$as_save_IFS | |
1616 | test -z "$as_dir" && as_dir=. | |
1617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1619 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1621 | break 2 | |
1622 | fi | |
1623 | done | |
1624 | done | |
1625 | ||
8106cdd5 AK |
1626 | fi |
1627 | fi | |
ad6254c5 | 1628 | CC=$ac_cv_prog_CC |
8106cdd5 | 1629 | if test -n "$CC"; then |
ad6254c5 AK |
1630 | echo "$as_me:$LINENO: result: $CC" >&5 |
1631 | echo "${ECHO_T}$CC" >&6 | |
1632 | else | |
1633 | echo "$as_me:$LINENO: result: no" >&5 | |
1634 | echo "${ECHO_T}no" >&6 | |
1635 | fi | |
1636 | ||
1637 | fi | |
1638 | if test -z "$ac_cv_prog_CC"; then | |
1639 | ac_ct_CC=$CC | |
1640 | # Extract the first word of "cc", so it can be a program name with args. | |
1641 | set dummy cc; ac_word=$2 | |
1642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1644 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1646 | else | |
1647 | if test -n "$ac_ct_CC"; then | |
1648 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1649 | else | |
1650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1651 | for as_dir in $PATH | |
1652 | do | |
1653 | IFS=$as_save_IFS | |
1654 | test -z "$as_dir" && as_dir=. | |
1655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1657 | ac_cv_prog_ac_ct_CC="cc" | |
1658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1659 | break 2 | |
1660 | fi | |
1661 | done | |
1662 | done | |
1663 | ||
1664 | fi | |
1665 | fi | |
1666 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1667 | if test -n "$ac_ct_CC"; then | |
1668 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1669 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1670 | else | |
1671 | echo "$as_me:$LINENO: result: no" >&5 | |
1672 | echo "${ECHO_T}no" >&6 | |
1673 | fi | |
1674 | ||
1675 | CC=$ac_ct_CC | |
8106cdd5 | 1676 | else |
ad6254c5 | 1677 | CC="$ac_cv_prog_CC" |
8106cdd5 AK |
1678 | fi |
1679 | ||
ad6254c5 | 1680 | fi |
795ca3e5 AK |
1681 | if test -z "$CC"; then |
1682 | # Extract the first word of "cc", so it can be a program name with args. | |
1683 | set dummy cc; ac_word=$2 | |
ad6254c5 AK |
1684 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1686 | if test "${ac_cv_prog_CC+set}" = set; then | |
1687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1688 | else |
1689 | if test -n "$CC"; then | |
1690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1691 | else | |
795ca3e5 | 1692 | ac_prog_rejected=no |
ad6254c5 AK |
1693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1694 | for as_dir in $PATH | |
1695 | do | |
1696 | IFS=$as_save_IFS | |
1697 | test -z "$as_dir" && as_dir=. | |
1698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1700 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1701 | ac_prog_rejected=yes | |
1702 | continue | |
1703 | fi | |
1704 | ac_cv_prog_CC="cc" | |
1705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1706 | break 2 | |
1707 | fi | |
1708 | done | |
1709 | done | |
1710 | ||
795ca3e5 AK |
1711 | if test $ac_prog_rejected = yes; then |
1712 | # We found a bogon in the path, so make sure we never use it. | |
1713 | set dummy $ac_cv_prog_CC | |
1714 | shift | |
ad6254c5 | 1715 | if test $# != 0; then |
795ca3e5 AK |
1716 | # We chose a different compiler from the bogus one. |
1717 | # However, it has the same basename, so the bogon will be chosen | |
1718 | # first if we set CC to just the basename; use the full file name. | |
1719 | shift | |
ad6254c5 | 1720 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1721 | fi |
1722 | fi | |
1723 | fi | |
1724 | fi | |
ad6254c5 | 1725 | CC=$ac_cv_prog_CC |
795ca3e5 | 1726 | if test -n "$CC"; then |
ad6254c5 AK |
1727 | echo "$as_me:$LINENO: result: $CC" >&5 |
1728 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1729 | else |
ad6254c5 AK |
1730 | echo "$as_me:$LINENO: result: no" >&5 |
1731 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1732 | fi |
1733 | ||
ad6254c5 AK |
1734 | fi |
1735 | if test -z "$CC"; then | |
1736 | if test -n "$ac_tool_prefix"; then | |
1737 | for ac_prog in cl | |
1738 | do | |
1739 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1740 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1743 | if test "${ac_cv_prog_CC+set}" = set; then | |
1744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1745 | else |
1746 | if test -n "$CC"; then | |
1747 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1748 | else | |
ad6254c5 AK |
1749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1750 | for as_dir in $PATH | |
1751 | do | |
1752 | IFS=$as_save_IFS | |
1753 | test -z "$as_dir" && as_dir=. | |
1754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1756 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1758 | break 2 | |
1759 | fi | |
1760 | done | |
1761 | done | |
1762 | ||
795ca3e5 AK |
1763 | fi |
1764 | fi | |
ad6254c5 | 1765 | CC=$ac_cv_prog_CC |
795ca3e5 | 1766 | if test -n "$CC"; then |
ad6254c5 AK |
1767 | echo "$as_me:$LINENO: result: $CC" >&5 |
1768 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1769 | else |
ad6254c5 AK |
1770 | echo "$as_me:$LINENO: result: no" >&5 |
1771 | echo "${ECHO_T}no" >&6 | |
795ca3e5 | 1772 | fi |
ad6254c5 AK |
1773 | |
1774 | test -n "$CC" && break | |
1775 | done | |
1776 | fi | |
1777 | if test -z "$CC"; then | |
1778 | ac_ct_CC=$CC | |
1779 | for ac_prog in cl | |
1780 | do | |
1781 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1782 | set dummy $ac_prog; ac_word=$2 | |
1783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1785 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1787 | else | |
1788 | if test -n "$ac_ct_CC"; then | |
1789 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1790 | else | |
1791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1792 | for as_dir in $PATH | |
1793 | do | |
1794 | IFS=$as_save_IFS | |
1795 | test -z "$as_dir" && as_dir=. | |
1796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1798 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1800 | break 2 | |
795ca3e5 | 1801 | fi |
ad6254c5 AK |
1802 | done |
1803 | done | |
1804 | ||
1805 | fi | |
1806 | fi | |
1807 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1808 | if test -n "$ac_ct_CC"; then | |
1809 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1810 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1811 | else | |
1812 | echo "$as_me:$LINENO: result: no" >&5 | |
1813 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1814 | fi |
1815 | ||
ad6254c5 AK |
1816 | test -n "$ac_ct_CC" && break |
1817 | done | |
795ca3e5 | 1818 | |
ad6254c5 AK |
1819 | CC=$ac_ct_CC |
1820 | fi | |
1821 | ||
1822 | fi | |
1823 | ||
1824 | ||
1825 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1826 | See \`config.log' for more details." >&5 | |
1827 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1828 | See \`config.log' for more details." >&2;} | |
1829 | { (exit 1); exit 1; }; } | |
1830 | ||
1831 | # Provide some information about the compiler. | |
1832 | echo "$as_me:$LINENO:" \ | |
1833 | "checking for C compiler version" >&5 | |
1834 | ac_compiler=`set X $ac_compile; echo $2` | |
1835 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1836 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1837 | ac_status=$? | |
1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1839 | (exit $ac_status); } | |
1840 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1841 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1842 | ac_status=$? | |
1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1844 | (exit $ac_status); } | |
1845 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1846 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1847 | ac_status=$? | |
1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1849 | (exit $ac_status); } | |
1850 | ||
1851 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
1852 | /* confdefs.h. */ |
1853 | _ACEOF | |
1854 | cat confdefs.h >>conftest.$ac_ext | |
1855 | cat >>conftest.$ac_ext <<_ACEOF | |
1856 | /* end confdefs.h. */ | |
1857 | ||
1858 | int | |
1859 | main () | |
1860 | { | |
1861 | ||
1862 | ; | |
1863 | return 0; | |
1864 | } | |
1865 | _ACEOF | |
1866 | ac_clean_files_save=$ac_clean_files | |
1867 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1868 | # Try to create an executable without -o first, disregard a.out. | |
1869 | # It will help us diagnose broken compilers, and finding out an intuition | |
1870 | # of exeext. | |
5c7fc7c4 PC |
1871 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1872 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ad6254c5 AK |
1873 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1874 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1875 | (eval $ac_link_default) 2>&5 | |
1876 | ac_status=$? | |
1877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1878 | (exit $ac_status); }; then | |
1879 | # Find the output, starting from the most likely. This scheme is | |
1880 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1881 | # resort. | |
1882 | ||
1883 | # Be careful to initialize this variable, since it used to be cached. | |
1884 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1885 | ac_cv_exeext= | |
1886 | # b.out is created by i960 compilers. | |
1887 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1888 | do | |
1889 | test -f "$ac_file" || continue | |
1890 | case $ac_file in | |
1891 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
5c7fc7c4 | 1892 | ;; |
ad6254c5 | 1893 | conftest.$ac_ext ) |
5c7fc7c4 PC |
1894 | # This is the source file. |
1895 | ;; | |
ad6254c5 | 1896 | [ab].out ) |
5c7fc7c4 PC |
1897 | # We found the default executable, but exeext='' is most |
1898 | # certainly right. | |
1899 | break;; | |
ad6254c5 | 1900 | *.* ) |
5c7fc7c4 PC |
1901 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1902 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1903 | # but it would be cool to find out if it's true. Does anybody | |
1904 | # maintain Libtool? --akim. | |
1905 | export ac_cv_exeext | |
1906 | break;; | |
ad6254c5 | 1907 | * ) |
5c7fc7c4 | 1908 | break;; |
ad6254c5 AK |
1909 | esac |
1910 | done | |
1911 | else | |
1912 | echo "$as_me: failed program was:" >&5 | |
1913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1914 | ||
1915 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1916 | See \`config.log' for more details." >&5 | |
1917 | echo "$as_me: error: C compiler cannot create executables | |
1918 | See \`config.log' for more details." >&2;} | |
1919 | { (exit 77); exit 77; }; } | |
1920 | fi | |
1921 | ||
1922 | ac_exeext=$ac_cv_exeext | |
1923 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1924 | echo "${ECHO_T}$ac_file" >&6 | |
1925 | ||
1926 | # Check the compiler produces executables we can run. If not, either | |
1927 | # the compiler is broken, or we cross compile. | |
1928 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1929 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1930 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1931 | # If not cross compiling, check that we can run a simple program. | |
1932 | if test "$cross_compiling" != yes; then | |
1933 | if { ac_try='./$ac_file' | |
1934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1935 | (eval $ac_try) 2>&5 | |
1936 | ac_status=$? | |
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1938 | (exit $ac_status); }; }; then | |
1939 | cross_compiling=no | |
795ca3e5 | 1940 | else |
ad6254c5 AK |
1941 | if test "$cross_compiling" = maybe; then |
1942 | cross_compiling=yes | |
1943 | else | |
1944 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1945 | If you meant to cross compile, use \`--host'. | |
1946 | See \`config.log' for more details." >&5 | |
1947 | echo "$as_me: error: cannot run C compiled programs. | |
1948 | If you meant to cross compile, use \`--host'. | |
1949 | See \`config.log' for more details." >&2;} | |
1950 | { (exit 1); exit 1; }; } | |
1951 | fi | |
795ca3e5 | 1952 | fi |
80992638 | 1953 | fi |
ad6254c5 AK |
1954 | echo "$as_me:$LINENO: result: yes" >&5 |
1955 | echo "${ECHO_T}yes" >&6 | |
1956 | ||
1957 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1958 | ac_clean_files=$ac_clean_files_save | |
1959 | # Check the compiler produces executables we can run. If not, either | |
1960 | # the compiler is broken, or we cross compile. | |
1961 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1962 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1963 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1964 | echo "${ECHO_T}$cross_compiling" >&6 | |
1965 | ||
1966 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1967 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1969 | (eval $ac_link) 2>&5 | |
1970 | ac_status=$? | |
1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1972 | (exit $ac_status); }; then | |
1973 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1974 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1975 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1976 | # `rm'. | |
1977 | for ac_file in conftest.exe conftest conftest.*; do | |
1978 | test -f "$ac_file" || continue | |
1979 | case $ac_file in | |
1980 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1981 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
5c7fc7c4 PC |
1982 | export ac_cv_exeext |
1983 | break;; | |
ad6254c5 AK |
1984 | * ) break;; |
1985 | esac | |
1986 | done | |
80992638 | 1987 | else |
ad6254c5 AK |
1988 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1989 | See \`config.log' for more details." >&5 | |
1990 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1991 | See \`config.log' for more details." >&2;} | |
1992 | { (exit 1); exit 1; }; } | |
1993 | fi | |
1994 | ||
1995 | rm -f conftest$ac_cv_exeext | |
1996 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1997 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1998 | ||
1999 | rm -f conftest.$ac_ext | |
2000 | EXEEXT=$ac_cv_exeext | |
2001 | ac_exeext=$EXEEXT | |
2002 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2003 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2004 | if test "${ac_cv_objext+set}" = set; then | |
2005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2006 | else |
ad6254c5 | 2007 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2008 | /* confdefs.h. */ |
2009 | _ACEOF | |
2010 | cat confdefs.h >>conftest.$ac_ext | |
2011 | cat >>conftest.$ac_ext <<_ACEOF | |
2012 | /* end confdefs.h. */ | |
2013 | ||
2014 | int | |
2015 | main () | |
2016 | { | |
2017 | ||
2018 | ; | |
2019 | return 0; | |
2020 | } | |
2021 | _ACEOF | |
2022 | rm -f conftest.o conftest.obj | |
2023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2024 | (eval $ac_compile) 2>&5 | |
2025 | ac_status=$? | |
2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2027 | (exit $ac_status); }; then | |
2028 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2029 | case $ac_file in | |
2030 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2031 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2032 | break;; | |
2033 | esac | |
2034 | done | |
2035 | else | |
2036 | echo "$as_me: failed program was:" >&5 | |
2037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2038 | ||
2039 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2040 | See \`config.log' for more details." >&5 | |
2041 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2042 | See \`config.log' for more details." >&2;} | |
2043 | { (exit 1); exit 1; }; } | |
2044 | fi | |
2045 | ||
2046 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2047 | fi | |
2048 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2049 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2050 | OBJEXT=$ac_cv_objext | |
2051 | ac_objext=$OBJEXT | |
2052 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2053 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2054 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2056 | else | |
2057 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2058 | /* confdefs.h. */ |
2059 | _ACEOF | |
2060 | cat confdefs.h >>conftest.$ac_ext | |
2061 | cat >>conftest.$ac_ext <<_ACEOF | |
2062 | /* end confdefs.h. */ | |
2063 | ||
2064 | int | |
2065 | main () | |
2066 | { | |
2067 | #ifndef __GNUC__ | |
2068 | choke me | |
2069 | #endif | |
80992638 | 2070 | |
ad6254c5 AK |
2071 | ; |
2072 | return 0; | |
2073 | } | |
2074 | _ACEOF | |
2075 | rm -f conftest.$ac_objext | |
2076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2077 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2078 | ac_status=$? |
5c7fc7c4 PC |
2079 | grep -v '^ *+' conftest.er1 >conftest.err |
2080 | rm -f conftest.er1 | |
2081 | cat conftest.err >&5 | |
ad6254c5 AK |
2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2083 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2084 | { ac_try='test -z "$ac_c_werror_flag" |
2085 | || test ! -s conftest.err' | |
2086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2087 | (eval $ac_try) 2>&5 | |
2088 | ac_status=$? | |
2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2090 | (exit $ac_status); }; } && | |
2091 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2093 | (eval $ac_try) 2>&5 | |
2094 | ac_status=$? | |
2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2096 | (exit $ac_status); }; }; then | |
2097 | ac_compiler_gnu=yes | |
80992638 | 2098 | else |
ad6254c5 AK |
2099 | echo "$as_me: failed program was:" >&5 |
2100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2101 | ||
2102 | ac_compiler_gnu=no | |
8106cdd5 | 2103 | fi |
5c7fc7c4 | 2104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2105 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2106 | |
ad6254c5 AK |
2107 | fi |
2108 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2109 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2110 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2111 | ac_test_CFLAGS=${CFLAGS+set} | |
2112 | ac_save_CFLAGS=$CFLAGS | |
2113 | CFLAGS="-g" | |
2114 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2115 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2116 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2118 | else |
ad6254c5 | 2119 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2120 | /* confdefs.h. */ |
2121 | _ACEOF | |
2122 | cat confdefs.h >>conftest.$ac_ext | |
2123 | cat >>conftest.$ac_ext <<_ACEOF | |
2124 | /* end confdefs.h. */ | |
2125 | ||
2126 | int | |
2127 | main () | |
2128 | { | |
2129 | ||
2130 | ; | |
2131 | return 0; | |
2132 | } | |
2133 | _ACEOF | |
2134 | rm -f conftest.$ac_objext | |
2135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2136 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2137 | ac_status=$? |
5c7fc7c4 PC |
2138 | grep -v '^ *+' conftest.er1 >conftest.err |
2139 | rm -f conftest.er1 | |
2140 | cat conftest.err >&5 | |
ad6254c5 AK |
2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2142 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2143 | { ac_try='test -z "$ac_c_werror_flag" |
2144 | || test ! -s conftest.err' | |
2145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2146 | (eval $ac_try) 2>&5 | |
2147 | ac_status=$? | |
2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2149 | (exit $ac_status); }; } && | |
2150 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2152 | (eval $ac_try) 2>&5 | |
2153 | ac_status=$? | |
2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2155 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2156 | ac_cv_prog_cc_g=yes |
2157 | else | |
ad6254c5 AK |
2158 | echo "$as_me: failed program was:" >&5 |
2159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2160 | |
ad6254c5 | 2161 | ac_cv_prog_cc_g=no |
8106cdd5 | 2162 | fi |
5c7fc7c4 | 2163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2164 | fi |
2165 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2166 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 2167 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2168 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2169 | elif test $ac_cv_prog_cc_g = yes; then |
2170 | if test "$GCC" = yes; then | |
2171 | CFLAGS="-g -O2" | |
2172 | else | |
2173 | CFLAGS="-g" | |
2174 | fi | |
2175 | else | |
2176 | if test "$GCC" = yes; then | |
2177 | CFLAGS="-O2" | |
2178 | else | |
2179 | CFLAGS= | |
2180 | fi | |
2181 | fi | |
ad6254c5 AK |
2182 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2183 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2184 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2186 | else | |
2187 | ac_cv_prog_cc_stdc=no | |
2188 | ac_save_CC=$CC | |
2189 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2190 | /* confdefs.h. */ |
2191 | _ACEOF | |
2192 | cat confdefs.h >>conftest.$ac_ext | |
2193 | cat >>conftest.$ac_ext <<_ACEOF | |
2194 | /* end confdefs.h. */ | |
2195 | #include <stdarg.h> | |
2196 | #include <stdio.h> | |
2197 | #include <sys/types.h> | |
2198 | #include <sys/stat.h> | |
2199 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2200 | struct buf { int x; }; | |
2201 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2202 | static char *e (p, i) | |
2203 | char **p; | |
2204 | int i; | |
2205 | { | |
2206 | return p[i]; | |
2207 | } | |
2208 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2209 | { | |
2210 | char *s; | |
2211 | va_list v; | |
2212 | va_start (v,p); | |
2213 | s = g (p, va_arg (v,int)); | |
2214 | va_end (v); | |
2215 | return s; | |
2216 | } | |
5c7fc7c4 PC |
2217 | |
2218 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2219 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2220 | These don't provoke an error unfortunately, instead are silently treated | |
2221 | as 'x'. The following induces an error, until -std1 is added to get | |
2222 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2223 | array size at least. It's necessary to write '\x00'==0 to get something | |
2224 | that's true only with -std1. */ | |
2225 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2226 | ||
ad6254c5 AK |
2227 | int test (int i, double x); |
2228 | struct s1 {int (*f) (int a);}; | |
2229 | struct s2 {int (*f) (double a);}; | |
2230 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2231 | int argc; | |
2232 | char **argv; | |
2233 | int | |
2234 | main () | |
2235 | { | |
2236 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2237 | ; | |
2238 | return 0; | |
2239 | } | |
2240 | _ACEOF | |
2241 | # Don't try gcc -ansi; that turns off useful extensions and | |
2242 | # breaks some systems' header files. | |
2243 | # AIX -qlanglvl=ansi | |
2244 | # Ultrix and OSF/1 -std1 | |
2245 | # HP-UX 10.20 and later -Ae | |
2246 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2247 | # SVR4 -Xc -D__EXTENSIONS__ | |
2248 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2249 | do | |
2250 | CC="$ac_save_CC $ac_arg" | |
2251 | rm -f conftest.$ac_objext | |
2252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2253 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2254 | ac_status=$? |
5c7fc7c4 PC |
2255 | grep -v '^ *+' conftest.er1 >conftest.err |
2256 | rm -f conftest.er1 | |
2257 | cat conftest.err >&5 | |
ad6254c5 AK |
2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2259 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2260 | { ac_try='test -z "$ac_c_werror_flag" |
2261 | || test ! -s conftest.err' | |
2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2263 | (eval $ac_try) 2>&5 | |
2264 | ac_status=$? | |
2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2266 | (exit $ac_status); }; } && | |
2267 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2269 | (eval $ac_try) 2>&5 | |
2270 | ac_status=$? | |
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2272 | (exit $ac_status); }; }; then | |
2273 | ac_cv_prog_cc_stdc=$ac_arg | |
2274 | break | |
2275 | else | |
2276 | echo "$as_me: failed program was:" >&5 | |
2277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2278 | ||
2279 | fi | |
5c7fc7c4 | 2280 | rm -f conftest.err conftest.$ac_objext |
ad6254c5 AK |
2281 | done |
2282 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2283 | CC=$ac_save_CC | |
2284 | ||
2285 | fi | |
2286 | ||
2287 | case "x$ac_cv_prog_cc_stdc" in | |
2288 | x|xno) | |
2289 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2290 | echo "${ECHO_T}none needed" >&6 ;; | |
2291 | *) | |
2292 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2293 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2294 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2295 | esac | |
2296 | ||
2297 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2298 | # in C++ we need to declare it. In case someone uses the same compiler | |
2299 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2300 | # the declaration of exit, since it's the most demanding environment. | |
2301 | cat >conftest.$ac_ext <<_ACEOF | |
2302 | #ifndef __cplusplus | |
2303 | choke me | |
2304 | #endif | |
2305 | _ACEOF | |
2306 | rm -f conftest.$ac_objext | |
2307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2308 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2309 | ac_status=$? |
5c7fc7c4 PC |
2310 | grep -v '^ *+' conftest.er1 >conftest.err |
2311 | rm -f conftest.er1 | |
2312 | cat conftest.err >&5 | |
ad6254c5 AK |
2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2314 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2315 | { ac_try='test -z "$ac_c_werror_flag" |
2316 | || test ! -s conftest.err' | |
2317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2318 | (eval $ac_try) 2>&5 | |
2319 | ac_status=$? | |
2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2321 | (exit $ac_status); }; } && | |
2322 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2324 | (eval $ac_try) 2>&5 | |
2325 | ac_status=$? | |
2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2327 | (exit $ac_status); }; }; then | |
2328 | for ac_declaration in \ | |
5c7fc7c4 | 2329 | '' \ |
ad6254c5 AK |
2330 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2331 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2332 | 'extern "C" void exit (int) throw ();' \ | |
2333 | 'extern "C" void exit (int);' \ | |
2334 | 'void exit (int);' | |
2335 | do | |
2336 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2337 | /* confdefs.h. */ |
2338 | _ACEOF | |
2339 | cat confdefs.h >>conftest.$ac_ext | |
2340 | cat >>conftest.$ac_ext <<_ACEOF | |
2341 | /* end confdefs.h. */ | |
a266258f | 2342 | $ac_declaration |
5c7fc7c4 | 2343 | #include <stdlib.h> |
ad6254c5 AK |
2344 | int |
2345 | main () | |
2346 | { | |
2347 | exit (42); | |
2348 | ; | |
2349 | return 0; | |
2350 | } | |
2351 | _ACEOF | |
2352 | rm -f conftest.$ac_objext | |
2353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2354 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2355 | ac_status=$? |
5c7fc7c4 PC |
2356 | grep -v '^ *+' conftest.er1 >conftest.err |
2357 | rm -f conftest.er1 | |
2358 | cat conftest.err >&5 | |
ad6254c5 AK |
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2360 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2361 | { ac_try='test -z "$ac_c_werror_flag" |
2362 | || test ! -s conftest.err' | |
2363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2364 | (eval $ac_try) 2>&5 | |
2365 | ac_status=$? | |
2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2367 | (exit $ac_status); }; } && | |
2368 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2370 | (eval $ac_try) 2>&5 | |
2371 | ac_status=$? | |
2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2373 | (exit $ac_status); }; }; then | |
2374 | : | |
2375 | else | |
2376 | echo "$as_me: failed program was:" >&5 | |
2377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2378 | ||
2379 | continue | |
2380 | fi | |
5c7fc7c4 | 2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2382 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2383 | /* confdefs.h. */ |
2384 | _ACEOF | |
2385 | cat confdefs.h >>conftest.$ac_ext | |
2386 | cat >>conftest.$ac_ext <<_ACEOF | |
2387 | /* end confdefs.h. */ | |
2388 | $ac_declaration | |
2389 | int | |
2390 | main () | |
2391 | { | |
2392 | exit (42); | |
2393 | ; | |
2394 | return 0; | |
2395 | } | |
2396 | _ACEOF | |
2397 | rm -f conftest.$ac_objext | |
2398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2399 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2400 | ac_status=$? |
5c7fc7c4 PC |
2401 | grep -v '^ *+' conftest.er1 >conftest.err |
2402 | rm -f conftest.er1 | |
2403 | cat conftest.err >&5 | |
ad6254c5 AK |
2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2405 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2406 | { ac_try='test -z "$ac_c_werror_flag" |
2407 | || test ! -s conftest.err' | |
2408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2409 | (eval $ac_try) 2>&5 | |
2410 | ac_status=$? | |
2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2412 | (exit $ac_status); }; } && | |
2413 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2415 | (eval $ac_try) 2>&5 | |
2416 | ac_status=$? | |
2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2418 | (exit $ac_status); }; }; then | |
2419 | break | |
2420 | else | |
2421 | echo "$as_me: failed program was:" >&5 | |
2422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2423 | ||
2424 | fi | |
5c7fc7c4 | 2425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2426 | done |
2427 | rm -f conftest* | |
2428 | if test -n "$ac_declaration"; then | |
2429 | echo '#ifdef __cplusplus' >>confdefs.h | |
2430 | echo $ac_declaration >>confdefs.h | |
2431 | echo '#endif' >>confdefs.h | |
2432 | fi | |
2433 | ||
2434 | else | |
2435 | echo "$as_me: failed program was:" >&5 | |
2436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2437 | ||
2438 | fi | |
5c7fc7c4 | 2439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2440 | ac_ext=c |
2441 | ac_cpp='$CPP $CPPFLAGS' | |
2442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2445 | |
2446 | # Find a good install program. We prefer a C program (faster), | |
2447 | # so one script is as good as another. But avoid the broken or | |
2448 | # incompatible versions: | |
2449 | # SysV /etc/install, /usr/sbin/install | |
2450 | # SunOS /usr/etc/install | |
2451 | # IRIX /sbin/install | |
2452 | # AIX /bin/install | |
ad6254c5 | 2453 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2454 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2455 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2456 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5c7fc7c4 | 2457 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2458 | # ./install, which can be erroneously created by make from ./install.sh. |
ad6254c5 AK |
2459 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2460 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2461 | if test -z "$INSTALL"; then |
ad6254c5 AK |
2462 | if test "${ac_cv_path_install+set}" = set; then |
2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2464 | else | |
2465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2466 | for as_dir in $PATH | |
2467 | do | |
2468 | IFS=$as_save_IFS | |
2469 | test -z "$as_dir" && as_dir=. | |
2470 | # Account for people who put trailing slashes in PATH elements. | |
2471 | case $as_dir/ in | |
2472 | ./ | .// | /cC/* | \ | |
2473 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5c7fc7c4 | 2474 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
2475 | /usr/ucb/* ) ;; |
2476 | *) | |
2477 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2478 | # Don't use installbsd from OSF since it installs stuff as root | |
2479 | # by default. | |
2480 | for ac_prog in ginstall scoinst install; do | |
2481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5c7fc7c4 PC |
2482 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2483 | if test $ac_prog = install && | |
2484 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2485 | # AIX install. It has an incompatible calling convention. | |
2486 | : | |
2487 | elif test $ac_prog = install && | |
2488 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2489 | # program-specific install script used by HP pwplus--don't use. | |
2490 | : | |
2491 | else | |
2492 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2493 | break 3 | |
2494 | fi | |
2495 | fi | |
795ca3e5 | 2496 | done |
ad6254c5 AK |
2497 | done |
2498 | ;; | |
2499 | esac | |
2500 | done | |
2501 | ||
795ca3e5 AK |
2502 | |
2503 | fi | |
2504 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 2505 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2506 | else |
2507 | # As a last resort, use the slow shell script. We don't cache a | |
2508 | # path for INSTALL within a source directory, because that will | |
2509 | # break other packages using the cache if that directory is | |
2510 | # removed, or if the path is relative. | |
ad6254c5 | 2511 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2512 | fi |
2513 | fi | |
ad6254c5 AK |
2514 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2515 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2516 | |
2517 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2518 | # It thinks the first close brace ends the variable substitution. | |
2519 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2520 | ||
ad6254c5 | 2521 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2522 | |
2523 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2524 | ||
ad6254c5 AK |
2525 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2526 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2527 | LN_S=$as_ln_s | |
2528 | if test "$LN_S" = "ln -s"; then | |
2529 | echo "$as_me:$LINENO: result: yes" >&5 | |
2530 | echo "${ECHO_T}yes" >&6 | |
80992638 | 2531 | else |
ad6254c5 AK |
2532 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2533 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2534 | fi |
2535 | ||
ad6254c5 AK |
2536 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2537 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
5c7fc7c4 | 2538 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ad6254c5 AK |
2539 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2541 | else |
ad6254c5 | 2542 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2543 | all: |
ad6254c5 AK |
2544 | @echo 'ac_maketemp="$(MAKE)"' |
2545 | _ACEOF | |
795ca3e5 | 2546 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ad6254c5 | 2547 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2548 | if test -n "$ac_maketemp"; then |
2549 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2550 | else | |
2551 | eval ac_cv_prog_make_${ac_make}_set=no | |
2552 | fi | |
ad6254c5 | 2553 | rm -f conftest.make |
795ca3e5 AK |
2554 | fi |
2555 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
ad6254c5 AK |
2556 | echo "$as_me:$LINENO: result: yes" >&5 |
2557 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2558 | SET_MAKE= |
2559 | else | |
ad6254c5 AK |
2560 | echo "$as_me:$LINENO: result: no" >&5 |
2561 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2562 | SET_MAKE="MAKE=${MAKE-make}" |
2563 | fi | |
2564 | ||
ad6254c5 AK |
2565 | if test -n "$ac_tool_prefix"; then |
2566 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2567 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2570 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2572 | else |
2573 | if test -n "$RANLIB"; then | |
2574 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2575 | else | |
ad6254c5 AK |
2576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2577 | for as_dir in $PATH | |
2578 | do | |
2579 | IFS=$as_save_IFS | |
2580 | test -z "$as_dir" && as_dir=. | |
2581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2582 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2583 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2584 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2585 | break 2 | |
2586 | fi | |
2587 | done | |
2588 | done | |
2589 | ||
795ca3e5 AK |
2590 | fi |
2591 | fi | |
ad6254c5 | 2592 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2593 | if test -n "$RANLIB"; then |
ad6254c5 AK |
2594 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2595 | echo "${ECHO_T}$RANLIB" >&6 | |
8106cdd5 | 2596 | else |
ad6254c5 AK |
2597 | echo "$as_me:$LINENO: result: no" >&5 |
2598 | echo "${ECHO_T}no" >&6 | |
8106cdd5 AK |
2599 | fi |
2600 | ||
795ca3e5 | 2601 | fi |
ad6254c5 AK |
2602 | if test -z "$ac_cv_prog_RANLIB"; then |
2603 | ac_ct_RANLIB=$RANLIB | |
2604 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2605 | set dummy ranlib; ac_word=$2 | |
2606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2608 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 2610 | else |
ad6254c5 AK |
2611 | if test -n "$ac_ct_RANLIB"; then |
2612 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2613 | else | |
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2615 | for as_dir in $PATH | |
2616 | do | |
2617 | IFS=$as_save_IFS | |
2618 | test -z "$as_dir" && as_dir=. | |
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2621 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2623 | break 2 | |
2624 | fi | |
2625 | done | |
795ca3e5 | 2626 | done |
8106cdd5 | 2627 | |
ad6254c5 | 2628 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
795ca3e5 | 2629 | fi |
80992638 | 2630 | fi |
ad6254c5 AK |
2631 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2632 | if test -n "$ac_ct_RANLIB"; then | |
2633 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2634 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
80992638 | 2635 | else |
ad6254c5 AK |
2636 | echo "$as_me:$LINENO: result: no" >&5 |
2637 | echo "${ECHO_T}no" >&6 | |
8106cdd5 | 2638 | fi |
8106cdd5 | 2639 | |
ad6254c5 | 2640 | RANLIB=$ac_ct_RANLIB |
80992638 | 2641 | else |
ad6254c5 | 2642 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 2643 | fi |
795ca3e5 | 2644 | |
795ca3e5 | 2645 | |
ad6254c5 AK |
2646 | ################################################################################ |
2647 | ||
2648 | ||
2649 | ||
2650 | ||
2651 | ||
2652 | ||
2653 | ac_header_dirent=no | |
2654 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
2655 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2656 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2657 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 2660 | else |
ad6254c5 | 2661 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2662 | /* confdefs.h. */ |
2663 | _ACEOF | |
2664 | cat confdefs.h >>conftest.$ac_ext | |
2665 | cat >>conftest.$ac_ext <<_ACEOF | |
2666 | /* end confdefs.h. */ | |
2667 | #include <sys/types.h> | |
2668 | #include <$ac_hdr> | |
2669 | ||
2670 | int | |
2671 | main () | |
2672 | { | |
2673 | if ((DIR *) 0) | |
2674 | return 0; | |
2675 | ; | |
2676 | return 0; | |
2677 | } | |
2678 | _ACEOF | |
2679 | rm -f conftest.$ac_objext | |
2680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2681 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2682 | ac_status=$? |
5c7fc7c4 PC |
2683 | grep -v '^ *+' conftest.er1 >conftest.err |
2684 | rm -f conftest.er1 | |
2685 | cat conftest.err >&5 | |
ad6254c5 AK |
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2687 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2688 | { ac_try='test -z "$ac_c_werror_flag" |
2689 | || test ! -s conftest.err' | |
2690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2691 | (eval $ac_try) 2>&5 | |
2692 | ac_status=$? | |
2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2694 | (exit $ac_status); }; } && | |
2695 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2697 | (eval $ac_try) 2>&5 | |
2698 | ac_status=$? | |
2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2700 | (exit $ac_status); }; }; then | |
2701 | eval "$as_ac_Header=yes" | |
8106cdd5 | 2702 | else |
ad6254c5 AK |
2703 | echo "$as_me: failed program was:" >&5 |
2704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2705 | ||
2706 | eval "$as_ac_Header=no" | |
795ca3e5 | 2707 | fi |
5c7fc7c4 | 2708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 2709 | fi |
ad6254c5 AK |
2710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2711 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2712 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2713 | cat >>confdefs.h <<_ACEOF | |
2714 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2715 | _ACEOF | |
2716 | ||
2717 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2718 | fi |
8106cdd5 | 2719 | |
ad6254c5 AK |
2720 | done |
2721 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2722 | if test $ac_header_dirent = dirent.h; then | |
2723 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
2724 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2725 | if test "${ac_cv_search_opendir+set}" = set; then | |
2726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2727 | else |
ad6254c5 AK |
2728 | ac_func_search_save_LIBS=$LIBS |
2729 | ac_cv_search_opendir=no | |
2730 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2731 | /* confdefs.h. */ |
2732 | _ACEOF | |
2733 | cat confdefs.h >>conftest.$ac_ext | |
2734 | cat >>conftest.$ac_ext <<_ACEOF | |
2735 | /* end confdefs.h. */ | |
2736 | ||
2737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2738 | #ifdef __cplusplus | |
2739 | extern "C" | |
2740 | #endif | |
2741 | /* We use char because int might match the return type of a gcc2 | |
2742 | builtin and then its argument prototype would still apply. */ | |
2743 | char opendir (); | |
2744 | int | |
2745 | main () | |
2746 | { | |
2747 | opendir (); | |
2748 | ; | |
2749 | return 0; | |
2750 | } | |
2751 | _ACEOF | |
2752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2754 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2755 | ac_status=$? |
5c7fc7c4 PC |
2756 | grep -v '^ *+' conftest.er1 >conftest.err |
2757 | rm -f conftest.er1 | |
2758 | cat conftest.err >&5 | |
ad6254c5 AK |
2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2760 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2761 | { ac_try='test -z "$ac_c_werror_flag" |
2762 | || test ! -s conftest.err' | |
2763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2764 | (eval $ac_try) 2>&5 | |
2765 | ac_status=$? | |
2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2767 | (exit $ac_status); }; } && | |
2768 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
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); }; }; then | |
2774 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2775 | else |
ad6254c5 AK |
2776 | echo "$as_me: failed program was:" >&5 |
2777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2778 | ||
2779 | fi | |
5c7fc7c4 PC |
2780 | rm -f conftest.err conftest.$ac_objext \ |
2781 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2782 | if test "$ac_cv_search_opendir" = no; then |
2783 | for ac_lib in dir; do | |
2784 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2785 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2786 | /* confdefs.h. */ |
2787 | _ACEOF | |
2788 | cat confdefs.h >>conftest.$ac_ext | |
2789 | cat >>conftest.$ac_ext <<_ACEOF | |
2790 | /* end confdefs.h. */ | |
795ca3e5 | 2791 | |
ad6254c5 AK |
2792 | /* Override any gcc2 internal prototype to avoid an error. */ |
2793 | #ifdef __cplusplus | |
2794 | extern "C" | |
2795 | #endif | |
2796 | /* We use char because int might match the return type of a gcc2 | |
2797 | builtin and then its argument prototype would still apply. */ | |
2798 | char opendir (); | |
2799 | int | |
2800 | main () | |
2801 | { | |
2802 | opendir (); | |
2803 | ; | |
2804 | return 0; | |
2805 | } | |
2806 | _ACEOF | |
2807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2809 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2810 | ac_status=$? |
5c7fc7c4 PC |
2811 | grep -v '^ *+' conftest.er1 >conftest.err |
2812 | rm -f conftest.er1 | |
2813 | cat conftest.err >&5 | |
ad6254c5 AK |
2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2815 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2816 | { ac_try='test -z "$ac_c_werror_flag" |
2817 | || test ! -s conftest.err' | |
2818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2819 | (eval $ac_try) 2>&5 | |
2820 | ac_status=$? | |
2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2822 | (exit $ac_status); }; } && | |
2823 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2825 | (eval $ac_try) 2>&5 | |
2826 | ac_status=$? | |
2827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2828 | (exit $ac_status); }; }; then | |
2829 | ac_cv_search_opendir="-l$ac_lib" | |
2830 | break | |
795ca3e5 | 2831 | else |
ad6254c5 AK |
2832 | echo "$as_me: failed program was:" >&5 |
2833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 AK |
2834 | |
2835 | fi | |
5c7fc7c4 PC |
2836 | rm -f conftest.err conftest.$ac_objext \ |
2837 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2838 | done |
795ca3e5 | 2839 | fi |
ad6254c5 AK |
2840 | LIBS=$ac_func_search_save_LIBS |
2841 | fi | |
2842 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2843 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2844 | if test "$ac_cv_search_opendir" != no; then | |
2845 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
795ca3e5 AK |
2846 | |
2847 | fi | |
2848 | ||
795ca3e5 | 2849 | else |
ad6254c5 AK |
2850 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2851 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2852 | if test "${ac_cv_search_opendir+set}" = set; then | |
2853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2854 | else | |
2855 | ac_func_search_save_LIBS=$LIBS | |
2856 | ac_cv_search_opendir=no | |
2857 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2858 | /* confdefs.h. */ |
2859 | _ACEOF | |
2860 | cat confdefs.h >>conftest.$ac_ext | |
2861 | cat >>conftest.$ac_ext <<_ACEOF | |
2862 | /* end confdefs.h. */ | |
80992638 | 2863 | |
ad6254c5 AK |
2864 | /* Override any gcc2 internal prototype to avoid an error. */ |
2865 | #ifdef __cplusplus | |
2866 | extern "C" | |
2867 | #endif | |
2868 | /* We use char because int might match the return type of a gcc2 | |
2869 | builtin and then its argument prototype would still apply. */ | |
2870 | char opendir (); | |
2871 | int | |
2872 | main () | |
2873 | { | |
2874 | opendir (); | |
2875 | ; | |
2876 | return 0; | |
2877 | } | |
2878 | _ACEOF | |
2879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2881 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2882 | ac_status=$? |
5c7fc7c4 PC |
2883 | grep -v '^ *+' conftest.er1 >conftest.err |
2884 | rm -f conftest.er1 | |
2885 | cat conftest.err >&5 | |
ad6254c5 AK |
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2887 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2888 | { ac_try='test -z "$ac_c_werror_flag" |
2889 | || test ! -s conftest.err' | |
2890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2891 | (eval $ac_try) 2>&5 | |
2892 | ac_status=$? | |
2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2894 | (exit $ac_status); }; } && | |
2895 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2897 | (eval $ac_try) 2>&5 | |
2898 | ac_status=$? | |
2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2900 | (exit $ac_status); }; }; then | |
2901 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2902 | else |
ad6254c5 AK |
2903 | echo "$as_me: failed program was:" >&5 |
2904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2905 | ||
2906 | fi | |
5c7fc7c4 PC |
2907 | rm -f conftest.err conftest.$ac_objext \ |
2908 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2909 | if test "$ac_cv_search_opendir" = no; then |
2910 | for ac_lib in x; do | |
2911 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2912 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2913 | /* confdefs.h. */ |
2914 | _ACEOF | |
2915 | cat confdefs.h >>conftest.$ac_ext | |
2916 | cat >>conftest.$ac_ext <<_ACEOF | |
2917 | /* end confdefs.h. */ | |
2918 | ||
2919 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2920 | #ifdef __cplusplus | |
2921 | extern "C" | |
2922 | #endif | |
2923 | /* We use char because int might match the return type of a gcc2 | |
2924 | builtin and then its argument prototype would still apply. */ | |
2925 | char opendir (); | |
2926 | int | |
2927 | main () | |
2928 | { | |
2929 | opendir (); | |
2930 | ; | |
2931 | return 0; | |
2932 | } | |
2933 | _ACEOF | |
2934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2936 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2937 | ac_status=$? |
5c7fc7c4 PC |
2938 | grep -v '^ *+' conftest.er1 >conftest.err |
2939 | rm -f conftest.er1 | |
2940 | cat conftest.err >&5 | |
ad6254c5 AK |
2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2942 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2943 | { ac_try='test -z "$ac_c_werror_flag" |
2944 | || test ! -s conftest.err' | |
2945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2946 | (eval $ac_try) 2>&5 | |
2947 | ac_status=$? | |
2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2949 | (exit $ac_status); }; } && | |
2950 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2952 | (eval $ac_try) 2>&5 | |
2953 | ac_status=$? | |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2955 | (exit $ac_status); }; }; then | |
2956 | ac_cv_search_opendir="-l$ac_lib" | |
2957 | break | |
2958 | else | |
2959 | echo "$as_me: failed program was:" >&5 | |
2960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2961 | |
795ca3e5 | 2962 | fi |
5c7fc7c4 PC |
2963 | rm -f conftest.err conftest.$ac_objext \ |
2964 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2965 | done |
2966 | fi | |
2967 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 2968 | fi |
ad6254c5 AK |
2969 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
2970 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2971 | if test "$ac_cv_search_opendir" != no; then | |
2972 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8106cdd5 | 2973 | |
ad6254c5 | 2974 | fi |
8106cdd5 | 2975 | |
795ca3e5 | 2976 | fi |
8106cdd5 | 2977 | |
ad6254c5 AK |
2978 | ac_ext=c |
2979 | ac_cpp='$CPP $CPPFLAGS' | |
2980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2983 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2984 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2985 | # On Suns, sometimes $CPP names a directory. | |
2986 | if test -n "$CPP" && test -d "$CPP"; then | |
2987 | CPP= | |
2988 | fi | |
2989 | if test -z "$CPP"; then | |
2990 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2992 | else | |
2993 | # Double quotes because CPP needs to be expanded | |
2994 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2995 | do | |
2996 | ac_preproc_ok=false | |
2997 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 2998 | do |
ad6254c5 AK |
2999 | # Use a header file that comes with gcc, so configuring glibc |
3000 | # with a fresh cross-compiler works. | |
3001 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3002 | # <limits.h> exists even on freestanding compilers. | |
3003 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3004 | # not just through cpp. "Syntax error" is here to catch this case. | |
3005 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3006 | /* confdefs.h. */ |
3007 | _ACEOF | |
3008 | cat confdefs.h >>conftest.$ac_ext | |
3009 | cat >>conftest.$ac_ext <<_ACEOF | |
3010 | /* end confdefs.h. */ | |
3011 | #ifdef __STDC__ | |
3012 | # include <limits.h> | |
3013 | #else | |
3014 | # include <assert.h> | |
3015 | #endif | |
5c7fc7c4 | 3016 | Syntax error |
ad6254c5 AK |
3017 | _ACEOF |
3018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3020 | ac_status=$? | |
3021 | grep -v '^ *+' conftest.er1 >conftest.err | |
3022 | rm -f conftest.er1 | |
3023 | cat conftest.err >&5 | |
3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3025 | (exit $ac_status); } >/dev/null; then | |
3026 | if test -s conftest.err; then | |
3027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3029 | else |
3030 | ac_cpp_err= | |
3031 | fi | |
3032 | else | |
3033 | ac_cpp_err=yes | |
8106cdd5 | 3034 | fi |
ad6254c5 AK |
3035 | if test -z "$ac_cpp_err"; then |
3036 | : | |
3037 | else | |
3038 | echo "$as_me: failed program was:" >&5 | |
3039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3040 | ||
3041 | # Broken: fails on valid input. | |
3042 | continue | |
3043 | fi | |
3044 | rm -f conftest.err conftest.$ac_ext | |
3045 | ||
3046 | # OK, works on sane cases. Now check whether non-existent headers | |
3047 | # can be detected and how. | |
3048 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3049 | /* confdefs.h. */ |
3050 | _ACEOF | |
3051 | cat confdefs.h >>conftest.$ac_ext | |
3052 | cat >>conftest.$ac_ext <<_ACEOF | |
3053 | /* end confdefs.h. */ | |
3054 | #include <ac_nonexistent.h> | |
3055 | _ACEOF | |
3056 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3058 | ac_status=$? | |
3059 | grep -v '^ *+' conftest.er1 >conftest.err | |
3060 | rm -f conftest.er1 | |
3061 | cat conftest.err >&5 | |
3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3063 | (exit $ac_status); } >/dev/null; then | |
3064 | if test -s conftest.err; then | |
3065 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3067 | else |
3068 | ac_cpp_err= | |
3069 | fi | |
3070 | else | |
3071 | ac_cpp_err=yes | |
8106cdd5 | 3072 | fi |
ad6254c5 AK |
3073 | if test -z "$ac_cpp_err"; then |
3074 | # Broken: success on invalid input. | |
3075 | continue | |
80992638 | 3076 | else |
ad6254c5 AK |
3077 | echo "$as_me: failed program was:" >&5 |
3078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3079 | ||
3080 | # Passes both tests. | |
3081 | ac_preproc_ok=: | |
3082 | break | |
795ca3e5 | 3083 | fi |
ad6254c5 AK |
3084 | rm -f conftest.err conftest.$ac_ext |
3085 | ||
795ca3e5 | 3086 | done |
ad6254c5 AK |
3087 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3088 | rm -f conftest.err conftest.$ac_ext | |
3089 | if $ac_preproc_ok; then | |
3090 | break | |
3091 | fi | |
795ca3e5 | 3092 | |
ad6254c5 AK |
3093 | done |
3094 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3095 | |
ad6254c5 AK |
3096 | fi |
3097 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3098 | else |
ad6254c5 | 3099 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3100 | fi |
ad6254c5 AK |
3101 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3102 | echo "${ECHO_T}$CPP" >&6 | |
3103 | ac_preproc_ok=false | |
3104 | for ac_c_preproc_warn_flag in '' yes | |
3105 | do | |
3106 | # Use a header file that comes with gcc, so configuring glibc | |
3107 | # with a fresh cross-compiler works. | |
3108 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3109 | # <limits.h> exists even on freestanding compilers. | |
3110 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3111 | # not just through cpp. "Syntax error" is here to catch this case. | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3113 | /* confdefs.h. */ |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | #ifdef __STDC__ | |
3119 | # include <limits.h> | |
3120 | #else | |
3121 | # include <assert.h> | |
3122 | #endif | |
5c7fc7c4 | 3123 | Syntax error |
ad6254c5 AK |
3124 | _ACEOF |
3125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3127 | ac_status=$? | |
3128 | grep -v '^ *+' conftest.er1 >conftest.err | |
3129 | rm -f conftest.er1 | |
3130 | cat conftest.err >&5 | |
3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3132 | (exit $ac_status); } >/dev/null; then | |
3133 | if test -s conftest.err; then | |
3134 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3136 | else |
3137 | ac_cpp_err= | |
3138 | fi | |
3139 | else | |
3140 | ac_cpp_err=yes | |
795ca3e5 | 3141 | fi |
ad6254c5 AK |
3142 | if test -z "$ac_cpp_err"; then |
3143 | : | |
3144 | else | |
3145 | echo "$as_me: failed program was:" >&5 | |
3146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3147 | ||
3148 | # Broken: fails on valid input. | |
3149 | continue | |
3150 | fi | |
3151 | rm -f conftest.err conftest.$ac_ext | |
3152 | ||
3153 | # OK, works on sane cases. Now check whether non-existent headers | |
3154 | # can be detected and how. | |
3155 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3156 | /* confdefs.h. */ |
3157 | _ACEOF | |
3158 | cat confdefs.h >>conftest.$ac_ext | |
3159 | cat >>conftest.$ac_ext <<_ACEOF | |
3160 | /* end confdefs.h. */ | |
3161 | #include <ac_nonexistent.h> | |
3162 | _ACEOF | |
3163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3165 | ac_status=$? | |
3166 | grep -v '^ *+' conftest.er1 >conftest.err | |
3167 | rm -f conftest.er1 | |
3168 | cat conftest.err >&5 | |
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3170 | (exit $ac_status); } >/dev/null; then | |
3171 | if test -s conftest.err; then | |
3172 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3174 | else |
3175 | ac_cpp_err= | |
3176 | fi | |
3177 | else | |
3178 | ac_cpp_err=yes | |
3179 | fi | |
3180 | if test -z "$ac_cpp_err"; then | |
3181 | # Broken: success on invalid input. | |
3182 | continue | |
3183 | else | |
3184 | echo "$as_me: failed program was:" >&5 | |
3185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3186 | |
ad6254c5 AK |
3187 | # Passes both tests. |
3188 | ac_preproc_ok=: | |
3189 | break | |
795ca3e5 | 3190 | fi |
ad6254c5 | 3191 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3192 | |
ad6254c5 AK |
3193 | done |
3194 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3195 | rm -f conftest.err conftest.$ac_ext | |
3196 | if $ac_preproc_ok; then | |
3197 | : | |
795ca3e5 | 3198 | else |
ad6254c5 AK |
3199 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3200 | See \`config.log' for more details." >&5 | |
3201 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3202 | See \`config.log' for more details." >&2;} | |
3203 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3204 | fi |
795ca3e5 | 3205 | |
ad6254c5 AK |
3206 | ac_ext=c |
3207 | ac_cpp='$CPP $CPPFLAGS' | |
3208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3211 | ||
3212 | ||
3213 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3214 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3215 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3217 | else | |
3218 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3219 | then ac_cv_prog_egrep='grep -E' | |
3220 | else ac_cv_prog_egrep='egrep' | |
3221 | fi | |
795ca3e5 | 3222 | fi |
ad6254c5 AK |
3223 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3224 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3225 | EGREP=$ac_cv_prog_egrep | |
80992638 | 3226 | |
795ca3e5 | 3227 | |
ad6254c5 AK |
3228 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3229 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3230 | if test "${ac_cv_header_stdc+set}" = set; then | |
3231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3232 | else |
ad6254c5 | 3233 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3234 | /* confdefs.h. */ |
3235 | _ACEOF | |
3236 | cat confdefs.h >>conftest.$ac_ext | |
3237 | cat >>conftest.$ac_ext <<_ACEOF | |
3238 | /* end confdefs.h. */ | |
80992638 | 3239 | #include <stdlib.h> |
ad6254c5 AK |
3240 | #include <stdarg.h> |
3241 | #include <string.h> | |
3242 | #include <float.h> | |
3243 | ||
3244 | int | |
3245 | main () | |
3246 | { | |
3247 | ||
3248 | ; | |
3249 | return 0; | |
3250 | } | |
3251 | _ACEOF | |
3252 | rm -f conftest.$ac_objext | |
3253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3254 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3255 | ac_status=$? |
5c7fc7c4 PC |
3256 | grep -v '^ *+' conftest.er1 >conftest.err |
3257 | rm -f conftest.er1 | |
3258 | cat conftest.err >&5 | |
ad6254c5 AK |
3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3260 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3261 | { ac_try='test -z "$ac_c_werror_flag" |
3262 | || test ! -s conftest.err' | |
3263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3264 | (eval $ac_try) 2>&5 | |
3265 | ac_status=$? | |
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3267 | (exit $ac_status); }; } && | |
3268 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3270 | (eval $ac_try) 2>&5 | |
3271 | ac_status=$? | |
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3273 | (exit $ac_status); }; }; then | |
3274 | ac_cv_header_stdc=yes | |
795ca3e5 | 3275 | else |
ad6254c5 AK |
3276 | echo "$as_me: failed program was:" >&5 |
3277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3278 | ||
3279 | ac_cv_header_stdc=no | |
795ca3e5 | 3280 | fi |
5c7fc7c4 | 3281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3282 | |
3283 | if test $ac_cv_header_stdc = yes; then | |
3284 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3285 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3286 | /* confdefs.h. */ |
3287 | _ACEOF | |
3288 | cat confdefs.h >>conftest.$ac_ext | |
3289 | cat >>conftest.$ac_ext <<_ACEOF | |
3290 | /* end confdefs.h. */ | |
3291 | #include <string.h> | |
8106cdd5 | 3292 | |
ad6254c5 AK |
3293 | _ACEOF |
3294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3295 | $EGREP "memchr" >/dev/null 2>&1; then | |
3296 | : | |
3297 | else | |
3298 | ac_cv_header_stdc=no | |
80992638 | 3299 | fi |
ad6254c5 | 3300 | rm -f conftest* |
795ca3e5 AK |
3301 | |
3302 | fi | |
3303 | ||
ad6254c5 AK |
3304 | if test $ac_cv_header_stdc = yes; then |
3305 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3306 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3307 | /* confdefs.h. */ |
3308 | _ACEOF | |
3309 | cat confdefs.h >>conftest.$ac_ext | |
3310 | cat >>conftest.$ac_ext <<_ACEOF | |
3311 | /* end confdefs.h. */ | |
80992638 | 3312 | #include <stdlib.h> |
ad6254c5 AK |
3313 | |
3314 | _ACEOF | |
80992638 | 3315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3316 | $EGREP "free" >/dev/null 2>&1; then |
3317 | : | |
795ca3e5 | 3318 | else |
ad6254c5 | 3319 | ac_cv_header_stdc=no |
795ca3e5 | 3320 | fi |
80992638 | 3321 | rm -f conftest* |
8106cdd5 | 3322 | |
795ca3e5 AK |
3323 | fi |
3324 | ||
ad6254c5 AK |
3325 | if test $ac_cv_header_stdc = yes; then |
3326 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3327 | if test "$cross_compiling" = yes; then | |
3328 | : | |
795ca3e5 | 3329 | else |
ad6254c5 | 3330 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3331 | /* confdefs.h. */ |
3332 | _ACEOF | |
3333 | cat confdefs.h >>conftest.$ac_ext | |
3334 | cat >>conftest.$ac_ext <<_ACEOF | |
3335 | /* end confdefs.h. */ | |
3336 | #include <ctype.h> | |
3337 | #if ((' ' & 0x0FF) == 0x020) | |
3338 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3339 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3340 | #else | |
3341 | # define ISLOWER(c) \ | |
5c7fc7c4 PC |
3342 | (('a' <= (c) && (c) <= 'i') \ |
3343 | || ('j' <= (c) && (c) <= 'r') \ | |
3344 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3345 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3346 | #endif |
ad6254c5 AK |
3347 | |
3348 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3349 | int | |
3350 | main () | |
3351 | { | |
3352 | int i; | |
3353 | for (i = 0; i < 256; i++) | |
3354 | if (XOR (islower (i), ISLOWER (i)) | |
5c7fc7c4 | 3355 | || toupper (i) != TOUPPER (i)) |
ad6254c5 AK |
3356 | exit(2); |
3357 | exit (0); | |
3358 | } | |
3359 | _ACEOF | |
3360 | rm -f conftest$ac_exeext | |
3361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3362 | (eval $ac_link) 2>&5 | |
3363 | ac_status=$? | |
3364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3365 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3367 | (eval $ac_try) 2>&5 | |
3368 | ac_status=$? | |
3369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3370 | (exit $ac_status); }; }; then | |
3371 | : | |
795ca3e5 | 3372 | else |
ad6254c5 AK |
3373 | echo "$as_me: program exited with status $ac_status" >&5 |
3374 | echo "$as_me: failed program was:" >&5 | |
3375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3376 | |
ad6254c5 AK |
3377 | ( exit $ac_status ) |
3378 | ac_cv_header_stdc=no | |
80992638 | 3379 | fi |
5c7fc7c4 | 3380 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3381 | fi |
3382 | fi | |
3383 | fi | |
3384 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3385 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3386 | if test $ac_cv_header_stdc = yes; then | |
3387 | ||
3388 | cat >>confdefs.h <<\_ACEOF | |
3389 | #define STDC_HEADERS 1 | |
3390 | _ACEOF | |
795ca3e5 AK |
3391 | |
3392 | fi | |
3393 | ||
ad6254c5 AK |
3394 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3395 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
3396 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
3397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 3398 | else |
ad6254c5 | 3399 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3400 | /* confdefs.h. */ |
3401 | _ACEOF | |
3402 | cat confdefs.h >>conftest.$ac_ext | |
3403 | cat >>conftest.$ac_ext <<_ACEOF | |
3404 | /* end confdefs.h. */ | |
80992638 | 3405 | #include <sys/types.h> |
ad6254c5 AK |
3406 | #include <sys/wait.h> |
3407 | #ifndef WEXITSTATUS | |
3408 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3409 | #endif | |
3410 | #ifndef WIFEXITED | |
3411 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3412 | #endif | |
3413 | ||
3414 | int | |
3415 | main () | |
3416 | { | |
3417 | int s; | |
3418 | wait (&s); | |
3419 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3420 | ; | |
3421 | return 0; | |
3422 | } | |
3423 | _ACEOF | |
3424 | rm -f conftest.$ac_objext | |
3425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3426 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3427 | ac_status=$? |
5c7fc7c4 PC |
3428 | grep -v '^ *+' conftest.er1 >conftest.err |
3429 | rm -f conftest.er1 | |
3430 | cat conftest.err >&5 | |
ad6254c5 AK |
3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3432 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3433 | { ac_try='test -z "$ac_c_werror_flag" |
3434 | || test ! -s conftest.err' | |
3435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3436 | (eval $ac_try) 2>&5 | |
3437 | ac_status=$? | |
3438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3439 | (exit $ac_status); }; } && | |
3440 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3442 | (eval $ac_try) 2>&5 | |
3443 | ac_status=$? | |
3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3445 | (exit $ac_status); }; }; then | |
3446 | ac_cv_header_sys_wait_h=yes | |
3447 | else | |
3448 | echo "$as_me: failed program was:" >&5 | |
3449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3450 | ||
3451 | ac_cv_header_sys_wait_h=no | |
8106cdd5 | 3452 | fi |
5c7fc7c4 | 3453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3454 | fi |
ad6254c5 AK |
3455 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
3456 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
3457 | if test $ac_cv_header_sys_wait_h = yes; then | |
8106cdd5 | 3458 | |
ad6254c5 AK |
3459 | cat >>confdefs.h <<\_ACEOF |
3460 | #define HAVE_SYS_WAIT_H 1 | |
3461 | _ACEOF | |
795ca3e5 AK |
3462 | |
3463 | fi | |
3464 | ||
ad6254c5 AK |
3465 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
3466 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3467 | if test "${ac_cv_header_time+set}" = set; then | |
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3469 | else |
ad6254c5 | 3470 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3471 | /* confdefs.h. */ |
3472 | _ACEOF | |
3473 | cat confdefs.h >>conftest.$ac_ext | |
3474 | cat >>conftest.$ac_ext <<_ACEOF | |
3475 | /* end confdefs.h. */ | |
795ca3e5 AK |
3476 | #include <sys/types.h> |
3477 | #include <sys/time.h> | |
3478 | #include <time.h> | |
ad6254c5 AK |
3479 | |
3480 | int | |
3481 | main () | |
3482 | { | |
3483 | if ((struct tm *) 0) | |
3484 | return 0; | |
3485 | ; | |
3486 | return 0; | |
3487 | } | |
3488 | _ACEOF | |
3489 | rm -f conftest.$ac_objext | |
3490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3491 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3492 | ac_status=$? |
5c7fc7c4 PC |
3493 | grep -v '^ *+' conftest.er1 >conftest.err |
3494 | rm -f conftest.er1 | |
3495 | cat conftest.err >&5 | |
ad6254c5 AK |
3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3497 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3498 | { ac_try='test -z "$ac_c_werror_flag" |
3499 | || test ! -s conftest.err' | |
3500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3501 | (eval $ac_try) 2>&5 | |
3502 | ac_status=$? | |
3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3504 | (exit $ac_status); }; } && | |
3505 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3507 | (eval $ac_try) 2>&5 | |
3508 | ac_status=$? | |
3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3510 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3511 | ac_cv_header_time=yes |
3512 | else | |
ad6254c5 AK |
3513 | echo "$as_me: failed program was:" >&5 |
3514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3515 | ||
3516 | ac_cv_header_time=no | |
795ca3e5 | 3517 | fi |
5c7fc7c4 | 3518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3519 | fi |
ad6254c5 AK |
3520 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3521 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
80992638 | 3522 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
3523 | |
3524 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3525 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 3526 | _ACEOF |
b896caa1 | 3527 | |
8106cdd5 | 3528 | fi |
b896caa1 | 3529 | |
b896caa1 | 3530 | |
ad6254c5 | 3531 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 3532 | |
b896caa1 AK |
3533 | |
3534 | ||
795ca3e5 | 3535 | |
8106cdd5 | 3536 | |
80992638 | 3537 | |
795ca3e5 | 3538 | |
a38df97f | 3539 | |
80992638 | 3540 | |
ad6254c5 | 3541 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5c7fc7c4 | 3542 | inttypes.h stdint.h unistd.h |
ad6254c5 AK |
3543 | do |
3544 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3549 | else | |
3550 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3551 | /* confdefs.h. */ |
3552 | _ACEOF | |
3553 | cat confdefs.h >>conftest.$ac_ext | |
3554 | cat >>conftest.$ac_ext <<_ACEOF | |
3555 | /* end confdefs.h. */ | |
3556 | $ac_includes_default | |
3557 | ||
3558 | #include <$ac_header> | |
3559 | _ACEOF | |
3560 | rm -f conftest.$ac_objext | |
3561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3562 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3563 | ac_status=$? |
5c7fc7c4 PC |
3564 | grep -v '^ *+' conftest.er1 >conftest.err |
3565 | rm -f conftest.er1 | |
3566 | cat conftest.err >&5 | |
ad6254c5 AK |
3567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3568 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3569 | { ac_try='test -z "$ac_c_werror_flag" |
3570 | || test ! -s conftest.err' | |
3571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3572 | (eval $ac_try) 2>&5 | |
3573 | ac_status=$? | |
3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3575 | (exit $ac_status); }; } && | |
3576 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3578 | (eval $ac_try) 2>&5 | |
3579 | ac_status=$? | |
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3581 | (exit $ac_status); }; }; then | |
3582 | eval "$as_ac_Header=yes" | |
3583 | else | |
3584 | echo "$as_me: failed program was:" >&5 | |
3585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3586 | |
ad6254c5 AK |
3587 | eval "$as_ac_Header=no" |
3588 | fi | |
5c7fc7c4 | 3589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a38df97f | 3590 | fi |
ad6254c5 AK |
3591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3594 | cat >>confdefs.h <<_ACEOF | |
3595 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3596 | _ACEOF | |
a38df97f | 3597 | |
80992638 AK |
3598 | fi |
3599 | ||
ad6254c5 AK |
3600 | done |
3601 | ||
7d1552c9 | 3602 | |
7d1552c9 | 3603 | |
80992638 | 3604 | |
5a52dca9 | 3605 | |
5a52dca9 | 3606 | |
ad6254c5 AK |
3607 | |
3608 | ||
3609 | ||
3610 | ||
3611 | ||
3612 | 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 | |
3613 | do | |
3614 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3616 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3620 | fi | |
3621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3623 | else | |
3624 | # Is the header compilable? | |
3625 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3626 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3627 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3628 | /* confdefs.h. */ |
3629 | _ACEOF | |
3630 | cat confdefs.h >>conftest.$ac_ext | |
3631 | cat >>conftest.$ac_ext <<_ACEOF | |
3632 | /* end confdefs.h. */ | |
3633 | $ac_includes_default | |
3634 | #include <$ac_header> | |
3635 | _ACEOF | |
3636 | rm -f conftest.$ac_objext | |
3637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3638 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3639 | ac_status=$? |
5c7fc7c4 PC |
3640 | grep -v '^ *+' conftest.er1 >conftest.err |
3641 | rm -f conftest.er1 | |
3642 | cat conftest.err >&5 | |
ad6254c5 AK |
3643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3644 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3645 | { ac_try='test -z "$ac_c_werror_flag" |
3646 | || test ! -s conftest.err' | |
3647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3648 | (eval $ac_try) 2>&5 | |
3649 | ac_status=$? | |
3650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3651 | (exit $ac_status); }; } && | |
3652 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3654 | (eval $ac_try) 2>&5 | |
3655 | ac_status=$? | |
3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3657 | (exit $ac_status); }; }; then | |
3658 | ac_header_compiler=yes | |
3659 | else | |
3660 | echo "$as_me: failed program was:" >&5 | |
3661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3662 | ||
3663 | ac_header_compiler=no | |
3664 | fi | |
5c7fc7c4 | 3665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3667 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3668 | ||
3669 | # Is the header present? | |
3670 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3671 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3672 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3673 | /* confdefs.h. */ |
3674 | _ACEOF | |
3675 | cat confdefs.h >>conftest.$ac_ext | |
3676 | cat >>conftest.$ac_ext <<_ACEOF | |
3677 | /* end confdefs.h. */ | |
3678 | #include <$ac_header> | |
3679 | _ACEOF | |
3680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3682 | ac_status=$? | |
3683 | grep -v '^ *+' conftest.er1 >conftest.err | |
3684 | rm -f conftest.er1 | |
3685 | cat conftest.err >&5 | |
3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3687 | (exit $ac_status); } >/dev/null; then | |
3688 | if test -s conftest.err; then | |
3689 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3691 | else |
3692 | ac_cpp_err= | |
3693 | fi | |
3694 | else | |
3695 | ac_cpp_err=yes | |
3696 | fi | |
3697 | if test -z "$ac_cpp_err"; then | |
3698 | ac_header_preproc=yes | |
3699 | else | |
3700 | echo "$as_me: failed program was:" >&5 | |
3701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3702 | ||
3703 | ac_header_preproc=no | |
3704 | fi | |
3705 | rm -f conftest.err conftest.$ac_ext | |
3706 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3707 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3708 | ||
3709 | # So? What about this header? | |
5c7fc7c4 PC |
3710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3711 | yes:no: ) | |
ad6254c5 AK |
3712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
3714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3716 | ac_header_preproc=yes | |
ad6254c5 | 3717 | ;; |
5c7fc7c4 | 3718 | no:yes:* ) |
ad6254c5 AK |
3719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
3721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
3729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3731 | ( |
3732 | cat <<\_ASBOX | |
5c7fc7c4 PC |
3733 | ## ------------------------------------------ ## |
3734 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3735 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3736 | _ASBOX |
3737 | ) | | |
3738 | sed "s/^/$as_me: WARNING: /" >&2 | |
3739 | ;; | |
3740 | esac | |
3741 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3745 | else | |
5c7fc7c4 | 3746 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 3747 | fi |
ad6254c5 AK |
3748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3749 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3750 | ||
3751 | fi | |
3752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3753 | cat >>confdefs.h <<_ACEOF | |
3754 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3755 | _ACEOF | |
b896caa1 | 3756 | |
d8ac0fbc | 3757 | else |
ad6254c5 AK |
3758 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3759 | echo "$as_me: error: bailing out" >&2;} | |
3760 | { (exit 1); exit 1; }; } | |
80992638 AK |
3761 | fi |
3762 | ||
ad6254c5 | 3763 | done |
d8ac0fbc | 3764 | |
d8ac0fbc | 3765 | |
d8ac0fbc | 3766 | |
80992638 | 3767 | |
d3c8211f | 3768 | |
d3c8211f | 3769 | |
d3c8211f | 3770 | |
80992638 | 3771 | |
4922197a | 3772 | |
4922197a | 3773 | |
ad6254c5 AK |
3774 | |
3775 | ||
3776 | ||
3777 | 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 | |
3778 | do | |
3779 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3785 | fi | |
3786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3788 | else | |
3789 | # Is the header compilable? | |
3790 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3792 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3793 | /* confdefs.h. */ |
3794 | _ACEOF | |
3795 | cat confdefs.h >>conftest.$ac_ext | |
3796 | cat >>conftest.$ac_ext <<_ACEOF | |
3797 | /* end confdefs.h. */ | |
3798 | $ac_includes_default | |
3799 | #include <$ac_header> | |
3800 | _ACEOF | |
3801 | rm -f conftest.$ac_objext | |
3802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3803 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3804 | ac_status=$? |
5c7fc7c4 PC |
3805 | grep -v '^ *+' conftest.er1 >conftest.err |
3806 | rm -f conftest.er1 | |
3807 | cat conftest.err >&5 | |
ad6254c5 AK |
3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3809 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3810 | { ac_try='test -z "$ac_c_werror_flag" |
3811 | || test ! -s conftest.err' | |
3812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3813 | (eval $ac_try) 2>&5 | |
3814 | ac_status=$? | |
3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3816 | (exit $ac_status); }; } && | |
3817 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3819 | (eval $ac_try) 2>&5 | |
3820 | ac_status=$? | |
3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3822 | (exit $ac_status); }; }; then | |
3823 | ac_header_compiler=yes | |
3824 | else | |
3825 | echo "$as_me: failed program was:" >&5 | |
3826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3827 | ||
3828 | ac_header_compiler=no | |
3829 | fi | |
5c7fc7c4 | 3830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3831 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3832 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3833 | ||
3834 | # Is the header present? | |
3835 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3836 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3837 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3838 | /* confdefs.h. */ |
3839 | _ACEOF | |
3840 | cat confdefs.h >>conftest.$ac_ext | |
3841 | cat >>conftest.$ac_ext <<_ACEOF | |
3842 | /* end confdefs.h. */ | |
3843 | #include <$ac_header> | |
3844 | _ACEOF | |
3845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3847 | ac_status=$? | |
3848 | grep -v '^ *+' conftest.er1 >conftest.err | |
3849 | rm -f conftest.er1 | |
3850 | cat conftest.err >&5 | |
3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3852 | (exit $ac_status); } >/dev/null; then | |
3853 | if test -s conftest.err; then | |
3854 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3856 | else |
3857 | ac_cpp_err= | |
3858 | fi | |
3859 | else | |
3860 | ac_cpp_err=yes | |
4922197a | 3861 | fi |
ad6254c5 AK |
3862 | if test -z "$ac_cpp_err"; then |
3863 | ac_header_preproc=yes | |
3864 | else | |
3865 | echo "$as_me: failed program was:" >&5 | |
3866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3867 | ||
3868 | ac_header_preproc=no | |
3869 | fi | |
3870 | rm -f conftest.err conftest.$ac_ext | |
3871 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3872 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3873 | ||
3874 | # So? What about this header? | |
5c7fc7c4 PC |
3875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3876 | yes:no: ) | |
ad6254c5 AK |
3877 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3878 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
3879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3880 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3881 | ac_header_preproc=yes | |
ad6254c5 | 3882 | ;; |
5c7fc7c4 | 3883 | no:yes:* ) |
ad6254c5 AK |
3884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
3886 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3887 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3888 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3889 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3890 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3891 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3893 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
3894 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3895 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3896 | ( |
3897 | cat <<\_ASBOX | |
5c7fc7c4 PC |
3898 | ## ------------------------------------------ ## |
3899 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3900 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3901 | _ASBOX |
3902 | ) | | |
3903 | sed "s/^/$as_me: WARNING: /" >&2 | |
3904 | ;; | |
3905 | esac | |
3906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3910 | else | |
5c7fc7c4 | 3911 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
3912 | fi |
3913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3915 | ||
3916 | fi | |
3917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3918 | cat >>confdefs.h <<_ACEOF | |
3919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3920 | _ACEOF | |
4922197a | 3921 | |
4922197a | 3922 | else |
ad6254c5 AK |
3923 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3924 | echo "$as_me: error: bailing out" >&2;} | |
3925 | { (exit 1); exit 1; }; } | |
80992638 AK |
3926 | fi |
3927 | ||
ad6254c5 | 3928 | done |
4922197a | 3929 | |
4922197a | 3930 | |
ad6254c5 AK |
3931 | case "$host_os" in |
3932 | linux*) | |
4922197a | 3933 | |
ad6254c5 AK |
3934 | |
3935 | ||
3936 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
3937 | do | |
3938 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3944 | fi | |
3945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 3947 | else |
ad6254c5 AK |
3948 | # Is the header compilable? |
3949 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3950 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3951 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3952 | /* confdefs.h. */ |
3953 | _ACEOF | |
3954 | cat confdefs.h >>conftest.$ac_ext | |
3955 | cat >>conftest.$ac_ext <<_ACEOF | |
3956 | /* end confdefs.h. */ | |
3957 | $ac_includes_default | |
3958 | #include <$ac_header> | |
3959 | _ACEOF | |
3960 | rm -f conftest.$ac_objext | |
3961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3962 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3963 | ac_status=$? |
5c7fc7c4 PC |
3964 | grep -v '^ *+' conftest.er1 >conftest.err |
3965 | rm -f conftest.er1 | |
3966 | cat conftest.err >&5 | |
ad6254c5 AK |
3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3968 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3969 | { ac_try='test -z "$ac_c_werror_flag" |
3970 | || test ! -s conftest.err' | |
3971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3972 | (eval $ac_try) 2>&5 | |
3973 | ac_status=$? | |
3974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3975 | (exit $ac_status); }; } && | |
3976 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3978 | (eval $ac_try) 2>&5 | |
3979 | ac_status=$? | |
3980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3981 | (exit $ac_status); }; }; then | |
3982 | ac_header_compiler=yes | |
3983 | else | |
3984 | echo "$as_me: failed program was:" >&5 | |
3985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3986 | ||
3987 | ac_header_compiler=no | |
3988 | fi | |
5c7fc7c4 | 3989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3990 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3991 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3992 | ||
3993 | # Is the header present? | |
3994 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3995 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3996 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3997 | /* confdefs.h. */ |
3998 | _ACEOF | |
3999 | cat confdefs.h >>conftest.$ac_ext | |
4000 | cat >>conftest.$ac_ext <<_ACEOF | |
4001 | /* end confdefs.h. */ | |
4002 | #include <$ac_header> | |
4003 | _ACEOF | |
4004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4006 | ac_status=$? | |
4007 | grep -v '^ *+' conftest.er1 >conftest.err | |
4008 | rm -f conftest.er1 | |
4009 | cat conftest.err >&5 | |
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4011 | (exit $ac_status); } >/dev/null; then | |
4012 | if test -s conftest.err; then | |
4013 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 4014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4015 | else |
4016 | ac_cpp_err= | |
4017 | fi | |
4018 | else | |
4019 | ac_cpp_err=yes | |
4020 | fi | |
4021 | if test -z "$ac_cpp_err"; then | |
4022 | ac_header_preproc=yes | |
4023 | else | |
4024 | echo "$as_me: failed program was:" >&5 | |
4025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4026 | ||
4027 | ac_header_preproc=no | |
4028 | fi | |
4029 | rm -f conftest.err conftest.$ac_ext | |
4030 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4031 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4032 | ||
4033 | # So? What about this header? | |
5c7fc7c4 PC |
4034 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4035 | yes:no: ) | |
ad6254c5 AK |
4036 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4037 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
4038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4039 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4040 | ac_header_preproc=yes | |
ad6254c5 | 4041 | ;; |
5c7fc7c4 | 4042 | no:yes:* ) |
ad6254c5 AK |
4043 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4044 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
4045 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4046 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4047 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4048 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4049 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4050 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4051 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4052 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
4053 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4054 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4055 | ( |
4056 | cat <<\_ASBOX | |
5c7fc7c4 PC |
4057 | ## ------------------------------------------ ## |
4058 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4059 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4060 | _ASBOX |
4061 | ) | | |
4062 | sed "s/^/$as_me: WARNING: /" >&2 | |
4063 | ;; | |
4064 | esac | |
4065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4069 | else | |
5c7fc7c4 | 4070 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4071 | fi |
ad6254c5 AK |
4072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 4074 | |
ad6254c5 AK |
4075 | fi |
4076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4077 | cat >>confdefs.h <<_ACEOF | |
4078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4079 | _ACEOF | |
795ca3e5 | 4080 | |
795ca3e5 | 4081 | else |
ad6254c5 AK |
4082 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4083 | echo "$as_me: error: bailing out" >&2;} | |
4084 | { (exit 1); exit 1; }; } | |
80992638 AK |
4085 | fi |
4086 | ||
ad6254c5 AK |
4087 | done |
4088 | ;; | |
4089 | darwin*) | |
4090 | ||
795ca3e5 | 4091 | |
ad6254c5 AK |
4092 | for ac_header in machine/endian.h sys/disk.h |
4093 | do | |
4094 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4096 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4100 | fi | |
4101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4102 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4103 | else | |
4104 | # Is the header compilable? | |
4105 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4106 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4107 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4108 | /* confdefs.h. */ |
4109 | _ACEOF | |
4110 | cat confdefs.h >>conftest.$ac_ext | |
4111 | cat >>conftest.$ac_ext <<_ACEOF | |
4112 | /* end confdefs.h. */ | |
4113 | $ac_includes_default | |
4114 | #include <$ac_header> | |
4115 | _ACEOF | |
4116 | rm -f conftest.$ac_objext | |
4117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4118 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4119 | ac_status=$? |
5c7fc7c4 PC |
4120 | grep -v '^ *+' conftest.er1 >conftest.err |
4121 | rm -f conftest.er1 | |
4122 | cat conftest.err >&5 | |
ad6254c5 AK |
4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4124 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4125 | { ac_try='test -z "$ac_c_werror_flag" |
4126 | || test ! -s conftest.err' | |
4127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4128 | (eval $ac_try) 2>&5 | |
4129 | ac_status=$? | |
4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4131 | (exit $ac_status); }; } && | |
4132 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4134 | (eval $ac_try) 2>&5 | |
4135 | ac_status=$? | |
4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4137 | (exit $ac_status); }; }; then | |
4138 | ac_header_compiler=yes | |
4139 | else | |
4140 | echo "$as_me: failed program was:" >&5 | |
4141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4142 | ||
4143 | ac_header_compiler=no | |
4144 | fi | |
5c7fc7c4 | 4145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4146 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4147 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4148 | ||
4149 | # Is the header present? | |
4150 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4151 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4152 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4153 | /* confdefs.h. */ |
4154 | _ACEOF | |
4155 | cat confdefs.h >>conftest.$ac_ext | |
4156 | cat >>conftest.$ac_ext <<_ACEOF | |
4157 | /* end confdefs.h. */ | |
4158 | #include <$ac_header> | |
4159 | _ACEOF | |
4160 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4161 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4162 | ac_status=$? | |
4163 | grep -v '^ *+' conftest.er1 >conftest.err | |
4164 | rm -f conftest.er1 | |
4165 | cat conftest.err >&5 | |
4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4167 | (exit $ac_status); } >/dev/null; then | |
4168 | if test -s conftest.err; then | |
4169 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 4170 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4171 | else |
4172 | ac_cpp_err= | |
4173 | fi | |
4174 | else | |
4175 | ac_cpp_err=yes | |
4176 | fi | |
4177 | if test -z "$ac_cpp_err"; then | |
4178 | ac_header_preproc=yes | |
4179 | else | |
4180 | echo "$as_me: failed program was:" >&5 | |
4181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4182 | ||
4183 | ac_header_preproc=no | |
4184 | fi | |
4185 | rm -f conftest.err conftest.$ac_ext | |
4186 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4187 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4188 | ||
4189 | # So? What about this header? | |
5c7fc7c4 PC |
4190 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4191 | yes:no: ) | |
ad6254c5 AK |
4192 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4193 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
4194 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4195 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4196 | ac_header_preproc=yes | |
ad6254c5 | 4197 | ;; |
5c7fc7c4 | 4198 | no:yes:* ) |
ad6254c5 AK |
4199 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4200 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
4201 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4202 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4203 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4204 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4205 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4206 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4208 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
4209 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4210 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4211 | ( |
4212 | cat <<\_ASBOX | |
5c7fc7c4 PC |
4213 | ## ------------------------------------------ ## |
4214 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4215 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4216 | _ASBOX |
4217 | ) | | |
4218 | sed "s/^/$as_me: WARNING: /" >&2 | |
4219 | ;; | |
4220 | esac | |
4221 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4222 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4223 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4225 | else | |
5c7fc7c4 | 4226 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4227 | fi |
ad6254c5 AK |
4228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4229 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
b896caa1 | 4230 | |
ad6254c5 AK |
4231 | fi |
4232 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4233 | cat >>confdefs.h <<_ACEOF | |
4234 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4235 | _ACEOF | |
4236 | ||
4237 | else | |
4238 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4239 | echo "$as_me: error: bailing out" >&2;} | |
4240 | { (exit 1); exit 1; }; } | |
80992638 AK |
4241 | fi |
4242 | ||
ad6254c5 AK |
4243 | done |
4244 | ;; | |
4245 | esac | |
d3c8211f | 4246 | |
80992638 | 4247 | ################################################################################ |
ad6254c5 AK |
4248 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4249 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4250 | if test "${ac_cv_c_const+set}" = set; then | |
4251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d3c8211f | 4252 | else |
ad6254c5 | 4253 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4254 | /* confdefs.h. */ |
4255 | _ACEOF | |
4256 | cat confdefs.h >>conftest.$ac_ext | |
4257 | cat >>conftest.$ac_ext <<_ACEOF | |
4258 | /* end confdefs.h. */ | |
4259 | ||
4260 | int | |
4261 | main () | |
4262 | { | |
4263 | /* FIXME: Include the comments suggested by Paul. */ | |
4264 | #ifndef __cplusplus | |
4265 | /* Ultrix mips cc rejects this. */ | |
4266 | typedef int charset[2]; | |
4267 | const charset x; | |
4268 | /* SunOS 4.1.1 cc rejects this. */ | |
4269 | char const *const *ccp; | |
4270 | char **p; | |
4271 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4272 | struct point {int x, y;}; | |
4273 | static struct point const zero = {0,0}; | |
4274 | /* AIX XL C 1.02.0.0 rejects this. | |
4275 | It does not let you subtract one const X* pointer from another in | |
4276 | an arm of an if-expression whose if-part is not a constant | |
4277 | expression */ | |
4278 | const char *g = "string"; | |
4279 | ccp = &g + (g ? g-g : 0); | |
4280 | /* HPUX 7.0 cc rejects these. */ | |
4281 | ++ccp; | |
4282 | p = (char**) ccp; | |
4283 | ccp = (char const *const *) p; | |
4284 | { /* SCO 3.2v4 cc rejects this. */ | |
4285 | char *t; | |
4286 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4287 | ||
4288 | *t++ = 0; | |
4289 | } | |
4290 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4291 | int x[] = {25, 17}; | |
4292 | const int *foo = &x[0]; | |
4293 | ++foo; | |
4294 | } | |
4295 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4296 | typedef const int *iptr; | |
4297 | iptr p = 0; | |
4298 | ++p; | |
4299 | } | |
4300 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4301 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4302 | struct s { int j; const int *ap[3]; }; | |
4303 | struct s *b; b->j = 5; | |
4304 | } | |
4305 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4306 | const int foo = 10; | |
4307 | } | |
4308 | #endif | |
4309 | ||
4310 | ; | |
4311 | return 0; | |
4312 | } | |
4313 | _ACEOF | |
4314 | rm -f conftest.$ac_objext | |
4315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4316 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4317 | ac_status=$? |
5c7fc7c4 PC |
4318 | grep -v '^ *+' conftest.er1 >conftest.err |
4319 | rm -f conftest.er1 | |
4320 | cat conftest.err >&5 | |
ad6254c5 AK |
4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4322 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4323 | { ac_try='test -z "$ac_c_werror_flag" |
4324 | || test ! -s conftest.err' | |
4325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4326 | (eval $ac_try) 2>&5 | |
4327 | ac_status=$? | |
4328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4329 | (exit $ac_status); }; } && | |
4330 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4332 | (eval $ac_try) 2>&5 | |
4333 | ac_status=$? | |
4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4335 | (exit $ac_status); }; }; then | |
4336 | ac_cv_c_const=yes | |
4337 | else | |
4338 | echo "$as_me: failed program was:" >&5 | |
4339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4340 | ||
4341 | ac_cv_c_const=no | |
4342 | fi | |
5c7fc7c4 | 4343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4344 | fi |
ad6254c5 AK |
4345 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4346 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4347 | if test $ac_cv_c_const = no; then | |
80992638 | 4348 | |
ad6254c5 AK |
4349 | cat >>confdefs.h <<\_ACEOF |
4350 | #define const | |
4351 | _ACEOF | |
80992638 | 4352 | |
d3c8211f | 4353 | fi |
d3c8211f | 4354 | |
ad6254c5 AK |
4355 | echo "$as_me:$LINENO: checking for inline" >&5 |
4356 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4357 | if test "${ac_cv_c_inline+set}" = set; then | |
4358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8ef2b021 | 4359 | else |
ad6254c5 AK |
4360 | ac_cv_c_inline=no |
4361 | for ac_kw in inline __inline__ __inline; do | |
4362 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4363 | /* confdefs.h. */ |
4364 | _ACEOF | |
4365 | cat confdefs.h >>conftest.$ac_ext | |
4366 | cat >>conftest.$ac_ext <<_ACEOF | |
4367 | /* end confdefs.h. */ | |
4368 | #ifndef __cplusplus | |
4369 | typedef int foo_t; | |
4370 | static $ac_kw foo_t static_foo () {return 0; } | |
4371 | $ac_kw foo_t foo () {return 0; } | |
4372 | #endif | |
80992638 | 4373 | |
ad6254c5 AK |
4374 | _ACEOF |
4375 | rm -f conftest.$ac_objext | |
4376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4377 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4378 | ac_status=$? |
5c7fc7c4 PC |
4379 | grep -v '^ *+' conftest.er1 >conftest.err |
4380 | rm -f conftest.er1 | |
4381 | cat conftest.err >&5 | |
ad6254c5 AK |
4382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4383 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4384 | { ac_try='test -z "$ac_c_werror_flag" |
4385 | || test ! -s conftest.err' | |
4386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4387 | (eval $ac_try) 2>&5 | |
4388 | ac_status=$? | |
4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4390 | (exit $ac_status); }; } && | |
4391 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4393 | (eval $ac_try) 2>&5 | |
4394 | ac_status=$? | |
4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4396 | (exit $ac_status); }; }; then | |
4397 | ac_cv_c_inline=$ac_kw; break | |
4398 | else | |
4399 | echo "$as_me: failed program was:" >&5 | |
4400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ef2b021 | 4401 | |
8ce0cbda | 4402 | fi |
5c7fc7c4 | 4403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4404 | done |
8ce0cbda | 4405 | |
8ce0cbda | 4406 | fi |
ad6254c5 AK |
4407 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4408 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5c7fc7c4 PC |
4409 | |
4410 | ||
ad6254c5 AK |
4411 | case $ac_cv_c_inline in |
4412 | inline | yes) ;; | |
5c7fc7c4 PC |
4413 | *) |
4414 | case $ac_cv_c_inline in | |
4415 | no) ac_val=;; | |
4416 | *) ac_val=$ac_cv_c_inline;; | |
4417 | esac | |
4418 | cat >>confdefs.h <<_ACEOF | |
4419 | #ifndef __cplusplus | |
4420 | #define inline $ac_val | |
4421 | #endif | |
a266258f | 4422 | _ACEOF |
5c7fc7c4 | 4423 | ;; |
ad6254c5 | 4424 | esac |
8ce0cbda | 4425 | |
ad6254c5 AK |
4426 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4427 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4428 | if test "${ac_cv_type_off_t+set}" = set; then | |
4429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4430 | else | |
4431 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4432 | /* confdefs.h. */ |
4433 | _ACEOF | |
4434 | cat confdefs.h >>conftest.$ac_ext | |
4435 | cat >>conftest.$ac_ext <<_ACEOF | |
4436 | /* end confdefs.h. */ | |
4437 | $ac_includes_default | |
4438 | int | |
4439 | main () | |
4440 | { | |
4441 | if ((off_t *) 0) | |
4442 | return 0; | |
4443 | if (sizeof (off_t)) | |
4444 | return 0; | |
4445 | ; | |
4446 | return 0; | |
4447 | } | |
4448 | _ACEOF | |
4449 | rm -f conftest.$ac_objext | |
4450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4451 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4452 | ac_status=$? |
5c7fc7c4 PC |
4453 | grep -v '^ *+' conftest.er1 >conftest.err |
4454 | rm -f conftest.er1 | |
4455 | cat conftest.err >&5 | |
ad6254c5 AK |
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4457 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4458 | { ac_try='test -z "$ac_c_werror_flag" |
4459 | || test ! -s conftest.err' | |
4460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4461 | (eval $ac_try) 2>&5 | |
4462 | ac_status=$? | |
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4464 | (exit $ac_status); }; } && | |
4465 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4467 | (eval $ac_try) 2>&5 | |
4468 | ac_status=$? | |
4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4470 | (exit $ac_status); }; }; then | |
4471 | ac_cv_type_off_t=yes | |
4472 | else | |
4473 | echo "$as_me: failed program was:" >&5 | |
4474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 4475 | |
ad6254c5 | 4476 | ac_cv_type_off_t=no |
80992638 | 4477 | fi |
5c7fc7c4 | 4478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4479 | fi |
4480 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
4481 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4482 | if test $ac_cv_type_off_t = yes; then | |
4483 | : | |
4484 | else | |
80992638 | 4485 | |
ad6254c5 AK |
4486 | cat >>confdefs.h <<_ACEOF |
4487 | #define off_t long | |
4488 | _ACEOF | |
199e490e | 4489 | |
b896caa1 AK |
4490 | fi |
4491 | ||
ad6254c5 AK |
4492 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
4493 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
4494 | if test "${ac_cv_type_pid_t+set}" = set; then | |
4495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4496 | else | |
4497 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4498 | /* confdefs.h. */ |
4499 | _ACEOF | |
4500 | cat confdefs.h >>conftest.$ac_ext | |
4501 | cat >>conftest.$ac_ext <<_ACEOF | |
4502 | /* end confdefs.h. */ | |
4503 | $ac_includes_default | |
4504 | int | |
4505 | main () | |
4506 | { | |
4507 | if ((pid_t *) 0) | |
4508 | return 0; | |
4509 | if (sizeof (pid_t)) | |
4510 | return 0; | |
4511 | ; | |
4512 | return 0; | |
4513 | } | |
4514 | _ACEOF | |
4515 | rm -f conftest.$ac_objext | |
4516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4517 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4518 | ac_status=$? |
5c7fc7c4 PC |
4519 | grep -v '^ *+' conftest.er1 >conftest.err |
4520 | rm -f conftest.er1 | |
4521 | cat conftest.err >&5 | |
ad6254c5 AK |
4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4523 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4524 | { ac_try='test -z "$ac_c_werror_flag" |
4525 | || test ! -s conftest.err' | |
4526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4527 | (eval $ac_try) 2>&5 | |
4528 | ac_status=$? | |
4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4530 | (exit $ac_status); }; } && | |
4531 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4533 | (eval $ac_try) 2>&5 | |
4534 | ac_status=$? | |
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4536 | (exit $ac_status); }; }; then | |
4537 | ac_cv_type_pid_t=yes | |
4538 | else | |
4539 | echo "$as_me: failed program was:" >&5 | |
4540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4541 | ||
4542 | ac_cv_type_pid_t=no | |
4543 | fi | |
5c7fc7c4 | 4544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4545 | fi |
ad6254c5 AK |
4546 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
4547 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
4548 | if test $ac_cv_type_pid_t = yes; then | |
4549 | : | |
4550 | else | |
80992638 | 4551 | |
ad6254c5 AK |
4552 | cat >>confdefs.h <<_ACEOF |
4553 | #define pid_t int | |
4554 | _ACEOF | |
2dc95e1c | 4555 | |
2dc95e1c AK |
4556 | fi |
4557 | ||
ad6254c5 AK |
4558 | echo "$as_me:$LINENO: checking for size_t" >&5 |
4559 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4560 | if test "${ac_cv_type_size_t+set}" = set; then | |
4561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 4562 | else |
ad6254c5 | 4563 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4564 | /* confdefs.h. */ |
4565 | _ACEOF | |
4566 | cat confdefs.h >>conftest.$ac_ext | |
4567 | cat >>conftest.$ac_ext <<_ACEOF | |
4568 | /* end confdefs.h. */ | |
4569 | $ac_includes_default | |
4570 | int | |
4571 | main () | |
4572 | { | |
4573 | if ((size_t *) 0) | |
4574 | return 0; | |
4575 | if (sizeof (size_t)) | |
4576 | return 0; | |
4577 | ; | |
4578 | return 0; | |
4579 | } | |
4580 | _ACEOF | |
4581 | rm -f conftest.$ac_objext | |
4582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4583 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4584 | ac_status=$? |
5c7fc7c4 PC |
4585 | grep -v '^ *+' conftest.er1 >conftest.err |
4586 | rm -f conftest.er1 | |
4587 | cat conftest.err >&5 | |
ad6254c5 AK |
4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4589 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4590 | { ac_try='test -z "$ac_c_werror_flag" |
4591 | || test ! -s conftest.err' | |
4592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4593 | (eval $ac_try) 2>&5 | |
4594 | ac_status=$? | |
4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4596 | (exit $ac_status); }; } && | |
4597 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4599 | (eval $ac_try) 2>&5 | |
4600 | ac_status=$? | |
4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4602 | (exit $ac_status); }; }; then | |
4603 | ac_cv_type_size_t=yes | |
4604 | else | |
4605 | echo "$as_me: failed program was:" >&5 | |
4606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4607 | ||
4608 | ac_cv_type_size_t=no | |
80992638 | 4609 | fi |
5c7fc7c4 | 4610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4611 | fi |
4612 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
4613 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4614 | if test $ac_cv_type_size_t = yes; then | |
4615 | : | |
4616 | else | |
80992638 | 4617 | |
ad6254c5 AK |
4618 | cat >>confdefs.h <<_ACEOF |
4619 | #define size_t unsigned | |
4620 | _ACEOF | |
8106cdd5 | 4621 | |
8106cdd5 AK |
4622 | fi |
4623 | ||
ad6254c5 AK |
4624 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
4625 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
4626 | if test "${ac_cv_type_mode_t+set}" = set; then | |
4627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4628 | else | |
4629 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4630 | /* confdefs.h. */ |
4631 | _ACEOF | |
4632 | cat confdefs.h >>conftest.$ac_ext | |
4633 | cat >>conftest.$ac_ext <<_ACEOF | |
4634 | /* end confdefs.h. */ | |
4635 | $ac_includes_default | |
4636 | int | |
4637 | main () | |
4638 | { | |
4639 | if ((mode_t *) 0) | |
4640 | return 0; | |
4641 | if (sizeof (mode_t)) | |
4642 | return 0; | |
4643 | ; | |
4644 | return 0; | |
4645 | } | |
4646 | _ACEOF | |
4647 | rm -f conftest.$ac_objext | |
4648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4649 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4650 | ac_status=$? |
5c7fc7c4 PC |
4651 | grep -v '^ *+' conftest.er1 >conftest.err |
4652 | rm -f conftest.er1 | |
4653 | cat conftest.err >&5 | |
ad6254c5 AK |
4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4655 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4656 | { ac_try='test -z "$ac_c_werror_flag" |
4657 | || test ! -s conftest.err' | |
4658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4659 | (eval $ac_try) 2>&5 | |
4660 | ac_status=$? | |
4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4662 | (exit $ac_status); }; } && | |
4663 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4665 | (eval $ac_try) 2>&5 | |
4666 | ac_status=$? | |
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4668 | (exit $ac_status); }; }; then | |
4669 | ac_cv_type_mode_t=yes | |
4670 | else | |
4671 | echo "$as_me: failed program was:" >&5 | |
4672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4673 | ||
4674 | ac_cv_type_mode_t=no | |
80992638 | 4675 | fi |
5c7fc7c4 | 4676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4677 | fi |
4678 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
4679 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
4680 | if test $ac_cv_type_mode_t = yes; then | |
4681 | : | |
4682 | else | |
80992638 | 4683 | |
ad6254c5 AK |
4684 | cat >>confdefs.h <<_ACEOF |
4685 | #define mode_t int | |
4686 | _ACEOF | |
4687 | ||
4688 | fi | |
4689 | ||
4690 | ||
4691 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
4692 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
4693 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
4694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4695 | else | |
4696 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4697 | /* confdefs.h. */ |
4698 | _ACEOF | |
4699 | cat confdefs.h >>conftest.$ac_ext | |
4700 | cat >>conftest.$ac_ext <<_ACEOF | |
4701 | /* end confdefs.h. */ | |
4702 | $ac_includes_default | |
4703 | int | |
4704 | main () | |
4705 | { | |
4706 | static struct stat ac_aggr; | |
4707 | if (ac_aggr.st_rdev) | |
4708 | return 0; | |
4709 | ; | |
4710 | return 0; | |
4711 | } | |
4712 | _ACEOF | |
4713 | rm -f conftest.$ac_objext | |
4714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4715 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4716 | ac_status=$? |
5c7fc7c4 PC |
4717 | grep -v '^ *+' conftest.er1 >conftest.err |
4718 | rm -f conftest.er1 | |
4719 | cat conftest.err >&5 | |
ad6254c5 AK |
4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4721 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4722 | { ac_try='test -z "$ac_c_werror_flag" |
4723 | || test ! -s conftest.err' | |
4724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4725 | (eval $ac_try) 2>&5 | |
4726 | ac_status=$? | |
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4728 | (exit $ac_status); }; } && | |
4729 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4731 | (eval $ac_try) 2>&5 | |
4732 | ac_status=$? | |
4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4734 | (exit $ac_status); }; }; then | |
4735 | ac_cv_member_struct_stat_st_rdev=yes | |
4736 | else | |
4737 | echo "$as_me: failed program was:" >&5 | |
4738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4739 | ||
4740 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4741 | /* confdefs.h. */ |
4742 | _ACEOF | |
4743 | cat confdefs.h >>conftest.$ac_ext | |
4744 | cat >>conftest.$ac_ext <<_ACEOF | |
4745 | /* end confdefs.h. */ | |
4746 | $ac_includes_default | |
4747 | int | |
4748 | main () | |
4749 | { | |
4750 | static struct stat ac_aggr; | |
4751 | if (sizeof ac_aggr.st_rdev) | |
4752 | return 0; | |
4753 | ; | |
4754 | return 0; | |
4755 | } | |
4756 | _ACEOF | |
4757 | rm -f conftest.$ac_objext | |
4758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4759 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4760 | ac_status=$? |
5c7fc7c4 PC |
4761 | grep -v '^ *+' conftest.er1 >conftest.err |
4762 | rm -f conftest.er1 | |
4763 | cat conftest.err >&5 | |
ad6254c5 AK |
4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4765 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4766 | { ac_try='test -z "$ac_c_werror_flag" |
4767 | || test ! -s conftest.err' | |
4768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4769 | (eval $ac_try) 2>&5 | |
4770 | ac_status=$? | |
4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4772 | (exit $ac_status); }; } && | |
4773 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4775 | (eval $ac_try) 2>&5 | |
4776 | ac_status=$? | |
4777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4778 | (exit $ac_status); }; }; then | |
4779 | ac_cv_member_struct_stat_st_rdev=yes | |
4780 | else | |
4781 | echo "$as_me: failed program was:" >&5 | |
4782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4783 | ||
4784 | ac_cv_member_struct_stat_st_rdev=no | |
4785 | fi | |
5c7fc7c4 | 4786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4787 | fi |
5c7fc7c4 | 4788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4789 | fi |
4790 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
4791 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
4792 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
4793 | ||
4794 | cat >>confdefs.h <<_ACEOF | |
4795 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
4796 | _ACEOF | |
4797 | ||
4798 | ||
4799 | cat >>confdefs.h <<\_ACEOF | |
4800 | #define HAVE_ST_RDEV 1 | |
4801 | _ACEOF | |
4802 | ||
4803 | fi | |
4804 | ||
4805 | ||
4806 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4807 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4808 | if test "${ac_cv_struct_tm+set}" = set; then | |
4809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4810 | else | |
4811 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4812 | /* confdefs.h. */ |
4813 | _ACEOF | |
4814 | cat confdefs.h >>conftest.$ac_ext | |
4815 | cat >>conftest.$ac_ext <<_ACEOF | |
4816 | /* end confdefs.h. */ | |
4817 | #include <sys/types.h> | |
4818 | #include <time.h> | |
4819 | ||
4820 | int | |
4821 | main () | |
4822 | { | |
4823 | struct tm *tp; tp->tm_sec; | |
4824 | ; | |
4825 | return 0; | |
4826 | } | |
4827 | _ACEOF | |
4828 | rm -f conftest.$ac_objext | |
4829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4830 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4831 | ac_status=$? |
5c7fc7c4 PC |
4832 | grep -v '^ *+' conftest.er1 >conftest.err |
4833 | rm -f conftest.er1 | |
4834 | cat conftest.err >&5 | |
ad6254c5 AK |
4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4836 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4837 | { ac_try='test -z "$ac_c_werror_flag" |
4838 | || test ! -s conftest.err' | |
4839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4840 | (eval $ac_try) 2>&5 | |
4841 | ac_status=$? | |
4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4843 | (exit $ac_status); }; } && | |
4844 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4846 | (eval $ac_try) 2>&5 | |
4847 | ac_status=$? | |
4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4849 | (exit $ac_status); }; }; then | |
4850 | ac_cv_struct_tm=time.h | |
4851 | else | |
4852 | echo "$as_me: failed program was:" >&5 | |
4853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4854 | ||
4855 | ac_cv_struct_tm=sys/time.h | |
4856 | fi | |
5c7fc7c4 | 4857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4858 | fi |
4859 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
4860 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
4861 | if test $ac_cv_struct_tm = sys/time.h; then | |
4862 | ||
4863 | cat >>confdefs.h <<\_ACEOF | |
4864 | #define TM_IN_SYS_TIME 1 | |
4865 | _ACEOF | |
4866 | ||
4867 | fi | |
809fae91 | 4868 | |
795ca3e5 | 4869 | |
80992638 | 4870 | ################################################################################ |
ad6254c5 AK |
4871 | |
4872 | ||
4873 | ||
4874 | ||
4875 | ||
4876 | ||
4877 | ||
4878 | ||
4879 | ||
4880 | ||
4881 | ||
4882 | ||
4883 | ||
4884 | ||
4885 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
4886 | do | |
4887 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4888 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4889 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4890 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4892 | else |
ad6254c5 | 4893 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4894 | /* confdefs.h. */ |
4895 | _ACEOF | |
4896 | cat confdefs.h >>conftest.$ac_ext | |
4897 | cat >>conftest.$ac_ext <<_ACEOF | |
4898 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
4899 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4901 | #define $ac_func innocuous_$ac_func | |
4902 | ||
ad6254c5 AK |
4903 | /* System header to define __stub macros and hopefully few prototypes, |
4904 | which can conflict with char $ac_func (); below. | |
4905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4906 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 4907 | |
ad6254c5 AK |
4908 | #ifdef __STDC__ |
4909 | # include <limits.h> | |
4910 | #else | |
4911 | # include <assert.h> | |
4912 | #endif | |
5c7fc7c4 PC |
4913 | |
4914 | #undef $ac_func | |
4915 | ||
ad6254c5 AK |
4916 | /* Override any gcc2 internal prototype to avoid an error. */ |
4917 | #ifdef __cplusplus | |
4918 | extern "C" | |
4919 | { | |
4920 | #endif | |
4921 | /* We use char because int might match the return type of a gcc2 | |
4922 | builtin and then its argument prototype would still apply. */ | |
4923 | char $ac_func (); | |
4924 | /* The GNU C library defines this for functions which it implements | |
4925 | to always fail with ENOSYS. Some functions are actually named | |
4926 | something starting with __ and the normal name is an alias. */ | |
4927 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4928 | choke me | |
4929 | #else | |
4930 | char (*f) () = $ac_func; | |
4931 | #endif | |
4932 | #ifdef __cplusplus | |
4933 | } | |
4934 | #endif | |
4935 | ||
4936 | int | |
4937 | main () | |
4938 | { | |
4939 | return f != $ac_func; | |
4940 | ; | |
4941 | return 0; | |
4942 | } | |
4943 | _ACEOF | |
4944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 4946 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 4947 | ac_status=$? |
5c7fc7c4 PC |
4948 | grep -v '^ *+' conftest.er1 >conftest.err |
4949 | rm -f conftest.er1 | |
4950 | cat conftest.err >&5 | |
ad6254c5 AK |
4951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4952 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4953 | { ac_try='test -z "$ac_c_werror_flag" |
4954 | || test ! -s conftest.err' | |
4955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4956 | (eval $ac_try) 2>&5 | |
4957 | ac_status=$? | |
4958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4959 | (exit $ac_status); }; } && | |
4960 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
4961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4962 | (eval $ac_try) 2>&5 | |
4963 | ac_status=$? | |
4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4965 | (exit $ac_status); }; }; then | |
4966 | eval "$as_ac_var=yes" | |
795ca3e5 | 4967 | else |
ad6254c5 AK |
4968 | echo "$as_me: failed program was:" >&5 |
4969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4970 | ||
4971 | eval "$as_ac_var=no" | |
795ca3e5 | 4972 | fi |
5c7fc7c4 PC |
4973 | rm -f conftest.err conftest.$ac_objext \ |
4974 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
4975 | fi |
4976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4977 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4978 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4979 | cat >>confdefs.h <<_ACEOF | |
4980 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4981 | _ACEOF | |
4982 | ||
4983 | else | |
4984 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4985 | echo "$as_me: error: bailing out" >&2;} | |
4986 | { (exit 1); exit 1; }; } | |
4987 | fi | |
4988 | done | |
795ca3e5 | 4989 | |
ad6254c5 AK |
4990 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4991 | # for constant arguments. Useless! | |
4992 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
4993 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
4994 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
4995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4996 | else | |
4997 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4998 | /* confdefs.h. */ |
4999 | _ACEOF | |
5000 | cat confdefs.h >>conftest.$ac_ext | |
5001 | cat >>conftest.$ac_ext <<_ACEOF | |
5002 | /* end confdefs.h. */ | |
5003 | #include <alloca.h> | |
5004 | int | |
5005 | main () | |
5006 | { | |
5007 | char *p = (char *) alloca (2 * sizeof (int)); | |
5008 | ; | |
5009 | return 0; | |
5010 | } | |
5011 | _ACEOF | |
5012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5014 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5015 | ac_status=$? |
5c7fc7c4 PC |
5016 | grep -v '^ *+' conftest.er1 >conftest.err |
5017 | rm -f conftest.er1 | |
5018 | cat conftest.err >&5 | |
ad6254c5 AK |
5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5020 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5021 | { ac_try='test -z "$ac_c_werror_flag" |
5022 | || test ! -s conftest.err' | |
5023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5024 | (eval $ac_try) 2>&5 | |
5025 | ac_status=$? | |
5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5027 | (exit $ac_status); }; } && | |
5028 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5030 | (eval $ac_try) 2>&5 | |
5031 | ac_status=$? | |
5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5033 | (exit $ac_status); }; }; then | |
5034 | ac_cv_working_alloca_h=yes | |
5035 | else | |
5036 | echo "$as_me: failed program was:" >&5 | |
5037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 5038 | |
ad6254c5 AK |
5039 | ac_cv_working_alloca_h=no |
5040 | fi | |
5c7fc7c4 PC |
5041 | rm -f conftest.err conftest.$ac_objext \ |
5042 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5043 | fi |
5044 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5045 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5046 | if test $ac_cv_working_alloca_h = yes; then | |
5047 | ||
5048 | cat >>confdefs.h <<\_ACEOF | |
5049 | #define HAVE_ALLOCA_H 1 | |
5050 | _ACEOF | |
5051 | ||
5052 | fi | |
5053 | ||
5054 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
5055 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5056 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5058 | else | |
5059 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5060 | /* confdefs.h. */ |
5061 | _ACEOF | |
5062 | cat confdefs.h >>conftest.$ac_ext | |
5063 | cat >>conftest.$ac_ext <<_ACEOF | |
5064 | /* end confdefs.h. */ | |
5065 | #ifdef __GNUC__ | |
5066 | # define alloca __builtin_alloca | |
5067 | #else | |
5068 | # ifdef _MSC_VER | |
5069 | # include <malloc.h> | |
5070 | # define alloca _alloca | |
5071 | # else | |
5072 | # if HAVE_ALLOCA_H | |
5073 | # include <alloca.h> | |
5074 | # else | |
5075 | # ifdef _AIX | |
5076 | #pragma alloca | |
5077 | # else | |
5078 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5079 | char *alloca (); | |
5080 | # endif | |
5081 | # endif | |
5082 | # endif | |
5083 | # endif | |
5084 | #endif | |
5085 | ||
5086 | int | |
5087 | main () | |
5088 | { | |
5089 | char *p = (char *) alloca (1); | |
5090 | ; | |
5091 | return 0; | |
5092 | } | |
5093 | _ACEOF | |
5094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5096 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5097 | ac_status=$? |
5c7fc7c4 PC |
5098 | grep -v '^ *+' conftest.er1 >conftest.err |
5099 | rm -f conftest.er1 | |
5100 | cat conftest.err >&5 | |
ad6254c5 AK |
5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5102 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5103 | { ac_try='test -z "$ac_c_werror_flag" |
5104 | || test ! -s conftest.err' | |
5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5106 | (eval $ac_try) 2>&5 | |
5107 | ac_status=$? | |
5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5109 | (exit $ac_status); }; } && | |
5110 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5112 | (eval $ac_try) 2>&5 | |
5113 | ac_status=$? | |
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5115 | (exit $ac_status); }; }; then | |
5116 | ac_cv_func_alloca_works=yes | |
5117 | else | |
5118 | echo "$as_me: failed program was:" >&5 | |
5119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5120 | ||
5121 | ac_cv_func_alloca_works=no | |
5122 | fi | |
5c7fc7c4 PC |
5123 | rm -f conftest.err conftest.$ac_objext \ |
5124 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5125 | fi |
5126 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
5127 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5128 | ||
5129 | if test $ac_cv_func_alloca_works = yes; then | |
5130 | ||
5131 | cat >>confdefs.h <<\_ACEOF | |
5132 | #define HAVE_ALLOCA 1 | |
5133 | _ACEOF | |
5134 | ||
5135 | else | |
5136 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5137 | # that cause trouble. Some versions do not even contain alloca or | |
5138 | # contain a buggy version. If you still want to use their alloca, | |
5139 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5140 | ||
5141 | ALLOCA=alloca.$ac_objext | |
5142 | ||
5143 | cat >>confdefs.h <<\_ACEOF | |
5144 | #define C_ALLOCA 1 | |
5145 | _ACEOF | |
5146 | ||
5147 | ||
5148 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5149 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5150 | if test "${ac_cv_os_cray+set}" = set; then | |
5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5152 | else | |
5153 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5154 | /* confdefs.h. */ |
5155 | _ACEOF | |
5156 | cat confdefs.h >>conftest.$ac_ext | |
5157 | cat >>conftest.$ac_ext <<_ACEOF | |
5158 | /* end confdefs.h. */ | |
5159 | #if defined(CRAY) && ! defined(CRAY2) | |
5160 | webecray | |
5161 | #else | |
5162 | wenotbecray | |
5163 | #endif | |
5164 | ||
5165 | _ACEOF | |
795ca3e5 | 5166 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5167 | $EGREP "webecray" >/dev/null 2>&1; then |
5168 | ac_cv_os_cray=yes | |
5169 | else | |
5170 | ac_cv_os_cray=no | |
795ca3e5 AK |
5171 | fi |
5172 | rm -f conftest* | |
5173 | ||
795ca3e5 | 5174 | fi |
ad6254c5 AK |
5175 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5176 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5177 | if test $ac_cv_os_cray = yes; then | |
5178 | for ac_func in _getb67 GETB67 getb67; do | |
5179 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5180 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5181 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5182 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5184 | else | |
5185 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5186 | /* confdefs.h. */ |
5187 | _ACEOF | |
5188 | cat confdefs.h >>conftest.$ac_ext | |
5189 | cat >>conftest.$ac_ext <<_ACEOF | |
5190 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
5191 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5192 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5193 | #define $ac_func innocuous_$ac_func | |
5194 | ||
ad6254c5 AK |
5195 | /* System header to define __stub macros and hopefully few prototypes, |
5196 | which can conflict with char $ac_func (); below. | |
5197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5198 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 5199 | |
ad6254c5 AK |
5200 | #ifdef __STDC__ |
5201 | # include <limits.h> | |
5202 | #else | |
5203 | # include <assert.h> | |
5204 | #endif | |
5c7fc7c4 PC |
5205 | |
5206 | #undef $ac_func | |
5207 | ||
ad6254c5 AK |
5208 | /* Override any gcc2 internal prototype to avoid an error. */ |
5209 | #ifdef __cplusplus | |
5210 | extern "C" | |
5211 | { | |
5212 | #endif | |
5213 | /* We use char because int might match the return type of a gcc2 | |
5214 | builtin and then its argument prototype would still apply. */ | |
5215 | char $ac_func (); | |
5216 | /* The GNU C library defines this for functions which it implements | |
5217 | to always fail with ENOSYS. Some functions are actually named | |
5218 | something starting with __ and the normal name is an alias. */ | |
5219 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5220 | choke me | |
5221 | #else | |
5222 | char (*f) () = $ac_func; | |
5223 | #endif | |
5224 | #ifdef __cplusplus | |
5225 | } | |
5226 | #endif | |
5227 | ||
5228 | int | |
5229 | main () | |
5230 | { | |
5231 | return f != $ac_func; | |
5232 | ; | |
5233 | return 0; | |
5234 | } | |
5235 | _ACEOF | |
5236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5238 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5239 | ac_status=$? |
5c7fc7c4 PC |
5240 | grep -v '^ *+' conftest.er1 >conftest.err |
5241 | rm -f conftest.er1 | |
5242 | cat conftest.err >&5 | |
ad6254c5 AK |
5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5244 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5245 | { ac_try='test -z "$ac_c_werror_flag" |
5246 | || test ! -s conftest.err' | |
5247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5248 | (eval $ac_try) 2>&5 | |
5249 | ac_status=$? | |
5250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5251 | (exit $ac_status); }; } && | |
5252 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5254 | (eval $ac_try) 2>&5 | |
5255 | ac_status=$? | |
5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5257 | (exit $ac_status); }; }; then | |
5258 | eval "$as_ac_var=yes" | |
5259 | else | |
5260 | echo "$as_me: failed program was:" >&5 | |
5261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5262 | ||
5263 | eval "$as_ac_var=no" | |
5264 | fi | |
5c7fc7c4 PC |
5265 | rm -f conftest.err conftest.$ac_objext \ |
5266 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5267 | fi |
5268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5269 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5270 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 5271 | |
ad6254c5 AK |
5272 | cat >>confdefs.h <<_ACEOF |
5273 | #define CRAY_STACKSEG_END $ac_func | |
5274 | _ACEOF | |
5275 | ||
5276 | break | |
5277 | fi | |
5278 | ||
5279 | done | |
5280 | fi | |
5281 | ||
5282 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5283 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
5284 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5286 | else | |
5287 | if test "$cross_compiling" = yes; then | |
5288 | ac_cv_c_stack_direction=0 | |
5289 | else | |
5290 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5291 | /* confdefs.h. */ |
5292 | _ACEOF | |
5293 | cat confdefs.h >>conftest.$ac_ext | |
5294 | cat >>conftest.$ac_ext <<_ACEOF | |
5295 | /* end confdefs.h. */ | |
5296 | int | |
5297 | find_stack_direction () | |
5298 | { | |
5299 | static char *addr = 0; | |
5300 | auto char dummy; | |
5301 | if (addr == 0) | |
5302 | { | |
5303 | addr = &dummy; | |
5304 | return find_stack_direction (); | |
5305 | } | |
5306 | else | |
5307 | return (&dummy > addr) ? 1 : -1; | |
5308 | } | |
5309 | ||
5310 | int | |
5311 | main () | |
5312 | { | |
5313 | exit (find_stack_direction () < 0); | |
5314 | } | |
5315 | _ACEOF | |
5316 | rm -f conftest$ac_exeext | |
5317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5318 | (eval $ac_link) 2>&5 | |
5319 | ac_status=$? | |
5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5323 | (eval $ac_try) 2>&5 | |
5324 | ac_status=$? | |
5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5326 | (exit $ac_status); }; }; then | |
5327 | ac_cv_c_stack_direction=1 | |
5328 | else | |
5329 | echo "$as_me: program exited with status $ac_status" >&5 | |
5330 | echo "$as_me: failed program was:" >&5 | |
5331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5332 | ||
5333 | ( exit $ac_status ) | |
5334 | ac_cv_c_stack_direction=-1 | |
5335 | fi | |
5c7fc7c4 | 5336 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5337 | fi |
5338 | fi | |
5339 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5340 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5341 | ||
5342 | cat >>confdefs.h <<_ACEOF | |
5343 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5344 | _ACEOF | |
5345 | ||
5346 | ||
5347 | fi | |
5348 | ||
5349 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
5350 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 | |
5351 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
5352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5353 | else | |
5354 | if test "$cross_compiling" = yes; then | |
5355 | ac_cv_func_closedir_void=yes | |
5356 | else | |
5357 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5358 | /* confdefs.h. */ |
5359 | _ACEOF | |
5360 | cat confdefs.h >>conftest.$ac_ext | |
5361 | cat >>conftest.$ac_ext <<_ACEOF | |
5362 | /* end confdefs.h. */ | |
5363 | $ac_includes_default | |
5364 | #include <$ac_header_dirent> | |
5365 | #ifndef __cplusplus | |
5366 | int closedir (); | |
5367 | #endif | |
5368 | ||
5369 | int | |
5370 | main () | |
5371 | { | |
5372 | exit (closedir (opendir (".")) != 0); | |
5373 | ; | |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5377 | rm -f conftest$ac_exeext | |
5378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5379 | (eval $ac_link) 2>&5 | |
5380 | ac_status=$? | |
5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5384 | (eval $ac_try) 2>&5 | |
5385 | ac_status=$? | |
5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5387 | (exit $ac_status); }; }; then | |
5388 | ac_cv_func_closedir_void=no | |
5389 | else | |
5390 | echo "$as_me: program exited with status $ac_status" >&5 | |
5391 | echo "$as_me: failed program was:" >&5 | |
5392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5393 | ||
5394 | ( exit $ac_status ) | |
5395 | ac_cv_func_closedir_void=yes | |
5396 | fi | |
5c7fc7c4 | 5397 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5398 | fi |
5399 | fi | |
5400 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
5401 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 | |
5402 | if test $ac_cv_func_closedir_void = yes; then | |
5403 | ||
5404 | cat >>confdefs.h <<\_ACEOF | |
5405 | #define CLOSEDIR_VOID 1 | |
5406 | _ACEOF | |
5407 | ||
5408 | fi | |
5409 | ||
5410 | ||
5411 | ||
5412 | for ac_header in unistd.h vfork.h | |
5413 | do | |
5414 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5420 | fi | |
5421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5422 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5423 | else | |
5424 | # Is the header compilable? | |
5425 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5426 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5427 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5428 | /* confdefs.h. */ |
5429 | _ACEOF | |
5430 | cat confdefs.h >>conftest.$ac_ext | |
5431 | cat >>conftest.$ac_ext <<_ACEOF | |
5432 | /* end confdefs.h. */ | |
5433 | $ac_includes_default | |
5434 | #include <$ac_header> | |
5435 | _ACEOF | |
5436 | rm -f conftest.$ac_objext | |
5437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 5438 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 5439 | ac_status=$? |
5c7fc7c4 PC |
5440 | grep -v '^ *+' conftest.er1 >conftest.err |
5441 | rm -f conftest.er1 | |
5442 | cat conftest.err >&5 | |
ad6254c5 AK |
5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5444 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5445 | { ac_try='test -z "$ac_c_werror_flag" |
5446 | || test ! -s conftest.err' | |
5447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5448 | (eval $ac_try) 2>&5 | |
5449 | ac_status=$? | |
5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5451 | (exit $ac_status); }; } && | |
5452 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
5453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5454 | (eval $ac_try) 2>&5 | |
5455 | ac_status=$? | |
5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5457 | (exit $ac_status); }; }; then | |
5458 | ac_header_compiler=yes | |
5459 | else | |
5460 | echo "$as_me: failed program was:" >&5 | |
5461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5462 | ||
5463 | ac_header_compiler=no | |
5464 | fi | |
5c7fc7c4 | 5465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5466 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5467 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5468 | ||
5469 | # Is the header present? | |
5470 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5471 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5472 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5473 | /* confdefs.h. */ |
5474 | _ACEOF | |
5475 | cat confdefs.h >>conftest.$ac_ext | |
5476 | cat >>conftest.$ac_ext <<_ACEOF | |
5477 | /* end confdefs.h. */ | |
5478 | #include <$ac_header> | |
5479 | _ACEOF | |
5480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5482 | ac_status=$? | |
5483 | grep -v '^ *+' conftest.er1 >conftest.err | |
5484 | rm -f conftest.er1 | |
5485 | cat conftest.err >&5 | |
5486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5487 | (exit $ac_status); } >/dev/null; then | |
5488 | if test -s conftest.err; then | |
5489 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 5490 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
5491 | else |
5492 | ac_cpp_err= | |
795ca3e5 | 5493 | fi |
ad6254c5 AK |
5494 | else |
5495 | ac_cpp_err=yes | |
5496 | fi | |
5497 | if test -z "$ac_cpp_err"; then | |
5498 | ac_header_preproc=yes | |
5499 | else | |
5500 | echo "$as_me: failed program was:" >&5 | |
5501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5502 | ||
5503 | ac_header_preproc=no | |
5504 | fi | |
5505 | rm -f conftest.err conftest.$ac_ext | |
5506 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5507 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5508 | ||
5509 | # So? What about this header? | |
5c7fc7c4 PC |
5510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5511 | yes:no: ) | |
ad6254c5 AK |
5512 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5513 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
5514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5515 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5516 | ac_header_preproc=yes | |
ad6254c5 | 5517 | ;; |
5c7fc7c4 | 5518 | no:yes:* ) |
ad6254c5 AK |
5519 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5520 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
5521 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5522 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5523 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5524 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5525 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5526 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
5527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
5529 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5530 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
5531 | ( |
5532 | cat <<\_ASBOX | |
5c7fc7c4 PC |
5533 | ## ------------------------------------------ ## |
5534 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5535 | ## ------------------------------------------ ## | |
ad6254c5 AK |
5536 | _ASBOX |
5537 | ) | | |
5538 | sed "s/^/$as_me: WARNING: /" >&2 | |
5539 | ;; | |
5540 | esac | |
5541 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5542 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5543 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5545 | else | |
5c7fc7c4 | 5546 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
5547 | fi |
5548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5550 | ||
795ca3e5 | 5551 | fi |
ad6254c5 AK |
5552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5553 | cat >>confdefs.h <<_ACEOF | |
5554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5555 | _ACEOF | |
5556 | ||
5557 | fi | |
5558 | ||
5559 | done | |
795ca3e5 | 5560 | |
ad6254c5 AK |
5561 | |
5562 | ||
5563 | for ac_func in fork vfork | |
5564 | do | |
5565 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5566 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5567 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5568 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 5570 | else |
ad6254c5 | 5571 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5572 | /* confdefs.h. */ |
5573 | _ACEOF | |
5574 | cat confdefs.h >>conftest.$ac_ext | |
5575 | cat >>conftest.$ac_ext <<_ACEOF | |
5576 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
5577 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5578 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5579 | #define $ac_func innocuous_$ac_func | |
5580 | ||
ad6254c5 AK |
5581 | /* System header to define __stub macros and hopefully few prototypes, |
5582 | which can conflict with char $ac_func (); below. | |
5583 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5584 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 5585 | |
ad6254c5 AK |
5586 | #ifdef __STDC__ |
5587 | # include <limits.h> | |
5588 | #else | |
5589 | # include <assert.h> | |
795ca3e5 | 5590 | #endif |
5c7fc7c4 PC |
5591 | |
5592 | #undef $ac_func | |
5593 | ||
ad6254c5 | 5594 | /* Override any gcc2 internal prototype to avoid an error. */ |
795ca3e5 | 5595 | #ifdef __cplusplus |
ad6254c5 AK |
5596 | extern "C" |
5597 | { | |
5598 | #endif | |
5599 | /* We use char because int might match the return type of a gcc2 | |
5600 | builtin and then its argument prototype would still apply. */ | |
5601 | char $ac_func (); | |
5602 | /* The GNU C library defines this for functions which it implements | |
5603 | to always fail with ENOSYS. Some functions are actually named | |
5604 | something starting with __ and the normal name is an alias. */ | |
5605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5606 | choke me | |
795ca3e5 | 5607 | #else |
ad6254c5 AK |
5608 | char (*f) () = $ac_func; |
5609 | #endif | |
5610 | #ifdef __cplusplus | |
5611 | } | |
795ca3e5 AK |
5612 | #endif |
5613 | ||
ad6254c5 AK |
5614 | int |
5615 | main () | |
5616 | { | |
5617 | return f != $ac_func; | |
5618 | ; | |
5619 | return 0; | |
5620 | } | |
5621 | _ACEOF | |
5622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5624 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5625 | ac_status=$? |
5c7fc7c4 PC |
5626 | grep -v '^ *+' conftest.er1 >conftest.err |
5627 | rm -f conftest.er1 | |
5628 | cat conftest.err >&5 | |
ad6254c5 AK |
5629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5630 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5631 | { ac_try='test -z "$ac_c_werror_flag" |
5632 | || test ! -s conftest.err' | |
5633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5634 | (eval $ac_try) 2>&5 | |
5635 | ac_status=$? | |
5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5637 | (exit $ac_status); }; } && | |
5638 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5640 | (eval $ac_try) 2>&5 | |
5641 | ac_status=$? | |
5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5643 | (exit $ac_status); }; }; then | |
5644 | eval "$as_ac_var=yes" | |
795ca3e5 | 5645 | else |
ad6254c5 AK |
5646 | echo "$as_me: failed program was:" >&5 |
5647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5648 | ||
5649 | eval "$as_ac_var=no" | |
795ca3e5 | 5650 | fi |
5c7fc7c4 PC |
5651 | rm -f conftest.err conftest.$ac_objext \ |
5652 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5653 | fi |
5654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5655 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5656 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5657 | cat >>confdefs.h <<_ACEOF | |
5658 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5659 | _ACEOF | |
5660 | ||
5661 | fi | |
5662 | done | |
5663 | ||
5664 | if test "x$ac_cv_func_fork" = xyes; then | |
5665 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
5666 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
5667 | if test "${ac_cv_func_fork_works+set}" = set; then | |
5668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5669 | else | |
5670 | if test "$cross_compiling" = yes; then | |
5671 | ac_cv_func_fork_works=cross | |
5672 | else | |
5673 | cat >conftest.$ac_ext <<_ACEOF | |
5674 | /* By Ruediger Kuhlmann. */ | |
5675 | #include <sys/types.h> | |
5676 | #if HAVE_UNISTD_H | |
5677 | # include <unistd.h> | |
5678 | #endif | |
5679 | /* Some systems only have a dummy stub for fork() */ | |
5680 | int main () | |
5681 | { | |
5c7fc7c4 PC |
5682 | if (fork() < 0) |
5683 | exit (1); | |
5684 | exit (0); | |
ad6254c5 AK |
5685 | } |
5686 | _ACEOF | |
5687 | rm -f conftest$ac_exeext | |
5688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5689 | (eval $ac_link) 2>&5 | |
5690 | ac_status=$? | |
5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5694 | (eval $ac_try) 2>&5 | |
5695 | ac_status=$? | |
5696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5697 | (exit $ac_status); }; }; then | |
5698 | ac_cv_func_fork_works=yes | |
5699 | else | |
5700 | echo "$as_me: program exited with status $ac_status" >&5 | |
5701 | echo "$as_me: failed program was:" >&5 | |
5702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5703 | ||
5704 | ( exit $ac_status ) | |
5705 | ac_cv_func_fork_works=no | |
5706 | fi | |
5c7fc7c4 | 5707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5708 | fi |
5709 | fi | |
5710 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
5711 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
5712 | ||
5713 | else | |
5714 | ac_cv_func_fork_works=$ac_cv_func_fork | |
5715 | fi | |
5716 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5717 | case $host in | |
5718 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5719 | # Override, as these systems have only a dummy fork() stub | |
5720 | ac_cv_func_fork_works=no | |
5721 | ;; | |
5722 | *) | |
5723 | ac_cv_func_fork_works=yes | |
5724 | ;; | |
5725 | esac | |
5726 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5727 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5728 | fi | |
5729 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5730 | if test "x$ac_cv_func_vfork" = xyes; then | |
5731 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
5732 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
5733 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
5734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5735 | else | |
5736 | if test "$cross_compiling" = yes; then | |
5737 | ac_cv_func_vfork_works=cross | |
5738 | else | |
5739 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5740 | /* confdefs.h. */ |
5741 | _ACEOF | |
5742 | cat confdefs.h >>conftest.$ac_ext | |
5743 | cat >>conftest.$ac_ext <<_ACEOF | |
5744 | /* end confdefs.h. */ | |
5745 | /* Thanks to Paul Eggert for this test. */ | |
5746 | #include <stdio.h> | |
5747 | #include <stdlib.h> | |
5748 | #include <sys/types.h> | |
5749 | #include <sys/stat.h> | |
5750 | #include <sys/wait.h> | |
5751 | #if HAVE_UNISTD_H | |
5752 | # include <unistd.h> | |
5753 | #endif | |
5754 | #if HAVE_VFORK_H | |
5755 | # include <vfork.h> | |
5756 | #endif | |
5757 | /* On some sparc systems, changes by the child to local and incoming | |
5758 | argument registers are propagated back to the parent. The compiler | |
5759 | is told about this with #include <vfork.h>, but some compilers | |
5760 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5761 | static variable whose address is put into a register that is | |
5762 | clobbered by the vfork. */ | |
5763 | static void | |
5764 | #ifdef __cplusplus | |
5765 | sparc_address_test (int arg) | |
5766 | # else | |
5767 | sparc_address_test (arg) int arg; | |
5768 | #endif | |
5769 | { | |
5770 | static pid_t child; | |
5771 | if (!child) { | |
5772 | child = vfork (); | |
5773 | if (child < 0) { | |
5774 | perror ("vfork"); | |
5775 | _exit(2); | |
5776 | } | |
5777 | if (!child) { | |
5778 | arg = getpid(); | |
5779 | write(-1, "", 0); | |
5780 | _exit (arg); | |
5781 | } | |
5782 | } | |
5783 | } | |
5784 | ||
5785 | int | |
5786 | main () | |
5787 | { | |
5788 | pid_t parent = getpid (); | |
5789 | pid_t child; | |
5790 | ||
5791 | sparc_address_test (0); | |
5792 | ||
5793 | child = vfork (); | |
5794 | ||
5795 | if (child == 0) { | |
5796 | /* Here is another test for sparc vfork register problems. This | |
5797 | test uses lots of local variables, at least as many local | |
5798 | variables as main has allocated so far including compiler | |
5799 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5800 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5801 | reuse the register of parent for one of the local variables, | |
5802 | since it will think that parent can't possibly be used any more | |
5803 | in this routine. Assigning to the local variable will thus | |
5804 | munge parent in the parent process. */ | |
5805 | pid_t | |
5806 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5807 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5808 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5809 | use the same hardware register for all 8 local variables. */ | |
5810 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5811 | || p != p5 || p != p6 || p != p7) | |
5812 | _exit(1); | |
5813 | ||
5814 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5815 | from child file descriptors. If the child closes a descriptor | |
5816 | before it execs or exits, this munges the parent's descriptor | |
5817 | as well. Test for this by closing stdout in the child. */ | |
5818 | _exit(close(fileno(stdout)) != 0); | |
5819 | } else { | |
5820 | int status; | |
5821 | struct stat st; | |
5822 | ||
5823 | while (wait(&status) != child) | |
5824 | ; | |
5825 | exit( | |
5826 | /* Was there some problem with vforking? */ | |
5827 | child < 0 | |
5828 | ||
5829 | /* Did the child fail? (This shouldn't happen.) */ | |
5830 | || status | |
5831 | ||
5832 | /* Did the vfork/compiler bug occur? */ | |
5833 | || parent != getpid() | |
5834 | ||
5835 | /* Did the file descriptor bug occur? */ | |
5836 | || fstat(fileno(stdout), &st) != 0 | |
5837 | ); | |
5838 | } | |
5839 | } | |
5840 | _ACEOF | |
5841 | rm -f conftest$ac_exeext | |
5842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5843 | (eval $ac_link) 2>&5 | |
5844 | ac_status=$? | |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5846 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5848 | (eval $ac_try) 2>&5 | |
5849 | ac_status=$? | |
5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5851 | (exit $ac_status); }; }; then | |
5852 | ac_cv_func_vfork_works=yes | |
5853 | else | |
5854 | echo "$as_me: program exited with status $ac_status" >&5 | |
5855 | echo "$as_me: failed program was:" >&5 | |
5856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5857 | ||
5858 | ( exit $ac_status ) | |
5859 | ac_cv_func_vfork_works=no | |
5860 | fi | |
5c7fc7c4 | 5861 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5862 | fi |
5863 | fi | |
5864 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
5865 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5866 | ||
5867 | fi; | |
5868 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5c7fc7c4 | 5869 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ad6254c5 AK |
5870 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
5871 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5872 | fi | |
5873 | ||
5874 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
5875 | ||
5876 | cat >>confdefs.h <<\_ACEOF | |
5877 | #define HAVE_WORKING_VFORK 1 | |
5878 | _ACEOF | |
5879 | ||
5880 | else | |
5881 | ||
5882 | cat >>confdefs.h <<\_ACEOF | |
5883 | #define vfork fork | |
5884 | _ACEOF | |
5885 | ||
5886 | fi | |
5887 | if test "x$ac_cv_func_fork_works" = xyes; then | |
5888 | ||
5889 | cat >>confdefs.h <<\_ACEOF | |
5890 | #define HAVE_WORKING_FORK 1 | |
5891 | _ACEOF | |
5892 | ||
5893 | fi | |
5894 | ||
5895 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 | |
5896 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 | |
5897 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then | |
5898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5899 | else | |
5900 | rm -f conftest.sym conftest.file | |
5901 | echo >conftest.file | |
5902 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5903 | if test "$cross_compiling" = yes; then | |
5904 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5905 | else | |
5906 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5907 | /* confdefs.h. */ |
5908 | _ACEOF | |
5909 | cat confdefs.h >>conftest.$ac_ext | |
5910 | cat >>conftest.$ac_ext <<_ACEOF | |
5911 | /* end confdefs.h. */ | |
5912 | $ac_includes_default | |
5913 | int | |
5914 | main () | |
5915 | { | |
5916 | struct stat sbuf; | |
5917 | /* Linux will dereference the symlink and fail. | |
5c7fc7c4 PC |
5918 | That is better in the sense that it means we will not |
5919 | have to compile and use the lstat wrapper. */ | |
ad6254c5 AK |
5920 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
5921 | ; | |
5922 | return 0; | |
5923 | } | |
5924 | _ACEOF | |
5925 | rm -f conftest$ac_exeext | |
5926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5927 | (eval $ac_link) 2>&5 | |
5928 | ac_status=$? | |
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5932 | (eval $ac_try) 2>&5 | |
5933 | ac_status=$? | |
5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5935 | (exit $ac_status); }; }; then | |
5936 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
5937 | else | |
5938 | echo "$as_me: program exited with status $ac_status" >&5 | |
5939 | echo "$as_me: failed program was:" >&5 | |
5940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5941 | ||
5942 | ( exit $ac_status ) | |
5943 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5944 | fi | |
5c7fc7c4 | 5945 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5946 | fi |
5947 | else | |
5948 | # If the `ln -s' command failed, then we probably don't even | |
5949 | # have an lstat function. | |
5950 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5951 | fi | |
5952 | rm -f conftest.sym conftest.file | |
5953 | ||
5954 | fi | |
5955 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5956 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 | |
5957 | ||
5958 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
5959 | ||
5960 | cat >>confdefs.h <<_ACEOF | |
5961 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5962 | _ACEOF | |
5963 | ||
5964 | ||
5965 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
5c7fc7c4 PC |
5966 | case $LIBOBJS in |
5967 | "lstat.$ac_objext" | \ | |
5968 | *" lstat.$ac_objext" | \ | |
5969 | "lstat.$ac_objext "* | \ | |
5970 | *" lstat.$ac_objext "* ) ;; | |
5971 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
5972 | esac | |
5973 | ||
ad6254c5 AK |
5974 | fi |
5975 | ||
5976 | echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 | |
5977 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6 | |
5978 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then | |
5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5980 | else | |
5981 | if test "$cross_compiling" = yes; then | |
5982 | ac_cv_func_lstat_empty_string_bug=yes | |
5983 | else | |
5984 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5985 | /* confdefs.h. */ |
5986 | _ACEOF | |
5987 | cat confdefs.h >>conftest.$ac_ext | |
5988 | cat >>conftest.$ac_ext <<_ACEOF | |
5989 | /* end confdefs.h. */ | |
5990 | $ac_includes_default | |
5991 | int | |
5992 | main () | |
5993 | { | |
5994 | struct stat sbuf; | |
5995 | exit (lstat ("", &sbuf) ? 1 : 0); | |
5996 | ; | |
5997 | return 0; | |
5998 | } | |
5999 | _ACEOF | |
6000 | rm -f conftest$ac_exeext | |
6001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6002 | (eval $ac_link) 2>&5 | |
6003 | ac_status=$? | |
6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6007 | (eval $ac_try) 2>&5 | |
6008 | ac_status=$? | |
6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6010 | (exit $ac_status); }; }; then | |
6011 | ac_cv_func_lstat_empty_string_bug=yes | |
6012 | else | |
6013 | echo "$as_me: program exited with status $ac_status" >&5 | |
6014 | echo "$as_me: failed program was:" >&5 | |
6015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6016 | ||
6017 | ( exit $ac_status ) | |
6018 | ac_cv_func_lstat_empty_string_bug=no | |
6019 | fi | |
5c7fc7c4 | 6020 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6021 | fi |
6022 | fi | |
6023 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6024 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6 | |
6025 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
5c7fc7c4 PC |
6026 | case $LIBOBJS in |
6027 | "lstat.$ac_objext" | \ | |
6028 | *" lstat.$ac_objext" | \ | |
6029 | "lstat.$ac_objext "* | \ | |
6030 | *" lstat.$ac_objext "* ) ;; | |
6031 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6032 | esac | |
6033 | ||
ad6254c5 AK |
6034 | |
6035 | cat >>confdefs.h <<_ACEOF | |
6036 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6037 | _ACEOF | |
6038 | ||
6039 | fi | |
6040 | ||
6041 | ||
6042 | for ac_header in stdlib.h | |
6043 | do | |
6044 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6046 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6047 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6050 | fi | |
6051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6052 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6053 | else | |
6054 | # Is the header compilable? | |
6055 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6056 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6057 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6058 | /* confdefs.h. */ |
6059 | _ACEOF | |
6060 | cat confdefs.h >>conftest.$ac_ext | |
6061 | cat >>conftest.$ac_ext <<_ACEOF | |
6062 | /* end confdefs.h. */ | |
6063 | $ac_includes_default | |
6064 | #include <$ac_header> | |
6065 | _ACEOF | |
6066 | rm -f conftest.$ac_objext | |
6067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 6068 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6069 | ac_status=$? |
5c7fc7c4 PC |
6070 | grep -v '^ *+' conftest.er1 >conftest.err |
6071 | rm -f conftest.er1 | |
6072 | cat conftest.err >&5 | |
ad6254c5 AK |
6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6074 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6075 | { ac_try='test -z "$ac_c_werror_flag" |
6076 | || test ! -s conftest.err' | |
6077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6078 | (eval $ac_try) 2>&5 | |
6079 | ac_status=$? | |
6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6081 | (exit $ac_status); }; } && | |
6082 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6084 | (eval $ac_try) 2>&5 | |
6085 | ac_status=$? | |
6086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6087 | (exit $ac_status); }; }; then | |
6088 | ac_header_compiler=yes | |
6089 | else | |
6090 | echo "$as_me: failed program was:" >&5 | |
6091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6092 | ||
6093 | ac_header_compiler=no | |
6094 | fi | |
5c7fc7c4 | 6095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6097 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6098 | ||
6099 | # Is the header present? | |
6100 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6101 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6102 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6103 | /* confdefs.h. */ |
6104 | _ACEOF | |
6105 | cat confdefs.h >>conftest.$ac_ext | |
6106 | cat >>conftest.$ac_ext <<_ACEOF | |
6107 | /* end confdefs.h. */ | |
6108 | #include <$ac_header> | |
6109 | _ACEOF | |
6110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6112 | ac_status=$? | |
6113 | grep -v '^ *+' conftest.er1 >conftest.err | |
6114 | rm -f conftest.er1 | |
6115 | cat conftest.err >&5 | |
6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6117 | (exit $ac_status); } >/dev/null; then | |
6118 | if test -s conftest.err; then | |
6119 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 6120 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6121 | else |
6122 | ac_cpp_err= | |
6123 | fi | |
6124 | else | |
6125 | ac_cpp_err=yes | |
6126 | fi | |
6127 | if test -z "$ac_cpp_err"; then | |
6128 | ac_header_preproc=yes | |
6129 | else | |
6130 | echo "$as_me: failed program was:" >&5 | |
6131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6132 | ||
6133 | ac_header_preproc=no | |
6134 | fi | |
6135 | rm -f conftest.err conftest.$ac_ext | |
6136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6137 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6138 | ||
6139 | # So? What about this header? | |
5c7fc7c4 PC |
6140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6141 | yes:no: ) | |
ad6254c5 AK |
6142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
6144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6146 | ac_header_preproc=yes | |
ad6254c5 | 6147 | ;; |
5c7fc7c4 | 6148 | no:yes:* ) |
ad6254c5 AK |
6149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
6151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
6159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6160 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6161 | ( |
6162 | cat <<\_ASBOX | |
5c7fc7c4 PC |
6163 | ## ------------------------------------------ ## |
6164 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6165 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6166 | _ASBOX |
6167 | ) | | |
6168 | sed "s/^/$as_me: WARNING: /" >&2 | |
6169 | ;; | |
6170 | esac | |
6171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6175 | else | |
5c7fc7c4 | 6176 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6177 | fi |
6178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6179 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6180 | ||
6181 | fi | |
6182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6183 | cat >>confdefs.h <<_ACEOF | |
6184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6185 | _ACEOF | |
6186 | ||
6187 | fi | |
6188 | ||
6189 | done | |
6190 | ||
6191 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
6192 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 | |
6193 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
6194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6195 | else | |
6196 | if test "$cross_compiling" = yes; then | |
6197 | ac_cv_func_malloc_0_nonnull=no | |
6198 | else | |
6199 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6200 | /* confdefs.h. */ |
6201 | _ACEOF | |
6202 | cat confdefs.h >>conftest.$ac_ext | |
6203 | cat >>conftest.$ac_ext <<_ACEOF | |
6204 | /* end confdefs.h. */ | |
6205 | #if STDC_HEADERS || HAVE_STDLIB_H | |
6206 | # include <stdlib.h> | |
6207 | #else | |
6208 | char *malloc (); | |
6209 | #endif | |
6210 | ||
6211 | int | |
6212 | main () | |
6213 | { | |
6214 | exit (malloc (0) ? 0 : 1); | |
6215 | ; | |
6216 | return 0; | |
6217 | } | |
6218 | _ACEOF | |
6219 | rm -f conftest$ac_exeext | |
6220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6221 | (eval $ac_link) 2>&5 | |
6222 | ac_status=$? | |
6223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6226 | (eval $ac_try) 2>&5 | |
6227 | ac_status=$? | |
6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6229 | (exit $ac_status); }; }; then | |
6230 | ac_cv_func_malloc_0_nonnull=yes | |
6231 | else | |
6232 | echo "$as_me: program exited with status $ac_status" >&5 | |
6233 | echo "$as_me: failed program was:" >&5 | |
6234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6235 | ||
6236 | ( exit $ac_status ) | |
6237 | ac_cv_func_malloc_0_nonnull=no | |
6238 | fi | |
5c7fc7c4 | 6239 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6240 | fi |
6241 | fi | |
6242 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
6243 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 | |
6244 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
6245 | ||
6246 | cat >>confdefs.h <<\_ACEOF | |
6247 | #define HAVE_MALLOC 1 | |
6248 | _ACEOF | |
6249 | ||
6250 | else | |
6251 | cat >>confdefs.h <<\_ACEOF | |
6252 | #define HAVE_MALLOC 0 | |
6253 | _ACEOF | |
6254 | ||
5c7fc7c4 PC |
6255 | case $LIBOBJS in |
6256 | "malloc.$ac_objext" | \ | |
6257 | *" malloc.$ac_objext" | \ | |
6258 | "malloc.$ac_objext "* | \ | |
6259 | *" malloc.$ac_objext "* ) ;; | |
6260 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; | |
6261 | esac | |
6262 | ||
ad6254c5 AK |
6263 | |
6264 | cat >>confdefs.h <<\_ACEOF | |
6265 | #define malloc rpl_malloc | |
6266 | _ACEOF | |
6267 | ||
6268 | fi | |
6269 | ||
6270 | ||
6271 | ||
6272 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
6273 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
6274 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
6275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6276 | else | |
6277 | if test "$cross_compiling" = yes; then | |
6278 | ac_cv_func_memcmp_working=no | |
6279 | else | |
6280 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6281 | /* confdefs.h. */ |
6282 | _ACEOF | |
6283 | cat confdefs.h >>conftest.$ac_ext | |
6284 | cat >>conftest.$ac_ext <<_ACEOF | |
6285 | /* end confdefs.h. */ | |
5c7fc7c4 | 6286 | $ac_includes_default |
ad6254c5 AK |
6287 | int |
6288 | main () | |
6289 | { | |
6290 | ||
6291 | /* Some versions of memcmp are not 8-bit clean. */ | |
6292 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
6293 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6294 | exit (1); | |
6295 | ||
6296 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
6297 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6298 | William Lewis provided this test program. */ | |
6299 | { | |
6300 | char foo[21]; | |
6301 | char bar[21]; | |
6302 | int i; | |
6303 | for (i = 0; i < 4; i++) | |
6304 | { | |
5c7fc7c4 PC |
6305 | char *a = foo + i; |
6306 | char *b = bar + i; | |
6307 | strcpy (a, "--------01111111"); | |
6308 | strcpy (b, "--------10000000"); | |
6309 | if (memcmp (a, b, 16) >= 0) | |
6310 | exit (1); | |
ad6254c5 AK |
6311 | } |
6312 | exit (0); | |
6313 | } | |
6314 | ||
6315 | ; | |
6316 | return 0; | |
6317 | } | |
6318 | _ACEOF | |
6319 | rm -f conftest$ac_exeext | |
6320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6321 | (eval $ac_link) 2>&5 | |
6322 | ac_status=$? | |
6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6326 | (eval $ac_try) 2>&5 | |
6327 | ac_status=$? | |
6328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6329 | (exit $ac_status); }; }; then | |
6330 | ac_cv_func_memcmp_working=yes | |
6331 | else | |
6332 | echo "$as_me: program exited with status $ac_status" >&5 | |
6333 | echo "$as_me: failed program was:" >&5 | |
6334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6335 | ||
6336 | ( exit $ac_status ) | |
6337 | ac_cv_func_memcmp_working=no | |
6338 | fi | |
5c7fc7c4 | 6339 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6340 | fi |
6341 | fi | |
6342 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
6343 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
5c7fc7c4 PC |
6344 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
6345 | "memcmp.$ac_objext" | \ | |
6346 | *" memcmp.$ac_objext" | \ | |
6347 | "memcmp.$ac_objext "* | \ | |
6348 | *" memcmp.$ac_objext "* ) ;; | |
6349 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; | |
6350 | esac | |
6351 | ||
ad6254c5 AK |
6352 | |
6353 | ||
6354 | ||
6355 | for ac_header in stdlib.h unistd.h | |
6356 | do | |
6357 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6359 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6360 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6361 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6363 | fi | |
6364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6365 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6366 | else | |
6367 | # Is the header compilable? | |
6368 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6369 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6370 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6371 | /* confdefs.h. */ |
6372 | _ACEOF | |
6373 | cat confdefs.h >>conftest.$ac_ext | |
6374 | cat >>conftest.$ac_ext <<_ACEOF | |
6375 | /* end confdefs.h. */ | |
6376 | $ac_includes_default | |
6377 | #include <$ac_header> | |
6378 | _ACEOF | |
6379 | rm -f conftest.$ac_objext | |
6380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 6381 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6382 | ac_status=$? |
5c7fc7c4 PC |
6383 | grep -v '^ *+' conftest.er1 >conftest.err |
6384 | rm -f conftest.er1 | |
6385 | cat conftest.err >&5 | |
ad6254c5 AK |
6386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6387 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6388 | { ac_try='test -z "$ac_c_werror_flag" |
6389 | || test ! -s conftest.err' | |
6390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6391 | (eval $ac_try) 2>&5 | |
6392 | ac_status=$? | |
6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6394 | (exit $ac_status); }; } && | |
6395 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6397 | (eval $ac_try) 2>&5 | |
6398 | ac_status=$? | |
6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6400 | (exit $ac_status); }; }; then | |
6401 | ac_header_compiler=yes | |
6402 | else | |
6403 | echo "$as_me: failed program was:" >&5 | |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6405 | ||
6406 | ac_header_compiler=no | |
6407 | fi | |
5c7fc7c4 | 6408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6409 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6410 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6411 | ||
6412 | # Is the header present? | |
6413 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6414 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6415 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6416 | /* confdefs.h. */ |
6417 | _ACEOF | |
6418 | cat confdefs.h >>conftest.$ac_ext | |
6419 | cat >>conftest.$ac_ext <<_ACEOF | |
6420 | /* end confdefs.h. */ | |
6421 | #include <$ac_header> | |
6422 | _ACEOF | |
6423 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6424 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6425 | ac_status=$? | |
6426 | grep -v '^ *+' conftest.er1 >conftest.err | |
6427 | rm -f conftest.er1 | |
6428 | cat conftest.err >&5 | |
6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6430 | (exit $ac_status); } >/dev/null; then | |
6431 | if test -s conftest.err; then | |
6432 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 6433 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6434 | else |
6435 | ac_cpp_err= | |
6436 | fi | |
6437 | else | |
6438 | ac_cpp_err=yes | |
6439 | fi | |
6440 | if test -z "$ac_cpp_err"; then | |
6441 | ac_header_preproc=yes | |
6442 | else | |
6443 | echo "$as_me: failed program was:" >&5 | |
6444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6445 | ||
6446 | ac_header_preproc=no | |
6447 | fi | |
6448 | rm -f conftest.err conftest.$ac_ext | |
6449 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6450 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6451 | ||
6452 | # So? What about this header? | |
5c7fc7c4 PC |
6453 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6454 | yes:no: ) | |
ad6254c5 AK |
6455 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6456 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
6457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6458 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6459 | ac_header_preproc=yes | |
ad6254c5 | 6460 | ;; |
5c7fc7c4 | 6461 | no:yes:* ) |
ad6254c5 AK |
6462 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6463 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
6464 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6465 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6467 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6469 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6471 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
6472 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6473 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6474 | ( |
6475 | cat <<\_ASBOX | |
5c7fc7c4 PC |
6476 | ## ------------------------------------------ ## |
6477 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6478 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6479 | _ASBOX |
6480 | ) | | |
6481 | sed "s/^/$as_me: WARNING: /" >&2 | |
6482 | ;; | |
6483 | esac | |
6484 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6486 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6488 | else | |
5c7fc7c4 | 6489 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6490 | fi |
6491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6492 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6493 | ||
6494 | fi | |
6495 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6496 | cat >>confdefs.h <<_ACEOF | |
6497 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6498 | _ACEOF | |
6499 | ||
6500 | fi | |
6501 | ||
6502 | done | |
6503 | ||
6504 | ||
6505 | for ac_func in getpagesize | |
6506 | do | |
6507 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6508 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6509 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6510 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6512 | else | |
6513 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6514 | /* confdefs.h. */ |
6515 | _ACEOF | |
6516 | cat confdefs.h >>conftest.$ac_ext | |
6517 | cat >>conftest.$ac_ext <<_ACEOF | |
6518 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
6519 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6520 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6521 | #define $ac_func innocuous_$ac_func | |
6522 | ||
ad6254c5 AK |
6523 | /* System header to define __stub macros and hopefully few prototypes, |
6524 | which can conflict with char $ac_func (); below. | |
6525 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6526 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 6527 | |
ad6254c5 AK |
6528 | #ifdef __STDC__ |
6529 | # include <limits.h> | |
6530 | #else | |
6531 | # include <assert.h> | |
6532 | #endif | |
5c7fc7c4 PC |
6533 | |
6534 | #undef $ac_func | |
6535 | ||
ad6254c5 AK |
6536 | /* Override any gcc2 internal prototype to avoid an error. */ |
6537 | #ifdef __cplusplus | |
6538 | extern "C" | |
6539 | { | |
6540 | #endif | |
6541 | /* We use char because int might match the return type of a gcc2 | |
6542 | builtin and then its argument prototype would still apply. */ | |
6543 | char $ac_func (); | |
6544 | /* The GNU C library defines this for functions which it implements | |
6545 | to always fail with ENOSYS. Some functions are actually named | |
6546 | something starting with __ and the normal name is an alias. */ | |
6547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6548 | choke me | |
6549 | #else | |
6550 | char (*f) () = $ac_func; | |
6551 | #endif | |
6552 | #ifdef __cplusplus | |
6553 | } | |
6554 | #endif | |
6555 | ||
6556 | int | |
6557 | main () | |
6558 | { | |
6559 | return f != $ac_func; | |
6560 | ; | |
6561 | return 0; | |
6562 | } | |
6563 | _ACEOF | |
6564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 6566 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 6567 | ac_status=$? |
5c7fc7c4 PC |
6568 | grep -v '^ *+' conftest.er1 >conftest.err |
6569 | rm -f conftest.er1 | |
6570 | cat conftest.err >&5 | |
ad6254c5 AK |
6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6572 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6573 | { ac_try='test -z "$ac_c_werror_flag" |
6574 | || test ! -s conftest.err' | |
6575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6576 | (eval $ac_try) 2>&5 | |
6577 | ac_status=$? | |
6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6579 | (exit $ac_status); }; } && | |
6580 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6582 | (eval $ac_try) 2>&5 | |
6583 | ac_status=$? | |
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6585 | (exit $ac_status); }; }; then | |
6586 | eval "$as_ac_var=yes" | |
6587 | else | |
6588 | echo "$as_me: failed program was:" >&5 | |
6589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6590 | ||
6591 | eval "$as_ac_var=no" | |
6592 | fi | |
5c7fc7c4 PC |
6593 | rm -f conftest.err conftest.$ac_objext \ |
6594 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
6595 | fi |
6596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6597 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6598 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6599 | cat >>confdefs.h <<_ACEOF | |
6600 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6601 | _ACEOF | |
6602 | ||
6603 | fi | |
6604 | done | |
6605 | ||
6606 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
6607 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6608 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6610 | else | |
6611 | if test "$cross_compiling" = yes; then | |
6612 | ac_cv_func_mmap_fixed_mapped=no | |
6613 | else | |
6614 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6615 | /* confdefs.h. */ |
6616 | _ACEOF | |
6617 | cat confdefs.h >>conftest.$ac_ext | |
6618 | cat >>conftest.$ac_ext <<_ACEOF | |
6619 | /* end confdefs.h. */ | |
6620 | $ac_includes_default | |
6621 | /* malloc might have been renamed as rpl_malloc. */ | |
6622 | #undef malloc | |
6623 | ||
6624 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6625 | Here is a matrix of mmap possibilities: | |
6626 | mmap private not fixed | |
6627 | mmap private fixed at somewhere currently unmapped | |
6628 | mmap private fixed at somewhere already mapped | |
6629 | mmap shared not fixed | |
6630 | mmap shared fixed at somewhere currently unmapped | |
6631 | mmap shared fixed at somewhere already mapped | |
6632 | For private mappings, we should verify that changes cannot be read() | |
6633 | back from the file, nor mmap's back from the file at a different | |
6634 | address. (There have been systems where private was not correctly | |
6635 | implemented like the infamous i386 svr4.0, and systems where the | |
6636 | VM page cache was not coherent with the file system buffer cache | |
6637 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6638 | For shared mappings, we should conversely verify that changes get | |
6639 | propagated back to all the places they're supposed to be. | |
6640 | ||
6641 | Grep wants private fixed already mapped. | |
6642 | The main things grep needs to know about mmap are: | |
6643 | * does it exist and is it safe to write into the mmap'd area | |
6644 | * how to use it (BSD variants) */ | |
6645 | ||
6646 | #include <fcntl.h> | |
6647 | #include <sys/mman.h> | |
6648 | ||
6649 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6650 | char *malloc (); | |
6651 | #endif | |
6652 | ||
6653 | /* This mess was copied from the GNU getpagesize.h. */ | |
6654 | #if !HAVE_GETPAGESIZE | |
6655 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6656 | # if !HAVE_SYS_PARAM_H | |
6657 | # define HAVE_SYS_PARAM_H 1 | |
6658 | # endif | |
6659 | ||
6660 | # ifdef _SC_PAGESIZE | |
6661 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6662 | # else /* no _SC_PAGESIZE */ | |
6663 | # if HAVE_SYS_PARAM_H | |
6664 | # include <sys/param.h> | |
6665 | # ifdef EXEC_PAGESIZE | |
6666 | # define getpagesize() EXEC_PAGESIZE | |
6667 | # else /* no EXEC_PAGESIZE */ | |
6668 | # ifdef NBPG | |
6669 | # define getpagesize() NBPG * CLSIZE | |
6670 | # ifndef CLSIZE | |
6671 | # define CLSIZE 1 | |
6672 | # endif /* no CLSIZE */ | |
6673 | # else /* no NBPG */ | |
6674 | # ifdef NBPC | |
6675 | # define getpagesize() NBPC | |
6676 | # else /* no NBPC */ | |
6677 | # ifdef PAGESIZE | |
6678 | # define getpagesize() PAGESIZE | |
6679 | # endif /* PAGESIZE */ | |
6680 | # endif /* no NBPC */ | |
6681 | # endif /* no NBPG */ | |
6682 | # endif /* no EXEC_PAGESIZE */ | |
6683 | # else /* no HAVE_SYS_PARAM_H */ | |
6684 | # define getpagesize() 8192 /* punt totally */ | |
6685 | # endif /* no HAVE_SYS_PARAM_H */ | |
6686 | # endif /* no _SC_PAGESIZE */ | |
6687 | ||
6688 | #endif /* no HAVE_GETPAGESIZE */ | |
6689 | ||
6690 | int | |
6691 | main () | |
6692 | { | |
6693 | char *data, *data2, *data3; | |
6694 | int i, pagesize; | |
6695 | int fd; | |
6696 | ||
6697 | pagesize = getpagesize (); | |
6698 | ||
6699 | /* First, make a file with some known garbage in it. */ | |
6700 | data = (char *) malloc (pagesize); | |
6701 | if (!data) | |
6702 | exit (1); | |
6703 | for (i = 0; i < pagesize; ++i) | |
6704 | *(data + i) = rand (); | |
6705 | umask (0); | |
6706 | fd = creat ("conftest.mmap", 0600); | |
6707 | if (fd < 0) | |
6708 | exit (1); | |
6709 | if (write (fd, data, pagesize) != pagesize) | |
6710 | exit (1); | |
6711 | close (fd); | |
6712 | ||
6713 | /* Next, try to mmap the file at a fixed address which already has | |
6714 | something else allocated at it. If we can, also make sure that | |
6715 | we see the same garbage. */ | |
6716 | fd = open ("conftest.mmap", O_RDWR); | |
6717 | if (fd < 0) | |
6718 | exit (1); | |
6719 | data2 = (char *) malloc (2 * pagesize); | |
6720 | if (!data2) | |
6721 | exit (1); | |
5c7fc7c4 | 6722 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
ad6254c5 | 6723 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
5c7fc7c4 | 6724 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ad6254c5 AK |
6725 | exit (1); |
6726 | for (i = 0; i < pagesize; ++i) | |
6727 | if (*(data + i) != *(data2 + i)) | |
6728 | exit (1); | |
6729 | ||
6730 | /* Finally, make sure that changes to the mapped area do not | |
6731 | percolate back to the file as seen by read(). (This is a bug on | |
6732 | some variants of i386 svr4.0.) */ | |
6733 | for (i = 0; i < pagesize; ++i) | |
6734 | *(data2 + i) = *(data2 + i) + 1; | |
6735 | data3 = (char *) malloc (pagesize); | |
6736 | if (!data3) | |
6737 | exit (1); | |
6738 | if (read (fd, data3, pagesize) != pagesize) | |
6739 | exit (1); | |
6740 | for (i = 0; i < pagesize; ++i) | |
6741 | if (*(data + i) != *(data3 + i)) | |
6742 | exit (1); | |
6743 | close (fd); | |
6744 | exit (0); | |
6745 | } | |
6746 | _ACEOF | |
6747 | rm -f conftest$ac_exeext | |
6748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6749 | (eval $ac_link) 2>&5 | |
6750 | ac_status=$? | |
6751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6752 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6754 | (eval $ac_try) 2>&5 | |
6755 | ac_status=$? | |
6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6757 | (exit $ac_status); }; }; then | |
6758 | ac_cv_func_mmap_fixed_mapped=yes | |
6759 | else | |
6760 | echo "$as_me: program exited with status $ac_status" >&5 | |
6761 | echo "$as_me: failed program was:" >&5 | |
6762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6763 | ||
6764 | ( exit $ac_status ) | |
6765 | ac_cv_func_mmap_fixed_mapped=no | |
6766 | fi | |
5c7fc7c4 | 6767 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6768 | fi |
6769 | fi | |
6770 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
6771 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6772 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6773 | ||
6774 | cat >>confdefs.h <<\_ACEOF | |
6775 | #define HAVE_MMAP 1 | |
6776 | _ACEOF | |
6777 | ||
6778 | fi | |
6779 | rm -f conftest.mmap | |
6780 | ||
6781 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 | |
6782 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 | |
6783 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then | |
6784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6785 | else | |
6786 | if test "$cross_compiling" = yes; then | |
6787 | ac_cv_func_stat_empty_string_bug=yes | |
6788 | else | |
6789 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6790 | /* confdefs.h. */ |
6791 | _ACEOF | |
6792 | cat confdefs.h >>conftest.$ac_ext | |
6793 | cat >>conftest.$ac_ext <<_ACEOF | |
6794 | /* end confdefs.h. */ | |
6795 | $ac_includes_default | |
6796 | int | |
6797 | main () | |
6798 | { | |
6799 | struct stat sbuf; | |
6800 | exit (stat ("", &sbuf) ? 1 : 0); | |
6801 | ; | |
6802 | return 0; | |
6803 | } | |
6804 | _ACEOF | |
6805 | rm -f conftest$ac_exeext | |
6806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6807 | (eval $ac_link) 2>&5 | |
6808 | ac_status=$? | |
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6810 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6812 | (eval $ac_try) 2>&5 | |
6813 | ac_status=$? | |
6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6815 | (exit $ac_status); }; }; then | |
6816 | ac_cv_func_stat_empty_string_bug=yes | |
6817 | else | |
6818 | echo "$as_me: program exited with status $ac_status" >&5 | |
6819 | echo "$as_me: failed program was:" >&5 | |
6820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6821 | ||
6822 | ( exit $ac_status ) | |
6823 | ac_cv_func_stat_empty_string_bug=no | |
6824 | fi | |
5c7fc7c4 | 6825 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6826 | fi |
6827 | fi | |
6828 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
6829 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 | |
6830 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
5c7fc7c4 PC |
6831 | case $LIBOBJS in |
6832 | "stat.$ac_objext" | \ | |
6833 | *" stat.$ac_objext" | \ | |
6834 | "stat.$ac_objext "* | \ | |
6835 | *" stat.$ac_objext "* ) ;; | |
6836 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; | |
6837 | esac | |
6838 | ||
ad6254c5 AK |
6839 | |
6840 | cat >>confdefs.h <<_ACEOF | |
6841 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
6842 | _ACEOF | |
6843 | ||
6844 | fi | |
6845 | ||
6846 | echo "$as_me:$LINENO: checking for working strtod" >&5 | |
6847 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 | |
6848 | if test "${ac_cv_func_strtod+set}" = set; then | |
6849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6850 | else | |
6851 | if test "$cross_compiling" = yes; then | |
6852 | ac_cv_func_strtod=no | |
6853 | else | |
6854 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6855 | /* confdefs.h. */ |
6856 | _ACEOF | |
6857 | cat confdefs.h >>conftest.$ac_ext | |
6858 | cat >>conftest.$ac_ext <<_ACEOF | |
6859 | /* end confdefs.h. */ | |
6860 | ||
6861 | double strtod (); | |
6862 | int | |
6863 | main() | |
6864 | { | |
6865 | { | |
6866 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6867 | char *string = " +69"; | |
6868 | char *term; | |
6869 | double value; | |
6870 | value = strtod (string, &term); | |
6871 | if (value != 69 || term != (string + 4)) | |
6872 | exit (1); | |
6873 | } | |
6874 | ||
6875 | { | |
6876 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6877 | terminating character under some conditions. */ | |
6878 | char *string = "NaN"; | |
6879 | char *term; | |
6880 | strtod (string, &term); | |
6881 | if (term != string && *(term - 1) == 0) | |
6882 | exit (1); | |
6883 | } | |
6884 | exit (0); | |
6885 | } | |
6886 | ||
6887 | _ACEOF | |
6888 | rm -f conftest$ac_exeext | |
6889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6890 | (eval $ac_link) 2>&5 | |
6891 | ac_status=$? | |
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6895 | (eval $ac_try) 2>&5 | |
6896 | ac_status=$? | |
6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6898 | (exit $ac_status); }; }; then | |
6899 | ac_cv_func_strtod=yes | |
6900 | else | |
6901 | echo "$as_me: program exited with status $ac_status" >&5 | |
6902 | echo "$as_me: failed program was:" >&5 | |
6903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6904 | ||
6905 | ( exit $ac_status ) | |
6906 | ac_cv_func_strtod=no | |
6907 | fi | |
5c7fc7c4 | 6908 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6909 | fi |
6910 | fi | |
6911 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 | |
6912 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 | |
6913 | if test $ac_cv_func_strtod = no; then | |
5c7fc7c4 PC |
6914 | case $LIBOBJS in |
6915 | "strtod.$ac_objext" | \ | |
6916 | *" strtod.$ac_objext" | \ | |
6917 | "strtod.$ac_objext "* | \ | |
6918 | *" strtod.$ac_objext "* ) ;; | |
6919 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; | |
6920 | esac | |
6921 | ||
ad6254c5 AK |
6922 | echo "$as_me:$LINENO: checking for pow" >&5 |
6923 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 | |
6924 | if test "${ac_cv_func_pow+set}" = set; then | |
6925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6926 | else | |
6927 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6928 | /* confdefs.h. */ |
6929 | _ACEOF | |
6930 | cat confdefs.h >>conftest.$ac_ext | |
6931 | cat >>conftest.$ac_ext <<_ACEOF | |
6932 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
6933 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
6934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6935 | #define pow innocuous_pow | |
6936 | ||
ad6254c5 AK |
6937 | /* System header to define __stub macros and hopefully few prototypes, |
6938 | which can conflict with char pow (); below. | |
6939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6940 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 6941 | |
ad6254c5 AK |
6942 | #ifdef __STDC__ |
6943 | # include <limits.h> | |
6944 | #else | |
6945 | # include <assert.h> | |
6946 | #endif | |
5c7fc7c4 PC |
6947 | |
6948 | #undef pow | |
6949 | ||
ad6254c5 AK |
6950 | /* Override any gcc2 internal prototype to avoid an error. */ |
6951 | #ifdef __cplusplus | |
6952 | extern "C" | |
6953 | { | |
6954 | #endif | |
6955 | /* We use char because int might match the return type of a gcc2 | |
6956 | builtin and then its argument prototype would still apply. */ | |
6957 | char pow (); | |
6958 | /* The GNU C library defines this for functions which it implements | |
6959 | to always fail with ENOSYS. Some functions are actually named | |
6960 | something starting with __ and the normal name is an alias. */ | |
6961 | #if defined (__stub_pow) || defined (__stub___pow) | |
6962 | choke me | |
6963 | #else | |
6964 | char (*f) () = pow; | |
6965 | #endif | |
6966 | #ifdef __cplusplus | |
6967 | } | |
6968 | #endif | |
6969 | ||
6970 | int | |
6971 | main () | |
6972 | { | |
6973 | return f != pow; | |
6974 | ; | |
6975 | return 0; | |
6976 | } | |
6977 | _ACEOF | |
6978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 6980 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 6981 | ac_status=$? |
5c7fc7c4 PC |
6982 | grep -v '^ *+' conftest.er1 >conftest.err |
6983 | rm -f conftest.er1 | |
6984 | cat conftest.err >&5 | |
ad6254c5 AK |
6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6986 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6987 | { ac_try='test -z "$ac_c_werror_flag" |
6988 | || test ! -s conftest.err' | |
6989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6990 | (eval $ac_try) 2>&5 | |
6991 | ac_status=$? | |
6992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6993 | (exit $ac_status); }; } && | |
6994 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
6995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6996 | (eval $ac_try) 2>&5 | |
6997 | ac_status=$? | |
6998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6999 | (exit $ac_status); }; }; then | |
7000 | ac_cv_func_pow=yes | |
7001 | else | |
7002 | echo "$as_me: failed program was:" >&5 | |
7003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7004 | ||
7005 | ac_cv_func_pow=no | |
7006 | fi | |
5c7fc7c4 PC |
7007 | rm -f conftest.err conftest.$ac_objext \ |
7008 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7009 | fi |
7010 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 | |
7011 | echo "${ECHO_T}$ac_cv_func_pow" >&6 | |
7012 | ||
7013 | if test $ac_cv_func_pow = no; then | |
7014 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
7015 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
7016 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
7017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7018 | else | |
7019 | ac_check_lib_save_LIBS=$LIBS | |
7020 | LIBS="-lm $LIBS" | |
7021 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7022 | /* confdefs.h. */ |
7023 | _ACEOF | |
7024 | cat confdefs.h >>conftest.$ac_ext | |
7025 | cat >>conftest.$ac_ext <<_ACEOF | |
7026 | /* end confdefs.h. */ | |
7027 | ||
7028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7029 | #ifdef __cplusplus | |
7030 | extern "C" | |
7031 | #endif | |
7032 | /* We use char because int might match the return type of a gcc2 | |
7033 | builtin and then its argument prototype would still apply. */ | |
7034 | char pow (); | |
7035 | int | |
7036 | main () | |
7037 | { | |
7038 | pow (); | |
7039 | ; | |
7040 | return 0; | |
7041 | } | |
7042 | _ACEOF | |
7043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7045 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7046 | ac_status=$? |
5c7fc7c4 PC |
7047 | grep -v '^ *+' conftest.er1 >conftest.err |
7048 | rm -f conftest.er1 | |
7049 | cat conftest.err >&5 | |
ad6254c5 AK |
7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7051 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7052 | { ac_try='test -z "$ac_c_werror_flag" |
7053 | || test ! -s conftest.err' | |
7054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7055 | (eval $ac_try) 2>&5 | |
7056 | ac_status=$? | |
7057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7058 | (exit $ac_status); }; } && | |
7059 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7061 | (eval $ac_try) 2>&5 | |
7062 | ac_status=$? | |
7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7064 | (exit $ac_status); }; }; then | |
7065 | ac_cv_lib_m_pow=yes | |
7066 | else | |
7067 | echo "$as_me: failed program was:" >&5 | |
7068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7069 | ||
7070 | ac_cv_lib_m_pow=no | |
7071 | fi | |
5c7fc7c4 PC |
7072 | rm -f conftest.err conftest.$ac_objext \ |
7073 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7074 | LIBS=$ac_check_lib_save_LIBS |
7075 | fi | |
7076 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
7077 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
7078 | if test $ac_cv_lib_m_pow = yes; then | |
7079 | POW_LIB=-lm | |
7080 | else | |
7081 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
7082 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
7083 | fi | |
7084 | ||
7085 | fi | |
7086 | ||
7087 | fi | |
7088 | ||
7089 | ||
7090 | ################################################################################ | |
7091 | ||
7092 | ||
7093 | ################################################################################ | |
7094 | # Check whether --enable-jobs or --disable-jobs was given. | |
7095 | if test "${enable_jobs+set}" = set; then | |
7096 | enableval="$enable_jobs" | |
7097 | JOBS=-j$enableval | |
7098 | else | |
7099 | JOBS=-j2 | |
7100 | fi; | |
7101 | ||
7102 | ################################################################################ | |
7103 | echo "$as_me:$LINENO: checking file owner" >&5 | |
7104 | echo $ECHO_N "checking file owner... $ECHO_C" >&6 | |
7105 | OWNER="root" | |
7106 | ||
7107 | ||
7108 | # Check whether --with-user or --without-user was given. | |
7109 | if test "${with_user+set}" = set; then | |
7110 | withval="$with_user" | |
7111 | OWNER="$withval" | |
7112 | fi; | |
7113 | echo "$as_me:$LINENO: result: $OWNER" >&5 | |
7114 | echo "${ECHO_T}$OWNER" >&6 | |
7115 | ||
7116 | if test x$OWNER != x; then | |
7117 | OWNER="-o $OWNER" | |
7118 | fi | |
7119 | ||
7120 | ################################################################################ | |
7121 | echo "$as_me:$LINENO: checking group owner" >&5 | |
7122 | echo $ECHO_N "checking group owner... $ECHO_C" >&6 | |
7123 | GROUP="root" | |
7124 | ||
7125 | # Check whether --with-group or --without-group was given. | |
7126 | if test "${with_group+set}" = set; then | |
7127 | withval="$with_group" | |
7128 | GROUP="$withval" | |
7129 | fi; | |
7130 | echo "$as_me:$LINENO: result: $GROUP" >&5 | |
7131 | echo "${ECHO_T}$GROUP" >&6 | |
7132 | ||
7133 | if test x$GROUP != x; then | |
7134 | GROUP="-g $GROUP" | |
7135 | fi | |
7136 | ||
7137 | ################################################################################ | |
7138 | echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 | |
7139 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6 | |
7140 | # Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given. | |
7141 | if test "${enable_lvm1_fallback+set}" = set; then | |
7142 | enableval="$enable_lvm1_fallback" | |
7143 | LVM1_FALLBACK=$enableval | |
7144 | else | |
7145 | LVM1_FALLBACK=no | |
7146 | fi; | |
7147 | echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 | |
7148 | echo "${ECHO_T}$LVM1_FALLBACK" >&6 | |
7149 | ||
7150 | if test x$LVM1_FALLBACK = xyes; then | |
7151 | CFLAGS="$CFLAGS -DLVM1_FALLBACK" | |
7152 | fi | |
7153 | ||
7154 | ################################################################################ | |
7155 | echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 | |
7156 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6 | |
7157 | ||
7158 | # Check whether --with-lvm1 or --without-lvm1 was given. | |
7159 | if test "${with_lvm1+set}" = set; then | |
7160 | withval="$with_lvm1" | |
7161 | LVM1="$withval" | |
7162 | else | |
7163 | LVM1="internal" | |
7164 | fi; | |
7165 | echo "$as_me:$LINENO: result: $LVM1" >&5 | |
7166 | echo "${ECHO_T}$LVM1" >&6 | |
7167 | ||
7168 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
7169 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
7170 | " >&5 | |
7171 | echo "$as_me: error: --with-lvm1 parameter invalid | |
7172 | " >&2;} | |
7173 | { (exit 1); exit 1; }; } | |
7174 | fi; | |
7175 | ||
7176 | if test x$LVM1 = xinternal; then | |
7177 | CFLAGS="$CFLAGS -DLVM1_INTERNAL" | |
7178 | fi | |
7179 | ||
7180 | ################################################################################ | |
7181 | echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 | |
7182 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6 | |
7183 | ||
7184 | # Check whether --with-pool or --without-pool was given. | |
7185 | if test "${with_pool+set}" = set; then | |
7186 | withval="$with_pool" | |
7187 | POOL="$withval" | |
7188 | else | |
7189 | POOL="internal" | |
7190 | fi; | |
7191 | echo "$as_me:$LINENO: result: $POOL" >&5 | |
7192 | echo "${ECHO_T}$POOL" >&6 | |
7193 | ||
7194 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
7195 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
7196 | " >&5 | |
7197 | echo "$as_me: error: --with-pool parameter invalid | |
7198 | " >&2;} | |
7199 | { (exit 1); exit 1; }; } | |
7200 | fi; | |
7201 | ||
7202 | if test x$POOL = xinternal; then | |
7203 | CFLAGS="$CFLAGS -DPOOL_INTERNAL" | |
7204 | fi | |
7205 | ||
7206 | ################################################################################ | |
7207 | echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 | |
7208 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6 | |
7209 | ||
7210 | # Check whether --with-cluster or --without-cluster was given. | |
7211 | if test "${with_cluster+set}" = set; then | |
7212 | withval="$with_cluster" | |
7213 | CLUSTER="$withval" | |
7214 | fi; | |
7215 | echo "$as_me:$LINENO: result: $CLUSTER" >&5 | |
7216 | echo "${ECHO_T}$CLUSTER" >&6 | |
7217 | ||
7218 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
7219 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
7220 | " >&5 | |
7221 | echo "$as_me: error: --with-cluster parameter invalid | |
7222 | " >&2;} | |
7223 | { (exit 1); exit 1; }; } | |
7224 | fi; | |
7225 | ||
7226 | if test x$CLUSTER = xinternal; then | |
7227 | CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL" | |
7228 | fi | |
7229 | ||
7230 | ################################################################################ | |
7231 | echo "$as_me:$LINENO: checking whether to include snapshots" >&5 | |
7232 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6 | |
7233 | ||
7234 | # Check whether --with-snapshots or --without-snapshots was given. | |
7235 | if test "${with_snapshots+set}" = set; then | |
7236 | withval="$with_snapshots" | |
7237 | SNAPSHOTS="$withval" | |
7238 | else | |
7239 | SNAPSHOTS="internal" | |
7240 | fi; | |
7241 | echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 | |
7242 | echo "${ECHO_T}$SNAPSHOTS" >&6 | |
7243 | ||
7244 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
7245 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
7246 | " >&5 | |
7247 | echo "$as_me: error: --with-snapshots parameter invalid | |
7248 | " >&2;} | |
7249 | { (exit 1); exit 1; }; } | |
7250 | fi; | |
7251 | ||
7252 | if test x$SNAPSHOTS = xinternal; then | |
7253 | CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL" | |
7254 | fi | |
7255 | ||
7256 | ################################################################################ | |
7257 | echo "$as_me:$LINENO: checking whether to include mirrors" >&5 | |
7258 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6 | |
7259 | ||
7260 | # Check whether --with-mirrors or --without-mirrors was given. | |
7261 | if test "${with_mirrors+set}" = set; then | |
7262 | withval="$with_mirrors" | |
7263 | MIRRORS="$withval" | |
7264 | else | |
7265 | MIRRORS="internal" | |
7266 | fi; | |
7267 | echo "$as_me:$LINENO: result: $MIRRORS" >&5 | |
7268 | echo "${ECHO_T}$MIRRORS" >&6 | |
7269 | ||
7270 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
7271 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
7272 | " >&5 | |
7273 | echo "$as_me: error: --with-mirrors parameter invalid | |
7274 | " >&2;} | |
7275 | { (exit 1); exit 1; }; } | |
7276 | fi; | |
7277 | ||
7278 | if test x$MIRRORS = xinternal; then | |
7279 | CFLAGS="$CFLAGS -DMIRRORED_INTERNAL" | |
7280 | fi | |
7281 | ||
7282 | ################################################################################ | |
7283 | echo "$as_me:$LINENO: checking whether to use static linking" >&5 | |
7284 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6 | |
7285 | # Check whether --enable-static_link or --disable-static_link was given. | |
7286 | if test "${enable_static_link+set}" = set; then | |
7287 | enableval="$enable_static_link" | |
7288 | STATIC_LINK=$enableval | |
7289 | else | |
7290 | STATIC_LINK=no | |
7291 | fi; | |
7292 | echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
7293 | echo "${ECHO_T}$STATIC_LINK" >&6 | |
7294 | ||
7295 | ################################################################################ | |
7296 | echo "$as_me:$LINENO: checking whether to enable readline" >&5 | |
7297 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6 | |
7298 | # Check whether --enable-readline or --disable-readline was given. | |
7299 | if test "${enable_readline+set}" = set; then | |
7300 | enableval="$enable_readline" | |
7301 | READLINE=$enableval | |
7302 | else | |
7303 | READLINE=no | |
7304 | fi; | |
7305 | echo "$as_me:$LINENO: result: $READLINE" >&5 | |
7306 | echo "${ECHO_T}$READLINE" >&6 | |
7307 | ||
7308 | if test x$READLINE = xyes; then | |
7309 | CFLAGS="$CFLAGS -DREADLINE_SUPPORT" | |
7310 | fi | |
7311 | ||
7312 | ################################################################################ | |
7313 | echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 | |
7314 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6 | |
7315 | # Check whether --enable-selinux or --disable-selinux was given. | |
7316 | if test "${enable_selinux+set}" = set; then | |
7317 | enableval="$enable_selinux" | |
7318 | SELINUX=$enableval | |
7319 | fi; | |
7320 | echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
7321 | echo "${ECHO_T}$SELINUX" >&6 | |
7322 | ||
7323 | ################################################################################ | |
7324 | echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
7325 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6 | |
7326 | ||
7327 | # Check whether --with-clvmd or --without-clvmd was given. | |
7328 | if test "${with_clvmd+set}" = set; then | |
7329 | withval="$with_clvmd" | |
a266258f | 7330 | CLVMD="$withval" |
ad6254c5 | 7331 | else |
a266258f | 7332 | CLVMD="none" |
ad6254c5 | 7333 | fi; |
a266258f | 7334 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 7335 | CLVMD=all |
b1098701 | 7336 | fi |
ad6254c5 AK |
7337 | echo "$as_me:$LINENO: result: $CLVMD" >&5 |
7338 | echo "${ECHO_T}$CLVMD" >&6 | |
7339 | ||
a266258f | 7340 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
7341 | CLUSTER=internal |
7342 | fi | |
7343 | ||
7344 | ################################################################################ | |
7345 | echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
7346 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
7347 | # Check whether --enable-debug or --disable-debug was given. | |
7348 | if test "${enable_debug+set}" = set; then | |
7349 | enableval="$enable_debug" | |
7350 | DEBUG=$enableval | |
7351 | else | |
7352 | DEBUG=no | |
7353 | fi; | |
7354 | echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
7355 | echo "${ECHO_T}$DEBUG" >&6 | |
7356 | ||
7357 | if test x$DEBUG = xyes; then | |
7358 | COPTIMISE_FLAG= | |
7359 | fi | |
7360 | ||
7361 | ################################################################################ | |
7362 | echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
7363 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6 | |
7364 | ||
7365 | # Check whether --with-optimisation or --without-optimisation was given. | |
7366 | if test "${with_optimisation+set}" = set; then | |
7367 | withval="$with_optimisation" | |
7368 | COPTIMISE_FLAG="$withval" | |
7369 | fi; | |
7370 | echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
7371 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6 | |
7372 | ||
7373 | ################################################################################ | |
7374 | echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 | |
7375 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6 | |
7376 | # Check whether --enable-devmapper or --disable-devmapper was given. | |
7377 | if test "${enable_devmapper+set}" = set; then | |
7378 | enableval="$enable_devmapper" | |
7379 | DEVMAPPER=$enableval | |
7380 | fi; | |
7381 | echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 | |
7382 | echo "${ECHO_T}$DEVMAPPER" >&6 | |
7383 | ||
7384 | if test x$DEVMAPPER = xyes; then | |
7385 | CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT" | |
7386 | fi | |
7387 | ||
7388 | ################################################################################ | |
7389 | echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 | |
7390 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6 | |
7391 | # Check whether --enable-o_direct or --disable-o_direct was given. | |
7392 | if test "${enable_o_direct+set}" = set; then | |
7393 | enableval="$enable_o_direct" | |
7394 | ODIRECT=$enableval | |
7395 | fi; | |
7396 | echo "$as_me:$LINENO: result: $ODIRECT" >&5 | |
7397 | echo "${ECHO_T}$ODIRECT" >&6 | |
7398 | ||
7399 | if test x$ODIRECT = xyes; then | |
7400 | CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT" | |
7401 | fi | |
7402 | ||
7403 | ################################################################################ | |
7404 | echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 | |
7405 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6 | |
7406 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
7407 | if test "${enable_cmdlib+set}" = set; then | |
7408 | enableval="$enable_cmdlib" | |
7409 | CMDLIB=$enableval | |
7410 | else | |
7411 | CMDLIB=no | |
7412 | fi; | |
7413 | echo "$as_me:$LINENO: result: $CMDLIB" >&5 | |
7414 | echo "${ECHO_T}$CMDLIB" >&6 | |
7415 | ||
59376640 | 7416 | if test x$CMDLIB = xyes; then |
ad6254c5 AK |
7417 | CFLAGS="$CFLAGS -DCMDLIB" |
7418 | fi | |
7419 | ||
7420 | ################################################################################ | |
7421 | echo "$as_me:$LINENO: checking whether to build fsadm" >&5 | |
7422 | echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6 | |
7423 | # Check whether --enable-fsadm or --disable-fsadm was given. | |
7424 | if test "${enable_fsadm+set}" = set; then | |
7425 | enableval="$enable_fsadm" | |
7426 | FSADM=$enableval | |
7427 | fi; | |
7428 | echo "$as_me:$LINENO: result: $FSADM" >&5 | |
7429 | echo "${ECHO_T}$FSADM" >&6 | |
7430 | ||
7431 | ################################################################################ | |
7432 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
7433 | then exec_prefix=""; | |
7434 | fi; | |
7435 | ||
7436 | ################################################################################ | |
7437 | if test $ac_cv_c_compiler_gnu = yes; then | |
7438 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
7439 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
7440 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
7441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7442 | else | |
7443 | ac_pattern="Autoconf.*'x'" | |
7444 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7445 | /* confdefs.h. */ |
7446 | _ACEOF | |
7447 | cat confdefs.h >>conftest.$ac_ext | |
7448 | cat >>conftest.$ac_ext <<_ACEOF | |
7449 | /* end confdefs.h. */ | |
7450 | #include <sgtty.h> | |
7451 | Autoconf TIOCGETP | |
7452 | _ACEOF | |
7453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7454 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7455 | ac_cv_prog_gcc_traditional=yes | |
7456 | else | |
7457 | ac_cv_prog_gcc_traditional=no | |
7458 | fi | |
7459 | rm -f conftest* | |
7460 | ||
7461 | ||
7462 | if test $ac_cv_prog_gcc_traditional = no; then | |
7463 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7464 | /* confdefs.h. */ |
7465 | _ACEOF | |
7466 | cat confdefs.h >>conftest.$ac_ext | |
7467 | cat >>conftest.$ac_ext <<_ACEOF | |
7468 | /* end confdefs.h. */ | |
7469 | #include <termio.h> | |
7470 | Autoconf TCGETA | |
7471 | _ACEOF | |
7472 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7473 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7474 | ac_cv_prog_gcc_traditional=yes | |
7475 | fi | |
7476 | rm -f conftest* | |
7477 | ||
7478 | fi | |
7479 | fi | |
7480 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
7481 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
7482 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7483 | CC="$CC -traditional" | |
7484 | fi | |
7485 | fi | |
7486 | ||
7487 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7488 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
7489 | if test "${ac_cv_type_signal+set}" = set; then | |
7490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7491 | else | |
7492 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7493 | /* confdefs.h. */ |
7494 | _ACEOF | |
7495 | cat confdefs.h >>conftest.$ac_ext | |
7496 | cat >>conftest.$ac_ext <<_ACEOF | |
7497 | /* end confdefs.h. */ | |
7498 | #include <sys/types.h> | |
7499 | #include <signal.h> | |
7500 | #ifdef signal | |
7501 | # undef signal | |
7502 | #endif | |
7503 | #ifdef __cplusplus | |
7504 | extern "C" void (*signal (int, void (*)(int)))(int); | |
7505 | #else | |
7506 | void (*signal ()) (); | |
7507 | #endif | |
7508 | ||
7509 | int | |
7510 | main () | |
7511 | { | |
7512 | int i; | |
7513 | ; | |
7514 | return 0; | |
7515 | } | |
7516 | _ACEOF | |
7517 | rm -f conftest.$ac_objext | |
7518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 7519 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 7520 | ac_status=$? |
5c7fc7c4 PC |
7521 | grep -v '^ *+' conftest.er1 >conftest.err |
7522 | rm -f conftest.er1 | |
7523 | cat conftest.err >&5 | |
ad6254c5 AK |
7524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7525 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7526 | { ac_try='test -z "$ac_c_werror_flag" |
7527 | || test ! -s conftest.err' | |
7528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7529 | (eval $ac_try) 2>&5 | |
7530 | ac_status=$? | |
7531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7532 | (exit $ac_status); }; } && | |
7533 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
7534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7535 | (eval $ac_try) 2>&5 | |
7536 | ac_status=$? | |
7537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7538 | (exit $ac_status); }; }; then | |
7539 | ac_cv_type_signal=void | |
7540 | else | |
7541 | echo "$as_me: failed program was:" >&5 | |
7542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7543 | ||
7544 | ac_cv_type_signal=int | |
7545 | fi | |
5c7fc7c4 | 7546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
7547 | fi |
7548 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
7549 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
7550 | ||
7551 | cat >>confdefs.h <<_ACEOF | |
7552 | #define RETSIGTYPE $ac_cv_type_signal | |
7553 | _ACEOF | |
7554 | ||
7555 | ||
7556 | ||
7557 | for ac_func in vprintf | |
7558 | do | |
7559 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7560 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7561 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7562 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7564 | else | |
7565 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7566 | /* confdefs.h. */ |
7567 | _ACEOF | |
7568 | cat confdefs.h >>conftest.$ac_ext | |
7569 | cat >>conftest.$ac_ext <<_ACEOF | |
7570 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
7571 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7572 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7573 | #define $ac_func innocuous_$ac_func | |
7574 | ||
ad6254c5 AK |
7575 | /* System header to define __stub macros and hopefully few prototypes, |
7576 | which can conflict with char $ac_func (); below. | |
7577 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7578 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 7579 | |
ad6254c5 AK |
7580 | #ifdef __STDC__ |
7581 | # include <limits.h> | |
7582 | #else | |
7583 | # include <assert.h> | |
7584 | #endif | |
5c7fc7c4 PC |
7585 | |
7586 | #undef $ac_func | |
7587 | ||
ad6254c5 AK |
7588 | /* Override any gcc2 internal prototype to avoid an error. */ |
7589 | #ifdef __cplusplus | |
7590 | extern "C" | |
7591 | { | |
7592 | #endif | |
7593 | /* We use char because int might match the return type of a gcc2 | |
7594 | builtin and then its argument prototype would still apply. */ | |
7595 | char $ac_func (); | |
7596 | /* The GNU C library defines this for functions which it implements | |
7597 | to always fail with ENOSYS. Some functions are actually named | |
7598 | something starting with __ and the normal name is an alias. */ | |
7599 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7600 | choke me | |
7601 | #else | |
7602 | char (*f) () = $ac_func; | |
7603 | #endif | |
7604 | #ifdef __cplusplus | |
7605 | } | |
7606 | #endif | |
7607 | ||
7608 | int | |
7609 | main () | |
7610 | { | |
7611 | return f != $ac_func; | |
7612 | ; | |
7613 | return 0; | |
7614 | } | |
7615 | _ACEOF | |
7616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7618 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7619 | ac_status=$? |
5c7fc7c4 PC |
7620 | grep -v '^ *+' conftest.er1 >conftest.err |
7621 | rm -f conftest.er1 | |
7622 | cat conftest.err >&5 | |
ad6254c5 AK |
7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7624 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7625 | { ac_try='test -z "$ac_c_werror_flag" |
7626 | || test ! -s conftest.err' | |
7627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7628 | (eval $ac_try) 2>&5 | |
7629 | ac_status=$? | |
7630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7631 | (exit $ac_status); }; } && | |
7632 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7634 | (eval $ac_try) 2>&5 | |
7635 | ac_status=$? | |
7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7637 | (exit $ac_status); }; }; then | |
7638 | eval "$as_ac_var=yes" | |
7639 | else | |
7640 | echo "$as_me: failed program was:" >&5 | |
7641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7642 | ||
7643 | eval "$as_ac_var=no" | |
7644 | fi | |
5c7fc7c4 PC |
7645 | rm -f conftest.err conftest.$ac_objext \ |
7646 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7647 | fi |
7648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7651 | cat >>confdefs.h <<_ACEOF | |
7652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7653 | _ACEOF | |
7654 | ||
7655 | echo "$as_me:$LINENO: checking for _doprnt" >&5 | |
7656 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
7657 | if test "${ac_cv_func__doprnt+set}" = set; then | |
7658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7659 | else | |
7660 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7661 | /* confdefs.h. */ |
7662 | _ACEOF | |
7663 | cat confdefs.h >>conftest.$ac_ext | |
7664 | cat >>conftest.$ac_ext <<_ACEOF | |
7665 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
7666 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
7667 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7668 | #define _doprnt innocuous__doprnt | |
7669 | ||
ad6254c5 AK |
7670 | /* System header to define __stub macros and hopefully few prototypes, |
7671 | which can conflict with char _doprnt (); below. | |
7672 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7673 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 7674 | |
ad6254c5 AK |
7675 | #ifdef __STDC__ |
7676 | # include <limits.h> | |
7677 | #else | |
7678 | # include <assert.h> | |
7679 | #endif | |
5c7fc7c4 PC |
7680 | |
7681 | #undef _doprnt | |
7682 | ||
ad6254c5 AK |
7683 | /* Override any gcc2 internal prototype to avoid an error. */ |
7684 | #ifdef __cplusplus | |
7685 | extern "C" | |
7686 | { | |
7687 | #endif | |
7688 | /* We use char because int might match the return type of a gcc2 | |
7689 | builtin and then its argument prototype would still apply. */ | |
7690 | char _doprnt (); | |
7691 | /* The GNU C library defines this for functions which it implements | |
7692 | to always fail with ENOSYS. Some functions are actually named | |
7693 | something starting with __ and the normal name is an alias. */ | |
7694 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
7695 | choke me | |
7696 | #else | |
7697 | char (*f) () = _doprnt; | |
7698 | #endif | |
7699 | #ifdef __cplusplus | |
7700 | } | |
7701 | #endif | |
7702 | ||
7703 | int | |
7704 | main () | |
7705 | { | |
7706 | return f != _doprnt; | |
7707 | ; | |
7708 | return 0; | |
7709 | } | |
7710 | _ACEOF | |
7711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7713 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7714 | ac_status=$? |
5c7fc7c4 PC |
7715 | grep -v '^ *+' conftest.er1 >conftest.err |
7716 | rm -f conftest.er1 | |
7717 | cat conftest.err >&5 | |
ad6254c5 AK |
7718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7719 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7720 | { ac_try='test -z "$ac_c_werror_flag" |
7721 | || test ! -s conftest.err' | |
7722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7723 | (eval $ac_try) 2>&5 | |
7724 | ac_status=$? | |
7725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7726 | (exit $ac_status); }; } && | |
7727 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7729 | (eval $ac_try) 2>&5 | |
7730 | ac_status=$? | |
7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7732 | (exit $ac_status); }; }; then | |
7733 | ac_cv_func__doprnt=yes | |
7734 | else | |
7735 | echo "$as_me: failed program was:" >&5 | |
7736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7737 | ||
7738 | ac_cv_func__doprnt=no | |
7739 | fi | |
5c7fc7c4 PC |
7740 | rm -f conftest.err conftest.$ac_objext \ |
7741 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7742 | fi |
7743 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
7744 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
7745 | if test $ac_cv_func__doprnt = yes; then | |
7746 | ||
7747 | cat >>confdefs.h <<\_ACEOF | |
7748 | #define HAVE_DOPRNT 1 | |
7749 | _ACEOF | |
7750 | ||
7751 | fi | |
7752 | ||
7753 | fi | |
7754 | done | |
7755 | ||
7756 | ||
7757 | ||
7758 | ||
7759 | ||
7760 | for ac_func in mkdir rmdir uname | |
7761 | do | |
7762 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7763 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7764 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7765 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7767 | else | |
7768 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7769 | /* confdefs.h. */ |
7770 | _ACEOF | |
7771 | cat confdefs.h >>conftest.$ac_ext | |
7772 | cat >>conftest.$ac_ext <<_ACEOF | |
7773 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
7774 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7775 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7776 | #define $ac_func innocuous_$ac_func | |
7777 | ||
ad6254c5 AK |
7778 | /* System header to define __stub macros and hopefully few prototypes, |
7779 | which can conflict with char $ac_func (); below. | |
7780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7781 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 7782 | |
ad6254c5 AK |
7783 | #ifdef __STDC__ |
7784 | # include <limits.h> | |
7785 | #else | |
7786 | # include <assert.h> | |
7787 | #endif | |
5c7fc7c4 PC |
7788 | |
7789 | #undef $ac_func | |
7790 | ||
ad6254c5 AK |
7791 | /* Override any gcc2 internal prototype to avoid an error. */ |
7792 | #ifdef __cplusplus | |
7793 | extern "C" | |
7794 | { | |
7795 | #endif | |
7796 | /* We use char because int might match the return type of a gcc2 | |
7797 | builtin and then its argument prototype would still apply. */ | |
7798 | char $ac_func (); | |
7799 | /* The GNU C library defines this for functions which it implements | |
7800 | to always fail with ENOSYS. Some functions are actually named | |
7801 | something starting with __ and the normal name is an alias. */ | |
7802 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7803 | choke me | |
7804 | #else | |
7805 | char (*f) () = $ac_func; | |
7806 | #endif | |
7807 | #ifdef __cplusplus | |
7808 | } | |
7809 | #endif | |
7810 | ||
7811 | int | |
7812 | main () | |
7813 | { | |
7814 | return f != $ac_func; | |
7815 | ; | |
7816 | return 0; | |
7817 | } | |
7818 | _ACEOF | |
7819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7821 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7822 | ac_status=$? |
5c7fc7c4 PC |
7823 | grep -v '^ *+' conftest.er1 >conftest.err |
7824 | rm -f conftest.er1 | |
7825 | cat conftest.err >&5 | |
ad6254c5 AK |
7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7827 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7828 | { ac_try='test -z "$ac_c_werror_flag" |
7829 | || test ! -s conftest.err' | |
7830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7831 | (eval $ac_try) 2>&5 | |
7832 | ac_status=$? | |
7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7834 | (exit $ac_status); }; } && | |
7835 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7837 | (eval $ac_try) 2>&5 | |
7838 | ac_status=$? | |
7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7840 | (exit $ac_status); }; }; then | |
7841 | eval "$as_ac_var=yes" | |
7842 | else | |
7843 | echo "$as_me: failed program was:" >&5 | |
7844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7845 | ||
7846 | eval "$as_ac_var=no" | |
7847 | fi | |
5c7fc7c4 PC |
7848 | rm -f conftest.err conftest.$ac_objext \ |
7849 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7850 | fi |
7851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7852 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7853 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7854 | cat >>confdefs.h <<_ACEOF | |
7855 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7856 | _ACEOF | |
7857 | ||
7858 | else | |
7859 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
7860 | echo "$as_me: error: bailing out" >&2;} | |
7861 | { (exit 1); exit 1; }; } | |
7862 | fi | |
7863 | done | |
7864 | ||
7865 | ||
7866 | ################################################################################ | |
7867 | if test x$READLINE = xyes; then | |
7868 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
7869 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
7870 | if test "${ac_cv_search_tgetent+set}" = set; then | |
7871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7872 | else | |
7873 | ac_func_search_save_LIBS=$LIBS | |
7874 | ac_cv_search_tgetent=no | |
7875 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7876 | /* confdefs.h. */ |
7877 | _ACEOF | |
7878 | cat confdefs.h >>conftest.$ac_ext | |
7879 | cat >>conftest.$ac_ext <<_ACEOF | |
7880 | /* end confdefs.h. */ | |
7881 | ||
7882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7883 | #ifdef __cplusplus | |
7884 | extern "C" | |
7885 | #endif | |
7886 | /* We use char because int might match the return type of a gcc2 | |
7887 | builtin and then its argument prototype would still apply. */ | |
7888 | char tgetent (); | |
7889 | int | |
7890 | main () | |
7891 | { | |
7892 | tgetent (); | |
7893 | ; | |
7894 | return 0; | |
7895 | } | |
7896 | _ACEOF | |
7897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7899 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7900 | ac_status=$? |
5c7fc7c4 PC |
7901 | grep -v '^ *+' conftest.er1 >conftest.err |
7902 | rm -f conftest.er1 | |
7903 | cat conftest.err >&5 | |
ad6254c5 AK |
7904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7905 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7906 | { ac_try='test -z "$ac_c_werror_flag" |
7907 | || test ! -s conftest.err' | |
7908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7909 | (eval $ac_try) 2>&5 | |
7910 | ac_status=$? | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7912 | (exit $ac_status); }; } && | |
7913 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7915 | (eval $ac_try) 2>&5 | |
7916 | ac_status=$? | |
7917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7918 | (exit $ac_status); }; }; then | |
7919 | ac_cv_search_tgetent="none required" | |
7920 | else | |
7921 | echo "$as_me: failed program was:" >&5 | |
7922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7923 | ||
7924 | fi | |
5c7fc7c4 PC |
7925 | rm -f conftest.err conftest.$ac_objext \ |
7926 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7927 | if test "$ac_cv_search_tgetent" = no; then |
7928 | for ac_lib in ncurses curses termcap termlib; do | |
7929 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7930 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7931 | /* confdefs.h. */ |
7932 | _ACEOF | |
7933 | cat confdefs.h >>conftest.$ac_ext | |
7934 | cat >>conftest.$ac_ext <<_ACEOF | |
7935 | /* end confdefs.h. */ | |
7936 | ||
7937 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7938 | #ifdef __cplusplus | |
7939 | extern "C" | |
7940 | #endif | |
7941 | /* We use char because int might match the return type of a gcc2 | |
7942 | builtin and then its argument prototype would still apply. */ | |
7943 | char tgetent (); | |
7944 | int | |
7945 | main () | |
7946 | { | |
7947 | tgetent (); | |
7948 | ; | |
7949 | return 0; | |
7950 | } | |
7951 | _ACEOF | |
7952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7954 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7955 | ac_status=$? |
5c7fc7c4 PC |
7956 | grep -v '^ *+' conftest.er1 >conftest.err |
7957 | rm -f conftest.er1 | |
7958 | cat conftest.err >&5 | |
ad6254c5 AK |
7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7960 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7961 | { ac_try='test -z "$ac_c_werror_flag" |
7962 | || test ! -s conftest.err' | |
7963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7964 | (eval $ac_try) 2>&5 | |
7965 | ac_status=$? | |
7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7967 | (exit $ac_status); }; } && | |
7968 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7970 | (eval $ac_try) 2>&5 | |
7971 | ac_status=$? | |
7972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7973 | (exit $ac_status); }; }; then | |
7974 | ac_cv_search_tgetent="-l$ac_lib" | |
7975 | break | |
7976 | else | |
7977 | echo "$as_me: failed program was:" >&5 | |
7978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7979 | ||
7980 | fi | |
5c7fc7c4 PC |
7981 | rm -f conftest.err conftest.$ac_objext \ |
7982 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7983 | done |
7984 | fi | |
7985 | LIBS=$ac_func_search_save_LIBS | |
7986 | fi | |
7987 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
7988 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
7989 | if test "$ac_cv_search_tgetent" != no; then | |
7990 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
7991 | ||
7992 | else | |
7993 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
7994 | --enable-readline option (which is enabled by default). Either disable readline | |
7995 | support with --disable-readline or download and install termcap from: | |
7996 | ftp.gnu.org/gnu/termcap | |
7997 | Note: if you are using precompiled packages you will also need the development | |
7998 | package as well (which may be called termcap-devel or something similar). | |
7999 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8000 | not found either - but you could try installing that as well. | |
8001 | " >&5 | |
8002 | echo "$as_me: error: termcap could not be found which is required for the | |
8003 | --enable-readline option (which is enabled by default). Either disable readline | |
8004 | support with --disable-readline or download and install termcap from: | |
8005 | ftp.gnu.org/gnu/termcap | |
8006 | Note: if you are using precompiled packages you will also need the development | |
8007 | package as well (which may be called termcap-devel or something similar). | |
8008 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8009 | not found either - but you could try installing that as well. | |
8010 | " >&2;} | |
8011 | { (exit 1); exit 1; }; } | |
8012 | ||
8013 | fi | |
8014 | ||
8015 | fi | |
8016 | ||
8017 | ################################################################################ | |
8018 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8019 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8020 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8022 | else | |
8023 | ac_check_lib_save_LIBS=$LIBS | |
8024 | LIBS="-ldl $LIBS" | |
8025 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8026 | /* confdefs.h. */ |
8027 | _ACEOF | |
8028 | cat confdefs.h >>conftest.$ac_ext | |
8029 | cat >>conftest.$ac_ext <<_ACEOF | |
8030 | /* end confdefs.h. */ | |
8031 | ||
8032 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8033 | #ifdef __cplusplus | |
8034 | extern "C" | |
8035 | #endif | |
8036 | /* We use char because int might match the return type of a gcc2 | |
8037 | builtin and then its argument prototype would still apply. */ | |
8038 | char dlopen (); | |
8039 | int | |
8040 | main () | |
8041 | { | |
8042 | dlopen (); | |
8043 | ; | |
8044 | return 0; | |
8045 | } | |
8046 | _ACEOF | |
8047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8049 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8050 | ac_status=$? |
5c7fc7c4 PC |
8051 | grep -v '^ *+' conftest.er1 >conftest.err |
8052 | rm -f conftest.er1 | |
8053 | cat conftest.err >&5 | |
ad6254c5 AK |
8054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8055 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8056 | { ac_try='test -z "$ac_c_werror_flag" |
8057 | || test ! -s conftest.err' | |
8058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8059 | (eval $ac_try) 2>&5 | |
8060 | ac_status=$? | |
8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8062 | (exit $ac_status); }; } && | |
8063 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8065 | (eval $ac_try) 2>&5 | |
8066 | ac_status=$? | |
8067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8068 | (exit $ac_status); }; }; then | |
8069 | ac_cv_lib_dl_dlopen=yes | |
8070 | else | |
8071 | echo "$as_me: failed program was:" >&5 | |
8072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8073 | ||
8074 | ac_cv_lib_dl_dlopen=no | |
8075 | fi | |
5c7fc7c4 PC |
8076 | rm -f conftest.err conftest.$ac_objext \ |
8077 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8078 | LIBS=$ac_check_lib_save_LIBS |
8079 | fi | |
8080 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8081 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8082 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8083 | HAVE_LIBDL=yes | |
8084 | else | |
8085 | HAVE_LIBDL=no | |
8086 | fi | |
8087 | ||
8088 | ||
7e9e9502 | 8089 | if [ "x$HAVE_LIBDL" = xyes ]; then |
ad6254c5 AK |
8090 | CFLAGS="$CFLAGS -DHAVE_LIBDL" |
8091 | LIBS="-ldl $LIBS" | |
8092 | else | |
8093 | HAVE_LIBDL=no | |
8094 | fi | |
8095 | ||
8096 | ################################################################################ | |
8097 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8098 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8099 | \) -a "x$STATIC_LINK" = xyes ]; | |
8100 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically | |
8101 | " >&5 | |
8102 | echo "$as_me: error: Features cannot be 'shared' when building statically | |
8103 | " >&2;} | |
8104 | { (exit 1); exit 1; }; } | |
8105 | fi | |
8106 | ||
8107 | ################################################################################ | |
8108 | if test x$SELINUX = xyes; then | |
8109 | echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5 | |
8110 | echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6 | |
8111 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
8112 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 | |
8113 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
8114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8115 | else | |
8116 | ac_check_lib_save_LIBS=$LIBS | |
8117 | LIBS="-lselinux $LIBS" | |
8118 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8119 | /* confdefs.h. */ |
8120 | _ACEOF | |
8121 | cat confdefs.h >>conftest.$ac_ext | |
8122 | cat >>conftest.$ac_ext <<_ACEOF | |
8123 | /* end confdefs.h. */ | |
8124 | ||
8125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8126 | #ifdef __cplusplus | |
8127 | extern "C" | |
8128 | #endif | |
8129 | /* We use char because int might match the return type of a gcc2 | |
8130 | builtin and then its argument prototype would still apply. */ | |
8131 | char is_selinux_enabled (); | |
8132 | int | |
8133 | main () | |
8134 | { | |
8135 | is_selinux_enabled (); | |
8136 | ; | |
8137 | return 0; | |
8138 | } | |
8139 | _ACEOF | |
8140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8142 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8143 | ac_status=$? |
5c7fc7c4 PC |
8144 | grep -v '^ *+' conftest.er1 >conftest.err |
8145 | rm -f conftest.er1 | |
8146 | cat conftest.err >&5 | |
ad6254c5 AK |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8148 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8149 | { ac_try='test -z "$ac_c_werror_flag" |
8150 | || test ! -s conftest.err' | |
8151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8152 | (eval $ac_try) 2>&5 | |
8153 | ac_status=$? | |
8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8155 | (exit $ac_status); }; } && | |
8156 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8158 | (eval $ac_try) 2>&5 | |
8159 | ac_status=$? | |
8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8161 | (exit $ac_status); }; }; then | |
8162 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
8163 | else | |
8164 | echo "$as_me: failed program was:" >&5 | |
8165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8166 | ||
8167 | ac_cv_lib_selinux_is_selinux_enabled=no | |
8168 | fi | |
5c7fc7c4 PC |
8169 | rm -f conftest.err conftest.$ac_objext \ |
8170 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8171 | LIBS=$ac_check_lib_save_LIBS |
8172 | fi | |
8173 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
8174 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 | |
8175 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then | |
8176 | HAVE_SELINUX=yes | |
8177 | else | |
8178 | HAVE_SELINUX=no | |
8179 | fi | |
8180 | ||
8181 | echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5 | |
8182 | echo "${ECHO_T}$HAVE_SELINUX" >&6 | |
8183 | ||
8184 | if test x$HAVE_SELINUX = xyes; then | |
8185 | CFLAGS="$CFLAGS -DHAVE_SELINUX" | |
8186 | LIBS="-lselinux $LIBS" | |
8187 | else | |
8188 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
8189 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
8190 | fi | |
8191 | fi | |
8192 | ||
8193 | ################################################################################ | |
8194 | ||
8195 | for ac_header in getopt.h | |
8196 | do | |
8197 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8199 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8200 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8203 | fi | |
8204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8205 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8206 | else | |
8207 | # Is the header compilable? | |
8208 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8209 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8210 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8211 | /* confdefs.h. */ |
8212 | _ACEOF | |
8213 | cat confdefs.h >>conftest.$ac_ext | |
8214 | cat >>conftest.$ac_ext <<_ACEOF | |
8215 | /* end confdefs.h. */ | |
8216 | $ac_includes_default | |
8217 | #include <$ac_header> | |
8218 | _ACEOF | |
8219 | rm -f conftest.$ac_objext | |
8220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 8221 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8222 | ac_status=$? |
5c7fc7c4 PC |
8223 | grep -v '^ *+' conftest.er1 >conftest.err |
8224 | rm -f conftest.er1 | |
8225 | cat conftest.err >&5 | |
ad6254c5 AK |
8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8227 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8228 | { ac_try='test -z "$ac_c_werror_flag" |
8229 | || test ! -s conftest.err' | |
8230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8231 | (eval $ac_try) 2>&5 | |
8232 | ac_status=$? | |
8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8234 | (exit $ac_status); }; } && | |
8235 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8237 | (eval $ac_try) 2>&5 | |
8238 | ac_status=$? | |
8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8240 | (exit $ac_status); }; }; then | |
8241 | ac_header_compiler=yes | |
8242 | else | |
8243 | echo "$as_me: failed program was:" >&5 | |
8244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8245 | ||
8246 | ac_header_compiler=no | |
8247 | fi | |
5c7fc7c4 | 8248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8249 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8250 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8251 | ||
8252 | # Is the header present? | |
8253 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8254 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8255 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8256 | /* confdefs.h. */ |
8257 | _ACEOF | |
8258 | cat confdefs.h >>conftest.$ac_ext | |
8259 | cat >>conftest.$ac_ext <<_ACEOF | |
8260 | /* end confdefs.h. */ | |
8261 | #include <$ac_header> | |
8262 | _ACEOF | |
8263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8265 | ac_status=$? | |
8266 | grep -v '^ *+' conftest.er1 >conftest.err | |
8267 | rm -f conftest.er1 | |
8268 | cat conftest.err >&5 | |
8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8270 | (exit $ac_status); } >/dev/null; then | |
8271 | if test -s conftest.err; then | |
8272 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 8273 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8274 | else |
8275 | ac_cpp_err= | |
8276 | fi | |
8277 | else | |
8278 | ac_cpp_err=yes | |
8279 | fi | |
8280 | if test -z "$ac_cpp_err"; then | |
8281 | ac_header_preproc=yes | |
8282 | else | |
8283 | echo "$as_me: failed program was:" >&5 | |
8284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8285 | ||
8286 | ac_header_preproc=no | |
8287 | fi | |
8288 | rm -f conftest.err conftest.$ac_ext | |
8289 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8290 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8291 | ||
8292 | # So? What about this header? | |
5c7fc7c4 PC |
8293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8294 | yes:no: ) | |
ad6254c5 AK |
8295 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8296 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
8297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8298 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8299 | ac_header_preproc=yes | |
ad6254c5 | 8300 | ;; |
5c7fc7c4 | 8301 | no:yes:* ) |
ad6254c5 AK |
8302 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8303 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
8304 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8305 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8306 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8307 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8308 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8309 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
8312 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8313 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8314 | ( |
8315 | cat <<\_ASBOX | |
5c7fc7c4 PC |
8316 | ## ------------------------------------------ ## |
8317 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8318 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8319 | _ASBOX |
8320 | ) | | |
8321 | sed "s/^/$as_me: WARNING: /" >&2 | |
8322 | ;; | |
8323 | esac | |
8324 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8328 | else | |
5c7fc7c4 | 8329 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8330 | fi |
8331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8332 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8333 | ||
8334 | fi | |
8335 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8336 | cat >>confdefs.h <<_ACEOF | |
8337 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8338 | _ACEOF | |
8339 | CFLAGS="$CFLAGS -DHAVE_GETOPTLONG" | |
8340 | fi | |
8341 | ||
8342 | done | |
8343 | ||
8344 | ||
8345 | ################################################################################ | |
8346 | if test x$READLINE = xyes; then | |
8347 | ||
8348 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
8349 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
8350 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
8351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8352 | else | |
8353 | ac_check_lib_save_LIBS=$LIBS | |
8354 | LIBS="-lreadline $LIBS" | |
8355 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8356 | /* confdefs.h. */ |
8357 | _ACEOF | |
8358 | cat confdefs.h >>conftest.$ac_ext | |
8359 | cat >>conftest.$ac_ext <<_ACEOF | |
8360 | /* end confdefs.h. */ | |
8361 | ||
8362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8363 | #ifdef __cplusplus | |
8364 | extern "C" | |
8365 | #endif | |
8366 | /* We use char because int might match the return type of a gcc2 | |
8367 | builtin and then its argument prototype would still apply. */ | |
8368 | char readline (); | |
8369 | int | |
8370 | main () | |
8371 | { | |
8372 | readline (); | |
8373 | ; | |
8374 | return 0; | |
8375 | } | |
8376 | _ACEOF | |
8377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8379 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8380 | ac_status=$? |
5c7fc7c4 PC |
8381 | grep -v '^ *+' conftest.er1 >conftest.err |
8382 | rm -f conftest.er1 | |
8383 | cat conftest.err >&5 | |
ad6254c5 AK |
8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8385 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8386 | { ac_try='test -z "$ac_c_werror_flag" |
8387 | || test ! -s conftest.err' | |
8388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8389 | (eval $ac_try) 2>&5 | |
8390 | ac_status=$? | |
8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8392 | (exit $ac_status); }; } && | |
8393 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8395 | (eval $ac_try) 2>&5 | |
8396 | ac_status=$? | |
8397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8398 | (exit $ac_status); }; }; then | |
8399 | ac_cv_lib_readline_readline=yes | |
8400 | else | |
8401 | echo "$as_me: failed program was:" >&5 | |
8402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8403 | ||
8404 | ac_cv_lib_readline_readline=no | |
8405 | fi | |
5c7fc7c4 PC |
8406 | rm -f conftest.err conftest.$ac_objext \ |
8407 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8408 | LIBS=$ac_check_lib_save_LIBS |
8409 | fi | |
8410 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
8411 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
8412 | if test $ac_cv_lib_readline_readline = yes; then | |
8413 | cat >>confdefs.h <<_ACEOF | |
8414 | #define HAVE_LIBREADLINE 1 | |
8415 | _ACEOF | |
8416 | ||
8417 | LIBS="-lreadline $LIBS" | |
8418 | ||
8419 | else | |
8420 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
8421 | --enable-readline option (which is enabled by default). Either disable readline | |
8422 | support with --disable-readline or download and install readline from: | |
8423 | ftp.gnu.org/gnu/readline | |
8424 | Note: if you are using precompiled packages you will also need the development | |
8425 | package as well (which may be called readline-devel or something similar). | |
8426 | " >&5 | |
8427 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
8428 | --enable-readline option (which is enabled by default). Either disable readline | |
8429 | support with --disable-readline or download and install readline from: | |
8430 | ftp.gnu.org/gnu/readline | |
8431 | Note: if you are using precompiled packages you will also need the development | |
8432 | package as well (which may be called readline-devel or something similar). | |
8433 | " >&2;} | |
8434 | { (exit 1); exit 1; }; } | |
8435 | ||
8436 | fi | |
8437 | ||
8438 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 | |
8439 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
8440 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
8441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8442 | else | |
8443 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8444 | /* confdefs.h. */ |
8445 | _ACEOF | |
8446 | cat confdefs.h >>conftest.$ac_ext | |
8447 | cat >>conftest.$ac_ext <<_ACEOF | |
8448 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
8449 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
8450 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8451 | #define rl_completion_matches innocuous_rl_completion_matches | |
8452 | ||
ad6254c5 AK |
8453 | /* System header to define __stub macros and hopefully few prototypes, |
8454 | which can conflict with char rl_completion_matches (); below. | |
8455 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8456 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 8457 | |
ad6254c5 AK |
8458 | #ifdef __STDC__ |
8459 | # include <limits.h> | |
8460 | #else | |
8461 | # include <assert.h> | |
8462 | #endif | |
5c7fc7c4 PC |
8463 | |
8464 | #undef rl_completion_matches | |
8465 | ||
ad6254c5 AK |
8466 | /* Override any gcc2 internal prototype to avoid an error. */ |
8467 | #ifdef __cplusplus | |
8468 | extern "C" | |
8469 | { | |
8470 | #endif | |
8471 | /* We use char because int might match the return type of a gcc2 | |
8472 | builtin and then its argument prototype would still apply. */ | |
8473 | char rl_completion_matches (); | |
8474 | /* The GNU C library defines this for functions which it implements | |
8475 | to always fail with ENOSYS. Some functions are actually named | |
8476 | something starting with __ and the normal name is an alias. */ | |
8477 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
8478 | choke me | |
8479 | #else | |
8480 | char (*f) () = rl_completion_matches; | |
8481 | #endif | |
8482 | #ifdef __cplusplus | |
8483 | } | |
8484 | #endif | |
8485 | ||
8486 | int | |
8487 | main () | |
8488 | { | |
8489 | return f != rl_completion_matches; | |
8490 | ; | |
8491 | return 0; | |
8492 | } | |
8493 | _ACEOF | |
8494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8496 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8497 | ac_status=$? |
5c7fc7c4 PC |
8498 | grep -v '^ *+' conftest.er1 >conftest.err |
8499 | rm -f conftest.er1 | |
8500 | cat conftest.err >&5 | |
ad6254c5 AK |
8501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8502 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8503 | { ac_try='test -z "$ac_c_werror_flag" |
8504 | || test ! -s conftest.err' | |
8505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8506 | (eval $ac_try) 2>&5 | |
8507 | ac_status=$? | |
8508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8509 | (exit $ac_status); }; } && | |
8510 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8512 | (eval $ac_try) 2>&5 | |
8513 | ac_status=$? | |
8514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8515 | (exit $ac_status); }; }; then | |
8516 | ac_cv_func_rl_completion_matches=yes | |
8517 | else | |
8518 | echo "$as_me: failed program was:" >&5 | |
8519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8520 | ||
8521 | ac_cv_func_rl_completion_matches=no | |
8522 | fi | |
5c7fc7c4 PC |
8523 | rm -f conftest.err conftest.$ac_objext \ |
8524 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8525 | fi |
8526 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 | |
8527 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
8528 | if test $ac_cv_func_rl_completion_matches = yes; then | |
8529 | CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES" | |
8530 | fi | |
8531 | ||
8532 | ||
8533 | fi | |
8534 | ||
8535 | ################################################################################ | |
8536 | echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 | |
8537 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6 | |
8538 | # Check whether --enable-nls or --disable-nls was given. | |
8539 | if test "${enable_nls+set}" = set; then | |
8540 | enableval="$enable_nls" | |
8541 | INTL=$enableval | |
8542 | else | |
8543 | INTL=no | |
8544 | fi; | |
8545 | echo "$as_me:$LINENO: result: $INTL" >&5 | |
8546 | echo "${ECHO_T}$INTL" >&6 | |
8547 | ||
8548 | if test x$INTL = xyes; then | |
8549 | INTL_PACKAGE="lvm2" | |
8550 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8551 | set dummy msgfmt; ac_word=$2 | |
8552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8554 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8556 | else | |
8557 | case $MSGFMT in | |
8558 | [\\/]* | ?:[\\/]*) | |
8559 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8560 | ;; | |
8561 | *) | |
8562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8563 | for as_dir in $PATH | |
8564 | do | |
8565 | IFS=$as_save_IFS | |
8566 | test -z "$as_dir" && as_dir=. | |
8567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8569 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
8570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8571 | break 2 | |
8572 | fi | |
8573 | done | |
8574 | done | |
8575 | ||
8576 | ;; | |
8577 | esac | |
8578 | fi | |
8579 | MSGFMT=$ac_cv_path_MSGFMT | |
8580 | ||
8581 | if test -n "$MSGFMT"; then | |
8582 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
8583 | echo "${ECHO_T}$MSGFMT" >&6 | |
8584 | else | |
8585 | echo "$as_me:$LINENO: result: no" >&5 | |
8586 | echo "${ECHO_T}no" >&6 | |
8587 | fi | |
8588 | ||
8589 | if [ "x$MSGFMT" == x ]; | |
8590 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH | |
8591 | " >&5 | |
8592 | echo "$as_me: error: msgfmt not found in path $PATH | |
8593 | " >&2;} | |
8594 | { (exit 1); exit 1; }; } | |
8595 | fi; | |
8596 | ||
8597 | ||
8598 | # Check whether --with-localedir or --without-localedir was given. | |
8599 | if test "${with_localedir+set}" = set; then | |
8600 | withval="$with_localedir" | |
8601 | LOCALEDIR="$withval" | |
8602 | else | |
8603 | LOCALEDIR='${prefix}/share/locale' | |
8604 | fi; | |
8605 | fi | |
8606 | ||
8607 | ################################################################################ | |
8608 | ||
8609 | # Check whether --with-confdir or --without-confdir was given. | |
8610 | if test "${with_confdir+set}" = set; then | |
8611 | withval="$with_confdir" | |
8612 | CONFDIR="$withval" | |
8613 | else | |
8614 | CONFDIR='/etc' | |
8615 | fi; | |
8616 | ||
8617 | ||
8618 | # Check whether --with-staticdir or --without-staticdir was given. | |
8619 | if test "${with_staticdir+set}" = set; then | |
8620 | withval="$with_staticdir" | |
8621 | STATICDIR="$withval" | |
8622 | else | |
8623 | STATICDIR='${exec_prefix}/sbin' | |
8624 | fi; | |
8625 | ||
8626 | ################################################################################ | |
8627 | if test x$READLINE = xyes; then | |
8628 | ||
8629 | ||
8630 | for ac_header in readline/readline.h readline/history.h | |
8631 | do | |
8632 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8633 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8638 | fi | |
8639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8640 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8641 | else | |
8642 | # Is the header compilable? | |
8643 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8644 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8645 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8646 | /* confdefs.h. */ |
8647 | _ACEOF | |
8648 | cat confdefs.h >>conftest.$ac_ext | |
8649 | cat >>conftest.$ac_ext <<_ACEOF | |
8650 | /* end confdefs.h. */ | |
8651 | $ac_includes_default | |
8652 | #include <$ac_header> | |
8653 | _ACEOF | |
8654 | rm -f conftest.$ac_objext | |
8655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 8656 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8657 | ac_status=$? |
5c7fc7c4 PC |
8658 | grep -v '^ *+' conftest.er1 >conftest.err |
8659 | rm -f conftest.er1 | |
8660 | cat conftest.err >&5 | |
ad6254c5 AK |
8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8662 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8663 | { ac_try='test -z "$ac_c_werror_flag" |
8664 | || test ! -s conftest.err' | |
8665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8666 | (eval $ac_try) 2>&5 | |
8667 | ac_status=$? | |
8668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8669 | (exit $ac_status); }; } && | |
8670 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8672 | (eval $ac_try) 2>&5 | |
8673 | ac_status=$? | |
8674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8675 | (exit $ac_status); }; }; then | |
8676 | ac_header_compiler=yes | |
8677 | else | |
8678 | echo "$as_me: failed program was:" >&5 | |
8679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8680 | ||
8681 | ac_header_compiler=no | |
8682 | fi | |
5c7fc7c4 | 8683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8684 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8685 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8686 | ||
8687 | # Is the header present? | |
8688 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8689 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8690 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8691 | /* confdefs.h. */ |
8692 | _ACEOF | |
8693 | cat confdefs.h >>conftest.$ac_ext | |
8694 | cat >>conftest.$ac_ext <<_ACEOF | |
8695 | /* end confdefs.h. */ | |
8696 | #include <$ac_header> | |
8697 | _ACEOF | |
8698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8700 | ac_status=$? | |
8701 | grep -v '^ *+' conftest.er1 >conftest.err | |
8702 | rm -f conftest.er1 | |
8703 | cat conftest.err >&5 | |
8704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8705 | (exit $ac_status); } >/dev/null; then | |
8706 | if test -s conftest.err; then | |
8707 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 8708 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8709 | else |
8710 | ac_cpp_err= | |
8711 | fi | |
8712 | else | |
8713 | ac_cpp_err=yes | |
8714 | fi | |
8715 | if test -z "$ac_cpp_err"; then | |
8716 | ac_header_preproc=yes | |
8717 | else | |
8718 | echo "$as_me: failed program was:" >&5 | |
8719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8720 | ||
8721 | ac_header_preproc=no | |
8722 | fi | |
8723 | rm -f conftest.err conftest.$ac_ext | |
8724 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8725 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8726 | ||
8727 | # So? What about this header? | |
5c7fc7c4 PC |
8728 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8729 | yes:no: ) | |
ad6254c5 AK |
8730 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8731 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
8732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8733 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8734 | ac_header_preproc=yes | |
ad6254c5 | 8735 | ;; |
5c7fc7c4 | 8736 | no:yes:* ) |
ad6254c5 AK |
8737 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8738 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
8739 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8740 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8741 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8742 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8743 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8744 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8745 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8746 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
8747 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8748 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8749 | ( |
8750 | cat <<\_ASBOX | |
5c7fc7c4 PC |
8751 | ## ------------------------------------------ ## |
8752 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8753 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8754 | _ASBOX |
8755 | ) | | |
8756 | sed "s/^/$as_me: WARNING: /" >&2 | |
8757 | ;; | |
8758 | esac | |
8759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8763 | else | |
5c7fc7c4 | 8764 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8765 | fi |
8766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8768 | ||
8769 | fi | |
8770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8771 | cat >>confdefs.h <<_ACEOF | |
8772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8773 | _ACEOF | |
8774 | ||
8775 | else | |
8776 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8777 | echo "$as_me: error: bailing out" >&2;} | |
8778 | { (exit 1); exit 1; }; } | |
8779 | fi | |
8780 | ||
8781 | done | |
8782 | ||
8783 | fi | |
8784 | ||
5c7fc7c4 | 8785 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
8786 | |
8787 | ||
8788 | ||
8789 | ||
8790 | ||
8791 | ||
8792 | ||
8793 | ||
8794 | ||
8795 | ||
8796 | 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 | |
8797 | do | |
8798 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8800 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8801 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8804 | fi | |
8805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8807 | else | |
8808 | # Is the header compilable? | |
8809 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8810 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8811 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8812 | /* confdefs.h. */ |
8813 | _ACEOF | |
8814 | cat confdefs.h >>conftest.$ac_ext | |
8815 | cat >>conftest.$ac_ext <<_ACEOF | |
8816 | /* end confdefs.h. */ | |
8817 | $ac_includes_default | |
8818 | #include <$ac_header> | |
8819 | _ACEOF | |
8820 | rm -f conftest.$ac_objext | |
8821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 8822 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8823 | ac_status=$? |
5c7fc7c4 PC |
8824 | grep -v '^ *+' conftest.er1 >conftest.err |
8825 | rm -f conftest.er1 | |
8826 | cat conftest.err >&5 | |
ad6254c5 AK |
8827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8828 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8829 | { ac_try='test -z "$ac_c_werror_flag" |
8830 | || test ! -s conftest.err' | |
8831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8832 | (eval $ac_try) 2>&5 | |
8833 | ac_status=$? | |
8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8835 | (exit $ac_status); }; } && | |
8836 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8838 | (eval $ac_try) 2>&5 | |
8839 | ac_status=$? | |
8840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8841 | (exit $ac_status); }; }; then | |
8842 | ac_header_compiler=yes | |
8843 | else | |
8844 | echo "$as_me: failed program was:" >&5 | |
8845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8846 | ||
8847 | ac_header_compiler=no | |
8848 | fi | |
5c7fc7c4 | 8849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8850 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8851 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8852 | ||
8853 | # Is the header present? | |
8854 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8855 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8856 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8857 | /* confdefs.h. */ |
8858 | _ACEOF | |
8859 | cat confdefs.h >>conftest.$ac_ext | |
8860 | cat >>conftest.$ac_ext <<_ACEOF | |
8861 | /* end confdefs.h. */ | |
8862 | #include <$ac_header> | |
8863 | _ACEOF | |
8864 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8865 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8866 | ac_status=$? | |
8867 | grep -v '^ *+' conftest.er1 >conftest.err | |
8868 | rm -f conftest.er1 | |
8869 | cat conftest.err >&5 | |
8870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8871 | (exit $ac_status); } >/dev/null; then | |
8872 | if test -s conftest.err; then | |
8873 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 8874 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8875 | else |
8876 | ac_cpp_err= | |
8877 | fi | |
8878 | else | |
8879 | ac_cpp_err=yes | |
8880 | fi | |
8881 | if test -z "$ac_cpp_err"; then | |
8882 | ac_header_preproc=yes | |
8883 | else | |
8884 | echo "$as_me: failed program was:" >&5 | |
8885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8886 | ||
8887 | ac_header_preproc=no | |
8888 | fi | |
8889 | rm -f conftest.err conftest.$ac_ext | |
8890 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8891 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8892 | ||
8893 | # So? What about this header? | |
5c7fc7c4 PC |
8894 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8895 | yes:no: ) | |
ad6254c5 AK |
8896 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8897 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
8898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8899 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8900 | ac_header_preproc=yes | |
ad6254c5 | 8901 | ;; |
5c7fc7c4 | 8902 | no:yes:* ) |
ad6254c5 AK |
8903 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8904 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
8905 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8906 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8907 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8908 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8909 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8910 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8911 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8912 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
8913 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8914 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8915 | ( |
8916 | cat <<\_ASBOX | |
5c7fc7c4 PC |
8917 | ## ------------------------------------------ ## |
8918 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8919 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8920 | _ASBOX |
8921 | ) | | |
8922 | sed "s/^/$as_me: WARNING: /" >&2 | |
8923 | ;; | |
8924 | esac | |
8925 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8929 | else | |
5c7fc7c4 | 8930 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8931 | fi |
8932 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8933 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8934 | ||
8935 | fi | |
8936 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8937 | cat >>confdefs.h <<_ACEOF | |
8938 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8939 | _ACEOF | |
8940 | ||
8941 | else | |
8942 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8943 | echo "$as_me: error: bailing out" >&2;} | |
8944 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
8945 | fi |
8946 | ||
ad6254c5 AK |
8947 | done |
8948 | ||
8949 | ||
795ca3e5 | 8950 | |
8106cdd5 | 8951 | |
ad6254c5 AK |
8952 | |
8953 | ||
8954 | for ac_func in dup2 getmntent memmove select socket | |
8955 | do | |
8956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8957 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8959 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 8961 | else |
ad6254c5 | 8962 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8963 | /* confdefs.h. */ |
8964 | _ACEOF | |
8965 | cat confdefs.h >>conftest.$ac_ext | |
8966 | cat >>conftest.$ac_ext <<_ACEOF | |
8967 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
8968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8970 | #define $ac_func innocuous_$ac_func | |
8971 | ||
795ca3e5 | 8972 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
8973 | which can conflict with char $ac_func (); below. |
8974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8975 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 8976 | |
ad6254c5 AK |
8977 | #ifdef __STDC__ |
8978 | # include <limits.h> | |
8979 | #else | |
8980 | # include <assert.h> | |
8981 | #endif | |
5c7fc7c4 PC |
8982 | |
8983 | #undef $ac_func | |
8984 | ||
795ca3e5 | 8985 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
8986 | #ifdef __cplusplus |
8987 | extern "C" | |
8988 | { | |
8989 | #endif | |
795ca3e5 | 8990 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
8991 | builtin and then its argument prototype would still apply. */ |
8992 | char $ac_func (); | |
795ca3e5 AK |
8993 | /* The GNU C library defines this for functions which it implements |
8994 | to always fail with ENOSYS. Some functions are actually named | |
8995 | something starting with __ and the normal name is an alias. */ | |
ad6254c5 | 8996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
8997 | choke me |
8998 | #else | |
ad6254c5 AK |
8999 | char (*f) () = $ac_func; |
9000 | #endif | |
9001 | #ifdef __cplusplus | |
9002 | } | |
795ca3e5 AK |
9003 | #endif |
9004 | ||
ad6254c5 AK |
9005 | int |
9006 | main () | |
9007 | { | |
9008 | return f != $ac_func; | |
9009 | ; | |
9010 | return 0; | |
9011 | } | |
9012 | _ACEOF | |
9013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9015 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9016 | ac_status=$? |
5c7fc7c4 PC |
9017 | grep -v '^ *+' conftest.er1 >conftest.err |
9018 | rm -f conftest.er1 | |
9019 | cat conftest.err >&5 | |
ad6254c5 AK |
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9021 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9022 | { ac_try='test -z "$ac_c_werror_flag" |
9023 | || test ! -s conftest.err' | |
9024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9025 | (eval $ac_try) 2>&5 | |
9026 | ac_status=$? | |
9027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9028 | (exit $ac_status); }; } && | |
9029 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9031 | (eval $ac_try) 2>&5 | |
9032 | ac_status=$? | |
9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9034 | (exit $ac_status); }; }; then | |
9035 | eval "$as_ac_var=yes" | |
795ca3e5 | 9036 | else |
ad6254c5 AK |
9037 | echo "$as_me: failed program was:" >&5 |
9038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9039 | ||
9040 | eval "$as_ac_var=no" | |
80992638 | 9041 | fi |
5c7fc7c4 PC |
9042 | rm -f conftest.err conftest.$ac_objext \ |
9043 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9044 | fi |
ad6254c5 AK |
9045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9046 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9047 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9048 | cat >>confdefs.h <<_ACEOF | |
9049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9050 | _ACEOF | |
80992638 AK |
9051 | |
9052 | else | |
ad6254c5 AK |
9053 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9054 | echo "$as_me: error: bailing out" >&2;} | |
9055 | { (exit 1); exit 1; }; } | |
8106cdd5 | 9056 | fi |
ad6254c5 | 9057 | done |
795ca3e5 | 9058 | |
ad6254c5 AK |
9059 | # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. |
9060 | echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5 | |
9061 | echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 | |
9062 | if test "${ac_cv_lib_sun_getmntent+set}" = set; then | |
9063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9064 | else |
ad6254c5 AK |
9065 | ac_check_lib_save_LIBS=$LIBS |
9066 | LIBS="-lsun $LIBS" | |
9067 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9068 | /* confdefs.h. */ |
9069 | _ACEOF | |
9070 | cat confdefs.h >>conftest.$ac_ext | |
9071 | cat >>conftest.$ac_ext <<_ACEOF | |
9072 | /* end confdefs.h. */ | |
9073 | ||
795ca3e5 | 9074 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9075 | #ifdef __cplusplus |
9076 | extern "C" | |
9077 | #endif | |
795ca3e5 | 9078 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9079 | builtin and then its argument prototype would still apply. */ |
9080 | char getmntent (); | |
9081 | int | |
9082 | main () | |
9083 | { | |
9084 | getmntent (); | |
9085 | ; | |
9086 | return 0; | |
9087 | } | |
9088 | _ACEOF | |
9089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9091 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9092 | ac_status=$? |
5c7fc7c4 PC |
9093 | grep -v '^ *+' conftest.er1 >conftest.err |
9094 | rm -f conftest.er1 | |
9095 | cat conftest.err >&5 | |
ad6254c5 AK |
9096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9097 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9098 | { ac_try='test -z "$ac_c_werror_flag" |
9099 | || test ! -s conftest.err' | |
9100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9101 | (eval $ac_try) 2>&5 | |
9102 | ac_status=$? | |
9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9104 | (exit $ac_status); }; } && | |
9105 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9107 | (eval $ac_try) 2>&5 | |
9108 | ac_status=$? | |
9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9110 | (exit $ac_status); }; }; then | |
9111 | ac_cv_lib_sun_getmntent=yes | |
9112 | else | |
9113 | echo "$as_me: failed program was:" >&5 | |
9114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 9115 | |
ad6254c5 AK |
9116 | ac_cv_lib_sun_getmntent=no |
9117 | fi | |
5c7fc7c4 PC |
9118 | rm -f conftest.err conftest.$ac_objext \ |
9119 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9120 | LIBS=$ac_check_lib_save_LIBS |
9121 | fi | |
9122 | echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5 | |
9123 | echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 | |
9124 | if test $ac_cv_lib_sun_getmntent = yes; then | |
9125 | LIBS="-lsun $LIBS" | |
9126 | else | |
9127 | echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5 | |
9128 | echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 | |
9129 | if test "${ac_cv_lib_seq_getmntent+set}" = set; then | |
9130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9131 | else | |
9132 | ac_check_lib_save_LIBS=$LIBS | |
9133 | LIBS="-lseq $LIBS" | |
9134 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9135 | /* confdefs.h. */ |
9136 | _ACEOF | |
9137 | cat confdefs.h >>conftest.$ac_ext | |
9138 | cat >>conftest.$ac_ext <<_ACEOF | |
9139 | /* end confdefs.h. */ | |
80992638 | 9140 | |
ad6254c5 AK |
9141 | /* Override any gcc2 internal prototype to avoid an error. */ |
9142 | #ifdef __cplusplus | |
9143 | extern "C" | |
795ca3e5 | 9144 | #endif |
ad6254c5 AK |
9145 | /* We use char because int might match the return type of a gcc2 |
9146 | builtin and then its argument prototype would still apply. */ | |
9147 | char getmntent (); | |
9148 | int | |
9149 | main () | |
9150 | { | |
9151 | getmntent (); | |
9152 | ; | |
9153 | return 0; | |
9154 | } | |
9155 | _ACEOF | |
9156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9158 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9159 | ac_status=$? |
5c7fc7c4 PC |
9160 | grep -v '^ *+' conftest.er1 >conftest.err |
9161 | rm -f conftest.er1 | |
9162 | cat conftest.err >&5 | |
ad6254c5 AK |
9163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9164 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9165 | { ac_try='test -z "$ac_c_werror_flag" |
9166 | || test ! -s conftest.err' | |
9167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9168 | (eval $ac_try) 2>&5 | |
9169 | ac_status=$? | |
9170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9171 | (exit $ac_status); }; } && | |
9172 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9174 | (eval $ac_try) 2>&5 | |
9175 | ac_status=$? | |
9176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9177 | (exit $ac_status); }; }; then | |
9178 | ac_cv_lib_seq_getmntent=yes | |
795ca3e5 | 9179 | else |
ad6254c5 AK |
9180 | echo "$as_me: failed program was:" >&5 |
9181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9182 | ||
9183 | ac_cv_lib_seq_getmntent=no | |
795ca3e5 | 9184 | fi |
5c7fc7c4 PC |
9185 | rm -f conftest.err conftest.$ac_objext \ |
9186 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 9187 | LIBS=$ac_check_lib_save_LIBS |
795ca3e5 | 9188 | fi |
ad6254c5 AK |
9189 | echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5 |
9190 | echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 | |
9191 | if test $ac_cv_lib_seq_getmntent = yes; then | |
9192 | LIBS="-lseq $LIBS" | |
9193 | else | |
9194 | echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5 | |
9195 | echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 | |
9196 | if test "${ac_cv_lib_gen_getmntent+set}" = set; then | |
9197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9198 | else | |
9199 | ac_check_lib_save_LIBS=$LIBS | |
9200 | LIBS="-lgen $LIBS" | |
9201 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9202 | /* confdefs.h. */ |
9203 | _ACEOF | |
9204 | cat confdefs.h >>conftest.$ac_ext | |
9205 | cat >>conftest.$ac_ext <<_ACEOF | |
9206 | /* end confdefs.h. */ | |
795ca3e5 | 9207 | |
ad6254c5 AK |
9208 | /* Override any gcc2 internal prototype to avoid an error. */ |
9209 | #ifdef __cplusplus | |
9210 | extern "C" | |
9211 | #endif | |
9212 | /* We use char because int might match the return type of a gcc2 | |
9213 | builtin and then its argument prototype would still apply. */ | |
9214 | char getmntent (); | |
9215 | int | |
9216 | main () | |
9217 | { | |
9218 | getmntent (); | |
9219 | ; | |
9220 | return 0; | |
9221 | } | |
9222 | _ACEOF | |
9223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9225 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9226 | ac_status=$? |
5c7fc7c4 PC |
9227 | grep -v '^ *+' conftest.er1 >conftest.err |
9228 | rm -f conftest.er1 | |
9229 | cat conftest.err >&5 | |
ad6254c5 AK |
9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9231 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9232 | { ac_try='test -z "$ac_c_werror_flag" |
9233 | || test ! -s conftest.err' | |
9234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9235 | (eval $ac_try) 2>&5 | |
9236 | ac_status=$? | |
9237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9238 | (exit $ac_status); }; } && | |
9239 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9241 | (eval $ac_try) 2>&5 | |
9242 | ac_status=$? | |
9243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9244 | (exit $ac_status); }; }; then | |
9245 | ac_cv_lib_gen_getmntent=yes | |
80992638 | 9246 | else |
ad6254c5 AK |
9247 | echo "$as_me: failed program was:" >&5 |
9248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9249 | ||
9250 | ac_cv_lib_gen_getmntent=no | |
9251 | fi | |
5c7fc7c4 PC |
9252 | rm -f conftest.err conftest.$ac_objext \ |
9253 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9254 | LIBS=$ac_check_lib_save_LIBS |
9255 | fi | |
9256 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5 | |
9257 | echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 | |
9258 | if test $ac_cv_lib_gen_getmntent = yes; then | |
9259 | LIBS="-lgen $LIBS" | |
795ca3e5 AK |
9260 | fi |
9261 | ||
9262 | fi | |
9263 | ||
ad6254c5 AK |
9264 | fi |
9265 | ||
9266 | ||
9267 | for ac_func in getmntent | |
795ca3e5 | 9268 | do |
ad6254c5 AK |
9269 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9270 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9271 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9272 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9274 | else | |
9275 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9276 | /* confdefs.h. */ |
9277 | _ACEOF | |
9278 | cat confdefs.h >>conftest.$ac_ext | |
9279 | cat >>conftest.$ac_ext <<_ACEOF | |
9280 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
9281 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9283 | #define $ac_func innocuous_$ac_func | |
9284 | ||
795ca3e5 | 9285 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9286 | which can conflict with char $ac_func (); below. |
9287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9288 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 9289 | |
ad6254c5 AK |
9290 | #ifdef __STDC__ |
9291 | # include <limits.h> | |
9292 | #else | |
9293 | # include <assert.h> | |
9294 | #endif | |
5c7fc7c4 PC |
9295 | |
9296 | #undef $ac_func | |
9297 | ||
795ca3e5 | 9298 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9299 | #ifdef __cplusplus |
9300 | extern "C" | |
9301 | { | |
9302 | #endif | |
795ca3e5 | 9303 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9304 | builtin and then its argument prototype would still apply. */ |
9305 | char $ac_func (); | |
795ca3e5 AK |
9306 | /* The GNU C library defines this for functions which it implements |
9307 | to always fail with ENOSYS. Some functions are actually named | |
9308 | something starting with __ and the normal name is an alias. */ | |
9309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9310 | choke me | |
9311 | #else | |
ad6254c5 AK |
9312 | char (*f) () = $ac_func; |
9313 | #endif | |
9314 | #ifdef __cplusplus | |
9315 | } | |
795ca3e5 AK |
9316 | #endif |
9317 | ||
ad6254c5 AK |
9318 | int |
9319 | main () | |
9320 | { | |
9321 | return f != $ac_func; | |
9322 | ; | |
9323 | return 0; | |
9324 | } | |
9325 | _ACEOF | |
9326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9328 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9329 | ac_status=$? |
5c7fc7c4 PC |
9330 | grep -v '^ *+' conftest.er1 >conftest.err |
9331 | rm -f conftest.er1 | |
9332 | cat conftest.err >&5 | |
ad6254c5 AK |
9333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9334 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9335 | { ac_try='test -z "$ac_c_werror_flag" |
9336 | || test ! -s conftest.err' | |
9337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9338 | (eval $ac_try) 2>&5 | |
9339 | ac_status=$? | |
9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9341 | (exit $ac_status); }; } && | |
9342 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9344 | (eval $ac_try) 2>&5 | |
9345 | ac_status=$? | |
9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9347 | (exit $ac_status); }; }; then | |
9348 | eval "$as_ac_var=yes" | |
795ca3e5 | 9349 | else |
ad6254c5 AK |
9350 | echo "$as_me: failed program was:" >&5 |
9351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9352 | ||
9353 | eval "$as_ac_var=no" | |
795ca3e5 | 9354 | fi |
5c7fc7c4 PC |
9355 | rm -f conftest.err conftest.$ac_objext \ |
9356 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9357 | fi |
ad6254c5 AK |
9358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9359 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9360 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9361 | cat >>confdefs.h <<_ACEOF | |
9362 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9363 | _ACEOF | |
795ca3e5 | 9364 | |
795ca3e5 AK |
9365 | fi |
9366 | done | |
9367 | ||
9368 | ||
ad6254c5 AK |
9369 | # AC_FUNC_REALLOC |
9370 | ||
9371 | ||
9372 | for ac_header in sys/select.h sys/socket.h | |
9373 | do | |
9374 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9376 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9380 | fi | |
9381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9382 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 9383 | else |
ad6254c5 AK |
9384 | # Is the header compilable? |
9385 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9386 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9387 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9388 | /* confdefs.h. */ |
9389 | _ACEOF | |
9390 | cat confdefs.h >>conftest.$ac_ext | |
9391 | cat >>conftest.$ac_ext <<_ACEOF | |
9392 | /* end confdefs.h. */ | |
9393 | $ac_includes_default | |
9394 | #include <$ac_header> | |
9395 | _ACEOF | |
9396 | rm -f conftest.$ac_objext | |
9397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9398 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9399 | ac_status=$? |
5c7fc7c4 PC |
9400 | grep -v '^ *+' conftest.er1 >conftest.err |
9401 | rm -f conftest.er1 | |
9402 | cat conftest.err >&5 | |
ad6254c5 AK |
9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9404 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9405 | { ac_try='test -z "$ac_c_werror_flag" |
9406 | || test ! -s conftest.err' | |
9407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9408 | (eval $ac_try) 2>&5 | |
9409 | ac_status=$? | |
9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9411 | (exit $ac_status); }; } && | |
9412 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9414 | (eval $ac_try) 2>&5 | |
9415 | ac_status=$? | |
9416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9417 | (exit $ac_status); }; }; then | |
9418 | ac_header_compiler=yes | |
80992638 | 9419 | else |
ad6254c5 AK |
9420 | echo "$as_me: failed program was:" >&5 |
9421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9422 | ||
9423 | ac_header_compiler=no | |
9424 | fi | |
5c7fc7c4 | 9425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9426 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9427 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9428 | ||
9429 | # Is the header present? | |
9430 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9431 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9432 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9433 | /* confdefs.h. */ |
9434 | _ACEOF | |
9435 | cat confdefs.h >>conftest.$ac_ext | |
9436 | cat >>conftest.$ac_ext <<_ACEOF | |
9437 | /* end confdefs.h. */ | |
9438 | #include <$ac_header> | |
9439 | _ACEOF | |
9440 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9441 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9442 | ac_status=$? | |
9443 | grep -v '^ *+' conftest.er1 >conftest.err | |
9444 | rm -f conftest.er1 | |
9445 | cat conftest.err >&5 | |
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9447 | (exit $ac_status); } >/dev/null; then | |
9448 | if test -s conftest.err; then | |
9449 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 9450 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9451 | else |
9452 | ac_cpp_err= | |
9453 | fi | |
9454 | else | |
9455 | ac_cpp_err=yes | |
795ca3e5 | 9456 | fi |
ad6254c5 AK |
9457 | if test -z "$ac_cpp_err"; then |
9458 | ac_header_preproc=yes | |
9459 | else | |
9460 | echo "$as_me: failed program was:" >&5 | |
9461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9462 | ||
9463 | ac_header_preproc=no | |
9464 | fi | |
9465 | rm -f conftest.err conftest.$ac_ext | |
9466 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9467 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9468 | ||
9469 | # So? What about this header? | |
5c7fc7c4 PC |
9470 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9471 | yes:no: ) | |
ad6254c5 AK |
9472 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9473 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
9474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9475 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9476 | ac_header_preproc=yes | |
ad6254c5 | 9477 | ;; |
5c7fc7c4 | 9478 | no:yes:* ) |
ad6254c5 AK |
9479 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9480 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
9481 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9482 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9483 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9484 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9485 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9486 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9487 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9488 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
9489 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9490 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9491 | ( |
9492 | cat <<\_ASBOX | |
5c7fc7c4 PC |
9493 | ## ------------------------------------------ ## |
9494 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9495 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9496 | _ASBOX |
9497 | ) | | |
9498 | sed "s/^/$as_me: WARNING: /" >&2 | |
9499 | ;; | |
9500 | esac | |
9501 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9502 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9505 | else | |
5c7fc7c4 | 9506 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 9507 | fi |
ad6254c5 AK |
9508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9509 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8106cdd5 | 9510 | |
795ca3e5 | 9511 | fi |
ad6254c5 AK |
9512 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9513 | cat >>confdefs.h <<_ACEOF | |
9514 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9515 | _ACEOF | |
9516 | ||
795ca3e5 AK |
9517 | fi |
9518 | ||
ad6254c5 AK |
9519 | done |
9520 | ||
9521 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 | |
9522 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 | |
9523 | if test "${ac_cv_func_select_args+set}" = set; then | |
9524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9525 | else |
ad6254c5 AK |
9526 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9527 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do | |
9528 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9529 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9530 | /* confdefs.h. */ |
9531 | _ACEOF | |
9532 | cat confdefs.h >>conftest.$ac_ext | |
9533 | cat >>conftest.$ac_ext <<_ACEOF | |
9534 | /* end confdefs.h. */ | |
9535 | $ac_includes_default | |
9536 | #if HAVE_SYS_SELECT_H | |
9537 | # include <sys/select.h> | |
9538 | #endif | |
9539 | #if HAVE_SYS_SOCKET_H | |
9540 | # include <sys/socket.h> | |
9541 | #endif | |
9542 | ||
9543 | int | |
9544 | main () | |
9545 | { | |
9546 | extern int select ($ac_arg1, | |
5c7fc7c4 PC |
9547 | $ac_arg234, $ac_arg234, $ac_arg234, |
9548 | $ac_arg5); | |
ad6254c5 AK |
9549 | ; |
9550 | return 0; | |
9551 | } | |
9552 | _ACEOF | |
9553 | rm -f conftest.$ac_objext | |
9554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9555 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9556 | ac_status=$? |
5c7fc7c4 PC |
9557 | grep -v '^ *+' conftest.er1 >conftest.err |
9558 | rm -f conftest.er1 | |
9559 | cat conftest.err >&5 | |
ad6254c5 AK |
9560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9561 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9562 | { ac_try='test -z "$ac_c_werror_flag" |
9563 | || test ! -s conftest.err' | |
9564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9565 | (eval $ac_try) 2>&5 | |
9566 | ac_status=$? | |
9567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9568 | (exit $ac_status); }; } && | |
9569 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9571 | (eval $ac_try) 2>&5 | |
9572 | ac_status=$? | |
9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9574 | (exit $ac_status); }; }; then | |
9575 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9576 | else | |
9577 | echo "$as_me: failed program was:" >&5 | |
9578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9579 | ||
9580 | fi | |
5c7fc7c4 | 9581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9582 | done |
9583 | done | |
9584 | done | |
9585 | # Provide a safe default value. | |
9586 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
9587 | ||
26e7f2e0 | 9588 | fi |
ad6254c5 AK |
9589 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
9590 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 | |
9591 | ac_save_IFS=$IFS; IFS=',' | |
9592 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9593 | IFS=$ac_save_IFS | |
9594 | shift | |
9595 | ||
9596 | cat >>confdefs.h <<_ACEOF | |
9597 | #define SELECT_TYPE_ARG1 $1 | |
9598 | _ACEOF | |
9599 | ||
9600 | ||
9601 | cat >>confdefs.h <<_ACEOF | |
9602 | #define SELECT_TYPE_ARG234 ($2) | |
9603 | _ACEOF | |
9604 | ||
9605 | ||
9606 | cat >>confdefs.h <<_ACEOF | |
9607 | #define SELECT_TYPE_ARG5 ($3) | |
9608 | _ACEOF | |
9609 | ||
80992638 | 9610 | rm -f conftest* |
80992638 | 9611 | |
8106cdd5 | 9612 | fi |
ad6254c5 AK |
9613 | |
9614 | if test x$FSADM = xyes; then | |
9615 | ||
9616 | ||
9617 | ||
9618 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
9619 | do | |
9620 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9621 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9626 | fi | |
9627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9629 | else | |
9630 | # Is the header compilable? | |
9631 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9632 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9633 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9634 | /* confdefs.h. */ |
9635 | _ACEOF | |
9636 | cat confdefs.h >>conftest.$ac_ext | |
9637 | cat >>conftest.$ac_ext <<_ACEOF | |
9638 | /* end confdefs.h. */ | |
9639 | $ac_includes_default | |
9640 | #include <$ac_header> | |
9641 | _ACEOF | |
9642 | rm -f conftest.$ac_objext | |
9643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9644 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9645 | ac_status=$? |
5c7fc7c4 PC |
9646 | grep -v '^ *+' conftest.er1 >conftest.err |
9647 | rm -f conftest.er1 | |
9648 | cat conftest.err >&5 | |
ad6254c5 AK |
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9650 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9651 | { ac_try='test -z "$ac_c_werror_flag" |
9652 | || test ! -s conftest.err' | |
9653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9654 | (eval $ac_try) 2>&5 | |
9655 | ac_status=$? | |
9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9657 | (exit $ac_status); }; } && | |
9658 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9660 | (eval $ac_try) 2>&5 | |
9661 | ac_status=$? | |
9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9663 | (exit $ac_status); }; }; then | |
9664 | ac_header_compiler=yes | |
9665 | else | |
9666 | echo "$as_me: failed program was:" >&5 | |
9667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9668 | ||
9669 | ac_header_compiler=no | |
9670 | fi | |
5c7fc7c4 | 9671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9672 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9673 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9674 | ||
9675 | # Is the header present? | |
9676 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9677 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9678 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9679 | /* confdefs.h. */ |
9680 | _ACEOF | |
9681 | cat confdefs.h >>conftest.$ac_ext | |
9682 | cat >>conftest.$ac_ext <<_ACEOF | |
9683 | /* end confdefs.h. */ | |
9684 | #include <$ac_header> | |
9685 | _ACEOF | |
9686 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9687 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9688 | ac_status=$? | |
9689 | grep -v '^ *+' conftest.er1 >conftest.err | |
9690 | rm -f conftest.er1 | |
9691 | cat conftest.err >&5 | |
9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9693 | (exit $ac_status); } >/dev/null; then | |
9694 | if test -s conftest.err; then | |
9695 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 9696 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9697 | else |
9698 | ac_cpp_err= | |
9699 | fi | |
9700 | else | |
9701 | ac_cpp_err=yes | |
9702 | fi | |
9703 | if test -z "$ac_cpp_err"; then | |
9704 | ac_header_preproc=yes | |
9705 | else | |
9706 | echo "$as_me: failed program was:" >&5 | |
9707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9708 | ||
9709 | ac_header_preproc=no | |
9710 | fi | |
9711 | rm -f conftest.err conftest.$ac_ext | |
9712 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9713 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9714 | ||
9715 | # So? What about this header? | |
5c7fc7c4 PC |
9716 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9717 | yes:no: ) | |
ad6254c5 AK |
9718 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9719 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
9720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9721 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9722 | ac_header_preproc=yes | |
ad6254c5 | 9723 | ;; |
5c7fc7c4 | 9724 | no:yes:* ) |
ad6254c5 AK |
9725 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9726 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
9727 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9728 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9729 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9730 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9731 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9732 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9734 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
9735 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9736 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9737 | ( |
9738 | cat <<\_ASBOX | |
5c7fc7c4 PC |
9739 | ## ------------------------------------------ ## |
9740 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9741 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9742 | _ASBOX |
9743 | ) | | |
9744 | sed "s/^/$as_me: WARNING: /" >&2 | |
9745 | ;; | |
9746 | esac | |
9747 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9751 | else |
5c7fc7c4 | 9752 | eval "$as_ac_Header=\$ac_header_preproc" |
26e7f2e0 | 9753 | fi |
ad6254c5 AK |
9754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26e7f2e0 | 9756 | |
ad6254c5 AK |
9757 | fi |
9758 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9759 | cat >>confdefs.h <<_ACEOF | |
9760 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9761 | _ACEOF | |
26e7f2e0 | 9762 | |
d68a82ec | 9763 | else |
ad6254c5 AK |
9764 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9765 | echo "$as_me: error: bailing out" >&2;} | |
9766 | { (exit 1); exit 1; }; } | |
26e7f2e0 AK |
9767 | fi |
9768 | ||
ad6254c5 | 9769 | done |
036f273a | 9770 | |
ad6254c5 AK |
9771 | |
9772 | for ac_func in memmove | |
9773 | do | |
9774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9775 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9777 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
036f273a | 9779 | else |
ad6254c5 | 9780 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9781 | /* confdefs.h. */ |
9782 | _ACEOF | |
9783 | cat confdefs.h >>conftest.$ac_ext | |
9784 | cat >>conftest.$ac_ext <<_ACEOF | |
9785 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
9786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9788 | #define $ac_func innocuous_$ac_func | |
9789 | ||
ad6254c5 AK |
9790 | /* System header to define __stub macros and hopefully few prototypes, |
9791 | which can conflict with char $ac_func (); below. | |
9792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9793 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 9794 | |
ad6254c5 AK |
9795 | #ifdef __STDC__ |
9796 | # include <limits.h> | |
9797 | #else | |
9798 | # include <assert.h> | |
9799 | #endif | |
5c7fc7c4 PC |
9800 | |
9801 | #undef $ac_func | |
9802 | ||
036f273a | 9803 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9804 | #ifdef __cplusplus |
9805 | extern "C" | |
9806 | { | |
9807 | #endif | |
036f273a | 9808 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9809 | builtin and then its argument prototype would still apply. */ |
9810 | char $ac_func (); | |
9811 | /* The GNU C library defines this for functions which it implements | |
9812 | to always fail with ENOSYS. Some functions are actually named | |
9813 | something starting with __ and the normal name is an alias. */ | |
9814 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9815 | choke me | |
9816 | #else | |
9817 | char (*f) () = $ac_func; | |
9818 | #endif | |
9819 | #ifdef __cplusplus | |
9820 | } | |
9821 | #endif | |
80992638 | 9822 | |
ad6254c5 AK |
9823 | int |
9824 | main () | |
9825 | { | |
9826 | return f != $ac_func; | |
9827 | ; | |
9828 | return 0; | |
9829 | } | |
9830 | _ACEOF | |
9831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9833 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9834 | ac_status=$? |
5c7fc7c4 PC |
9835 | grep -v '^ *+' conftest.er1 >conftest.err |
9836 | rm -f conftest.er1 | |
9837 | cat conftest.err >&5 | |
ad6254c5 AK |
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9839 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9840 | { ac_try='test -z "$ac_c_werror_flag" |
9841 | || test ! -s conftest.err' | |
9842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9843 | (eval $ac_try) 2>&5 | |
9844 | ac_status=$? | |
9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9846 | (exit $ac_status); }; } && | |
9847 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9849 | (eval $ac_try) 2>&5 | |
9850 | ac_status=$? | |
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9852 | (exit $ac_status); }; }; then | |
9853 | eval "$as_ac_var=yes" | |
036f273a | 9854 | else |
ad6254c5 AK |
9855 | echo "$as_me: failed program was:" >&5 |
9856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9857 | ||
9858 | eval "$as_ac_var=no" | |
036f273a | 9859 | fi |
5c7fc7c4 PC |
9860 | rm -f conftest.err conftest.$ac_objext \ |
9861 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9862 | fi |
9863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9864 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9865 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9866 | cat >>confdefs.h <<_ACEOF | |
9867 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9868 | _ACEOF | |
036f273a | 9869 | |
ad6254c5 AK |
9870 | else |
9871 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9872 | echo "$as_me: error: bailing out" >&2;} | |
9873 | { (exit 1); exit 1; }; } | |
9874 | fi | |
9875 | done | |
036f273a | 9876 | |
036f273a | 9877 | fi |
d68a82ec | 9878 | |
ad6254c5 AK |
9879 | if test x$CLUSTER != xnone; then |
9880 | ||
9881 | ||
9882 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 9883 | do |
ad6254c5 AK |
9884 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9886 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9890 | fi | |
9891 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9892 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9893 | else | |
9894 | # Is the header compilable? | |
9895 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9896 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9897 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9898 | /* confdefs.h. */ |
9899 | _ACEOF | |
9900 | cat confdefs.h >>conftest.$ac_ext | |
9901 | cat >>conftest.$ac_ext <<_ACEOF | |
9902 | /* end confdefs.h. */ | |
9903 | $ac_includes_default | |
9904 | #include <$ac_header> | |
9905 | _ACEOF | |
9906 | rm -f conftest.$ac_objext | |
9907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9908 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9909 | ac_status=$? |
5c7fc7c4 PC |
9910 | grep -v '^ *+' conftest.er1 >conftest.err |
9911 | rm -f conftest.er1 | |
9912 | cat conftest.err >&5 | |
ad6254c5 AK |
9913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9914 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9915 | { ac_try='test -z "$ac_c_werror_flag" |
9916 | || test ! -s conftest.err' | |
9917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9918 | (eval $ac_try) 2>&5 | |
9919 | ac_status=$? | |
9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9921 | (exit $ac_status); }; } && | |
9922 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9924 | (eval $ac_try) 2>&5 | |
9925 | ac_status=$? | |
9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9927 | (exit $ac_status); }; }; then | |
9928 | ac_header_compiler=yes | |
9929 | else | |
9930 | echo "$as_me: failed program was:" >&5 | |
9931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9932 | ||
9933 | ac_header_compiler=no | |
9934 | fi | |
5c7fc7c4 | 9935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9936 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9937 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9938 | ||
9939 | # Is the header present? | |
9940 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9941 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9942 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9943 | /* confdefs.h. */ |
9944 | _ACEOF | |
9945 | cat confdefs.h >>conftest.$ac_ext | |
9946 | cat >>conftest.$ac_ext <<_ACEOF | |
9947 | /* end confdefs.h. */ | |
9948 | #include <$ac_header> | |
9949 | _ACEOF | |
9950 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9951 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9952 | ac_status=$? | |
9953 | grep -v '^ *+' conftest.er1 >conftest.err | |
9954 | rm -f conftest.er1 | |
9955 | cat conftest.err >&5 | |
9956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9957 | (exit $ac_status); } >/dev/null; then | |
9958 | if test -s conftest.err; then | |
9959 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 9960 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9961 | else |
9962 | ac_cpp_err= | |
9963 | fi | |
9964 | else | |
9965 | ac_cpp_err=yes | |
8106cdd5 | 9966 | fi |
ad6254c5 AK |
9967 | if test -z "$ac_cpp_err"; then |
9968 | ac_header_preproc=yes | |
9969 | else | |
9970 | echo "$as_me: failed program was:" >&5 | |
9971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9972 | ||
9973 | ac_header_preproc=no | |
9974 | fi | |
9975 | rm -f conftest.err conftest.$ac_ext | |
9976 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9977 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9978 | ||
9979 | # So? What about this header? | |
5c7fc7c4 PC |
9980 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9981 | yes:no: ) | |
ad6254c5 AK |
9982 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9983 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
9984 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9985 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9986 | ac_header_preproc=yes | |
ad6254c5 | 9987 | ;; |
5c7fc7c4 | 9988 | no:yes:* ) |
ad6254c5 AK |
9989 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9990 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
9991 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9992 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9993 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9994 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9995 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9996 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9998 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
9999 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10000 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10001 | ( |
10002 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10003 | ## ------------------------------------------ ## |
10004 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10005 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10006 | _ASBOX |
10007 | ) | | |
10008 | sed "s/^/$as_me: WARNING: /" >&2 | |
10009 | ;; | |
10010 | esac | |
10011 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10012 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10015 | else | |
5c7fc7c4 | 10016 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10017 | fi |
ad6254c5 AK |
10018 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10019 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10020 | ||
10021 | fi | |
10022 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10023 | cat >>confdefs.h <<_ACEOF | |
10024 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10025 | _ACEOF | |
10026 | ||
80992638 | 10027 | else |
ad6254c5 AK |
10028 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10029 | echo "$as_me: error: bailing out" >&2;} | |
10030 | { (exit 1); exit 1; }; } | |
b896caa1 | 10031 | fi |
ad6254c5 | 10032 | |
b896caa1 AK |
10033 | done |
10034 | ||
10035 | ||
ad6254c5 AK |
10036 | for ac_func in socket |
10037 | do | |
10038 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10039 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10040 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10041 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 10043 | else |
ad6254c5 | 10044 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10045 | /* confdefs.h. */ |
10046 | _ACEOF | |
10047 | cat confdefs.h >>conftest.$ac_ext | |
10048 | cat >>conftest.$ac_ext <<_ACEOF | |
10049 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
10050 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10051 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10052 | #define $ac_func innocuous_$ac_func | |
10053 | ||
ad6254c5 AK |
10054 | /* System header to define __stub macros and hopefully few prototypes, |
10055 | which can conflict with char $ac_func (); below. | |
10056 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10057 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 10058 | |
ad6254c5 AK |
10059 | #ifdef __STDC__ |
10060 | # include <limits.h> | |
10061 | #else | |
10062 | # include <assert.h> | |
10063 | #endif | |
5c7fc7c4 PC |
10064 | |
10065 | #undef $ac_func | |
10066 | ||
795ca3e5 | 10067 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
10068 | #ifdef __cplusplus |
10069 | extern "C" | |
10070 | { | |
10071 | #endif | |
795ca3e5 | 10072 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
10073 | builtin and then its argument prototype would still apply. */ |
10074 | char $ac_func (); | |
10075 | /* The GNU C library defines this for functions which it implements | |
10076 | to always fail with ENOSYS. Some functions are actually named | |
10077 | something starting with __ and the normal name is an alias. */ | |
10078 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10079 | choke me | |
10080 | #else | |
10081 | char (*f) () = $ac_func; | |
10082 | #endif | |
10083 | #ifdef __cplusplus | |
10084 | } | |
10085 | #endif | |
10086 | ||
10087 | int | |
10088 | main () | |
10089 | { | |
10090 | return f != $ac_func; | |
10091 | ; | |
10092 | return 0; | |
10093 | } | |
10094 | _ACEOF | |
10095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 10097 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10098 | ac_status=$? |
5c7fc7c4 PC |
10099 | grep -v '^ *+' conftest.er1 >conftest.err |
10100 | rm -f conftest.er1 | |
10101 | cat conftest.err >&5 | |
ad6254c5 AK |
10102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10103 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10104 | { ac_try='test -z "$ac_c_werror_flag" |
10105 | || test ! -s conftest.err' | |
10106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10107 | (eval $ac_try) 2>&5 | |
10108 | ac_status=$? | |
10109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10110 | (exit $ac_status); }; } && | |
10111 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10113 | (eval $ac_try) 2>&5 | |
10114 | ac_status=$? | |
10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10116 | (exit $ac_status); }; }; then | |
10117 | eval "$as_ac_var=yes" | |
10118 | else | |
10119 | echo "$as_me: failed program was:" >&5 | |
10120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10121 | ||
10122 | eval "$as_ac_var=no" | |
10123 | fi | |
5c7fc7c4 PC |
10124 | rm -f conftest.err conftest.$ac_objext \ |
10125 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10126 | fi |
10127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10128 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10129 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10130 | cat >>confdefs.h <<_ACEOF | |
10131 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10132 | _ACEOF | |
10133 | ||
10134 | else | |
10135 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10136 | echo "$as_me: error: bailing out" >&2;} | |
10137 | { (exit 1); exit 1; }; } | |
10138 | fi | |
10139 | done | |
10140 | ||
10141 | fi | |
10142 | ||
10143 | if test x$HAVE_LIBDL = xyes; then | |
10144 | ||
10145 | for ac_header in dlfcn.h | |
10146 | do | |
10147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10149 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10153 | fi | |
10154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10155 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10156 | else | |
10157 | # Is the header compilable? | |
10158 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10159 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10160 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10161 | /* confdefs.h. */ |
10162 | _ACEOF | |
10163 | cat confdefs.h >>conftest.$ac_ext | |
10164 | cat >>conftest.$ac_ext <<_ACEOF | |
10165 | /* end confdefs.h. */ | |
10166 | $ac_includes_default | |
10167 | #include <$ac_header> | |
10168 | _ACEOF | |
10169 | rm -f conftest.$ac_objext | |
10170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10171 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10172 | ac_status=$? |
5c7fc7c4 PC |
10173 | grep -v '^ *+' conftest.er1 >conftest.err |
10174 | rm -f conftest.er1 | |
10175 | cat conftest.err >&5 | |
ad6254c5 AK |
10176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10177 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10178 | { ac_try='test -z "$ac_c_werror_flag" |
10179 | || test ! -s conftest.err' | |
10180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10181 | (eval $ac_try) 2>&5 | |
10182 | ac_status=$? | |
10183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10184 | (exit $ac_status); }; } && | |
10185 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10187 | (eval $ac_try) 2>&5 | |
10188 | ac_status=$? | |
10189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10190 | (exit $ac_status); }; }; then | |
10191 | ac_header_compiler=yes | |
10192 | else | |
10193 | echo "$as_me: failed program was:" >&5 | |
10194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10195 | ||
10196 | ac_header_compiler=no | |
10197 | fi | |
5c7fc7c4 | 10198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10199 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10200 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10201 | ||
10202 | # Is the header present? | |
10203 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10204 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10205 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10206 | /* confdefs.h. */ |
10207 | _ACEOF | |
10208 | cat confdefs.h >>conftest.$ac_ext | |
10209 | cat >>conftest.$ac_ext <<_ACEOF | |
10210 | /* end confdefs.h. */ | |
10211 | #include <$ac_header> | |
10212 | _ACEOF | |
10213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10215 | ac_status=$? | |
10216 | grep -v '^ *+' conftest.er1 >conftest.err | |
10217 | rm -f conftest.er1 | |
10218 | cat conftest.err >&5 | |
10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10220 | (exit $ac_status); } >/dev/null; then | |
10221 | if test -s conftest.err; then | |
10222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10224 | else |
10225 | ac_cpp_err= | |
10226 | fi | |
10227 | else | |
10228 | ac_cpp_err=yes | |
10229 | fi | |
10230 | if test -z "$ac_cpp_err"; then | |
10231 | ac_header_preproc=yes | |
10232 | else | |
10233 | echo "$as_me: failed program was:" >&5 | |
10234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10235 | ||
10236 | ac_header_preproc=no | |
10237 | fi | |
10238 | rm -f conftest.err conftest.$ac_ext | |
10239 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10240 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10241 | ||
10242 | # So? What about this header? | |
5c7fc7c4 PC |
10243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10244 | yes:no: ) | |
ad6254c5 AK |
10245 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10246 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10248 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10249 | ac_header_preproc=yes | |
ad6254c5 | 10250 | ;; |
5c7fc7c4 | 10251 | no:yes:* ) |
ad6254c5 AK |
10252 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10253 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10254 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10255 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10256 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10257 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10258 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10259 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10261 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10262 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10263 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10264 | ( |
10265 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10266 | ## ------------------------------------------ ## |
10267 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10268 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10269 | _ASBOX |
10270 | ) | | |
10271 | sed "s/^/$as_me: WARNING: /" >&2 | |
10272 | ;; | |
10273 | esac | |
10274 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10278 | else | |
5c7fc7c4 | 10279 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10280 | fi |
ad6254c5 AK |
10281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 10283 | |
8106cdd5 | 10284 | fi |
ad6254c5 AK |
10285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10286 | cat >>confdefs.h <<_ACEOF | |
10287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10288 | _ACEOF | |
795ca3e5 AK |
10289 | |
10290 | else | |
ad6254c5 AK |
10291 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10292 | echo "$as_me: error: bailing out" >&2;} | |
10293 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
10294 | fi |
10295 | ||
ad6254c5 | 10296 | done |
80992638 | 10297 | |
ad6254c5 | 10298 | fi |
80992638 | 10299 | |
ad6254c5 | 10300 | if test x$INTL = xyes; then |
83912faa | 10301 | |
ad6254c5 AK |
10302 | for ac_header in libintl.h |
10303 | do | |
10304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10310 | fi | |
10311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10313 | else |
ad6254c5 AK |
10314 | # Is the header compilable? |
10315 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10316 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10317 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10318 | /* confdefs.h. */ |
10319 | _ACEOF | |
10320 | cat confdefs.h >>conftest.$ac_ext | |
10321 | cat >>conftest.$ac_ext <<_ACEOF | |
10322 | /* end confdefs.h. */ | |
10323 | $ac_includes_default | |
10324 | #include <$ac_header> | |
10325 | _ACEOF | |
10326 | rm -f conftest.$ac_objext | |
10327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10328 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10329 | ac_status=$? |
5c7fc7c4 PC |
10330 | grep -v '^ *+' conftest.er1 >conftest.err |
10331 | rm -f conftest.er1 | |
10332 | cat conftest.err >&5 | |
ad6254c5 AK |
10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10334 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10335 | { ac_try='test -z "$ac_c_werror_flag" |
10336 | || test ! -s conftest.err' | |
10337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10338 | (eval $ac_try) 2>&5 | |
10339 | ac_status=$? | |
10340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10341 | (exit $ac_status); }; } && | |
10342 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10344 | (eval $ac_try) 2>&5 | |
10345 | ac_status=$? | |
10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10347 | (exit $ac_status); }; }; then | |
10348 | ac_header_compiler=yes | |
10349 | else | |
10350 | echo "$as_me: failed program was:" >&5 | |
10351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10352 | ||
10353 | ac_header_compiler=no | |
10354 | fi | |
5c7fc7c4 | 10355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10356 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10357 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10358 | ||
10359 | # Is the header present? | |
10360 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10361 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10362 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10363 | /* confdefs.h. */ |
10364 | _ACEOF | |
10365 | cat confdefs.h >>conftest.$ac_ext | |
10366 | cat >>conftest.$ac_ext <<_ACEOF | |
10367 | /* end confdefs.h. */ | |
10368 | #include <$ac_header> | |
10369 | _ACEOF | |
10370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10372 | ac_status=$? | |
10373 | grep -v '^ *+' conftest.er1 >conftest.err | |
10374 | rm -f conftest.er1 | |
10375 | cat conftest.err >&5 | |
10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); } >/dev/null; then | |
10378 | if test -s conftest.err; then | |
10379 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10380 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10381 | else |
10382 | ac_cpp_err= | |
10383 | fi | |
10384 | else | |
10385 | ac_cpp_err=yes | |
795ca3e5 | 10386 | fi |
ad6254c5 AK |
10387 | if test -z "$ac_cpp_err"; then |
10388 | ac_header_preproc=yes | |
10389 | else | |
10390 | echo "$as_me: failed program was:" >&5 | |
10391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10392 | ||
10393 | ac_header_preproc=no | |
10394 | fi | |
10395 | rm -f conftest.err conftest.$ac_ext | |
10396 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10397 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10398 | ||
10399 | # So? What about this header? | |
5c7fc7c4 PC |
10400 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10401 | yes:no: ) | |
ad6254c5 AK |
10402 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10403 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10404 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10405 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10406 | ac_header_preproc=yes | |
ad6254c5 | 10407 | ;; |
5c7fc7c4 | 10408 | no:yes:* ) |
ad6254c5 AK |
10409 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10410 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10411 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10412 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10413 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10414 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10415 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10416 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10417 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10418 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10419 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10420 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10421 | ( |
10422 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10423 | ## ------------------------------------------ ## |
10424 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10425 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10426 | _ASBOX |
10427 | ) | | |
10428 | sed "s/^/$as_me: WARNING: /" >&2 | |
10429 | ;; | |
10430 | esac | |
10431 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 10435 | else |
5c7fc7c4 | 10436 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10437 | fi |
ad6254c5 AK |
10438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10439 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10440 | |
69792976 | 10441 | fi |
ad6254c5 AK |
10442 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10443 | cat >>confdefs.h <<_ACEOF | |
10444 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10445 | _ACEOF | |
69792976 | 10446 | |
69792976 | 10447 | else |
ad6254c5 AK |
10448 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10449 | echo "$as_me: error: bailing out" >&2;} | |
10450 | { (exit 1); exit 1; }; } | |
80992638 AK |
10451 | fi |
10452 | ||
ad6254c5 | 10453 | done |
69792976 | 10454 | |
ad6254c5 AK |
10455 | fi |
10456 | ||
10457 | if test x$DEVMAPPER = xyes; then | |
10458 | ||
10459 | for ac_header in libdevmapper.h | |
10460 | do | |
10461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10467 | fi | |
10468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10470 | else |
ad6254c5 AK |
10471 | # Is the header compilable? |
10472 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10473 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10474 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10475 | /* confdefs.h. */ |
10476 | _ACEOF | |
10477 | cat confdefs.h >>conftest.$ac_ext | |
10478 | cat >>conftest.$ac_ext <<_ACEOF | |
10479 | /* end confdefs.h. */ | |
10480 | $ac_includes_default | |
10481 | #include <$ac_header> | |
10482 | _ACEOF | |
10483 | rm -f conftest.$ac_objext | |
10484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10485 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10486 | ac_status=$? |
5c7fc7c4 PC |
10487 | grep -v '^ *+' conftest.er1 >conftest.err |
10488 | rm -f conftest.er1 | |
10489 | cat conftest.err >&5 | |
ad6254c5 AK |
10490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10491 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10492 | { ac_try='test -z "$ac_c_werror_flag" |
10493 | || test ! -s conftest.err' | |
10494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10495 | (eval $ac_try) 2>&5 | |
10496 | ac_status=$? | |
10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10498 | (exit $ac_status); }; } && | |
10499 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10501 | (eval $ac_try) 2>&5 | |
10502 | ac_status=$? | |
10503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10504 | (exit $ac_status); }; }; then | |
10505 | ac_header_compiler=yes | |
10506 | else | |
10507 | echo "$as_me: failed program was:" >&5 | |
10508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10509 | ||
10510 | ac_header_compiler=no | |
10511 | fi | |
5c7fc7c4 | 10512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10513 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10514 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10515 | ||
10516 | # Is the header present? | |
10517 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10518 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10519 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10520 | /* confdefs.h. */ |
10521 | _ACEOF | |
10522 | cat confdefs.h >>conftest.$ac_ext | |
10523 | cat >>conftest.$ac_ext <<_ACEOF | |
10524 | /* end confdefs.h. */ | |
10525 | #include <$ac_header> | |
10526 | _ACEOF | |
10527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10529 | ac_status=$? | |
10530 | grep -v '^ *+' conftest.er1 >conftest.err | |
10531 | rm -f conftest.er1 | |
10532 | cat conftest.err >&5 | |
10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10534 | (exit $ac_status); } >/dev/null; then | |
10535 | if test -s conftest.err; then | |
10536 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10537 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10538 | else |
10539 | ac_cpp_err= | |
10540 | fi | |
10541 | else | |
10542 | ac_cpp_err=yes | |
69792976 | 10543 | fi |
ad6254c5 AK |
10544 | if test -z "$ac_cpp_err"; then |
10545 | ac_header_preproc=yes | |
10546 | else | |
10547 | echo "$as_me: failed program was:" >&5 | |
10548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10549 | ||
10550 | ac_header_preproc=no | |
10551 | fi | |
10552 | rm -f conftest.err conftest.$ac_ext | |
10553 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10554 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10555 | ||
10556 | # So? What about this header? | |
5c7fc7c4 PC |
10557 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10558 | yes:no: ) | |
ad6254c5 AK |
10559 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10560 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10562 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10563 | ac_header_preproc=yes | |
ad6254c5 | 10564 | ;; |
5c7fc7c4 | 10565 | no:yes:* ) |
ad6254c5 AK |
10566 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10567 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10568 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10569 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10570 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10571 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10572 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10573 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10575 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10576 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10577 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10578 | ( |
10579 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10580 | ## ------------------------------------------ ## |
10581 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10582 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10583 | _ASBOX |
10584 | ) | | |
10585 | sed "s/^/$as_me: WARNING: /" >&2 | |
10586 | ;; | |
10587 | esac | |
10588 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10590 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 10592 | else |
5c7fc7c4 | 10593 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 10594 | fi |
ad6254c5 AK |
10595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10597 | |
ad6254c5 AK |
10598 | fi |
10599 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10600 | cat >>confdefs.h <<_ACEOF | |
10601 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10602 | _ACEOF | |
69792976 | 10603 | |
69792976 | 10604 | else |
ad6254c5 AK |
10605 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10606 | echo "$as_me: error: bailing out" >&2;} | |
10607 | { (exit 1); exit 1; }; } | |
83912faa AK |
10608 | fi |
10609 | ||
ad6254c5 AK |
10610 | done |
10611 | ||
80992638 | 10612 | fi |
4a7f3eb2 | 10613 | |
ad6254c5 AK |
10614 | if test x$HAVE_SELINUX = xyes; then |
10615 | ||
10616 | for ac_header in selinux/selinux.h | |
10617 | do | |
10618 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10620 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10624 | fi | |
10625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10627 | else |
ad6254c5 AK |
10628 | # Is the header compilable? |
10629 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10630 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10631 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10632 | /* confdefs.h. */ |
10633 | _ACEOF | |
10634 | cat confdefs.h >>conftest.$ac_ext | |
10635 | cat >>conftest.$ac_ext <<_ACEOF | |
10636 | /* end confdefs.h. */ | |
10637 | $ac_includes_default | |
10638 | #include <$ac_header> | |
10639 | _ACEOF | |
10640 | rm -f conftest.$ac_objext | |
10641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10642 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10643 | ac_status=$? |
5c7fc7c4 PC |
10644 | grep -v '^ *+' conftest.er1 >conftest.err |
10645 | rm -f conftest.er1 | |
10646 | cat conftest.err >&5 | |
ad6254c5 AK |
10647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10648 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10649 | { ac_try='test -z "$ac_c_werror_flag" |
10650 | || test ! -s conftest.err' | |
10651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10652 | (eval $ac_try) 2>&5 | |
10653 | ac_status=$? | |
10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10655 | (exit $ac_status); }; } && | |
10656 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10658 | (eval $ac_try) 2>&5 | |
10659 | ac_status=$? | |
10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10661 | (exit $ac_status); }; }; then | |
10662 | ac_header_compiler=yes | |
10663 | else | |
10664 | echo "$as_me: failed program was:" >&5 | |
10665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10666 | ||
10667 | ac_header_compiler=no | |
10668 | fi | |
5c7fc7c4 | 10669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10670 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10671 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10672 | ||
10673 | # Is the header present? | |
10674 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10675 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10676 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10677 | /* confdefs.h. */ |
10678 | _ACEOF | |
10679 | cat confdefs.h >>conftest.$ac_ext | |
10680 | cat >>conftest.$ac_ext <<_ACEOF | |
10681 | /* end confdefs.h. */ | |
10682 | #include <$ac_header> | |
10683 | _ACEOF | |
10684 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10685 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10686 | ac_status=$? | |
10687 | grep -v '^ *+' conftest.er1 >conftest.err | |
10688 | rm -f conftest.er1 | |
10689 | cat conftest.err >&5 | |
10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10691 | (exit $ac_status); } >/dev/null; then | |
10692 | if test -s conftest.err; then | |
10693 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10694 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10695 | else |
10696 | ac_cpp_err= | |
10697 | fi | |
10698 | else | |
10699 | ac_cpp_err=yes | |
10700 | fi | |
10701 | if test -z "$ac_cpp_err"; then | |
10702 | ac_header_preproc=yes | |
10703 | else | |
10704 | echo "$as_me: failed program was:" >&5 | |
10705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10706 | ||
10707 | ac_header_preproc=no | |
10708 | fi | |
10709 | rm -f conftest.err conftest.$ac_ext | |
10710 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10711 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10712 | ||
10713 | # So? What about this header? | |
5c7fc7c4 PC |
10714 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10715 | yes:no: ) | |
ad6254c5 AK |
10716 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10717 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10718 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10719 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10720 | ac_header_preproc=yes | |
ad6254c5 | 10721 | ;; |
5c7fc7c4 | 10722 | no:yes:* ) |
ad6254c5 AK |
10723 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10724 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10725 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10726 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10727 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10728 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10729 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10730 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10731 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10732 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10733 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10734 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10735 | ( |
10736 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10737 | ## ------------------------------------------ ## |
10738 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10739 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10740 | _ASBOX |
10741 | ) | | |
10742 | sed "s/^/$as_me: WARNING: /" >&2 | |
10743 | ;; | |
10744 | esac | |
10745 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10746 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10749 | else | |
5c7fc7c4 | 10750 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 10751 | fi |
ad6254c5 AK |
10752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10753 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10754 | |
ad6254c5 AK |
10755 | fi |
10756 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10757 | cat >>confdefs.h <<_ACEOF | |
10758 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10759 | _ACEOF | |
0a62c911 | 10760 | |
0a62c911 | 10761 | else |
ad6254c5 AK |
10762 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10763 | echo "$as_me: error: bailing out" >&2;} | |
10764 | { (exit 1); exit 1; }; } | |
80992638 AK |
10765 | fi |
10766 | ||
ad6254c5 | 10767 | done |
0a62c911 | 10768 | |
ad6254c5 | 10769 | fi |
0a62c911 | 10770 | |
80992638 | 10771 | ################################################################################ |
fae0c576 AK |
10772 | if test "-f VERSION"; then |
10773 | LVM_VERSION="\"`cat VERSION`\"" | |
10774 | else | |
10775 | LVM_VERSION="Unknown" | |
10776 | fi | |
10777 | ||
80992638 | 10778 | ################################################################################ |
fae0c576 | 10779 | |
83912faa | 10780 | |
795ca3e5 AK |
10781 | |
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
5a52dca9 | 10787 | |
8ef2b021 | 10788 | |
199e490e | 10789 | |
69792976 AK |
10790 | |
10791 | ||
10792 | ||
10793 | ||
8106cdd5 AK |
10794 | |
10795 | ||
10796 | ||
10797 | ||
10798 | ||
d68a82ec | 10799 | |
036f273a | 10800 | |
7d1552c9 | 10801 | |
8106cdd5 | 10802 | |
0a62c911 | 10803 | |
8106cdd5 | 10804 | |
4a7f3eb2 | 10805 | |
4922197a AK |
10806 | |
10807 | ||
d8ac0fbc | 10808 | |
1a9ea74d | 10809 | |
8ce0cbda | 10810 | |
d3c8211f AK |
10811 | |
10812 | ||
80992638 | 10813 | ################################################################################ |
ad6254c5 AK |
10814 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/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" |
10815 | cat >confcache <<\_ACEOF | |
795ca3e5 AK |
10816 | # This file is a shell script that caches the results of configure |
10817 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10818 | # scripts and configure runs, see configure's option --config-cache. |
10819 | # It is not useful on other systems. If it contains results you don't | |
10820 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10821 | # |
ad6254c5 AK |
10822 | # config.status only pays attention to the cache file if you give it |
10823 | # the --recheck option to rerun configure. | |
795ca3e5 | 10824 | # |
ad6254c5 AK |
10825 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10826 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10827 | # following values. | |
10828 | ||
10829 | _ACEOF | |
10830 | ||
795ca3e5 AK |
10831 | # The following way of writing the cache mishandles newlines in values, |
10832 | # but we know of no workaround that is simple, portable, and efficient. | |
10833 | # So, don't put newlines in cache variables' values. | |
10834 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10835 | # and sets the high bit in the cache file unless we assign to the vars. | |
ad6254c5 AK |
10836 | { |
10837 | (set) 2>&1 | | |
10838 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10839 | *ac_space=\ *) | |
10840 | # `set' does not quote correctly, so add quotes (double-quote | |
10841 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10842 | sed -n \ | |
5c7fc7c4 PC |
10843 | "s/'/'\\\\''/g; |
10844 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ad6254c5 AK |
10845 | ;; |
10846 | *) | |
10847 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10848 | sed -n \ | |
5c7fc7c4 | 10849 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
10850 | ;; |
10851 | esac; | |
10852 | } | | |
10853 | sed ' | |
10854 | t clear | |
10855 | : clear | |
10856 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10857 | t end | |
10858 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10859 | : end' >>confcache | |
10860 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 10861 | if test -w $cache_file; then |
ad6254c5 AK |
10862 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
10863 | cat confcache >$cache_file | |
795ca3e5 AK |
10864 | else |
10865 | echo "not updating unwritable cache $cache_file" | |
10866 | fi | |
10867 | fi | |
10868 | rm -f confcache | |
10869 | ||
795ca3e5 AK |
10870 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10871 | # Let make expand exec_prefix. | |
10872 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10873 | ||
ad6254c5 AK |
10874 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
10875 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10876 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10877 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 10878 | if test "x$srcdir" = x.; then |
5c7fc7c4 | 10879 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ad6254c5 AK |
10880 | s/:*\$(srcdir):*/:/; |
10881 | s/:*\${srcdir}:*/:/; | |
10882 | s/:*@srcdir@:*/:/; | |
5c7fc7c4 | 10883 | s/^\([^=]*=[ ]*\):*/\1/; |
ad6254c5 | 10884 | s/:*$//; |
5c7fc7c4 | 10885 | s/^[^=]*=[ ]*$//; |
ad6254c5 | 10886 | }' |
795ca3e5 AK |
10887 | fi |
10888 | ||
795ca3e5 AK |
10889 | # Transform confdefs.h into DEFS. |
10890 | # Protect against shell expansion while executing Makefile rules. | |
10891 | # Protect against Makefile macro expansion. | |
ad6254c5 AK |
10892 | # |
10893 | # If the first sed substitution is executed (which looks for macros that | |
10894 | # take arguments), then we branch to the quote section. Otherwise, | |
10895 | # look for a macro that doesn't take arguments. | |
10896 | cat >confdef2opt.sed <<\_ACEOF | |
10897 | t clear | |
10898 | : clear | |
5c7fc7c4 | 10899 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 | 10900 | t quote |
5c7fc7c4 | 10901 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 AK |
10902 | t quote |
10903 | d | |
10904 | : quote | |
5c7fc7c4 | 10905 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
ad6254c5 AK |
10906 | s,\[,\\&,g |
10907 | s,\],\\&,g | |
10908 | s,\$,$$,g | |
10909 | p | |
10910 | _ACEOF | |
10911 | # We use echo to avoid assuming a particular line-breaking character. | |
10912 | # The extra dot is to prevent the shell from consuming trailing | |
10913 | # line-breaks from the sub-command output. A line-break within | |
10914 | # single-quotes doesn't work because, if this script is created in a | |
10915 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
10916 | # would break. | |
10917 | ac_LF_and_DOT=`echo; echo .` | |
10918 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
10919 | rm -f confdef2opt.sed | |
10920 | ||
10921 | ||
10922 | ac_libobjs= | |
10923 | ac_ltlibobjs= | |
10924 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10925 | # 1. Remove the extension, and $U if already installed. | |
10926 | ac_i=`echo "$ac_i" | | |
5c7fc7c4 | 10927 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
ad6254c5 AK |
10928 | # 2. Add them. |
10929 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
10930 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
10931 | done | |
10932 | LIBOBJS=$ac_libobjs | |
80992638 | 10933 | |
ad6254c5 AK |
10934 | LTLIBOBJS=$ac_ltlibobjs |
10935 | ||
10936 | ||
10937 | ||
10938 | : ${CONFIG_STATUS=./config.status} | |
10939 | ac_clean_files_save=$ac_clean_files | |
10940 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10941 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10942 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10943 | cat >$CONFIG_STATUS <<_ACEOF | |
10944 | #! $SHELL | |
10945 | # Generated by $as_me. | |
795ca3e5 | 10946 | # Run this file to recreate the current configuration. |
795ca3e5 | 10947 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10948 | # configure, is in config.log if it exists. |
10949 | ||
10950 | debug=false | |
10951 | ac_cs_recheck=false | |
10952 | ac_cs_silent=false | |
10953 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10954 | _ACEOF | |
10955 | ||
10956 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10957 | ## --------------------- ## | |
10958 | ## M4sh Initialization. ## | |
10959 | ## --------------------- ## | |
10960 | ||
10961 | # Be Bourne compatible | |
10962 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
10963 | emulate sh | |
10964 | NULLCMD=: | |
10965 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
10966 | # is contrary to our usage. Disable this feature. | |
10967 | alias -g '${1+"$@"}'='"$@"' | |
10968 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
10969 | set -o posix | |
10970 | fi | |
5c7fc7c4 | 10971 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
10972 | |
10973 | # Support unset when possible. | |
5c7fc7c4 | 10974 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
10975 | as_unset=unset |
10976 | else | |
10977 | as_unset=false | |
10978 | fi | |
8106cdd5 | 10979 | |
ad6254c5 AK |
10980 | |
10981 | # Work around bugs in pre-3.0 UWIN ksh. | |
10982 | $as_unset ENV MAIL MAILPATH | |
10983 | PS1='$ ' | |
10984 | PS2='> ' | |
10985 | PS4='+ ' | |
10986 | ||
10987 | # NLS nuisances. | |
10988 | for as_var in \ | |
10989 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10990 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10991 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 10992 | do |
5c7fc7c4 | 10993 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
10994 | eval $as_var=C; export $as_var |
10995 | else | |
10996 | $as_unset $as_var | |
10997 | fi | |
8106cdd5 AK |
10998 | done |
10999 | ||
ad6254c5 AK |
11000 | # Required to use basename. |
11001 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11002 | as_expr=expr | |
11003 | else | |
11004 | as_expr=false | |
11005 | fi | |
8106cdd5 | 11006 | |
ad6254c5 AK |
11007 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
11008 | as_basename=basename | |
11009 | else | |
11010 | as_basename=false | |
11011 | fi | |
11012 | ||
11013 | ||
11014 | # Name of the executable. | |
11015 | as_me=`$as_basename "$0" || | |
11016 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11017 | X"$0" : 'X\(//\)$' \| \ | |
11018 | X"$0" : 'X\(/\)$' \| \ | |
11019 | . : '\(.\)' 2>/dev/null || | |
11020 | echo X/"$0" | | |
11021 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11022 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11023 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11024 | s/.*/./; q'` | |
11025 | ||
11026 | ||
11027 | # PATH needs CR, and LINENO needs CR and PATH. | |
11028 | # Avoid depending upon Character Ranges. | |
11029 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11030 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11031 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11032 | as_cr_digits='0123456789' | |
11033 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11034 | ||
11035 | # The user is always right. | |
11036 | if test "${PATH_SEPARATOR+set}" != set; then | |
11037 | echo "#! /bin/sh" >conf$$.sh | |
11038 | echo "exit 0" >>conf$$.sh | |
11039 | chmod +x conf$$.sh | |
11040 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11041 | PATH_SEPARATOR=';' | |
80992638 | 11042 | else |
ad6254c5 | 11043 | PATH_SEPARATOR=: |
80992638 | 11044 | fi |
ad6254c5 AK |
11045 | rm -f conf$$.sh |
11046 | fi | |
11047 | ||
11048 | ||
11049 | as_lineno_1=$LINENO | |
11050 | as_lineno_2=$LINENO | |
11051 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11052 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11053 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11054 | # Find who we are. Look in the path if we contain no path at all | |
11055 | # relative or not. | |
11056 | case $0 in | |
11057 | *[\\/]* ) as_myself=$0 ;; | |
11058 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11059 | for as_dir in $PATH | |
11060 | do | |
11061 | IFS=$as_save_IFS | |
11062 | test -z "$as_dir" && as_dir=. | |
11063 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11064 | done | |
11065 | ||
11066 | ;; | |
11067 | esac | |
11068 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11069 | # in which case we are not to be found in the path. | |
11070 | if test "x$as_myself" = x; then | |
11071 | as_myself=$0 | |
11072 | fi | |
11073 | if test ! -f "$as_myself"; then | |
11074 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11075 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11076 | { (exit 1); exit 1; }; } | |
8106cdd5 | 11077 | fi |
ad6254c5 AK |
11078 | case $CONFIG_SHELL in |
11079 | '') | |
11080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11081 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11082 | do | |
11083 | IFS=$as_save_IFS | |
11084 | test -z "$as_dir" && as_dir=. | |
11085 | for as_base in sh bash ksh sh5; do | |
11086 | case $as_dir in | |
11087 | /*) | |
11088 | if ("$as_dir/$as_base" -c ' | |
11089 | as_lineno_1=$LINENO | |
11090 | as_lineno_2=$LINENO | |
11091 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11092 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11093 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11094 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11095 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11096 | CONFIG_SHELL=$as_dir/$as_base | |
11097 | export CONFIG_SHELL | |
11098 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11099 | fi;; | |
11100 | esac | |
11101 | done | |
80992638 | 11102 | done |
ad6254c5 | 11103 | ;; |
795ca3e5 AK |
11104 | esac |
11105 | ||
ad6254c5 AK |
11106 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11107 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11108 | # line-number line before each line; the second 'sed' does the real | |
11109 | # work. The second script uses 'N' to pair each line-number line | |
11110 | # with the numbered line, and appends trailing '-' during | |
11111 | # substitution so that $LINENO is not a special case at line end. | |
11112 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11113 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11114 | sed '=' <$as_myself | | |
11115 | sed ' | |
11116 | N | |
11117 | s,$,-, | |
11118 | : loop | |
11119 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11120 | t loop | |
11121 | s,-$,, | |
11122 | s,^['$as_cr_digits']*\n,, | |
11123 | ' >$as_me.lineno && | |
11124 | chmod +x $as_me.lineno || | |
11125 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11126 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11127 | { (exit 1); exit 1; }; } | |
11128 | ||
11129 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11130 | # (the dirname of $[0] is not the place where we might find the | |
11131 | # original and so on. Autoconf is especially sensible to this). | |
11132 | . ./$as_me.lineno | |
11133 | # Exit status is that of the last command. | |
11134 | exit | |
11135 | } | |
11136 | ||
11137 | ||
11138 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11139 | *c*,-n*) ECHO_N= ECHO_C=' | |
11140 | ' ECHO_T=' ' ;; | |
11141 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11142 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11143 | esac | |
11144 | ||
11145 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11146 | as_expr=expr | |
11147 | else | |
11148 | as_expr=false | |
11149 | fi | |
80992638 | 11150 | |
ad6254c5 AK |
11151 | rm -f conf$$ conf$$.exe conf$$.file |
11152 | echo >conf$$.file | |
11153 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11154 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11155 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11156 | if test -f conf$$.exe; then | |
11157 | # Don't use ln at all; we don't have any links | |
11158 | as_ln_s='cp -p' | |
8106cdd5 | 11159 | else |
ad6254c5 | 11160 | as_ln_s='ln -s' |
80992638 | 11161 | fi |
ad6254c5 AK |
11162 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11163 | as_ln_s=ln | |
11164 | else | |
11165 | as_ln_s='cp -p' | |
11166 | fi | |
11167 | rm -f conf$$ conf$$.exe conf$$.file | |
8106cdd5 | 11168 | |
ad6254c5 AK |
11169 | if mkdir -p . 2>/dev/null; then |
11170 | as_mkdir_p=: | |
11171 | else | |
5c7fc7c4 | 11172 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11173 | as_mkdir_p=false |
11174 | fi | |
11175 | ||
11176 | as_executable_p="test -f" | |
11177 | ||
11178 | # Sed expression to map a string onto a valid CPP name. | |
5c7fc7c4 | 11179 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11180 | |
11181 | # Sed expression to map a string onto a valid variable name. | |
5c7fc7c4 | 11182 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11183 | |
11184 | ||
11185 | # IFS | |
11186 | # We need space, tab and new line, in precisely that order. | |
11187 | as_nl=' | |
11188 | ' | |
11189 | IFS=" $as_nl" | |
11190 | ||
11191 | # CDPATH. | |
11192 | $as_unset CDPATH | |
11193 | ||
11194 | exec 6>&1 | |
11195 | ||
11196 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11197 | # report actual input values of CONFIG_FILES etc. instead of their | |
11198 | # values after options handling. Logging --version etc. is OK. | |
11199 | exec 5>>config.log | |
11200 | { | |
11201 | echo | |
11202 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11203 | ## Running $as_me. ## | |
11204 | _ASBOX | |
11205 | } >&5 | |
11206 | cat >&5 <<_CSEOF | |
11207 | ||
11208 | This file was extended by $as_me, which was | |
5c7fc7c4 | 11209 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
11210 | |
11211 | CONFIG_FILES = $CONFIG_FILES | |
11212 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11213 | CONFIG_LINKS = $CONFIG_LINKS | |
11214 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11215 | $ $0 $@ | |
11216 | ||
11217 | _CSEOF | |
11218 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11219 | echo >&5 | |
11220 | _ACEOF | |
11221 | ||
11222 | # Files that config.status was made for. | |
11223 | if test -n "$ac_config_files"; then | |
11224 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11225 | fi | |
11226 | ||
11227 | if test -n "$ac_config_headers"; then | |
11228 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11229 | fi | |
11230 | ||
11231 | if test -n "$ac_config_links"; then | |
11232 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11233 | fi | |
11234 | ||
11235 | if test -n "$ac_config_commands"; then | |
11236 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11237 | fi | |
11238 | ||
11239 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11240 | ||
11241 | ac_cs_usage="\ | |
11242 | \`$as_me' instantiates files from templates according to the | |
11243 | current configuration. | |
11244 | ||
11245 | Usage: $0 [OPTIONS] [FILE]... | |
11246 | ||
11247 | -h, --help print this help, then exit | |
11248 | -V, --version print version number, then exit | |
11249 | -q, --quiet do not print progress messages | |
11250 | -d, --debug don't remove temporary files | |
11251 | --recheck update $as_me by reconfiguring in the same conditions | |
11252 | --file=FILE[:TEMPLATE] | |
5c7fc7c4 | 11253 | instantiate the configuration file FILE |
ad6254c5 AK |
11254 | |
11255 | Configuration files: | |
11256 | $config_files | |
11257 | ||
11258 | Report bugs to <bug-autoconf@gnu.org>." | |
11259 | _ACEOF | |
11260 | ||
11261 | cat >>$CONFIG_STATUS <<_ACEOF | |
11262 | ac_cs_version="\\ | |
11263 | config.status | |
5c7fc7c4 | 11264 | configured by $0, generated by GNU Autoconf 2.59, |
ad6254c5 AK |
11265 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
11266 | ||
5c7fc7c4 | 11267 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
11268 | This config.status script is free software; the Free Software Foundation |
11269 | gives unlimited permission to copy, distribute and modify it." | |
11270 | srcdir=$srcdir | |
11271 | INSTALL="$INSTALL" | |
11272 | _ACEOF | |
11273 | ||
11274 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11275 | # If no file are specified by the user, then we need to provide default | |
11276 | # value. By we need to know if files were specified by the user. | |
11277 | ac_need_defaults=: | |
11278 | while test $# != 0 | |
11279 | do | |
11280 | case $1 in | |
11281 | --*=*) | |
11282 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11283 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11284 | ac_shift=: | |
11285 | ;; | |
11286 | -*) | |
11287 | ac_option=$1 | |
11288 | ac_optarg=$2 | |
11289 | ac_shift=shift | |
11290 | ;; | |
11291 | *) # This is not an option, so the user has probably given explicit | |
11292 | # arguments. | |
11293 | ac_option=$1 | |
11294 | ac_need_defaults=false;; | |
11295 | esac | |
11296 | ||
11297 | case $ac_option in | |
11298 | # Handling of the options. | |
11299 | _ACEOF | |
11300 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11301 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11302 | ac_cs_recheck=: ;; | |
11303 | --version | --vers* | -V ) | |
11304 | echo "$ac_cs_version"; exit 0 ;; | |
11305 | --he | --h) | |
11306 | # Conflict between --help and --header | |
11307 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11308 | Try \`$0 --help' for more information." >&5 | |
11309 | echo "$as_me: error: ambiguous option: $1 | |
11310 | Try \`$0 --help' for more information." >&2;} | |
11311 | { (exit 1); exit 1; }; };; | |
11312 | --help | --hel | -h ) | |
11313 | echo "$ac_cs_usage"; exit 0 ;; | |
11314 | --debug | --d* | -d ) | |
11315 | debug=: ;; | |
11316 | --file | --fil | --fi | --f ) | |
11317 | $ac_shift | |
11318 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11319 | ac_need_defaults=false;; | |
11320 | --header | --heade | --head | --hea ) | |
11321 | $ac_shift | |
11322 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11323 | ac_need_defaults=false;; | |
11324 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11325 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11326 | ac_cs_silent=: ;; | |
11327 | ||
11328 | # This is an error. | |
11329 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11330 | Try \`$0 --help' for more information." >&5 | |
11331 | echo "$as_me: error: unrecognized option: $1 | |
11332 | Try \`$0 --help' for more information." >&2;} | |
11333 | { (exit 1); exit 1; }; } ;; | |
11334 | ||
11335 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11336 | ||
11337 | esac | |
11338 | shift | |
11339 | done | |
11340 | ||
11341 | ac_configure_extra_args= | |
11342 | ||
11343 | if $ac_cs_silent; then | |
11344 | exec 6>/dev/null | |
11345 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11346 | fi | |
11347 | ||
11348 | _ACEOF | |
11349 | cat >>$CONFIG_STATUS <<_ACEOF | |
11350 | if \$ac_cs_recheck; then | |
11351 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11352 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11353 | fi | |
11354 | ||
11355 | _ACEOF | |
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11362 | for ac_config_target in $ac_config_targets | |
11363 | do | |
11364 | case "$ac_config_target" in | |
11365 | # Handling of arguments. | |
11366 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11367 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11368 | "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11369 | "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
11370 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
11371 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
11372 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11373 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
11374 | "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11375 | "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11376 | "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11377 | "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
11378 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
11379 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
11380 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
11381 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
11382 | "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
11383 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
11384 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
11385 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
11386 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
11387 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
11388 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11389 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11390 | { (exit 1); exit 1; }; };; | |
80992638 | 11391 | esac |
ad6254c5 AK |
11392 | done |
11393 | ||
11394 | # If the user did not use the arguments to specify the items to instantiate, | |
11395 | # then the envvar interface is used. Set only those that are not. | |
11396 | # We use the long form for the default assignment because of an extremely | |
11397 | # bizarre bug on SunOS 4.1.3. | |
11398 | if $ac_need_defaults; then | |
11399 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11400 | fi | |
11401 | ||
11402 | # Have a temporary directory for convenience. Make it in the build tree | |
11403 | # simply because there is no reason to put it here, and in addition, | |
11404 | # creating and moving files from /tmp can sometimes cause problems. | |
11405 | # Create a temporary directory, and hook for its removal unless debugging. | |
11406 | $debug || | |
11407 | { | |
11408 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11409 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11410 | } | |
11411 | ||
11412 | # Create a (secure) tmp directory for tmp files. | |
11413 | ||
11414 | { | |
11415 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11416 | test -n "$tmp" && test -d "$tmp" | |
11417 | } || | |
11418 | { | |
11419 | tmp=./confstat$$-$RANDOM | |
11420 | (umask 077 && mkdir $tmp) | |
11421 | } || | |
11422 | { | |
11423 | echo "$me: cannot create a temporary directory in ." >&2 | |
11424 | { (exit 1); exit 1; } | |
11425 | } | |
11426 | ||
11427 | _ACEOF | |
11428 | ||
11429 | cat >>$CONFIG_STATUS <<_ACEOF | |
11430 | ||
11431 | # | |
11432 | # CONFIG_FILES section. | |
11433 | # | |
11434 | ||
11435 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11436 | # This happens for instance when ./config.status config.h | |
11437 | if test -n "\$CONFIG_FILES"; then | |
11438 | # Protect against being on the right side of a sed subst in config.status. | |
11439 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11440 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11441 | s,@SHELL@,$SHELL,;t t | |
11442 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11443 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11444 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11445 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11446 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11447 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11448 | s,@exec_prefix@,$exec_prefix,;t t | |
11449 | s,@prefix@,$prefix,;t t | |
11450 | s,@program_transform_name@,$program_transform_name,;t t | |
11451 | s,@bindir@,$bindir,;t t | |
11452 | s,@sbindir@,$sbindir,;t t | |
11453 | s,@libexecdir@,$libexecdir,;t t | |
11454 | s,@datadir@,$datadir,;t t | |
11455 | s,@sysconfdir@,$sysconfdir,;t t | |
11456 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11457 | s,@localstatedir@,$localstatedir,;t t | |
11458 | s,@libdir@,$libdir,;t t | |
11459 | s,@includedir@,$includedir,;t t | |
11460 | s,@oldincludedir@,$oldincludedir,;t t | |
11461 | s,@infodir@,$infodir,;t t | |
11462 | s,@mandir@,$mandir,;t t | |
11463 | s,@build_alias@,$build_alias,;t t | |
11464 | s,@host_alias@,$host_alias,;t t | |
11465 | s,@target_alias@,$target_alias,;t t | |
11466 | s,@DEFS@,$DEFS,;t t | |
11467 | s,@ECHO_C@,$ECHO_C,;t t | |
11468 | s,@ECHO_N@,$ECHO_N,;t t | |
11469 | s,@ECHO_T@,$ECHO_T,;t t | |
11470 | s,@LIBS@,$LIBS,;t t | |
11471 | s,@build@,$build,;t t | |
11472 | s,@build_cpu@,$build_cpu,;t t | |
11473 | s,@build_vendor@,$build_vendor,;t t | |
11474 | s,@build_os@,$build_os,;t t | |
11475 | s,@host@,$host,;t t | |
11476 | s,@host_cpu@,$host_cpu,;t t | |
11477 | s,@host_vendor@,$host_vendor,;t t | |
11478 | s,@host_os@,$host_os,;t t | |
11479 | s,@target@,$target,;t t | |
11480 | s,@target_cpu@,$target_cpu,;t t | |
11481 | s,@target_vendor@,$target_vendor,;t t | |
11482 | s,@target_os@,$target_os,;t t | |
11483 | s,@AWK@,$AWK,;t t | |
11484 | s,@CC@,$CC,;t t | |
11485 | s,@CFLAGS@,$CFLAGS,;t t | |
11486 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11487 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11488 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11489 | s,@EXEEXT@,$EXEEXT,;t t | |
11490 | s,@OBJEXT@,$OBJEXT,;t t | |
11491 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11492 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11493 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11494 | s,@LN_S@,$LN_S,;t t | |
11495 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11496 | s,@RANLIB@,$RANLIB,;t t | |
11497 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
11498 | s,@CPP@,$CPP,;t t | |
11499 | s,@EGREP@,$EGREP,;t t | |
11500 | s,@ALLOCA@,$ALLOCA,;t t | |
11501 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11502 | s,@POW_LIB@,$POW_LIB,;t t | |
11503 | s,@MSGFMT@,$MSGFMT,;t t | |
11504 | s,@JOBS@,$JOBS,;t t | |
11505 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
11506 | s,@LVM1@,$LVM1,;t t | |
11507 | s,@POOL@,$POOL,;t t | |
11508 | s,@SNAPSHOTS@,$SNAPSHOTS,;t t | |
11509 | s,@MIRRORS@,$MIRRORS,;t t | |
11510 | s,@OWNER@,$OWNER,;t t | |
11511 | s,@GROUP@,$GROUP,;t t | |
11512 | s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t | |
11513 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
11514 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
11515 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
11516 | s,@LDDEPS@,$LDDEPS,;t t | |
11517 | s,@SOFLAG@,$SOFLAG,;t t | |
11518 | s,@LVM_VERSION@,$LVM_VERSION,;t t | |
11519 | s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t | |
11520 | s,@DEBUG@,$DEBUG,;t t | |
11521 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
11522 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
11523 | s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t | |
11524 | s,@CMDLIB@,$CMDLIB,;t t | |
11525 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
11526 | s,@CONFDIR@,$CONFDIR,;t t | |
11527 | s,@STATICDIR@,$STATICDIR,;t t | |
11528 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t | |
11529 | s,@INTL@,$INTL,;t t | |
11530 | s,@CLVMD@,$CLVMD,;t t | |
11531 | s,@CLUSTER@,$CLUSTER,;t t | |
11532 | s,@FSADM@,$FSADM,;t t | |
11533 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
11534 | CEOF | |
11535 | ||
11536 | _ACEOF | |
11537 | ||
11538 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11539 | # Split the substitutions into bite-sized pieces for seds with | |
11540 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11541 | ac_max_sed_lines=48 | |
11542 | ac_sed_frag=1 # Number of current file. | |
11543 | ac_beg=1 # First line for current file. | |
11544 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11545 | ac_more_lines=: | |
11546 | ac_sed_cmds= | |
11547 | while $ac_more_lines; do | |
11548 | if test $ac_beg -gt 1; then | |
11549 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11550 | else | |
11551 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11552 | fi | |
11553 | if test ! -s $tmp/subs.frag; then | |
11554 | ac_more_lines=false | |
11555 | else | |
11556 | # The purpose of the label and of the branching condition is to | |
11557 | # speed up the sed processing (if there are no `@' at all, there | |
11558 | # is no need to browse any of the substitutions). | |
11559 | # These are the two extra sed commands mentioned above. | |
11560 | (echo ':t | |
11561 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11562 | if test -z "$ac_sed_cmds"; then | |
5c7fc7c4 | 11563 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 | 11564 | else |
5c7fc7c4 | 11565 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 AK |
11566 | fi |
11567 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11568 | ac_beg=$ac_end | |
11569 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
11570 | fi | |
11571 | done | |
11572 | if test -z "$ac_sed_cmds"; then | |
11573 | ac_sed_cmds=cat | |
11574 | fi | |
11575 | fi # test -n "$CONFIG_FILES" | |
8106cdd5 | 11576 | |
ad6254c5 AK |
11577 | _ACEOF |
11578 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11579 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
11580 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11581 | case $ac_file in | |
11582 | - | *:- | *:-:* ) # input from stdin | |
5c7fc7c4 PC |
11583 | cat >$tmp/stdin |
11584 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11585 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
ad6254c5 | 11586 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5c7fc7c4 | 11587 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
ad6254c5 | 11588 | * ) ac_file_in=$ac_file.in ;; |
80992638 | 11589 | esac |
8106cdd5 | 11590 | |
ad6254c5 AK |
11591 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
11592 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11593 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5c7fc7c4 PC |
11594 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11595 | X"$ac_file" : 'X\(//\)$' \| \ | |
11596 | X"$ac_file" : 'X\(/\)' \| \ | |
11597 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11598 | echo X"$ac_file" | |
11599 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11600 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11601 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11602 | /^X\(\/\).*/{ s//\1/; q; } | |
11603 | s/.*/./; q'` | |
11604 | { if $as_mkdir_p; then | |
11605 | mkdir -p "$ac_dir" | |
11606 | else | |
11607 | as_dir="$ac_dir" | |
11608 | as_dirs= | |
11609 | while test ! -d "$as_dir"; do | |
11610 | as_dirs="$as_dir $as_dirs" | |
11611 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11612 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5c7fc7c4 PC |
11613 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
11614 | X"$as_dir" : 'X\(//\)$' \| \ | |
11615 | X"$as_dir" : 'X\(/\)' \| \ | |
11616 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11617 | echo X"$as_dir" | |
11618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11619 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11620 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11621 | /^X\(\/\).*/{ s//\1/; q; } | |
11622 | s/.*/./; q'` | |
11623 | done | |
11624 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11625 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11626 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11627 | { (exit 1); exit 1; }; }; } | |
11628 | ||
11629 | ac_builddir=. | |
11630 | ||
11631 | if test "$ac_dir" != .; then | |
11632 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11633 | # A "../" for each directory in $ac_dir_suffix. | |
11634 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11635 | else | |
11636 | ac_dir_suffix= ac_top_builddir= | |
11637 | fi | |
11638 | ||
11639 | case $srcdir in | |
11640 | .) # No --srcdir option. We are building in place. | |
11641 | ac_srcdir=. | |
11642 | if test -z "$ac_top_builddir"; then | |
11643 | ac_top_srcdir=. | |
11644 | else | |
11645 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11646 | fi ;; | |
11647 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11648 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11649 | ac_top_srcdir=$srcdir ;; | |
11650 | *) # Relative path. | |
11651 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
11652 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11653 | esac | |
5c7fc7c4 PC |
11654 | |
11655 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11656 | # the directories may not exist. | |
11657 | case `pwd` in | |
11658 | .) ac_abs_builddir="$ac_dir";; | |
11659 | *) | |
11660 | case "$ac_dir" in | |
11661 | .) ac_abs_builddir=`pwd`;; | |
11662 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11663 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11664 | esac;; | |
11665 | esac | |
11666 | case $ac_abs_builddir in | |
11667 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11668 | *) | |
11669 | case ${ac_top_builddir}. in | |
11670 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11671 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11672 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11673 | esac;; | |
11674 | esac | |
11675 | case $ac_abs_builddir in | |
11676 | .) ac_abs_srcdir=$ac_srcdir;; | |
11677 | *) | |
11678 | case $ac_srcdir in | |
11679 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11680 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11681 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11682 | esac;; | |
11683 | esac | |
11684 | case $ac_abs_builddir in | |
11685 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11686 | *) | |
11687 | case $ac_top_srcdir in | |
11688 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11689 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11690 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11691 | esac;; | |
11692 | esac | |
ad6254c5 AK |
11693 | |
11694 | ||
11695 | case $INSTALL in | |
11696 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11697 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
11698 | esac |
11699 | ||
ad6254c5 AK |
11700 | if test x"$ac_file" != x-; then |
11701 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11702 | echo "$as_me: creating $ac_file" >&6;} | |
11703 | rm -f "$ac_file" | |
11704 | fi | |
11705 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11706 | # use $as_me), people would be surprised to read: | |
11707 | # /* config.h. Generated by config.status. */ | |
11708 | if test x"$ac_file" = x-; then | |
11709 | configure_input= | |
11710 | else | |
11711 | configure_input="$ac_file. " | |
11712 | fi | |
11713 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
5c7fc7c4 | 11714 | sed 's,.*/,,'` by configure." |
ad6254c5 AK |
11715 | |
11716 | # First look for the input files in the build tree, otherwise in the | |
11717 | # src tree. | |
11718 | ac_file_inputs=`IFS=: | |
11719 | for f in $ac_file_in; do | |
11720 | case $f in | |
11721 | -) echo $tmp/stdin ;; | |
11722 | [\\/$]*) | |
5c7fc7c4 PC |
11723 | # Absolute (can't be DOS-style, as IFS=:) |
11724 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
11725 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11726 | { (exit 1); exit 1; }; } | |
5c7fc7c4 | 11727 | echo "$f";; |
ad6254c5 | 11728 | *) # Relative |
5c7fc7c4 PC |
11729 | if test -f "$f"; then |
11730 | # Build tree | |
11731 | echo "$f" | |
11732 | elif test -f "$srcdir/$f"; then | |
11733 | # Source tree | |
11734 | echo "$srcdir/$f" | |
11735 | else | |
11736 | # /dev/null tree | |
11737 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
11738 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11739 | { (exit 1); exit 1; }; } | |
5c7fc7c4 | 11740 | fi;; |
ad6254c5 AK |
11741 | esac |
11742 | done` || { (exit 1); exit 1; } | |
11743 | _ACEOF | |
11744 | cat >>$CONFIG_STATUS <<_ACEOF | |
11745 | sed "$ac_vpsub | |
11746 | $extrasub | |
11747 | _ACEOF | |
11748 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11749 | :t | |
11750 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11751 | s,@configure_input@,$configure_input,;t t | |
11752 | s,@srcdir@,$ac_srcdir,;t t | |
11753 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
11754 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
11755 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
11756 | s,@builddir@,$ac_builddir,;t t | |
11757 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
11758 | s,@top_builddir@,$ac_top_builddir,;t t | |
11759 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
11760 | s,@INSTALL@,$ac_INSTALL,;t t | |
11761 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
11762 | rm -f $tmp/stdin | |
11763 | if test x"$ac_file" != x-; then | |
11764 | mv $tmp/out $ac_file | |
11765 | else | |
11766 | cat $tmp/out | |
11767 | rm -f $tmp/out | |
11768 | fi | |
795ca3e5 | 11769 | |
ad6254c5 AK |
11770 | done |
11771 | _ACEOF | |
795ca3e5 | 11772 | |
ad6254c5 | 11773 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 11774 | |
ad6254c5 AK |
11775 | { (exit 0); exit 0; } |
11776 | _ACEOF | |
795ca3e5 | 11777 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
11778 | ac_clean_files=$ac_clean_files_save |
11779 | ||
11780 | ||
11781 | # configure is writing to config.log, and then calls config.status. | |
11782 | # config.status does its own redirection, appending to config.log. | |
11783 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11784 | # by configure, so config.status won't be able to write to it; its | |
11785 | # output is simply discarded. So we exec the FD to /dev/null, | |
11786 | # effectively closing config.log, so it can be properly (re)opened and | |
11787 | # appended to by config.status. When coming back to configure, we | |
11788 | # need to make the FD available again. | |
11789 | if test "$no_create" != yes; then | |
11790 | ac_cs_success=: | |
11791 | ac_config_status_args= | |
11792 | test "$silent" = yes && | |
11793 | ac_config_status_args="$ac_config_status_args --quiet" | |
11794 | exec 5>/dev/null | |
11795 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11796 | exec 5>>config.log | |
11797 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11798 | # would make configure fail if this is the last instruction. | |
11799 | $ac_cs_success || { (exit 1); exit 1; } | |
11800 | fi | |
795ca3e5 | 11801 | |
2dc95e1c AK |
11802 | |
11803 | if test x$ODIRECT != xyes; then | |
ad6254c5 AK |
11804 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
11805 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 11806 | fi |
809fae91 AK |
11807 | |
11808 | if test x$FSADM == xyes; then | |
ad6254c5 AK |
11809 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
11810 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 11811 | fi |