]>
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 |
06f62ad1 | 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 MODPROBE_CMD 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 DMEVENTD LTLIBOBJS' |
ad6254c5 | 314 | ac_subst_files='' |
795ca3e5 AK |
315 | |
316 | # Initialize some variables set by options. | |
ad6254c5 AK |
317 | ac_init_help= |
318 | ac_init_version=false | |
795ca3e5 AK |
319 | # The variables have the same names as the options, with |
320 | # dashes changed to underlines. | |
ad6254c5 | 321 | cache_file=/dev/null |
795ca3e5 | 322 | exec_prefix=NONE |
795ca3e5 | 323 | no_create= |
795ca3e5 AK |
324 | no_recursion= |
325 | prefix=NONE | |
326 | program_prefix=NONE | |
327 | program_suffix=NONE | |
328 | program_transform_name=s,x,x, | |
329 | silent= | |
330 | site= | |
331 | srcdir= | |
795ca3e5 AK |
332 | verbose= |
333 | x_includes=NONE | |
334 | x_libraries=NONE | |
ad6254c5 AK |
335 | |
336 | # Installation directory options. | |
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
338 | # and all the variables that are supposed to be based on exec_prefix | |
339 | # by default will actually change. | |
340 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
795ca3e5 AK |
341 | bindir='${exec_prefix}/bin' |
342 | sbindir='${exec_prefix}/sbin' | |
343 | libexecdir='${exec_prefix}/libexec' | |
344 | datadir='${prefix}/share' | |
345 | sysconfdir='${prefix}/etc' | |
346 | sharedstatedir='${prefix}/com' | |
347 | localstatedir='${prefix}/var' | |
348 | libdir='${exec_prefix}/lib' | |
349 | includedir='${prefix}/include' | |
350 | oldincludedir='/usr/include' | |
351 | infodir='${prefix}/info' | |
352 | mandir='${prefix}/man' | |
353 | ||
795ca3e5 AK |
354 | ac_prev= |
355 | for ac_option | |
356 | do | |
795ca3e5 AK |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
ad6254c5 | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
795ca3e5 AK |
365 | |
366 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
367 | ||
ad6254c5 | 368 | case $ac_option in |
795ca3e5 AK |
369 | |
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
371 | ac_prev=bindir ;; | |
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 373 | bindir=$ac_optarg ;; |
795ca3e5 AK |
374 | |
375 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 376 | ac_prev=build_alias ;; |
795ca3e5 | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 378 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
379 | |
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
382 | ac_prev=cache_file ;; | |
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
385 | cache_file=$ac_optarg ;; |
386 | ||
387 | --config-cache | -C) | |
388 | cache_file=config.cache ;; | |
795ca3e5 AK |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
ad6254c5 | 394 | datadir=$ac_optarg ;; |
795ca3e5 AK |
395 | |
396 | -disable-* | --disable-*) | |
ad6254c5 | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 398 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
401 | { (exit 1); exit 1; }; } | |
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
403 | eval "enable_$ac_feature=no" ;; | |
795ca3e5 AK |
404 | |
405 | -enable-* | --enable-*) | |
ad6254c5 | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 407 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
410 | { (exit 1); exit 1; }; } | |
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
412 | case $ac_option in | |
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
414 | *) ac_optarg=yes ;; |
415 | esac | |
ad6254c5 | 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
795ca3e5 AK |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 425 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
ad6254c5 AK |
431 | -help | --help | --hel | --he | -h) |
432 | ac_init_help=long ;; | |
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
434 | ac_init_help=recursive ;; | |
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
436 | ac_init_help=short ;; | |
795ca3e5 AK |
437 | |
438 | -host | --host | --hos | --ho) | |
ad6254c5 | 439 | ac_prev=host_alias ;; |
795ca3e5 | 440 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 441 | host_alias=$ac_optarg ;; |
795ca3e5 AK |
442 | |
443 | -includedir | --includedir | --includedi | --included | --include \ | |
444 | | --includ | --inclu | --incl | --inc) | |
445 | ac_prev=includedir ;; | |
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 448 | includedir=$ac_optarg ;; |
795ca3e5 AK |
449 | |
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
451 | ac_prev=infodir ;; | |
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 453 | infodir=$ac_optarg ;; |
795ca3e5 AK |
454 | |
455 | -libdir | --libdir | --libdi | --libd) | |
456 | ac_prev=libdir ;; | |
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 458 | libdir=$ac_optarg ;; |
795ca3e5 AK |
459 | |
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
461 | | --libexe | --libex | --libe) | |
462 | ac_prev=libexecdir ;; | |
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
464 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 465 | libexecdir=$ac_optarg ;; |
795ca3e5 AK |
466 | |
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
468 | | --localstate | --localstat | --localsta | --localst \ | |
469 | | --locals | --local | --loca | --loc | --lo) | |
470 | ac_prev=localstatedir ;; | |
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
ad6254c5 | 474 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
475 | |
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
477 | ac_prev=mandir ;; | |
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 479 | mandir=$ac_optarg ;; |
795ca3e5 AK |
480 | |
481 | -nfp | --nfp | --nf) | |
482 | # Obsolete; use --without-fp. | |
483 | with_fp=no ;; | |
484 | ||
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 486 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
487 | no_create=yes ;; |
488 | ||
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
491 | no_recursion=yes ;; | |
492 | ||
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
495 | | --oldin | --oldi | --old | --ol | --o) | |
496 | ac_prev=oldincludedir ;; | |
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 500 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
501 | |
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
503 | ac_prev=prefix ;; | |
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 505 | prefix=$ac_optarg ;; |
795ca3e5 AK |
506 | |
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
508 | | --program-pre | --program-pr | --program-p) | |
509 | ac_prev=program_prefix ;; | |
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 512 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
513 | |
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
515 | | --program-suf | --program-su | --program-s) | |
516 | ac_prev=program_suffix ;; | |
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 519 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
520 | |
521 | -program-transform-name | --program-transform-name \ | |
522 | | --program-transform-nam | --program-transform-na \ | |
523 | | --program-transform-n | --program-transform- \ | |
524 | | --program-transform | --program-transfor \ | |
525 | | --program-transfo | --program-transf \ | |
526 | | --program-trans | --program-tran \ | |
527 | | --progr-tra | --program-tr | --program-t) | |
528 | ac_prev=program_transform_name ;; | |
529 | -program-transform-name=* | --program-transform-name=* \ | |
530 | | --program-transform-nam=* | --program-transform-na=* \ | |
531 | | --program-transform-n=* | --program-transform-=* \ | |
532 | | --program-transform=* | --program-transfor=* \ | |
533 | | --program-transfo=* | --program-transf=* \ | |
534 | | --program-trans=* | --program-tran=* \ | |
535 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 536 | program_transform_name=$ac_optarg ;; |
795ca3e5 AK |
537 | |
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
539 | | -silent | --silent | --silen | --sile | --sil) | |
540 | silent=yes ;; | |
541 | ||
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
543 | ac_prev=sbindir ;; | |
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
545 | | --sbi=* | --sb=*) | |
ad6254c5 | 546 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
547 | |
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
550 | | --sharedst | --shareds | --shared | --share | --shar \ | |
551 | | --sha | --sh) | |
552 | ac_prev=sharedstatedir ;; | |
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
556 | | --sha=* | --sh=*) | |
ad6254c5 | 557 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
558 | |
559 | -site | --site | --sit) | |
560 | ac_prev=site ;; | |
561 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 562 | site=$ac_optarg ;; |
795ca3e5 AK |
563 | |
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
565 | ac_prev=srcdir ;; | |
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 567 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
568 | |
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
570 | | --syscon | --sysco | --sysc | --sys | --sy) | |
571 | ac_prev=sysconfdir ;; | |
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 574 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
575 | |
576 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 577 | ac_prev=target_alias ;; |
795ca3e5 | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 579 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
580 | |
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
582 | verbose=yes ;; | |
583 | ||
ad6254c5 AK |
584 | -version | --version | --versio | --versi | --vers | -V) |
585 | ac_init_version=: ;; | |
795ca3e5 AK |
586 | |
587 | -with-* | --with-*) | |
ad6254c5 | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 589 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
592 | { (exit 1); exit 1; }; } | |
795ca3e5 | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
ad6254c5 AK |
594 | case $ac_option in |
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
596 | *) ac_optarg=yes ;; |
597 | esac | |
ad6254c5 | 598 | eval "with_$ac_package='$ac_optarg'" ;; |
795ca3e5 AK |
599 | |
600 | -without-* | --without-*) | |
ad6254c5 | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 602 | # Reject names that are not valid shell variable names. |
ad6254c5 AK |
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
605 | { (exit 1); exit 1; }; } | |
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
607 | eval "with_$ac_package=no" ;; | |
795ca3e5 AK |
608 | |
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 618 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
619 | |
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 625 | x_libraries=$ac_optarg ;; |
795ca3e5 | 626 | |
ad6254c5 AK |
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
628 | Try \`$0 --help' for more information." >&2 | |
629 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
630 | ;; |
631 | ||
ad6254c5 AK |
632 | *=*) |
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
634 | # Reject names that are not valid shell variable names. | |
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
637 | { (exit 1); exit 1; }; } | |
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
639 | eval "$ac_envvar='$ac_optarg'" | |
640 | export $ac_envvar ;; | |
641 | ||
795ca3e5 | 642 | *) |
ad6254c5 AK |
643 | # FIXME: should be removed in autoconf 3.0. |
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
795ca3e5 AK |
648 | ;; |
649 | ||
650 | esac | |
651 | done | |
652 | ||
653 | if test -n "$ac_prev"; then | |
ad6254c5 AK |
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
656 | { (exit 1); exit 1; }; } | |
795ca3e5 | 657 | fi |
795ca3e5 | 658 | |
ad6254c5 AK |
659 | # Be sure to have absolute paths. |
660 | for ac_var in exec_prefix prefix | |
661 | do | |
662 | eval ac_val=$`echo $ac_var` | |
663 | case $ac_val in | |
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
666 | { (exit 1); exit 1; }; };; | |
667 | esac | |
668 | done | |
795ca3e5 | 669 | |
ad6254c5 AK |
670 | # Be sure to have absolute paths. |
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
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 | |
06f62ad1 | 861 | --enable-dmeventd Enable dmeventd |
ad6254c5 AK |
862 | --enable-nls Enable Native Language Support |
863 | ||
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-user=USER Set the owner of installed files | |
868 | --with-group=GROUP Set the group owner of installed files | |
869 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
870 | TYPE=internal | |
871 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
872 | TYPE=internal | |
873 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
874 | TYPE=internal | |
875 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
876 | TYPE=internal | |
877 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
878 | TYPE=internal | |
5c7fc7c4 | 879 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 880 | TYPE=none |
ad6254c5 AK |
881 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
882 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
883 | --with-confdir=DIR Configuration files in DIR /etc | |
884 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
885 | ||
886 | Some influential environment variables: | |
887 | CC C compiler command | |
888 | CFLAGS C compiler flags | |
889 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
890 | nonstandard directory <lib dir> | |
891 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
892 | headers in a nonstandard directory <include dir> | |
893 | CPP C preprocessor | |
894 | ||
895 | Use these variables to override the choices made by `configure' or to help | |
896 | it to find libraries and programs with nonstandard names/locations. | |
897 | ||
898 | _ACEOF | |
899 | fi | |
900 | ||
901 | if test "$ac_init_help" = "recursive"; then | |
902 | # If there are subdirs, report their specific --help. | |
903 | ac_popdir=`pwd` | |
904 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
905 | test -d $ac_dir || continue | |
906 | ac_builddir=. | |
907 | ||
908 | if test "$ac_dir" != .; then | |
909 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
910 | # A "../" for each directory in $ac_dir_suffix. | |
911 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
912 | else | |
913 | ac_dir_suffix= ac_top_builddir= | |
914 | fi | |
915 | ||
916 | case $srcdir in | |
917 | .) # No --srcdir option. We are building in place. | |
918 | ac_srcdir=. | |
919 | if test -z "$ac_top_builddir"; then | |
920 | ac_top_srcdir=. | |
921 | else | |
922 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
923 | fi ;; | |
924 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
925 | ac_srcdir=$srcdir$ac_dir_suffix; | |
926 | ac_top_srcdir=$srcdir ;; | |
927 | *) # Relative path. | |
928 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
929 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
930 | esac | |
5c7fc7c4 PC |
931 | |
932 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
933 | # the directories may not exist. | |
934 | case `pwd` in | |
935 | .) ac_abs_builddir="$ac_dir";; | |
936 | *) | |
937 | case "$ac_dir" in | |
938 | .) ac_abs_builddir=`pwd`;; | |
939 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
940 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
941 | esac;; | |
942 | esac | |
943 | case $ac_abs_builddir in | |
944 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
945 | *) | |
946 | case ${ac_top_builddir}. in | |
947 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
949 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
950 | esac;; | |
951 | esac | |
952 | case $ac_abs_builddir in | |
953 | .) ac_abs_srcdir=$ac_srcdir;; | |
954 | *) | |
955 | case $ac_srcdir in | |
956 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
957 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
958 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
959 | esac;; | |
960 | esac | |
961 | case $ac_abs_builddir in | |
962 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
963 | *) | |
964 | case $ac_top_srcdir in | |
965 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
966 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
967 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
968 | esac;; | |
969 | esac | |
ad6254c5 AK |
970 | |
971 | cd $ac_dir | |
972 | # Check for guested configure; otherwise get Cygnus style configure. | |
973 | if test -f $ac_srcdir/configure.gnu; then | |
974 | echo | |
975 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
976 | elif test -f $ac_srcdir/configure; then | |
977 | echo | |
978 | $SHELL $ac_srcdir/configure --help=recursive | |
979 | elif test -f $ac_srcdir/configure.ac || | |
5c7fc7c4 | 980 | test -f $ac_srcdir/configure.in; then |
ad6254c5 AK |
981 | echo |
982 | $ac_configure --help | |
983 | else | |
984 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
985 | fi | |
986 | cd $ac_popdir | |
987 | done | |
988 | fi | |
989 | ||
990 | test -n "$ac_init_help" && exit 0 | |
991 | if $ac_init_version; then | |
992 | cat <<\_ACEOF | |
993 | ||
5c7fc7c4 | 994 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
995 | This configure script is free software; the Free Software Foundation |
996 | gives unlimited permission to copy, distribute and modify it. | |
997 | _ACEOF | |
998 | exit 0 | |
999 | fi | |
1000 | exec 5>config.log | |
1001 | cat >&5 <<_ACEOF | |
1002 | This file contains any messages produced by compilers while | |
1003 | running configure, to aid debugging if configure makes a mistake. | |
1004 | ||
1005 | It was created by $as_me, which was | |
5c7fc7c4 | 1006 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
1007 | |
1008 | $ $0 $@ | |
1009 | ||
1010 | _ACEOF | |
1011 | { | |
1012 | cat <<_ASUNAME | |
1013 | ## --------- ## | |
1014 | ## Platform. ## | |
1015 | ## --------- ## | |
1016 | ||
1017 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1018 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1019 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1020 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1021 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1022 | ||
1023 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1024 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1025 | ||
1026 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1027 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1028 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1029 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1030 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1031 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1032 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1033 | ||
1034 | _ASUNAME | |
1035 | ||
1036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1037 | for as_dir in $PATH | |
1038 | do | |
1039 | IFS=$as_save_IFS | |
1040 | test -z "$as_dir" && as_dir=. | |
1041 | echo "PATH: $as_dir" | |
1042 | done | |
1043 | ||
1044 | } >&5 | |
1045 | ||
1046 | cat >&5 <<_ACEOF | |
1047 | ||
1048 | ||
1049 | ## ----------- ## | |
1050 | ## Core tests. ## | |
1051 | ## ----------- ## | |
1052 | ||
1053 | _ACEOF | |
1054 | ||
1055 | ||
1056 | # Keep a trace of the command line. | |
1057 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1058 | # Strip out --silent because we don't want to record it for future runs. | |
1059 | # Also quote any args containing shell meta-characters. | |
1060 | # Make two passes to allow for proper duplicate-argument suppression. | |
1061 | ac_configure_args= | |
1062 | ac_configure_args0= | |
1063 | ac_configure_args1= | |
1064 | ac_sep= | |
1065 | ac_must_keep_next=false | |
1066 | for ac_pass in 1 2 | |
1067 | do | |
1068 | for ac_arg | |
1069 | do | |
1070 | case $ac_arg in | |
1071 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1073 | | -silent | --silent | --silen | --sile | --sil) | |
1074 | continue ;; | |
1075 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1076 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1077 | esac | |
1078 | case $ac_pass in | |
1079 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1080 | 2) | |
1081 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1082 | if test $ac_must_keep_next = true; then | |
5c7fc7c4 | 1083 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1084 | else |
5c7fc7c4 PC |
1085 | case $ac_arg in |
1086 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1087 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1088 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1089 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1090 | case "$ac_configure_args0 " in | |
1091 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1092 | esac | |
1093 | ;; | |
1094 | -* ) ac_must_keep_next=true ;; | |
1095 | esac | |
ad6254c5 AK |
1096 | fi |
1097 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1098 | # Get rid of the leading space. | |
1099 | ac_sep=" " | |
1100 | ;; | |
1101 | esac | |
1102 | done | |
1103 | done | |
1104 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1105 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1106 | ||
1107 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1108 | # config.log. We remove comments because anyway the quotes in there | |
1109 | # would cause problems or look ugly. | |
1110 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1111 | # such as our DU 5.0 friend, will then `close' the trap. | |
1112 | trap 'exit_status=$? | |
1113 | # Save into config.log some information that might help in debugging. | |
1114 | { | |
1115 | echo | |
1116 | ||
1117 | cat <<\_ASBOX | |
1118 | ## ---------------- ## | |
1119 | ## Cache variables. ## | |
1120 | ## ---------------- ## | |
1121 | _ASBOX | |
1122 | echo | |
1123 | # The following way of writing the cache mishandles newlines in values, | |
1124 | { | |
1125 | (set) 2>&1 | | |
1126 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1127 | *ac_space=\ *) | |
1128 | sed -n \ | |
5c7fc7c4 PC |
1129 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1130 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ad6254c5 AK |
1131 | ;; |
1132 | *) | |
1133 | sed -n \ | |
5c7fc7c4 | 1134 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
1135 | ;; |
1136 | esac; | |
1137 | } | |
1138 | echo | |
1139 | ||
1140 | cat <<\_ASBOX | |
1141 | ## ----------------- ## | |
1142 | ## Output variables. ## | |
1143 | ## ----------------- ## | |
1144 | _ASBOX | |
1145 | echo | |
1146 | for ac_var in $ac_subst_vars | |
1147 | do | |
1148 | eval ac_val=$`echo $ac_var` | |
1149 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1150 | done | sort | |
1151 | echo | |
1152 | ||
1153 | if test -n "$ac_subst_files"; then | |
1154 | cat <<\_ASBOX | |
1155 | ## ------------- ## | |
1156 | ## Output files. ## | |
1157 | ## ------------- ## | |
1158 | _ASBOX | |
1159 | echo | |
1160 | for ac_var in $ac_subst_files | |
1161 | do | |
1162 | eval ac_val=$`echo $ac_var` | |
5c7fc7c4 | 1163 | echo "$ac_var='"'"'$ac_val'"'"'" |
ad6254c5 AK |
1164 | done | sort |
1165 | echo | |
1166 | fi | |
1167 | ||
1168 | if test -s confdefs.h; then | |
1169 | cat <<\_ASBOX | |
1170 | ## ----------- ## | |
1171 | ## confdefs.h. ## | |
1172 | ## ----------- ## | |
1173 | _ASBOX | |
1174 | echo | |
1175 | sed "/^$/d" confdefs.h | sort | |
1176 | echo | |
1177 | fi | |
1178 | test "$ac_signal" != 0 && | |
1179 | echo "$as_me: caught signal $ac_signal" | |
1180 | echo "$as_me: exit $exit_status" | |
1181 | } >&5 | |
5c7fc7c4 | 1182 | rm -f core *.core && |
ad6254c5 AK |
1183 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1184 | exit $exit_status | |
1185 | ' 0 | |
1186 | for ac_signal in 1 2 13 15; do | |
1187 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1188 | done | |
1189 | ac_signal=0 | |
1190 | ||
1191 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1192 | rm -rf conftest* confdefs.h | |
1193 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1194 | echo >confdefs.h | |
1195 | ||
1196 | # Predefined preprocessor variables. | |
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1210 | _ACEOF | |
8106cdd5 | 1211 | |
ad6254c5 AK |
1212 | |
1213 | cat >>confdefs.h <<_ACEOF | |
1214 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | cat >>confdefs.h <<_ACEOF | |
1219 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1220 | _ACEOF | |
1221 | ||
1222 | ||
1223 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1224 | # Prefer explicitly selected file to automatically selected ones. |
1225 | if test -z "$CONFIG_SITE"; then | |
1226 | if test "x$prefix" != xNONE; then | |
1227 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1228 | else | |
1229 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1230 | fi | |
1231 | fi | |
1232 | for ac_site_file in $CONFIG_SITE; do | |
1233 | if test -r "$ac_site_file"; then | |
ad6254c5 AK |
1234 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1235 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1236 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1237 | . "$ac_site_file" |
1238 | fi | |
1239 | done | |
1240 | ||
1241 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1242 | # Some versions of bash will fail to source /dev/null (special |
1243 | # files actually), so we avoid doing that. | |
1244 | if test -f "$cache_file"; then | |
1245 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1246 | echo "$as_me: loading cache $cache_file" >&6;} | |
1247 | case $cache_file in | |
1248 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1249 | *) . ./$cache_file;; | |
1250 | esac | |
1251 | fi | |
795ca3e5 | 1252 | else |
ad6254c5 AK |
1253 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1254 | echo "$as_me: creating cache $cache_file" >&6;} | |
1255 | >$cache_file | |
1256 | fi | |
1257 | ||
1258 | # Check that the precious variables saved in the cache have kept the same | |
1259 | # value. | |
1260 | ac_cache_corrupted=false | |
1261 | for ac_var in `(set) 2>&1 | | |
5c7fc7c4 | 1262 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ad6254c5 AK |
1263 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1264 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1265 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1266 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1267 | case $ac_old_set,$ac_new_set in | |
1268 | set,) | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1271 | ac_cache_corrupted=: ;; | |
1272 | ,set) | |
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1274 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1275 | ac_cache_corrupted=: ;; | |
1276 | ,);; | |
1277 | *) | |
1278 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5c7fc7c4 | 1279 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ad6254c5 | 1280 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
5c7fc7c4 | 1281 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ad6254c5 | 1282 | echo "$as_me: former value: $ac_old_val" >&2;} |
5c7fc7c4 | 1283 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ad6254c5 | 1284 | echo "$as_me: current value: $ac_new_val" >&2;} |
5c7fc7c4 | 1285 | ac_cache_corrupted=: |
ad6254c5 AK |
1286 | fi;; |
1287 | esac | |
1288 | # Pass precious variables to config.status. | |
1289 | if test "$ac_new_set" = set; then | |
1290 | case $ac_new_val in | |
1291 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1292 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1293 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1294 | esac | |
1295 | case " $ac_configure_args " in | |
1296 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1297 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1298 | esac | |
1299 | fi | |
1300 | done | |
1301 | if $ac_cache_corrupted; then | |
1302 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1303 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1304 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1305 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1306 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1307 | fi |
1308 | ||
1309 | ac_ext=c | |
795ca3e5 | 1310 | ac_cpp='$CPP $CPPFLAGS' |
ad6254c5 AK |
1311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
795ca3e5 AK |
1331 | |
1332 | ||
1333 | ||
80992638 | 1334 | ################################################################################ |
795ca3e5 AK |
1335 | ac_aux_dir= |
1336 | for ac_dir in autoconf $srcdir/autoconf; do | |
1337 | if test -f $ac_dir/install-sh; then | |
1338 | ac_aux_dir=$ac_dir | |
1339 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1340 | break | |
1341 | elif test -f $ac_dir/install.sh; then | |
1342 | ac_aux_dir=$ac_dir | |
1343 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1344 | break | |
ad6254c5 AK |
1345 | elif test -f $ac_dir/shtool; then |
1346 | ac_aux_dir=$ac_dir | |
1347 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1348 | break | |
795ca3e5 AK |
1349 | fi |
1350 | done | |
1351 | if test -z "$ac_aux_dir"; then | |
ad6254c5 AK |
1352 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1353 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1354 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1355 | fi |
ad6254c5 AK |
1356 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1357 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1358 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
8ce0cbda AK |
1359 | |
1360 | ||
ad6254c5 | 1361 | ################################################################################ |
8ce0cbda | 1362 | # Make sure we can run config.sub. |
ad6254c5 AK |
1363 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1364 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1365 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1366 | { (exit 1); exit 1; }; } | |
1367 | ||
1368 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1369 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1370 | if test "${ac_cv_build+set}" = set; then | |
1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1372 | else | |
1373 | ac_cv_build_alias=$build_alias | |
1374 | test -z "$ac_cv_build_alias" && | |
1375 | ac_cv_build_alias=`$ac_config_guess` | |
1376 | test -z "$ac_cv_build_alias" && | |
1377 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1378 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1379 | { (exit 1); exit 1; }; } | |
1380 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1381 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1382 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1383 | { (exit 1); exit 1; }; } | |
1384 | ||
1385 | fi | |
1386 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1387 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1388 | build=$ac_cv_build | |
1389 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1390 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1391 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1392 | ||
1393 | ||
1394 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1395 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1396 | if test "${ac_cv_host+set}" = set; then | |
1397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1398 | else | |
1399 | ac_cv_host_alias=$host_alias | |
1400 | test -z "$ac_cv_host_alias" && | |
1401 | ac_cv_host_alias=$ac_cv_build_alias | |
1402 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1403 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1404 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1405 | { (exit 1); exit 1; }; } | |
1406 | ||
1407 | fi | |
1408 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1409 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1410 | host=$ac_cv_host | |
1411 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1412 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1413 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1414 | ||
1415 | ||
1416 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1417 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1418 | if test "${ac_cv_target+set}" = set; then | |
1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1420 | else | |
1421 | ac_cv_target_alias=$target_alias | |
1422 | test "x$ac_cv_target_alias" = "x" && | |
1423 | ac_cv_target_alias=$ac_cv_host_alias | |
1424 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1425 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1426 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1427 | { (exit 1); exit 1; }; } | |
8ce0cbda | 1428 | |
ad6254c5 AK |
1429 | fi |
1430 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1431 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1432 | target=$ac_cv_target | |
1433 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1434 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1435 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8ce0cbda | 1436 | |
8ce0cbda | 1437 | |
ad6254c5 AK |
1438 | # The aliases save the names the user supplied, while $host etc. |
1439 | # will get canonicalized. | |
1440 | test -n "$target_alias" && | |
8ce0cbda AK |
1441 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1442 | NONENONEs,x,x, && | |
1443 | program_prefix=${target_alias}- | |
1444 | ||
8ce0cbda AK |
1445 | case "$host_os" in |
1446 | linux*) | |
1447 | CFLAGS="$CFLAGS" | |
1448 | COPTIMISE_FLAG="-O2" | |
1449 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1450 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1451 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1452 | LDDEPS="$LDDEPS .export.sym" | |
1453 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
1454 | SOFLAG="-shared" | |
1455 | DEVMAPPER=yes | |
1456 | ODIRECT=yes | |
1457 | SELINUX=yes | |
1458 | CLUSTER=internal | |
1459 | FSADM=no ;; | |
1460 | darwin*) | |
1461 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1462 | COPTIMISE_FLAG="-O2" | |
1463 | CLDFLAGS="$CLDFLAGS" | |
1464 | CLDWHOLEARCHIVE="-all_load" | |
1465 | CLDNOWHOLEARCHIVE= | |
1466 | LDDEPS="$LDDEPS" | |
1467 | LDFLAGS="$LDFLAGS" | |
1468 | SOFLAG="-dynamiclib" | |
a653923f | 1469 | DEVMAPPER=yes |
8ce0cbda AK |
1470 | ODIRECT=no |
1471 | SELINUX=no | |
1472 | CLUSTER=none | |
1473 | FSADM=no ;; | |
1474 | esac | |
1475 | ||
80992638 | 1476 | ################################################################################ |
ad6254c5 | 1477 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1478 | do |
ad6254c5 | 1479 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1480 | set dummy $ac_prog; ac_word=$2 |
ad6254c5 AK |
1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1483 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1485 | else |
1486 | if test -n "$AWK"; then | |
1487 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1488 | else | |
ad6254c5 AK |
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1490 | for as_dir in $PATH | |
1491 | do | |
1492 | IFS=$as_save_IFS | |
1493 | test -z "$as_dir" && as_dir=. | |
1494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1496 | ac_cv_prog_AWK="$ac_prog" | |
1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1498 | break 2 | |
1499 | fi | |
1500 | done | |
1501 | done | |
1502 | ||
795ca3e5 AK |
1503 | fi |
1504 | fi | |
ad6254c5 | 1505 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1506 | if test -n "$AWK"; then |
ad6254c5 AK |
1507 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1508 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1509 | else |
ad6254c5 AK |
1510 | echo "$as_me:$LINENO: result: no" >&5 |
1511 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1512 | fi |
1513 | ||
ad6254c5 AK |
1514 | test -n "$AWK" && break |
1515 | done | |
1516 | ||
1517 | ac_ext=c | |
1518 | ac_cpp='$CPP $CPPFLAGS' | |
1519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1522 | if test -n "$ac_tool_prefix"; then | |
1523 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1524 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1525 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1527 | if test "${ac_cv_prog_CC+set}" = set; then | |
1528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1529 | else | |
1530 | if test -n "$CC"; then | |
1531 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1532 | else | |
1533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1534 | for as_dir in $PATH | |
1535 | do | |
1536 | IFS=$as_save_IFS | |
1537 | test -z "$as_dir" && as_dir=. | |
1538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1539 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1540 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1542 | break 2 | |
1543 | fi | |
1544 | done | |
8106cdd5 AK |
1545 | done |
1546 | ||
ad6254c5 AK |
1547 | fi |
1548 | fi | |
1549 | CC=$ac_cv_prog_CC | |
1550 | if test -n "$CC"; then | |
1551 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1552 | echo "${ECHO_T}$CC" >&6 | |
1553 | else | |
1554 | echo "$as_me:$LINENO: result: no" >&5 | |
1555 | echo "${ECHO_T}no" >&6 | |
1556 | fi | |
1557 | ||
1558 | fi | |
1559 | if test -z "$ac_cv_prog_CC"; then | |
1560 | ac_ct_CC=$CC | |
1561 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 1562 | set dummy gcc; ac_word=$2 |
ad6254c5 AK |
1563 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1565 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1567 | else | |
1568 | if test -n "$ac_ct_CC"; then | |
1569 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1570 | else | |
1571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1572 | for as_dir in $PATH | |
1573 | do | |
1574 | IFS=$as_save_IFS | |
1575 | test -z "$as_dir" && as_dir=. | |
1576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1577 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1578 | ac_cv_prog_ac_ct_CC="gcc" | |
1579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1580 | break 2 | |
1581 | fi | |
1582 | done | |
1583 | done | |
1584 | ||
1585 | fi | |
1586 | fi | |
1587 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1588 | if test -n "$ac_ct_CC"; then | |
1589 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1590 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1591 | else | |
1592 | echo "$as_me:$LINENO: result: no" >&5 | |
1593 | echo "${ECHO_T}no" >&6 | |
1594 | fi | |
1595 | ||
1596 | CC=$ac_ct_CC | |
1597 | else | |
1598 | CC="$ac_cv_prog_CC" | |
1599 | fi | |
1600 | ||
1601 | if test -z "$CC"; then | |
1602 | if test -n "$ac_tool_prefix"; then | |
1603 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1604 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1605 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1607 | if test "${ac_cv_prog_CC+set}" = set; then | |
1608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 AK |
1609 | else |
1610 | if test -n "$CC"; then | |
1611 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1612 | else | |
ad6254c5 AK |
1613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1614 | for as_dir in $PATH | |
1615 | do | |
1616 | IFS=$as_save_IFS | |
1617 | test -z "$as_dir" && as_dir=. | |
1618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1620 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1622 | break 2 | |
1623 | fi | |
1624 | done | |
1625 | done | |
1626 | ||
8106cdd5 AK |
1627 | fi |
1628 | fi | |
ad6254c5 | 1629 | CC=$ac_cv_prog_CC |
8106cdd5 | 1630 | if test -n "$CC"; then |
ad6254c5 AK |
1631 | echo "$as_me:$LINENO: result: $CC" >&5 |
1632 | echo "${ECHO_T}$CC" >&6 | |
1633 | else | |
1634 | echo "$as_me:$LINENO: result: no" >&5 | |
1635 | echo "${ECHO_T}no" >&6 | |
1636 | fi | |
1637 | ||
1638 | fi | |
1639 | if test -z "$ac_cv_prog_CC"; then | |
1640 | ac_ct_CC=$CC | |
1641 | # Extract the first word of "cc", so it can be a program name with args. | |
1642 | set dummy cc; ac_word=$2 | |
1643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1645 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1647 | else | |
1648 | if test -n "$ac_ct_CC"; then | |
1649 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1650 | else | |
1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1652 | for as_dir in $PATH | |
1653 | do | |
1654 | IFS=$as_save_IFS | |
1655 | test -z "$as_dir" && as_dir=. | |
1656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1658 | ac_cv_prog_ac_ct_CC="cc" | |
1659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1660 | break 2 | |
1661 | fi | |
1662 | done | |
1663 | done | |
1664 | ||
1665 | fi | |
1666 | fi | |
1667 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1668 | if test -n "$ac_ct_CC"; then | |
1669 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1670 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1671 | else | |
1672 | echo "$as_me:$LINENO: result: no" >&5 | |
1673 | echo "${ECHO_T}no" >&6 | |
1674 | fi | |
1675 | ||
1676 | CC=$ac_ct_CC | |
8106cdd5 | 1677 | else |
ad6254c5 | 1678 | CC="$ac_cv_prog_CC" |
8106cdd5 AK |
1679 | fi |
1680 | ||
ad6254c5 | 1681 | fi |
795ca3e5 AK |
1682 | if test -z "$CC"; then |
1683 | # Extract the first word of "cc", so it can be a program name with args. | |
1684 | set dummy cc; ac_word=$2 | |
ad6254c5 AK |
1685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1687 | if test "${ac_cv_prog_CC+set}" = set; then | |
1688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1689 | else |
1690 | if test -n "$CC"; then | |
1691 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1692 | else | |
795ca3e5 | 1693 | ac_prog_rejected=no |
ad6254c5 AK |
1694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1695 | for as_dir in $PATH | |
1696 | do | |
1697 | IFS=$as_save_IFS | |
1698 | test -z "$as_dir" && as_dir=. | |
1699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1701 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1702 | ac_prog_rejected=yes | |
1703 | continue | |
1704 | fi | |
1705 | ac_cv_prog_CC="cc" | |
1706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1707 | break 2 | |
1708 | fi | |
1709 | done | |
1710 | done | |
1711 | ||
795ca3e5 AK |
1712 | if test $ac_prog_rejected = yes; then |
1713 | # We found a bogon in the path, so make sure we never use it. | |
1714 | set dummy $ac_cv_prog_CC | |
1715 | shift | |
ad6254c5 | 1716 | if test $# != 0; then |
795ca3e5 AK |
1717 | # We chose a different compiler from the bogus one. |
1718 | # However, it has the same basename, so the bogon will be chosen | |
1719 | # first if we set CC to just the basename; use the full file name. | |
1720 | shift | |
ad6254c5 | 1721 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1722 | fi |
1723 | fi | |
1724 | fi | |
1725 | fi | |
ad6254c5 | 1726 | CC=$ac_cv_prog_CC |
795ca3e5 | 1727 | if test -n "$CC"; then |
ad6254c5 AK |
1728 | echo "$as_me:$LINENO: result: $CC" >&5 |
1729 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1730 | else |
ad6254c5 AK |
1731 | echo "$as_me:$LINENO: result: no" >&5 |
1732 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1733 | fi |
1734 | ||
ad6254c5 AK |
1735 | fi |
1736 | if test -z "$CC"; then | |
1737 | if test -n "$ac_tool_prefix"; then | |
1738 | for ac_prog in cl | |
1739 | do | |
1740 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1741 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1744 | if test "${ac_cv_prog_CC+set}" = set; then | |
1745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1746 | else |
1747 | if test -n "$CC"; then | |
1748 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1749 | else | |
ad6254c5 AK |
1750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1751 | for as_dir in $PATH | |
1752 | do | |
1753 | IFS=$as_save_IFS | |
1754 | test -z "$as_dir" && as_dir=. | |
1755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1757 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1759 | break 2 | |
1760 | fi | |
1761 | done | |
1762 | done | |
1763 | ||
795ca3e5 AK |
1764 | fi |
1765 | fi | |
ad6254c5 | 1766 | CC=$ac_cv_prog_CC |
795ca3e5 | 1767 | if test -n "$CC"; then |
ad6254c5 AK |
1768 | echo "$as_me:$LINENO: result: $CC" >&5 |
1769 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1770 | else |
ad6254c5 AK |
1771 | echo "$as_me:$LINENO: result: no" >&5 |
1772 | echo "${ECHO_T}no" >&6 | |
795ca3e5 | 1773 | fi |
ad6254c5 AK |
1774 | |
1775 | test -n "$CC" && break | |
1776 | done | |
1777 | fi | |
1778 | if test -z "$CC"; then | |
1779 | ac_ct_CC=$CC | |
1780 | for ac_prog in cl | |
1781 | do | |
1782 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1783 | set dummy $ac_prog; ac_word=$2 | |
1784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1786 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1788 | else | |
1789 | if test -n "$ac_ct_CC"; then | |
1790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1791 | else | |
1792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1793 | for as_dir in $PATH | |
1794 | do | |
1795 | IFS=$as_save_IFS | |
1796 | test -z "$as_dir" && as_dir=. | |
1797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1799 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1801 | break 2 | |
795ca3e5 | 1802 | fi |
ad6254c5 AK |
1803 | done |
1804 | done | |
1805 | ||
1806 | fi | |
1807 | fi | |
1808 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1809 | if test -n "$ac_ct_CC"; then | |
1810 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1811 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1812 | else | |
1813 | echo "$as_me:$LINENO: result: no" >&5 | |
1814 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1815 | fi |
1816 | ||
ad6254c5 AK |
1817 | test -n "$ac_ct_CC" && break |
1818 | done | |
795ca3e5 | 1819 | |
ad6254c5 AK |
1820 | CC=$ac_ct_CC |
1821 | fi | |
1822 | ||
1823 | fi | |
1824 | ||
1825 | ||
1826 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1827 | See \`config.log' for more details." >&5 | |
1828 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1829 | See \`config.log' for more details." >&2;} | |
1830 | { (exit 1); exit 1; }; } | |
1831 | ||
1832 | # Provide some information about the compiler. | |
1833 | echo "$as_me:$LINENO:" \ | |
1834 | "checking for C compiler version" >&5 | |
1835 | ac_compiler=`set X $ac_compile; echo $2` | |
1836 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1837 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1838 | ac_status=$? | |
1839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1840 | (exit $ac_status); } | |
1841 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1842 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1843 | ac_status=$? | |
1844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1845 | (exit $ac_status); } | |
1846 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1847 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1848 | ac_status=$? | |
1849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1850 | (exit $ac_status); } | |
1851 | ||
1852 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
1853 | /* confdefs.h. */ |
1854 | _ACEOF | |
1855 | cat confdefs.h >>conftest.$ac_ext | |
1856 | cat >>conftest.$ac_ext <<_ACEOF | |
1857 | /* end confdefs.h. */ | |
1858 | ||
1859 | int | |
1860 | main () | |
1861 | { | |
1862 | ||
1863 | ; | |
1864 | return 0; | |
1865 | } | |
1866 | _ACEOF | |
1867 | ac_clean_files_save=$ac_clean_files | |
1868 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1869 | # Try to create an executable without -o first, disregard a.out. | |
1870 | # It will help us diagnose broken compilers, and finding out an intuition | |
1871 | # of exeext. | |
5c7fc7c4 PC |
1872 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1873 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ad6254c5 AK |
1874 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1875 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1876 | (eval $ac_link_default) 2>&5 | |
1877 | ac_status=$? | |
1878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1879 | (exit $ac_status); }; then | |
1880 | # Find the output, starting from the most likely. This scheme is | |
1881 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1882 | # resort. | |
1883 | ||
1884 | # Be careful to initialize this variable, since it used to be cached. | |
1885 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1886 | ac_cv_exeext= | |
1887 | # b.out is created by i960 compilers. | |
1888 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1889 | do | |
1890 | test -f "$ac_file" || continue | |
1891 | case $ac_file in | |
1892 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
5c7fc7c4 | 1893 | ;; |
ad6254c5 | 1894 | conftest.$ac_ext ) |
5c7fc7c4 PC |
1895 | # This is the source file. |
1896 | ;; | |
ad6254c5 | 1897 | [ab].out ) |
5c7fc7c4 PC |
1898 | # We found the default executable, but exeext='' is most |
1899 | # certainly right. | |
1900 | break;; | |
ad6254c5 | 1901 | *.* ) |
5c7fc7c4 PC |
1902 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1903 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1904 | # but it would be cool to find out if it's true. Does anybody | |
1905 | # maintain Libtool? --akim. | |
1906 | export ac_cv_exeext | |
1907 | break;; | |
ad6254c5 | 1908 | * ) |
5c7fc7c4 | 1909 | break;; |
ad6254c5 AK |
1910 | esac |
1911 | done | |
1912 | else | |
1913 | echo "$as_me: failed program was:" >&5 | |
1914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1915 | ||
1916 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1917 | See \`config.log' for more details." >&5 | |
1918 | echo "$as_me: error: C compiler cannot create executables | |
1919 | See \`config.log' for more details." >&2;} | |
1920 | { (exit 77); exit 77; }; } | |
1921 | fi | |
1922 | ||
1923 | ac_exeext=$ac_cv_exeext | |
1924 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1925 | echo "${ECHO_T}$ac_file" >&6 | |
1926 | ||
1927 | # Check the compiler produces executables we can run. If not, either | |
1928 | # the compiler is broken, or we cross compile. | |
1929 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1930 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1931 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1932 | # If not cross compiling, check that we can run a simple program. | |
1933 | if test "$cross_compiling" != yes; then | |
1934 | if { ac_try='./$ac_file' | |
1935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1936 | (eval $ac_try) 2>&5 | |
1937 | ac_status=$? | |
1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1939 | (exit $ac_status); }; }; then | |
1940 | cross_compiling=no | |
795ca3e5 | 1941 | else |
ad6254c5 AK |
1942 | if test "$cross_compiling" = maybe; then |
1943 | cross_compiling=yes | |
1944 | else | |
1945 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1946 | If you meant to cross compile, use \`--host'. | |
1947 | See \`config.log' for more details." >&5 | |
1948 | echo "$as_me: error: cannot run C compiled programs. | |
1949 | If you meant to cross compile, use \`--host'. | |
1950 | See \`config.log' for more details." >&2;} | |
1951 | { (exit 1); exit 1; }; } | |
1952 | fi | |
795ca3e5 | 1953 | fi |
80992638 | 1954 | fi |
ad6254c5 AK |
1955 | echo "$as_me:$LINENO: result: yes" >&5 |
1956 | echo "${ECHO_T}yes" >&6 | |
1957 | ||
1958 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1959 | ac_clean_files=$ac_clean_files_save | |
1960 | # Check the compiler produces executables we can run. If not, either | |
1961 | # the compiler is broken, or we cross compile. | |
1962 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1963 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1964 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1965 | echo "${ECHO_T}$cross_compiling" >&6 | |
1966 | ||
1967 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1968 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1970 | (eval $ac_link) 2>&5 | |
1971 | ac_status=$? | |
1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1973 | (exit $ac_status); }; then | |
1974 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1975 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1976 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1977 | # `rm'. | |
1978 | for ac_file in conftest.exe conftest conftest.*; do | |
1979 | test -f "$ac_file" || continue | |
1980 | case $ac_file in | |
1981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1982 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
5c7fc7c4 PC |
1983 | export ac_cv_exeext |
1984 | break;; | |
ad6254c5 AK |
1985 | * ) break;; |
1986 | esac | |
1987 | done | |
80992638 | 1988 | else |
ad6254c5 AK |
1989 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1990 | See \`config.log' for more details." >&5 | |
1991 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1992 | See \`config.log' for more details." >&2;} | |
1993 | { (exit 1); exit 1; }; } | |
1994 | fi | |
1995 | ||
1996 | rm -f conftest$ac_cv_exeext | |
1997 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1998 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1999 | ||
2000 | rm -f conftest.$ac_ext | |
2001 | EXEEXT=$ac_cv_exeext | |
2002 | ac_exeext=$EXEEXT | |
2003 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2004 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2005 | if test "${ac_cv_objext+set}" = set; then | |
2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2007 | else |
ad6254c5 | 2008 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2009 | /* confdefs.h. */ |
2010 | _ACEOF | |
2011 | cat confdefs.h >>conftest.$ac_ext | |
2012 | cat >>conftest.$ac_ext <<_ACEOF | |
2013 | /* end confdefs.h. */ | |
2014 | ||
2015 | int | |
2016 | main () | |
2017 | { | |
2018 | ||
2019 | ; | |
2020 | return 0; | |
2021 | } | |
2022 | _ACEOF | |
2023 | rm -f conftest.o conftest.obj | |
2024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2025 | (eval $ac_compile) 2>&5 | |
2026 | ac_status=$? | |
2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2028 | (exit $ac_status); }; then | |
2029 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2030 | case $ac_file in | |
2031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2032 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2033 | break;; | |
2034 | esac | |
2035 | done | |
2036 | else | |
2037 | echo "$as_me: failed program was:" >&5 | |
2038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2039 | ||
2040 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2041 | See \`config.log' for more details." >&5 | |
2042 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2043 | See \`config.log' for more details." >&2;} | |
2044 | { (exit 1); exit 1; }; } | |
2045 | fi | |
2046 | ||
2047 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2048 | fi | |
2049 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2050 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2051 | OBJEXT=$ac_cv_objext | |
2052 | ac_objext=$OBJEXT | |
2053 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2054 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2055 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2057 | else | |
2058 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2059 | /* confdefs.h. */ |
2060 | _ACEOF | |
2061 | cat confdefs.h >>conftest.$ac_ext | |
2062 | cat >>conftest.$ac_ext <<_ACEOF | |
2063 | /* end confdefs.h. */ | |
2064 | ||
2065 | int | |
2066 | main () | |
2067 | { | |
2068 | #ifndef __GNUC__ | |
2069 | choke me | |
2070 | #endif | |
80992638 | 2071 | |
ad6254c5 AK |
2072 | ; |
2073 | return 0; | |
2074 | } | |
2075 | _ACEOF | |
2076 | rm -f conftest.$ac_objext | |
2077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2078 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2079 | ac_status=$? |
5c7fc7c4 PC |
2080 | grep -v '^ *+' conftest.er1 >conftest.err |
2081 | rm -f conftest.er1 | |
2082 | cat conftest.err >&5 | |
ad6254c5 AK |
2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2084 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2085 | { ac_try='test -z "$ac_c_werror_flag" |
2086 | || test ! -s conftest.err' | |
2087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2088 | (eval $ac_try) 2>&5 | |
2089 | ac_status=$? | |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2091 | (exit $ac_status); }; } && | |
2092 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2094 | (eval $ac_try) 2>&5 | |
2095 | ac_status=$? | |
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2097 | (exit $ac_status); }; }; then | |
2098 | ac_compiler_gnu=yes | |
80992638 | 2099 | else |
ad6254c5 AK |
2100 | echo "$as_me: failed program was:" >&5 |
2101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2102 | ||
2103 | ac_compiler_gnu=no | |
8106cdd5 | 2104 | fi |
5c7fc7c4 | 2105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2106 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2107 | |
ad6254c5 AK |
2108 | fi |
2109 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2110 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2111 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2112 | ac_test_CFLAGS=${CFLAGS+set} | |
2113 | ac_save_CFLAGS=$CFLAGS | |
2114 | CFLAGS="-g" | |
2115 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2116 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2117 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2119 | else |
ad6254c5 | 2120 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2121 | /* confdefs.h. */ |
2122 | _ACEOF | |
2123 | cat confdefs.h >>conftest.$ac_ext | |
2124 | cat >>conftest.$ac_ext <<_ACEOF | |
2125 | /* end confdefs.h. */ | |
2126 | ||
2127 | int | |
2128 | main () | |
2129 | { | |
2130 | ||
2131 | ; | |
2132 | return 0; | |
2133 | } | |
2134 | _ACEOF | |
2135 | rm -f conftest.$ac_objext | |
2136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2137 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2138 | ac_status=$? |
5c7fc7c4 PC |
2139 | grep -v '^ *+' conftest.er1 >conftest.err |
2140 | rm -f conftest.er1 | |
2141 | cat conftest.err >&5 | |
ad6254c5 AK |
2142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2143 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2144 | { ac_try='test -z "$ac_c_werror_flag" |
2145 | || test ! -s conftest.err' | |
2146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2147 | (eval $ac_try) 2>&5 | |
2148 | ac_status=$? | |
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2150 | (exit $ac_status); }; } && | |
2151 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2153 | (eval $ac_try) 2>&5 | |
2154 | ac_status=$? | |
2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2156 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2157 | ac_cv_prog_cc_g=yes |
2158 | else | |
ad6254c5 AK |
2159 | echo "$as_me: failed program was:" >&5 |
2160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2161 | |
ad6254c5 | 2162 | ac_cv_prog_cc_g=no |
8106cdd5 | 2163 | fi |
5c7fc7c4 | 2164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2165 | fi |
2166 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2167 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 2168 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2169 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2170 | elif test $ac_cv_prog_cc_g = yes; then |
2171 | if test "$GCC" = yes; then | |
2172 | CFLAGS="-g -O2" | |
2173 | else | |
2174 | CFLAGS="-g" | |
2175 | fi | |
2176 | else | |
2177 | if test "$GCC" = yes; then | |
2178 | CFLAGS="-O2" | |
2179 | else | |
2180 | CFLAGS= | |
2181 | fi | |
2182 | fi | |
ad6254c5 AK |
2183 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2184 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2185 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2187 | else | |
2188 | ac_cv_prog_cc_stdc=no | |
2189 | ac_save_CC=$CC | |
2190 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2191 | /* confdefs.h. */ |
2192 | _ACEOF | |
2193 | cat confdefs.h >>conftest.$ac_ext | |
2194 | cat >>conftest.$ac_ext <<_ACEOF | |
2195 | /* end confdefs.h. */ | |
2196 | #include <stdarg.h> | |
2197 | #include <stdio.h> | |
2198 | #include <sys/types.h> | |
2199 | #include <sys/stat.h> | |
2200 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2201 | struct buf { int x; }; | |
2202 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2203 | static char *e (p, i) | |
2204 | char **p; | |
2205 | int i; | |
2206 | { | |
2207 | return p[i]; | |
2208 | } | |
2209 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2210 | { | |
2211 | char *s; | |
2212 | va_list v; | |
2213 | va_start (v,p); | |
2214 | s = g (p, va_arg (v,int)); | |
2215 | va_end (v); | |
2216 | return s; | |
2217 | } | |
5c7fc7c4 PC |
2218 | |
2219 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2220 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2221 | These don't provoke an error unfortunately, instead are silently treated | |
2222 | as 'x'. The following induces an error, until -std1 is added to get | |
2223 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2224 | array size at least. It's necessary to write '\x00'==0 to get something | |
2225 | that's true only with -std1. */ | |
2226 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2227 | ||
ad6254c5 AK |
2228 | int test (int i, double x); |
2229 | struct s1 {int (*f) (int a);}; | |
2230 | struct s2 {int (*f) (double a);}; | |
2231 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2232 | int argc; | |
2233 | char **argv; | |
2234 | int | |
2235 | main () | |
2236 | { | |
2237 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2238 | ; | |
2239 | return 0; | |
2240 | } | |
2241 | _ACEOF | |
2242 | # Don't try gcc -ansi; that turns off useful extensions and | |
2243 | # breaks some systems' header files. | |
2244 | # AIX -qlanglvl=ansi | |
2245 | # Ultrix and OSF/1 -std1 | |
2246 | # HP-UX 10.20 and later -Ae | |
2247 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2248 | # SVR4 -Xc -D__EXTENSIONS__ | |
2249 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2250 | do | |
2251 | CC="$ac_save_CC $ac_arg" | |
2252 | rm -f conftest.$ac_objext | |
2253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2254 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2255 | ac_status=$? |
5c7fc7c4 PC |
2256 | grep -v '^ *+' conftest.er1 >conftest.err |
2257 | rm -f conftest.er1 | |
2258 | cat conftest.err >&5 | |
ad6254c5 AK |
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2260 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2261 | { ac_try='test -z "$ac_c_werror_flag" |
2262 | || test ! -s conftest.err' | |
2263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2264 | (eval $ac_try) 2>&5 | |
2265 | ac_status=$? | |
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2267 | (exit $ac_status); }; } && | |
2268 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2270 | (eval $ac_try) 2>&5 | |
2271 | ac_status=$? | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); }; }; then | |
2274 | ac_cv_prog_cc_stdc=$ac_arg | |
2275 | break | |
2276 | else | |
2277 | echo "$as_me: failed program was:" >&5 | |
2278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2279 | ||
2280 | fi | |
5c7fc7c4 | 2281 | rm -f conftest.err conftest.$ac_objext |
ad6254c5 AK |
2282 | done |
2283 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2284 | CC=$ac_save_CC | |
2285 | ||
2286 | fi | |
2287 | ||
2288 | case "x$ac_cv_prog_cc_stdc" in | |
2289 | x|xno) | |
2290 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2291 | echo "${ECHO_T}none needed" >&6 ;; | |
2292 | *) | |
2293 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2294 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2295 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2296 | esac | |
2297 | ||
2298 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2299 | # in C++ we need to declare it. In case someone uses the same compiler | |
2300 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2301 | # the declaration of exit, since it's the most demanding environment. | |
2302 | cat >conftest.$ac_ext <<_ACEOF | |
2303 | #ifndef __cplusplus | |
2304 | choke me | |
2305 | #endif | |
2306 | _ACEOF | |
2307 | rm -f conftest.$ac_objext | |
2308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2309 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2310 | ac_status=$? |
5c7fc7c4 PC |
2311 | grep -v '^ *+' conftest.er1 >conftest.err |
2312 | rm -f conftest.er1 | |
2313 | cat conftest.err >&5 | |
ad6254c5 AK |
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2315 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2316 | { ac_try='test -z "$ac_c_werror_flag" |
2317 | || test ! -s conftest.err' | |
2318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2319 | (eval $ac_try) 2>&5 | |
2320 | ac_status=$? | |
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2322 | (exit $ac_status); }; } && | |
2323 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2325 | (eval $ac_try) 2>&5 | |
2326 | ac_status=$? | |
2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2328 | (exit $ac_status); }; }; then | |
2329 | for ac_declaration in \ | |
5c7fc7c4 | 2330 | '' \ |
ad6254c5 AK |
2331 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2332 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2333 | 'extern "C" void exit (int) throw ();' \ | |
2334 | 'extern "C" void exit (int);' \ | |
2335 | 'void exit (int);' | |
2336 | do | |
2337 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2338 | /* confdefs.h. */ |
2339 | _ACEOF | |
2340 | cat confdefs.h >>conftest.$ac_ext | |
2341 | cat >>conftest.$ac_ext <<_ACEOF | |
2342 | /* end confdefs.h. */ | |
a266258f | 2343 | $ac_declaration |
5c7fc7c4 | 2344 | #include <stdlib.h> |
ad6254c5 AK |
2345 | int |
2346 | main () | |
2347 | { | |
2348 | exit (42); | |
2349 | ; | |
2350 | return 0; | |
2351 | } | |
2352 | _ACEOF | |
2353 | rm -f conftest.$ac_objext | |
2354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2355 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2356 | ac_status=$? |
5c7fc7c4 PC |
2357 | grep -v '^ *+' conftest.er1 >conftest.err |
2358 | rm -f conftest.er1 | |
2359 | cat conftest.err >&5 | |
ad6254c5 AK |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2361 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2362 | { ac_try='test -z "$ac_c_werror_flag" |
2363 | || test ! -s conftest.err' | |
2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2365 | (eval $ac_try) 2>&5 | |
2366 | ac_status=$? | |
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2368 | (exit $ac_status); }; } && | |
2369 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2371 | (eval $ac_try) 2>&5 | |
2372 | ac_status=$? | |
2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2374 | (exit $ac_status); }; }; then | |
2375 | : | |
2376 | else | |
2377 | echo "$as_me: failed program was:" >&5 | |
2378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2379 | ||
2380 | continue | |
2381 | fi | |
5c7fc7c4 | 2382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2383 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2384 | /* confdefs.h. */ |
2385 | _ACEOF | |
2386 | cat confdefs.h >>conftest.$ac_ext | |
2387 | cat >>conftest.$ac_ext <<_ACEOF | |
2388 | /* end confdefs.h. */ | |
2389 | $ac_declaration | |
2390 | int | |
2391 | main () | |
2392 | { | |
2393 | exit (42); | |
2394 | ; | |
2395 | return 0; | |
2396 | } | |
2397 | _ACEOF | |
2398 | rm -f conftest.$ac_objext | |
2399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2400 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2401 | ac_status=$? |
5c7fc7c4 PC |
2402 | grep -v '^ *+' conftest.er1 >conftest.err |
2403 | rm -f conftest.er1 | |
2404 | cat conftest.err >&5 | |
ad6254c5 AK |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2406 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2407 | { ac_try='test -z "$ac_c_werror_flag" |
2408 | || test ! -s conftest.err' | |
2409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2410 | (eval $ac_try) 2>&5 | |
2411 | ac_status=$? | |
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2413 | (exit $ac_status); }; } && | |
2414 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2416 | (eval $ac_try) 2>&5 | |
2417 | ac_status=$? | |
2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2419 | (exit $ac_status); }; }; then | |
2420 | break | |
2421 | else | |
2422 | echo "$as_me: failed program was:" >&5 | |
2423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2424 | ||
2425 | fi | |
5c7fc7c4 | 2426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2427 | done |
2428 | rm -f conftest* | |
2429 | if test -n "$ac_declaration"; then | |
2430 | echo '#ifdef __cplusplus' >>confdefs.h | |
2431 | echo $ac_declaration >>confdefs.h | |
2432 | echo '#endif' >>confdefs.h | |
2433 | fi | |
2434 | ||
2435 | else | |
2436 | echo "$as_me: failed program was:" >&5 | |
2437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2438 | ||
2439 | fi | |
5c7fc7c4 | 2440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
2441 | ac_ext=c |
2442 | ac_cpp='$CPP $CPPFLAGS' | |
2443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2446 | |
2447 | # Find a good install program. We prefer a C program (faster), | |
2448 | # so one script is as good as another. But avoid the broken or | |
2449 | # incompatible versions: | |
2450 | # SysV /etc/install, /usr/sbin/install | |
2451 | # SunOS /usr/etc/install | |
2452 | # IRIX /sbin/install | |
2453 | # AIX /bin/install | |
ad6254c5 | 2454 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2455 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2456 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2457 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5c7fc7c4 | 2458 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 2459 | # ./install, which can be erroneously created by make from ./install.sh. |
ad6254c5 AK |
2460 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2461 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2462 | if test -z "$INSTALL"; then |
ad6254c5 AK |
2463 | if test "${ac_cv_path_install+set}" = set; then |
2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2465 | else | |
2466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2467 | for as_dir in $PATH | |
2468 | do | |
2469 | IFS=$as_save_IFS | |
2470 | test -z "$as_dir" && as_dir=. | |
2471 | # Account for people who put trailing slashes in PATH elements. | |
2472 | case $as_dir/ in | |
2473 | ./ | .// | /cC/* | \ | |
2474 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5c7fc7c4 | 2475 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
2476 | /usr/ucb/* ) ;; |
2477 | *) | |
2478 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2479 | # Don't use installbsd from OSF since it installs stuff as root | |
2480 | # by default. | |
2481 | for ac_prog in ginstall scoinst install; do | |
2482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5c7fc7c4 PC |
2483 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2484 | if test $ac_prog = install && | |
2485 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2486 | # AIX install. It has an incompatible calling convention. | |
2487 | : | |
2488 | elif test $ac_prog = install && | |
2489 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2490 | # program-specific install script used by HP pwplus--don't use. | |
2491 | : | |
2492 | else | |
2493 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2494 | break 3 | |
2495 | fi | |
2496 | fi | |
795ca3e5 | 2497 | done |
ad6254c5 AK |
2498 | done |
2499 | ;; | |
2500 | esac | |
2501 | done | |
2502 | ||
795ca3e5 AK |
2503 | |
2504 | fi | |
2505 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 2506 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2507 | else |
2508 | # As a last resort, use the slow shell script. We don't cache a | |
2509 | # path for INSTALL within a source directory, because that will | |
2510 | # break other packages using the cache if that directory is | |
2511 | # removed, or if the path is relative. | |
ad6254c5 | 2512 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2513 | fi |
2514 | fi | |
ad6254c5 AK |
2515 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2516 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2517 | |
2518 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2519 | # It thinks the first close brace ends the variable substitution. | |
2520 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2521 | ||
ad6254c5 | 2522 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2523 | |
2524 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2525 | ||
ad6254c5 AK |
2526 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2527 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2528 | LN_S=$as_ln_s | |
2529 | if test "$LN_S" = "ln -s"; then | |
2530 | echo "$as_me:$LINENO: result: yes" >&5 | |
2531 | echo "${ECHO_T}yes" >&6 | |
80992638 | 2532 | else |
ad6254c5 AK |
2533 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2534 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2535 | fi |
2536 | ||
ad6254c5 AK |
2537 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2538 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
5c7fc7c4 | 2539 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ad6254c5 AK |
2540 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2542 | else |
ad6254c5 | 2543 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2544 | all: |
ad6254c5 AK |
2545 | @echo 'ac_maketemp="$(MAKE)"' |
2546 | _ACEOF | |
795ca3e5 | 2547 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ad6254c5 | 2548 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2549 | if test -n "$ac_maketemp"; then |
2550 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2551 | else | |
2552 | eval ac_cv_prog_make_${ac_make}_set=no | |
2553 | fi | |
ad6254c5 | 2554 | rm -f conftest.make |
795ca3e5 AK |
2555 | fi |
2556 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
ad6254c5 AK |
2557 | echo "$as_me:$LINENO: result: yes" >&5 |
2558 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2559 | SET_MAKE= |
2560 | else | |
ad6254c5 AK |
2561 | echo "$as_me:$LINENO: result: no" >&5 |
2562 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2563 | SET_MAKE="MAKE=${MAKE-make}" |
2564 | fi | |
2565 | ||
ad6254c5 AK |
2566 | if test -n "$ac_tool_prefix"; then |
2567 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2568 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2569 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2571 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2573 | else |
2574 | if test -n "$RANLIB"; then | |
2575 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2576 | else | |
ad6254c5 AK |
2577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2578 | for as_dir in $PATH | |
2579 | do | |
2580 | IFS=$as_save_IFS | |
2581 | test -z "$as_dir" && as_dir=. | |
2582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2584 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2586 | break 2 | |
2587 | fi | |
2588 | done | |
2589 | done | |
2590 | ||
795ca3e5 AK |
2591 | fi |
2592 | fi | |
ad6254c5 | 2593 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2594 | if test -n "$RANLIB"; then |
ad6254c5 AK |
2595 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2596 | echo "${ECHO_T}$RANLIB" >&6 | |
8106cdd5 | 2597 | else |
ad6254c5 AK |
2598 | echo "$as_me:$LINENO: result: no" >&5 |
2599 | echo "${ECHO_T}no" >&6 | |
8106cdd5 AK |
2600 | fi |
2601 | ||
795ca3e5 | 2602 | fi |
ad6254c5 AK |
2603 | if test -z "$ac_cv_prog_RANLIB"; then |
2604 | ac_ct_RANLIB=$RANLIB | |
2605 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2606 | set dummy ranlib; ac_word=$2 | |
2607 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2609 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 2611 | else |
ad6254c5 AK |
2612 | if test -n "$ac_ct_RANLIB"; then |
2613 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2614 | else | |
2615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2616 | for as_dir in $PATH | |
2617 | do | |
2618 | IFS=$as_save_IFS | |
2619 | test -z "$as_dir" && as_dir=. | |
2620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2621 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2622 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2624 | break 2 | |
2625 | fi | |
2626 | done | |
795ca3e5 | 2627 | done |
8106cdd5 | 2628 | |
ad6254c5 | 2629 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
795ca3e5 | 2630 | fi |
80992638 | 2631 | fi |
ad6254c5 AK |
2632 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
2633 | if test -n "$ac_ct_RANLIB"; then | |
2634 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2635 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
80992638 | 2636 | else |
ad6254c5 AK |
2637 | echo "$as_me:$LINENO: result: no" >&5 |
2638 | echo "${ECHO_T}no" >&6 | |
8106cdd5 | 2639 | fi |
8106cdd5 | 2640 | |
ad6254c5 | 2641 | RANLIB=$ac_ct_RANLIB |
80992638 | 2642 | else |
ad6254c5 | 2643 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 2644 | fi |
795ca3e5 | 2645 | |
795ca3e5 | 2646 | |
ad6254c5 AK |
2647 | ################################################################################ |
2648 | ||
2649 | ||
2650 | ||
2651 | ||
2652 | ||
2653 | ||
2654 | ac_header_dirent=no | |
2655 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
2656 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2657 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2658 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 2661 | else |
ad6254c5 | 2662 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2663 | /* confdefs.h. */ |
2664 | _ACEOF | |
2665 | cat confdefs.h >>conftest.$ac_ext | |
2666 | cat >>conftest.$ac_ext <<_ACEOF | |
2667 | /* end confdefs.h. */ | |
2668 | #include <sys/types.h> | |
2669 | #include <$ac_hdr> | |
2670 | ||
2671 | int | |
2672 | main () | |
2673 | { | |
2674 | if ((DIR *) 0) | |
2675 | return 0; | |
2676 | ; | |
2677 | return 0; | |
2678 | } | |
2679 | _ACEOF | |
2680 | rm -f conftest.$ac_objext | |
2681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 2682 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 2683 | ac_status=$? |
5c7fc7c4 PC |
2684 | grep -v '^ *+' conftest.er1 >conftest.err |
2685 | rm -f conftest.er1 | |
2686 | cat conftest.err >&5 | |
ad6254c5 AK |
2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2688 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2689 | { ac_try='test -z "$ac_c_werror_flag" |
2690 | || test ! -s conftest.err' | |
2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2692 | (eval $ac_try) 2>&5 | |
2693 | ac_status=$? | |
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2695 | (exit $ac_status); }; } && | |
2696 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2698 | (eval $ac_try) 2>&5 | |
2699 | ac_status=$? | |
2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2701 | (exit $ac_status); }; }; then | |
2702 | eval "$as_ac_Header=yes" | |
8106cdd5 | 2703 | else |
ad6254c5 AK |
2704 | echo "$as_me: failed program was:" >&5 |
2705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2706 | ||
2707 | eval "$as_ac_Header=no" | |
795ca3e5 | 2708 | fi |
5c7fc7c4 | 2709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 2710 | fi |
ad6254c5 AK |
2711 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2712 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2713 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2714 | cat >>confdefs.h <<_ACEOF | |
2715 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2716 | _ACEOF | |
2717 | ||
2718 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2719 | fi |
8106cdd5 | 2720 | |
ad6254c5 AK |
2721 | done |
2722 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2723 | if test $ac_header_dirent = dirent.h; then | |
2724 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
2725 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2726 | if test "${ac_cv_search_opendir+set}" = set; then | |
2727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2728 | else |
ad6254c5 AK |
2729 | ac_func_search_save_LIBS=$LIBS |
2730 | ac_cv_search_opendir=no | |
2731 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2732 | /* confdefs.h. */ |
2733 | _ACEOF | |
2734 | cat confdefs.h >>conftest.$ac_ext | |
2735 | cat >>conftest.$ac_ext <<_ACEOF | |
2736 | /* end confdefs.h. */ | |
2737 | ||
2738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2739 | #ifdef __cplusplus | |
2740 | extern "C" | |
2741 | #endif | |
2742 | /* We use char because int might match the return type of a gcc2 | |
2743 | builtin and then its argument prototype would still apply. */ | |
2744 | char opendir (); | |
2745 | int | |
2746 | main () | |
2747 | { | |
2748 | opendir (); | |
2749 | ; | |
2750 | return 0; | |
2751 | } | |
2752 | _ACEOF | |
2753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2755 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2756 | ac_status=$? |
5c7fc7c4 PC |
2757 | grep -v '^ *+' conftest.er1 >conftest.err |
2758 | rm -f conftest.er1 | |
2759 | cat conftest.err >&5 | |
ad6254c5 AK |
2760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2761 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2762 | { ac_try='test -z "$ac_c_werror_flag" |
2763 | || test ! -s conftest.err' | |
2764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2765 | (eval $ac_try) 2>&5 | |
2766 | ac_status=$? | |
2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2768 | (exit $ac_status); }; } && | |
2769 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2771 | (eval $ac_try) 2>&5 | |
2772 | ac_status=$? | |
2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2774 | (exit $ac_status); }; }; then | |
2775 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2776 | else |
ad6254c5 AK |
2777 | echo "$as_me: failed program was:" >&5 |
2778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2779 | ||
2780 | fi | |
5c7fc7c4 PC |
2781 | rm -f conftest.err conftest.$ac_objext \ |
2782 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2783 | if test "$ac_cv_search_opendir" = no; then |
2784 | for ac_lib in dir; do | |
2785 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2786 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2787 | /* confdefs.h. */ |
2788 | _ACEOF | |
2789 | cat confdefs.h >>conftest.$ac_ext | |
2790 | cat >>conftest.$ac_ext <<_ACEOF | |
2791 | /* end confdefs.h. */ | |
795ca3e5 | 2792 | |
ad6254c5 AK |
2793 | /* Override any gcc2 internal prototype to avoid an error. */ |
2794 | #ifdef __cplusplus | |
2795 | extern "C" | |
2796 | #endif | |
2797 | /* We use char because int might match the return type of a gcc2 | |
2798 | builtin and then its argument prototype would still apply. */ | |
2799 | char opendir (); | |
2800 | int | |
2801 | main () | |
2802 | { | |
2803 | opendir (); | |
2804 | ; | |
2805 | return 0; | |
2806 | } | |
2807 | _ACEOF | |
2808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2810 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2811 | ac_status=$? |
5c7fc7c4 PC |
2812 | grep -v '^ *+' conftest.er1 >conftest.err |
2813 | rm -f conftest.er1 | |
2814 | cat conftest.err >&5 | |
ad6254c5 AK |
2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2816 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2817 | { ac_try='test -z "$ac_c_werror_flag" |
2818 | || test ! -s conftest.err' | |
2819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2820 | (eval $ac_try) 2>&5 | |
2821 | ac_status=$? | |
2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2823 | (exit $ac_status); }; } && | |
2824 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2826 | (eval $ac_try) 2>&5 | |
2827 | ac_status=$? | |
2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2829 | (exit $ac_status); }; }; then | |
2830 | ac_cv_search_opendir="-l$ac_lib" | |
2831 | break | |
795ca3e5 | 2832 | else |
ad6254c5 AK |
2833 | echo "$as_me: failed program was:" >&5 |
2834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 AK |
2835 | |
2836 | fi | |
5c7fc7c4 PC |
2837 | rm -f conftest.err conftest.$ac_objext \ |
2838 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2839 | done |
795ca3e5 | 2840 | fi |
ad6254c5 AK |
2841 | LIBS=$ac_func_search_save_LIBS |
2842 | fi | |
2843 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2844 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2845 | if test "$ac_cv_search_opendir" != no; then | |
2846 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
795ca3e5 AK |
2847 | |
2848 | fi | |
2849 | ||
795ca3e5 | 2850 | else |
ad6254c5 AK |
2851 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2852 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2853 | if test "${ac_cv_search_opendir+set}" = set; then | |
2854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2855 | else | |
2856 | ac_func_search_save_LIBS=$LIBS | |
2857 | ac_cv_search_opendir=no | |
2858 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2859 | /* confdefs.h. */ |
2860 | _ACEOF | |
2861 | cat confdefs.h >>conftest.$ac_ext | |
2862 | cat >>conftest.$ac_ext <<_ACEOF | |
2863 | /* end confdefs.h. */ | |
80992638 | 2864 | |
ad6254c5 AK |
2865 | /* Override any gcc2 internal prototype to avoid an error. */ |
2866 | #ifdef __cplusplus | |
2867 | extern "C" | |
2868 | #endif | |
2869 | /* We use char because int might match the return type of a gcc2 | |
2870 | builtin and then its argument prototype would still apply. */ | |
2871 | char opendir (); | |
2872 | int | |
2873 | main () | |
2874 | { | |
2875 | opendir (); | |
2876 | ; | |
2877 | return 0; | |
2878 | } | |
2879 | _ACEOF | |
2880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2882 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2883 | ac_status=$? |
5c7fc7c4 PC |
2884 | grep -v '^ *+' conftest.er1 >conftest.err |
2885 | rm -f conftest.er1 | |
2886 | cat conftest.err >&5 | |
ad6254c5 AK |
2887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2888 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2889 | { ac_try='test -z "$ac_c_werror_flag" |
2890 | || test ! -s conftest.err' | |
2891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2892 | (eval $ac_try) 2>&5 | |
2893 | ac_status=$? | |
2894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2895 | (exit $ac_status); }; } && | |
2896 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2898 | (eval $ac_try) 2>&5 | |
2899 | ac_status=$? | |
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2901 | (exit $ac_status); }; }; then | |
2902 | ac_cv_search_opendir="none required" | |
795ca3e5 | 2903 | else |
ad6254c5 AK |
2904 | echo "$as_me: failed program was:" >&5 |
2905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2906 | ||
2907 | fi | |
5c7fc7c4 PC |
2908 | rm -f conftest.err conftest.$ac_objext \ |
2909 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2910 | if test "$ac_cv_search_opendir" = no; then |
2911 | for ac_lib in x; do | |
2912 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2913 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2914 | /* confdefs.h. */ |
2915 | _ACEOF | |
2916 | cat confdefs.h >>conftest.$ac_ext | |
2917 | cat >>conftest.$ac_ext <<_ACEOF | |
2918 | /* end confdefs.h. */ | |
2919 | ||
2920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2921 | #ifdef __cplusplus | |
2922 | extern "C" | |
2923 | #endif | |
2924 | /* We use char because int might match the return type of a gcc2 | |
2925 | builtin and then its argument prototype would still apply. */ | |
2926 | char opendir (); | |
2927 | int | |
2928 | main () | |
2929 | { | |
2930 | opendir (); | |
2931 | ; | |
2932 | return 0; | |
2933 | } | |
2934 | _ACEOF | |
2935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 2937 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 2938 | ac_status=$? |
5c7fc7c4 PC |
2939 | grep -v '^ *+' conftest.er1 >conftest.err |
2940 | rm -f conftest.er1 | |
2941 | cat conftest.err >&5 | |
ad6254c5 AK |
2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2943 | (exit $ac_status); } && | |
5c7fc7c4 PC |
2944 | { ac_try='test -z "$ac_c_werror_flag" |
2945 | || test ! -s conftest.err' | |
2946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2947 | (eval $ac_try) 2>&5 | |
2948 | ac_status=$? | |
2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2950 | (exit $ac_status); }; } && | |
2951 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
2952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2953 | (eval $ac_try) 2>&5 | |
2954 | ac_status=$? | |
2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2956 | (exit $ac_status); }; }; then | |
2957 | ac_cv_search_opendir="-l$ac_lib" | |
2958 | break | |
2959 | else | |
2960 | echo "$as_me: failed program was:" >&5 | |
2961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 2962 | |
795ca3e5 | 2963 | fi |
5c7fc7c4 PC |
2964 | rm -f conftest.err conftest.$ac_objext \ |
2965 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
2966 | done |
2967 | fi | |
2968 | LIBS=$ac_func_search_save_LIBS | |
795ca3e5 | 2969 | fi |
ad6254c5 AK |
2970 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
2971 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2972 | if test "$ac_cv_search_opendir" != no; then | |
2973 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8106cdd5 | 2974 | |
ad6254c5 | 2975 | fi |
8106cdd5 | 2976 | |
795ca3e5 | 2977 | fi |
8106cdd5 | 2978 | |
ad6254c5 AK |
2979 | ac_ext=c |
2980 | ac_cpp='$CPP $CPPFLAGS' | |
2981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2984 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2985 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2986 | # On Suns, sometimes $CPP names a directory. | |
2987 | if test -n "$CPP" && test -d "$CPP"; then | |
2988 | CPP= | |
2989 | fi | |
2990 | if test -z "$CPP"; then | |
2991 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2993 | else | |
2994 | # Double quotes because CPP needs to be expanded | |
2995 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2996 | do | |
2997 | ac_preproc_ok=false | |
2998 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 2999 | do |
ad6254c5 AK |
3000 | # Use a header file that comes with gcc, so configuring glibc |
3001 | # with a fresh cross-compiler works. | |
3002 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3003 | # <limits.h> exists even on freestanding compilers. | |
3004 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3005 | # not just through cpp. "Syntax error" is here to catch this case. | |
3006 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3007 | /* confdefs.h. */ |
3008 | _ACEOF | |
3009 | cat confdefs.h >>conftest.$ac_ext | |
3010 | cat >>conftest.$ac_ext <<_ACEOF | |
3011 | /* end confdefs.h. */ | |
3012 | #ifdef __STDC__ | |
3013 | # include <limits.h> | |
3014 | #else | |
3015 | # include <assert.h> | |
3016 | #endif | |
5c7fc7c4 | 3017 | Syntax error |
ad6254c5 AK |
3018 | _ACEOF |
3019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3021 | ac_status=$? | |
3022 | grep -v '^ *+' conftest.er1 >conftest.err | |
3023 | rm -f conftest.er1 | |
3024 | cat conftest.err >&5 | |
3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3026 | (exit $ac_status); } >/dev/null; then | |
3027 | if test -s conftest.err; then | |
3028 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3029 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3030 | else |
3031 | ac_cpp_err= | |
3032 | fi | |
3033 | else | |
3034 | ac_cpp_err=yes | |
8106cdd5 | 3035 | fi |
ad6254c5 AK |
3036 | if test -z "$ac_cpp_err"; then |
3037 | : | |
3038 | else | |
3039 | echo "$as_me: failed program was:" >&5 | |
3040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3041 | ||
3042 | # Broken: fails on valid input. | |
3043 | continue | |
3044 | fi | |
3045 | rm -f conftest.err conftest.$ac_ext | |
3046 | ||
3047 | # OK, works on sane cases. Now check whether non-existent headers | |
3048 | # can be detected and how. | |
3049 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3050 | /* confdefs.h. */ |
3051 | _ACEOF | |
3052 | cat confdefs.h >>conftest.$ac_ext | |
3053 | cat >>conftest.$ac_ext <<_ACEOF | |
3054 | /* end confdefs.h. */ | |
3055 | #include <ac_nonexistent.h> | |
3056 | _ACEOF | |
3057 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3059 | ac_status=$? | |
3060 | grep -v '^ *+' conftest.er1 >conftest.err | |
3061 | rm -f conftest.er1 | |
3062 | cat conftest.err >&5 | |
3063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3064 | (exit $ac_status); } >/dev/null; then | |
3065 | if test -s conftest.err; then | |
3066 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3068 | else |
3069 | ac_cpp_err= | |
3070 | fi | |
3071 | else | |
3072 | ac_cpp_err=yes | |
8106cdd5 | 3073 | fi |
ad6254c5 AK |
3074 | if test -z "$ac_cpp_err"; then |
3075 | # Broken: success on invalid input. | |
3076 | continue | |
80992638 | 3077 | else |
ad6254c5 AK |
3078 | echo "$as_me: failed program was:" >&5 |
3079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3080 | ||
3081 | # Passes both tests. | |
3082 | ac_preproc_ok=: | |
3083 | break | |
795ca3e5 | 3084 | fi |
ad6254c5 AK |
3085 | rm -f conftest.err conftest.$ac_ext |
3086 | ||
795ca3e5 | 3087 | done |
ad6254c5 AK |
3088 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3089 | rm -f conftest.err conftest.$ac_ext | |
3090 | if $ac_preproc_ok; then | |
3091 | break | |
3092 | fi | |
795ca3e5 | 3093 | |
ad6254c5 AK |
3094 | done |
3095 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3096 | |
ad6254c5 AK |
3097 | fi |
3098 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3099 | else |
ad6254c5 | 3100 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3101 | fi |
ad6254c5 AK |
3102 | echo "$as_me:$LINENO: result: $CPP" >&5 |
3103 | echo "${ECHO_T}$CPP" >&6 | |
3104 | ac_preproc_ok=false | |
3105 | for ac_c_preproc_warn_flag in '' yes | |
3106 | do | |
3107 | # Use a header file that comes with gcc, so configuring glibc | |
3108 | # with a fresh cross-compiler works. | |
3109 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3110 | # <limits.h> exists even on freestanding compilers. | |
3111 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3112 | # not just through cpp. "Syntax error" is here to catch this case. | |
3113 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3114 | /* confdefs.h. */ |
3115 | _ACEOF | |
3116 | cat confdefs.h >>conftest.$ac_ext | |
3117 | cat >>conftest.$ac_ext <<_ACEOF | |
3118 | /* end confdefs.h. */ | |
3119 | #ifdef __STDC__ | |
3120 | # include <limits.h> | |
3121 | #else | |
3122 | # include <assert.h> | |
3123 | #endif | |
5c7fc7c4 | 3124 | Syntax error |
ad6254c5 AK |
3125 | _ACEOF |
3126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3128 | ac_status=$? | |
3129 | grep -v '^ *+' conftest.er1 >conftest.err | |
3130 | rm -f conftest.er1 | |
3131 | cat conftest.err >&5 | |
3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3133 | (exit $ac_status); } >/dev/null; then | |
3134 | if test -s conftest.err; then | |
3135 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3136 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3137 | else |
3138 | ac_cpp_err= | |
3139 | fi | |
3140 | else | |
3141 | ac_cpp_err=yes | |
795ca3e5 | 3142 | fi |
ad6254c5 AK |
3143 | if test -z "$ac_cpp_err"; then |
3144 | : | |
3145 | else | |
3146 | echo "$as_me: failed program was:" >&5 | |
3147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3148 | ||
3149 | # Broken: fails on valid input. | |
3150 | continue | |
3151 | fi | |
3152 | rm -f conftest.err conftest.$ac_ext | |
3153 | ||
3154 | # OK, works on sane cases. Now check whether non-existent headers | |
3155 | # can be detected and how. | |
3156 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3157 | /* confdefs.h. */ |
3158 | _ACEOF | |
3159 | cat confdefs.h >>conftest.$ac_ext | |
3160 | cat >>conftest.$ac_ext <<_ACEOF | |
3161 | /* end confdefs.h. */ | |
3162 | #include <ac_nonexistent.h> | |
3163 | _ACEOF | |
3164 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3166 | ac_status=$? | |
3167 | grep -v '^ *+' conftest.er1 >conftest.err | |
3168 | rm -f conftest.er1 | |
3169 | cat conftest.err >&5 | |
3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3171 | (exit $ac_status); } >/dev/null; then | |
3172 | if test -s conftest.err; then | |
3173 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3174 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3175 | else |
3176 | ac_cpp_err= | |
3177 | fi | |
3178 | else | |
3179 | ac_cpp_err=yes | |
3180 | fi | |
3181 | if test -z "$ac_cpp_err"; then | |
3182 | # Broken: success on invalid input. | |
3183 | continue | |
3184 | else | |
3185 | echo "$as_me: failed program was:" >&5 | |
3186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3187 | |
ad6254c5 AK |
3188 | # Passes both tests. |
3189 | ac_preproc_ok=: | |
3190 | break | |
795ca3e5 | 3191 | fi |
ad6254c5 | 3192 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3193 | |
ad6254c5 AK |
3194 | done |
3195 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3196 | rm -f conftest.err conftest.$ac_ext | |
3197 | if $ac_preproc_ok; then | |
3198 | : | |
795ca3e5 | 3199 | else |
ad6254c5 AK |
3200 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3201 | See \`config.log' for more details." >&5 | |
3202 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3203 | See \`config.log' for more details." >&2;} | |
3204 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3205 | fi |
795ca3e5 | 3206 | |
ad6254c5 AK |
3207 | ac_ext=c |
3208 | ac_cpp='$CPP $CPPFLAGS' | |
3209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3212 | ||
3213 | ||
3214 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3215 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3216 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3218 | else | |
3219 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3220 | then ac_cv_prog_egrep='grep -E' | |
3221 | else ac_cv_prog_egrep='egrep' | |
3222 | fi | |
795ca3e5 | 3223 | fi |
ad6254c5 AK |
3224 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3225 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3226 | EGREP=$ac_cv_prog_egrep | |
80992638 | 3227 | |
795ca3e5 | 3228 | |
ad6254c5 AK |
3229 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3230 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3231 | if test "${ac_cv_header_stdc+set}" = set; then | |
3232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3233 | else |
ad6254c5 | 3234 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3235 | /* confdefs.h. */ |
3236 | _ACEOF | |
3237 | cat confdefs.h >>conftest.$ac_ext | |
3238 | cat >>conftest.$ac_ext <<_ACEOF | |
3239 | /* end confdefs.h. */ | |
80992638 | 3240 | #include <stdlib.h> |
ad6254c5 AK |
3241 | #include <stdarg.h> |
3242 | #include <string.h> | |
3243 | #include <float.h> | |
3244 | ||
3245 | int | |
3246 | main () | |
3247 | { | |
3248 | ||
3249 | ; | |
3250 | return 0; | |
3251 | } | |
3252 | _ACEOF | |
3253 | rm -f conftest.$ac_objext | |
3254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3255 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3256 | ac_status=$? |
5c7fc7c4 PC |
3257 | grep -v '^ *+' conftest.er1 >conftest.err |
3258 | rm -f conftest.er1 | |
3259 | cat conftest.err >&5 | |
ad6254c5 AK |
3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3261 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3262 | { ac_try='test -z "$ac_c_werror_flag" |
3263 | || test ! -s conftest.err' | |
3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3265 | (eval $ac_try) 2>&5 | |
3266 | ac_status=$? | |
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3268 | (exit $ac_status); }; } && | |
3269 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3271 | (eval $ac_try) 2>&5 | |
3272 | ac_status=$? | |
3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3274 | (exit $ac_status); }; }; then | |
3275 | ac_cv_header_stdc=yes | |
795ca3e5 | 3276 | else |
ad6254c5 AK |
3277 | echo "$as_me: failed program was:" >&5 |
3278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3279 | ||
3280 | ac_cv_header_stdc=no | |
795ca3e5 | 3281 | fi |
5c7fc7c4 | 3282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3283 | |
3284 | if test $ac_cv_header_stdc = yes; then | |
3285 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3286 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3287 | /* confdefs.h. */ |
3288 | _ACEOF | |
3289 | cat confdefs.h >>conftest.$ac_ext | |
3290 | cat >>conftest.$ac_ext <<_ACEOF | |
3291 | /* end confdefs.h. */ | |
3292 | #include <string.h> | |
8106cdd5 | 3293 | |
ad6254c5 AK |
3294 | _ACEOF |
3295 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3296 | $EGREP "memchr" >/dev/null 2>&1; then | |
3297 | : | |
3298 | else | |
3299 | ac_cv_header_stdc=no | |
80992638 | 3300 | fi |
ad6254c5 | 3301 | rm -f conftest* |
795ca3e5 AK |
3302 | |
3303 | fi | |
3304 | ||
ad6254c5 AK |
3305 | if test $ac_cv_header_stdc = yes; then |
3306 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3307 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3308 | /* confdefs.h. */ |
3309 | _ACEOF | |
3310 | cat confdefs.h >>conftest.$ac_ext | |
3311 | cat >>conftest.$ac_ext <<_ACEOF | |
3312 | /* end confdefs.h. */ | |
80992638 | 3313 | #include <stdlib.h> |
ad6254c5 AK |
3314 | |
3315 | _ACEOF | |
80992638 | 3316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
3317 | $EGREP "free" >/dev/null 2>&1; then |
3318 | : | |
795ca3e5 | 3319 | else |
ad6254c5 | 3320 | ac_cv_header_stdc=no |
795ca3e5 | 3321 | fi |
80992638 | 3322 | rm -f conftest* |
8106cdd5 | 3323 | |
795ca3e5 AK |
3324 | fi |
3325 | ||
ad6254c5 AK |
3326 | if test $ac_cv_header_stdc = yes; then |
3327 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3328 | if test "$cross_compiling" = yes; then | |
3329 | : | |
795ca3e5 | 3330 | else |
ad6254c5 | 3331 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3332 | /* confdefs.h. */ |
3333 | _ACEOF | |
3334 | cat confdefs.h >>conftest.$ac_ext | |
3335 | cat >>conftest.$ac_ext <<_ACEOF | |
3336 | /* end confdefs.h. */ | |
3337 | #include <ctype.h> | |
3338 | #if ((' ' & 0x0FF) == 0x020) | |
3339 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3340 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3341 | #else | |
3342 | # define ISLOWER(c) \ | |
5c7fc7c4 PC |
3343 | (('a' <= (c) && (c) <= 'i') \ |
3344 | || ('j' <= (c) && (c) <= 'r') \ | |
3345 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 3346 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 3347 | #endif |
ad6254c5 AK |
3348 | |
3349 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3350 | int | |
3351 | main () | |
3352 | { | |
3353 | int i; | |
3354 | for (i = 0; i < 256; i++) | |
3355 | if (XOR (islower (i), ISLOWER (i)) | |
5c7fc7c4 | 3356 | || toupper (i) != TOUPPER (i)) |
ad6254c5 AK |
3357 | exit(2); |
3358 | exit (0); | |
3359 | } | |
3360 | _ACEOF | |
3361 | rm -f conftest$ac_exeext | |
3362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3363 | (eval $ac_link) 2>&5 | |
3364 | ac_status=$? | |
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3368 | (eval $ac_try) 2>&5 | |
3369 | ac_status=$? | |
3370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3371 | (exit $ac_status); }; }; then | |
3372 | : | |
795ca3e5 | 3373 | else |
ad6254c5 AK |
3374 | echo "$as_me: program exited with status $ac_status" >&5 |
3375 | echo "$as_me: failed program was:" >&5 | |
3376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8106cdd5 | 3377 | |
ad6254c5 AK |
3378 | ( exit $ac_status ) |
3379 | ac_cv_header_stdc=no | |
80992638 | 3380 | fi |
5c7fc7c4 | 3381 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3382 | fi |
3383 | fi | |
3384 | fi | |
3385 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3386 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3387 | if test $ac_cv_header_stdc = yes; then | |
3388 | ||
3389 | cat >>confdefs.h <<\_ACEOF | |
3390 | #define STDC_HEADERS 1 | |
3391 | _ACEOF | |
795ca3e5 AK |
3392 | |
3393 | fi | |
3394 | ||
ad6254c5 AK |
3395 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3396 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
3397 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 3399 | else |
ad6254c5 | 3400 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3401 | /* confdefs.h. */ |
3402 | _ACEOF | |
3403 | cat confdefs.h >>conftest.$ac_ext | |
3404 | cat >>conftest.$ac_ext <<_ACEOF | |
3405 | /* end confdefs.h. */ | |
80992638 | 3406 | #include <sys/types.h> |
ad6254c5 AK |
3407 | #include <sys/wait.h> |
3408 | #ifndef WEXITSTATUS | |
3409 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
3410 | #endif | |
3411 | #ifndef WIFEXITED | |
3412 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
3413 | #endif | |
3414 | ||
3415 | int | |
3416 | main () | |
3417 | { | |
3418 | int s; | |
3419 | wait (&s); | |
3420 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
3421 | ; | |
3422 | return 0; | |
3423 | } | |
3424 | _ACEOF | |
3425 | rm -f conftest.$ac_objext | |
3426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3427 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3428 | ac_status=$? |
5c7fc7c4 PC |
3429 | grep -v '^ *+' conftest.er1 >conftest.err |
3430 | rm -f conftest.er1 | |
3431 | cat conftest.err >&5 | |
ad6254c5 AK |
3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3433 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3434 | { ac_try='test -z "$ac_c_werror_flag" |
3435 | || test ! -s conftest.err' | |
3436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3437 | (eval $ac_try) 2>&5 | |
3438 | ac_status=$? | |
3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3440 | (exit $ac_status); }; } && | |
3441 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3443 | (eval $ac_try) 2>&5 | |
3444 | ac_status=$? | |
3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3446 | (exit $ac_status); }; }; then | |
3447 | ac_cv_header_sys_wait_h=yes | |
3448 | else | |
3449 | echo "$as_me: failed program was:" >&5 | |
3450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3451 | ||
3452 | ac_cv_header_sys_wait_h=no | |
8106cdd5 | 3453 | fi |
5c7fc7c4 | 3454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3455 | fi |
ad6254c5 AK |
3456 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
3457 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
3458 | if test $ac_cv_header_sys_wait_h = yes; then | |
8106cdd5 | 3459 | |
ad6254c5 AK |
3460 | cat >>confdefs.h <<\_ACEOF |
3461 | #define HAVE_SYS_WAIT_H 1 | |
3462 | _ACEOF | |
795ca3e5 AK |
3463 | |
3464 | fi | |
3465 | ||
ad6254c5 AK |
3466 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
3467 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3468 | if test "${ac_cv_header_time+set}" = set; then | |
3469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3470 | else |
ad6254c5 | 3471 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3472 | /* confdefs.h. */ |
3473 | _ACEOF | |
3474 | cat confdefs.h >>conftest.$ac_ext | |
3475 | cat >>conftest.$ac_ext <<_ACEOF | |
3476 | /* end confdefs.h. */ | |
795ca3e5 AK |
3477 | #include <sys/types.h> |
3478 | #include <sys/time.h> | |
3479 | #include <time.h> | |
ad6254c5 AK |
3480 | |
3481 | int | |
3482 | main () | |
3483 | { | |
3484 | if ((struct tm *) 0) | |
3485 | return 0; | |
3486 | ; | |
3487 | return 0; | |
3488 | } | |
3489 | _ACEOF | |
3490 | rm -f conftest.$ac_objext | |
3491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3492 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3493 | ac_status=$? |
5c7fc7c4 PC |
3494 | grep -v '^ *+' conftest.er1 >conftest.err |
3495 | rm -f conftest.er1 | |
3496 | cat conftest.err >&5 | |
ad6254c5 AK |
3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3498 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3499 | { ac_try='test -z "$ac_c_werror_flag" |
3500 | || test ! -s conftest.err' | |
3501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3502 | (eval $ac_try) 2>&5 | |
3503 | ac_status=$? | |
3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3505 | (exit $ac_status); }; } && | |
3506 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3508 | (eval $ac_try) 2>&5 | |
3509 | ac_status=$? | |
3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3511 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3512 | ac_cv_header_time=yes |
3513 | else | |
ad6254c5 AK |
3514 | echo "$as_me: failed program was:" >&5 |
3515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3516 | ||
3517 | ac_cv_header_time=no | |
795ca3e5 | 3518 | fi |
5c7fc7c4 | 3519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3520 | fi |
ad6254c5 AK |
3521 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3522 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
80992638 | 3523 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
3524 | |
3525 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3526 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 3527 | _ACEOF |
b896caa1 | 3528 | |
8106cdd5 | 3529 | fi |
b896caa1 | 3530 | |
b896caa1 | 3531 | |
ad6254c5 | 3532 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 3533 | |
b896caa1 AK |
3534 | |
3535 | ||
795ca3e5 | 3536 | |
8106cdd5 | 3537 | |
80992638 | 3538 | |
795ca3e5 | 3539 | |
a38df97f | 3540 | |
80992638 | 3541 | |
ad6254c5 | 3542 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5c7fc7c4 | 3543 | inttypes.h stdint.h unistd.h |
ad6254c5 AK |
3544 | do |
3545 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3546 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3548 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3550 | else | |
3551 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3552 | /* confdefs.h. */ |
3553 | _ACEOF | |
3554 | cat confdefs.h >>conftest.$ac_ext | |
3555 | cat >>conftest.$ac_ext <<_ACEOF | |
3556 | /* end confdefs.h. */ | |
3557 | $ac_includes_default | |
3558 | ||
3559 | #include <$ac_header> | |
3560 | _ACEOF | |
3561 | rm -f conftest.$ac_objext | |
3562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3563 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3564 | ac_status=$? |
5c7fc7c4 PC |
3565 | grep -v '^ *+' conftest.er1 >conftest.err |
3566 | rm -f conftest.er1 | |
3567 | cat conftest.err >&5 | |
ad6254c5 AK |
3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3569 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3570 | { ac_try='test -z "$ac_c_werror_flag" |
3571 | || test ! -s conftest.err' | |
3572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3573 | (eval $ac_try) 2>&5 | |
3574 | ac_status=$? | |
3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3576 | (exit $ac_status); }; } && | |
3577 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3579 | (eval $ac_try) 2>&5 | |
3580 | ac_status=$? | |
3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3582 | (exit $ac_status); }; }; then | |
3583 | eval "$as_ac_Header=yes" | |
3584 | else | |
3585 | echo "$as_me: failed program was:" >&5 | |
3586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3587 | |
ad6254c5 AK |
3588 | eval "$as_ac_Header=no" |
3589 | fi | |
5c7fc7c4 | 3590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a38df97f | 3591 | fi |
ad6254c5 AK |
3592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3593 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3595 | cat >>confdefs.h <<_ACEOF | |
3596 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3597 | _ACEOF | |
a38df97f | 3598 | |
80992638 AK |
3599 | fi |
3600 | ||
ad6254c5 AK |
3601 | done |
3602 | ||
7d1552c9 | 3603 | |
7d1552c9 | 3604 | |
80992638 | 3605 | |
5a52dca9 | 3606 | |
5a52dca9 | 3607 | |
ad6254c5 AK |
3608 | |
3609 | ||
3610 | ||
3611 | ||
3612 | ||
3613 | 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 | |
3614 | do | |
3615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3621 | fi | |
3622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3624 | else | |
3625 | # Is the header compilable? | |
3626 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3627 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3628 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3629 | /* confdefs.h. */ |
3630 | _ACEOF | |
3631 | cat confdefs.h >>conftest.$ac_ext | |
3632 | cat >>conftest.$ac_ext <<_ACEOF | |
3633 | /* end confdefs.h. */ | |
3634 | $ac_includes_default | |
3635 | #include <$ac_header> | |
3636 | _ACEOF | |
3637 | rm -f conftest.$ac_objext | |
3638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3639 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3640 | ac_status=$? |
5c7fc7c4 PC |
3641 | grep -v '^ *+' conftest.er1 >conftest.err |
3642 | rm -f conftest.er1 | |
3643 | cat conftest.err >&5 | |
ad6254c5 AK |
3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3645 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3646 | { ac_try='test -z "$ac_c_werror_flag" |
3647 | || test ! -s conftest.err' | |
3648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3649 | (eval $ac_try) 2>&5 | |
3650 | ac_status=$? | |
3651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3652 | (exit $ac_status); }; } && | |
3653 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3655 | (eval $ac_try) 2>&5 | |
3656 | ac_status=$? | |
3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3658 | (exit $ac_status); }; }; then | |
3659 | ac_header_compiler=yes | |
3660 | else | |
3661 | echo "$as_me: failed program was:" >&5 | |
3662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3663 | ||
3664 | ac_header_compiler=no | |
3665 | fi | |
5c7fc7c4 | 3666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3667 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3668 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3669 | ||
3670 | # Is the header present? | |
3671 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3673 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3674 | /* confdefs.h. */ |
3675 | _ACEOF | |
3676 | cat confdefs.h >>conftest.$ac_ext | |
3677 | cat >>conftest.$ac_ext <<_ACEOF | |
3678 | /* end confdefs.h. */ | |
3679 | #include <$ac_header> | |
3680 | _ACEOF | |
3681 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3682 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3683 | ac_status=$? | |
3684 | grep -v '^ *+' conftest.er1 >conftest.err | |
3685 | rm -f conftest.er1 | |
3686 | cat conftest.err >&5 | |
3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3688 | (exit $ac_status); } >/dev/null; then | |
3689 | if test -s conftest.err; then | |
3690 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3691 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3692 | else |
3693 | ac_cpp_err= | |
3694 | fi | |
3695 | else | |
3696 | ac_cpp_err=yes | |
3697 | fi | |
3698 | if test -z "$ac_cpp_err"; then | |
3699 | ac_header_preproc=yes | |
3700 | else | |
3701 | echo "$as_me: failed program was:" >&5 | |
3702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3703 | ||
3704 | ac_header_preproc=no | |
3705 | fi | |
3706 | rm -f conftest.err conftest.$ac_ext | |
3707 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3708 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3709 | ||
3710 | # So? What about this header? | |
5c7fc7c4 PC |
3711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3712 | yes:no: ) | |
ad6254c5 AK |
3713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
3715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3716 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3717 | ac_header_preproc=yes | |
ad6254c5 | 3718 | ;; |
5c7fc7c4 | 3719 | no:yes:* ) |
ad6254c5 AK |
3720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
3722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3724 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3725 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3726 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3727 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3729 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
3730 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3731 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3732 | ( |
3733 | cat <<\_ASBOX | |
5c7fc7c4 PC |
3734 | ## ------------------------------------------ ## |
3735 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3736 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3737 | _ASBOX |
3738 | ) | | |
3739 | sed "s/^/$as_me: WARNING: /" >&2 | |
3740 | ;; | |
3741 | esac | |
3742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3746 | else | |
5c7fc7c4 | 3747 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 3748 | fi |
ad6254c5 AK |
3749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3750 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3751 | ||
3752 | fi | |
3753 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3754 | cat >>confdefs.h <<_ACEOF | |
3755 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3756 | _ACEOF | |
b896caa1 | 3757 | |
d8ac0fbc | 3758 | else |
ad6254c5 AK |
3759 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3760 | echo "$as_me: error: bailing out" >&2;} | |
3761 | { (exit 1); exit 1; }; } | |
80992638 AK |
3762 | fi |
3763 | ||
ad6254c5 | 3764 | done |
d8ac0fbc | 3765 | |
d8ac0fbc | 3766 | |
d8ac0fbc | 3767 | |
80992638 | 3768 | |
d3c8211f | 3769 | |
d3c8211f | 3770 | |
d3c8211f | 3771 | |
80992638 | 3772 | |
4922197a | 3773 | |
4922197a | 3774 | |
ad6254c5 AK |
3775 | |
3776 | ||
3777 | ||
3778 | 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 | |
3779 | do | |
3780 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3782 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3786 | fi | |
3787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3788 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3789 | else | |
3790 | # Is the header compilable? | |
3791 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3792 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3793 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3794 | /* confdefs.h. */ |
3795 | _ACEOF | |
3796 | cat confdefs.h >>conftest.$ac_ext | |
3797 | cat >>conftest.$ac_ext <<_ACEOF | |
3798 | /* end confdefs.h. */ | |
3799 | $ac_includes_default | |
3800 | #include <$ac_header> | |
3801 | _ACEOF | |
3802 | rm -f conftest.$ac_objext | |
3803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3804 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3805 | ac_status=$? |
5c7fc7c4 PC |
3806 | grep -v '^ *+' conftest.er1 >conftest.err |
3807 | rm -f conftest.er1 | |
3808 | cat conftest.err >&5 | |
ad6254c5 AK |
3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3810 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3811 | { ac_try='test -z "$ac_c_werror_flag" |
3812 | || test ! -s conftest.err' | |
3813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3814 | (eval $ac_try) 2>&5 | |
3815 | ac_status=$? | |
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3817 | (exit $ac_status); }; } && | |
3818 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3820 | (eval $ac_try) 2>&5 | |
3821 | ac_status=$? | |
3822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3823 | (exit $ac_status); }; }; then | |
3824 | ac_header_compiler=yes | |
3825 | else | |
3826 | echo "$as_me: failed program was:" >&5 | |
3827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3828 | ||
3829 | ac_header_compiler=no | |
3830 | fi | |
5c7fc7c4 | 3831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3832 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3833 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3834 | ||
3835 | # Is the header present? | |
3836 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3837 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3838 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3839 | /* confdefs.h. */ |
3840 | _ACEOF | |
3841 | cat confdefs.h >>conftest.$ac_ext | |
3842 | cat >>conftest.$ac_ext <<_ACEOF | |
3843 | /* end confdefs.h. */ | |
3844 | #include <$ac_header> | |
3845 | _ACEOF | |
3846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3848 | ac_status=$? | |
3849 | grep -v '^ *+' conftest.er1 >conftest.err | |
3850 | rm -f conftest.er1 | |
3851 | cat conftest.err >&5 | |
3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3853 | (exit $ac_status); } >/dev/null; then | |
3854 | if test -s conftest.err; then | |
3855 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 3856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
3857 | else |
3858 | ac_cpp_err= | |
3859 | fi | |
3860 | else | |
3861 | ac_cpp_err=yes | |
4922197a | 3862 | fi |
ad6254c5 AK |
3863 | if test -z "$ac_cpp_err"; then |
3864 | ac_header_preproc=yes | |
3865 | else | |
3866 | echo "$as_me: failed program was:" >&5 | |
3867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3868 | ||
3869 | ac_header_preproc=no | |
3870 | fi | |
3871 | rm -f conftest.err conftest.$ac_ext | |
3872 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3873 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3874 | ||
3875 | # So? What about this header? | |
5c7fc7c4 PC |
3876 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
3877 | yes:no: ) | |
ad6254c5 AK |
3878 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
3879 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
3880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
3881 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3882 | ac_header_preproc=yes | |
ad6254c5 | 3883 | ;; |
5c7fc7c4 | 3884 | no:yes:* ) |
ad6254c5 AK |
3885 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
3886 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
3887 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
3888 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3889 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3890 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3891 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3892 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
3893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
3894 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
3895 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
3896 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
3897 | ( |
3898 | cat <<\_ASBOX | |
5c7fc7c4 PC |
3899 | ## ------------------------------------------ ## |
3900 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3901 | ## ------------------------------------------ ## | |
ad6254c5 AK |
3902 | _ASBOX |
3903 | ) | | |
3904 | sed "s/^/$as_me: WARNING: /" >&2 | |
3905 | ;; | |
3906 | esac | |
3907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3911 | else | |
5c7fc7c4 | 3912 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
3913 | fi |
3914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3915 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3916 | ||
3917 | fi | |
3918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3919 | cat >>confdefs.h <<_ACEOF | |
3920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3921 | _ACEOF | |
4922197a | 3922 | |
4922197a | 3923 | else |
ad6254c5 AK |
3924 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
3925 | echo "$as_me: error: bailing out" >&2;} | |
3926 | { (exit 1); exit 1; }; } | |
80992638 AK |
3927 | fi |
3928 | ||
ad6254c5 | 3929 | done |
4922197a | 3930 | |
4922197a | 3931 | |
ad6254c5 AK |
3932 | case "$host_os" in |
3933 | linux*) | |
4922197a | 3934 | |
ad6254c5 AK |
3935 | |
3936 | ||
3937 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
3938 | do | |
3939 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3940 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3945 | fi | |
3946 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3947 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 3948 | else |
ad6254c5 AK |
3949 | # Is the header compilable? |
3950 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3951 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3952 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3953 | /* confdefs.h. */ |
3954 | _ACEOF | |
3955 | cat confdefs.h >>conftest.$ac_ext | |
3956 | cat >>conftest.$ac_ext <<_ACEOF | |
3957 | /* end confdefs.h. */ | |
3958 | $ac_includes_default | |
3959 | #include <$ac_header> | |
3960 | _ACEOF | |
3961 | rm -f conftest.$ac_objext | |
3962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 3963 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 3964 | ac_status=$? |
5c7fc7c4 PC |
3965 | grep -v '^ *+' conftest.er1 >conftest.err |
3966 | rm -f conftest.er1 | |
3967 | cat conftest.err >&5 | |
ad6254c5 AK |
3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3969 | (exit $ac_status); } && | |
5c7fc7c4 PC |
3970 | { ac_try='test -z "$ac_c_werror_flag" |
3971 | || test ! -s conftest.err' | |
3972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3973 | (eval $ac_try) 2>&5 | |
3974 | ac_status=$? | |
3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3976 | (exit $ac_status); }; } && | |
3977 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
3978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3979 | (eval $ac_try) 2>&5 | |
3980 | ac_status=$? | |
3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3982 | (exit $ac_status); }; }; then | |
3983 | ac_header_compiler=yes | |
3984 | else | |
3985 | echo "$as_me: failed program was:" >&5 | |
3986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3987 | ||
3988 | ac_header_compiler=no | |
3989 | fi | |
5c7fc7c4 | 3990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
3991 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3992 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3993 | ||
3994 | # Is the header present? | |
3995 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3996 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3997 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3998 | /* confdefs.h. */ |
3999 | _ACEOF | |
4000 | cat confdefs.h >>conftest.$ac_ext | |
4001 | cat >>conftest.$ac_ext <<_ACEOF | |
4002 | /* end confdefs.h. */ | |
4003 | #include <$ac_header> | |
4004 | _ACEOF | |
4005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4007 | ac_status=$? | |
4008 | grep -v '^ *+' conftest.er1 >conftest.err | |
4009 | rm -f conftest.er1 | |
4010 | cat conftest.err >&5 | |
4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4012 | (exit $ac_status); } >/dev/null; then | |
4013 | if test -s conftest.err; then | |
4014 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 4015 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4016 | else |
4017 | ac_cpp_err= | |
4018 | fi | |
4019 | else | |
4020 | ac_cpp_err=yes | |
4021 | fi | |
4022 | if test -z "$ac_cpp_err"; then | |
4023 | ac_header_preproc=yes | |
4024 | else | |
4025 | echo "$as_me: failed program was:" >&5 | |
4026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4027 | ||
4028 | ac_header_preproc=no | |
4029 | fi | |
4030 | rm -f conftest.err conftest.$ac_ext | |
4031 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4032 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4033 | ||
4034 | # So? What about this header? | |
5c7fc7c4 PC |
4035 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4036 | yes:no: ) | |
ad6254c5 AK |
4037 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4038 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
4039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4040 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4041 | ac_header_preproc=yes | |
ad6254c5 | 4042 | ;; |
5c7fc7c4 | 4043 | no:yes:* ) |
ad6254c5 AK |
4044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
4046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4049 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4051 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
4054 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4055 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4056 | ( |
4057 | cat <<\_ASBOX | |
5c7fc7c4 PC |
4058 | ## ------------------------------------------ ## |
4059 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4060 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4061 | _ASBOX |
4062 | ) | | |
4063 | sed "s/^/$as_me: WARNING: /" >&2 | |
4064 | ;; | |
4065 | esac | |
4066 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4070 | else | |
5c7fc7c4 | 4071 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4072 | fi |
ad6254c5 AK |
4073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 4075 | |
ad6254c5 AK |
4076 | fi |
4077 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4078 | cat >>confdefs.h <<_ACEOF | |
4079 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4080 | _ACEOF | |
795ca3e5 | 4081 | |
795ca3e5 | 4082 | else |
ad6254c5 AK |
4083 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4084 | echo "$as_me: error: bailing out" >&2;} | |
4085 | { (exit 1); exit 1; }; } | |
80992638 AK |
4086 | fi |
4087 | ||
ad6254c5 AK |
4088 | done |
4089 | ;; | |
4090 | darwin*) | |
4091 | ||
795ca3e5 | 4092 | |
ad6254c5 AK |
4093 | for ac_header in machine/endian.h sys/disk.h |
4094 | do | |
4095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4097 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4101 | fi | |
4102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4104 | else | |
4105 | # Is the header compilable? | |
4106 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4108 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4109 | /* confdefs.h. */ |
4110 | _ACEOF | |
4111 | cat confdefs.h >>conftest.$ac_ext | |
4112 | cat >>conftest.$ac_ext <<_ACEOF | |
4113 | /* end confdefs.h. */ | |
4114 | $ac_includes_default | |
4115 | #include <$ac_header> | |
4116 | _ACEOF | |
4117 | rm -f conftest.$ac_objext | |
4118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4119 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4120 | ac_status=$? |
5c7fc7c4 PC |
4121 | grep -v '^ *+' conftest.er1 >conftest.err |
4122 | rm -f conftest.er1 | |
4123 | cat conftest.err >&5 | |
ad6254c5 AK |
4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4125 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4126 | { ac_try='test -z "$ac_c_werror_flag" |
4127 | || test ! -s conftest.err' | |
4128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4129 | (eval $ac_try) 2>&5 | |
4130 | ac_status=$? | |
4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4132 | (exit $ac_status); }; } && | |
4133 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4135 | (eval $ac_try) 2>&5 | |
4136 | ac_status=$? | |
4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4138 | (exit $ac_status); }; }; then | |
4139 | ac_header_compiler=yes | |
4140 | else | |
4141 | echo "$as_me: failed program was:" >&5 | |
4142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4143 | ||
4144 | ac_header_compiler=no | |
4145 | fi | |
5c7fc7c4 | 4146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4147 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4148 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4149 | ||
4150 | # Is the header present? | |
4151 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4152 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4153 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4154 | /* confdefs.h. */ |
4155 | _ACEOF | |
4156 | cat confdefs.h >>conftest.$ac_ext | |
4157 | cat >>conftest.$ac_ext <<_ACEOF | |
4158 | /* end confdefs.h. */ | |
4159 | #include <$ac_header> | |
4160 | _ACEOF | |
4161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4163 | ac_status=$? | |
4164 | grep -v '^ *+' conftest.er1 >conftest.err | |
4165 | rm -f conftest.er1 | |
4166 | cat conftest.err >&5 | |
4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4168 | (exit $ac_status); } >/dev/null; then | |
4169 | if test -s conftest.err; then | |
4170 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 4171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
4172 | else |
4173 | ac_cpp_err= | |
4174 | fi | |
4175 | else | |
4176 | ac_cpp_err=yes | |
4177 | fi | |
4178 | if test -z "$ac_cpp_err"; then | |
4179 | ac_header_preproc=yes | |
4180 | else | |
4181 | echo "$as_me: failed program was:" >&5 | |
4182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4183 | ||
4184 | ac_header_preproc=no | |
4185 | fi | |
4186 | rm -f conftest.err conftest.$ac_ext | |
4187 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4188 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4189 | ||
4190 | # So? What about this header? | |
5c7fc7c4 PC |
4191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4192 | yes:no: ) | |
ad6254c5 AK |
4193 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4194 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
4195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4196 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4197 | ac_header_preproc=yes | |
ad6254c5 | 4198 | ;; |
5c7fc7c4 | 4199 | no:yes:* ) |
ad6254c5 AK |
4200 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4201 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
4202 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4203 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4204 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4205 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4206 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4207 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
4208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4209 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
4210 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4211 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
4212 | ( |
4213 | cat <<\_ASBOX | |
5c7fc7c4 PC |
4214 | ## ------------------------------------------ ## |
4215 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4216 | ## ------------------------------------------ ## | |
ad6254c5 AK |
4217 | _ASBOX |
4218 | ) | | |
4219 | sed "s/^/$as_me: WARNING: /" >&2 | |
4220 | ;; | |
4221 | esac | |
4222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4226 | else | |
5c7fc7c4 | 4227 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4228 | fi |
ad6254c5 AK |
4229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4230 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
b896caa1 | 4231 | |
ad6254c5 AK |
4232 | fi |
4233 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4234 | cat >>confdefs.h <<_ACEOF | |
4235 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4236 | _ACEOF | |
4237 | ||
4238 | else | |
4239 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4240 | echo "$as_me: error: bailing out" >&2;} | |
4241 | { (exit 1); exit 1; }; } | |
80992638 AK |
4242 | fi |
4243 | ||
ad6254c5 AK |
4244 | done |
4245 | ;; | |
4246 | esac | |
d3c8211f | 4247 | |
80992638 | 4248 | ################################################################################ |
ad6254c5 AK |
4249 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4250 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4251 | if test "${ac_cv_c_const+set}" = set; then | |
4252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d3c8211f | 4253 | else |
ad6254c5 | 4254 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4255 | /* confdefs.h. */ |
4256 | _ACEOF | |
4257 | cat confdefs.h >>conftest.$ac_ext | |
4258 | cat >>conftest.$ac_ext <<_ACEOF | |
4259 | /* end confdefs.h. */ | |
4260 | ||
4261 | int | |
4262 | main () | |
4263 | { | |
4264 | /* FIXME: Include the comments suggested by Paul. */ | |
4265 | #ifndef __cplusplus | |
4266 | /* Ultrix mips cc rejects this. */ | |
4267 | typedef int charset[2]; | |
4268 | const charset x; | |
4269 | /* SunOS 4.1.1 cc rejects this. */ | |
4270 | char const *const *ccp; | |
4271 | char **p; | |
4272 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
4273 | struct point {int x, y;}; | |
4274 | static struct point const zero = {0,0}; | |
4275 | /* AIX XL C 1.02.0.0 rejects this. | |
4276 | It does not let you subtract one const X* pointer from another in | |
4277 | an arm of an if-expression whose if-part is not a constant | |
4278 | expression */ | |
4279 | const char *g = "string"; | |
4280 | ccp = &g + (g ? g-g : 0); | |
4281 | /* HPUX 7.0 cc rejects these. */ | |
4282 | ++ccp; | |
4283 | p = (char**) ccp; | |
4284 | ccp = (char const *const *) p; | |
4285 | { /* SCO 3.2v4 cc rejects this. */ | |
4286 | char *t; | |
4287 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4288 | ||
4289 | *t++ = 0; | |
4290 | } | |
4291 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4292 | int x[] = {25, 17}; | |
4293 | const int *foo = &x[0]; | |
4294 | ++foo; | |
4295 | } | |
4296 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4297 | typedef const int *iptr; | |
4298 | iptr p = 0; | |
4299 | ++p; | |
4300 | } | |
4301 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4302 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4303 | struct s { int j; const int *ap[3]; }; | |
4304 | struct s *b; b->j = 5; | |
4305 | } | |
4306 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4307 | const int foo = 10; | |
4308 | } | |
4309 | #endif | |
4310 | ||
4311 | ; | |
4312 | return 0; | |
4313 | } | |
4314 | _ACEOF | |
4315 | rm -f conftest.$ac_objext | |
4316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4317 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4318 | ac_status=$? |
5c7fc7c4 PC |
4319 | grep -v '^ *+' conftest.er1 >conftest.err |
4320 | rm -f conftest.er1 | |
4321 | cat conftest.err >&5 | |
ad6254c5 AK |
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4323 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4324 | { ac_try='test -z "$ac_c_werror_flag" |
4325 | || test ! -s conftest.err' | |
4326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4327 | (eval $ac_try) 2>&5 | |
4328 | ac_status=$? | |
4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4330 | (exit $ac_status); }; } && | |
4331 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4333 | (eval $ac_try) 2>&5 | |
4334 | ac_status=$? | |
4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4336 | (exit $ac_status); }; }; then | |
4337 | ac_cv_c_const=yes | |
4338 | else | |
4339 | echo "$as_me: failed program was:" >&5 | |
4340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4341 | ||
4342 | ac_cv_c_const=no | |
4343 | fi | |
5c7fc7c4 | 4344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4345 | fi |
ad6254c5 AK |
4346 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4347 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4348 | if test $ac_cv_c_const = no; then | |
80992638 | 4349 | |
ad6254c5 AK |
4350 | cat >>confdefs.h <<\_ACEOF |
4351 | #define const | |
4352 | _ACEOF | |
80992638 | 4353 | |
d3c8211f | 4354 | fi |
d3c8211f | 4355 | |
ad6254c5 AK |
4356 | echo "$as_me:$LINENO: checking for inline" >&5 |
4357 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4358 | if test "${ac_cv_c_inline+set}" = set; then | |
4359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8ef2b021 | 4360 | else |
ad6254c5 AK |
4361 | ac_cv_c_inline=no |
4362 | for ac_kw in inline __inline__ __inline; do | |
4363 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4364 | /* confdefs.h. */ |
4365 | _ACEOF | |
4366 | cat confdefs.h >>conftest.$ac_ext | |
4367 | cat >>conftest.$ac_ext <<_ACEOF | |
4368 | /* end confdefs.h. */ | |
4369 | #ifndef __cplusplus | |
4370 | typedef int foo_t; | |
4371 | static $ac_kw foo_t static_foo () {return 0; } | |
4372 | $ac_kw foo_t foo () {return 0; } | |
4373 | #endif | |
80992638 | 4374 | |
ad6254c5 AK |
4375 | _ACEOF |
4376 | rm -f conftest.$ac_objext | |
4377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4378 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4379 | ac_status=$? |
5c7fc7c4 PC |
4380 | grep -v '^ *+' conftest.er1 >conftest.err |
4381 | rm -f conftest.er1 | |
4382 | cat conftest.err >&5 | |
ad6254c5 AK |
4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4384 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4385 | { ac_try='test -z "$ac_c_werror_flag" |
4386 | || test ! -s conftest.err' | |
4387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4388 | (eval $ac_try) 2>&5 | |
4389 | ac_status=$? | |
4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4391 | (exit $ac_status); }; } && | |
4392 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4394 | (eval $ac_try) 2>&5 | |
4395 | ac_status=$? | |
4396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4397 | (exit $ac_status); }; }; then | |
4398 | ac_cv_c_inline=$ac_kw; break | |
4399 | else | |
4400 | echo "$as_me: failed program was:" >&5 | |
4401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ef2b021 | 4402 | |
8ce0cbda | 4403 | fi |
5c7fc7c4 | 4404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4405 | done |
8ce0cbda | 4406 | |
8ce0cbda | 4407 | fi |
ad6254c5 AK |
4408 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4409 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5c7fc7c4 PC |
4410 | |
4411 | ||
ad6254c5 AK |
4412 | case $ac_cv_c_inline in |
4413 | inline | yes) ;; | |
5c7fc7c4 PC |
4414 | *) |
4415 | case $ac_cv_c_inline in | |
4416 | no) ac_val=;; | |
4417 | *) ac_val=$ac_cv_c_inline;; | |
4418 | esac | |
4419 | cat >>confdefs.h <<_ACEOF | |
4420 | #ifndef __cplusplus | |
4421 | #define inline $ac_val | |
4422 | #endif | |
a266258f | 4423 | _ACEOF |
5c7fc7c4 | 4424 | ;; |
ad6254c5 | 4425 | esac |
8ce0cbda | 4426 | |
ad6254c5 AK |
4427 | echo "$as_me:$LINENO: checking for off_t" >&5 |
4428 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4429 | if test "${ac_cv_type_off_t+set}" = set; then | |
4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4431 | else | |
4432 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4433 | /* confdefs.h. */ |
4434 | _ACEOF | |
4435 | cat confdefs.h >>conftest.$ac_ext | |
4436 | cat >>conftest.$ac_ext <<_ACEOF | |
4437 | /* end confdefs.h. */ | |
4438 | $ac_includes_default | |
4439 | int | |
4440 | main () | |
4441 | { | |
4442 | if ((off_t *) 0) | |
4443 | return 0; | |
4444 | if (sizeof (off_t)) | |
4445 | return 0; | |
4446 | ; | |
4447 | return 0; | |
4448 | } | |
4449 | _ACEOF | |
4450 | rm -f conftest.$ac_objext | |
4451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4452 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4453 | ac_status=$? |
5c7fc7c4 PC |
4454 | grep -v '^ *+' conftest.er1 >conftest.err |
4455 | rm -f conftest.er1 | |
4456 | cat conftest.err >&5 | |
ad6254c5 AK |
4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4458 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4459 | { ac_try='test -z "$ac_c_werror_flag" |
4460 | || test ! -s conftest.err' | |
4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4462 | (eval $ac_try) 2>&5 | |
4463 | ac_status=$? | |
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4465 | (exit $ac_status); }; } && | |
4466 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4468 | (eval $ac_try) 2>&5 | |
4469 | ac_status=$? | |
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4471 | (exit $ac_status); }; }; then | |
4472 | ac_cv_type_off_t=yes | |
4473 | else | |
4474 | echo "$as_me: failed program was:" >&5 | |
4475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 4476 | |
ad6254c5 | 4477 | ac_cv_type_off_t=no |
80992638 | 4478 | fi |
5c7fc7c4 | 4479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4480 | fi |
4481 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
4482 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4483 | if test $ac_cv_type_off_t = yes; then | |
4484 | : | |
4485 | else | |
80992638 | 4486 | |
ad6254c5 AK |
4487 | cat >>confdefs.h <<_ACEOF |
4488 | #define off_t long | |
4489 | _ACEOF | |
199e490e | 4490 | |
b896caa1 AK |
4491 | fi |
4492 | ||
ad6254c5 AK |
4493 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
4494 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
4495 | if test "${ac_cv_type_pid_t+set}" = set; then | |
4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4497 | else | |
4498 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4499 | /* confdefs.h. */ |
4500 | _ACEOF | |
4501 | cat confdefs.h >>conftest.$ac_ext | |
4502 | cat >>conftest.$ac_ext <<_ACEOF | |
4503 | /* end confdefs.h. */ | |
4504 | $ac_includes_default | |
4505 | int | |
4506 | main () | |
4507 | { | |
4508 | if ((pid_t *) 0) | |
4509 | return 0; | |
4510 | if (sizeof (pid_t)) | |
4511 | return 0; | |
4512 | ; | |
4513 | return 0; | |
4514 | } | |
4515 | _ACEOF | |
4516 | rm -f conftest.$ac_objext | |
4517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4518 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4519 | ac_status=$? |
5c7fc7c4 PC |
4520 | grep -v '^ *+' conftest.er1 >conftest.err |
4521 | rm -f conftest.er1 | |
4522 | cat conftest.err >&5 | |
ad6254c5 AK |
4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4524 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4525 | { ac_try='test -z "$ac_c_werror_flag" |
4526 | || test ! -s conftest.err' | |
4527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4528 | (eval $ac_try) 2>&5 | |
4529 | ac_status=$? | |
4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4531 | (exit $ac_status); }; } && | |
4532 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4534 | (eval $ac_try) 2>&5 | |
4535 | ac_status=$? | |
4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4537 | (exit $ac_status); }; }; then | |
4538 | ac_cv_type_pid_t=yes | |
4539 | else | |
4540 | echo "$as_me: failed program was:" >&5 | |
4541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4542 | ||
4543 | ac_cv_type_pid_t=no | |
4544 | fi | |
5c7fc7c4 | 4545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
80992638 | 4546 | fi |
ad6254c5 AK |
4547 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
4548 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
4549 | if test $ac_cv_type_pid_t = yes; then | |
4550 | : | |
4551 | else | |
80992638 | 4552 | |
ad6254c5 AK |
4553 | cat >>confdefs.h <<_ACEOF |
4554 | #define pid_t int | |
4555 | _ACEOF | |
2dc95e1c | 4556 | |
2dc95e1c AK |
4557 | fi |
4558 | ||
ad6254c5 AK |
4559 | echo "$as_me:$LINENO: checking for size_t" >&5 |
4560 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
4561 | if test "${ac_cv_type_size_t+set}" = set; then | |
4562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106cdd5 | 4563 | else |
ad6254c5 | 4564 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4565 | /* confdefs.h. */ |
4566 | _ACEOF | |
4567 | cat confdefs.h >>conftest.$ac_ext | |
4568 | cat >>conftest.$ac_ext <<_ACEOF | |
4569 | /* end confdefs.h. */ | |
4570 | $ac_includes_default | |
4571 | int | |
4572 | main () | |
4573 | { | |
4574 | if ((size_t *) 0) | |
4575 | return 0; | |
4576 | if (sizeof (size_t)) | |
4577 | return 0; | |
4578 | ; | |
4579 | return 0; | |
4580 | } | |
4581 | _ACEOF | |
4582 | rm -f conftest.$ac_objext | |
4583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4584 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4585 | ac_status=$? |
5c7fc7c4 PC |
4586 | grep -v '^ *+' conftest.er1 >conftest.err |
4587 | rm -f conftest.er1 | |
4588 | cat conftest.err >&5 | |
ad6254c5 AK |
4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4590 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4591 | { ac_try='test -z "$ac_c_werror_flag" |
4592 | || test ! -s conftest.err' | |
4593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4594 | (eval $ac_try) 2>&5 | |
4595 | ac_status=$? | |
4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4597 | (exit $ac_status); }; } && | |
4598 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4600 | (eval $ac_try) 2>&5 | |
4601 | ac_status=$? | |
4602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4603 | (exit $ac_status); }; }; then | |
4604 | ac_cv_type_size_t=yes | |
4605 | else | |
4606 | echo "$as_me: failed program was:" >&5 | |
4607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4608 | ||
4609 | ac_cv_type_size_t=no | |
80992638 | 4610 | fi |
5c7fc7c4 | 4611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4612 | fi |
4613 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
4614 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
4615 | if test $ac_cv_type_size_t = yes; then | |
4616 | : | |
4617 | else | |
80992638 | 4618 | |
ad6254c5 AK |
4619 | cat >>confdefs.h <<_ACEOF |
4620 | #define size_t unsigned | |
4621 | _ACEOF | |
8106cdd5 | 4622 | |
8106cdd5 AK |
4623 | fi |
4624 | ||
ad6254c5 AK |
4625 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
4626 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
4627 | if test "${ac_cv_type_mode_t+set}" = set; then | |
4628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4629 | else | |
4630 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4631 | /* confdefs.h. */ |
4632 | _ACEOF | |
4633 | cat confdefs.h >>conftest.$ac_ext | |
4634 | cat >>conftest.$ac_ext <<_ACEOF | |
4635 | /* end confdefs.h. */ | |
4636 | $ac_includes_default | |
4637 | int | |
4638 | main () | |
4639 | { | |
4640 | if ((mode_t *) 0) | |
4641 | return 0; | |
4642 | if (sizeof (mode_t)) | |
4643 | return 0; | |
4644 | ; | |
4645 | return 0; | |
4646 | } | |
4647 | _ACEOF | |
4648 | rm -f conftest.$ac_objext | |
4649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4650 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4651 | ac_status=$? |
5c7fc7c4 PC |
4652 | grep -v '^ *+' conftest.er1 >conftest.err |
4653 | rm -f conftest.er1 | |
4654 | cat conftest.err >&5 | |
ad6254c5 AK |
4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4656 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4657 | { ac_try='test -z "$ac_c_werror_flag" |
4658 | || test ! -s conftest.err' | |
4659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4660 | (eval $ac_try) 2>&5 | |
4661 | ac_status=$? | |
4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4663 | (exit $ac_status); }; } && | |
4664 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4666 | (eval $ac_try) 2>&5 | |
4667 | ac_status=$? | |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4669 | (exit $ac_status); }; }; then | |
4670 | ac_cv_type_mode_t=yes | |
4671 | else | |
4672 | echo "$as_me: failed program was:" >&5 | |
4673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4674 | ||
4675 | ac_cv_type_mode_t=no | |
80992638 | 4676 | fi |
5c7fc7c4 | 4677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4678 | fi |
4679 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
4680 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
4681 | if test $ac_cv_type_mode_t = yes; then | |
4682 | : | |
4683 | else | |
80992638 | 4684 | |
ad6254c5 AK |
4685 | cat >>confdefs.h <<_ACEOF |
4686 | #define mode_t int | |
4687 | _ACEOF | |
4688 | ||
4689 | fi | |
4690 | ||
4691 | ||
4692 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
4693 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
4694 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4696 | else | |
4697 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4698 | /* confdefs.h. */ |
4699 | _ACEOF | |
4700 | cat confdefs.h >>conftest.$ac_ext | |
4701 | cat >>conftest.$ac_ext <<_ACEOF | |
4702 | /* end confdefs.h. */ | |
4703 | $ac_includes_default | |
4704 | int | |
4705 | main () | |
4706 | { | |
4707 | static struct stat ac_aggr; | |
4708 | if (ac_aggr.st_rdev) | |
4709 | return 0; | |
4710 | ; | |
4711 | return 0; | |
4712 | } | |
4713 | _ACEOF | |
4714 | rm -f conftest.$ac_objext | |
4715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4716 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4717 | ac_status=$? |
5c7fc7c4 PC |
4718 | grep -v '^ *+' conftest.er1 >conftest.err |
4719 | rm -f conftest.er1 | |
4720 | cat conftest.err >&5 | |
ad6254c5 AK |
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4722 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4723 | { ac_try='test -z "$ac_c_werror_flag" |
4724 | || test ! -s conftest.err' | |
4725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4726 | (eval $ac_try) 2>&5 | |
4727 | ac_status=$? | |
4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4729 | (exit $ac_status); }; } && | |
4730 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4732 | (eval $ac_try) 2>&5 | |
4733 | ac_status=$? | |
4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4735 | (exit $ac_status); }; }; then | |
4736 | ac_cv_member_struct_stat_st_rdev=yes | |
4737 | else | |
4738 | echo "$as_me: failed program was:" >&5 | |
4739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4740 | ||
4741 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4742 | /* confdefs.h. */ |
4743 | _ACEOF | |
4744 | cat confdefs.h >>conftest.$ac_ext | |
4745 | cat >>conftest.$ac_ext <<_ACEOF | |
4746 | /* end confdefs.h. */ | |
4747 | $ac_includes_default | |
4748 | int | |
4749 | main () | |
4750 | { | |
4751 | static struct stat ac_aggr; | |
4752 | if (sizeof ac_aggr.st_rdev) | |
4753 | return 0; | |
4754 | ; | |
4755 | return 0; | |
4756 | } | |
4757 | _ACEOF | |
4758 | rm -f conftest.$ac_objext | |
4759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4760 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4761 | ac_status=$? |
5c7fc7c4 PC |
4762 | grep -v '^ *+' conftest.er1 >conftest.err |
4763 | rm -f conftest.er1 | |
4764 | cat conftest.err >&5 | |
ad6254c5 AK |
4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4766 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4767 | { ac_try='test -z "$ac_c_werror_flag" |
4768 | || test ! -s conftest.err' | |
4769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4770 | (eval $ac_try) 2>&5 | |
4771 | ac_status=$? | |
4772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4773 | (exit $ac_status); }; } && | |
4774 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4776 | (eval $ac_try) 2>&5 | |
4777 | ac_status=$? | |
4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4779 | (exit $ac_status); }; }; then | |
4780 | ac_cv_member_struct_stat_st_rdev=yes | |
4781 | else | |
4782 | echo "$as_me: failed program was:" >&5 | |
4783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4784 | ||
4785 | ac_cv_member_struct_stat_st_rdev=no | |
4786 | fi | |
5c7fc7c4 | 4787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4788 | fi |
5c7fc7c4 | 4789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4790 | fi |
4791 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
4792 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
4793 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
4794 | ||
4795 | cat >>confdefs.h <<_ACEOF | |
4796 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
4797 | _ACEOF | |
4798 | ||
4799 | ||
4800 | cat >>confdefs.h <<\_ACEOF | |
4801 | #define HAVE_ST_RDEV 1 | |
4802 | _ACEOF | |
4803 | ||
4804 | fi | |
4805 | ||
4806 | ||
4807 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4808 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4809 | if test "${ac_cv_struct_tm+set}" = set; then | |
4810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4811 | else | |
4812 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4813 | /* confdefs.h. */ |
4814 | _ACEOF | |
4815 | cat confdefs.h >>conftest.$ac_ext | |
4816 | cat >>conftest.$ac_ext <<_ACEOF | |
4817 | /* end confdefs.h. */ | |
4818 | #include <sys/types.h> | |
4819 | #include <time.h> | |
4820 | ||
4821 | int | |
4822 | main () | |
4823 | { | |
4824 | struct tm *tp; tp->tm_sec; | |
4825 | ; | |
4826 | return 0; | |
4827 | } | |
4828 | _ACEOF | |
4829 | rm -f conftest.$ac_objext | |
4830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 4831 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 4832 | ac_status=$? |
5c7fc7c4 PC |
4833 | grep -v '^ *+' conftest.er1 >conftest.err |
4834 | rm -f conftest.er1 | |
4835 | cat conftest.err >&5 | |
ad6254c5 AK |
4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4837 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4838 | { ac_try='test -z "$ac_c_werror_flag" |
4839 | || test ! -s conftest.err' | |
4840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4841 | (eval $ac_try) 2>&5 | |
4842 | ac_status=$? | |
4843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4844 | (exit $ac_status); }; } && | |
4845 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
4846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4847 | (eval $ac_try) 2>&5 | |
4848 | ac_status=$? | |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4850 | (exit $ac_status); }; }; then | |
4851 | ac_cv_struct_tm=time.h | |
4852 | else | |
4853 | echo "$as_me: failed program was:" >&5 | |
4854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4855 | ||
4856 | ac_cv_struct_tm=sys/time.h | |
4857 | fi | |
5c7fc7c4 | 4858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
4859 | fi |
4860 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
4861 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
4862 | if test $ac_cv_struct_tm = sys/time.h; then | |
4863 | ||
4864 | cat >>confdefs.h <<\_ACEOF | |
4865 | #define TM_IN_SYS_TIME 1 | |
4866 | _ACEOF | |
4867 | ||
4868 | fi | |
809fae91 | 4869 | |
795ca3e5 | 4870 | |
80992638 | 4871 | ################################################################################ |
ad6254c5 AK |
4872 | |
4873 | ||
4874 | ||
4875 | ||
4876 | ||
4877 | ||
4878 | ||
4879 | ||
4880 | ||
4881 | ||
4882 | ||
4883 | ||
4884 | ||
4885 | ||
4886 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
4887 | do | |
4888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4889 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4891 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4893 | else |
ad6254c5 | 4894 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4895 | /* confdefs.h. */ |
4896 | _ACEOF | |
4897 | cat confdefs.h >>conftest.$ac_ext | |
4898 | cat >>conftest.$ac_ext <<_ACEOF | |
4899 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
4900 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4902 | #define $ac_func innocuous_$ac_func | |
4903 | ||
ad6254c5 AK |
4904 | /* System header to define __stub macros and hopefully few prototypes, |
4905 | which can conflict with char $ac_func (); below. | |
4906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4907 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 4908 | |
ad6254c5 AK |
4909 | #ifdef __STDC__ |
4910 | # include <limits.h> | |
4911 | #else | |
4912 | # include <assert.h> | |
4913 | #endif | |
5c7fc7c4 PC |
4914 | |
4915 | #undef $ac_func | |
4916 | ||
ad6254c5 AK |
4917 | /* Override any gcc2 internal prototype to avoid an error. */ |
4918 | #ifdef __cplusplus | |
4919 | extern "C" | |
4920 | { | |
4921 | #endif | |
4922 | /* We use char because int might match the return type of a gcc2 | |
4923 | builtin and then its argument prototype would still apply. */ | |
4924 | char $ac_func (); | |
4925 | /* The GNU C library defines this for functions which it implements | |
4926 | to always fail with ENOSYS. Some functions are actually named | |
4927 | something starting with __ and the normal name is an alias. */ | |
4928 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4929 | choke me | |
4930 | #else | |
4931 | char (*f) () = $ac_func; | |
4932 | #endif | |
4933 | #ifdef __cplusplus | |
4934 | } | |
4935 | #endif | |
4936 | ||
4937 | int | |
4938 | main () | |
4939 | { | |
4940 | return f != $ac_func; | |
4941 | ; | |
4942 | return 0; | |
4943 | } | |
4944 | _ACEOF | |
4945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 4947 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 4948 | ac_status=$? |
5c7fc7c4 PC |
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
4950 | rm -f conftest.er1 | |
4951 | cat conftest.err >&5 | |
ad6254c5 AK |
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4953 | (exit $ac_status); } && | |
5c7fc7c4 PC |
4954 | { ac_try='test -z "$ac_c_werror_flag" |
4955 | || test ! -s conftest.err' | |
4956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4957 | (eval $ac_try) 2>&5 | |
4958 | ac_status=$? | |
4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4960 | (exit $ac_status); }; } && | |
4961 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
4962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4963 | (eval $ac_try) 2>&5 | |
4964 | ac_status=$? | |
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4966 | (exit $ac_status); }; }; then | |
4967 | eval "$as_ac_var=yes" | |
795ca3e5 | 4968 | else |
ad6254c5 AK |
4969 | echo "$as_me: failed program was:" >&5 |
4970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4971 | ||
4972 | eval "$as_ac_var=no" | |
795ca3e5 | 4973 | fi |
5c7fc7c4 PC |
4974 | rm -f conftest.err conftest.$ac_objext \ |
4975 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
4976 | fi |
4977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4978 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4979 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4980 | cat >>confdefs.h <<_ACEOF | |
4981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4982 | _ACEOF | |
4983 | ||
4984 | else | |
4985 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
4986 | echo "$as_me: error: bailing out" >&2;} | |
4987 | { (exit 1); exit 1; }; } | |
4988 | fi | |
4989 | done | |
795ca3e5 | 4990 | |
ad6254c5 AK |
4991 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4992 | # for constant arguments. Useless! | |
4993 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
4994 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
4995 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
4996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4997 | else | |
4998 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4999 | /* confdefs.h. */ |
5000 | _ACEOF | |
5001 | cat confdefs.h >>conftest.$ac_ext | |
5002 | cat >>conftest.$ac_ext <<_ACEOF | |
5003 | /* end confdefs.h. */ | |
5004 | #include <alloca.h> | |
5005 | int | |
5006 | main () | |
5007 | { | |
5008 | char *p = (char *) alloca (2 * sizeof (int)); | |
5009 | ; | |
5010 | return 0; | |
5011 | } | |
5012 | _ACEOF | |
5013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5015 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5016 | ac_status=$? |
5c7fc7c4 PC |
5017 | grep -v '^ *+' conftest.er1 >conftest.err |
5018 | rm -f conftest.er1 | |
5019 | cat conftest.err >&5 | |
ad6254c5 AK |
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5021 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5022 | { ac_try='test -z "$ac_c_werror_flag" |
5023 | || test ! -s conftest.err' | |
5024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5025 | (eval $ac_try) 2>&5 | |
5026 | ac_status=$? | |
5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5028 | (exit $ac_status); }; } && | |
5029 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5031 | (eval $ac_try) 2>&5 | |
5032 | ac_status=$? | |
5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5034 | (exit $ac_status); }; }; then | |
5035 | ac_cv_working_alloca_h=yes | |
5036 | else | |
5037 | echo "$as_me: failed program was:" >&5 | |
5038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 5039 | |
ad6254c5 AK |
5040 | ac_cv_working_alloca_h=no |
5041 | fi | |
5c7fc7c4 PC |
5042 | rm -f conftest.err conftest.$ac_objext \ |
5043 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5044 | fi |
5045 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5046 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5047 | if test $ac_cv_working_alloca_h = yes; then | |
5048 | ||
5049 | cat >>confdefs.h <<\_ACEOF | |
5050 | #define HAVE_ALLOCA_H 1 | |
5051 | _ACEOF | |
5052 | ||
5053 | fi | |
5054 | ||
5055 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
5056 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5057 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5059 | else | |
5060 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5061 | /* confdefs.h. */ |
5062 | _ACEOF | |
5063 | cat confdefs.h >>conftest.$ac_ext | |
5064 | cat >>conftest.$ac_ext <<_ACEOF | |
5065 | /* end confdefs.h. */ | |
5066 | #ifdef __GNUC__ | |
5067 | # define alloca __builtin_alloca | |
5068 | #else | |
5069 | # ifdef _MSC_VER | |
5070 | # include <malloc.h> | |
5071 | # define alloca _alloca | |
5072 | # else | |
5073 | # if HAVE_ALLOCA_H | |
5074 | # include <alloca.h> | |
5075 | # else | |
5076 | # ifdef _AIX | |
5077 | #pragma alloca | |
5078 | # else | |
5079 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5080 | char *alloca (); | |
5081 | # endif | |
5082 | # endif | |
5083 | # endif | |
5084 | # endif | |
5085 | #endif | |
5086 | ||
5087 | int | |
5088 | main () | |
5089 | { | |
5090 | char *p = (char *) alloca (1); | |
5091 | ; | |
5092 | return 0; | |
5093 | } | |
5094 | _ACEOF | |
5095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5097 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5098 | ac_status=$? |
5c7fc7c4 PC |
5099 | grep -v '^ *+' conftest.er1 >conftest.err |
5100 | rm -f conftest.er1 | |
5101 | cat conftest.err >&5 | |
ad6254c5 AK |
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5103 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5104 | { ac_try='test -z "$ac_c_werror_flag" |
5105 | || test ! -s conftest.err' | |
5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5107 | (eval $ac_try) 2>&5 | |
5108 | ac_status=$? | |
5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5110 | (exit $ac_status); }; } && | |
5111 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5113 | (eval $ac_try) 2>&5 | |
5114 | ac_status=$? | |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5116 | (exit $ac_status); }; }; then | |
5117 | ac_cv_func_alloca_works=yes | |
5118 | else | |
5119 | echo "$as_me: failed program was:" >&5 | |
5120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5121 | ||
5122 | ac_cv_func_alloca_works=no | |
5123 | fi | |
5c7fc7c4 PC |
5124 | rm -f conftest.err conftest.$ac_objext \ |
5125 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5126 | fi |
5127 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
5128 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5129 | ||
5130 | if test $ac_cv_func_alloca_works = yes; then | |
5131 | ||
5132 | cat >>confdefs.h <<\_ACEOF | |
5133 | #define HAVE_ALLOCA 1 | |
5134 | _ACEOF | |
5135 | ||
5136 | else | |
5137 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5138 | # that cause trouble. Some versions do not even contain alloca or | |
5139 | # contain a buggy version. If you still want to use their alloca, | |
5140 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5141 | ||
5142 | ALLOCA=alloca.$ac_objext | |
5143 | ||
5144 | cat >>confdefs.h <<\_ACEOF | |
5145 | #define C_ALLOCA 1 | |
5146 | _ACEOF | |
5147 | ||
5148 | ||
5149 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5150 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5151 | if test "${ac_cv_os_cray+set}" = set; then | |
5152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5153 | else | |
5154 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5155 | /* confdefs.h. */ |
5156 | _ACEOF | |
5157 | cat confdefs.h >>conftest.$ac_ext | |
5158 | cat >>conftest.$ac_ext <<_ACEOF | |
5159 | /* end confdefs.h. */ | |
5160 | #if defined(CRAY) && ! defined(CRAY2) | |
5161 | webecray | |
5162 | #else | |
5163 | wenotbecray | |
5164 | #endif | |
5165 | ||
5166 | _ACEOF | |
795ca3e5 | 5167 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
5168 | $EGREP "webecray" >/dev/null 2>&1; then |
5169 | ac_cv_os_cray=yes | |
5170 | else | |
5171 | ac_cv_os_cray=no | |
795ca3e5 AK |
5172 | fi |
5173 | rm -f conftest* | |
5174 | ||
795ca3e5 | 5175 | fi |
ad6254c5 AK |
5176 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5177 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5178 | if test $ac_cv_os_cray = yes; then | |
5179 | for ac_func in _getb67 GETB67 getb67; do | |
5180 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5181 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5183 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5185 | else | |
5186 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5187 | /* confdefs.h. */ |
5188 | _ACEOF | |
5189 | cat confdefs.h >>conftest.$ac_ext | |
5190 | cat >>conftest.$ac_ext <<_ACEOF | |
5191 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
5192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5194 | #define $ac_func innocuous_$ac_func | |
5195 | ||
ad6254c5 AK |
5196 | /* System header to define __stub macros and hopefully few prototypes, |
5197 | which can conflict with char $ac_func (); below. | |
5198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5199 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 5200 | |
ad6254c5 AK |
5201 | #ifdef __STDC__ |
5202 | # include <limits.h> | |
5203 | #else | |
5204 | # include <assert.h> | |
5205 | #endif | |
5c7fc7c4 PC |
5206 | |
5207 | #undef $ac_func | |
5208 | ||
ad6254c5 AK |
5209 | /* Override any gcc2 internal prototype to avoid an error. */ |
5210 | #ifdef __cplusplus | |
5211 | extern "C" | |
5212 | { | |
5213 | #endif | |
5214 | /* We use char because int might match the return type of a gcc2 | |
5215 | builtin and then its argument prototype would still apply. */ | |
5216 | char $ac_func (); | |
5217 | /* The GNU C library defines this for functions which it implements | |
5218 | to always fail with ENOSYS. Some functions are actually named | |
5219 | something starting with __ and the normal name is an alias. */ | |
5220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5221 | choke me | |
5222 | #else | |
5223 | char (*f) () = $ac_func; | |
5224 | #endif | |
5225 | #ifdef __cplusplus | |
5226 | } | |
5227 | #endif | |
5228 | ||
5229 | int | |
5230 | main () | |
5231 | { | |
5232 | return f != $ac_func; | |
5233 | ; | |
5234 | return 0; | |
5235 | } | |
5236 | _ACEOF | |
5237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5239 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5240 | ac_status=$? |
5c7fc7c4 PC |
5241 | grep -v '^ *+' conftest.er1 >conftest.err |
5242 | rm -f conftest.er1 | |
5243 | cat conftest.err >&5 | |
ad6254c5 AK |
5244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5245 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5246 | { ac_try='test -z "$ac_c_werror_flag" |
5247 | || test ! -s conftest.err' | |
5248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5249 | (eval $ac_try) 2>&5 | |
5250 | ac_status=$? | |
5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5252 | (exit $ac_status); }; } && | |
5253 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5255 | (eval $ac_try) 2>&5 | |
5256 | ac_status=$? | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5258 | (exit $ac_status); }; }; then | |
5259 | eval "$as_ac_var=yes" | |
5260 | else | |
5261 | echo "$as_me: failed program was:" >&5 | |
5262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5263 | ||
5264 | eval "$as_ac_var=no" | |
5265 | fi | |
5c7fc7c4 PC |
5266 | rm -f conftest.err conftest.$ac_objext \ |
5267 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5268 | fi |
5269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5270 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5271 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 5272 | |
ad6254c5 AK |
5273 | cat >>confdefs.h <<_ACEOF |
5274 | #define CRAY_STACKSEG_END $ac_func | |
5275 | _ACEOF | |
5276 | ||
5277 | break | |
5278 | fi | |
5279 | ||
5280 | done | |
5281 | fi | |
5282 | ||
5283 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5284 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
5285 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5287 | else | |
5288 | if test "$cross_compiling" = yes; then | |
5289 | ac_cv_c_stack_direction=0 | |
5290 | else | |
5291 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5292 | /* confdefs.h. */ |
5293 | _ACEOF | |
5294 | cat confdefs.h >>conftest.$ac_ext | |
5295 | cat >>conftest.$ac_ext <<_ACEOF | |
5296 | /* end confdefs.h. */ | |
5297 | int | |
5298 | find_stack_direction () | |
5299 | { | |
5300 | static char *addr = 0; | |
5301 | auto char dummy; | |
5302 | if (addr == 0) | |
5303 | { | |
5304 | addr = &dummy; | |
5305 | return find_stack_direction (); | |
5306 | } | |
5307 | else | |
5308 | return (&dummy > addr) ? 1 : -1; | |
5309 | } | |
5310 | ||
5311 | int | |
5312 | main () | |
5313 | { | |
5314 | exit (find_stack_direction () < 0); | |
5315 | } | |
5316 | _ACEOF | |
5317 | rm -f conftest$ac_exeext | |
5318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5319 | (eval $ac_link) 2>&5 | |
5320 | ac_status=$? | |
5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5324 | (eval $ac_try) 2>&5 | |
5325 | ac_status=$? | |
5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5327 | (exit $ac_status); }; }; then | |
5328 | ac_cv_c_stack_direction=1 | |
5329 | else | |
5330 | echo "$as_me: program exited with status $ac_status" >&5 | |
5331 | echo "$as_me: failed program was:" >&5 | |
5332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5333 | ||
5334 | ( exit $ac_status ) | |
5335 | ac_cv_c_stack_direction=-1 | |
5336 | fi | |
5c7fc7c4 | 5337 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5338 | fi |
5339 | fi | |
5340 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5341 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5342 | ||
5343 | cat >>confdefs.h <<_ACEOF | |
5344 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5345 | _ACEOF | |
5346 | ||
5347 | ||
5348 | fi | |
5349 | ||
5350 | echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
5351 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 | |
5352 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5354 | else | |
5355 | if test "$cross_compiling" = yes; then | |
5356 | ac_cv_func_closedir_void=yes | |
5357 | else | |
5358 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5359 | /* confdefs.h. */ |
5360 | _ACEOF | |
5361 | cat confdefs.h >>conftest.$ac_ext | |
5362 | cat >>conftest.$ac_ext <<_ACEOF | |
5363 | /* end confdefs.h. */ | |
5364 | $ac_includes_default | |
5365 | #include <$ac_header_dirent> | |
5366 | #ifndef __cplusplus | |
5367 | int closedir (); | |
5368 | #endif | |
5369 | ||
5370 | int | |
5371 | main () | |
5372 | { | |
5373 | exit (closedir (opendir (".")) != 0); | |
5374 | ; | |
5375 | return 0; | |
5376 | } | |
5377 | _ACEOF | |
5378 | rm -f conftest$ac_exeext | |
5379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5380 | (eval $ac_link) 2>&5 | |
5381 | ac_status=$? | |
5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5385 | (eval $ac_try) 2>&5 | |
5386 | ac_status=$? | |
5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5388 | (exit $ac_status); }; }; then | |
5389 | ac_cv_func_closedir_void=no | |
5390 | else | |
5391 | echo "$as_me: program exited with status $ac_status" >&5 | |
5392 | echo "$as_me: failed program was:" >&5 | |
5393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5394 | ||
5395 | ( exit $ac_status ) | |
5396 | ac_cv_func_closedir_void=yes | |
5397 | fi | |
5c7fc7c4 | 5398 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5399 | fi |
5400 | fi | |
5401 | echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
5402 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 | |
5403 | if test $ac_cv_func_closedir_void = yes; then | |
5404 | ||
5405 | cat >>confdefs.h <<\_ACEOF | |
5406 | #define CLOSEDIR_VOID 1 | |
5407 | _ACEOF | |
5408 | ||
5409 | fi | |
5410 | ||
5411 | ||
5412 | ||
5413 | for ac_header in unistd.h vfork.h | |
5414 | do | |
5415 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5421 | fi | |
5422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5423 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5424 | else | |
5425 | # Is the header compilable? | |
5426 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5427 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5428 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5429 | /* confdefs.h. */ |
5430 | _ACEOF | |
5431 | cat confdefs.h >>conftest.$ac_ext | |
5432 | cat >>conftest.$ac_ext <<_ACEOF | |
5433 | /* end confdefs.h. */ | |
5434 | $ac_includes_default | |
5435 | #include <$ac_header> | |
5436 | _ACEOF | |
5437 | rm -f conftest.$ac_objext | |
5438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 5439 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 5440 | ac_status=$? |
5c7fc7c4 PC |
5441 | grep -v '^ *+' conftest.er1 >conftest.err |
5442 | rm -f conftest.er1 | |
5443 | cat conftest.err >&5 | |
ad6254c5 AK |
5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5445 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5446 | { ac_try='test -z "$ac_c_werror_flag" |
5447 | || test ! -s conftest.err' | |
5448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5449 | (eval $ac_try) 2>&5 | |
5450 | ac_status=$? | |
5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5452 | (exit $ac_status); }; } && | |
5453 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
5454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5455 | (eval $ac_try) 2>&5 | |
5456 | ac_status=$? | |
5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5458 | (exit $ac_status); }; }; then | |
5459 | ac_header_compiler=yes | |
5460 | else | |
5461 | echo "$as_me: failed program was:" >&5 | |
5462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5463 | ||
5464 | ac_header_compiler=no | |
5465 | fi | |
5c7fc7c4 | 5466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5467 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5468 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5469 | ||
5470 | # Is the header present? | |
5471 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5472 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5473 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5474 | /* confdefs.h. */ |
5475 | _ACEOF | |
5476 | cat confdefs.h >>conftest.$ac_ext | |
5477 | cat >>conftest.$ac_ext <<_ACEOF | |
5478 | /* end confdefs.h. */ | |
5479 | #include <$ac_header> | |
5480 | _ACEOF | |
5481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5483 | ac_status=$? | |
5484 | grep -v '^ *+' conftest.er1 >conftest.err | |
5485 | rm -f conftest.er1 | |
5486 | cat conftest.err >&5 | |
5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5488 | (exit $ac_status); } >/dev/null; then | |
5489 | if test -s conftest.err; then | |
5490 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 5491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
5492 | else |
5493 | ac_cpp_err= | |
795ca3e5 | 5494 | fi |
ad6254c5 AK |
5495 | else |
5496 | ac_cpp_err=yes | |
5497 | fi | |
5498 | if test -z "$ac_cpp_err"; then | |
5499 | ac_header_preproc=yes | |
5500 | else | |
5501 | echo "$as_me: failed program was:" >&5 | |
5502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5503 | ||
5504 | ac_header_preproc=no | |
5505 | fi | |
5506 | rm -f conftest.err conftest.$ac_ext | |
5507 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5508 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5509 | ||
5510 | # So? What about this header? | |
5c7fc7c4 PC |
5511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5512 | yes:no: ) | |
ad6254c5 AK |
5513 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5514 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
5515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5516 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5517 | ac_header_preproc=yes | |
ad6254c5 | 5518 | ;; |
5c7fc7c4 | 5519 | no:yes:* ) |
ad6254c5 AK |
5520 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5521 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
5522 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5523 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5524 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5525 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5526 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5527 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
5528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5529 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
5530 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5531 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
5532 | ( |
5533 | cat <<\_ASBOX | |
5c7fc7c4 PC |
5534 | ## ------------------------------------------ ## |
5535 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5536 | ## ------------------------------------------ ## | |
ad6254c5 AK |
5537 | _ASBOX |
5538 | ) | | |
5539 | sed "s/^/$as_me: WARNING: /" >&2 | |
5540 | ;; | |
5541 | esac | |
5542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5546 | else | |
5c7fc7c4 | 5547 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
5548 | fi |
5549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5551 | ||
795ca3e5 | 5552 | fi |
ad6254c5 AK |
5553 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5554 | cat >>confdefs.h <<_ACEOF | |
5555 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5556 | _ACEOF | |
5557 | ||
5558 | fi | |
5559 | ||
5560 | done | |
795ca3e5 | 5561 | |
ad6254c5 AK |
5562 | |
5563 | ||
5564 | for ac_func in fork vfork | |
5565 | do | |
5566 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5567 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5568 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5569 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 5571 | else |
ad6254c5 | 5572 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5573 | /* confdefs.h. */ |
5574 | _ACEOF | |
5575 | cat confdefs.h >>conftest.$ac_ext | |
5576 | cat >>conftest.$ac_ext <<_ACEOF | |
5577 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
5578 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5579 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5580 | #define $ac_func innocuous_$ac_func | |
5581 | ||
ad6254c5 AK |
5582 | /* System header to define __stub macros and hopefully few prototypes, |
5583 | which can conflict with char $ac_func (); below. | |
5584 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5585 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 5586 | |
ad6254c5 AK |
5587 | #ifdef __STDC__ |
5588 | # include <limits.h> | |
5589 | #else | |
5590 | # include <assert.h> | |
795ca3e5 | 5591 | #endif |
5c7fc7c4 PC |
5592 | |
5593 | #undef $ac_func | |
5594 | ||
ad6254c5 | 5595 | /* Override any gcc2 internal prototype to avoid an error. */ |
795ca3e5 | 5596 | #ifdef __cplusplus |
ad6254c5 AK |
5597 | extern "C" |
5598 | { | |
5599 | #endif | |
5600 | /* We use char because int might match the return type of a gcc2 | |
5601 | builtin and then its argument prototype would still apply. */ | |
5602 | char $ac_func (); | |
5603 | /* The GNU C library defines this for functions which it implements | |
5604 | to always fail with ENOSYS. Some functions are actually named | |
5605 | something starting with __ and the normal name is an alias. */ | |
5606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5607 | choke me | |
795ca3e5 | 5608 | #else |
ad6254c5 AK |
5609 | char (*f) () = $ac_func; |
5610 | #endif | |
5611 | #ifdef __cplusplus | |
5612 | } | |
795ca3e5 AK |
5613 | #endif |
5614 | ||
ad6254c5 AK |
5615 | int |
5616 | main () | |
5617 | { | |
5618 | return f != $ac_func; | |
5619 | ; | |
5620 | return 0; | |
5621 | } | |
5622 | _ACEOF | |
5623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 5625 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 5626 | ac_status=$? |
5c7fc7c4 PC |
5627 | grep -v '^ *+' conftest.er1 >conftest.err |
5628 | rm -f conftest.er1 | |
5629 | cat conftest.err >&5 | |
ad6254c5 AK |
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5631 | (exit $ac_status); } && | |
5c7fc7c4 PC |
5632 | { ac_try='test -z "$ac_c_werror_flag" |
5633 | || test ! -s conftest.err' | |
5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5635 | (eval $ac_try) 2>&5 | |
5636 | ac_status=$? | |
5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5638 | (exit $ac_status); }; } && | |
5639 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5641 | (eval $ac_try) 2>&5 | |
5642 | ac_status=$? | |
5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5644 | (exit $ac_status); }; }; then | |
5645 | eval "$as_ac_var=yes" | |
795ca3e5 | 5646 | else |
ad6254c5 AK |
5647 | echo "$as_me: failed program was:" >&5 |
5648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5649 | ||
5650 | eval "$as_ac_var=no" | |
795ca3e5 | 5651 | fi |
5c7fc7c4 PC |
5652 | rm -f conftest.err conftest.$ac_objext \ |
5653 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
5654 | fi |
5655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5656 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5657 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5658 | cat >>confdefs.h <<_ACEOF | |
5659 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5660 | _ACEOF | |
5661 | ||
5662 | fi | |
5663 | done | |
5664 | ||
5665 | if test "x$ac_cv_func_fork" = xyes; then | |
5666 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
5667 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
5668 | if test "${ac_cv_func_fork_works+set}" = set; then | |
5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5670 | else | |
5671 | if test "$cross_compiling" = yes; then | |
5672 | ac_cv_func_fork_works=cross | |
5673 | else | |
5674 | cat >conftest.$ac_ext <<_ACEOF | |
5675 | /* By Ruediger Kuhlmann. */ | |
5676 | #include <sys/types.h> | |
5677 | #if HAVE_UNISTD_H | |
5678 | # include <unistd.h> | |
5679 | #endif | |
5680 | /* Some systems only have a dummy stub for fork() */ | |
5681 | int main () | |
5682 | { | |
5c7fc7c4 PC |
5683 | if (fork() < 0) |
5684 | exit (1); | |
5685 | exit (0); | |
ad6254c5 AK |
5686 | } |
5687 | _ACEOF | |
5688 | rm -f conftest$ac_exeext | |
5689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5690 | (eval $ac_link) 2>&5 | |
5691 | ac_status=$? | |
5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5695 | (eval $ac_try) 2>&5 | |
5696 | ac_status=$? | |
5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5698 | (exit $ac_status); }; }; then | |
5699 | ac_cv_func_fork_works=yes | |
5700 | else | |
5701 | echo "$as_me: program exited with status $ac_status" >&5 | |
5702 | echo "$as_me: failed program was:" >&5 | |
5703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5704 | ||
5705 | ( exit $ac_status ) | |
5706 | ac_cv_func_fork_works=no | |
5707 | fi | |
5c7fc7c4 | 5708 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5709 | fi |
5710 | fi | |
5711 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
5712 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
5713 | ||
5714 | else | |
5715 | ac_cv_func_fork_works=$ac_cv_func_fork | |
5716 | fi | |
5717 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5718 | case $host in | |
5719 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5720 | # Override, as these systems have only a dummy fork() stub | |
5721 | ac_cv_func_fork_works=no | |
5722 | ;; | |
5723 | *) | |
5724 | ac_cv_func_fork_works=yes | |
5725 | ;; | |
5726 | esac | |
5727 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5728 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
5729 | fi | |
5730 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5731 | if test "x$ac_cv_func_vfork" = xyes; then | |
5732 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
5733 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
5734 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5736 | else | |
5737 | if test "$cross_compiling" = yes; then | |
5738 | ac_cv_func_vfork_works=cross | |
5739 | else | |
5740 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5741 | /* confdefs.h. */ |
5742 | _ACEOF | |
5743 | cat confdefs.h >>conftest.$ac_ext | |
5744 | cat >>conftest.$ac_ext <<_ACEOF | |
5745 | /* end confdefs.h. */ | |
5746 | /* Thanks to Paul Eggert for this test. */ | |
5747 | #include <stdio.h> | |
5748 | #include <stdlib.h> | |
5749 | #include <sys/types.h> | |
5750 | #include <sys/stat.h> | |
5751 | #include <sys/wait.h> | |
5752 | #if HAVE_UNISTD_H | |
5753 | # include <unistd.h> | |
5754 | #endif | |
5755 | #if HAVE_VFORK_H | |
5756 | # include <vfork.h> | |
5757 | #endif | |
5758 | /* On some sparc systems, changes by the child to local and incoming | |
5759 | argument registers are propagated back to the parent. The compiler | |
5760 | is told about this with #include <vfork.h>, but some compilers | |
5761 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5762 | static variable whose address is put into a register that is | |
5763 | clobbered by the vfork. */ | |
5764 | static void | |
5765 | #ifdef __cplusplus | |
5766 | sparc_address_test (int arg) | |
5767 | # else | |
5768 | sparc_address_test (arg) int arg; | |
5769 | #endif | |
5770 | { | |
5771 | static pid_t child; | |
5772 | if (!child) { | |
5773 | child = vfork (); | |
5774 | if (child < 0) { | |
5775 | perror ("vfork"); | |
5776 | _exit(2); | |
5777 | } | |
5778 | if (!child) { | |
5779 | arg = getpid(); | |
5780 | write(-1, "", 0); | |
5781 | _exit (arg); | |
5782 | } | |
5783 | } | |
5784 | } | |
5785 | ||
5786 | int | |
5787 | main () | |
5788 | { | |
5789 | pid_t parent = getpid (); | |
5790 | pid_t child; | |
5791 | ||
5792 | sparc_address_test (0); | |
5793 | ||
5794 | child = vfork (); | |
5795 | ||
5796 | if (child == 0) { | |
5797 | /* Here is another test for sparc vfork register problems. This | |
5798 | test uses lots of local variables, at least as many local | |
5799 | variables as main has allocated so far including compiler | |
5800 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5801 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5802 | reuse the register of parent for one of the local variables, | |
5803 | since it will think that parent can't possibly be used any more | |
5804 | in this routine. Assigning to the local variable will thus | |
5805 | munge parent in the parent process. */ | |
5806 | pid_t | |
5807 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5808 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5809 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5810 | use the same hardware register for all 8 local variables. */ | |
5811 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5812 | || p != p5 || p != p6 || p != p7) | |
5813 | _exit(1); | |
5814 | ||
5815 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
5816 | from child file descriptors. If the child closes a descriptor | |
5817 | before it execs or exits, this munges the parent's descriptor | |
5818 | as well. Test for this by closing stdout in the child. */ | |
5819 | _exit(close(fileno(stdout)) != 0); | |
5820 | } else { | |
5821 | int status; | |
5822 | struct stat st; | |
5823 | ||
5824 | while (wait(&status) != child) | |
5825 | ; | |
5826 | exit( | |
5827 | /* Was there some problem with vforking? */ | |
5828 | child < 0 | |
5829 | ||
5830 | /* Did the child fail? (This shouldn't happen.) */ | |
5831 | || status | |
5832 | ||
5833 | /* Did the vfork/compiler bug occur? */ | |
5834 | || parent != getpid() | |
5835 | ||
5836 | /* Did the file descriptor bug occur? */ | |
5837 | || fstat(fileno(stdout), &st) != 0 | |
5838 | ); | |
5839 | } | |
5840 | } | |
5841 | _ACEOF | |
5842 | rm -f conftest$ac_exeext | |
5843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5844 | (eval $ac_link) 2>&5 | |
5845 | ac_status=$? | |
5846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5849 | (eval $ac_try) 2>&5 | |
5850 | ac_status=$? | |
5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5852 | (exit $ac_status); }; }; then | |
5853 | ac_cv_func_vfork_works=yes | |
5854 | else | |
5855 | echo "$as_me: program exited with status $ac_status" >&5 | |
5856 | echo "$as_me: failed program was:" >&5 | |
5857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5858 | ||
5859 | ( exit $ac_status ) | |
5860 | ac_cv_func_vfork_works=no | |
5861 | fi | |
5c7fc7c4 | 5862 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5863 | fi |
5864 | fi | |
5865 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
5866 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5867 | ||
5868 | fi; | |
5869 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5c7fc7c4 | 5870 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ad6254c5 AK |
5871 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
5872 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5873 | fi | |
5874 | ||
5875 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
5876 | ||
5877 | cat >>confdefs.h <<\_ACEOF | |
5878 | #define HAVE_WORKING_VFORK 1 | |
5879 | _ACEOF | |
5880 | ||
5881 | else | |
5882 | ||
5883 | cat >>confdefs.h <<\_ACEOF | |
5884 | #define vfork fork | |
5885 | _ACEOF | |
5886 | ||
5887 | fi | |
5888 | if test "x$ac_cv_func_fork_works" = xyes; then | |
5889 | ||
5890 | cat >>confdefs.h <<\_ACEOF | |
5891 | #define HAVE_WORKING_FORK 1 | |
5892 | _ACEOF | |
5893 | ||
5894 | fi | |
5895 | ||
5896 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 | |
5897 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 | |
5898 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then | |
5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5900 | else | |
5901 | rm -f conftest.sym conftest.file | |
5902 | echo >conftest.file | |
5903 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5904 | if test "$cross_compiling" = yes; then | |
5905 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5906 | else | |
5907 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5908 | /* confdefs.h. */ |
5909 | _ACEOF | |
5910 | cat confdefs.h >>conftest.$ac_ext | |
5911 | cat >>conftest.$ac_ext <<_ACEOF | |
5912 | /* end confdefs.h. */ | |
5913 | $ac_includes_default | |
5914 | int | |
5915 | main () | |
5916 | { | |
5917 | struct stat sbuf; | |
5918 | /* Linux will dereference the symlink and fail. | |
5c7fc7c4 PC |
5919 | That is better in the sense that it means we will not |
5920 | have to compile and use the lstat wrapper. */ | |
ad6254c5 AK |
5921 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
5922 | ; | |
5923 | return 0; | |
5924 | } | |
5925 | _ACEOF | |
5926 | rm -f conftest$ac_exeext | |
5927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5928 | (eval $ac_link) 2>&5 | |
5929 | ac_status=$? | |
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5933 | (eval $ac_try) 2>&5 | |
5934 | ac_status=$? | |
5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5936 | (exit $ac_status); }; }; then | |
5937 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
5938 | else | |
5939 | echo "$as_me: program exited with status $ac_status" >&5 | |
5940 | echo "$as_me: failed program was:" >&5 | |
5941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5942 | ||
5943 | ( exit $ac_status ) | |
5944 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5945 | fi | |
5c7fc7c4 | 5946 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
5947 | fi |
5948 | else | |
5949 | # If the `ln -s' command failed, then we probably don't even | |
5950 | # have an lstat function. | |
5951 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5952 | fi | |
5953 | rm -f conftest.sym conftest.file | |
5954 | ||
5955 | fi | |
5956 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5957 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 | |
5958 | ||
5959 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
5960 | ||
5961 | cat >>confdefs.h <<_ACEOF | |
5962 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5963 | _ACEOF | |
5964 | ||
5965 | ||
5966 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
5c7fc7c4 PC |
5967 | case $LIBOBJS in |
5968 | "lstat.$ac_objext" | \ | |
5969 | *" lstat.$ac_objext" | \ | |
5970 | "lstat.$ac_objext "* | \ | |
5971 | *" lstat.$ac_objext "* ) ;; | |
5972 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
5973 | esac | |
5974 | ||
ad6254c5 AK |
5975 | fi |
5976 | ||
5977 | echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 | |
5978 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6 | |
5979 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then | |
5980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5981 | else | |
5982 | if test "$cross_compiling" = yes; then | |
5983 | ac_cv_func_lstat_empty_string_bug=yes | |
5984 | else | |
5985 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5986 | /* confdefs.h. */ |
5987 | _ACEOF | |
5988 | cat confdefs.h >>conftest.$ac_ext | |
5989 | cat >>conftest.$ac_ext <<_ACEOF | |
5990 | /* end confdefs.h. */ | |
5991 | $ac_includes_default | |
5992 | int | |
5993 | main () | |
5994 | { | |
5995 | struct stat sbuf; | |
5996 | exit (lstat ("", &sbuf) ? 1 : 0); | |
5997 | ; | |
5998 | return 0; | |
5999 | } | |
6000 | _ACEOF | |
6001 | rm -f conftest$ac_exeext | |
6002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6003 | (eval $ac_link) 2>&5 | |
6004 | ac_status=$? | |
6005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6008 | (eval $ac_try) 2>&5 | |
6009 | ac_status=$? | |
6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6011 | (exit $ac_status); }; }; then | |
6012 | ac_cv_func_lstat_empty_string_bug=yes | |
6013 | else | |
6014 | echo "$as_me: program exited with status $ac_status" >&5 | |
6015 | echo "$as_me: failed program was:" >&5 | |
6016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6017 | ||
6018 | ( exit $ac_status ) | |
6019 | ac_cv_func_lstat_empty_string_bug=no | |
6020 | fi | |
5c7fc7c4 | 6021 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6022 | fi |
6023 | fi | |
6024 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6025 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6 | |
6026 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
5c7fc7c4 PC |
6027 | case $LIBOBJS in |
6028 | "lstat.$ac_objext" | \ | |
6029 | *" lstat.$ac_objext" | \ | |
6030 | "lstat.$ac_objext "* | \ | |
6031 | *" lstat.$ac_objext "* ) ;; | |
6032 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; | |
6033 | esac | |
6034 | ||
ad6254c5 AK |
6035 | |
6036 | cat >>confdefs.h <<_ACEOF | |
6037 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6038 | _ACEOF | |
6039 | ||
6040 | fi | |
6041 | ||
6042 | ||
6043 | for ac_header in stdlib.h | |
6044 | do | |
6045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6051 | fi | |
6052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6054 | else | |
6055 | # Is the header compilable? | |
6056 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6057 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6058 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6059 | /* confdefs.h. */ |
6060 | _ACEOF | |
6061 | cat confdefs.h >>conftest.$ac_ext | |
6062 | cat >>conftest.$ac_ext <<_ACEOF | |
6063 | /* end confdefs.h. */ | |
6064 | $ac_includes_default | |
6065 | #include <$ac_header> | |
6066 | _ACEOF | |
6067 | rm -f conftest.$ac_objext | |
6068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 6069 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6070 | ac_status=$? |
5c7fc7c4 PC |
6071 | grep -v '^ *+' conftest.er1 >conftest.err |
6072 | rm -f conftest.er1 | |
6073 | cat conftest.err >&5 | |
ad6254c5 AK |
6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6075 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6076 | { ac_try='test -z "$ac_c_werror_flag" |
6077 | || test ! -s conftest.err' | |
6078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6079 | (eval $ac_try) 2>&5 | |
6080 | ac_status=$? | |
6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6082 | (exit $ac_status); }; } && | |
6083 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6085 | (eval $ac_try) 2>&5 | |
6086 | ac_status=$? | |
6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6088 | (exit $ac_status); }; }; then | |
6089 | ac_header_compiler=yes | |
6090 | else | |
6091 | echo "$as_me: failed program was:" >&5 | |
6092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6093 | ||
6094 | ac_header_compiler=no | |
6095 | fi | |
5c7fc7c4 | 6096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6097 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6098 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6099 | ||
6100 | # Is the header present? | |
6101 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6102 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6103 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6104 | /* confdefs.h. */ |
6105 | _ACEOF | |
6106 | cat confdefs.h >>conftest.$ac_ext | |
6107 | cat >>conftest.$ac_ext <<_ACEOF | |
6108 | /* end confdefs.h. */ | |
6109 | #include <$ac_header> | |
6110 | _ACEOF | |
6111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6113 | ac_status=$? | |
6114 | grep -v '^ *+' conftest.er1 >conftest.err | |
6115 | rm -f conftest.er1 | |
6116 | cat conftest.err >&5 | |
6117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6118 | (exit $ac_status); } >/dev/null; then | |
6119 | if test -s conftest.err; then | |
6120 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 6121 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6122 | else |
6123 | ac_cpp_err= | |
6124 | fi | |
6125 | else | |
6126 | ac_cpp_err=yes | |
6127 | fi | |
6128 | if test -z "$ac_cpp_err"; then | |
6129 | ac_header_preproc=yes | |
6130 | else | |
6131 | echo "$as_me: failed program was:" >&5 | |
6132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6133 | ||
6134 | ac_header_preproc=no | |
6135 | fi | |
6136 | rm -f conftest.err conftest.$ac_ext | |
6137 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6138 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6139 | ||
6140 | # So? What about this header? | |
5c7fc7c4 PC |
6141 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6142 | yes:no: ) | |
ad6254c5 AK |
6143 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6144 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
6145 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6146 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6147 | ac_header_preproc=yes | |
ad6254c5 | 6148 | ;; |
5c7fc7c4 | 6149 | no:yes:* ) |
ad6254c5 AK |
6150 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6151 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
6152 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6153 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6154 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6155 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6156 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6157 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6158 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6159 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
6160 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6161 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6162 | ( |
6163 | cat <<\_ASBOX | |
5c7fc7c4 PC |
6164 | ## ------------------------------------------ ## |
6165 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6166 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6167 | _ASBOX |
6168 | ) | | |
6169 | sed "s/^/$as_me: WARNING: /" >&2 | |
6170 | ;; | |
6171 | esac | |
6172 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6176 | else | |
5c7fc7c4 | 6177 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6178 | fi |
6179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6180 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6181 | ||
6182 | fi | |
6183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6184 | cat >>confdefs.h <<_ACEOF | |
6185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6186 | _ACEOF | |
6187 | ||
6188 | fi | |
6189 | ||
6190 | done | |
6191 | ||
6192 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | |
6193 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 | |
6194 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | |
6195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6196 | else | |
6197 | if test "$cross_compiling" = yes; then | |
6198 | ac_cv_func_malloc_0_nonnull=no | |
6199 | else | |
6200 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6201 | /* confdefs.h. */ |
6202 | _ACEOF | |
6203 | cat confdefs.h >>conftest.$ac_ext | |
6204 | cat >>conftest.$ac_ext <<_ACEOF | |
6205 | /* end confdefs.h. */ | |
6206 | #if STDC_HEADERS || HAVE_STDLIB_H | |
6207 | # include <stdlib.h> | |
6208 | #else | |
6209 | char *malloc (); | |
6210 | #endif | |
6211 | ||
6212 | int | |
6213 | main () | |
6214 | { | |
6215 | exit (malloc (0) ? 0 : 1); | |
6216 | ; | |
6217 | return 0; | |
6218 | } | |
6219 | _ACEOF | |
6220 | rm -f conftest$ac_exeext | |
6221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6222 | (eval $ac_link) 2>&5 | |
6223 | ac_status=$? | |
6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6227 | (eval $ac_try) 2>&5 | |
6228 | ac_status=$? | |
6229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6230 | (exit $ac_status); }; }; then | |
6231 | ac_cv_func_malloc_0_nonnull=yes | |
6232 | else | |
6233 | echo "$as_me: program exited with status $ac_status" >&5 | |
6234 | echo "$as_me: failed program was:" >&5 | |
6235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6236 | ||
6237 | ( exit $ac_status ) | |
6238 | ac_cv_func_malloc_0_nonnull=no | |
6239 | fi | |
5c7fc7c4 | 6240 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6241 | fi |
6242 | fi | |
6243 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
6244 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 | |
6245 | if test $ac_cv_func_malloc_0_nonnull = yes; then | |
6246 | ||
6247 | cat >>confdefs.h <<\_ACEOF | |
6248 | #define HAVE_MALLOC 1 | |
6249 | _ACEOF | |
6250 | ||
6251 | else | |
6252 | cat >>confdefs.h <<\_ACEOF | |
6253 | #define HAVE_MALLOC 0 | |
6254 | _ACEOF | |
6255 | ||
5c7fc7c4 PC |
6256 | case $LIBOBJS in |
6257 | "malloc.$ac_objext" | \ | |
6258 | *" malloc.$ac_objext" | \ | |
6259 | "malloc.$ac_objext "* | \ | |
6260 | *" malloc.$ac_objext "* ) ;; | |
6261 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; | |
6262 | esac | |
6263 | ||
ad6254c5 AK |
6264 | |
6265 | cat >>confdefs.h <<\_ACEOF | |
6266 | #define malloc rpl_malloc | |
6267 | _ACEOF | |
6268 | ||
6269 | fi | |
6270 | ||
6271 | ||
6272 | ||
6273 | echo "$as_me:$LINENO: checking for working memcmp" >&5 | |
6274 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 | |
6275 | if test "${ac_cv_func_memcmp_working+set}" = set; then | |
6276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6277 | else | |
6278 | if test "$cross_compiling" = yes; then | |
6279 | ac_cv_func_memcmp_working=no | |
6280 | else | |
6281 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6282 | /* confdefs.h. */ |
6283 | _ACEOF | |
6284 | cat confdefs.h >>conftest.$ac_ext | |
6285 | cat >>conftest.$ac_ext <<_ACEOF | |
6286 | /* end confdefs.h. */ | |
5c7fc7c4 | 6287 | $ac_includes_default |
ad6254c5 AK |
6288 | int |
6289 | main () | |
6290 | { | |
6291 | ||
6292 | /* Some versions of memcmp are not 8-bit clean. */ | |
6293 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; | |
6294 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6295 | exit (1); | |
6296 | ||
6297 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
6298 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6299 | William Lewis provided this test program. */ | |
6300 | { | |
6301 | char foo[21]; | |
6302 | char bar[21]; | |
6303 | int i; | |
6304 | for (i = 0; i < 4; i++) | |
6305 | { | |
5c7fc7c4 PC |
6306 | char *a = foo + i; |
6307 | char *b = bar + i; | |
6308 | strcpy (a, "--------01111111"); | |
6309 | strcpy (b, "--------10000000"); | |
6310 | if (memcmp (a, b, 16) >= 0) | |
6311 | exit (1); | |
ad6254c5 AK |
6312 | } |
6313 | exit (0); | |
6314 | } | |
6315 | ||
6316 | ; | |
6317 | return 0; | |
6318 | } | |
6319 | _ACEOF | |
6320 | rm -f conftest$ac_exeext | |
6321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6322 | (eval $ac_link) 2>&5 | |
6323 | ac_status=$? | |
6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6325 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6327 | (eval $ac_try) 2>&5 | |
6328 | ac_status=$? | |
6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6330 | (exit $ac_status); }; }; then | |
6331 | ac_cv_func_memcmp_working=yes | |
6332 | else | |
6333 | echo "$as_me: program exited with status $ac_status" >&5 | |
6334 | echo "$as_me: failed program was:" >&5 | |
6335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6336 | ||
6337 | ( exit $ac_status ) | |
6338 | ac_cv_func_memcmp_working=no | |
6339 | fi | |
5c7fc7c4 | 6340 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6341 | fi |
6342 | fi | |
6343 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 | |
6344 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 | |
5c7fc7c4 PC |
6345 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
6346 | "memcmp.$ac_objext" | \ | |
6347 | *" memcmp.$ac_objext" | \ | |
6348 | "memcmp.$ac_objext "* | \ | |
6349 | *" memcmp.$ac_objext "* ) ;; | |
6350 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; | |
6351 | esac | |
6352 | ||
ad6254c5 AK |
6353 | |
6354 | ||
6355 | ||
6356 | for ac_header in stdlib.h unistd.h | |
6357 | do | |
6358 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6360 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6364 | fi | |
6365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6366 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6367 | else | |
6368 | # Is the header compilable? | |
6369 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6370 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6371 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6372 | /* confdefs.h. */ |
6373 | _ACEOF | |
6374 | cat confdefs.h >>conftest.$ac_ext | |
6375 | cat >>conftest.$ac_ext <<_ACEOF | |
6376 | /* end confdefs.h. */ | |
6377 | $ac_includes_default | |
6378 | #include <$ac_header> | |
6379 | _ACEOF | |
6380 | rm -f conftest.$ac_objext | |
6381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 6382 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 6383 | ac_status=$? |
5c7fc7c4 PC |
6384 | grep -v '^ *+' conftest.er1 >conftest.err |
6385 | rm -f conftest.er1 | |
6386 | cat conftest.err >&5 | |
ad6254c5 AK |
6387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6388 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6389 | { ac_try='test -z "$ac_c_werror_flag" |
6390 | || test ! -s conftest.err' | |
6391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6392 | (eval $ac_try) 2>&5 | |
6393 | ac_status=$? | |
6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6395 | (exit $ac_status); }; } && | |
6396 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
6397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6398 | (eval $ac_try) 2>&5 | |
6399 | ac_status=$? | |
6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6401 | (exit $ac_status); }; }; then | |
6402 | ac_header_compiler=yes | |
6403 | else | |
6404 | echo "$as_me: failed program was:" >&5 | |
6405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6406 | ||
6407 | ac_header_compiler=no | |
6408 | fi | |
5c7fc7c4 | 6409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6410 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6411 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6412 | ||
6413 | # Is the header present? | |
6414 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6415 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6416 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6417 | /* confdefs.h. */ |
6418 | _ACEOF | |
6419 | cat confdefs.h >>conftest.$ac_ext | |
6420 | cat >>conftest.$ac_ext <<_ACEOF | |
6421 | /* end confdefs.h. */ | |
6422 | #include <$ac_header> | |
6423 | _ACEOF | |
6424 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6425 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6426 | ac_status=$? | |
6427 | grep -v '^ *+' conftest.er1 >conftest.err | |
6428 | rm -f conftest.er1 | |
6429 | cat conftest.err >&5 | |
6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6431 | (exit $ac_status); } >/dev/null; then | |
6432 | if test -s conftest.err; then | |
6433 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 6434 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
6435 | else |
6436 | ac_cpp_err= | |
6437 | fi | |
6438 | else | |
6439 | ac_cpp_err=yes | |
6440 | fi | |
6441 | if test -z "$ac_cpp_err"; then | |
6442 | ac_header_preproc=yes | |
6443 | else | |
6444 | echo "$as_me: failed program was:" >&5 | |
6445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6446 | ||
6447 | ac_header_preproc=no | |
6448 | fi | |
6449 | rm -f conftest.err conftest.$ac_ext | |
6450 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6451 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6452 | ||
6453 | # So? What about this header? | |
5c7fc7c4 PC |
6454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6455 | yes:no: ) | |
ad6254c5 AK |
6456 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6457 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
6458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6459 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6460 | ac_header_preproc=yes | |
ad6254c5 | 6461 | ;; |
5c7fc7c4 | 6462 | no:yes:* ) |
ad6254c5 AK |
6463 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6464 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
6465 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6466 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6467 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6468 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6469 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6470 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
6471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
6473 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6474 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
6475 | ( |
6476 | cat <<\_ASBOX | |
5c7fc7c4 PC |
6477 | ## ------------------------------------------ ## |
6478 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6479 | ## ------------------------------------------ ## | |
ad6254c5 AK |
6480 | _ASBOX |
6481 | ) | | |
6482 | sed "s/^/$as_me: WARNING: /" >&2 | |
6483 | ;; | |
6484 | esac | |
6485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6489 | else | |
5c7fc7c4 | 6490 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
6491 | fi |
6492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6494 | ||
6495 | fi | |
6496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6497 | cat >>confdefs.h <<_ACEOF | |
6498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6499 | _ACEOF | |
6500 | ||
6501 | fi | |
6502 | ||
6503 | done | |
6504 | ||
6505 | ||
6506 | for ac_func in getpagesize | |
6507 | do | |
6508 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6509 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6510 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6511 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6513 | else | |
6514 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6515 | /* confdefs.h. */ |
6516 | _ACEOF | |
6517 | cat confdefs.h >>conftest.$ac_ext | |
6518 | cat >>conftest.$ac_ext <<_ACEOF | |
6519 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
6520 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6521 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6522 | #define $ac_func innocuous_$ac_func | |
6523 | ||
ad6254c5 AK |
6524 | /* System header to define __stub macros and hopefully few prototypes, |
6525 | which can conflict with char $ac_func (); below. | |
6526 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6527 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 6528 | |
ad6254c5 AK |
6529 | #ifdef __STDC__ |
6530 | # include <limits.h> | |
6531 | #else | |
6532 | # include <assert.h> | |
6533 | #endif | |
5c7fc7c4 PC |
6534 | |
6535 | #undef $ac_func | |
6536 | ||
ad6254c5 AK |
6537 | /* Override any gcc2 internal prototype to avoid an error. */ |
6538 | #ifdef __cplusplus | |
6539 | extern "C" | |
6540 | { | |
6541 | #endif | |
6542 | /* We use char because int might match the return type of a gcc2 | |
6543 | builtin and then its argument prototype would still apply. */ | |
6544 | char $ac_func (); | |
6545 | /* The GNU C library defines this for functions which it implements | |
6546 | to always fail with ENOSYS. Some functions are actually named | |
6547 | something starting with __ and the normal name is an alias. */ | |
6548 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6549 | choke me | |
6550 | #else | |
6551 | char (*f) () = $ac_func; | |
6552 | #endif | |
6553 | #ifdef __cplusplus | |
6554 | } | |
6555 | #endif | |
6556 | ||
6557 | int | |
6558 | main () | |
6559 | { | |
6560 | return f != $ac_func; | |
6561 | ; | |
6562 | return 0; | |
6563 | } | |
6564 | _ACEOF | |
6565 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 6567 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 6568 | ac_status=$? |
5c7fc7c4 PC |
6569 | grep -v '^ *+' conftest.er1 >conftest.err |
6570 | rm -f conftest.er1 | |
6571 | cat conftest.err >&5 | |
ad6254c5 AK |
6572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6573 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6574 | { ac_try='test -z "$ac_c_werror_flag" |
6575 | || test ! -s conftest.err' | |
6576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6577 | (eval $ac_try) 2>&5 | |
6578 | ac_status=$? | |
6579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6580 | (exit $ac_status); }; } && | |
6581 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
6582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6583 | (eval $ac_try) 2>&5 | |
6584 | ac_status=$? | |
6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6586 | (exit $ac_status); }; }; then | |
6587 | eval "$as_ac_var=yes" | |
6588 | else | |
6589 | echo "$as_me: failed program was:" >&5 | |
6590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6591 | ||
6592 | eval "$as_ac_var=no" | |
6593 | fi | |
5c7fc7c4 PC |
6594 | rm -f conftest.err conftest.$ac_objext \ |
6595 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
6596 | fi |
6597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6598 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6599 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6600 | cat >>confdefs.h <<_ACEOF | |
6601 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6602 | _ACEOF | |
6603 | ||
6604 | fi | |
6605 | done | |
6606 | ||
6607 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
6608 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6609 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6611 | else | |
6612 | if test "$cross_compiling" = yes; then | |
6613 | ac_cv_func_mmap_fixed_mapped=no | |
6614 | else | |
6615 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6616 | /* confdefs.h. */ |
6617 | _ACEOF | |
6618 | cat confdefs.h >>conftest.$ac_ext | |
6619 | cat >>conftest.$ac_ext <<_ACEOF | |
6620 | /* end confdefs.h. */ | |
6621 | $ac_includes_default | |
6622 | /* malloc might have been renamed as rpl_malloc. */ | |
6623 | #undef malloc | |
6624 | ||
6625 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6626 | Here is a matrix of mmap possibilities: | |
6627 | mmap private not fixed | |
6628 | mmap private fixed at somewhere currently unmapped | |
6629 | mmap private fixed at somewhere already mapped | |
6630 | mmap shared not fixed | |
6631 | mmap shared fixed at somewhere currently unmapped | |
6632 | mmap shared fixed at somewhere already mapped | |
6633 | For private mappings, we should verify that changes cannot be read() | |
6634 | back from the file, nor mmap's back from the file at a different | |
6635 | address. (There have been systems where private was not correctly | |
6636 | implemented like the infamous i386 svr4.0, and systems where the | |
6637 | VM page cache was not coherent with the file system buffer cache | |
6638 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6639 | For shared mappings, we should conversely verify that changes get | |
6640 | propagated back to all the places they're supposed to be. | |
6641 | ||
6642 | Grep wants private fixed already mapped. | |
6643 | The main things grep needs to know about mmap are: | |
6644 | * does it exist and is it safe to write into the mmap'd area | |
6645 | * how to use it (BSD variants) */ | |
6646 | ||
6647 | #include <fcntl.h> | |
6648 | #include <sys/mman.h> | |
6649 | ||
6650 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6651 | char *malloc (); | |
6652 | #endif | |
6653 | ||
6654 | /* This mess was copied from the GNU getpagesize.h. */ | |
6655 | #if !HAVE_GETPAGESIZE | |
6656 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6657 | # if !HAVE_SYS_PARAM_H | |
6658 | # define HAVE_SYS_PARAM_H 1 | |
6659 | # endif | |
6660 | ||
6661 | # ifdef _SC_PAGESIZE | |
6662 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6663 | # else /* no _SC_PAGESIZE */ | |
6664 | # if HAVE_SYS_PARAM_H | |
6665 | # include <sys/param.h> | |
6666 | # ifdef EXEC_PAGESIZE | |
6667 | # define getpagesize() EXEC_PAGESIZE | |
6668 | # else /* no EXEC_PAGESIZE */ | |
6669 | # ifdef NBPG | |
6670 | # define getpagesize() NBPG * CLSIZE | |
6671 | # ifndef CLSIZE | |
6672 | # define CLSIZE 1 | |
6673 | # endif /* no CLSIZE */ | |
6674 | # else /* no NBPG */ | |
6675 | # ifdef NBPC | |
6676 | # define getpagesize() NBPC | |
6677 | # else /* no NBPC */ | |
6678 | # ifdef PAGESIZE | |
6679 | # define getpagesize() PAGESIZE | |
6680 | # endif /* PAGESIZE */ | |
6681 | # endif /* no NBPC */ | |
6682 | # endif /* no NBPG */ | |
6683 | # endif /* no EXEC_PAGESIZE */ | |
6684 | # else /* no HAVE_SYS_PARAM_H */ | |
6685 | # define getpagesize() 8192 /* punt totally */ | |
6686 | # endif /* no HAVE_SYS_PARAM_H */ | |
6687 | # endif /* no _SC_PAGESIZE */ | |
6688 | ||
6689 | #endif /* no HAVE_GETPAGESIZE */ | |
6690 | ||
6691 | int | |
6692 | main () | |
6693 | { | |
6694 | char *data, *data2, *data3; | |
6695 | int i, pagesize; | |
6696 | int fd; | |
6697 | ||
6698 | pagesize = getpagesize (); | |
6699 | ||
6700 | /* First, make a file with some known garbage in it. */ | |
6701 | data = (char *) malloc (pagesize); | |
6702 | if (!data) | |
6703 | exit (1); | |
6704 | for (i = 0; i < pagesize; ++i) | |
6705 | *(data + i) = rand (); | |
6706 | umask (0); | |
6707 | fd = creat ("conftest.mmap", 0600); | |
6708 | if (fd < 0) | |
6709 | exit (1); | |
6710 | if (write (fd, data, pagesize) != pagesize) | |
6711 | exit (1); | |
6712 | close (fd); | |
6713 | ||
6714 | /* Next, try to mmap the file at a fixed address which already has | |
6715 | something else allocated at it. If we can, also make sure that | |
6716 | we see the same garbage. */ | |
6717 | fd = open ("conftest.mmap", O_RDWR); | |
6718 | if (fd < 0) | |
6719 | exit (1); | |
6720 | data2 = (char *) malloc (2 * pagesize); | |
6721 | if (!data2) | |
6722 | exit (1); | |
5c7fc7c4 | 6723 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
ad6254c5 | 6724 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
5c7fc7c4 | 6725 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ad6254c5 AK |
6726 | exit (1); |
6727 | for (i = 0; i < pagesize; ++i) | |
6728 | if (*(data + i) != *(data2 + i)) | |
6729 | exit (1); | |
6730 | ||
6731 | /* Finally, make sure that changes to the mapped area do not | |
6732 | percolate back to the file as seen by read(). (This is a bug on | |
6733 | some variants of i386 svr4.0.) */ | |
6734 | for (i = 0; i < pagesize; ++i) | |
6735 | *(data2 + i) = *(data2 + i) + 1; | |
6736 | data3 = (char *) malloc (pagesize); | |
6737 | if (!data3) | |
6738 | exit (1); | |
6739 | if (read (fd, data3, pagesize) != pagesize) | |
6740 | exit (1); | |
6741 | for (i = 0; i < pagesize; ++i) | |
6742 | if (*(data + i) != *(data3 + i)) | |
6743 | exit (1); | |
6744 | close (fd); | |
6745 | exit (0); | |
6746 | } | |
6747 | _ACEOF | |
6748 | rm -f conftest$ac_exeext | |
6749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6750 | (eval $ac_link) 2>&5 | |
6751 | ac_status=$? | |
6752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6753 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6755 | (eval $ac_try) 2>&5 | |
6756 | ac_status=$? | |
6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6758 | (exit $ac_status); }; }; then | |
6759 | ac_cv_func_mmap_fixed_mapped=yes | |
6760 | else | |
6761 | echo "$as_me: program exited with status $ac_status" >&5 | |
6762 | echo "$as_me: failed program was:" >&5 | |
6763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6764 | ||
6765 | ( exit $ac_status ) | |
6766 | ac_cv_func_mmap_fixed_mapped=no | |
6767 | fi | |
5c7fc7c4 | 6768 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6769 | fi |
6770 | fi | |
6771 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
6772 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6773 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6774 | ||
6775 | cat >>confdefs.h <<\_ACEOF | |
6776 | #define HAVE_MMAP 1 | |
6777 | _ACEOF | |
6778 | ||
6779 | fi | |
6780 | rm -f conftest.mmap | |
6781 | ||
6782 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 | |
6783 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 | |
6784 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then | |
6785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6786 | else | |
6787 | if test "$cross_compiling" = yes; then | |
6788 | ac_cv_func_stat_empty_string_bug=yes | |
6789 | else | |
6790 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6791 | /* confdefs.h. */ |
6792 | _ACEOF | |
6793 | cat confdefs.h >>conftest.$ac_ext | |
6794 | cat >>conftest.$ac_ext <<_ACEOF | |
6795 | /* end confdefs.h. */ | |
6796 | $ac_includes_default | |
6797 | int | |
6798 | main () | |
6799 | { | |
6800 | struct stat sbuf; | |
6801 | exit (stat ("", &sbuf) ? 1 : 0); | |
6802 | ; | |
6803 | return 0; | |
6804 | } | |
6805 | _ACEOF | |
6806 | rm -f conftest$ac_exeext | |
6807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6808 | (eval $ac_link) 2>&5 | |
6809 | ac_status=$? | |
6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6813 | (eval $ac_try) 2>&5 | |
6814 | ac_status=$? | |
6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6816 | (exit $ac_status); }; }; then | |
6817 | ac_cv_func_stat_empty_string_bug=yes | |
6818 | else | |
6819 | echo "$as_me: program exited with status $ac_status" >&5 | |
6820 | echo "$as_me: failed program was:" >&5 | |
6821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6822 | ||
6823 | ( exit $ac_status ) | |
6824 | ac_cv_func_stat_empty_string_bug=no | |
6825 | fi | |
5c7fc7c4 | 6826 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6827 | fi |
6828 | fi | |
6829 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
6830 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 | |
6831 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
5c7fc7c4 PC |
6832 | case $LIBOBJS in |
6833 | "stat.$ac_objext" | \ | |
6834 | *" stat.$ac_objext" | \ | |
6835 | "stat.$ac_objext "* | \ | |
6836 | *" stat.$ac_objext "* ) ;; | |
6837 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; | |
6838 | esac | |
6839 | ||
ad6254c5 AK |
6840 | |
6841 | cat >>confdefs.h <<_ACEOF | |
6842 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
6843 | _ACEOF | |
6844 | ||
6845 | fi | |
6846 | ||
6847 | echo "$as_me:$LINENO: checking for working strtod" >&5 | |
6848 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 | |
6849 | if test "${ac_cv_func_strtod+set}" = set; then | |
6850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6851 | else | |
6852 | if test "$cross_compiling" = yes; then | |
6853 | ac_cv_func_strtod=no | |
6854 | else | |
6855 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6856 | /* confdefs.h. */ |
6857 | _ACEOF | |
6858 | cat confdefs.h >>conftest.$ac_ext | |
6859 | cat >>conftest.$ac_ext <<_ACEOF | |
6860 | /* end confdefs.h. */ | |
6861 | ||
6862 | double strtod (); | |
6863 | int | |
6864 | main() | |
6865 | { | |
6866 | { | |
6867 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6868 | char *string = " +69"; | |
6869 | char *term; | |
6870 | double value; | |
6871 | value = strtod (string, &term); | |
6872 | if (value != 69 || term != (string + 4)) | |
6873 | exit (1); | |
6874 | } | |
6875 | ||
6876 | { | |
6877 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6878 | terminating character under some conditions. */ | |
6879 | char *string = "NaN"; | |
6880 | char *term; | |
6881 | strtod (string, &term); | |
6882 | if (term != string && *(term - 1) == 0) | |
6883 | exit (1); | |
6884 | } | |
6885 | exit (0); | |
6886 | } | |
6887 | ||
6888 | _ACEOF | |
6889 | rm -f conftest$ac_exeext | |
6890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6891 | (eval $ac_link) 2>&5 | |
6892 | ac_status=$? | |
6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6896 | (eval $ac_try) 2>&5 | |
6897 | ac_status=$? | |
6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6899 | (exit $ac_status); }; }; then | |
6900 | ac_cv_func_strtod=yes | |
6901 | else | |
6902 | echo "$as_me: program exited with status $ac_status" >&5 | |
6903 | echo "$as_me: failed program was:" >&5 | |
6904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6905 | ||
6906 | ( exit $ac_status ) | |
6907 | ac_cv_func_strtod=no | |
6908 | fi | |
5c7fc7c4 | 6909 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
6910 | fi |
6911 | fi | |
6912 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 | |
6913 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 | |
6914 | if test $ac_cv_func_strtod = no; then | |
5c7fc7c4 PC |
6915 | case $LIBOBJS in |
6916 | "strtod.$ac_objext" | \ | |
6917 | *" strtod.$ac_objext" | \ | |
6918 | "strtod.$ac_objext "* | \ | |
6919 | *" strtod.$ac_objext "* ) ;; | |
6920 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; | |
6921 | esac | |
6922 | ||
ad6254c5 AK |
6923 | echo "$as_me:$LINENO: checking for pow" >&5 |
6924 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 | |
6925 | if test "${ac_cv_func_pow+set}" = set; then | |
6926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6927 | else | |
6928 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6929 | /* confdefs.h. */ |
6930 | _ACEOF | |
6931 | cat confdefs.h >>conftest.$ac_ext | |
6932 | cat >>conftest.$ac_ext <<_ACEOF | |
6933 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
6934 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
6935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6936 | #define pow innocuous_pow | |
6937 | ||
ad6254c5 AK |
6938 | /* System header to define __stub macros and hopefully few prototypes, |
6939 | which can conflict with char pow (); below. | |
6940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6941 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 6942 | |
ad6254c5 AK |
6943 | #ifdef __STDC__ |
6944 | # include <limits.h> | |
6945 | #else | |
6946 | # include <assert.h> | |
6947 | #endif | |
5c7fc7c4 PC |
6948 | |
6949 | #undef pow | |
6950 | ||
ad6254c5 AK |
6951 | /* Override any gcc2 internal prototype to avoid an error. */ |
6952 | #ifdef __cplusplus | |
6953 | extern "C" | |
6954 | { | |
6955 | #endif | |
6956 | /* We use char because int might match the return type of a gcc2 | |
6957 | builtin and then its argument prototype would still apply. */ | |
6958 | char pow (); | |
6959 | /* The GNU C library defines this for functions which it implements | |
6960 | to always fail with ENOSYS. Some functions are actually named | |
6961 | something starting with __ and the normal name is an alias. */ | |
6962 | #if defined (__stub_pow) || defined (__stub___pow) | |
6963 | choke me | |
6964 | #else | |
6965 | char (*f) () = pow; | |
6966 | #endif | |
6967 | #ifdef __cplusplus | |
6968 | } | |
6969 | #endif | |
6970 | ||
6971 | int | |
6972 | main () | |
6973 | { | |
6974 | return f != pow; | |
6975 | ; | |
6976 | return 0; | |
6977 | } | |
6978 | _ACEOF | |
6979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 6981 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 6982 | ac_status=$? |
5c7fc7c4 PC |
6983 | grep -v '^ *+' conftest.er1 >conftest.err |
6984 | rm -f conftest.er1 | |
6985 | cat conftest.err >&5 | |
ad6254c5 AK |
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6987 | (exit $ac_status); } && | |
5c7fc7c4 PC |
6988 | { ac_try='test -z "$ac_c_werror_flag" |
6989 | || test ! -s conftest.err' | |
6990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6991 | (eval $ac_try) 2>&5 | |
6992 | ac_status=$? | |
6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6994 | (exit $ac_status); }; } && | |
6995 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
6996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6997 | (eval $ac_try) 2>&5 | |
6998 | ac_status=$? | |
6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7000 | (exit $ac_status); }; }; then | |
7001 | ac_cv_func_pow=yes | |
7002 | else | |
7003 | echo "$as_me: failed program was:" >&5 | |
7004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7005 | ||
7006 | ac_cv_func_pow=no | |
7007 | fi | |
5c7fc7c4 PC |
7008 | rm -f conftest.err conftest.$ac_objext \ |
7009 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7010 | fi |
7011 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 | |
7012 | echo "${ECHO_T}$ac_cv_func_pow" >&6 | |
7013 | ||
7014 | if test $ac_cv_func_pow = no; then | |
7015 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
7016 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
7017 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7019 | else | |
7020 | ac_check_lib_save_LIBS=$LIBS | |
7021 | LIBS="-lm $LIBS" | |
7022 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7023 | /* confdefs.h. */ |
7024 | _ACEOF | |
7025 | cat confdefs.h >>conftest.$ac_ext | |
7026 | cat >>conftest.$ac_ext <<_ACEOF | |
7027 | /* end confdefs.h. */ | |
7028 | ||
7029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7030 | #ifdef __cplusplus | |
7031 | extern "C" | |
7032 | #endif | |
7033 | /* We use char because int might match the return type of a gcc2 | |
7034 | builtin and then its argument prototype would still apply. */ | |
7035 | char pow (); | |
7036 | int | |
7037 | main () | |
7038 | { | |
7039 | pow (); | |
7040 | ; | |
7041 | return 0; | |
7042 | } | |
7043 | _ACEOF | |
7044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7046 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7047 | ac_status=$? |
5c7fc7c4 PC |
7048 | grep -v '^ *+' conftest.er1 >conftest.err |
7049 | rm -f conftest.er1 | |
7050 | cat conftest.err >&5 | |
ad6254c5 AK |
7051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7052 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7053 | { ac_try='test -z "$ac_c_werror_flag" |
7054 | || test ! -s conftest.err' | |
7055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7056 | (eval $ac_try) 2>&5 | |
7057 | ac_status=$? | |
7058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7059 | (exit $ac_status); }; } && | |
7060 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7062 | (eval $ac_try) 2>&5 | |
7063 | ac_status=$? | |
7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7065 | (exit $ac_status); }; }; then | |
7066 | ac_cv_lib_m_pow=yes | |
7067 | else | |
7068 | echo "$as_me: failed program was:" >&5 | |
7069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7070 | ||
7071 | ac_cv_lib_m_pow=no | |
7072 | fi | |
5c7fc7c4 PC |
7073 | rm -f conftest.err conftest.$ac_objext \ |
7074 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7075 | LIBS=$ac_check_lib_save_LIBS |
7076 | fi | |
7077 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
7078 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
7079 | if test $ac_cv_lib_m_pow = yes; then | |
7080 | POW_LIB=-lm | |
7081 | else | |
7082 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 | |
7083 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
7084 | fi | |
7085 | ||
7086 | fi | |
7087 | ||
7088 | fi | |
7089 | ||
7090 | ||
7091 | ################################################################################ | |
7092 | ||
7093 | ||
7094 | ################################################################################ | |
7095 | # Check whether --enable-jobs or --disable-jobs was given. | |
7096 | if test "${enable_jobs+set}" = set; then | |
7097 | enableval="$enable_jobs" | |
7098 | JOBS=-j$enableval | |
7099 | else | |
7100 | JOBS=-j2 | |
7101 | fi; | |
7102 | ||
7103 | ################################################################################ | |
7104 | echo "$as_me:$LINENO: checking file owner" >&5 | |
7105 | echo $ECHO_N "checking file owner... $ECHO_C" >&6 | |
7106 | OWNER="root" | |
7107 | ||
7108 | ||
7109 | # Check whether --with-user or --without-user was given. | |
7110 | if test "${with_user+set}" = set; then | |
7111 | withval="$with_user" | |
7112 | OWNER="$withval" | |
7113 | fi; | |
7114 | echo "$as_me:$LINENO: result: $OWNER" >&5 | |
7115 | echo "${ECHO_T}$OWNER" >&6 | |
7116 | ||
7117 | if test x$OWNER != x; then | |
7118 | OWNER="-o $OWNER" | |
7119 | fi | |
7120 | ||
7121 | ################################################################################ | |
7122 | echo "$as_me:$LINENO: checking group owner" >&5 | |
7123 | echo $ECHO_N "checking group owner... $ECHO_C" >&6 | |
7124 | GROUP="root" | |
7125 | ||
7126 | # Check whether --with-group or --without-group was given. | |
7127 | if test "${with_group+set}" = set; then | |
7128 | withval="$with_group" | |
7129 | GROUP="$withval" | |
7130 | fi; | |
7131 | echo "$as_me:$LINENO: result: $GROUP" >&5 | |
7132 | echo "${ECHO_T}$GROUP" >&6 | |
7133 | ||
7134 | if test x$GROUP != x; then | |
7135 | GROUP="-g $GROUP" | |
7136 | fi | |
7137 | ||
7138 | ################################################################################ | |
7139 | echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 | |
7140 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6 | |
7141 | # Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given. | |
7142 | if test "${enable_lvm1_fallback+set}" = set; then | |
7143 | enableval="$enable_lvm1_fallback" | |
7144 | LVM1_FALLBACK=$enableval | |
7145 | else | |
7146 | LVM1_FALLBACK=no | |
7147 | fi; | |
7148 | echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 | |
7149 | echo "${ECHO_T}$LVM1_FALLBACK" >&6 | |
7150 | ||
7151 | if test x$LVM1_FALLBACK = xyes; then | |
7152 | CFLAGS="$CFLAGS -DLVM1_FALLBACK" | |
7153 | fi | |
7154 | ||
7155 | ################################################################################ | |
7156 | echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 | |
7157 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6 | |
7158 | ||
7159 | # Check whether --with-lvm1 or --without-lvm1 was given. | |
7160 | if test "${with_lvm1+set}" = set; then | |
7161 | withval="$with_lvm1" | |
7162 | LVM1="$withval" | |
7163 | else | |
7164 | LVM1="internal" | |
7165 | fi; | |
7166 | echo "$as_me:$LINENO: result: $LVM1" >&5 | |
7167 | echo "${ECHO_T}$LVM1" >&6 | |
7168 | ||
7169 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
7170 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid | |
7171 | " >&5 | |
7172 | echo "$as_me: error: --with-lvm1 parameter invalid | |
7173 | " >&2;} | |
7174 | { (exit 1); exit 1; }; } | |
7175 | fi; | |
7176 | ||
7177 | if test x$LVM1 = xinternal; then | |
7178 | CFLAGS="$CFLAGS -DLVM1_INTERNAL" | |
7179 | fi | |
7180 | ||
7181 | ################################################################################ | |
7182 | echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 | |
7183 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6 | |
7184 | ||
7185 | # Check whether --with-pool or --without-pool was given. | |
7186 | if test "${with_pool+set}" = set; then | |
7187 | withval="$with_pool" | |
7188 | POOL="$withval" | |
7189 | else | |
7190 | POOL="internal" | |
7191 | fi; | |
7192 | echo "$as_me:$LINENO: result: $POOL" >&5 | |
7193 | echo "${ECHO_T}$POOL" >&6 | |
7194 | ||
7195 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
7196 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid | |
7197 | " >&5 | |
7198 | echo "$as_me: error: --with-pool parameter invalid | |
7199 | " >&2;} | |
7200 | { (exit 1); exit 1; }; } | |
7201 | fi; | |
7202 | ||
7203 | if test x$POOL = xinternal; then | |
7204 | CFLAGS="$CFLAGS -DPOOL_INTERNAL" | |
7205 | fi | |
7206 | ||
7207 | ################################################################################ | |
7208 | echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 | |
7209 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6 | |
7210 | ||
7211 | # Check whether --with-cluster or --without-cluster was given. | |
7212 | if test "${with_cluster+set}" = set; then | |
7213 | withval="$with_cluster" | |
7214 | CLUSTER="$withval" | |
7215 | fi; | |
7216 | echo "$as_me:$LINENO: result: $CLUSTER" >&5 | |
7217 | echo "${ECHO_T}$CLUSTER" >&6 | |
7218 | ||
7219 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
7220 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid | |
7221 | " >&5 | |
7222 | echo "$as_me: error: --with-cluster parameter invalid | |
7223 | " >&2;} | |
7224 | { (exit 1); exit 1; }; } | |
7225 | fi; | |
7226 | ||
7227 | if test x$CLUSTER = xinternal; then | |
7228 | CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL" | |
7229 | fi | |
7230 | ||
7231 | ################################################################################ | |
7232 | echo "$as_me:$LINENO: checking whether to include snapshots" >&5 | |
7233 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6 | |
7234 | ||
7235 | # Check whether --with-snapshots or --without-snapshots was given. | |
7236 | if test "${with_snapshots+set}" = set; then | |
7237 | withval="$with_snapshots" | |
7238 | SNAPSHOTS="$withval" | |
7239 | else | |
7240 | SNAPSHOTS="internal" | |
7241 | fi; | |
7242 | echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 | |
7243 | echo "${ECHO_T}$SNAPSHOTS" >&6 | |
7244 | ||
7245 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
7246 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid | |
7247 | " >&5 | |
7248 | echo "$as_me: error: --with-snapshots parameter invalid | |
7249 | " >&2;} | |
7250 | { (exit 1); exit 1; }; } | |
7251 | fi; | |
7252 | ||
7253 | if test x$SNAPSHOTS = xinternal; then | |
7254 | CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL" | |
7255 | fi | |
7256 | ||
7257 | ################################################################################ | |
7258 | echo "$as_me:$LINENO: checking whether to include mirrors" >&5 | |
7259 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6 | |
7260 | ||
7261 | # Check whether --with-mirrors or --without-mirrors was given. | |
7262 | if test "${with_mirrors+set}" = set; then | |
7263 | withval="$with_mirrors" | |
7264 | MIRRORS="$withval" | |
7265 | else | |
7266 | MIRRORS="internal" | |
7267 | fi; | |
7268 | echo "$as_me:$LINENO: result: $MIRRORS" >&5 | |
7269 | echo "${ECHO_T}$MIRRORS" >&6 | |
7270 | ||
7271 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
7272 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid | |
7273 | " >&5 | |
7274 | echo "$as_me: error: --with-mirrors parameter invalid | |
7275 | " >&2;} | |
7276 | { (exit 1); exit 1; }; } | |
7277 | fi; | |
7278 | ||
7279 | if test x$MIRRORS = xinternal; then | |
7280 | CFLAGS="$CFLAGS -DMIRRORED_INTERNAL" | |
7281 | fi | |
7282 | ||
7283 | ################################################################################ | |
7284 | echo "$as_me:$LINENO: checking whether to use static linking" >&5 | |
7285 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6 | |
7286 | # Check whether --enable-static_link or --disable-static_link was given. | |
7287 | if test "${enable_static_link+set}" = set; then | |
7288 | enableval="$enable_static_link" | |
7289 | STATIC_LINK=$enableval | |
7290 | else | |
7291 | STATIC_LINK=no | |
7292 | fi; | |
7293 | echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 | |
7294 | echo "${ECHO_T}$STATIC_LINK" >&6 | |
7295 | ||
7296 | ################################################################################ | |
7297 | echo "$as_me:$LINENO: checking whether to enable readline" >&5 | |
7298 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6 | |
7299 | # Check whether --enable-readline or --disable-readline was given. | |
7300 | if test "${enable_readline+set}" = set; then | |
7301 | enableval="$enable_readline" | |
7302 | READLINE=$enableval | |
7303 | else | |
7304 | READLINE=no | |
7305 | fi; | |
7306 | echo "$as_me:$LINENO: result: $READLINE" >&5 | |
7307 | echo "${ECHO_T}$READLINE" >&6 | |
7308 | ||
7309 | if test x$READLINE = xyes; then | |
7310 | CFLAGS="$CFLAGS -DREADLINE_SUPPORT" | |
7311 | fi | |
7312 | ||
7313 | ################################################################################ | |
7314 | echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 | |
7315 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6 | |
7316 | # Check whether --enable-selinux or --disable-selinux was given. | |
7317 | if test "${enable_selinux+set}" = set; then | |
7318 | enableval="$enable_selinux" | |
7319 | SELINUX=$enableval | |
7320 | fi; | |
7321 | echo "$as_me:$LINENO: result: $SELINUX" >&5 | |
7322 | echo "${ECHO_T}$SELINUX" >&6 | |
7323 | ||
7324 | ################################################################################ | |
7325 | echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
7326 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6 | |
7327 | ||
7328 | # Check whether --with-clvmd or --without-clvmd was given. | |
7329 | if test "${with_clvmd+set}" = set; then | |
7330 | withval="$with_clvmd" | |
a266258f | 7331 | CLVMD="$withval" |
ad6254c5 | 7332 | else |
a266258f | 7333 | CLVMD="none" |
ad6254c5 | 7334 | fi; |
a266258f | 7335 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 7336 | CLVMD=all |
b1098701 | 7337 | fi |
ad6254c5 AK |
7338 | echo "$as_me:$LINENO: result: $CLVMD" >&5 |
7339 | echo "${ECHO_T}$CLVMD" >&6 | |
7340 | ||
a266258f | 7341 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
7342 | CLUSTER=internal |
7343 | fi | |
7344 | ||
7345 | ################################################################################ | |
7346 | echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
7347 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6 | |
7348 | # Check whether --enable-debug or --disable-debug was given. | |
7349 | if test "${enable_debug+set}" = set; then | |
7350 | enableval="$enable_debug" | |
7351 | DEBUG=$enableval | |
7352 | else | |
7353 | DEBUG=no | |
7354 | fi; | |
7355 | echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
7356 | echo "${ECHO_T}$DEBUG" >&6 | |
7357 | ||
7358 | if test x$DEBUG = xyes; then | |
7359 | COPTIMISE_FLAG= | |
7360 | fi | |
7361 | ||
7362 | ################################################################################ | |
7363 | echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
7364 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6 | |
7365 | ||
7366 | # Check whether --with-optimisation or --without-optimisation was given. | |
7367 | if test "${with_optimisation+set}" = set; then | |
7368 | withval="$with_optimisation" | |
7369 | COPTIMISE_FLAG="$withval" | |
7370 | fi; | |
7371 | echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
7372 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6 | |
7373 | ||
7374 | ################################################################################ | |
7375 | echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 | |
7376 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6 | |
7377 | # Check whether --enable-devmapper or --disable-devmapper was given. | |
7378 | if test "${enable_devmapper+set}" = set; then | |
7379 | enableval="$enable_devmapper" | |
7380 | DEVMAPPER=$enableval | |
7381 | fi; | |
7382 | echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 | |
7383 | echo "${ECHO_T}$DEVMAPPER" >&6 | |
7384 | ||
7385 | if test x$DEVMAPPER = xyes; then | |
7386 | CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT" | |
7387 | fi | |
7388 | ||
7389 | ################################################################################ | |
7390 | echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 | |
7391 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6 | |
7392 | # Check whether --enable-o_direct or --disable-o_direct was given. | |
7393 | if test "${enable_o_direct+set}" = set; then | |
7394 | enableval="$enable_o_direct" | |
7395 | ODIRECT=$enableval | |
7396 | fi; | |
7397 | echo "$as_me:$LINENO: result: $ODIRECT" >&5 | |
7398 | echo "${ECHO_T}$ODIRECT" >&6 | |
7399 | ||
7400 | if test x$ODIRECT = xyes; then | |
7401 | CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT" | |
7402 | fi | |
7403 | ||
7404 | ################################################################################ | |
7405 | echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 | |
7406 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6 | |
7407 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
7408 | if test "${enable_cmdlib+set}" = set; then | |
7409 | enableval="$enable_cmdlib" | |
7410 | CMDLIB=$enableval | |
7411 | else | |
7412 | CMDLIB=no | |
7413 | fi; | |
7414 | echo "$as_me:$LINENO: result: $CMDLIB" >&5 | |
7415 | echo "${ECHO_T}$CMDLIB" >&6 | |
7416 | ||
59376640 | 7417 | if test x$CMDLIB = xyes; then |
ad6254c5 AK |
7418 | CFLAGS="$CFLAGS -DCMDLIB" |
7419 | fi | |
7420 | ||
7421 | ################################################################################ | |
7422 | echo "$as_me:$LINENO: checking whether to build fsadm" >&5 | |
7423 | echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6 | |
7424 | # Check whether --enable-fsadm or --disable-fsadm was given. | |
7425 | if test "${enable_fsadm+set}" = set; then | |
7426 | enableval="$enable_fsadm" | |
7427 | FSADM=$enableval | |
7428 | fi; | |
7429 | echo "$as_me:$LINENO: result: $FSADM" >&5 | |
7430 | echo "${ECHO_T}$FSADM" >&6 | |
7431 | ||
06f62ad1 AK |
7432 | ################################################################################ |
7433 | echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 | |
7434 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6 | |
7435 | # Check whether --enable-dmeventd or --disable-dmeventd was given. | |
7436 | if test "${enable_dmeventd+set}" = set; then | |
7437 | enableval="$enable_dmeventd" | |
7438 | DMEVENTD=$enableval | |
7439 | fi; | |
7440 | echo "$as_me:$LINENO: result: $DMEVENTD" >&5 | |
7441 | echo "${ECHO_T}$DMEVENTD" >&6 | |
7442 | ||
7443 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
7444 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7445 | " >&5 | |
7446 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal | |
7447 | " >&2;} | |
7448 | { (exit 1); exit 1; }; } | |
7449 | fi | |
7450 | ||
ad6254c5 AK |
7451 | ################################################################################ |
7452 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
7453 | then exec_prefix=""; | |
7454 | fi; | |
7455 | ||
7456 | ################################################################################ | |
7457 | if test $ac_cv_c_compiler_gnu = yes; then | |
7458 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
7459 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
7460 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
7461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7462 | else | |
7463 | ac_pattern="Autoconf.*'x'" | |
7464 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7465 | /* confdefs.h. */ |
7466 | _ACEOF | |
7467 | cat confdefs.h >>conftest.$ac_ext | |
7468 | cat >>conftest.$ac_ext <<_ACEOF | |
7469 | /* end confdefs.h. */ | |
7470 | #include <sgtty.h> | |
7471 | Autoconf TIOCGETP | |
7472 | _ACEOF | |
7473 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7474 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7475 | ac_cv_prog_gcc_traditional=yes | |
7476 | else | |
7477 | ac_cv_prog_gcc_traditional=no | |
7478 | fi | |
7479 | rm -f conftest* | |
7480 | ||
7481 | ||
7482 | if test $ac_cv_prog_gcc_traditional = no; then | |
7483 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7484 | /* confdefs.h. */ |
7485 | _ACEOF | |
7486 | cat confdefs.h >>conftest.$ac_ext | |
7487 | cat >>conftest.$ac_ext <<_ACEOF | |
7488 | /* end confdefs.h. */ | |
7489 | #include <termio.h> | |
7490 | Autoconf TCGETA | |
7491 | _ACEOF | |
7492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7493 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
7494 | ac_cv_prog_gcc_traditional=yes | |
7495 | fi | |
7496 | rm -f conftest* | |
7497 | ||
7498 | fi | |
7499 | fi | |
7500 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
7501 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
7502 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7503 | CC="$CC -traditional" | |
7504 | fi | |
7505 | fi | |
7506 | ||
7507 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7508 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
7509 | if test "${ac_cv_type_signal+set}" = set; then | |
7510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7511 | else | |
7512 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7513 | /* confdefs.h. */ |
7514 | _ACEOF | |
7515 | cat confdefs.h >>conftest.$ac_ext | |
7516 | cat >>conftest.$ac_ext <<_ACEOF | |
7517 | /* end confdefs.h. */ | |
7518 | #include <sys/types.h> | |
7519 | #include <signal.h> | |
7520 | #ifdef signal | |
7521 | # undef signal | |
7522 | #endif | |
7523 | #ifdef __cplusplus | |
7524 | extern "C" void (*signal (int, void (*)(int)))(int); | |
7525 | #else | |
7526 | void (*signal ()) (); | |
7527 | #endif | |
7528 | ||
7529 | int | |
7530 | main () | |
7531 | { | |
7532 | int i; | |
7533 | ; | |
7534 | return 0; | |
7535 | } | |
7536 | _ACEOF | |
7537 | rm -f conftest.$ac_objext | |
7538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 7539 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 7540 | ac_status=$? |
5c7fc7c4 PC |
7541 | grep -v '^ *+' conftest.er1 >conftest.err |
7542 | rm -f conftest.er1 | |
7543 | cat conftest.err >&5 | |
ad6254c5 AK |
7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7545 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7546 | { ac_try='test -z "$ac_c_werror_flag" |
7547 | || test ! -s conftest.err' | |
7548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7549 | (eval $ac_try) 2>&5 | |
7550 | ac_status=$? | |
7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7552 | (exit $ac_status); }; } && | |
7553 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
7554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7555 | (eval $ac_try) 2>&5 | |
7556 | ac_status=$? | |
7557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7558 | (exit $ac_status); }; }; then | |
7559 | ac_cv_type_signal=void | |
7560 | else | |
7561 | echo "$as_me: failed program was:" >&5 | |
7562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7563 | ||
7564 | ac_cv_type_signal=int | |
7565 | fi | |
5c7fc7c4 | 7566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
7567 | fi |
7568 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
7569 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
7570 | ||
7571 | cat >>confdefs.h <<_ACEOF | |
7572 | #define RETSIGTYPE $ac_cv_type_signal | |
7573 | _ACEOF | |
7574 | ||
7575 | ||
7576 | ||
7577 | for ac_func in vprintf | |
7578 | do | |
7579 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7580 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7581 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7582 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7584 | else | |
7585 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7586 | /* confdefs.h. */ |
7587 | _ACEOF | |
7588 | cat confdefs.h >>conftest.$ac_ext | |
7589 | cat >>conftest.$ac_ext <<_ACEOF | |
7590 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
7591 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7592 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7593 | #define $ac_func innocuous_$ac_func | |
7594 | ||
ad6254c5 AK |
7595 | /* System header to define __stub macros and hopefully few prototypes, |
7596 | which can conflict with char $ac_func (); below. | |
7597 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7598 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 7599 | |
ad6254c5 AK |
7600 | #ifdef __STDC__ |
7601 | # include <limits.h> | |
7602 | #else | |
7603 | # include <assert.h> | |
7604 | #endif | |
5c7fc7c4 PC |
7605 | |
7606 | #undef $ac_func | |
7607 | ||
ad6254c5 AK |
7608 | /* Override any gcc2 internal prototype to avoid an error. */ |
7609 | #ifdef __cplusplus | |
7610 | extern "C" | |
7611 | { | |
7612 | #endif | |
7613 | /* We use char because int might match the return type of a gcc2 | |
7614 | builtin and then its argument prototype would still apply. */ | |
7615 | char $ac_func (); | |
7616 | /* The GNU C library defines this for functions which it implements | |
7617 | to always fail with ENOSYS. Some functions are actually named | |
7618 | something starting with __ and the normal name is an alias. */ | |
7619 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7620 | choke me | |
7621 | #else | |
7622 | char (*f) () = $ac_func; | |
7623 | #endif | |
7624 | #ifdef __cplusplus | |
7625 | } | |
7626 | #endif | |
7627 | ||
7628 | int | |
7629 | main () | |
7630 | { | |
7631 | return f != $ac_func; | |
7632 | ; | |
7633 | return 0; | |
7634 | } | |
7635 | _ACEOF | |
7636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7638 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7639 | ac_status=$? |
5c7fc7c4 PC |
7640 | grep -v '^ *+' conftest.er1 >conftest.err |
7641 | rm -f conftest.er1 | |
7642 | cat conftest.err >&5 | |
ad6254c5 AK |
7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7644 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7645 | { ac_try='test -z "$ac_c_werror_flag" |
7646 | || test ! -s conftest.err' | |
7647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7648 | (eval $ac_try) 2>&5 | |
7649 | ac_status=$? | |
7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7651 | (exit $ac_status); }; } && | |
7652 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7654 | (eval $ac_try) 2>&5 | |
7655 | ac_status=$? | |
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7657 | (exit $ac_status); }; }; then | |
7658 | eval "$as_ac_var=yes" | |
7659 | else | |
7660 | echo "$as_me: failed program was:" >&5 | |
7661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7662 | ||
7663 | eval "$as_ac_var=no" | |
7664 | fi | |
5c7fc7c4 PC |
7665 | rm -f conftest.err conftest.$ac_objext \ |
7666 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7667 | fi |
7668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7669 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7670 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7671 | cat >>confdefs.h <<_ACEOF | |
7672 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7673 | _ACEOF | |
7674 | ||
7675 | echo "$as_me:$LINENO: checking for _doprnt" >&5 | |
7676 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
7677 | if test "${ac_cv_func__doprnt+set}" = set; then | |
7678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7679 | else | |
7680 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7681 | /* confdefs.h. */ |
7682 | _ACEOF | |
7683 | cat confdefs.h >>conftest.$ac_ext | |
7684 | cat >>conftest.$ac_ext <<_ACEOF | |
7685 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
7686 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
7687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7688 | #define _doprnt innocuous__doprnt | |
7689 | ||
ad6254c5 AK |
7690 | /* System header to define __stub macros and hopefully few prototypes, |
7691 | which can conflict with char _doprnt (); below. | |
7692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7693 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 7694 | |
ad6254c5 AK |
7695 | #ifdef __STDC__ |
7696 | # include <limits.h> | |
7697 | #else | |
7698 | # include <assert.h> | |
7699 | #endif | |
5c7fc7c4 PC |
7700 | |
7701 | #undef _doprnt | |
7702 | ||
ad6254c5 AK |
7703 | /* Override any gcc2 internal prototype to avoid an error. */ |
7704 | #ifdef __cplusplus | |
7705 | extern "C" | |
7706 | { | |
7707 | #endif | |
7708 | /* We use char because int might match the return type of a gcc2 | |
7709 | builtin and then its argument prototype would still apply. */ | |
7710 | char _doprnt (); | |
7711 | /* The GNU C library defines this for functions which it implements | |
7712 | to always fail with ENOSYS. Some functions are actually named | |
7713 | something starting with __ and the normal name is an alias. */ | |
7714 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
7715 | choke me | |
7716 | #else | |
7717 | char (*f) () = _doprnt; | |
7718 | #endif | |
7719 | #ifdef __cplusplus | |
7720 | } | |
7721 | #endif | |
7722 | ||
7723 | int | |
7724 | main () | |
7725 | { | |
7726 | return f != _doprnt; | |
7727 | ; | |
7728 | return 0; | |
7729 | } | |
7730 | _ACEOF | |
7731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7733 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7734 | ac_status=$? |
5c7fc7c4 PC |
7735 | grep -v '^ *+' conftest.er1 >conftest.err |
7736 | rm -f conftest.er1 | |
7737 | cat conftest.err >&5 | |
ad6254c5 AK |
7738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7739 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7740 | { ac_try='test -z "$ac_c_werror_flag" |
7741 | || test ! -s conftest.err' | |
7742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7743 | (eval $ac_try) 2>&5 | |
7744 | ac_status=$? | |
7745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7746 | (exit $ac_status); }; } && | |
7747 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7749 | (eval $ac_try) 2>&5 | |
7750 | ac_status=$? | |
7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7752 | (exit $ac_status); }; }; then | |
7753 | ac_cv_func__doprnt=yes | |
7754 | else | |
7755 | echo "$as_me: failed program was:" >&5 | |
7756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7757 | ||
7758 | ac_cv_func__doprnt=no | |
7759 | fi | |
5c7fc7c4 PC |
7760 | rm -f conftest.err conftest.$ac_objext \ |
7761 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7762 | fi |
7763 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
7764 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
7765 | if test $ac_cv_func__doprnt = yes; then | |
7766 | ||
7767 | cat >>confdefs.h <<\_ACEOF | |
7768 | #define HAVE_DOPRNT 1 | |
7769 | _ACEOF | |
7770 | ||
7771 | fi | |
7772 | ||
7773 | fi | |
7774 | done | |
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | for ac_func in mkdir rmdir uname | |
7781 | do | |
7782 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7783 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7784 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7785 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7787 | else | |
7788 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7789 | /* confdefs.h. */ |
7790 | _ACEOF | |
7791 | cat confdefs.h >>conftest.$ac_ext | |
7792 | cat >>conftest.$ac_ext <<_ACEOF | |
7793 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
7794 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7795 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7796 | #define $ac_func innocuous_$ac_func | |
7797 | ||
ad6254c5 AK |
7798 | /* System header to define __stub macros and hopefully few prototypes, |
7799 | which can conflict with char $ac_func (); below. | |
7800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7801 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 7802 | |
ad6254c5 AK |
7803 | #ifdef __STDC__ |
7804 | # include <limits.h> | |
7805 | #else | |
7806 | # include <assert.h> | |
7807 | #endif | |
5c7fc7c4 PC |
7808 | |
7809 | #undef $ac_func | |
7810 | ||
ad6254c5 AK |
7811 | /* Override any gcc2 internal prototype to avoid an error. */ |
7812 | #ifdef __cplusplus | |
7813 | extern "C" | |
7814 | { | |
7815 | #endif | |
7816 | /* We use char because int might match the return type of a gcc2 | |
7817 | builtin and then its argument prototype would still apply. */ | |
7818 | char $ac_func (); | |
7819 | /* The GNU C library defines this for functions which it implements | |
7820 | to always fail with ENOSYS. Some functions are actually named | |
7821 | something starting with __ and the normal name is an alias. */ | |
7822 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7823 | choke me | |
7824 | #else | |
7825 | char (*f) () = $ac_func; | |
7826 | #endif | |
7827 | #ifdef __cplusplus | |
7828 | } | |
7829 | #endif | |
7830 | ||
7831 | int | |
7832 | main () | |
7833 | { | |
7834 | return f != $ac_func; | |
7835 | ; | |
7836 | return 0; | |
7837 | } | |
7838 | _ACEOF | |
7839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7841 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7842 | ac_status=$? |
5c7fc7c4 PC |
7843 | grep -v '^ *+' conftest.er1 >conftest.err |
7844 | rm -f conftest.er1 | |
7845 | cat conftest.err >&5 | |
ad6254c5 AK |
7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7847 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7848 | { ac_try='test -z "$ac_c_werror_flag" |
7849 | || test ! -s conftest.err' | |
7850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7851 | (eval $ac_try) 2>&5 | |
7852 | ac_status=$? | |
7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7854 | (exit $ac_status); }; } && | |
7855 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7857 | (eval $ac_try) 2>&5 | |
7858 | ac_status=$? | |
7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7860 | (exit $ac_status); }; }; then | |
7861 | eval "$as_ac_var=yes" | |
7862 | else | |
7863 | echo "$as_me: failed program was:" >&5 | |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7865 | ||
7866 | eval "$as_ac_var=no" | |
7867 | fi | |
5c7fc7c4 PC |
7868 | rm -f conftest.err conftest.$ac_objext \ |
7869 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7870 | fi |
7871 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7872 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7873 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7874 | cat >>confdefs.h <<_ACEOF | |
7875 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7876 | _ACEOF | |
7877 | ||
7878 | else | |
7879 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
7880 | echo "$as_me: error: bailing out" >&2;} | |
7881 | { (exit 1); exit 1; }; } | |
7882 | fi | |
7883 | done | |
7884 | ||
7885 | ||
7886 | ################################################################################ | |
7887 | if test x$READLINE = xyes; then | |
7888 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
7889 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
7890 | if test "${ac_cv_search_tgetent+set}" = set; then | |
7891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7892 | else | |
7893 | ac_func_search_save_LIBS=$LIBS | |
7894 | ac_cv_search_tgetent=no | |
7895 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7896 | /* confdefs.h. */ |
7897 | _ACEOF | |
7898 | cat confdefs.h >>conftest.$ac_ext | |
7899 | cat >>conftest.$ac_ext <<_ACEOF | |
7900 | /* end confdefs.h. */ | |
7901 | ||
7902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7903 | #ifdef __cplusplus | |
7904 | extern "C" | |
7905 | #endif | |
7906 | /* We use char because int might match the return type of a gcc2 | |
7907 | builtin and then its argument prototype would still apply. */ | |
7908 | char tgetent (); | |
7909 | int | |
7910 | main () | |
7911 | { | |
7912 | tgetent (); | |
7913 | ; | |
7914 | return 0; | |
7915 | } | |
7916 | _ACEOF | |
7917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7919 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7920 | ac_status=$? |
5c7fc7c4 PC |
7921 | grep -v '^ *+' conftest.er1 >conftest.err |
7922 | rm -f conftest.er1 | |
7923 | cat conftest.err >&5 | |
ad6254c5 AK |
7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7925 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7926 | { ac_try='test -z "$ac_c_werror_flag" |
7927 | || test ! -s conftest.err' | |
7928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7929 | (eval $ac_try) 2>&5 | |
7930 | ac_status=$? | |
7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7932 | (exit $ac_status); }; } && | |
7933 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7935 | (eval $ac_try) 2>&5 | |
7936 | ac_status=$? | |
7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7938 | (exit $ac_status); }; }; then | |
7939 | ac_cv_search_tgetent="none required" | |
7940 | else | |
7941 | echo "$as_me: failed program was:" >&5 | |
7942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7943 | ||
7944 | fi | |
5c7fc7c4 PC |
7945 | rm -f conftest.err conftest.$ac_objext \ |
7946 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
7947 | if test "$ac_cv_search_tgetent" = no; then |
7948 | for ac_lib in ncurses curses termcap termlib; do | |
7949 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7950 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7951 | /* confdefs.h. */ |
7952 | _ACEOF | |
7953 | cat confdefs.h >>conftest.$ac_ext | |
7954 | cat >>conftest.$ac_ext <<_ACEOF | |
7955 | /* end confdefs.h. */ | |
7956 | ||
7957 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7958 | #ifdef __cplusplus | |
7959 | extern "C" | |
7960 | #endif | |
7961 | /* We use char because int might match the return type of a gcc2 | |
7962 | builtin and then its argument prototype would still apply. */ | |
7963 | char tgetent (); | |
7964 | int | |
7965 | main () | |
7966 | { | |
7967 | tgetent (); | |
7968 | ; | |
7969 | return 0; | |
7970 | } | |
7971 | _ACEOF | |
7972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 7974 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 7975 | ac_status=$? |
5c7fc7c4 PC |
7976 | grep -v '^ *+' conftest.er1 >conftest.err |
7977 | rm -f conftest.er1 | |
7978 | cat conftest.err >&5 | |
ad6254c5 AK |
7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7980 | (exit $ac_status); } && | |
5c7fc7c4 PC |
7981 | { ac_try='test -z "$ac_c_werror_flag" |
7982 | || test ! -s conftest.err' | |
7983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7984 | (eval $ac_try) 2>&5 | |
7985 | ac_status=$? | |
7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7987 | (exit $ac_status); }; } && | |
7988 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
7989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7990 | (eval $ac_try) 2>&5 | |
7991 | ac_status=$? | |
7992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7993 | (exit $ac_status); }; }; then | |
7994 | ac_cv_search_tgetent="-l$ac_lib" | |
7995 | break | |
7996 | else | |
7997 | echo "$as_me: failed program was:" >&5 | |
7998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7999 | ||
8000 | fi | |
5c7fc7c4 PC |
8001 | rm -f conftest.err conftest.$ac_objext \ |
8002 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8003 | done |
8004 | fi | |
8005 | LIBS=$ac_func_search_save_LIBS | |
8006 | fi | |
8007 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8008 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8009 | if test "$ac_cv_search_tgetent" != no; then | |
8010 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
8011 | ||
8012 | else | |
8013 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
8014 | --enable-readline option (which is enabled by default). Either disable readline | |
8015 | support with --disable-readline or download and install termcap from: | |
8016 | ftp.gnu.org/gnu/termcap | |
8017 | Note: if you are using precompiled packages you will also need the development | |
8018 | package as well (which may be called termcap-devel or something similar). | |
8019 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8020 | not found either - but you could try installing that as well. | |
8021 | " >&5 | |
8022 | echo "$as_me: error: termcap could not be found which is required for the | |
8023 | --enable-readline option (which is enabled by default). Either disable readline | |
8024 | support with --disable-readline or download and install termcap from: | |
8025 | ftp.gnu.org/gnu/termcap | |
8026 | Note: if you are using precompiled packages you will also need the development | |
8027 | package as well (which may be called termcap-devel or something similar). | |
8028 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8029 | not found either - but you could try installing that as well. | |
8030 | " >&2;} | |
8031 | { (exit 1); exit 1; }; } | |
8032 | ||
8033 | fi | |
8034 | ||
8035 | fi | |
8036 | ||
8037 | ################################################################################ | |
8038 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8039 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8040 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8042 | else | |
8043 | ac_check_lib_save_LIBS=$LIBS | |
8044 | LIBS="-ldl $LIBS" | |
8045 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8046 | /* confdefs.h. */ |
8047 | _ACEOF | |
8048 | cat confdefs.h >>conftest.$ac_ext | |
8049 | cat >>conftest.$ac_ext <<_ACEOF | |
8050 | /* end confdefs.h. */ | |
8051 | ||
8052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8053 | #ifdef __cplusplus | |
8054 | extern "C" | |
8055 | #endif | |
8056 | /* We use char because int might match the return type of a gcc2 | |
8057 | builtin and then its argument prototype would still apply. */ | |
8058 | char dlopen (); | |
8059 | int | |
8060 | main () | |
8061 | { | |
8062 | dlopen (); | |
8063 | ; | |
8064 | return 0; | |
8065 | } | |
8066 | _ACEOF | |
8067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8069 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8070 | ac_status=$? |
5c7fc7c4 PC |
8071 | grep -v '^ *+' conftest.er1 >conftest.err |
8072 | rm -f conftest.er1 | |
8073 | cat conftest.err >&5 | |
ad6254c5 AK |
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8075 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8076 | { ac_try='test -z "$ac_c_werror_flag" |
8077 | || test ! -s conftest.err' | |
8078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8079 | (eval $ac_try) 2>&5 | |
8080 | ac_status=$? | |
8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8082 | (exit $ac_status); }; } && | |
8083 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8085 | (eval $ac_try) 2>&5 | |
8086 | ac_status=$? | |
8087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8088 | (exit $ac_status); }; }; then | |
8089 | ac_cv_lib_dl_dlopen=yes | |
8090 | else | |
8091 | echo "$as_me: failed program was:" >&5 | |
8092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8093 | ||
8094 | ac_cv_lib_dl_dlopen=no | |
8095 | fi | |
5c7fc7c4 PC |
8096 | rm -f conftest.err conftest.$ac_objext \ |
8097 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8098 | LIBS=$ac_check_lib_save_LIBS |
8099 | fi | |
8100 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8101 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8102 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8103 | HAVE_LIBDL=yes | |
8104 | else | |
8105 | HAVE_LIBDL=no | |
8106 | fi | |
8107 | ||
8108 | ||
7e9e9502 | 8109 | if [ "x$HAVE_LIBDL" = xyes ]; then |
ad6254c5 AK |
8110 | CFLAGS="$CFLAGS -DHAVE_LIBDL" |
8111 | LIBS="-ldl $LIBS" | |
8112 | else | |
8113 | HAVE_LIBDL=no | |
8114 | fi | |
8115 | ||
8116 | ################################################################################ | |
8117 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8118 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8119 | \) -a "x$STATIC_LINK" = xyes ]; | |
8120 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically | |
8121 | " >&5 | |
8122 | echo "$as_me: error: Features cannot be 'shared' when building statically | |
8123 | " >&2;} | |
8124 | { (exit 1); exit 1; }; } | |
8125 | fi | |
8126 | ||
8127 | ################################################################################ | |
8128 | if test x$SELINUX = xyes; then | |
8129 | echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5 | |
8130 | echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6 | |
8131 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
8132 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 | |
8133 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
8134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8135 | else | |
8136 | ac_check_lib_save_LIBS=$LIBS | |
8137 | LIBS="-lselinux $LIBS" | |
8138 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8139 | /* confdefs.h. */ |
8140 | _ACEOF | |
8141 | cat confdefs.h >>conftest.$ac_ext | |
8142 | cat >>conftest.$ac_ext <<_ACEOF | |
8143 | /* end confdefs.h. */ | |
8144 | ||
8145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8146 | #ifdef __cplusplus | |
8147 | extern "C" | |
8148 | #endif | |
8149 | /* We use char because int might match the return type of a gcc2 | |
8150 | builtin and then its argument prototype would still apply. */ | |
8151 | char is_selinux_enabled (); | |
8152 | int | |
8153 | main () | |
8154 | { | |
8155 | is_selinux_enabled (); | |
8156 | ; | |
8157 | return 0; | |
8158 | } | |
8159 | _ACEOF | |
8160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8162 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8163 | ac_status=$? |
5c7fc7c4 PC |
8164 | grep -v '^ *+' conftest.er1 >conftest.err |
8165 | rm -f conftest.er1 | |
8166 | cat conftest.err >&5 | |
ad6254c5 AK |
8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8168 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8169 | { ac_try='test -z "$ac_c_werror_flag" |
8170 | || test ! -s conftest.err' | |
8171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8172 | (eval $ac_try) 2>&5 | |
8173 | ac_status=$? | |
8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8175 | (exit $ac_status); }; } && | |
8176 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8178 | (eval $ac_try) 2>&5 | |
8179 | ac_status=$? | |
8180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8181 | (exit $ac_status); }; }; then | |
8182 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
8183 | else | |
8184 | echo "$as_me: failed program was:" >&5 | |
8185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8186 | ||
8187 | ac_cv_lib_selinux_is_selinux_enabled=no | |
8188 | fi | |
5c7fc7c4 PC |
8189 | rm -f conftest.err conftest.$ac_objext \ |
8190 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8191 | LIBS=$ac_check_lib_save_LIBS |
8192 | fi | |
8193 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
8194 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 | |
8195 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then | |
8196 | HAVE_SELINUX=yes | |
8197 | else | |
8198 | HAVE_SELINUX=no | |
8199 | fi | |
8200 | ||
8201 | echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5 | |
8202 | echo "${ECHO_T}$HAVE_SELINUX" >&6 | |
8203 | ||
8204 | if test x$HAVE_SELINUX = xyes; then | |
8205 | CFLAGS="$CFLAGS -DHAVE_SELINUX" | |
8206 | LIBS="-lselinux $LIBS" | |
8207 | else | |
8208 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
8209 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
8210 | fi | |
8211 | fi | |
8212 | ||
8213 | ################################################################################ | |
8214 | ||
8215 | for ac_header in getopt.h | |
8216 | do | |
8217 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8223 | fi | |
8224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8225 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8226 | else | |
8227 | # Is the header compilable? | |
8228 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8229 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8230 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8231 | /* confdefs.h. */ |
8232 | _ACEOF | |
8233 | cat confdefs.h >>conftest.$ac_ext | |
8234 | cat >>conftest.$ac_ext <<_ACEOF | |
8235 | /* end confdefs.h. */ | |
8236 | $ac_includes_default | |
8237 | #include <$ac_header> | |
8238 | _ACEOF | |
8239 | rm -f conftest.$ac_objext | |
8240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 8241 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8242 | ac_status=$? |
5c7fc7c4 PC |
8243 | grep -v '^ *+' conftest.er1 >conftest.err |
8244 | rm -f conftest.er1 | |
8245 | cat conftest.err >&5 | |
ad6254c5 AK |
8246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8247 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8248 | { ac_try='test -z "$ac_c_werror_flag" |
8249 | || test ! -s conftest.err' | |
8250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8251 | (eval $ac_try) 2>&5 | |
8252 | ac_status=$? | |
8253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8254 | (exit $ac_status); }; } && | |
8255 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8257 | (eval $ac_try) 2>&5 | |
8258 | ac_status=$? | |
8259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8260 | (exit $ac_status); }; }; then | |
8261 | ac_header_compiler=yes | |
8262 | else | |
8263 | echo "$as_me: failed program was:" >&5 | |
8264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8265 | ||
8266 | ac_header_compiler=no | |
8267 | fi | |
5c7fc7c4 | 8268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8270 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8271 | ||
8272 | # Is the header present? | |
8273 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8274 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8275 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8276 | /* confdefs.h. */ |
8277 | _ACEOF | |
8278 | cat confdefs.h >>conftest.$ac_ext | |
8279 | cat >>conftest.$ac_ext <<_ACEOF | |
8280 | /* end confdefs.h. */ | |
8281 | #include <$ac_header> | |
8282 | _ACEOF | |
8283 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8285 | ac_status=$? | |
8286 | grep -v '^ *+' conftest.er1 >conftest.err | |
8287 | rm -f conftest.er1 | |
8288 | cat conftest.err >&5 | |
8289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8290 | (exit $ac_status); } >/dev/null; then | |
8291 | if test -s conftest.err; then | |
8292 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 8293 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8294 | else |
8295 | ac_cpp_err= | |
8296 | fi | |
8297 | else | |
8298 | ac_cpp_err=yes | |
8299 | fi | |
8300 | if test -z "$ac_cpp_err"; then | |
8301 | ac_header_preproc=yes | |
8302 | else | |
8303 | echo "$as_me: failed program was:" >&5 | |
8304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8305 | ||
8306 | ac_header_preproc=no | |
8307 | fi | |
8308 | rm -f conftest.err conftest.$ac_ext | |
8309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8310 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8311 | ||
8312 | # So? What about this header? | |
5c7fc7c4 PC |
8313 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8314 | yes:no: ) | |
ad6254c5 AK |
8315 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8316 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
8317 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8318 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8319 | ac_header_preproc=yes | |
ad6254c5 | 8320 | ;; |
5c7fc7c4 | 8321 | no:yes:* ) |
ad6254c5 AK |
8322 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8323 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
8324 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8325 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8326 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8327 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8328 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8329 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8330 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8331 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
8332 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8333 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8334 | ( |
8335 | cat <<\_ASBOX | |
5c7fc7c4 PC |
8336 | ## ------------------------------------------ ## |
8337 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8338 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8339 | _ASBOX |
8340 | ) | | |
8341 | sed "s/^/$as_me: WARNING: /" >&2 | |
8342 | ;; | |
8343 | esac | |
8344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8348 | else | |
5c7fc7c4 | 8349 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8350 | fi |
8351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8353 | ||
8354 | fi | |
8355 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8356 | cat >>confdefs.h <<_ACEOF | |
8357 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8358 | _ACEOF | |
8359 | CFLAGS="$CFLAGS -DHAVE_GETOPTLONG" | |
8360 | fi | |
8361 | ||
8362 | done | |
8363 | ||
8364 | ||
8365 | ################################################################################ | |
8366 | if test x$READLINE = xyes; then | |
8367 | ||
8368 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
8369 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
8370 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
8371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8372 | else | |
8373 | ac_check_lib_save_LIBS=$LIBS | |
8374 | LIBS="-lreadline $LIBS" | |
8375 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8376 | /* confdefs.h. */ |
8377 | _ACEOF | |
8378 | cat confdefs.h >>conftest.$ac_ext | |
8379 | cat >>conftest.$ac_ext <<_ACEOF | |
8380 | /* end confdefs.h. */ | |
8381 | ||
8382 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8383 | #ifdef __cplusplus | |
8384 | extern "C" | |
8385 | #endif | |
8386 | /* We use char because int might match the return type of a gcc2 | |
8387 | builtin and then its argument prototype would still apply. */ | |
8388 | char readline (); | |
8389 | int | |
8390 | main () | |
8391 | { | |
8392 | readline (); | |
8393 | ; | |
8394 | return 0; | |
8395 | } | |
8396 | _ACEOF | |
8397 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8399 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8400 | ac_status=$? |
5c7fc7c4 PC |
8401 | grep -v '^ *+' conftest.er1 >conftest.err |
8402 | rm -f conftest.er1 | |
8403 | cat conftest.err >&5 | |
ad6254c5 AK |
8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8405 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8406 | { ac_try='test -z "$ac_c_werror_flag" |
8407 | || test ! -s conftest.err' | |
8408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8409 | (eval $ac_try) 2>&5 | |
8410 | ac_status=$? | |
8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8412 | (exit $ac_status); }; } && | |
8413 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8415 | (eval $ac_try) 2>&5 | |
8416 | ac_status=$? | |
8417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8418 | (exit $ac_status); }; }; then | |
8419 | ac_cv_lib_readline_readline=yes | |
8420 | else | |
8421 | echo "$as_me: failed program was:" >&5 | |
8422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8423 | ||
8424 | ac_cv_lib_readline_readline=no | |
8425 | fi | |
5c7fc7c4 PC |
8426 | rm -f conftest.err conftest.$ac_objext \ |
8427 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8428 | LIBS=$ac_check_lib_save_LIBS |
8429 | fi | |
8430 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
8431 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
8432 | if test $ac_cv_lib_readline_readline = yes; then | |
8433 | cat >>confdefs.h <<_ACEOF | |
8434 | #define HAVE_LIBREADLINE 1 | |
8435 | _ACEOF | |
8436 | ||
8437 | LIBS="-lreadline $LIBS" | |
8438 | ||
8439 | else | |
8440 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
8441 | --enable-readline option (which is enabled by default). Either disable readline | |
8442 | support with --disable-readline or download and install readline from: | |
8443 | ftp.gnu.org/gnu/readline | |
8444 | Note: if you are using precompiled packages you will also need the development | |
8445 | package as well (which may be called readline-devel or something similar). | |
8446 | " >&5 | |
8447 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
8448 | --enable-readline option (which is enabled by default). Either disable readline | |
8449 | support with --disable-readline or download and install readline from: | |
8450 | ftp.gnu.org/gnu/readline | |
8451 | Note: if you are using precompiled packages you will also need the development | |
8452 | package as well (which may be called readline-devel or something similar). | |
8453 | " >&2;} | |
8454 | { (exit 1); exit 1; }; } | |
8455 | ||
8456 | fi | |
8457 | ||
8458 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 | |
8459 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
8460 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
8461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8462 | else | |
8463 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8464 | /* confdefs.h. */ |
8465 | _ACEOF | |
8466 | cat confdefs.h >>conftest.$ac_ext | |
8467 | cat >>conftest.$ac_ext <<_ACEOF | |
8468 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
8469 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
8470 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8471 | #define rl_completion_matches innocuous_rl_completion_matches | |
8472 | ||
ad6254c5 AK |
8473 | /* System header to define __stub macros and hopefully few prototypes, |
8474 | which can conflict with char rl_completion_matches (); below. | |
8475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8476 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 8477 | |
ad6254c5 AK |
8478 | #ifdef __STDC__ |
8479 | # include <limits.h> | |
8480 | #else | |
8481 | # include <assert.h> | |
8482 | #endif | |
5c7fc7c4 PC |
8483 | |
8484 | #undef rl_completion_matches | |
8485 | ||
ad6254c5 AK |
8486 | /* Override any gcc2 internal prototype to avoid an error. */ |
8487 | #ifdef __cplusplus | |
8488 | extern "C" | |
8489 | { | |
8490 | #endif | |
8491 | /* We use char because int might match the return type of a gcc2 | |
8492 | builtin and then its argument prototype would still apply. */ | |
8493 | char rl_completion_matches (); | |
8494 | /* The GNU C library defines this for functions which it implements | |
8495 | to always fail with ENOSYS. Some functions are actually named | |
8496 | something starting with __ and the normal name is an alias. */ | |
8497 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
8498 | choke me | |
8499 | #else | |
8500 | char (*f) () = rl_completion_matches; | |
8501 | #endif | |
8502 | #ifdef __cplusplus | |
8503 | } | |
8504 | #endif | |
8505 | ||
8506 | int | |
8507 | main () | |
8508 | { | |
8509 | return f != rl_completion_matches; | |
8510 | ; | |
8511 | return 0; | |
8512 | } | |
8513 | _ACEOF | |
8514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 8516 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 8517 | ac_status=$? |
5c7fc7c4 PC |
8518 | grep -v '^ *+' conftest.er1 >conftest.err |
8519 | rm -f conftest.er1 | |
8520 | cat conftest.err >&5 | |
ad6254c5 AK |
8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8522 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8523 | { ac_try='test -z "$ac_c_werror_flag" |
8524 | || test ! -s conftest.err' | |
8525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8526 | (eval $ac_try) 2>&5 | |
8527 | ac_status=$? | |
8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8529 | (exit $ac_status); }; } && | |
8530 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8532 | (eval $ac_try) 2>&5 | |
8533 | ac_status=$? | |
8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8535 | (exit $ac_status); }; }; then | |
8536 | ac_cv_func_rl_completion_matches=yes | |
8537 | else | |
8538 | echo "$as_me: failed program was:" >&5 | |
8539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8540 | ||
8541 | ac_cv_func_rl_completion_matches=no | |
8542 | fi | |
5c7fc7c4 PC |
8543 | rm -f conftest.err conftest.$ac_objext \ |
8544 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
8545 | fi |
8546 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 | |
8547 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
8548 | if test $ac_cv_func_rl_completion_matches = yes; then | |
8549 | CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES" | |
8550 | fi | |
8551 | ||
8552 | ||
8553 | fi | |
8554 | ||
8555 | ################################################################################ | |
8556 | echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 | |
8557 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6 | |
8558 | # Check whether --enable-nls or --disable-nls was given. | |
8559 | if test "${enable_nls+set}" = set; then | |
8560 | enableval="$enable_nls" | |
8561 | INTL=$enableval | |
8562 | else | |
8563 | INTL=no | |
8564 | fi; | |
8565 | echo "$as_me:$LINENO: result: $INTL" >&5 | |
8566 | echo "${ECHO_T}$INTL" >&6 | |
8567 | ||
8568 | if test x$INTL = xyes; then | |
8569 | INTL_PACKAGE="lvm2" | |
8570 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8571 | set dummy msgfmt; ac_word=$2 | |
8572 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8574 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
8575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8576 | else | |
8577 | case $MSGFMT in | |
8578 | [\\/]* | ?:[\\/]*) | |
8579 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8580 | ;; | |
8581 | *) | |
8582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8583 | for as_dir in $PATH | |
8584 | do | |
8585 | IFS=$as_save_IFS | |
8586 | test -z "$as_dir" && as_dir=. | |
8587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8588 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8589 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
8590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8591 | break 2 | |
8592 | fi | |
8593 | done | |
8594 | done | |
8595 | ||
8596 | ;; | |
8597 | esac | |
8598 | fi | |
8599 | MSGFMT=$ac_cv_path_MSGFMT | |
8600 | ||
8601 | if test -n "$MSGFMT"; then | |
8602 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
8603 | echo "${ECHO_T}$MSGFMT" >&6 | |
8604 | else | |
8605 | echo "$as_me:$LINENO: result: no" >&5 | |
8606 | echo "${ECHO_T}no" >&6 | |
8607 | fi | |
8608 | ||
8609 | if [ "x$MSGFMT" == x ]; | |
8610 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH | |
8611 | " >&5 | |
8612 | echo "$as_me: error: msgfmt not found in path $PATH | |
8613 | " >&2;} | |
8614 | { (exit 1); exit 1; }; } | |
8615 | fi; | |
8616 | ||
8617 | ||
8618 | # Check whether --with-localedir or --without-localedir was given. | |
8619 | if test "${with_localedir+set}" = set; then | |
8620 | withval="$with_localedir" | |
8621 | LOCALEDIR="$withval" | |
8622 | else | |
8623 | LOCALEDIR='${prefix}/share/locale' | |
8624 | fi; | |
8625 | fi | |
8626 | ||
8627 | ################################################################################ | |
8628 | ||
8629 | # Check whether --with-confdir or --without-confdir was given. | |
8630 | if test "${with_confdir+set}" = set; then | |
8631 | withval="$with_confdir" | |
8632 | CONFDIR="$withval" | |
8633 | else | |
8634 | CONFDIR='/etc' | |
8635 | fi; | |
8636 | ||
8637 | ||
8638 | # Check whether --with-staticdir or --without-staticdir was given. | |
8639 | if test "${with_staticdir+set}" = set; then | |
8640 | withval="$with_staticdir" | |
8641 | STATICDIR="$withval" | |
8642 | else | |
8643 | STATICDIR='${exec_prefix}/sbin' | |
8644 | fi; | |
8645 | ||
8646 | ################################################################################ | |
8647 | if test x$READLINE = xyes; then | |
8648 | ||
8649 | ||
8650 | for ac_header in readline/readline.h readline/history.h | |
8651 | do | |
8652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8654 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8655 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8656 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8658 | fi | |
8659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8660 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8661 | else | |
8662 | # Is the header compilable? | |
8663 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8664 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8665 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8666 | /* confdefs.h. */ |
8667 | _ACEOF | |
8668 | cat confdefs.h >>conftest.$ac_ext | |
8669 | cat >>conftest.$ac_ext <<_ACEOF | |
8670 | /* end confdefs.h. */ | |
8671 | $ac_includes_default | |
8672 | #include <$ac_header> | |
8673 | _ACEOF | |
8674 | rm -f conftest.$ac_objext | |
8675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 8676 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8677 | ac_status=$? |
5c7fc7c4 PC |
8678 | grep -v '^ *+' conftest.er1 >conftest.err |
8679 | rm -f conftest.er1 | |
8680 | cat conftest.err >&5 | |
ad6254c5 AK |
8681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8682 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8683 | { ac_try='test -z "$ac_c_werror_flag" |
8684 | || test ! -s conftest.err' | |
8685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8686 | (eval $ac_try) 2>&5 | |
8687 | ac_status=$? | |
8688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8689 | (exit $ac_status); }; } && | |
8690 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8692 | (eval $ac_try) 2>&5 | |
8693 | ac_status=$? | |
8694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8695 | (exit $ac_status); }; }; then | |
8696 | ac_header_compiler=yes | |
8697 | else | |
8698 | echo "$as_me: failed program was:" >&5 | |
8699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8700 | ||
8701 | ac_header_compiler=no | |
8702 | fi | |
5c7fc7c4 | 8703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8704 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8705 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8706 | ||
8707 | # Is the header present? | |
8708 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8709 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8710 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8711 | /* confdefs.h. */ |
8712 | _ACEOF | |
8713 | cat confdefs.h >>conftest.$ac_ext | |
8714 | cat >>conftest.$ac_ext <<_ACEOF | |
8715 | /* end confdefs.h. */ | |
8716 | #include <$ac_header> | |
8717 | _ACEOF | |
8718 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8720 | ac_status=$? | |
8721 | grep -v '^ *+' conftest.er1 >conftest.err | |
8722 | rm -f conftest.er1 | |
8723 | cat conftest.err >&5 | |
8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8725 | (exit $ac_status); } >/dev/null; then | |
8726 | if test -s conftest.err; then | |
8727 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 8728 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8729 | else |
8730 | ac_cpp_err= | |
8731 | fi | |
8732 | else | |
8733 | ac_cpp_err=yes | |
8734 | fi | |
8735 | if test -z "$ac_cpp_err"; then | |
8736 | ac_header_preproc=yes | |
8737 | else | |
8738 | echo "$as_me: failed program was:" >&5 | |
8739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8740 | ||
8741 | ac_header_preproc=no | |
8742 | fi | |
8743 | rm -f conftest.err conftest.$ac_ext | |
8744 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8745 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8746 | ||
8747 | # So? What about this header? | |
5c7fc7c4 PC |
8748 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8749 | yes:no: ) | |
ad6254c5 AK |
8750 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8751 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8753 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8754 | ac_header_preproc=yes | |
ad6254c5 | 8755 | ;; |
5c7fc7c4 | 8756 | no:yes:* ) |
ad6254c5 AK |
8757 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8758 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
8759 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8760 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8761 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8762 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8763 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8764 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8766 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
8767 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8768 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8769 | ( |
8770 | cat <<\_ASBOX | |
5c7fc7c4 PC |
8771 | ## ------------------------------------------ ## |
8772 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8773 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8774 | _ASBOX |
8775 | ) | | |
8776 | sed "s/^/$as_me: WARNING: /" >&2 | |
8777 | ;; | |
8778 | esac | |
8779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8783 | else | |
5c7fc7c4 | 8784 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8785 | fi |
8786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8788 | ||
8789 | fi | |
8790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8791 | cat >>confdefs.h <<_ACEOF | |
8792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8793 | _ACEOF | |
8794 | ||
8795 | else | |
8796 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8797 | echo "$as_me: error: bailing out" >&2;} | |
8798 | { (exit 1); exit 1; }; } | |
8799 | fi | |
8800 | ||
8801 | done | |
8802 | ||
8803 | fi | |
8804 | ||
5c7fc7c4 | 8805 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
8806 | |
8807 | ||
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | ||
8814 | ||
8815 | ||
8816 | 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 | |
8817 | do | |
8818 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8819 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8824 | fi | |
8825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8827 | else | |
8828 | # Is the header compilable? | |
8829 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8830 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8831 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8832 | /* confdefs.h. */ |
8833 | _ACEOF | |
8834 | cat confdefs.h >>conftest.$ac_ext | |
8835 | cat >>conftest.$ac_ext <<_ACEOF | |
8836 | /* end confdefs.h. */ | |
8837 | $ac_includes_default | |
8838 | #include <$ac_header> | |
8839 | _ACEOF | |
8840 | rm -f conftest.$ac_objext | |
8841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 8842 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 8843 | ac_status=$? |
5c7fc7c4 PC |
8844 | grep -v '^ *+' conftest.er1 >conftest.err |
8845 | rm -f conftest.er1 | |
8846 | cat conftest.err >&5 | |
ad6254c5 AK |
8847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8848 | (exit $ac_status); } && | |
5c7fc7c4 PC |
8849 | { ac_try='test -z "$ac_c_werror_flag" |
8850 | || test ! -s conftest.err' | |
8851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8852 | (eval $ac_try) 2>&5 | |
8853 | ac_status=$? | |
8854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8855 | (exit $ac_status); }; } && | |
8856 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
8857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8858 | (eval $ac_try) 2>&5 | |
8859 | ac_status=$? | |
8860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8861 | (exit $ac_status); }; }; then | |
8862 | ac_header_compiler=yes | |
8863 | else | |
8864 | echo "$as_me: failed program was:" >&5 | |
8865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8866 | ||
8867 | ac_header_compiler=no | |
8868 | fi | |
5c7fc7c4 | 8869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
8870 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8871 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8872 | ||
8873 | # Is the header present? | |
8874 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8875 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8876 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8877 | /* confdefs.h. */ |
8878 | _ACEOF | |
8879 | cat confdefs.h >>conftest.$ac_ext | |
8880 | cat >>conftest.$ac_ext <<_ACEOF | |
8881 | /* end confdefs.h. */ | |
8882 | #include <$ac_header> | |
8883 | _ACEOF | |
8884 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8885 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8886 | ac_status=$? | |
8887 | grep -v '^ *+' conftest.er1 >conftest.err | |
8888 | rm -f conftest.er1 | |
8889 | cat conftest.err >&5 | |
8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8891 | (exit $ac_status); } >/dev/null; then | |
8892 | if test -s conftest.err; then | |
8893 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 8894 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
8895 | else |
8896 | ac_cpp_err= | |
8897 | fi | |
8898 | else | |
8899 | ac_cpp_err=yes | |
8900 | fi | |
8901 | if test -z "$ac_cpp_err"; then | |
8902 | ac_header_preproc=yes | |
8903 | else | |
8904 | echo "$as_me: failed program was:" >&5 | |
8905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8906 | ||
8907 | ac_header_preproc=no | |
8908 | fi | |
8909 | rm -f conftest.err conftest.$ac_ext | |
8910 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8911 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8912 | ||
8913 | # So? What about this header? | |
5c7fc7c4 PC |
8914 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8915 | yes:no: ) | |
ad6254c5 AK |
8916 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8917 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
8918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8919 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8920 | ac_header_preproc=yes | |
ad6254c5 | 8921 | ;; |
5c7fc7c4 | 8922 | no:yes:* ) |
ad6254c5 AK |
8923 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8924 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
8925 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8926 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8927 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8928 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8929 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8930 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
8931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8932 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
8933 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8934 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
8935 | ( |
8936 | cat <<\_ASBOX | |
5c7fc7c4 PC |
8937 | ## ------------------------------------------ ## |
8938 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8939 | ## ------------------------------------------ ## | |
ad6254c5 AK |
8940 | _ASBOX |
8941 | ) | | |
8942 | sed "s/^/$as_me: WARNING: /" >&2 | |
8943 | ;; | |
8944 | esac | |
8945 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8949 | else | |
5c7fc7c4 | 8950 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 AK |
8951 | fi |
8952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8954 | ||
8955 | fi | |
8956 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8957 | cat >>confdefs.h <<_ACEOF | |
8958 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8959 | _ACEOF | |
8960 | ||
8961 | else | |
8962 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
8963 | echo "$as_me: error: bailing out" >&2;} | |
8964 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
8965 | fi |
8966 | ||
ad6254c5 AK |
8967 | done |
8968 | ||
8969 | ||
795ca3e5 | 8970 | |
8106cdd5 | 8971 | |
ad6254c5 AK |
8972 | |
8973 | ||
8974 | for ac_func in dup2 getmntent memmove select socket | |
8975 | do | |
8976 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8977 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8978 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8979 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 8981 | else |
ad6254c5 | 8982 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8983 | /* confdefs.h. */ |
8984 | _ACEOF | |
8985 | cat confdefs.h >>conftest.$ac_ext | |
8986 | cat >>conftest.$ac_ext <<_ACEOF | |
8987 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
8988 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8989 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8990 | #define $ac_func innocuous_$ac_func | |
8991 | ||
795ca3e5 | 8992 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
8993 | which can conflict with char $ac_func (); below. |
8994 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8995 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 8996 | |
ad6254c5 AK |
8997 | #ifdef __STDC__ |
8998 | # include <limits.h> | |
8999 | #else | |
9000 | # include <assert.h> | |
9001 | #endif | |
5c7fc7c4 PC |
9002 | |
9003 | #undef $ac_func | |
9004 | ||
795ca3e5 | 9005 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9006 | #ifdef __cplusplus |
9007 | extern "C" | |
9008 | { | |
9009 | #endif | |
795ca3e5 | 9010 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9011 | builtin and then its argument prototype would still apply. */ |
9012 | char $ac_func (); | |
795ca3e5 AK |
9013 | /* The GNU C library defines this for functions which it implements |
9014 | to always fail with ENOSYS. Some functions are actually named | |
9015 | something starting with __ and the normal name is an alias. */ | |
ad6254c5 | 9016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
9017 | choke me |
9018 | #else | |
ad6254c5 AK |
9019 | char (*f) () = $ac_func; |
9020 | #endif | |
9021 | #ifdef __cplusplus | |
9022 | } | |
795ca3e5 AK |
9023 | #endif |
9024 | ||
ad6254c5 AK |
9025 | int |
9026 | main () | |
9027 | { | |
9028 | return f != $ac_func; | |
9029 | ; | |
9030 | return 0; | |
9031 | } | |
9032 | _ACEOF | |
9033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9035 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9036 | ac_status=$? |
5c7fc7c4 PC |
9037 | grep -v '^ *+' conftest.er1 >conftest.err |
9038 | rm -f conftest.er1 | |
9039 | cat conftest.err >&5 | |
ad6254c5 AK |
9040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9041 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9042 | { ac_try='test -z "$ac_c_werror_flag" |
9043 | || test ! -s conftest.err' | |
9044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9045 | (eval $ac_try) 2>&5 | |
9046 | ac_status=$? | |
9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9048 | (exit $ac_status); }; } && | |
9049 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9051 | (eval $ac_try) 2>&5 | |
9052 | ac_status=$? | |
9053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9054 | (exit $ac_status); }; }; then | |
9055 | eval "$as_ac_var=yes" | |
795ca3e5 | 9056 | else |
ad6254c5 AK |
9057 | echo "$as_me: failed program was:" >&5 |
9058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9059 | ||
9060 | eval "$as_ac_var=no" | |
80992638 | 9061 | fi |
5c7fc7c4 PC |
9062 | rm -f conftest.err conftest.$ac_objext \ |
9063 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9064 | fi |
ad6254c5 AK |
9065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9066 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9067 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9068 | cat >>confdefs.h <<_ACEOF | |
9069 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9070 | _ACEOF | |
80992638 AK |
9071 | |
9072 | else | |
ad6254c5 AK |
9073 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9074 | echo "$as_me: error: bailing out" >&2;} | |
9075 | { (exit 1); exit 1; }; } | |
8106cdd5 | 9076 | fi |
ad6254c5 | 9077 | done |
795ca3e5 | 9078 | |
ad6254c5 AK |
9079 | # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. |
9080 | echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5 | |
9081 | echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6 | |
9082 | if test "${ac_cv_lib_sun_getmntent+set}" = set; then | |
9083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 9084 | else |
ad6254c5 AK |
9085 | ac_check_lib_save_LIBS=$LIBS |
9086 | LIBS="-lsun $LIBS" | |
9087 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9088 | /* confdefs.h. */ |
9089 | _ACEOF | |
9090 | cat confdefs.h >>conftest.$ac_ext | |
9091 | cat >>conftest.$ac_ext <<_ACEOF | |
9092 | /* end confdefs.h. */ | |
9093 | ||
795ca3e5 | 9094 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9095 | #ifdef __cplusplus |
9096 | extern "C" | |
9097 | #endif | |
795ca3e5 | 9098 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9099 | builtin and then its argument prototype would still apply. */ |
9100 | char getmntent (); | |
9101 | int | |
9102 | main () | |
9103 | { | |
9104 | getmntent (); | |
9105 | ; | |
9106 | return 0; | |
9107 | } | |
9108 | _ACEOF | |
9109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9111 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9112 | ac_status=$? |
5c7fc7c4 PC |
9113 | grep -v '^ *+' conftest.er1 >conftest.err |
9114 | rm -f conftest.er1 | |
9115 | cat conftest.err >&5 | |
ad6254c5 AK |
9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9117 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9118 | { ac_try='test -z "$ac_c_werror_flag" |
9119 | || test ! -s conftest.err' | |
9120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9121 | (eval $ac_try) 2>&5 | |
9122 | ac_status=$? | |
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9124 | (exit $ac_status); }; } && | |
9125 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9127 | (eval $ac_try) 2>&5 | |
9128 | ac_status=$? | |
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9130 | (exit $ac_status); }; }; then | |
9131 | ac_cv_lib_sun_getmntent=yes | |
9132 | else | |
9133 | echo "$as_me: failed program was:" >&5 | |
9134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
80992638 | 9135 | |
ad6254c5 AK |
9136 | ac_cv_lib_sun_getmntent=no |
9137 | fi | |
5c7fc7c4 PC |
9138 | rm -f conftest.err conftest.$ac_objext \ |
9139 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9140 | LIBS=$ac_check_lib_save_LIBS |
9141 | fi | |
9142 | echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5 | |
9143 | echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6 | |
9144 | if test $ac_cv_lib_sun_getmntent = yes; then | |
9145 | LIBS="-lsun $LIBS" | |
9146 | else | |
9147 | echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5 | |
9148 | echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6 | |
9149 | if test "${ac_cv_lib_seq_getmntent+set}" = set; then | |
9150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9151 | else | |
9152 | ac_check_lib_save_LIBS=$LIBS | |
9153 | LIBS="-lseq $LIBS" | |
9154 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9155 | /* confdefs.h. */ |
9156 | _ACEOF | |
9157 | cat confdefs.h >>conftest.$ac_ext | |
9158 | cat >>conftest.$ac_ext <<_ACEOF | |
9159 | /* end confdefs.h. */ | |
80992638 | 9160 | |
ad6254c5 AK |
9161 | /* Override any gcc2 internal prototype to avoid an error. */ |
9162 | #ifdef __cplusplus | |
9163 | extern "C" | |
795ca3e5 | 9164 | #endif |
ad6254c5 AK |
9165 | /* We use char because int might match the return type of a gcc2 |
9166 | builtin and then its argument prototype would still apply. */ | |
9167 | char getmntent (); | |
9168 | int | |
9169 | main () | |
9170 | { | |
9171 | getmntent (); | |
9172 | ; | |
9173 | return 0; | |
9174 | } | |
9175 | _ACEOF | |
9176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9178 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9179 | ac_status=$? |
5c7fc7c4 PC |
9180 | grep -v '^ *+' conftest.er1 >conftest.err |
9181 | rm -f conftest.er1 | |
9182 | cat conftest.err >&5 | |
ad6254c5 AK |
9183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9184 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9185 | { ac_try='test -z "$ac_c_werror_flag" |
9186 | || test ! -s conftest.err' | |
9187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9188 | (eval $ac_try) 2>&5 | |
9189 | ac_status=$? | |
9190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9191 | (exit $ac_status); }; } && | |
9192 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9194 | (eval $ac_try) 2>&5 | |
9195 | ac_status=$? | |
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9197 | (exit $ac_status); }; }; then | |
9198 | ac_cv_lib_seq_getmntent=yes | |
795ca3e5 | 9199 | else |
ad6254c5 AK |
9200 | echo "$as_me: failed program was:" >&5 |
9201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9202 | ||
9203 | ac_cv_lib_seq_getmntent=no | |
795ca3e5 | 9204 | fi |
5c7fc7c4 PC |
9205 | rm -f conftest.err conftest.$ac_objext \ |
9206 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 9207 | LIBS=$ac_check_lib_save_LIBS |
795ca3e5 | 9208 | fi |
ad6254c5 AK |
9209 | echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5 |
9210 | echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6 | |
9211 | if test $ac_cv_lib_seq_getmntent = yes; then | |
9212 | LIBS="-lseq $LIBS" | |
9213 | else | |
9214 | echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5 | |
9215 | echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6 | |
9216 | if test "${ac_cv_lib_gen_getmntent+set}" = set; then | |
9217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9218 | else | |
9219 | ac_check_lib_save_LIBS=$LIBS | |
9220 | LIBS="-lgen $LIBS" | |
9221 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9222 | /* confdefs.h. */ |
9223 | _ACEOF | |
9224 | cat confdefs.h >>conftest.$ac_ext | |
9225 | cat >>conftest.$ac_ext <<_ACEOF | |
9226 | /* end confdefs.h. */ | |
795ca3e5 | 9227 | |
ad6254c5 AK |
9228 | /* Override any gcc2 internal prototype to avoid an error. */ |
9229 | #ifdef __cplusplus | |
9230 | extern "C" | |
9231 | #endif | |
9232 | /* We use char because int might match the return type of a gcc2 | |
9233 | builtin and then its argument prototype would still apply. */ | |
9234 | char getmntent (); | |
9235 | int | |
9236 | main () | |
9237 | { | |
9238 | getmntent (); | |
9239 | ; | |
9240 | return 0; | |
9241 | } | |
9242 | _ACEOF | |
9243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9245 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9246 | ac_status=$? |
5c7fc7c4 PC |
9247 | grep -v '^ *+' conftest.er1 >conftest.err |
9248 | rm -f conftest.er1 | |
9249 | cat conftest.err >&5 | |
ad6254c5 AK |
9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9251 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9252 | { ac_try='test -z "$ac_c_werror_flag" |
9253 | || test ! -s conftest.err' | |
9254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9255 | (eval $ac_try) 2>&5 | |
9256 | ac_status=$? | |
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9258 | (exit $ac_status); }; } && | |
9259 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9261 | (eval $ac_try) 2>&5 | |
9262 | ac_status=$? | |
9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9264 | (exit $ac_status); }; }; then | |
9265 | ac_cv_lib_gen_getmntent=yes | |
80992638 | 9266 | else |
ad6254c5 AK |
9267 | echo "$as_me: failed program was:" >&5 |
9268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9269 | ||
9270 | ac_cv_lib_gen_getmntent=no | |
9271 | fi | |
5c7fc7c4 PC |
9272 | rm -f conftest.err conftest.$ac_objext \ |
9273 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9274 | LIBS=$ac_check_lib_save_LIBS |
9275 | fi | |
9276 | echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5 | |
9277 | echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6 | |
9278 | if test $ac_cv_lib_gen_getmntent = yes; then | |
9279 | LIBS="-lgen $LIBS" | |
795ca3e5 AK |
9280 | fi |
9281 | ||
9282 | fi | |
9283 | ||
ad6254c5 AK |
9284 | fi |
9285 | ||
9286 | ||
9287 | for ac_func in getmntent | |
795ca3e5 | 9288 | do |
ad6254c5 AK |
9289 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9290 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9291 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9292 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9294 | else | |
9295 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9296 | /* confdefs.h. */ |
9297 | _ACEOF | |
9298 | cat confdefs.h >>conftest.$ac_ext | |
9299 | cat >>conftest.$ac_ext <<_ACEOF | |
9300 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
9301 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9302 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9303 | #define $ac_func innocuous_$ac_func | |
9304 | ||
795ca3e5 | 9305 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
9306 | which can conflict with char $ac_func (); below. |
9307 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9308 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 9309 | |
ad6254c5 AK |
9310 | #ifdef __STDC__ |
9311 | # include <limits.h> | |
9312 | #else | |
9313 | # include <assert.h> | |
9314 | #endif | |
5c7fc7c4 PC |
9315 | |
9316 | #undef $ac_func | |
9317 | ||
795ca3e5 | 9318 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9319 | #ifdef __cplusplus |
9320 | extern "C" | |
9321 | { | |
9322 | #endif | |
795ca3e5 | 9323 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9324 | builtin and then its argument prototype would still apply. */ |
9325 | char $ac_func (); | |
795ca3e5 AK |
9326 | /* The GNU C library defines this for functions which it implements |
9327 | to always fail with ENOSYS. Some functions are actually named | |
9328 | something starting with __ and the normal name is an alias. */ | |
9329 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9330 | choke me | |
9331 | #else | |
ad6254c5 AK |
9332 | char (*f) () = $ac_func; |
9333 | #endif | |
9334 | #ifdef __cplusplus | |
9335 | } | |
795ca3e5 AK |
9336 | #endif |
9337 | ||
ad6254c5 AK |
9338 | int |
9339 | main () | |
9340 | { | |
9341 | return f != $ac_func; | |
9342 | ; | |
9343 | return 0; | |
9344 | } | |
9345 | _ACEOF | |
9346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9348 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9349 | ac_status=$? |
5c7fc7c4 PC |
9350 | grep -v '^ *+' conftest.er1 >conftest.err |
9351 | rm -f conftest.er1 | |
9352 | cat conftest.err >&5 | |
ad6254c5 AK |
9353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9354 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9355 | { ac_try='test -z "$ac_c_werror_flag" |
9356 | || test ! -s conftest.err' | |
9357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9358 | (eval $ac_try) 2>&5 | |
9359 | ac_status=$? | |
9360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9361 | (exit $ac_status); }; } && | |
9362 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9364 | (eval $ac_try) 2>&5 | |
9365 | ac_status=$? | |
9366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9367 | (exit $ac_status); }; }; then | |
9368 | eval "$as_ac_var=yes" | |
795ca3e5 | 9369 | else |
ad6254c5 AK |
9370 | echo "$as_me: failed program was:" >&5 |
9371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9372 | ||
9373 | eval "$as_ac_var=no" | |
795ca3e5 | 9374 | fi |
5c7fc7c4 PC |
9375 | rm -f conftest.err conftest.$ac_objext \ |
9376 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 9377 | fi |
ad6254c5 AK |
9378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9379 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9380 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9381 | cat >>confdefs.h <<_ACEOF | |
9382 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9383 | _ACEOF | |
795ca3e5 | 9384 | |
795ca3e5 AK |
9385 | fi |
9386 | done | |
9387 | ||
9388 | ||
ad6254c5 AK |
9389 | # AC_FUNC_REALLOC |
9390 | ||
9391 | ||
9392 | for ac_header in sys/select.h sys/socket.h | |
9393 | do | |
9394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9400 | fi | |
9401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
795ca3e5 | 9403 | else |
ad6254c5 AK |
9404 | # Is the header compilable? |
9405 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9406 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9407 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9408 | /* confdefs.h. */ |
9409 | _ACEOF | |
9410 | cat confdefs.h >>conftest.$ac_ext | |
9411 | cat >>conftest.$ac_ext <<_ACEOF | |
9412 | /* end confdefs.h. */ | |
9413 | $ac_includes_default | |
9414 | #include <$ac_header> | |
9415 | _ACEOF | |
9416 | rm -f conftest.$ac_objext | |
9417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9418 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9419 | ac_status=$? |
5c7fc7c4 PC |
9420 | grep -v '^ *+' conftest.er1 >conftest.err |
9421 | rm -f conftest.er1 | |
9422 | cat conftest.err >&5 | |
ad6254c5 AK |
9423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9424 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9425 | { ac_try='test -z "$ac_c_werror_flag" |
9426 | || test ! -s conftest.err' | |
9427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9428 | (eval $ac_try) 2>&5 | |
9429 | ac_status=$? | |
9430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9431 | (exit $ac_status); }; } && | |
9432 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9434 | (eval $ac_try) 2>&5 | |
9435 | ac_status=$? | |
9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9437 | (exit $ac_status); }; }; then | |
9438 | ac_header_compiler=yes | |
80992638 | 9439 | else |
ad6254c5 AK |
9440 | echo "$as_me: failed program was:" >&5 |
9441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9442 | ||
9443 | ac_header_compiler=no | |
9444 | fi | |
5c7fc7c4 | 9445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9446 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9447 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9448 | ||
9449 | # Is the header present? | |
9450 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9451 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9452 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9453 | /* confdefs.h. */ |
9454 | _ACEOF | |
9455 | cat confdefs.h >>conftest.$ac_ext | |
9456 | cat >>conftest.$ac_ext <<_ACEOF | |
9457 | /* end confdefs.h. */ | |
9458 | #include <$ac_header> | |
9459 | _ACEOF | |
9460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9462 | ac_status=$? | |
9463 | grep -v '^ *+' conftest.er1 >conftest.err | |
9464 | rm -f conftest.er1 | |
9465 | cat conftest.err >&5 | |
9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9467 | (exit $ac_status); } >/dev/null; then | |
9468 | if test -s conftest.err; then | |
9469 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 9470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9471 | else |
9472 | ac_cpp_err= | |
9473 | fi | |
9474 | else | |
9475 | ac_cpp_err=yes | |
795ca3e5 | 9476 | fi |
ad6254c5 AK |
9477 | if test -z "$ac_cpp_err"; then |
9478 | ac_header_preproc=yes | |
9479 | else | |
9480 | echo "$as_me: failed program was:" >&5 | |
9481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9482 | ||
9483 | ac_header_preproc=no | |
9484 | fi | |
9485 | rm -f conftest.err conftest.$ac_ext | |
9486 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9487 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9488 | ||
9489 | # So? What about this header? | |
5c7fc7c4 PC |
9490 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9491 | yes:no: ) | |
ad6254c5 AK |
9492 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9493 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
9494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9495 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9496 | ac_header_preproc=yes | |
ad6254c5 | 9497 | ;; |
5c7fc7c4 | 9498 | no:yes:* ) |
ad6254c5 AK |
9499 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9500 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
9501 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9502 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9503 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9504 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9505 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9506 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9508 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
9509 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9510 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9511 | ( |
9512 | cat <<\_ASBOX | |
5c7fc7c4 PC |
9513 | ## ------------------------------------------ ## |
9514 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9515 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9516 | _ASBOX |
9517 | ) | | |
9518 | sed "s/^/$as_me: WARNING: /" >&2 | |
9519 | ;; | |
9520 | esac | |
9521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9525 | else | |
5c7fc7c4 | 9526 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 9527 | fi |
ad6254c5 AK |
9528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8106cdd5 | 9530 | |
795ca3e5 | 9531 | fi |
ad6254c5 AK |
9532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9533 | cat >>confdefs.h <<_ACEOF | |
9534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9535 | _ACEOF | |
9536 | ||
795ca3e5 AK |
9537 | fi |
9538 | ||
ad6254c5 AK |
9539 | done |
9540 | ||
9541 | echo "$as_me:$LINENO: checking types of arguments for select" >&5 | |
9542 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6 | |
9543 | if test "${ac_cv_func_select_args+set}" = set; then | |
9544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9545 | else |
ad6254c5 AK |
9546 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9547 | for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do | |
9548 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9549 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9550 | /* confdefs.h. */ |
9551 | _ACEOF | |
9552 | cat confdefs.h >>conftest.$ac_ext | |
9553 | cat >>conftest.$ac_ext <<_ACEOF | |
9554 | /* end confdefs.h. */ | |
9555 | $ac_includes_default | |
9556 | #if HAVE_SYS_SELECT_H | |
9557 | # include <sys/select.h> | |
9558 | #endif | |
9559 | #if HAVE_SYS_SOCKET_H | |
9560 | # include <sys/socket.h> | |
9561 | #endif | |
9562 | ||
9563 | int | |
9564 | main () | |
9565 | { | |
9566 | extern int select ($ac_arg1, | |
5c7fc7c4 PC |
9567 | $ac_arg234, $ac_arg234, $ac_arg234, |
9568 | $ac_arg5); | |
ad6254c5 AK |
9569 | ; |
9570 | return 0; | |
9571 | } | |
9572 | _ACEOF | |
9573 | rm -f conftest.$ac_objext | |
9574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9575 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9576 | ac_status=$? |
5c7fc7c4 PC |
9577 | grep -v '^ *+' conftest.er1 >conftest.err |
9578 | rm -f conftest.er1 | |
9579 | cat conftest.err >&5 | |
ad6254c5 AK |
9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9581 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9582 | { ac_try='test -z "$ac_c_werror_flag" |
9583 | || test ! -s conftest.err' | |
9584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9585 | (eval $ac_try) 2>&5 | |
9586 | ac_status=$? | |
9587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9588 | (exit $ac_status); }; } && | |
9589 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9591 | (eval $ac_try) 2>&5 | |
9592 | ac_status=$? | |
9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9594 | (exit $ac_status); }; }; then | |
9595 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9596 | else | |
9597 | echo "$as_me: failed program was:" >&5 | |
9598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9599 | ||
9600 | fi | |
5c7fc7c4 | 9601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9602 | done |
9603 | done | |
9604 | done | |
9605 | # Provide a safe default value. | |
9606 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
9607 | ||
26e7f2e0 | 9608 | fi |
ad6254c5 AK |
9609 | echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
9610 | echo "${ECHO_T}$ac_cv_func_select_args" >&6 | |
9611 | ac_save_IFS=$IFS; IFS=',' | |
9612 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9613 | IFS=$ac_save_IFS | |
9614 | shift | |
9615 | ||
9616 | cat >>confdefs.h <<_ACEOF | |
9617 | #define SELECT_TYPE_ARG1 $1 | |
9618 | _ACEOF | |
9619 | ||
9620 | ||
9621 | cat >>confdefs.h <<_ACEOF | |
9622 | #define SELECT_TYPE_ARG234 ($2) | |
9623 | _ACEOF | |
9624 | ||
9625 | ||
9626 | cat >>confdefs.h <<_ACEOF | |
9627 | #define SELECT_TYPE_ARG5 ($3) | |
9628 | _ACEOF | |
9629 | ||
80992638 | 9630 | rm -f conftest* |
80992638 | 9631 | |
8106cdd5 | 9632 | fi |
ad6254c5 AK |
9633 | |
9634 | if test x$FSADM = xyes; then | |
9635 | ||
9636 | ||
9637 | ||
9638 | for ac_header in fstab.h sys/mount.h sys/vfs.h | |
9639 | do | |
9640 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9646 | fi | |
9647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9649 | else | |
9650 | # Is the header compilable? | |
9651 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9653 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9654 | /* confdefs.h. */ |
9655 | _ACEOF | |
9656 | cat confdefs.h >>conftest.$ac_ext | |
9657 | cat >>conftest.$ac_ext <<_ACEOF | |
9658 | /* end confdefs.h. */ | |
9659 | $ac_includes_default | |
9660 | #include <$ac_header> | |
9661 | _ACEOF | |
9662 | rm -f conftest.$ac_objext | |
9663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9664 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9665 | ac_status=$? |
5c7fc7c4 PC |
9666 | grep -v '^ *+' conftest.er1 >conftest.err |
9667 | rm -f conftest.er1 | |
9668 | cat conftest.err >&5 | |
ad6254c5 AK |
9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9670 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9671 | { ac_try='test -z "$ac_c_werror_flag" |
9672 | || test ! -s conftest.err' | |
9673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9674 | (eval $ac_try) 2>&5 | |
9675 | ac_status=$? | |
9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9677 | (exit $ac_status); }; } && | |
9678 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9680 | (eval $ac_try) 2>&5 | |
9681 | ac_status=$? | |
9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9683 | (exit $ac_status); }; }; then | |
9684 | ac_header_compiler=yes | |
9685 | else | |
9686 | echo "$as_me: failed program was:" >&5 | |
9687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9688 | ||
9689 | ac_header_compiler=no | |
9690 | fi | |
5c7fc7c4 | 9691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9692 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9693 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9694 | ||
9695 | # Is the header present? | |
9696 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9697 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9698 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9699 | /* confdefs.h. */ |
9700 | _ACEOF | |
9701 | cat confdefs.h >>conftest.$ac_ext | |
9702 | cat >>conftest.$ac_ext <<_ACEOF | |
9703 | /* end confdefs.h. */ | |
9704 | #include <$ac_header> | |
9705 | _ACEOF | |
9706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9708 | ac_status=$? | |
9709 | grep -v '^ *+' conftest.er1 >conftest.err | |
9710 | rm -f conftest.er1 | |
9711 | cat conftest.err >&5 | |
9712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9713 | (exit $ac_status); } >/dev/null; then | |
9714 | if test -s conftest.err; then | |
9715 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 9716 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9717 | else |
9718 | ac_cpp_err= | |
9719 | fi | |
9720 | else | |
9721 | ac_cpp_err=yes | |
9722 | fi | |
9723 | if test -z "$ac_cpp_err"; then | |
9724 | ac_header_preproc=yes | |
9725 | else | |
9726 | echo "$as_me: failed program was:" >&5 | |
9727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9728 | ||
9729 | ac_header_preproc=no | |
9730 | fi | |
9731 | rm -f conftest.err conftest.$ac_ext | |
9732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9733 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9734 | ||
9735 | # So? What about this header? | |
5c7fc7c4 PC |
9736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9737 | yes:no: ) | |
ad6254c5 AK |
9738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
9740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9742 | ac_header_preproc=yes | |
ad6254c5 | 9743 | ;; |
5c7fc7c4 | 9744 | no:yes:* ) |
ad6254c5 AK |
9745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
9747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
9753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
9755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
9757 | ( |
9758 | cat <<\_ASBOX | |
5c7fc7c4 PC |
9759 | ## ------------------------------------------ ## |
9760 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9761 | ## ------------------------------------------ ## | |
ad6254c5 AK |
9762 | _ASBOX |
9763 | ) | | |
9764 | sed "s/^/$as_me: WARNING: /" >&2 | |
9765 | ;; | |
9766 | esac | |
9767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 9771 | else |
5c7fc7c4 | 9772 | eval "$as_ac_Header=\$ac_header_preproc" |
26e7f2e0 | 9773 | fi |
ad6254c5 AK |
9774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26e7f2e0 | 9776 | |
ad6254c5 AK |
9777 | fi |
9778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9779 | cat >>confdefs.h <<_ACEOF | |
9780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9781 | _ACEOF | |
26e7f2e0 | 9782 | |
d68a82ec | 9783 | else |
ad6254c5 AK |
9784 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9785 | echo "$as_me: error: bailing out" >&2;} | |
9786 | { (exit 1); exit 1; }; } | |
26e7f2e0 AK |
9787 | fi |
9788 | ||
ad6254c5 | 9789 | done |
036f273a | 9790 | |
ad6254c5 AK |
9791 | |
9792 | for ac_func in memmove | |
9793 | do | |
9794 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9795 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9796 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9797 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
036f273a | 9799 | else |
ad6254c5 | 9800 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9801 | /* confdefs.h. */ |
9802 | _ACEOF | |
9803 | cat confdefs.h >>conftest.$ac_ext | |
9804 | cat >>conftest.$ac_ext <<_ACEOF | |
9805 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
9806 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9807 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9808 | #define $ac_func innocuous_$ac_func | |
9809 | ||
ad6254c5 AK |
9810 | /* System header to define __stub macros and hopefully few prototypes, |
9811 | which can conflict with char $ac_func (); below. | |
9812 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9813 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 9814 | |
ad6254c5 AK |
9815 | #ifdef __STDC__ |
9816 | # include <limits.h> | |
9817 | #else | |
9818 | # include <assert.h> | |
9819 | #endif | |
5c7fc7c4 PC |
9820 | |
9821 | #undef $ac_func | |
9822 | ||
036f273a | 9823 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
9824 | #ifdef __cplusplus |
9825 | extern "C" | |
9826 | { | |
9827 | #endif | |
036f273a | 9828 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
9829 | builtin and then its argument prototype would still apply. */ |
9830 | char $ac_func (); | |
9831 | /* The GNU C library defines this for functions which it implements | |
9832 | to always fail with ENOSYS. Some functions are actually named | |
9833 | something starting with __ and the normal name is an alias. */ | |
9834 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9835 | choke me | |
9836 | #else | |
9837 | char (*f) () = $ac_func; | |
9838 | #endif | |
9839 | #ifdef __cplusplus | |
9840 | } | |
9841 | #endif | |
80992638 | 9842 | |
ad6254c5 AK |
9843 | int |
9844 | main () | |
9845 | { | |
9846 | return f != $ac_func; | |
9847 | ; | |
9848 | return 0; | |
9849 | } | |
9850 | _ACEOF | |
9851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 9853 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 9854 | ac_status=$? |
5c7fc7c4 PC |
9855 | grep -v '^ *+' conftest.er1 >conftest.err |
9856 | rm -f conftest.er1 | |
9857 | cat conftest.err >&5 | |
ad6254c5 AK |
9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9859 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9860 | { ac_try='test -z "$ac_c_werror_flag" |
9861 | || test ! -s conftest.err' | |
9862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9863 | (eval $ac_try) 2>&5 | |
9864 | ac_status=$? | |
9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9866 | (exit $ac_status); }; } && | |
9867 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
9868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9869 | (eval $ac_try) 2>&5 | |
9870 | ac_status=$? | |
9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9872 | (exit $ac_status); }; }; then | |
9873 | eval "$as_ac_var=yes" | |
036f273a | 9874 | else |
ad6254c5 AK |
9875 | echo "$as_me: failed program was:" >&5 |
9876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9877 | ||
9878 | eval "$as_ac_var=no" | |
036f273a | 9879 | fi |
5c7fc7c4 PC |
9880 | rm -f conftest.err conftest.$ac_objext \ |
9881 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
9882 | fi |
9883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9884 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9885 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9886 | cat >>confdefs.h <<_ACEOF | |
9887 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9888 | _ACEOF | |
036f273a | 9889 | |
ad6254c5 AK |
9890 | else |
9891 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
9892 | echo "$as_me: error: bailing out" >&2;} | |
9893 | { (exit 1); exit 1; }; } | |
9894 | fi | |
9895 | done | |
036f273a | 9896 | |
036f273a | 9897 | fi |
d68a82ec | 9898 | |
ad6254c5 AK |
9899 | if test x$CLUSTER != xnone; then |
9900 | ||
9901 | ||
9902 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 9903 | do |
ad6254c5 AK |
9904 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9910 | fi | |
9911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9913 | else | |
9914 | # Is the header compilable? | |
9915 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9916 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9917 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9918 | /* confdefs.h. */ |
9919 | _ACEOF | |
9920 | cat confdefs.h >>conftest.$ac_ext | |
9921 | cat >>conftest.$ac_ext <<_ACEOF | |
9922 | /* end confdefs.h. */ | |
9923 | $ac_includes_default | |
9924 | #include <$ac_header> | |
9925 | _ACEOF | |
9926 | rm -f conftest.$ac_objext | |
9927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 9928 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 9929 | ac_status=$? |
5c7fc7c4 PC |
9930 | grep -v '^ *+' conftest.er1 >conftest.err |
9931 | rm -f conftest.er1 | |
9932 | cat conftest.err >&5 | |
ad6254c5 AK |
9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9934 | (exit $ac_status); } && | |
5c7fc7c4 PC |
9935 | { ac_try='test -z "$ac_c_werror_flag" |
9936 | || test ! -s conftest.err' | |
9937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9938 | (eval $ac_try) 2>&5 | |
9939 | ac_status=$? | |
9940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9941 | (exit $ac_status); }; } && | |
9942 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
9943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9944 | (eval $ac_try) 2>&5 | |
9945 | ac_status=$? | |
9946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9947 | (exit $ac_status); }; }; then | |
9948 | ac_header_compiler=yes | |
9949 | else | |
9950 | echo "$as_me: failed program was:" >&5 | |
9951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9952 | ||
9953 | ac_header_compiler=no | |
9954 | fi | |
5c7fc7c4 | 9955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
9956 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9957 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9958 | ||
9959 | # Is the header present? | |
9960 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9961 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9962 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9963 | /* confdefs.h. */ |
9964 | _ACEOF | |
9965 | cat confdefs.h >>conftest.$ac_ext | |
9966 | cat >>conftest.$ac_ext <<_ACEOF | |
9967 | /* end confdefs.h. */ | |
9968 | #include <$ac_header> | |
9969 | _ACEOF | |
9970 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9971 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9972 | ac_status=$? | |
9973 | grep -v '^ *+' conftest.er1 >conftest.err | |
9974 | rm -f conftest.er1 | |
9975 | cat conftest.err >&5 | |
9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9977 | (exit $ac_status); } >/dev/null; then | |
9978 | if test -s conftest.err; then | |
9979 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 9980 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
9981 | else |
9982 | ac_cpp_err= | |
9983 | fi | |
9984 | else | |
9985 | ac_cpp_err=yes | |
8106cdd5 | 9986 | fi |
ad6254c5 AK |
9987 | if test -z "$ac_cpp_err"; then |
9988 | ac_header_preproc=yes | |
9989 | else | |
9990 | echo "$as_me: failed program was:" >&5 | |
9991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9992 | ||
9993 | ac_header_preproc=no | |
9994 | fi | |
9995 | rm -f conftest.err conftest.$ac_ext | |
9996 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9997 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9998 | ||
9999 | # So? What about this header? | |
5c7fc7c4 PC |
10000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10001 | yes:no: ) | |
ad6254c5 AK |
10002 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10003 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10005 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10006 | ac_header_preproc=yes | |
ad6254c5 | 10007 | ;; |
5c7fc7c4 | 10008 | no:yes:* ) |
ad6254c5 AK |
10009 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10011 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10013 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10014 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10015 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10016 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10018 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10019 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10020 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10021 | ( |
10022 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10023 | ## ------------------------------------------ ## |
10024 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10025 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10026 | _ASBOX |
10027 | ) | | |
10028 | sed "s/^/$as_me: WARNING: /" >&2 | |
10029 | ;; | |
10030 | esac | |
10031 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10032 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10033 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10035 | else | |
5c7fc7c4 | 10036 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10037 | fi |
ad6254c5 AK |
10038 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10039 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10040 | ||
10041 | fi | |
10042 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10043 | cat >>confdefs.h <<_ACEOF | |
10044 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10045 | _ACEOF | |
10046 | ||
80992638 | 10047 | else |
ad6254c5 AK |
10048 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10049 | echo "$as_me: error: bailing out" >&2;} | |
10050 | { (exit 1); exit 1; }; } | |
b896caa1 | 10051 | fi |
ad6254c5 | 10052 | |
b896caa1 AK |
10053 | done |
10054 | ||
10055 | ||
ad6254c5 AK |
10056 | for ac_func in socket |
10057 | do | |
10058 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10059 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10060 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10061 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 10063 | else |
ad6254c5 | 10064 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10065 | /* confdefs.h. */ |
10066 | _ACEOF | |
10067 | cat confdefs.h >>conftest.$ac_ext | |
10068 | cat >>conftest.$ac_ext <<_ACEOF | |
10069 | /* end confdefs.h. */ | |
5c7fc7c4 PC |
10070 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10072 | #define $ac_func innocuous_$ac_func | |
10073 | ||
ad6254c5 AK |
10074 | /* System header to define __stub macros and hopefully few prototypes, |
10075 | which can conflict with char $ac_func (); below. | |
10076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10077 | <limits.h> exists even on freestanding compilers. */ | |
5c7fc7c4 | 10078 | |
ad6254c5 AK |
10079 | #ifdef __STDC__ |
10080 | # include <limits.h> | |
10081 | #else | |
10082 | # include <assert.h> | |
10083 | #endif | |
5c7fc7c4 PC |
10084 | |
10085 | #undef $ac_func | |
10086 | ||
795ca3e5 | 10087 | /* Override any gcc2 internal prototype to avoid an error. */ |
ad6254c5 AK |
10088 | #ifdef __cplusplus |
10089 | extern "C" | |
10090 | { | |
10091 | #endif | |
795ca3e5 | 10092 | /* We use char because int might match the return type of a gcc2 |
ad6254c5 AK |
10093 | builtin and then its argument prototype would still apply. */ |
10094 | char $ac_func (); | |
10095 | /* The GNU C library defines this for functions which it implements | |
10096 | to always fail with ENOSYS. Some functions are actually named | |
10097 | something starting with __ and the normal name is an alias. */ | |
10098 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10099 | choke me | |
10100 | #else | |
10101 | char (*f) () = $ac_func; | |
10102 | #endif | |
10103 | #ifdef __cplusplus | |
10104 | } | |
10105 | #endif | |
10106 | ||
10107 | int | |
10108 | main () | |
10109 | { | |
10110 | return f != $ac_func; | |
10111 | ; | |
10112 | return 0; | |
10113 | } | |
10114 | _ACEOF | |
10115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5c7fc7c4 | 10117 | (eval $ac_link) 2>conftest.er1 |
ad6254c5 | 10118 | ac_status=$? |
5c7fc7c4 PC |
10119 | grep -v '^ *+' conftest.er1 >conftest.err |
10120 | rm -f conftest.er1 | |
10121 | cat conftest.err >&5 | |
ad6254c5 AK |
10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10123 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10124 | { ac_try='test -z "$ac_c_werror_flag" |
10125 | || test ! -s conftest.err' | |
10126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10127 | (eval $ac_try) 2>&5 | |
10128 | ac_status=$? | |
10129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10130 | (exit $ac_status); }; } && | |
10131 | { ac_try='test -s conftest$ac_exeext' | |
ad6254c5 AK |
10132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10133 | (eval $ac_try) 2>&5 | |
10134 | ac_status=$? | |
10135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10136 | (exit $ac_status); }; }; then | |
10137 | eval "$as_ac_var=yes" | |
10138 | else | |
10139 | echo "$as_me: failed program was:" >&5 | |
10140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10141 | ||
10142 | eval "$as_ac_var=no" | |
10143 | fi | |
5c7fc7c4 PC |
10144 | rm -f conftest.err conftest.$ac_objext \ |
10145 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 AK |
10146 | fi |
10147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10148 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10149 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10150 | cat >>confdefs.h <<_ACEOF | |
10151 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10152 | _ACEOF | |
10153 | ||
10154 | else | |
10155 | { { echo "$as_me:$LINENO: error: bailing out" >&5 | |
10156 | echo "$as_me: error: bailing out" >&2;} | |
10157 | { (exit 1); exit 1; }; } | |
10158 | fi | |
10159 | done | |
10160 | ||
10161 | fi | |
10162 | ||
10163 | if test x$HAVE_LIBDL = xyes; then | |
10164 | ||
10165 | for ac_header in dlfcn.h | |
10166 | do | |
10167 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10169 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10173 | fi | |
10174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10176 | else | |
10177 | # Is the header compilable? | |
10178 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10179 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10180 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10181 | /* confdefs.h. */ |
10182 | _ACEOF | |
10183 | cat confdefs.h >>conftest.$ac_ext | |
10184 | cat >>conftest.$ac_ext <<_ACEOF | |
10185 | /* end confdefs.h. */ | |
10186 | $ac_includes_default | |
10187 | #include <$ac_header> | |
10188 | _ACEOF | |
10189 | rm -f conftest.$ac_objext | |
10190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10191 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10192 | ac_status=$? |
5c7fc7c4 PC |
10193 | grep -v '^ *+' conftest.er1 >conftest.err |
10194 | rm -f conftest.er1 | |
10195 | cat conftest.err >&5 | |
ad6254c5 AK |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10197 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10198 | { ac_try='test -z "$ac_c_werror_flag" |
10199 | || test ! -s conftest.err' | |
10200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10201 | (eval $ac_try) 2>&5 | |
10202 | ac_status=$? | |
10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10204 | (exit $ac_status); }; } && | |
10205 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10207 | (eval $ac_try) 2>&5 | |
10208 | ac_status=$? | |
10209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10210 | (exit $ac_status); }; }; then | |
10211 | ac_header_compiler=yes | |
10212 | else | |
10213 | echo "$as_me: failed program was:" >&5 | |
10214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10215 | ||
10216 | ac_header_compiler=no | |
10217 | fi | |
5c7fc7c4 | 10218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10219 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10220 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10221 | ||
10222 | # Is the header present? | |
10223 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10225 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10226 | /* confdefs.h. */ |
10227 | _ACEOF | |
10228 | cat confdefs.h >>conftest.$ac_ext | |
10229 | cat >>conftest.$ac_ext <<_ACEOF | |
10230 | /* end confdefs.h. */ | |
10231 | #include <$ac_header> | |
10232 | _ACEOF | |
10233 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10234 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10235 | ac_status=$? | |
10236 | grep -v '^ *+' conftest.er1 >conftest.err | |
10237 | rm -f conftest.er1 | |
10238 | cat conftest.err >&5 | |
10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10240 | (exit $ac_status); } >/dev/null; then | |
10241 | if test -s conftest.err; then | |
10242 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10243 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10244 | else |
10245 | ac_cpp_err= | |
10246 | fi | |
10247 | else | |
10248 | ac_cpp_err=yes | |
10249 | fi | |
10250 | if test -z "$ac_cpp_err"; then | |
10251 | ac_header_preproc=yes | |
10252 | else | |
10253 | echo "$as_me: failed program was:" >&5 | |
10254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10255 | ||
10256 | ac_header_preproc=no | |
10257 | fi | |
10258 | rm -f conftest.err conftest.$ac_ext | |
10259 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10260 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10261 | ||
10262 | # So? What about this header? | |
5c7fc7c4 PC |
10263 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10264 | yes:no: ) | |
ad6254c5 AK |
10265 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10266 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10268 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10269 | ac_header_preproc=yes | |
ad6254c5 | 10270 | ;; |
5c7fc7c4 | 10271 | no:yes:* ) |
ad6254c5 AK |
10272 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10273 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10274 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10275 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10276 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10277 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10278 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10279 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10281 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10282 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10283 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10284 | ( |
10285 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10286 | ## ------------------------------------------ ## |
10287 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10288 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10289 | _ASBOX |
10290 | ) | | |
10291 | sed "s/^/$as_me: WARNING: /" >&2 | |
10292 | ;; | |
10293 | esac | |
10294 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10298 | else | |
5c7fc7c4 | 10299 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10300 | fi |
ad6254c5 AK |
10301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10302 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
80992638 | 10303 | |
8106cdd5 | 10304 | fi |
ad6254c5 AK |
10305 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10306 | cat >>confdefs.h <<_ACEOF | |
10307 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10308 | _ACEOF | |
795ca3e5 AK |
10309 | |
10310 | else | |
ad6254c5 AK |
10311 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10312 | echo "$as_me: error: bailing out" >&2;} | |
10313 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
10314 | fi |
10315 | ||
ad6254c5 | 10316 | done |
80992638 | 10317 | |
ad6254c5 | 10318 | fi |
80992638 | 10319 | |
ad6254c5 | 10320 | if test x$INTL = xyes; then |
83912faa | 10321 | |
ad6254c5 AK |
10322 | for ac_header in libintl.h |
10323 | do | |
10324 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10325 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10326 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10327 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10330 | fi | |
10331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10332 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10333 | else |
ad6254c5 AK |
10334 | # Is the header compilable? |
10335 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10336 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10337 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10338 | /* confdefs.h. */ |
10339 | _ACEOF | |
10340 | cat confdefs.h >>conftest.$ac_ext | |
10341 | cat >>conftest.$ac_ext <<_ACEOF | |
10342 | /* end confdefs.h. */ | |
10343 | $ac_includes_default | |
10344 | #include <$ac_header> | |
10345 | _ACEOF | |
10346 | rm -f conftest.$ac_objext | |
10347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10348 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10349 | ac_status=$? |
5c7fc7c4 PC |
10350 | grep -v '^ *+' conftest.er1 >conftest.err |
10351 | rm -f conftest.er1 | |
10352 | cat conftest.err >&5 | |
ad6254c5 AK |
10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10354 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10355 | { ac_try='test -z "$ac_c_werror_flag" |
10356 | || test ! -s conftest.err' | |
10357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10358 | (eval $ac_try) 2>&5 | |
10359 | ac_status=$? | |
10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10361 | (exit $ac_status); }; } && | |
10362 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10364 | (eval $ac_try) 2>&5 | |
10365 | ac_status=$? | |
10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10367 | (exit $ac_status); }; }; then | |
10368 | ac_header_compiler=yes | |
10369 | else | |
10370 | echo "$as_me: failed program was:" >&5 | |
10371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10372 | ||
10373 | ac_header_compiler=no | |
10374 | fi | |
5c7fc7c4 | 10375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10376 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10377 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10378 | ||
10379 | # Is the header present? | |
10380 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10381 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10382 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10383 | /* confdefs.h. */ |
10384 | _ACEOF | |
10385 | cat confdefs.h >>conftest.$ac_ext | |
10386 | cat >>conftest.$ac_ext <<_ACEOF | |
10387 | /* end confdefs.h. */ | |
10388 | #include <$ac_header> | |
10389 | _ACEOF | |
10390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10392 | ac_status=$? | |
10393 | grep -v '^ *+' conftest.er1 >conftest.err | |
10394 | rm -f conftest.er1 | |
10395 | cat conftest.err >&5 | |
10396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10397 | (exit $ac_status); } >/dev/null; then | |
10398 | if test -s conftest.err; then | |
10399 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10400 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10401 | else |
10402 | ac_cpp_err= | |
10403 | fi | |
10404 | else | |
10405 | ac_cpp_err=yes | |
795ca3e5 | 10406 | fi |
ad6254c5 AK |
10407 | if test -z "$ac_cpp_err"; then |
10408 | ac_header_preproc=yes | |
10409 | else | |
10410 | echo "$as_me: failed program was:" >&5 | |
10411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10412 | ||
10413 | ac_header_preproc=no | |
10414 | fi | |
10415 | rm -f conftest.err conftest.$ac_ext | |
10416 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10417 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10418 | ||
10419 | # So? What about this header? | |
5c7fc7c4 PC |
10420 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10421 | yes:no: ) | |
ad6254c5 AK |
10422 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10423 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10424 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10425 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10426 | ac_header_preproc=yes | |
ad6254c5 | 10427 | ;; |
5c7fc7c4 | 10428 | no:yes:* ) |
ad6254c5 AK |
10429 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10430 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10431 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10432 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10433 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10434 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10435 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10436 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10437 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10438 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10439 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10440 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10441 | ( |
10442 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10443 | ## ------------------------------------------ ## |
10444 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10445 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10446 | _ASBOX |
10447 | ) | | |
10448 | sed "s/^/$as_me: WARNING: /" >&2 | |
10449 | ;; | |
10450 | esac | |
10451 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
80992638 | 10455 | else |
5c7fc7c4 | 10456 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 10457 | fi |
ad6254c5 AK |
10458 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10459 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
83912faa | 10460 | |
69792976 | 10461 | fi |
ad6254c5 AK |
10462 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10463 | cat >>confdefs.h <<_ACEOF | |
10464 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10465 | _ACEOF | |
69792976 | 10466 | |
69792976 | 10467 | else |
ad6254c5 AK |
10468 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10469 | echo "$as_me: error: bailing out" >&2;} | |
10470 | { (exit 1); exit 1; }; } | |
80992638 AK |
10471 | fi |
10472 | ||
ad6254c5 | 10473 | done |
69792976 | 10474 | |
ad6254c5 AK |
10475 | fi |
10476 | ||
10477 | if test x$DEVMAPPER = xyes; then | |
10478 | ||
10479 | for ac_header in libdevmapper.h | |
10480 | do | |
10481 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10487 | fi | |
10488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10490 | else |
ad6254c5 AK |
10491 | # Is the header compilable? |
10492 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10493 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10494 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10495 | /* confdefs.h. */ |
10496 | _ACEOF | |
10497 | cat confdefs.h >>conftest.$ac_ext | |
10498 | cat >>conftest.$ac_ext <<_ACEOF | |
10499 | /* end confdefs.h. */ | |
10500 | $ac_includes_default | |
10501 | #include <$ac_header> | |
10502 | _ACEOF | |
10503 | rm -f conftest.$ac_objext | |
10504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10505 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10506 | ac_status=$? |
5c7fc7c4 PC |
10507 | grep -v '^ *+' conftest.er1 >conftest.err |
10508 | rm -f conftest.er1 | |
10509 | cat conftest.err >&5 | |
ad6254c5 AK |
10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10511 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10512 | { ac_try='test -z "$ac_c_werror_flag" |
10513 | || test ! -s conftest.err' | |
10514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10515 | (eval $ac_try) 2>&5 | |
10516 | ac_status=$? | |
10517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10518 | (exit $ac_status); }; } && | |
10519 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10521 | (eval $ac_try) 2>&5 | |
10522 | ac_status=$? | |
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10524 | (exit $ac_status); }; }; then | |
10525 | ac_header_compiler=yes | |
10526 | else | |
10527 | echo "$as_me: failed program was:" >&5 | |
10528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10529 | ||
10530 | ac_header_compiler=no | |
10531 | fi | |
5c7fc7c4 | 10532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10533 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10534 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10535 | ||
10536 | # Is the header present? | |
10537 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10538 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10539 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10540 | /* confdefs.h. */ |
10541 | _ACEOF | |
10542 | cat confdefs.h >>conftest.$ac_ext | |
10543 | cat >>conftest.$ac_ext <<_ACEOF | |
10544 | /* end confdefs.h. */ | |
10545 | #include <$ac_header> | |
10546 | _ACEOF | |
10547 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10548 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10549 | ac_status=$? | |
10550 | grep -v '^ *+' conftest.er1 >conftest.err | |
10551 | rm -f conftest.er1 | |
10552 | cat conftest.err >&5 | |
10553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10554 | (exit $ac_status); } >/dev/null; then | |
10555 | if test -s conftest.err; then | |
10556 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10557 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10558 | else |
10559 | ac_cpp_err= | |
10560 | fi | |
10561 | else | |
10562 | ac_cpp_err=yes | |
69792976 | 10563 | fi |
ad6254c5 AK |
10564 | if test -z "$ac_cpp_err"; then |
10565 | ac_header_preproc=yes | |
10566 | else | |
10567 | echo "$as_me: failed program was:" >&5 | |
10568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10569 | ||
10570 | ac_header_preproc=no | |
10571 | fi | |
10572 | rm -f conftest.err conftest.$ac_ext | |
10573 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10574 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10575 | ||
10576 | # So? What about this header? | |
5c7fc7c4 PC |
10577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10578 | yes:no: ) | |
ad6254c5 AK |
10579 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10580 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10582 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10583 | ac_header_preproc=yes | |
ad6254c5 | 10584 | ;; |
5c7fc7c4 | 10585 | no:yes:* ) |
ad6254c5 AK |
10586 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10587 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10588 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10589 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10590 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10591 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10592 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10593 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10594 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10595 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10596 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10597 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10598 | ( |
10599 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10600 | ## ------------------------------------------ ## |
10601 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10602 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10603 | _ASBOX |
10604 | ) | | |
10605 | sed "s/^/$as_me: WARNING: /" >&2 | |
10606 | ;; | |
10607 | esac | |
10608 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 10612 | else |
5c7fc7c4 | 10613 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 10614 | fi |
ad6254c5 AK |
10615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10616 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
69792976 | 10617 | |
ad6254c5 AK |
10618 | fi |
10619 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10620 | cat >>confdefs.h <<_ACEOF | |
10621 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10622 | _ACEOF | |
69792976 | 10623 | |
69792976 | 10624 | else |
ad6254c5 AK |
10625 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10626 | echo "$as_me: error: bailing out" >&2;} | |
10627 | { (exit 1); exit 1; }; } | |
83912faa AK |
10628 | fi |
10629 | ||
ad6254c5 AK |
10630 | done |
10631 | ||
80992638 | 10632 | fi |
4a7f3eb2 | 10633 | |
ad6254c5 AK |
10634 | if test x$HAVE_SELINUX = xyes; then |
10635 | ||
10636 | for ac_header in selinux/selinux.h | |
10637 | do | |
10638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10644 | fi | |
10645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10647 | else |
ad6254c5 AK |
10648 | # Is the header compilable? |
10649 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10650 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10651 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10652 | /* confdefs.h. */ |
10653 | _ACEOF | |
10654 | cat confdefs.h >>conftest.$ac_ext | |
10655 | cat >>conftest.$ac_ext <<_ACEOF | |
10656 | /* end confdefs.h. */ | |
10657 | $ac_includes_default | |
10658 | #include <$ac_header> | |
10659 | _ACEOF | |
10660 | rm -f conftest.$ac_objext | |
10661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5c7fc7c4 | 10662 | (eval $ac_compile) 2>conftest.er1 |
ad6254c5 | 10663 | ac_status=$? |
5c7fc7c4 PC |
10664 | grep -v '^ *+' conftest.er1 >conftest.err |
10665 | rm -f conftest.er1 | |
10666 | cat conftest.err >&5 | |
ad6254c5 AK |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10668 | (exit $ac_status); } && | |
5c7fc7c4 PC |
10669 | { ac_try='test -z "$ac_c_werror_flag" |
10670 | || test ! -s conftest.err' | |
10671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10672 | (eval $ac_try) 2>&5 | |
10673 | ac_status=$? | |
10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10675 | (exit $ac_status); }; } && | |
10676 | { ac_try='test -s conftest.$ac_objext' | |
ad6254c5 AK |
10677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10678 | (eval $ac_try) 2>&5 | |
10679 | ac_status=$? | |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); }; }; then | |
10682 | ac_header_compiler=yes | |
10683 | else | |
10684 | echo "$as_me: failed program was:" >&5 | |
10685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10686 | ||
10687 | ac_header_compiler=no | |
10688 | fi | |
5c7fc7c4 | 10689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 AK |
10690 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10691 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10692 | ||
10693 | # Is the header present? | |
10694 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10695 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10696 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10697 | /* confdefs.h. */ |
10698 | _ACEOF | |
10699 | cat confdefs.h >>conftest.$ac_ext | |
10700 | cat >>conftest.$ac_ext <<_ACEOF | |
10701 | /* end confdefs.h. */ | |
10702 | #include <$ac_header> | |
10703 | _ACEOF | |
10704 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10705 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10706 | ac_status=$? | |
10707 | grep -v '^ *+' conftest.er1 >conftest.err | |
10708 | rm -f conftest.er1 | |
10709 | cat conftest.err >&5 | |
10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10711 | (exit $ac_status); } >/dev/null; then | |
10712 | if test -s conftest.err; then | |
10713 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5c7fc7c4 | 10714 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ad6254c5 AK |
10715 | else |
10716 | ac_cpp_err= | |
10717 | fi | |
10718 | else | |
10719 | ac_cpp_err=yes | |
10720 | fi | |
10721 | if test -z "$ac_cpp_err"; then | |
10722 | ac_header_preproc=yes | |
10723 | else | |
10724 | echo "$as_me: failed program was:" >&5 | |
10725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10726 | ||
10727 | ac_header_preproc=no | |
10728 | fi | |
10729 | rm -f conftest.err conftest.$ac_ext | |
10730 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10731 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10732 | ||
10733 | # So? What about this header? | |
5c7fc7c4 PC |
10734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10735 | yes:no: ) | |
ad6254c5 AK |
10736 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10737 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5c7fc7c4 PC |
10738 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10739 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10740 | ac_header_preproc=yes | |
ad6254c5 | 10741 | ;; |
5c7fc7c4 | 10742 | no:yes:* ) |
ad6254c5 AK |
10743 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10744 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5c7fc7c4 PC |
10745 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10746 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10747 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10748 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10749 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10750 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
ad6254c5 AK |
10751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10752 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5c7fc7c4 PC |
10753 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10754 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad6254c5 AK |
10755 | ( |
10756 | cat <<\_ASBOX | |
5c7fc7c4 PC |
10757 | ## ------------------------------------------ ## |
10758 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10759 | ## ------------------------------------------ ## | |
ad6254c5 AK |
10760 | _ASBOX |
10761 | ) | | |
10762 | sed "s/^/$as_me: WARNING: /" >&2 | |
10763 | ;; | |
10764 | esac | |
10765 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10767 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10769 | else | |
5c7fc7c4 | 10770 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 10771 | fi |
ad6254c5 AK |
10772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10773 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4a7f3eb2 | 10774 | |
ad6254c5 AK |
10775 | fi |
10776 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10777 | cat >>confdefs.h <<_ACEOF | |
10778 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10779 | _ACEOF | |
0a62c911 | 10780 | |
0a62c911 | 10781 | else |
ad6254c5 AK |
10782 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10783 | echo "$as_me: error: bailing out" >&2;} | |
10784 | { (exit 1); exit 1; }; } | |
80992638 AK |
10785 | fi |
10786 | ||
ad6254c5 | 10787 | done |
0a62c911 | 10788 | |
ad6254c5 | 10789 | fi |
0a62c911 | 10790 | |
a653923f AK |
10791 | ################################################################################ |
10792 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10793 | set dummy modprobe; ac_word=$2 | |
10794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10796 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then | |
10797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10798 | else | |
10799 | case $MODPROBE_CMD in | |
10800 | [\\/]* | ?:[\\/]*) | |
10801 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10802 | ;; | |
10803 | *) | |
10804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10805 | for as_dir in $PATH | |
10806 | do | |
10807 | IFS=$as_save_IFS | |
10808 | test -z "$as_dir" && as_dir=. | |
10809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10810 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10811 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
10812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10813 | break 2 | |
10814 | fi | |
10815 | done | |
10816 | done | |
10817 | ||
10818 | ;; | |
10819 | esac | |
10820 | fi | |
10821 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
10822 | ||
10823 | if test -n "$MODPROBE_CMD"; then | |
10824 | echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 | |
10825 | echo "${ECHO_T}$MODPROBE_CMD" >&6 | |
10826 | else | |
10827 | echo "$as_me:$LINENO: result: no" >&5 | |
10828 | echo "${ECHO_T}no" >&6 | |
10829 | fi | |
10830 | ||
10831 | ||
10832 | if test x$MODPROBE_CMD != x; then | |
10833 | CFLAGS="$CFLAGS -DMODPROBE_CMD=\\\"$MODPROBE_CMD\\\"" | |
10834 | fi | |
10835 | ||
80992638 | 10836 | ################################################################################ |
fae0c576 AK |
10837 | if test "-f VERSION"; then |
10838 | LVM_VERSION="\"`cat VERSION`\"" | |
10839 | else | |
10840 | LVM_VERSION="Unknown" | |
10841 | fi | |
10842 | ||
80992638 | 10843 | ################################################################################ |
fae0c576 | 10844 | |
83912faa | 10845 | |
795ca3e5 AK |
10846 | |
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
5a52dca9 | 10852 | |
8ef2b021 | 10853 | |
199e490e | 10854 | |
69792976 AK |
10855 | |
10856 | ||
10857 | ||
10858 | ||
8106cdd5 AK |
10859 | |
10860 | ||
10861 | ||
10862 | ||
10863 | ||
d68a82ec | 10864 | |
036f273a | 10865 | |
7d1552c9 | 10866 | |
8106cdd5 | 10867 | |
0a62c911 | 10868 | |
8106cdd5 | 10869 | |
4a7f3eb2 | 10870 | |
4922197a AK |
10871 | |
10872 | ||
d8ac0fbc | 10873 | |
1a9ea74d | 10874 | |
8ce0cbda | 10875 | |
06f62ad1 | 10876 | |
d3c8211f AK |
10877 | |
10878 | ||
80992638 | 10879 | ################################################################################ |
06f62ad1 | 10880 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile" |
ad6254c5 | 10881 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10882 | # This file is a shell script that caches the results of configure |
10883 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10884 | # scripts and configure runs, see configure's option --config-cache. |
10885 | # It is not useful on other systems. If it contains results you don't | |
10886 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10887 | # |
ad6254c5 AK |
10888 | # config.status only pays attention to the cache file if you give it |
10889 | # the --recheck option to rerun configure. | |
795ca3e5 | 10890 | # |
ad6254c5 AK |
10891 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10892 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10893 | # following values. | |
10894 | ||
10895 | _ACEOF | |
10896 | ||
795ca3e5 AK |
10897 | # The following way of writing the cache mishandles newlines in values, |
10898 | # but we know of no workaround that is simple, portable, and efficient. | |
10899 | # So, don't put newlines in cache variables' values. | |
10900 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10901 | # and sets the high bit in the cache file unless we assign to the vars. | |
ad6254c5 AK |
10902 | { |
10903 | (set) 2>&1 | | |
10904 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10905 | *ac_space=\ *) | |
10906 | # `set' does not quote correctly, so add quotes (double-quote | |
10907 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10908 | sed -n \ | |
5c7fc7c4 PC |
10909 | "s/'/'\\\\''/g; |
10910 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ad6254c5 AK |
10911 | ;; |
10912 | *) | |
10913 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10914 | sed -n \ | |
5c7fc7c4 | 10915 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ad6254c5 AK |
10916 | ;; |
10917 | esac; | |
10918 | } | | |
10919 | sed ' | |
10920 | t clear | |
10921 | : clear | |
10922 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10923 | t end | |
10924 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10925 | : end' >>confcache | |
10926 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 10927 | if test -w $cache_file; then |
ad6254c5 AK |
10928 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
10929 | cat confcache >$cache_file | |
795ca3e5 AK |
10930 | else |
10931 | echo "not updating unwritable cache $cache_file" | |
10932 | fi | |
10933 | fi | |
10934 | rm -f confcache | |
10935 | ||
795ca3e5 AK |
10936 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10937 | # Let make expand exec_prefix. | |
10938 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10939 | ||
ad6254c5 AK |
10940 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
10941 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10942 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10943 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 10944 | if test "x$srcdir" = x.; then |
5c7fc7c4 | 10945 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
ad6254c5 AK |
10946 | s/:*\$(srcdir):*/:/; |
10947 | s/:*\${srcdir}:*/:/; | |
10948 | s/:*@srcdir@:*/:/; | |
5c7fc7c4 | 10949 | s/^\([^=]*=[ ]*\):*/\1/; |
ad6254c5 | 10950 | s/:*$//; |
5c7fc7c4 | 10951 | s/^[^=]*=[ ]*$//; |
ad6254c5 | 10952 | }' |
795ca3e5 AK |
10953 | fi |
10954 | ||
795ca3e5 AK |
10955 | # Transform confdefs.h into DEFS. |
10956 | # Protect against shell expansion while executing Makefile rules. | |
10957 | # Protect against Makefile macro expansion. | |
ad6254c5 AK |
10958 | # |
10959 | # If the first sed substitution is executed (which looks for macros that | |
10960 | # take arguments), then we branch to the quote section. Otherwise, | |
10961 | # look for a macro that doesn't take arguments. | |
10962 | cat >confdef2opt.sed <<\_ACEOF | |
10963 | t clear | |
10964 | : clear | |
5c7fc7c4 | 10965 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 | 10966 | t quote |
5c7fc7c4 | 10967 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
ad6254c5 AK |
10968 | t quote |
10969 | d | |
10970 | : quote | |
5c7fc7c4 | 10971 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
ad6254c5 AK |
10972 | s,\[,\\&,g |
10973 | s,\],\\&,g | |
10974 | s,\$,$$,g | |
10975 | p | |
10976 | _ACEOF | |
10977 | # We use echo to avoid assuming a particular line-breaking character. | |
10978 | # The extra dot is to prevent the shell from consuming trailing | |
10979 | # line-breaks from the sub-command output. A line-break within | |
10980 | # single-quotes doesn't work because, if this script is created in a | |
10981 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
10982 | # would break. | |
10983 | ac_LF_and_DOT=`echo; echo .` | |
10984 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
10985 | rm -f confdef2opt.sed | |
10986 | ||
10987 | ||
10988 | ac_libobjs= | |
10989 | ac_ltlibobjs= | |
10990 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10991 | # 1. Remove the extension, and $U if already installed. | |
10992 | ac_i=`echo "$ac_i" | | |
5c7fc7c4 | 10993 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
ad6254c5 AK |
10994 | # 2. Add them. |
10995 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
10996 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
10997 | done | |
10998 | LIBOBJS=$ac_libobjs | |
80992638 | 10999 | |
ad6254c5 AK |
11000 | LTLIBOBJS=$ac_ltlibobjs |
11001 | ||
11002 | ||
11003 | ||
11004 | : ${CONFIG_STATUS=./config.status} | |
11005 | ac_clean_files_save=$ac_clean_files | |
11006 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11007 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11008 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11009 | cat >$CONFIG_STATUS <<_ACEOF | |
11010 | #! $SHELL | |
11011 | # Generated by $as_me. | |
795ca3e5 | 11012 | # Run this file to recreate the current configuration. |
795ca3e5 | 11013 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11014 | # configure, is in config.log if it exists. |
11015 | ||
11016 | debug=false | |
11017 | ac_cs_recheck=false | |
11018 | ac_cs_silent=false | |
11019 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11020 | _ACEOF | |
11021 | ||
11022 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11023 | ## --------------------- ## | |
11024 | ## M4sh Initialization. ## | |
11025 | ## --------------------- ## | |
11026 | ||
11027 | # Be Bourne compatible | |
11028 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11029 | emulate sh | |
11030 | NULLCMD=: | |
11031 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11032 | # is contrary to our usage. Disable this feature. | |
11033 | alias -g '${1+"$@"}'='"$@"' | |
11034 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11035 | set -o posix | |
11036 | fi | |
5c7fc7c4 | 11037 | DUALCASE=1; export DUALCASE # for MKS sh |
ad6254c5 AK |
11038 | |
11039 | # Support unset when possible. | |
5c7fc7c4 | 11040 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11041 | as_unset=unset |
11042 | else | |
11043 | as_unset=false | |
11044 | fi | |
8106cdd5 | 11045 | |
ad6254c5 AK |
11046 | |
11047 | # Work around bugs in pre-3.0 UWIN ksh. | |
11048 | $as_unset ENV MAIL MAILPATH | |
11049 | PS1='$ ' | |
11050 | PS2='> ' | |
11051 | PS4='+ ' | |
11052 | ||
11053 | # NLS nuisances. | |
11054 | for as_var in \ | |
11055 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11056 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11057 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 11058 | do |
5c7fc7c4 | 11059 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
11060 | eval $as_var=C; export $as_var |
11061 | else | |
11062 | $as_unset $as_var | |
11063 | fi | |
8106cdd5 AK |
11064 | done |
11065 | ||
ad6254c5 AK |
11066 | # Required to use basename. |
11067 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11068 | as_expr=expr | |
11069 | else | |
11070 | as_expr=false | |
11071 | fi | |
8106cdd5 | 11072 | |
ad6254c5 AK |
11073 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
11074 | as_basename=basename | |
11075 | else | |
11076 | as_basename=false | |
11077 | fi | |
11078 | ||
11079 | ||
11080 | # Name of the executable. | |
11081 | as_me=`$as_basename "$0" || | |
11082 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11083 | X"$0" : 'X\(//\)$' \| \ | |
11084 | X"$0" : 'X\(/\)$' \| \ | |
11085 | . : '\(.\)' 2>/dev/null || | |
11086 | echo X/"$0" | | |
11087 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11088 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11089 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11090 | s/.*/./; q'` | |
11091 | ||
11092 | ||
11093 | # PATH needs CR, and LINENO needs CR and PATH. | |
11094 | # Avoid depending upon Character Ranges. | |
11095 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11096 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11097 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11098 | as_cr_digits='0123456789' | |
11099 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11100 | ||
11101 | # The user is always right. | |
11102 | if test "${PATH_SEPARATOR+set}" != set; then | |
11103 | echo "#! /bin/sh" >conf$$.sh | |
11104 | echo "exit 0" >>conf$$.sh | |
11105 | chmod +x conf$$.sh | |
11106 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11107 | PATH_SEPARATOR=';' | |
80992638 | 11108 | else |
ad6254c5 | 11109 | PATH_SEPARATOR=: |
80992638 | 11110 | fi |
ad6254c5 AK |
11111 | rm -f conf$$.sh |
11112 | fi | |
11113 | ||
11114 | ||
11115 | as_lineno_1=$LINENO | |
11116 | as_lineno_2=$LINENO | |
11117 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11118 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11119 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11120 | # Find who we are. Look in the path if we contain no path at all | |
11121 | # relative or not. | |
11122 | case $0 in | |
11123 | *[\\/]* ) as_myself=$0 ;; | |
11124 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11125 | for as_dir in $PATH | |
11126 | do | |
11127 | IFS=$as_save_IFS | |
11128 | test -z "$as_dir" && as_dir=. | |
11129 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11130 | done | |
11131 | ||
11132 | ;; | |
11133 | esac | |
11134 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11135 | # in which case we are not to be found in the path. | |
11136 | if test "x$as_myself" = x; then | |
11137 | as_myself=$0 | |
11138 | fi | |
11139 | if test ! -f "$as_myself"; then | |
11140 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11141 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11142 | { (exit 1); exit 1; }; } | |
8106cdd5 | 11143 | fi |
ad6254c5 AK |
11144 | case $CONFIG_SHELL in |
11145 | '') | |
11146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11147 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11148 | do | |
11149 | IFS=$as_save_IFS | |
11150 | test -z "$as_dir" && as_dir=. | |
11151 | for as_base in sh bash ksh sh5; do | |
11152 | case $as_dir in | |
11153 | /*) | |
11154 | if ("$as_dir/$as_base" -c ' | |
11155 | as_lineno_1=$LINENO | |
11156 | as_lineno_2=$LINENO | |
11157 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11158 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11159 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11160 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11161 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11162 | CONFIG_SHELL=$as_dir/$as_base | |
11163 | export CONFIG_SHELL | |
11164 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11165 | fi;; | |
11166 | esac | |
11167 | done | |
80992638 | 11168 | done |
ad6254c5 | 11169 | ;; |
795ca3e5 AK |
11170 | esac |
11171 | ||
ad6254c5 AK |
11172 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11173 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11174 | # line-number line before each line; the second 'sed' does the real | |
11175 | # work. The second script uses 'N' to pair each line-number line | |
11176 | # with the numbered line, and appends trailing '-' during | |
11177 | # substitution so that $LINENO is not a special case at line end. | |
11178 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11179 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11180 | sed '=' <$as_myself | | |
11181 | sed ' | |
11182 | N | |
11183 | s,$,-, | |
11184 | : loop | |
11185 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11186 | t loop | |
11187 | s,-$,, | |
11188 | s,^['$as_cr_digits']*\n,, | |
11189 | ' >$as_me.lineno && | |
11190 | chmod +x $as_me.lineno || | |
11191 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11192 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11193 | { (exit 1); exit 1; }; } | |
11194 | ||
11195 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11196 | # (the dirname of $[0] is not the place where we might find the | |
11197 | # original and so on. Autoconf is especially sensible to this). | |
11198 | . ./$as_me.lineno | |
11199 | # Exit status is that of the last command. | |
11200 | exit | |
11201 | } | |
11202 | ||
11203 | ||
11204 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11205 | *c*,-n*) ECHO_N= ECHO_C=' | |
11206 | ' ECHO_T=' ' ;; | |
11207 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11208 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11209 | esac | |
11210 | ||
11211 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11212 | as_expr=expr | |
11213 | else | |
11214 | as_expr=false | |
11215 | fi | |
80992638 | 11216 | |
ad6254c5 AK |
11217 | rm -f conf$$ conf$$.exe conf$$.file |
11218 | echo >conf$$.file | |
11219 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11220 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11221 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11222 | if test -f conf$$.exe; then | |
11223 | # Don't use ln at all; we don't have any links | |
11224 | as_ln_s='cp -p' | |
8106cdd5 | 11225 | else |
ad6254c5 | 11226 | as_ln_s='ln -s' |
80992638 | 11227 | fi |
ad6254c5 AK |
11228 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11229 | as_ln_s=ln | |
11230 | else | |
11231 | as_ln_s='cp -p' | |
11232 | fi | |
11233 | rm -f conf$$ conf$$.exe conf$$.file | |
8106cdd5 | 11234 | |
ad6254c5 AK |
11235 | if mkdir -p . 2>/dev/null; then |
11236 | as_mkdir_p=: | |
11237 | else | |
5c7fc7c4 | 11238 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11239 | as_mkdir_p=false |
11240 | fi | |
11241 | ||
11242 | as_executable_p="test -f" | |
11243 | ||
11244 | # Sed expression to map a string onto a valid CPP name. | |
5c7fc7c4 | 11245 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11246 | |
11247 | # Sed expression to map a string onto a valid variable name. | |
5c7fc7c4 | 11248 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11249 | |
11250 | ||
11251 | # IFS | |
11252 | # We need space, tab and new line, in precisely that order. | |
11253 | as_nl=' | |
11254 | ' | |
11255 | IFS=" $as_nl" | |
11256 | ||
11257 | # CDPATH. | |
11258 | $as_unset CDPATH | |
11259 | ||
11260 | exec 6>&1 | |
11261 | ||
11262 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11263 | # report actual input values of CONFIG_FILES etc. instead of their | |
11264 | # values after options handling. Logging --version etc. is OK. | |
11265 | exec 5>>config.log | |
11266 | { | |
11267 | echo | |
11268 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11269 | ## Running $as_me. ## | |
11270 | _ASBOX | |
11271 | } >&5 | |
11272 | cat >&5 <<_CSEOF | |
11273 | ||
11274 | This file was extended by $as_me, which was | |
5c7fc7c4 | 11275 | generated by GNU Autoconf 2.59. Invocation command line was |
ad6254c5 AK |
11276 | |
11277 | CONFIG_FILES = $CONFIG_FILES | |
11278 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11279 | CONFIG_LINKS = $CONFIG_LINKS | |
11280 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11281 | $ $0 $@ | |
11282 | ||
11283 | _CSEOF | |
11284 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11285 | echo >&5 | |
11286 | _ACEOF | |
11287 | ||
11288 | # Files that config.status was made for. | |
11289 | if test -n "$ac_config_files"; then | |
11290 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11291 | fi | |
11292 | ||
11293 | if test -n "$ac_config_headers"; then | |
11294 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11295 | fi | |
11296 | ||
11297 | if test -n "$ac_config_links"; then | |
11298 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11299 | fi | |
11300 | ||
11301 | if test -n "$ac_config_commands"; then | |
11302 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11303 | fi | |
11304 | ||
11305 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11306 | ||
11307 | ac_cs_usage="\ | |
11308 | \`$as_me' instantiates files from templates according to the | |
11309 | current configuration. | |
11310 | ||
11311 | Usage: $0 [OPTIONS] [FILE]... | |
11312 | ||
11313 | -h, --help print this help, then exit | |
11314 | -V, --version print version number, then exit | |
11315 | -q, --quiet do not print progress messages | |
11316 | -d, --debug don't remove temporary files | |
11317 | --recheck update $as_me by reconfiguring in the same conditions | |
11318 | --file=FILE[:TEMPLATE] | |
5c7fc7c4 | 11319 | instantiate the configuration file FILE |
ad6254c5 AK |
11320 | |
11321 | Configuration files: | |
11322 | $config_files | |
11323 | ||
11324 | Report bugs to <bug-autoconf@gnu.org>." | |
11325 | _ACEOF | |
11326 | ||
11327 | cat >>$CONFIG_STATUS <<_ACEOF | |
11328 | ac_cs_version="\\ | |
11329 | config.status | |
5c7fc7c4 | 11330 | configured by $0, generated by GNU Autoconf 2.59, |
ad6254c5 AK |
11331 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
11332 | ||
5c7fc7c4 | 11333 | Copyright (C) 2003 Free Software Foundation, Inc. |
ad6254c5 AK |
11334 | This config.status script is free software; the Free Software Foundation |
11335 | gives unlimited permission to copy, distribute and modify it." | |
11336 | srcdir=$srcdir | |
11337 | INSTALL="$INSTALL" | |
11338 | _ACEOF | |
11339 | ||
11340 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11341 | # If no file are specified by the user, then we need to provide default | |
11342 | # value. By we need to know if files were specified by the user. | |
11343 | ac_need_defaults=: | |
11344 | while test $# != 0 | |
11345 | do | |
11346 | case $1 in | |
11347 | --*=*) | |
11348 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11349 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11350 | ac_shift=: | |
11351 | ;; | |
11352 | -*) | |
11353 | ac_option=$1 | |
11354 | ac_optarg=$2 | |
11355 | ac_shift=shift | |
11356 | ;; | |
11357 | *) # This is not an option, so the user has probably given explicit | |
11358 | # arguments. | |
11359 | ac_option=$1 | |
11360 | ac_need_defaults=false;; | |
11361 | esac | |
11362 | ||
11363 | case $ac_option in | |
11364 | # Handling of the options. | |
11365 | _ACEOF | |
11366 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11367 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11368 | ac_cs_recheck=: ;; | |
11369 | --version | --vers* | -V ) | |
11370 | echo "$ac_cs_version"; exit 0 ;; | |
11371 | --he | --h) | |
11372 | # Conflict between --help and --header | |
11373 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11374 | Try \`$0 --help' for more information." >&5 | |
11375 | echo "$as_me: error: ambiguous option: $1 | |
11376 | Try \`$0 --help' for more information." >&2;} | |
11377 | { (exit 1); exit 1; }; };; | |
11378 | --help | --hel | -h ) | |
11379 | echo "$ac_cs_usage"; exit 0 ;; | |
11380 | --debug | --d* | -d ) | |
11381 | debug=: ;; | |
11382 | --file | --fil | --fi | --f ) | |
11383 | $ac_shift | |
11384 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11385 | ac_need_defaults=false;; | |
11386 | --header | --heade | --head | --hea ) | |
11387 | $ac_shift | |
11388 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11389 | ac_need_defaults=false;; | |
11390 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11391 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11392 | ac_cs_silent=: ;; | |
11393 | ||
11394 | # This is an error. | |
11395 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11396 | Try \`$0 --help' for more information." >&5 | |
11397 | echo "$as_me: error: unrecognized option: $1 | |
11398 | Try \`$0 --help' for more information." >&2;} | |
11399 | { (exit 1); exit 1; }; } ;; | |
11400 | ||
11401 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11402 | ||
11403 | esac | |
11404 | shift | |
11405 | done | |
11406 | ||
11407 | ac_configure_extra_args= | |
11408 | ||
11409 | if $ac_cs_silent; then | |
11410 | exec 6>/dev/null | |
11411 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11412 | fi | |
11413 | ||
11414 | _ACEOF | |
11415 | cat >>$CONFIG_STATUS <<_ACEOF | |
11416 | if \$ac_cs_recheck; then | |
11417 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11418 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11419 | fi | |
11420 | ||
11421 | _ACEOF | |
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11428 | for ac_config_target in $ac_config_targets | |
11429 | do | |
11430 | case "$ac_config_target" in | |
11431 | # Handling of arguments. | |
11432 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11433 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11434 | "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11435 | "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
06f62ad1 AK |
11436 | "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; |
11437 | "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
ad6254c5 AK |
11438 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11439 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
11440 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
11441 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
11442 | "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11443 | "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11444 | "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
11445 | "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
11446 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
11447 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
11448 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
11449 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
11450 | "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;; | |
11451 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
11452 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
11453 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
11454 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
11455 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
11456 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11457 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11458 | { (exit 1); exit 1; }; };; | |
80992638 | 11459 | esac |
ad6254c5 AK |
11460 | done |
11461 | ||
11462 | # If the user did not use the arguments to specify the items to instantiate, | |
11463 | # then the envvar interface is used. Set only those that are not. | |
11464 | # We use the long form for the default assignment because of an extremely | |
11465 | # bizarre bug on SunOS 4.1.3. | |
11466 | if $ac_need_defaults; then | |
11467 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11468 | fi | |
11469 | ||
11470 | # Have a temporary directory for convenience. Make it in the build tree | |
11471 | # simply because there is no reason to put it here, and in addition, | |
11472 | # creating and moving files from /tmp can sometimes cause problems. | |
11473 | # Create a temporary directory, and hook for its removal unless debugging. | |
11474 | $debug || | |
11475 | { | |
11476 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11477 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11478 | } | |
11479 | ||
11480 | # Create a (secure) tmp directory for tmp files. | |
11481 | ||
11482 | { | |
11483 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11484 | test -n "$tmp" && test -d "$tmp" | |
11485 | } || | |
11486 | { | |
11487 | tmp=./confstat$$-$RANDOM | |
11488 | (umask 077 && mkdir $tmp) | |
11489 | } || | |
11490 | { | |
11491 | echo "$me: cannot create a temporary directory in ." >&2 | |
11492 | { (exit 1); exit 1; } | |
11493 | } | |
11494 | ||
11495 | _ACEOF | |
11496 | ||
11497 | cat >>$CONFIG_STATUS <<_ACEOF | |
11498 | ||
11499 | # | |
11500 | # CONFIG_FILES section. | |
11501 | # | |
11502 | ||
11503 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11504 | # This happens for instance when ./config.status config.h | |
11505 | if test -n "\$CONFIG_FILES"; then | |
11506 | # Protect against being on the right side of a sed subst in config.status. | |
11507 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11508 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11509 | s,@SHELL@,$SHELL,;t t | |
11510 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11511 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11512 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11513 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11514 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11515 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11516 | s,@exec_prefix@,$exec_prefix,;t t | |
11517 | s,@prefix@,$prefix,;t t | |
11518 | s,@program_transform_name@,$program_transform_name,;t t | |
11519 | s,@bindir@,$bindir,;t t | |
11520 | s,@sbindir@,$sbindir,;t t | |
11521 | s,@libexecdir@,$libexecdir,;t t | |
11522 | s,@datadir@,$datadir,;t t | |
11523 | s,@sysconfdir@,$sysconfdir,;t t | |
11524 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11525 | s,@localstatedir@,$localstatedir,;t t | |
11526 | s,@libdir@,$libdir,;t t | |
11527 | s,@includedir@,$includedir,;t t | |
11528 | s,@oldincludedir@,$oldincludedir,;t t | |
11529 | s,@infodir@,$infodir,;t t | |
11530 | s,@mandir@,$mandir,;t t | |
11531 | s,@build_alias@,$build_alias,;t t | |
11532 | s,@host_alias@,$host_alias,;t t | |
11533 | s,@target_alias@,$target_alias,;t t | |
11534 | s,@DEFS@,$DEFS,;t t | |
11535 | s,@ECHO_C@,$ECHO_C,;t t | |
11536 | s,@ECHO_N@,$ECHO_N,;t t | |
11537 | s,@ECHO_T@,$ECHO_T,;t t | |
11538 | s,@LIBS@,$LIBS,;t t | |
11539 | s,@build@,$build,;t t | |
11540 | s,@build_cpu@,$build_cpu,;t t | |
11541 | s,@build_vendor@,$build_vendor,;t t | |
11542 | s,@build_os@,$build_os,;t t | |
11543 | s,@host@,$host,;t t | |
11544 | s,@host_cpu@,$host_cpu,;t t | |
11545 | s,@host_vendor@,$host_vendor,;t t | |
11546 | s,@host_os@,$host_os,;t t | |
11547 | s,@target@,$target,;t t | |
11548 | s,@target_cpu@,$target_cpu,;t t | |
11549 | s,@target_vendor@,$target_vendor,;t t | |
11550 | s,@target_os@,$target_os,;t t | |
11551 | s,@AWK@,$AWK,;t t | |
11552 | s,@CC@,$CC,;t t | |
11553 | s,@CFLAGS@,$CFLAGS,;t t | |
11554 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11555 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11556 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11557 | s,@EXEEXT@,$EXEEXT,;t t | |
11558 | s,@OBJEXT@,$OBJEXT,;t t | |
11559 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11560 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11561 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11562 | s,@LN_S@,$LN_S,;t t | |
11563 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11564 | s,@RANLIB@,$RANLIB,;t t | |
11565 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
11566 | s,@CPP@,$CPP,;t t | |
11567 | s,@EGREP@,$EGREP,;t t | |
11568 | s,@ALLOCA@,$ALLOCA,;t t | |
11569 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11570 | s,@POW_LIB@,$POW_LIB,;t t | |
11571 | s,@MSGFMT@,$MSGFMT,;t t | |
a653923f | 11572 | s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t |
ad6254c5 AK |
11573 | s,@JOBS@,$JOBS,;t t |
11574 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
11575 | s,@LVM1@,$LVM1,;t t | |
11576 | s,@POOL@,$POOL,;t t | |
11577 | s,@SNAPSHOTS@,$SNAPSHOTS,;t t | |
11578 | s,@MIRRORS@,$MIRRORS,;t t | |
11579 | s,@OWNER@,$OWNER,;t t | |
11580 | s,@GROUP@,$GROUP,;t t | |
11581 | s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t | |
11582 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
11583 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
11584 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
11585 | s,@LDDEPS@,$LDDEPS,;t t | |
11586 | s,@SOFLAG@,$SOFLAG,;t t | |
11587 | s,@LVM_VERSION@,$LVM_VERSION,;t t | |
11588 | s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t | |
11589 | s,@DEBUG@,$DEBUG,;t t | |
11590 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
11591 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
11592 | s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t | |
11593 | s,@CMDLIB@,$CMDLIB,;t t | |
11594 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
11595 | s,@CONFDIR@,$CONFDIR,;t t | |
11596 | s,@STATICDIR@,$STATICDIR,;t t | |
11597 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t | |
11598 | s,@INTL@,$INTL,;t t | |
11599 | s,@CLVMD@,$CLVMD,;t t | |
11600 | s,@CLUSTER@,$CLUSTER,;t t | |
11601 | s,@FSADM@,$FSADM,;t t | |
06f62ad1 | 11602 | s,@DMEVENTD@,$DMEVENTD,;t t |
ad6254c5 AK |
11603 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
11604 | CEOF | |
11605 | ||
11606 | _ACEOF | |
11607 | ||
11608 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11609 | # Split the substitutions into bite-sized pieces for seds with | |
11610 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11611 | ac_max_sed_lines=48 | |
11612 | ac_sed_frag=1 # Number of current file. | |
11613 | ac_beg=1 # First line for current file. | |
11614 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11615 | ac_more_lines=: | |
11616 | ac_sed_cmds= | |
11617 | while $ac_more_lines; do | |
11618 | if test $ac_beg -gt 1; then | |
11619 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11620 | else | |
11621 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11622 | fi | |
11623 | if test ! -s $tmp/subs.frag; then | |
11624 | ac_more_lines=false | |
11625 | else | |
11626 | # The purpose of the label and of the branching condition is to | |
11627 | # speed up the sed processing (if there are no `@' at all, there | |
11628 | # is no need to browse any of the substitutions). | |
11629 | # These are the two extra sed commands mentioned above. | |
11630 | (echo ':t | |
11631 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11632 | if test -z "$ac_sed_cmds"; then | |
5c7fc7c4 | 11633 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 | 11634 | else |
5c7fc7c4 | 11635 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
ad6254c5 AK |
11636 | fi |
11637 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11638 | ac_beg=$ac_end | |
11639 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
11640 | fi | |
11641 | done | |
11642 | if test -z "$ac_sed_cmds"; then | |
11643 | ac_sed_cmds=cat | |
11644 | fi | |
11645 | fi # test -n "$CONFIG_FILES" | |
8106cdd5 | 11646 | |
ad6254c5 AK |
11647 | _ACEOF |
11648 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11649 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
11650 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11651 | case $ac_file in | |
11652 | - | *:- | *:-:* ) # input from stdin | |
5c7fc7c4 PC |
11653 | cat >$tmp/stdin |
11654 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11655 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
ad6254c5 | 11656 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
5c7fc7c4 | 11657 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
ad6254c5 | 11658 | * ) ac_file_in=$ac_file.in ;; |
80992638 | 11659 | esac |
8106cdd5 | 11660 | |
ad6254c5 AK |
11661 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
11662 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11663 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5c7fc7c4 PC |
11664 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11665 | X"$ac_file" : 'X\(//\)$' \| \ | |
11666 | X"$ac_file" : 'X\(/\)' \| \ | |
11667 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11668 | echo X"$ac_file" | |
11669 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11670 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11671 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11672 | /^X\(\/\).*/{ s//\1/; q; } | |
11673 | s/.*/./; q'` | |
11674 | { if $as_mkdir_p; then | |
11675 | mkdir -p "$ac_dir" | |
11676 | else | |
11677 | as_dir="$ac_dir" | |
11678 | as_dirs= | |
11679 | while test ! -d "$as_dir"; do | |
11680 | as_dirs="$as_dir $as_dirs" | |
11681 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11682 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5c7fc7c4 PC |
11683 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
11684 | X"$as_dir" : 'X\(//\)$' \| \ | |
11685 | X"$as_dir" : 'X\(/\)' \| \ | |
11686 | . : '\(.\)' 2>/dev/null || | |
ad6254c5 AK |
11687 | echo X"$as_dir" | |
11688 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11689 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11690 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11691 | /^X\(\/\).*/{ s//\1/; q; } | |
11692 | s/.*/./; q'` | |
11693 | done | |
11694 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11695 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11696 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11697 | { (exit 1); exit 1; }; }; } | |
11698 | ||
11699 | ac_builddir=. | |
11700 | ||
11701 | if test "$ac_dir" != .; then | |
11702 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11703 | # A "../" for each directory in $ac_dir_suffix. | |
11704 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11705 | else | |
11706 | ac_dir_suffix= ac_top_builddir= | |
11707 | fi | |
11708 | ||
11709 | case $srcdir in | |
11710 | .) # No --srcdir option. We are building in place. | |
11711 | ac_srcdir=. | |
11712 | if test -z "$ac_top_builddir"; then | |
11713 | ac_top_srcdir=. | |
11714 | else | |
11715 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11716 | fi ;; | |
11717 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11718 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11719 | ac_top_srcdir=$srcdir ;; | |
11720 | *) # Relative path. | |
11721 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
11722 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11723 | esac | |
5c7fc7c4 PC |
11724 | |
11725 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11726 | # the directories may not exist. | |
11727 | case `pwd` in | |
11728 | .) ac_abs_builddir="$ac_dir";; | |
11729 | *) | |
11730 | case "$ac_dir" in | |
11731 | .) ac_abs_builddir=`pwd`;; | |
11732 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11733 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11734 | esac;; | |
11735 | esac | |
11736 | case $ac_abs_builddir in | |
11737 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11738 | *) | |
11739 | case ${ac_top_builddir}. in | |
11740 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11741 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11742 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11743 | esac;; | |
11744 | esac | |
11745 | case $ac_abs_builddir in | |
11746 | .) ac_abs_srcdir=$ac_srcdir;; | |
11747 | *) | |
11748 | case $ac_srcdir in | |
11749 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11750 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11751 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11752 | esac;; | |
11753 | esac | |
11754 | case $ac_abs_builddir in | |
11755 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11756 | *) | |
11757 | case $ac_top_srcdir in | |
11758 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11759 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11760 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11761 | esac;; | |
11762 | esac | |
ad6254c5 AK |
11763 | |
11764 | ||
11765 | case $INSTALL in | |
11766 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11767 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
11768 | esac |
11769 | ||
ad6254c5 AK |
11770 | if test x"$ac_file" != x-; then |
11771 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11772 | echo "$as_me: creating $ac_file" >&6;} | |
11773 | rm -f "$ac_file" | |
11774 | fi | |
11775 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11776 | # use $as_me), people would be surprised to read: | |
11777 | # /* config.h. Generated by config.status. */ | |
11778 | if test x"$ac_file" = x-; then | |
11779 | configure_input= | |
11780 | else | |
11781 | configure_input="$ac_file. " | |
11782 | fi | |
11783 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
5c7fc7c4 | 11784 | sed 's,.*/,,'` by configure." |
ad6254c5 AK |
11785 | |
11786 | # First look for the input files in the build tree, otherwise in the | |
11787 | # src tree. | |
11788 | ac_file_inputs=`IFS=: | |
11789 | for f in $ac_file_in; do | |
11790 | case $f in | |
11791 | -) echo $tmp/stdin ;; | |
11792 | [\\/$]*) | |
5c7fc7c4 PC |
11793 | # Absolute (can't be DOS-style, as IFS=:) |
11794 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
11795 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11796 | { (exit 1); exit 1; }; } | |
5c7fc7c4 | 11797 | echo "$f";; |
ad6254c5 | 11798 | *) # Relative |
5c7fc7c4 PC |
11799 | if test -f "$f"; then |
11800 | # Build tree | |
11801 | echo "$f" | |
11802 | elif test -f "$srcdir/$f"; then | |
11803 | # Source tree | |
11804 | echo "$srcdir/$f" | |
11805 | else | |
11806 | # /dev/null tree | |
11807 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
ad6254c5 AK |
11808 | echo "$as_me: error: cannot find input file: $f" >&2;} |
11809 | { (exit 1); exit 1; }; } | |
5c7fc7c4 | 11810 | fi;; |
ad6254c5 AK |
11811 | esac |
11812 | done` || { (exit 1); exit 1; } | |
11813 | _ACEOF | |
11814 | cat >>$CONFIG_STATUS <<_ACEOF | |
11815 | sed "$ac_vpsub | |
11816 | $extrasub | |
11817 | _ACEOF | |
11818 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11819 | :t | |
11820 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11821 | s,@configure_input@,$configure_input,;t t | |
11822 | s,@srcdir@,$ac_srcdir,;t t | |
11823 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
11824 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
11825 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
11826 | s,@builddir@,$ac_builddir,;t t | |
11827 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
11828 | s,@top_builddir@,$ac_top_builddir,;t t | |
11829 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
11830 | s,@INSTALL@,$ac_INSTALL,;t t | |
11831 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
11832 | rm -f $tmp/stdin | |
11833 | if test x"$ac_file" != x-; then | |
11834 | mv $tmp/out $ac_file | |
11835 | else | |
11836 | cat $tmp/out | |
11837 | rm -f $tmp/out | |
11838 | fi | |
795ca3e5 | 11839 | |
ad6254c5 AK |
11840 | done |
11841 | _ACEOF | |
795ca3e5 | 11842 | |
ad6254c5 | 11843 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 11844 | |
ad6254c5 AK |
11845 | { (exit 0); exit 0; } |
11846 | _ACEOF | |
795ca3e5 | 11847 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
11848 | ac_clean_files=$ac_clean_files_save |
11849 | ||
11850 | ||
11851 | # configure is writing to config.log, and then calls config.status. | |
11852 | # config.status does its own redirection, appending to config.log. | |
11853 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11854 | # by configure, so config.status won't be able to write to it; its | |
11855 | # output is simply discarded. So we exec the FD to /dev/null, | |
11856 | # effectively closing config.log, so it can be properly (re)opened and | |
11857 | # appended to by config.status. When coming back to configure, we | |
11858 | # need to make the FD available again. | |
11859 | if test "$no_create" != yes; then | |
11860 | ac_cs_success=: | |
11861 | ac_config_status_args= | |
11862 | test "$silent" = yes && | |
11863 | ac_config_status_args="$ac_config_status_args --quiet" | |
11864 | exec 5>/dev/null | |
11865 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11866 | exec 5>>config.log | |
11867 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11868 | # would make configure fail if this is the last instruction. | |
11869 | $ac_cs_success || { (exit 1); exit 1; } | |
11870 | fi | |
795ca3e5 | 11871 | |
2dc95e1c AK |
11872 | |
11873 | if test x$ODIRECT != xyes; then | |
ad6254c5 AK |
11874 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
11875 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 11876 | fi |
809fae91 AK |
11877 | |
11878 | if test x$FSADM == xyes; then | |
ad6254c5 AK |
11879 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
11880 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 11881 | fi |
06f62ad1 AK |
11882 | |
11883 | if test x$DMEVENTD == xyes; then | |
11884 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 | |
11885 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
11886 | fi |