]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8106cdd5 | 3 | # Generated by GNU Autoconf 2.57. |
795ca3e5 | 4 | # |
8106cdd5 AK |
5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
6 | # Free Software Foundation, Inc. | |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
8106cdd5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
13 | # Be Bourne compatible | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21 | set -o posix | |
22 | fi | |
23 | ||
24 | # Support unset when possible. | |
25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
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 | |
44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
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 | |
8106cdd5 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 | |
221 | as_mkdir_p=false | |
222 | fi | |
223 | ||
224 | as_executable_p="test -f" | |
225 | ||
226 | # Sed expression to map a string onto a valid CPP name. | |
227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
228 | ||
229 | # Sed expression to map a string onto a valid variable name. | |
230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
231 | ||
232 | ||
233 | # IFS | |
234 | # We need space, tab and new line, in precisely that order. | |
235 | as_nl=' | |
236 | ' | |
237 | IFS=" $as_nl" | |
238 | ||
239 | # CDPATH. | |
240 | $as_unset CDPATH | |
241 | ||
242 | ||
243 | # Name of the host. | |
244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
245 | # so uname gets run too. | |
246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
247 | ||
248 | exec 6>&1 | |
249 | ||
250 | # | |
251 | # Initializations. | |
252 | # | |
795ca3e5 | 253 | ac_default_prefix=/usr/local |
8106cdd5 AK |
254 | ac_config_libobj_dir=. |
255 | cross_compiling=no | |
256 | subdirs= | |
257 | MFLAGS= | |
258 | MAKEFLAGS= | |
259 | SHELL=${CONFIG_SHELL-/bin/sh} | |
260 | ||
261 | # Maximum number of lines to put in a shell here document. | |
262 | # This variable seems obsolete. It should probably be removed, and | |
263 | # only ac_max_sed_lines should be used. | |
264 | : ${ac_max_here_lines=38} | |
265 | ||
266 | # Identity of this package. | |
267 | PACKAGE_NAME= | |
268 | PACKAGE_TARNAME= | |
269 | PACKAGE_VERSION= | |
270 | PACKAGE_STRING= | |
271 | PACKAGE_BUGREPORT= | |
272 | ||
273 | ac_unique_file="lib/device/dev-cache.h" | |
274 | # Factoring default headers for most tests. | |
275 | ac_includes_default="\ | |
276 | #include <stdio.h> | |
277 | #if HAVE_SYS_TYPES_H | |
278 | # include <sys/types.h> | |
279 | #endif | |
280 | #if HAVE_SYS_STAT_H | |
281 | # include <sys/stat.h> | |
282 | #endif | |
283 | #if STDC_HEADERS | |
284 | # include <stdlib.h> | |
285 | # include <stddef.h> | |
286 | #else | |
287 | # if HAVE_STDLIB_H | |
288 | # include <stdlib.h> | |
289 | # endif | |
290 | #endif | |
291 | #if HAVE_STRING_H | |
292 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
293 | # include <memory.h> | |
294 | # endif | |
295 | # include <string.h> | |
296 | #endif | |
297 | #if HAVE_STRINGS_H | |
298 | # include <strings.h> | |
299 | #endif | |
300 | #if HAVE_INTTYPES_H | |
301 | # include <inttypes.h> | |
302 | #else | |
303 | # if HAVE_STDINT_H | |
304 | # include <stdint.h> | |
305 | # endif | |
306 | #endif | |
307 | #if HAVE_UNISTD_H | |
308 | # include <unistd.h> | |
309 | #endif" | |
310 | ||
795ca3e5 | 311 | ac_default_prefix=/usr |
8106cdd5 AK |
312 | 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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MSGFMT JOBS STATIC_LINK LVM1 OWNER GROUP CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LD_DEPS SOFLAG LVM_VERSION DEBUG DEVMAPPER HAVE_LIBDL CMDLIB LOCALEDIR INTL_PACKAGE INTL LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' | |
795ca3e5 AK |
314 | |
315 | # Initialize some variables set by options. | |
8106cdd5 AK |
316 | ac_init_help= |
317 | ac_init_version=false | |
795ca3e5 AK |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
8106cdd5 | 320 | cache_file=/dev/null |
795ca3e5 | 321 | exec_prefix=NONE |
795ca3e5 | 322 | no_create= |
795ca3e5 AK |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
795ca3e5 AK |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
8106cdd5 AK |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
795ca3e5 AK |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
795ca3e5 AK |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
795ca3e5 AK |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
8106cdd5 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
795ca3e5 AK |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
8106cdd5 | 367 | case $ac_option in |
795ca3e5 AK |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
8106cdd5 | 372 | bindir=$ac_optarg ;; |
795ca3e5 AK |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
8106cdd5 | 375 | ac_prev=build_alias ;; |
795ca3e5 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
8106cdd5 | 377 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
8106cdd5 AK |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
795ca3e5 AK |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
8106cdd5 | 393 | datadir=$ac_optarg ;; |
795ca3e5 AK |
394 | |
395 | -disable-* | --disable-*) | |
8106cdd5 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 397 | # Reject names that are not valid shell variable names. |
8106cdd5 AK |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
795ca3e5 AK |
403 | |
404 | -enable-* | --enable-*) | |
8106cdd5 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 406 | # Reject names that are not valid shell variable names. |
8106cdd5 AK |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
413 | *) ac_optarg=yes ;; |
414 | esac | |
8106cdd5 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
795ca3e5 AK |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
8106cdd5 | 424 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
8106cdd5 AK |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
795ca3e5 AK |
436 | |
437 | -host | --host | --hos | --ho) | |
8106cdd5 | 438 | ac_prev=host_alias ;; |
795ca3e5 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
8106cdd5 | 440 | host_alias=$ac_optarg ;; |
795ca3e5 AK |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
8106cdd5 | 447 | includedir=$ac_optarg ;; |
795ca3e5 AK |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
8106cdd5 | 452 | infodir=$ac_optarg ;; |
795ca3e5 AK |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
8106cdd5 | 457 | libdir=$ac_optarg ;; |
795ca3e5 AK |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
8106cdd5 | 464 | libexecdir=$ac_optarg ;; |
795ca3e5 AK |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
8106cdd5 | 473 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
8106cdd5 | 478 | mandir=$ac_optarg ;; |
795ca3e5 AK |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
8106cdd5 | 485 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
8106cdd5 | 499 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
8106cdd5 | 504 | prefix=$ac_optarg ;; |
795ca3e5 AK |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
8106cdd5 | 511 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
8106cdd5 | 518 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
8106cdd5 | 535 | program_transform_name=$ac_optarg ;; |
795ca3e5 AK |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
8106cdd5 | 545 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
8106cdd5 | 556 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
8106cdd5 | 561 | site=$ac_optarg ;; |
795ca3e5 AK |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
8106cdd5 | 566 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
8106cdd5 | 573 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
8106cdd5 | 576 | ac_prev=target_alias ;; |
795ca3e5 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
8106cdd5 | 578 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
8106cdd5 AK |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
795ca3e5 AK |
585 | |
586 | -with-* | --with-*) | |
8106cdd5 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 588 | # Reject names that are not valid shell variable names. |
8106cdd5 AK |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
795ca3e5 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
8106cdd5 AK |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
795ca3e5 AK |
595 | *) ac_optarg=yes ;; |
596 | esac | |
8106cdd5 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
795ca3e5 AK |
598 | |
599 | -without-* | --without-*) | |
8106cdd5 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 601 | # Reject names that are not valid shell variable names. |
8106cdd5 AK |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
795ca3e5 AK |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
8106cdd5 | 617 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
8106cdd5 | 624 | x_libraries=$ac_optarg ;; |
795ca3e5 | 625 | |
8106cdd5 AK |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
629 | ;; |
630 | ||
8106cdd5 AK |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
795ca3e5 | 641 | *) |
8106cdd5 AK |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
795ca3e5 AK |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
8106cdd5 AK |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
795ca3e5 | 656 | fi |
795ca3e5 | 657 | |
8106cdd5 AK |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
795ca3e5 | 668 | |
8106cdd5 AK |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
795ca3e5 | 672 | do |
8106cdd5 AK |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
795ca3e5 AK |
678 | esac |
679 | done | |
680 | ||
8106cdd5 AK |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
795ca3e5 | 698 | |
8106cdd5 AK |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 703 | |
795ca3e5 AK |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
8106cdd5 AK |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
795ca3e5 AK |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
8106cdd5 AK |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
795ca3e5 | 732 | else |
8106cdd5 AK |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
735 | fi |
736 | fi | |
8106cdd5 AK |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
773 | ||
774 | # | |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
782 | ||
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | ||
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
787 | ||
788 | Defaults for the options are specified in brackets. | |
789 | ||
790 | Configuration: | |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
809 | ||
810 | By default, \`make install' will install all the files in | |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
814 | ||
815 | For better control, use the options below. | |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | System types: | |
835 | --build=BUILD configure for building on BUILD [guessed] | |
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
837 | --target=TARGET configure for building compilers for TARGET [HOST] | |
838 | _ACEOF | |
839 | fi | |
840 | ||
841 | if test -n "$ac_init_help"; then | |
842 | ||
843 | cat <<\_ACEOF | |
844 | ||
845 | Optional Features: | |
846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
848 | --enable-jobs=NUM Number of jobs to run simultaneously | |
849 | --enable-static_link Use this to link the tools to their libraries | |
850 | statically. Default is dynamic linking | |
851 | --enable-readline Enable readline support | |
852 | --enable-debug Enable debugging | |
853 | --disable-devmapper Disable device-mapper interaction | |
854 | --disable-o_direct Disable O_DIRECT | |
855 | --enable-cmdlib Build shared command library | |
856 | --enable-nls Enable Native Language Support | |
857 | ||
858 | Optional Packages: | |
859 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
860 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
861 | --with-user=USER Set the owner of installed files | |
862 | --with-group=GROUP Set the group owner of installed files | |
863 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
864 | TYPE=internal | |
865 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
866 | ||
867 | Some influential environment variables: | |
868 | CC C compiler command | |
869 | CFLAGS C compiler flags | |
870 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
871 | nonstandard directory <lib dir> | |
872 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
873 | headers in a nonstandard directory <include dir> | |
874 | CPP C preprocessor | |
875 | ||
876 | Use these variables to override the choices made by `configure' or to help | |
877 | it to find libraries and programs with nonstandard names/locations. | |
878 | ||
879 | _ACEOF | |
880 | fi | |
881 | ||
882 | if test "$ac_init_help" = "recursive"; then | |
883 | # If there are subdirs, report their specific --help. | |
884 | ac_popdir=`pwd` | |
885 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
886 | test -d $ac_dir || continue | |
887 | ac_builddir=. | |
888 | ||
889 | if test "$ac_dir" != .; then | |
890 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
891 | # A "../" for each directory in $ac_dir_suffix. | |
892 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
893 | else | |
894 | ac_dir_suffix= ac_top_builddir= | |
895 | fi | |
896 | ||
897 | case $srcdir in | |
898 | .) # No --srcdir option. We are building in place. | |
899 | ac_srcdir=. | |
900 | if test -z "$ac_top_builddir"; then | |
901 | ac_top_srcdir=. | |
902 | else | |
903 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
904 | fi ;; | |
905 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
906 | ac_srcdir=$srcdir$ac_dir_suffix; | |
907 | ac_top_srcdir=$srcdir ;; | |
908 | *) # Relative path. | |
909 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
910 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
911 | esac | |
912 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
913 | # absolute. | |
914 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
915 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
916 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
917 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
918 | ||
919 | cd $ac_dir | |
920 | # Check for guested configure; otherwise get Cygnus style configure. | |
921 | if test -f $ac_srcdir/configure.gnu; then | |
922 | echo | |
923 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
924 | elif test -f $ac_srcdir/configure; then | |
925 | echo | |
926 | $SHELL $ac_srcdir/configure --help=recursive | |
927 | elif test -f $ac_srcdir/configure.ac || | |
928 | test -f $ac_srcdir/configure.in; then | |
929 | echo | |
930 | $ac_configure --help | |
931 | else | |
932 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
933 | fi | |
934 | cd $ac_popdir | |
935 | done | |
936 | fi | |
937 | ||
938 | test -n "$ac_init_help" && exit 0 | |
939 | if $ac_init_version; then | |
940 | cat <<\_ACEOF | |
941 | ||
942 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
943 | Free Software Foundation, Inc. | |
944 | This configure script is free software; the Free Software Foundation | |
945 | gives unlimited permission to copy, distribute and modify it. | |
946 | _ACEOF | |
947 | exit 0 | |
948 | fi | |
949 | exec 5>config.log | |
950 | cat >&5 <<_ACEOF | |
951 | This file contains any messages produced by compilers while | |
952 | running configure, to aid debugging if configure makes a mistake. | |
953 | ||
954 | It was created by $as_me, which was | |
955 | generated by GNU Autoconf 2.57. Invocation command line was | |
956 | ||
957 | $ $0 $@ | |
958 | ||
959 | _ACEOF | |
960 | { | |
961 | cat <<_ASUNAME | |
962 | ## --------- ## | |
963 | ## Platform. ## | |
964 | ## --------- ## | |
965 | ||
966 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
967 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
968 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
969 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
970 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
971 | ||
972 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
973 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
974 | ||
975 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
976 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
977 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
978 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
979 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
980 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
981 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
982 | ||
983 | _ASUNAME | |
984 | ||
985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
986 | for as_dir in $PATH | |
987 | do | |
988 | IFS=$as_save_IFS | |
989 | test -z "$as_dir" && as_dir=. | |
990 | echo "PATH: $as_dir" | |
991 | done | |
992 | ||
993 | } >&5 | |
994 | ||
995 | cat >&5 <<_ACEOF | |
996 | ||
997 | ||
998 | ## ----------- ## | |
999 | ## Core tests. ## | |
1000 | ## ----------- ## | |
1001 | ||
1002 | _ACEOF | |
1003 | ||
1004 | ||
1005 | # Keep a trace of the command line. | |
1006 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1007 | # Strip out --silent because we don't want to record it for future runs. | |
1008 | # Also quote any args containing shell meta-characters. | |
1009 | # Make two passes to allow for proper duplicate-argument suppression. | |
1010 | ac_configure_args= | |
1011 | ac_configure_args0= | |
1012 | ac_configure_args1= | |
1013 | ac_sep= | |
1014 | ac_must_keep_next=false | |
1015 | for ac_pass in 1 2 | |
1016 | do | |
1017 | for ac_arg | |
1018 | do | |
1019 | case $ac_arg in | |
1020 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1022 | | -silent | --silent | --silen | --sile | --sil) | |
1023 | continue ;; | |
1024 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1025 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1026 | esac | |
1027 | case $ac_pass in | |
1028 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1029 | 2) | |
1030 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1031 | if test $ac_must_keep_next = true; then | |
1032 | ac_must_keep_next=false # Got value, back to normal. | |
1033 | else | |
1034 | case $ac_arg in | |
1035 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1036 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1037 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1038 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1039 | case "$ac_configure_args0 " in | |
1040 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1041 | esac | |
1042 | ;; | |
1043 | -* ) ac_must_keep_next=true ;; | |
1044 | esac | |
1045 | fi | |
1046 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1047 | # Get rid of the leading space. | |
1048 | ac_sep=" " | |
1049 | ;; | |
1050 | esac | |
1051 | done | |
1052 | done | |
1053 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1054 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1055 | ||
1056 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1057 | # config.log. We remove comments because anyway the quotes in there | |
1058 | # would cause problems or look ugly. | |
1059 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1060 | # such as our DU 5.0 friend, will then `close' the trap. | |
1061 | trap 'exit_status=$? | |
1062 | # Save into config.log some information that might help in debugging. | |
1063 | { | |
1064 | echo | |
1065 | ||
1066 | cat <<\_ASBOX | |
1067 | ## ---------------- ## | |
1068 | ## Cache variables. ## | |
1069 | ## ---------------- ## | |
1070 | _ASBOX | |
1071 | echo | |
1072 | # The following way of writing the cache mishandles newlines in values, | |
1073 | { | |
1074 | (set) 2>&1 | | |
1075 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1076 | *ac_space=\ *) | |
1077 | sed -n \ | |
1078 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1079 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1080 | ;; | |
1081 | *) | |
1082 | sed -n \ | |
1083 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1084 | ;; | |
1085 | esac; | |
1086 | } | |
1087 | echo | |
1088 | ||
1089 | cat <<\_ASBOX | |
1090 | ## ----------------- ## | |
1091 | ## Output variables. ## | |
1092 | ## ----------------- ## | |
1093 | _ASBOX | |
1094 | echo | |
1095 | for ac_var in $ac_subst_vars | |
1096 | do | |
1097 | eval ac_val=$`echo $ac_var` | |
1098 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1099 | done | sort | |
1100 | echo | |
1101 | ||
1102 | if test -n "$ac_subst_files"; then | |
1103 | cat <<\_ASBOX | |
1104 | ## ------------- ## | |
1105 | ## Output files. ## | |
1106 | ## ------------- ## | |
1107 | _ASBOX | |
1108 | echo | |
1109 | for ac_var in $ac_subst_files | |
1110 | do | |
1111 | eval ac_val=$`echo $ac_var` | |
1112 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1113 | done | sort | |
1114 | echo | |
1115 | fi | |
1116 | ||
1117 | if test -s confdefs.h; then | |
1118 | cat <<\_ASBOX | |
1119 | ## ----------- ## | |
1120 | ## confdefs.h. ## | |
1121 | ## ----------- ## | |
1122 | _ASBOX | |
1123 | echo | |
1124 | sed "/^$/d" confdefs.h | sort | |
1125 | echo | |
1126 | fi | |
1127 | test "$ac_signal" != 0 && | |
1128 | echo "$as_me: caught signal $ac_signal" | |
1129 | echo "$as_me: exit $exit_status" | |
1130 | } >&5 | |
1131 | rm -f core core.* *.core && | |
1132 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1133 | exit $exit_status | |
1134 | ' 0 | |
1135 | for ac_signal in 1 2 13 15; do | |
1136 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1137 | done | |
1138 | ac_signal=0 | |
1139 | ||
1140 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1141 | rm -rf conftest* confdefs.h | |
1142 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1143 | echo >confdefs.h | |
1144 | ||
1145 | # Predefined preprocessor variables. | |
1146 | ||
1147 | cat >>confdefs.h <<_ACEOF | |
1148 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1149 | _ACEOF | |
1150 | ||
1151 | ||
1152 | cat >>confdefs.h <<_ACEOF | |
1153 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1154 | _ACEOF | |
1155 | ||
1156 | ||
1157 | cat >>confdefs.h <<_ACEOF | |
1158 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1159 | _ACEOF | |
1160 | ||
1161 | ||
1162 | cat >>confdefs.h <<_ACEOF | |
1163 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1164 | _ACEOF | |
1165 | ||
1166 | ||
1167 | cat >>confdefs.h <<_ACEOF | |
1168 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1169 | _ACEOF | |
795ca3e5 | 1170 | |
8106cdd5 AK |
1171 | |
1172 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 AK |
1173 | # Prefer explicitly selected file to automatically selected ones. |
1174 | if test -z "$CONFIG_SITE"; then | |
1175 | if test "x$prefix" != xNONE; then | |
1176 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1177 | else | |
1178 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1179 | fi | |
1180 | fi | |
1181 | for ac_site_file in $CONFIG_SITE; do | |
1182 | if test -r "$ac_site_file"; then | |
8106cdd5 AK |
1183 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1184 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1185 | sed 's/^/| /' "$ac_site_file" >&5 | |
795ca3e5 AK |
1186 | . "$ac_site_file" |
1187 | fi | |
1188 | done | |
1189 | ||
1190 | if test -r "$cache_file"; then | |
8106cdd5 AK |
1191 | # Some versions of bash will fail to source /dev/null (special |
1192 | # files actually), so we avoid doing that. | |
1193 | if test -f "$cache_file"; then | |
1194 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1195 | echo "$as_me: loading cache $cache_file" >&6;} | |
1196 | case $cache_file in | |
1197 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1198 | *) . ./$cache_file;; | |
1199 | esac | |
1200 | fi | |
795ca3e5 | 1201 | else |
8106cdd5 AK |
1202 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1203 | echo "$as_me: creating cache $cache_file" >&6;} | |
1204 | >$cache_file | |
1205 | fi | |
1206 | ||
1207 | # Check that the precious variables saved in the cache have kept the same | |
1208 | # value. | |
1209 | ac_cache_corrupted=false | |
1210 | for ac_var in `(set) 2>&1 | | |
1211 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1212 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1213 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1214 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1215 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1216 | case $ac_old_set,$ac_new_set in | |
1217 | set,) | |
1218 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1219 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1220 | ac_cache_corrupted=: ;; | |
1221 | ,set) | |
1222 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1223 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1224 | ac_cache_corrupted=: ;; | |
1225 | ,);; | |
1226 | *) | |
1227 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1228 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1229 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1230 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1231 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1232 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1233 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1234 | ac_cache_corrupted=: | |
1235 | fi;; | |
1236 | esac | |
1237 | # Pass precious variables to config.status. | |
1238 | if test "$ac_new_set" = set; then | |
1239 | case $ac_new_val in | |
1240 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1241 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1242 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1243 | esac | |
1244 | case " $ac_configure_args " in | |
1245 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1246 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1247 | esac | |
1248 | fi | |
1249 | done | |
1250 | if $ac_cache_corrupted; then | |
1251 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1252 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1253 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1254 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1255 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1256 | fi |
1257 | ||
1258 | ac_ext=c | |
795ca3e5 | 1259 | ac_cpp='$CPP $CPPFLAGS' |
8106cdd5 AK |
1260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1263 | ||
1264 | ||
1265 | ||
1266 | ||
1267 | ||
1268 | ||
1269 | ||
1270 | ||
1271 | ||
1272 | ||
1273 | ||
1274 | ||
1275 | ||
1276 | ||
1277 | ||
1278 | ||
1279 | ||
795ca3e5 AK |
1280 | |
1281 | ||
1282 | ||
1283 | ac_aux_dir= | |
1284 | for ac_dir in autoconf $srcdir/autoconf; do | |
1285 | if test -f $ac_dir/install-sh; then | |
1286 | ac_aux_dir=$ac_dir | |
1287 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1288 | break | |
1289 | elif test -f $ac_dir/install.sh; then | |
1290 | ac_aux_dir=$ac_dir | |
1291 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1292 | break | |
8106cdd5 AK |
1293 | elif test -f $ac_dir/shtool; then |
1294 | ac_aux_dir=$ac_dir | |
1295 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1296 | break | |
795ca3e5 AK |
1297 | fi |
1298 | done | |
1299 | if test -z "$ac_aux_dir"; then | |
8106cdd5 AK |
1300 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1301 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} | |
1302 | { (exit 1); exit 1; }; } | |
795ca3e5 | 1303 | fi |
8106cdd5 AK |
1304 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1305 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1306 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1307 | ||
795ca3e5 | 1308 | |
2dc95e1c | 1309 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1310 | do |
8106cdd5 | 1311 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1312 | set dummy $ac_prog; ac_word=$2 |
8106cdd5 AK |
1313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1315 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1317 | else |
1318 | if test -n "$AWK"; then | |
1319 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1320 | else | |
8106cdd5 AK |
1321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1322 | for as_dir in $PATH | |
1323 | do | |
1324 | IFS=$as_save_IFS | |
1325 | test -z "$as_dir" && as_dir=. | |
1326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1328 | ac_cv_prog_AWK="$ac_prog" | |
1329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1330 | break 2 | |
1331 | fi | |
1332 | done | |
1333 | done | |
1334 | ||
795ca3e5 AK |
1335 | fi |
1336 | fi | |
8106cdd5 | 1337 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1338 | if test -n "$AWK"; then |
8106cdd5 AK |
1339 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1340 | echo "${ECHO_T}$AWK" >&6 | |
795ca3e5 | 1341 | else |
8106cdd5 AK |
1342 | echo "$as_me:$LINENO: result: no" >&5 |
1343 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1344 | fi |
1345 | ||
8106cdd5 | 1346 | test -n "$AWK" && break |
795ca3e5 AK |
1347 | done |
1348 | ||
8106cdd5 AK |
1349 | ac_ext=c |
1350 | ac_cpp='$CPP $CPPFLAGS' | |
1351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1354 | if test -n "$ac_tool_prefix"; then | |
1355 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1356 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1359 | if test "${ac_cv_prog_CC+set}" = set; then | |
1360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1361 | else |
1362 | if test -n "$CC"; then | |
1363 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1364 | else | |
8106cdd5 AK |
1365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1366 | for as_dir in $PATH | |
1367 | do | |
1368 | IFS=$as_save_IFS | |
1369 | test -z "$as_dir" && as_dir=. | |
1370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1372 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1374 | break 2 | |
1375 | fi | |
1376 | done | |
1377 | done | |
1378 | ||
1379 | fi | |
1380 | fi | |
1381 | CC=$ac_cv_prog_CC | |
1382 | if test -n "$CC"; then | |
1383 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1384 | echo "${ECHO_T}$CC" >&6 | |
1385 | else | |
1386 | echo "$as_me:$LINENO: result: no" >&5 | |
1387 | echo "${ECHO_T}no" >&6 | |
1388 | fi | |
1389 | ||
1390 | fi | |
1391 | if test -z "$ac_cv_prog_CC"; then | |
1392 | ac_ct_CC=$CC | |
1393 | # Extract the first word of "gcc", so it can be a program name with args. | |
1394 | set dummy gcc; ac_word=$2 | |
1395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1397 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1399 | else | |
1400 | if test -n "$ac_ct_CC"; then | |
1401 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1402 | else | |
1403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1404 | for as_dir in $PATH | |
1405 | do | |
1406 | IFS=$as_save_IFS | |
1407 | test -z "$as_dir" && as_dir=. | |
1408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1410 | ac_cv_prog_ac_ct_CC="gcc" | |
1411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1412 | break 2 | |
1413 | fi | |
1414 | done | |
1415 | done | |
1416 | ||
1417 | fi | |
1418 | fi | |
1419 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1420 | if test -n "$ac_ct_CC"; then | |
1421 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1422 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1423 | else | |
1424 | echo "$as_me:$LINENO: result: no" >&5 | |
1425 | echo "${ECHO_T}no" >&6 | |
1426 | fi | |
1427 | ||
1428 | CC=$ac_ct_CC | |
1429 | else | |
1430 | CC="$ac_cv_prog_CC" | |
1431 | fi | |
1432 | ||
1433 | if test -z "$CC"; then | |
1434 | if test -n "$ac_tool_prefix"; then | |
1435 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1436 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1439 | if test "${ac_cv_prog_CC+set}" = set; then | |
1440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1441 | else | |
1442 | if test -n "$CC"; then | |
1443 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1444 | else | |
1445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1446 | for as_dir in $PATH | |
1447 | do | |
1448 | IFS=$as_save_IFS | |
1449 | test -z "$as_dir" && as_dir=. | |
1450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1452 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1454 | break 2 | |
1455 | fi | |
1456 | done | |
1457 | done | |
1458 | ||
1459 | fi | |
1460 | fi | |
1461 | CC=$ac_cv_prog_CC | |
1462 | if test -n "$CC"; then | |
1463 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1464 | echo "${ECHO_T}$CC" >&6 | |
1465 | else | |
1466 | echo "$as_me:$LINENO: result: no" >&5 | |
1467 | echo "${ECHO_T}no" >&6 | |
1468 | fi | |
1469 | ||
1470 | fi | |
1471 | if test -z "$ac_cv_prog_CC"; then | |
1472 | ac_ct_CC=$CC | |
1473 | # Extract the first word of "cc", so it can be a program name with args. | |
1474 | set dummy cc; ac_word=$2 | |
1475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1477 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1479 | else | |
1480 | if test -n "$ac_ct_CC"; then | |
1481 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1482 | else | |
1483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1484 | for as_dir in $PATH | |
1485 | do | |
1486 | IFS=$as_save_IFS | |
1487 | test -z "$as_dir" && as_dir=. | |
1488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1490 | ac_cv_prog_ac_ct_CC="cc" | |
1491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1492 | break 2 | |
1493 | fi | |
1494 | done | |
1495 | done | |
1496 | ||
1497 | fi | |
1498 | fi | |
1499 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1500 | if test -n "$ac_ct_CC"; then | |
1501 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1502 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1503 | else | |
1504 | echo "$as_me:$LINENO: result: no" >&5 | |
1505 | echo "${ECHO_T}no" >&6 | |
1506 | fi | |
1507 | ||
1508 | CC=$ac_ct_CC | |
795ca3e5 | 1509 | else |
8106cdd5 | 1510 | CC="$ac_cv_prog_CC" |
795ca3e5 AK |
1511 | fi |
1512 | ||
8106cdd5 | 1513 | fi |
795ca3e5 AK |
1514 | if test -z "$CC"; then |
1515 | # Extract the first word of "cc", so it can be a program name with args. | |
1516 | set dummy cc; ac_word=$2 | |
8106cdd5 AK |
1517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1519 | if test "${ac_cv_prog_CC+set}" = set; then | |
1520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1521 | else |
1522 | if test -n "$CC"; then | |
1523 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1524 | else | |
795ca3e5 | 1525 | ac_prog_rejected=no |
8106cdd5 AK |
1526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1527 | for as_dir in $PATH | |
1528 | do | |
1529 | IFS=$as_save_IFS | |
1530 | test -z "$as_dir" && as_dir=. | |
1531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1533 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1534 | ac_prog_rejected=yes | |
1535 | continue | |
1536 | fi | |
1537 | ac_cv_prog_CC="cc" | |
1538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1539 | break 2 | |
1540 | fi | |
1541 | done | |
1542 | done | |
1543 | ||
795ca3e5 AK |
1544 | if test $ac_prog_rejected = yes; then |
1545 | # We found a bogon in the path, so make sure we never use it. | |
1546 | set dummy $ac_cv_prog_CC | |
1547 | shift | |
8106cdd5 | 1548 | if test $# != 0; then |
795ca3e5 AK |
1549 | # We chose a different compiler from the bogus one. |
1550 | # However, it has the same basename, so the bogon will be chosen | |
1551 | # first if we set CC to just the basename; use the full file name. | |
1552 | shift | |
8106cdd5 | 1553 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
1554 | fi |
1555 | fi | |
1556 | fi | |
1557 | fi | |
8106cdd5 | 1558 | CC=$ac_cv_prog_CC |
795ca3e5 | 1559 | if test -n "$CC"; then |
8106cdd5 AK |
1560 | echo "$as_me:$LINENO: result: $CC" >&5 |
1561 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1562 | else |
8106cdd5 AK |
1563 | echo "$as_me:$LINENO: result: no" >&5 |
1564 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1565 | fi |
1566 | ||
8106cdd5 AK |
1567 | fi |
1568 | if test -z "$CC"; then | |
1569 | if test -n "$ac_tool_prefix"; then | |
1570 | for ac_prog in cl | |
1571 | do | |
1572 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1573 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1574 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1576 | if test "${ac_cv_prog_CC+set}" = set; then | |
1577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
1578 | else |
1579 | if test -n "$CC"; then | |
1580 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1581 | else | |
8106cdd5 AK |
1582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1583 | for as_dir in $PATH | |
1584 | do | |
1585 | IFS=$as_save_IFS | |
1586 | test -z "$as_dir" && as_dir=. | |
1587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1588 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1589 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1591 | break 2 | |
1592 | fi | |
1593 | done | |
1594 | done | |
1595 | ||
795ca3e5 AK |
1596 | fi |
1597 | fi | |
8106cdd5 | 1598 | CC=$ac_cv_prog_CC |
795ca3e5 | 1599 | if test -n "$CC"; then |
8106cdd5 AK |
1600 | echo "$as_me:$LINENO: result: $CC" >&5 |
1601 | echo "${ECHO_T}$CC" >&6 | |
795ca3e5 | 1602 | else |
8106cdd5 AK |
1603 | echo "$as_me:$LINENO: result: no" >&5 |
1604 | echo "${ECHO_T}no" >&6 | |
795ca3e5 | 1605 | fi |
8106cdd5 AK |
1606 | |
1607 | test -n "$CC" && break | |
1608 | done | |
1609 | fi | |
1610 | if test -z "$CC"; then | |
1611 | ac_ct_CC=$CC | |
1612 | for ac_prog in cl | |
1613 | do | |
1614 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1615 | set dummy $ac_prog; ac_word=$2 | |
1616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1618 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | if test -n "$ac_ct_CC"; then | |
1622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1623 | else | |
1624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1625 | for as_dir in $PATH | |
1626 | do | |
1627 | IFS=$as_save_IFS | |
1628 | test -z "$as_dir" && as_dir=. | |
1629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1631 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1633 | break 2 | |
795ca3e5 | 1634 | fi |
8106cdd5 AK |
1635 | done |
1636 | done | |
1637 | ||
1638 | fi | |
1639 | fi | |
1640 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1641 | if test -n "$ac_ct_CC"; then | |
1642 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1643 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1644 | else | |
1645 | echo "$as_me:$LINENO: result: no" >&5 | |
1646 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
1647 | fi |
1648 | ||
8106cdd5 AK |
1649 | test -n "$ac_ct_CC" && break |
1650 | done | |
795ca3e5 | 1651 | |
8106cdd5 AK |
1652 | CC=$ac_ct_CC |
1653 | fi | |
1654 | ||
1655 | fi | |
1656 | ||
1657 | ||
1658 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1659 | See \`config.log' for more details." >&5 | |
1660 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1661 | See \`config.log' for more details." >&2;} | |
1662 | { (exit 1); exit 1; }; } | |
1663 | ||
1664 | # Provide some information about the compiler. | |
1665 | echo "$as_me:$LINENO:" \ | |
1666 | "checking for C compiler version" >&5 | |
1667 | ac_compiler=`set X $ac_compile; echo $2` | |
1668 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1669 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1670 | ac_status=$? | |
1671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1672 | (exit $ac_status); } | |
1673 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1674 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1675 | ac_status=$? | |
1676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1677 | (exit $ac_status); } | |
1678 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1679 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1680 | ac_status=$? | |
1681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1682 | (exit $ac_status); } | |
1683 | ||
1684 | cat >conftest.$ac_ext <<_ACEOF | |
1685 | #line $LINENO "configure" | |
1686 | /* confdefs.h. */ | |
1687 | _ACEOF | |
1688 | cat confdefs.h >>conftest.$ac_ext | |
1689 | cat >>conftest.$ac_ext <<_ACEOF | |
1690 | /* end confdefs.h. */ | |
1691 | ||
1692 | int | |
1693 | main () | |
1694 | { | |
1695 | ||
1696 | ; | |
1697 | return 0; | |
1698 | } | |
1699 | _ACEOF | |
1700 | ac_clean_files_save=$ac_clean_files | |
1701 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1702 | # Try to create an executable without -o first, disregard a.out. | |
1703 | # It will help us diagnose broken compilers, and finding out an intuition | |
1704 | # of exeext. | |
1705 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
1706 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1707 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1708 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1709 | (eval $ac_link_default) 2>&5 | |
1710 | ac_status=$? | |
1711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1712 | (exit $ac_status); }; then | |
1713 | # Find the output, starting from the most likely. This scheme is | |
1714 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1715 | # resort. | |
1716 | ||
1717 | # Be careful to initialize this variable, since it used to be cached. | |
1718 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1719 | ac_cv_exeext= | |
1720 | # b.out is created by i960 compilers. | |
1721 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1722 | do | |
1723 | test -f "$ac_file" || continue | |
1724 | case $ac_file in | |
1725 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1726 | ;; | |
1727 | conftest.$ac_ext ) | |
1728 | # This is the source file. | |
1729 | ;; | |
1730 | [ab].out ) | |
1731 | # We found the default executable, but exeext='' is most | |
1732 | # certainly right. | |
1733 | break;; | |
1734 | *.* ) | |
1735 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1736 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1737 | # but it would be cool to find out if it's true. Does anybody | |
1738 | # maintain Libtool? --akim. | |
1739 | export ac_cv_exeext | |
1740 | break;; | |
1741 | * ) | |
1742 | break;; | |
1743 | esac | |
1744 | done | |
1745 | else | |
1746 | echo "$as_me: failed program was:" >&5 | |
1747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1748 | ||
1749 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1750 | See \`config.log' for more details." >&5 | |
1751 | echo "$as_me: error: C compiler cannot create executables | |
1752 | See \`config.log' for more details." >&2;} | |
1753 | { (exit 77); exit 77; }; } | |
1754 | fi | |
1755 | ||
1756 | ac_exeext=$ac_cv_exeext | |
1757 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1758 | echo "${ECHO_T}$ac_file" >&6 | |
1759 | ||
1760 | # Check the compiler produces executables we can run. If not, either | |
1761 | # the compiler is broken, or we cross compile. | |
1762 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1763 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1764 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1765 | # If not cross compiling, check that we can run a simple program. | |
1766 | if test "$cross_compiling" != yes; then | |
1767 | if { ac_try='./$ac_file' | |
1768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1769 | (eval $ac_try) 2>&5 | |
1770 | ac_status=$? | |
1771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1772 | (exit $ac_status); }; }; then | |
1773 | cross_compiling=no | |
795ca3e5 | 1774 | else |
8106cdd5 AK |
1775 | if test "$cross_compiling" = maybe; then |
1776 | cross_compiling=yes | |
1777 | else | |
1778 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1779 | If you meant to cross compile, use \`--host'. | |
1780 | See \`config.log' for more details." >&5 | |
1781 | echo "$as_me: error: cannot run C compiled programs. | |
1782 | If you meant to cross compile, use \`--host'. | |
1783 | See \`config.log' for more details." >&2;} | |
1784 | { (exit 1); exit 1; }; } | |
1785 | fi | |
795ca3e5 | 1786 | fi |
795ca3e5 | 1787 | fi |
8106cdd5 AK |
1788 | echo "$as_me:$LINENO: result: yes" >&5 |
1789 | echo "${ECHO_T}yes" >&6 | |
1790 | ||
1791 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1792 | ac_clean_files=$ac_clean_files_save | |
1793 | # Check the compiler produces executables we can run. If not, either | |
1794 | # the compiler is broken, or we cross compile. | |
1795 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1796 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1797 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1798 | echo "${ECHO_T}$cross_compiling" >&6 | |
1799 | ||
1800 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1801 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1803 | (eval $ac_link) 2>&5 | |
1804 | ac_status=$? | |
1805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1806 | (exit $ac_status); }; then | |
1807 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1808 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1809 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1810 | # `rm'. | |
1811 | for ac_file in conftest.exe conftest conftest.*; do | |
1812 | test -f "$ac_file" || continue | |
1813 | case $ac_file in | |
1814 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1815 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1816 | export ac_cv_exeext | |
1817 | break;; | |
1818 | * ) break;; | |
1819 | esac | |
1820 | done | |
795ca3e5 | 1821 | else |
8106cdd5 AK |
1822 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1823 | See \`config.log' for more details." >&5 | |
1824 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1825 | See \`config.log' for more details." >&2;} | |
1826 | { (exit 1); exit 1; }; } | |
1827 | fi | |
1828 | ||
1829 | rm -f conftest$ac_cv_exeext | |
1830 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1831 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1832 | ||
1833 | rm -f conftest.$ac_ext | |
1834 | EXEEXT=$ac_cv_exeext | |
1835 | ac_exeext=$EXEEXT | |
1836 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1837 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1838 | if test "${ac_cv_objext+set}" = set; then | |
1839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1840 | else | |
1841 | cat >conftest.$ac_ext <<_ACEOF | |
1842 | #line $LINENO "configure" | |
1843 | /* confdefs.h. */ | |
1844 | _ACEOF | |
1845 | cat confdefs.h >>conftest.$ac_ext | |
1846 | cat >>conftest.$ac_ext <<_ACEOF | |
1847 | /* end confdefs.h. */ | |
1848 | ||
1849 | int | |
1850 | main () | |
1851 | { | |
1852 | ||
1853 | ; | |
1854 | return 0; | |
1855 | } | |
1856 | _ACEOF | |
1857 | rm -f conftest.o conftest.obj | |
1858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1859 | (eval $ac_compile) 2>&5 | |
1860 | ac_status=$? | |
1861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1862 | (exit $ac_status); }; then | |
1863 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1864 | case $ac_file in | |
1865 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1866 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1867 | break;; | |
1868 | esac | |
1869 | done | |
1870 | else | |
1871 | echo "$as_me: failed program was:" >&5 | |
1872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1873 | ||
1874 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1875 | See \`config.log' for more details." >&5 | |
1876 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1877 | See \`config.log' for more details." >&2;} | |
1878 | { (exit 1); exit 1; }; } | |
1879 | fi | |
1880 | ||
1881 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1882 | fi | |
1883 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1884 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1885 | OBJEXT=$ac_cv_objext | |
1886 | ac_objext=$OBJEXT | |
1887 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1888 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1889 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1891 | else | |
1892 | cat >conftest.$ac_ext <<_ACEOF | |
1893 | #line $LINENO "configure" | |
1894 | /* confdefs.h. */ | |
1895 | _ACEOF | |
1896 | cat confdefs.h >>conftest.$ac_ext | |
1897 | cat >>conftest.$ac_ext <<_ACEOF | |
1898 | /* end confdefs.h. */ | |
1899 | ||
1900 | int | |
1901 | main () | |
1902 | { | |
1903 | #ifndef __GNUC__ | |
1904 | choke me | |
1905 | #endif | |
795ca3e5 | 1906 | |
8106cdd5 AK |
1907 | ; |
1908 | return 0; | |
1909 | } | |
1910 | _ACEOF | |
1911 | rm -f conftest.$ac_objext | |
1912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1913 | (eval $ac_compile) 2>&5 | |
1914 | ac_status=$? | |
1915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1916 | (exit $ac_status); } && | |
1917 | { ac_try='test -s conftest.$ac_objext' | |
1918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1919 | (eval $ac_try) 2>&5 | |
1920 | ac_status=$? | |
1921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1922 | (exit $ac_status); }; }; then | |
1923 | ac_compiler_gnu=yes | |
795ca3e5 | 1924 | else |
8106cdd5 AK |
1925 | echo "$as_me: failed program was:" >&5 |
1926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1927 | ||
1928 | ac_compiler_gnu=no | |
795ca3e5 | 1929 | fi |
8106cdd5 AK |
1930 | rm -f conftest.$ac_objext conftest.$ac_ext |
1931 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
795ca3e5 | 1932 | |
8106cdd5 AK |
1933 | fi |
1934 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1935 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1936 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1937 | ac_test_CFLAGS=${CFLAGS+set} | |
1938 | ac_save_CFLAGS=$CFLAGS | |
1939 | CFLAGS="-g" | |
1940 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1941 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1942 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 1944 | else |
8106cdd5 AK |
1945 | cat >conftest.$ac_ext <<_ACEOF |
1946 | #line $LINENO "configure" | |
1947 | /* confdefs.h. */ | |
1948 | _ACEOF | |
1949 | cat confdefs.h >>conftest.$ac_ext | |
1950 | cat >>conftest.$ac_ext <<_ACEOF | |
1951 | /* end confdefs.h. */ | |
1952 | ||
1953 | int | |
1954 | main () | |
1955 | { | |
1956 | ||
1957 | ; | |
1958 | return 0; | |
1959 | } | |
1960 | _ACEOF | |
1961 | rm -f conftest.$ac_objext | |
1962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1963 | (eval $ac_compile) 2>&5 | |
1964 | ac_status=$? | |
1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1966 | (exit $ac_status); } && | |
1967 | { ac_try='test -s conftest.$ac_objext' | |
1968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1969 | (eval $ac_try) 2>&5 | |
1970 | ac_status=$? | |
1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1972 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
1973 | ac_cv_prog_cc_g=yes |
1974 | else | |
8106cdd5 AK |
1975 | echo "$as_me: failed program was:" >&5 |
1976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 1977 | |
8106cdd5 | 1978 | ac_cv_prog_cc_g=no |
795ca3e5 | 1979 | fi |
8106cdd5 AK |
1980 | rm -f conftest.$ac_objext conftest.$ac_ext |
1981 | fi | |
1982 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
1983 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
795ca3e5 | 1984 | if test "$ac_test_CFLAGS" = set; then |
8106cdd5 | 1985 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
1986 | elif test $ac_cv_prog_cc_g = yes; then |
1987 | if test "$GCC" = yes; then | |
1988 | CFLAGS="-g -O2" | |
1989 | else | |
1990 | CFLAGS="-g" | |
1991 | fi | |
1992 | else | |
1993 | if test "$GCC" = yes; then | |
1994 | CFLAGS="-O2" | |
1995 | else | |
1996 | CFLAGS= | |
1997 | fi | |
1998 | fi | |
8106cdd5 AK |
1999 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2000 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2001 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2003 | else | |
2004 | ac_cv_prog_cc_stdc=no | |
2005 | ac_save_CC=$CC | |
2006 | cat >conftest.$ac_ext <<_ACEOF | |
2007 | #line $LINENO "configure" | |
2008 | /* confdefs.h. */ | |
2009 | _ACEOF | |
2010 | cat confdefs.h >>conftest.$ac_ext | |
2011 | cat >>conftest.$ac_ext <<_ACEOF | |
2012 | /* end confdefs.h. */ | |
2013 | #include <stdarg.h> | |
2014 | #include <stdio.h> | |
2015 | #include <sys/types.h> | |
2016 | #include <sys/stat.h> | |
2017 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2018 | struct buf { int x; }; | |
2019 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2020 | static char *e (p, i) | |
2021 | char **p; | |
2022 | int i; | |
2023 | { | |
2024 | return p[i]; | |
2025 | } | |
2026 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2027 | { | |
2028 | char *s; | |
2029 | va_list v; | |
2030 | va_start (v,p); | |
2031 | s = g (p, va_arg (v,int)); | |
2032 | va_end (v); | |
2033 | return s; | |
2034 | } | |
2035 | int test (int i, double x); | |
2036 | struct s1 {int (*f) (int a);}; | |
2037 | struct s2 {int (*f) (double a);}; | |
2038 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2039 | int argc; | |
2040 | char **argv; | |
2041 | int | |
2042 | main () | |
2043 | { | |
2044 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2045 | ; | |
2046 | return 0; | |
2047 | } | |
2048 | _ACEOF | |
2049 | # Don't try gcc -ansi; that turns off useful extensions and | |
2050 | # breaks some systems' header files. | |
2051 | # AIX -qlanglvl=ansi | |
2052 | # Ultrix and OSF/1 -std1 | |
2053 | # HP-UX 10.20 and later -Ae | |
2054 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2055 | # SVR4 -Xc -D__EXTENSIONS__ | |
2056 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2057 | do | |
2058 | CC="$ac_save_CC $ac_arg" | |
2059 | rm -f conftest.$ac_objext | |
2060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2061 | (eval $ac_compile) 2>&5 | |
2062 | ac_status=$? | |
2063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2064 | (exit $ac_status); } && | |
2065 | { ac_try='test -s conftest.$ac_objext' | |
2066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2067 | (eval $ac_try) 2>&5 | |
2068 | ac_status=$? | |
2069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2070 | (exit $ac_status); }; }; then | |
2071 | ac_cv_prog_cc_stdc=$ac_arg | |
2072 | break | |
2073 | else | |
2074 | echo "$as_me: failed program was:" >&5 | |
2075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2076 | ||
2077 | fi | |
2078 | rm -f conftest.$ac_objext | |
2079 | done | |
2080 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2081 | CC=$ac_save_CC | |
2082 | ||
2083 | fi | |
2084 | ||
2085 | case "x$ac_cv_prog_cc_stdc" in | |
2086 | x|xno) | |
2087 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2088 | echo "${ECHO_T}none needed" >&6 ;; | |
2089 | *) | |
2090 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2091 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2092 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2093 | esac | |
2094 | ||
2095 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2096 | # in C++ we need to declare it. In case someone uses the same compiler | |
2097 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2098 | # the declaration of exit, since it's the most demanding environment. | |
2099 | cat >conftest.$ac_ext <<_ACEOF | |
2100 | #ifndef __cplusplus | |
2101 | choke me | |
2102 | #endif | |
2103 | _ACEOF | |
2104 | rm -f conftest.$ac_objext | |
2105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2106 | (eval $ac_compile) 2>&5 | |
2107 | ac_status=$? | |
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2109 | (exit $ac_status); } && | |
2110 | { ac_try='test -s conftest.$ac_objext' | |
2111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2112 | (eval $ac_try) 2>&5 | |
2113 | ac_status=$? | |
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | (exit $ac_status); }; }; then | |
2116 | for ac_declaration in \ | |
2117 | ''\ | |
2118 | '#include <stdlib.h>' \ | |
2119 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2120 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2121 | 'extern "C" void exit (int) throw ();' \ | |
2122 | 'extern "C" void exit (int);' \ | |
2123 | 'void exit (int);' | |
2124 | do | |
2125 | cat >conftest.$ac_ext <<_ACEOF | |
2126 | #line $LINENO "configure" | |
2127 | /* confdefs.h. */ | |
2128 | _ACEOF | |
2129 | cat confdefs.h >>conftest.$ac_ext | |
2130 | cat >>conftest.$ac_ext <<_ACEOF | |
2131 | /* end confdefs.h. */ | |
2132 | #include <stdlib.h> | |
2133 | $ac_declaration | |
2134 | int | |
2135 | main () | |
2136 | { | |
2137 | exit (42); | |
2138 | ; | |
2139 | return 0; | |
2140 | } | |
2141 | _ACEOF | |
2142 | rm -f conftest.$ac_objext | |
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2144 | (eval $ac_compile) 2>&5 | |
2145 | ac_status=$? | |
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2147 | (exit $ac_status); } && | |
2148 | { ac_try='test -s conftest.$ac_objext' | |
2149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2150 | (eval $ac_try) 2>&5 | |
2151 | ac_status=$? | |
2152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2153 | (exit $ac_status); }; }; then | |
2154 | : | |
2155 | else | |
2156 | echo "$as_me: failed program was:" >&5 | |
2157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2158 | ||
2159 | continue | |
2160 | fi | |
2161 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2162 | cat >conftest.$ac_ext <<_ACEOF | |
2163 | #line $LINENO "configure" | |
2164 | /* confdefs.h. */ | |
2165 | _ACEOF | |
2166 | cat confdefs.h >>conftest.$ac_ext | |
2167 | cat >>conftest.$ac_ext <<_ACEOF | |
2168 | /* end confdefs.h. */ | |
2169 | $ac_declaration | |
2170 | int | |
2171 | main () | |
2172 | { | |
2173 | exit (42); | |
2174 | ; | |
2175 | return 0; | |
2176 | } | |
2177 | _ACEOF | |
2178 | rm -f conftest.$ac_objext | |
2179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2180 | (eval $ac_compile) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); } && | |
2184 | { ac_try='test -s conftest.$ac_objext' | |
2185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2186 | (eval $ac_try) 2>&5 | |
2187 | ac_status=$? | |
2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2189 | (exit $ac_status); }; }; then | |
2190 | break | |
2191 | else | |
2192 | echo "$as_me: failed program was:" >&5 | |
2193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2194 | ||
2195 | fi | |
2196 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2197 | done | |
2198 | rm -f conftest* | |
2199 | if test -n "$ac_declaration"; then | |
2200 | echo '#ifdef __cplusplus' >>confdefs.h | |
2201 | echo $ac_declaration >>confdefs.h | |
2202 | echo '#endif' >>confdefs.h | |
2203 | fi | |
2204 | ||
2205 | else | |
2206 | echo "$as_me: failed program was:" >&5 | |
2207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2208 | ||
2209 | fi | |
2210 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2211 | ac_ext=c | |
2212 | ac_cpp='$CPP $CPPFLAGS' | |
2213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
2216 | |
2217 | # Find a good install program. We prefer a C program (faster), | |
2218 | # so one script is as good as another. But avoid the broken or | |
2219 | # incompatible versions: | |
2220 | # SysV /etc/install, /usr/sbin/install | |
2221 | # SunOS /usr/etc/install | |
2222 | # IRIX /sbin/install | |
2223 | # AIX /bin/install | |
8106cdd5 | 2224 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
2225 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2226 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2227 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2228 | # ./install, which can be erroneously created by make from ./install.sh. | |
8106cdd5 AK |
2229 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2230 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
795ca3e5 | 2231 | if test -z "$INSTALL"; then |
8106cdd5 AK |
2232 | if test "${ac_cv_path_install+set}" = set; then |
2233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2234 | else | |
2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2236 | for as_dir in $PATH | |
2237 | do | |
2238 | IFS=$as_save_IFS | |
2239 | test -z "$as_dir" && as_dir=. | |
2240 | # Account for people who put trailing slashes in PATH elements. | |
2241 | case $as_dir/ in | |
2242 | ./ | .// | /cC/* | \ | |
2243 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2244 | /usr/ucb/* ) ;; | |
2245 | *) | |
2246 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2247 | # Don't use installbsd from OSF since it installs stuff as root | |
2248 | # by default. | |
2249 | for ac_prog in ginstall scoinst install; do | |
2250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2251 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2252 | if test $ac_prog = install && | |
2253 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2254 | # AIX install. It has an incompatible calling convention. | |
2255 | : | |
2256 | elif test $ac_prog = install && | |
2257 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2258 | # program-specific install script used by HP pwplus--don't use. | |
2259 | : | |
2260 | else | |
2261 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2262 | break 3 | |
2263 | fi | |
2264 | fi | |
795ca3e5 | 2265 | done |
8106cdd5 AK |
2266 | done |
2267 | ;; | |
2268 | esac | |
2269 | done | |
2270 | ||
795ca3e5 AK |
2271 | |
2272 | fi | |
2273 | if test "${ac_cv_path_install+set}" = set; then | |
8106cdd5 | 2274 | INSTALL=$ac_cv_path_install |
795ca3e5 AK |
2275 | else |
2276 | # As a last resort, use the slow shell script. We don't cache a | |
2277 | # path for INSTALL within a source directory, because that will | |
2278 | # break other packages using the cache if that directory is | |
2279 | # removed, or if the path is relative. | |
8106cdd5 | 2280 | INSTALL=$ac_install_sh |
795ca3e5 AK |
2281 | fi |
2282 | fi | |
8106cdd5 AK |
2283 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2284 | echo "${ECHO_T}$INSTALL" >&6 | |
795ca3e5 AK |
2285 | |
2286 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2287 | # It thinks the first close brace ends the variable substitution. | |
2288 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2289 | ||
8106cdd5 | 2290 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
2291 | |
2292 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2293 | ||
8106cdd5 AK |
2294 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2295 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2296 | LN_S=$as_ln_s | |
2297 | if test "$LN_S" = "ln -s"; then | |
2298 | echo "$as_me:$LINENO: result: yes" >&5 | |
2299 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 | 2300 | else |
8106cdd5 AK |
2301 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2302 | echo "${ECHO_T}no, using $LN_S" >&6 | |
795ca3e5 AK |
2303 | fi |
2304 | ||
8106cdd5 AK |
2305 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2306 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2307 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
2308 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2310 | else |
8106cdd5 | 2311 | cat >conftest.make <<\_ACEOF |
795ca3e5 | 2312 | all: |
8106cdd5 AK |
2313 | @echo 'ac_maketemp="$(MAKE)"' |
2314 | _ACEOF | |
795ca3e5 | 2315 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
8106cdd5 | 2316 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
795ca3e5 AK |
2317 | if test -n "$ac_maketemp"; then |
2318 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2319 | else | |
2320 | eval ac_cv_prog_make_${ac_make}_set=no | |
2321 | fi | |
8106cdd5 | 2322 | rm -f conftest.make |
795ca3e5 AK |
2323 | fi |
2324 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
8106cdd5 AK |
2325 | echo "$as_me:$LINENO: result: yes" >&5 |
2326 | echo "${ECHO_T}yes" >&6 | |
795ca3e5 AK |
2327 | SET_MAKE= |
2328 | else | |
8106cdd5 AK |
2329 | echo "$as_me:$LINENO: result: no" >&5 |
2330 | echo "${ECHO_T}no" >&6 | |
795ca3e5 AK |
2331 | SET_MAKE="MAKE=${MAKE-make}" |
2332 | fi | |
2333 | ||
8106cdd5 AK |
2334 | if test -n "$ac_tool_prefix"; then |
2335 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2336 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2337 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2338 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2339 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
2341 | else |
2342 | if test -n "$RANLIB"; then | |
2343 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2344 | else | |
8106cdd5 AK |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2346 | for as_dir in $PATH | |
2347 | do | |
2348 | IFS=$as_save_IFS | |
2349 | test -z "$as_dir" && as_dir=. | |
2350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2351 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2352 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2354 | break 2 | |
2355 | fi | |
2356 | done | |
2357 | done | |
2358 | ||
795ca3e5 AK |
2359 | fi |
2360 | fi | |
8106cdd5 | 2361 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 2362 | if test -n "$RANLIB"; then |
8106cdd5 AK |
2363 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2364 | echo "${ECHO_T}$RANLIB" >&6 | |
2365 | else | |
2366 | echo "$as_me:$LINENO: result: no" >&5 | |
2367 | echo "${ECHO_T}no" >&6 | |
2368 | fi | |
2369 | ||
2370 | fi | |
2371 | if test -z "$ac_cv_prog_RANLIB"; then | |
2372 | ac_ct_RANLIB=$RANLIB | |
2373 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2374 | set dummy ranlib; ac_word=$2 | |
2375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2377 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2379 | else |
8106cdd5 AK |
2380 | if test -n "$ac_ct_RANLIB"; then |
2381 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2382 | else | |
2383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2384 | for as_dir in $PATH | |
2385 | do | |
2386 | IFS=$as_save_IFS | |
2387 | test -z "$as_dir" && as_dir=. | |
2388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2390 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2392 | break 2 | |
2393 | fi | |
2394 | done | |
2395 | done | |
2396 | ||
2397 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2398 | fi | |
2399 | fi | |
2400 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2401 | if test -n "$ac_ct_RANLIB"; then | |
2402 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2403 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2404 | else | |
2405 | echo "$as_me:$LINENO: result: no" >&5 | |
2406 | echo "${ECHO_T}no" >&6 | |
2407 | fi | |
2408 | ||
2409 | RANLIB=$ac_ct_RANLIB | |
2410 | else | |
2411 | RANLIB="$ac_cv_prog_RANLIB" | |
795ca3e5 AK |
2412 | fi |
2413 | ||
2414 | ||
8106cdd5 AK |
2415 | |
2416 | ||
2417 | ||
2418 | ||
2419 | ||
2420 | ||
795ca3e5 | 2421 | ac_header_dirent=no |
8106cdd5 AK |
2422 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
2423 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
2424 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
2425 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
2426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2428 | else | |
2429 | cat >conftest.$ac_ext <<_ACEOF | |
2430 | #line $LINENO "configure" | |
2431 | /* confdefs.h. */ | |
2432 | _ACEOF | |
2433 | cat confdefs.h >>conftest.$ac_ext | |
2434 | cat >>conftest.$ac_ext <<_ACEOF | |
2435 | /* end confdefs.h. */ | |
795ca3e5 AK |
2436 | #include <sys/types.h> |
2437 | #include <$ac_hdr> | |
8106cdd5 AK |
2438 | |
2439 | int | |
2440 | main () | |
2441 | { | |
2442 | if ((DIR *) 0) | |
2443 | return 0; | |
2444 | ; | |
2445 | return 0; | |
2446 | } | |
2447 | _ACEOF | |
2448 | rm -f conftest.$ac_objext | |
2449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2450 | (eval $ac_compile) 2>&5 | |
2451 | ac_status=$? | |
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2453 | (exit $ac_status); } && | |
2454 | { ac_try='test -s conftest.$ac_objext' | |
2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2456 | (eval $ac_try) 2>&5 | |
2457 | ac_status=$? | |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2459 | (exit $ac_status); }; }; then | |
2460 | eval "$as_ac_Header=yes" | |
2461 | else | |
2462 | echo "$as_me: failed program was:" >&5 | |
2463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2464 | ||
2465 | eval "$as_ac_Header=no" | |
795ca3e5 | 2466 | fi |
8106cdd5 | 2467 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 2468 | fi |
8106cdd5 AK |
2469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
2470 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2471 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2472 | cat >>confdefs.h <<_ACEOF | |
2473 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
2474 | _ACEOF | |
2475 | ||
2476 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 2477 | fi |
8106cdd5 | 2478 | |
795ca3e5 AK |
2479 | done |
2480 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
2481 | if test $ac_header_dirent = dirent.h; then | |
8106cdd5 AK |
2482 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2483 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2484 | if test "${ac_cv_search_opendir+set}" = set; then | |
2485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2486 | else | |
2487 | ac_func_search_save_LIBS=$LIBS | |
2488 | ac_cv_search_opendir=no | |
2489 | cat >conftest.$ac_ext <<_ACEOF | |
2490 | #line $LINENO "configure" | |
2491 | /* confdefs.h. */ | |
2492 | _ACEOF | |
2493 | cat confdefs.h >>conftest.$ac_ext | |
2494 | cat >>conftest.$ac_ext <<_ACEOF | |
2495 | /* end confdefs.h. */ | |
2496 | ||
795ca3e5 | 2497 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
2498 | #ifdef __cplusplus |
2499 | extern "C" | |
2500 | #endif | |
795ca3e5 | 2501 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
2502 | builtin and then its argument prototype would still apply. */ |
2503 | char opendir (); | |
2504 | int | |
2505 | main () | |
2506 | { | |
2507 | opendir (); | |
2508 | ; | |
2509 | return 0; | |
2510 | } | |
2511 | _ACEOF | |
2512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2514 | (eval $ac_link) 2>&5 | |
2515 | ac_status=$? | |
2516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2517 | (exit $ac_status); } && | |
2518 | { ac_try='test -s conftest$ac_exeext' | |
2519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2520 | (eval $ac_try) 2>&5 | |
2521 | ac_status=$? | |
2522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2523 | (exit $ac_status); }; }; then | |
2524 | ac_cv_search_opendir="none required" | |
2525 | else | |
2526 | echo "$as_me: failed program was:" >&5 | |
2527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2528 | ||
2529 | fi | |
2530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2531 | if test "$ac_cv_search_opendir" = no; then | |
2532 | for ac_lib in dir; do | |
2533 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2534 | cat >conftest.$ac_ext <<_ACEOF | |
2535 | #line $LINENO "configure" | |
2536 | /* confdefs.h. */ | |
2537 | _ACEOF | |
2538 | cat confdefs.h >>conftest.$ac_ext | |
2539 | cat >>conftest.$ac_ext <<_ACEOF | |
2540 | /* end confdefs.h. */ | |
795ca3e5 | 2541 | |
8106cdd5 AK |
2542 | /* Override any gcc2 internal prototype to avoid an error. */ |
2543 | #ifdef __cplusplus | |
2544 | extern "C" | |
2545 | #endif | |
2546 | /* We use char because int might match the return type of a gcc2 | |
2547 | builtin and then its argument prototype would still apply. */ | |
2548 | char opendir (); | |
2549 | int | |
2550 | main () | |
2551 | { | |
2552 | opendir (); | |
2553 | ; | |
2554 | return 0; | |
2555 | } | |
2556 | _ACEOF | |
2557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2559 | (eval $ac_link) 2>&5 | |
2560 | ac_status=$? | |
2561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2562 | (exit $ac_status); } && | |
2563 | { ac_try='test -s conftest$ac_exeext' | |
2564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2565 | (eval $ac_try) 2>&5 | |
2566 | ac_status=$? | |
2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2568 | (exit $ac_status); }; }; then | |
2569 | ac_cv_search_opendir="-l$ac_lib" | |
2570 | break | |
795ca3e5 | 2571 | else |
8106cdd5 AK |
2572 | echo "$as_me: failed program was:" >&5 |
2573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2574 | ||
2575 | fi | |
2576 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2577 | done | |
2578 | fi | |
2579 | LIBS=$ac_func_search_save_LIBS | |
2580 | fi | |
2581 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2582 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2583 | if test "$ac_cv_search_opendir" != no; then | |
2584 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
2585 | ||
795ca3e5 AK |
2586 | fi |
2587 | ||
2588 | else | |
8106cdd5 AK |
2589 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
2590 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
2591 | if test "${ac_cv_search_opendir+set}" = set; then | |
2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2593 | else |
8106cdd5 AK |
2594 | ac_func_search_save_LIBS=$LIBS |
2595 | ac_cv_search_opendir=no | |
2596 | cat >conftest.$ac_ext <<_ACEOF | |
2597 | #line $LINENO "configure" | |
2598 | /* confdefs.h. */ | |
2599 | _ACEOF | |
2600 | cat confdefs.h >>conftest.$ac_ext | |
2601 | cat >>conftest.$ac_ext <<_ACEOF | |
2602 | /* end confdefs.h. */ | |
2603 | ||
795ca3e5 | 2604 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
2605 | #ifdef __cplusplus |
2606 | extern "C" | |
2607 | #endif | |
795ca3e5 | 2608 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
2609 | builtin and then its argument prototype would still apply. */ |
2610 | char opendir (); | |
2611 | int | |
2612 | main () | |
2613 | { | |
2614 | opendir (); | |
2615 | ; | |
2616 | return 0; | |
2617 | } | |
2618 | _ACEOF | |
2619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2621 | (eval $ac_link) 2>&5 | |
2622 | ac_status=$? | |
2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2624 | (exit $ac_status); } && | |
2625 | { ac_try='test -s conftest$ac_exeext' | |
2626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2627 | (eval $ac_try) 2>&5 | |
2628 | ac_status=$? | |
2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2630 | (exit $ac_status); }; }; then | |
2631 | ac_cv_search_opendir="none required" | |
2632 | else | |
2633 | echo "$as_me: failed program was:" >&5 | |
2634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2635 | ||
2636 | fi | |
2637 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2638 | if test "$ac_cv_search_opendir" = no; then | |
2639 | for ac_lib in x; do | |
2640 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2641 | cat >conftest.$ac_ext <<_ACEOF | |
2642 | #line $LINENO "configure" | |
2643 | /* confdefs.h. */ | |
2644 | _ACEOF | |
2645 | cat confdefs.h >>conftest.$ac_ext | |
2646 | cat >>conftest.$ac_ext <<_ACEOF | |
2647 | /* end confdefs.h. */ | |
795ca3e5 | 2648 | |
8106cdd5 AK |
2649 | /* Override any gcc2 internal prototype to avoid an error. */ |
2650 | #ifdef __cplusplus | |
2651 | extern "C" | |
2652 | #endif | |
2653 | /* We use char because int might match the return type of a gcc2 | |
2654 | builtin and then its argument prototype would still apply. */ | |
2655 | char opendir (); | |
2656 | int | |
2657 | main () | |
2658 | { | |
2659 | opendir (); | |
2660 | ; | |
2661 | return 0; | |
2662 | } | |
2663 | _ACEOF | |
2664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2666 | (eval $ac_link) 2>&5 | |
2667 | ac_status=$? | |
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2669 | (exit $ac_status); } && | |
2670 | { ac_try='test -s conftest$ac_exeext' | |
2671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2672 | (eval $ac_try) 2>&5 | |
2673 | ac_status=$? | |
2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2675 | (exit $ac_status); }; }; then | |
2676 | ac_cv_search_opendir="-l$ac_lib" | |
2677 | break | |
795ca3e5 | 2678 | else |
8106cdd5 AK |
2679 | echo "$as_me: failed program was:" >&5 |
2680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2681 | ||
2682 | fi | |
2683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2684 | done | |
2685 | fi | |
2686 | LIBS=$ac_func_search_save_LIBS | |
2687 | fi | |
2688 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
2689 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
2690 | if test "$ac_cv_search_opendir" != no; then | |
2691 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
2692 | ||
795ca3e5 AK |
2693 | fi |
2694 | ||
2695 | fi | |
2696 | ||
8106cdd5 AK |
2697 | ac_ext=c |
2698 | ac_cpp='$CPP $CPPFLAGS' | |
2699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2702 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2703 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
795ca3e5 AK |
2704 | # On Suns, sometimes $CPP names a directory. |
2705 | if test -n "$CPP" && test -d "$CPP"; then | |
2706 | CPP= | |
2707 | fi | |
2708 | if test -z "$CPP"; then | |
8106cdd5 AK |
2709 | if test "${ac_cv_prog_CPP+set}" = set; then |
2710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2711 | else |
8106cdd5 AK |
2712 | # Double quotes because CPP needs to be expanded |
2713 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2714 | do | |
2715 | ac_preproc_ok=false | |
2716 | for ac_c_preproc_warn_flag in '' yes | |
2717 | do | |
2718 | # Use a header file that comes with gcc, so configuring glibc | |
2719 | # with a fresh cross-compiler works. | |
2720 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2721 | # <limits.h> exists even on freestanding compilers. | |
795ca3e5 | 2722 | # On the NeXT, cc -E runs the code through the compiler's parser, |
8106cdd5 AK |
2723 | # not just through cpp. "Syntax error" is here to catch this case. |
2724 | cat >conftest.$ac_ext <<_ACEOF | |
2725 | #line $LINENO "configure" | |
2726 | /* confdefs.h. */ | |
2727 | _ACEOF | |
2728 | cat confdefs.h >>conftest.$ac_ext | |
2729 | cat >>conftest.$ac_ext <<_ACEOF | |
2730 | /* end confdefs.h. */ | |
2731 | #ifdef __STDC__ | |
2732 | # include <limits.h> | |
2733 | #else | |
2734 | # include <assert.h> | |
2735 | #endif | |
2736 | Syntax error | |
2737 | _ACEOF | |
2738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2740 | ac_status=$? | |
2741 | grep -v '^ *+' conftest.er1 >conftest.err | |
2742 | rm -f conftest.er1 | |
2743 | cat conftest.err >&5 | |
2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2745 | (exit $ac_status); } >/dev/null; then | |
2746 | if test -s conftest.err; then | |
2747 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2748 | else | |
2749 | ac_cpp_err= | |
2750 | fi | |
795ca3e5 | 2751 | else |
8106cdd5 AK |
2752 | ac_cpp_err=yes |
2753 | fi | |
2754 | if test -z "$ac_cpp_err"; then | |
795ca3e5 AK |
2755 | : |
2756 | else | |
8106cdd5 AK |
2757 | echo "$as_me: failed program was:" >&5 |
2758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2759 | ||
2760 | # Broken: fails on valid input. | |
2761 | continue | |
2762 | fi | |
2763 | rm -f conftest.err conftest.$ac_ext | |
2764 | ||
2765 | # OK, works on sane cases. Now check whether non-existent headers | |
2766 | # can be detected and how. | |
2767 | cat >conftest.$ac_ext <<_ACEOF | |
2768 | #line $LINENO "configure" | |
2769 | /* confdefs.h. */ | |
2770 | _ACEOF | |
2771 | cat confdefs.h >>conftest.$ac_ext | |
2772 | cat >>conftest.$ac_ext <<_ACEOF | |
2773 | /* end confdefs.h. */ | |
2774 | #include <ac_nonexistent.h> | |
2775 | _ACEOF | |
2776 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2777 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2778 | ac_status=$? | |
2779 | grep -v '^ *+' conftest.er1 >conftest.err | |
2780 | rm -f conftest.er1 | |
2781 | cat conftest.err >&5 | |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2783 | (exit $ac_status); } >/dev/null; then | |
2784 | if test -s conftest.err; then | |
2785 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2786 | else | |
2787 | ac_cpp_err= | |
2788 | fi | |
795ca3e5 | 2789 | else |
8106cdd5 | 2790 | ac_cpp_err=yes |
795ca3e5 | 2791 | fi |
8106cdd5 AK |
2792 | if test -z "$ac_cpp_err"; then |
2793 | # Broken: success on invalid input. | |
2794 | continue | |
2795 | else | |
2796 | echo "$as_me: failed program was:" >&5 | |
2797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2798 | ||
2799 | # Passes both tests. | |
2800 | ac_preproc_ok=: | |
2801 | break | |
795ca3e5 | 2802 | fi |
8106cdd5 AK |
2803 | rm -f conftest.err conftest.$ac_ext |
2804 | ||
2805 | done | |
2806 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2807 | rm -f conftest.err conftest.$ac_ext | |
2808 | if $ac_preproc_ok; then | |
2809 | break | |
795ca3e5 | 2810 | fi |
8106cdd5 AK |
2811 | |
2812 | done | |
2813 | ac_cv_prog_CPP=$CPP | |
2814 | ||
2815 | fi | |
2816 | CPP=$ac_cv_prog_CPP | |
2817 | else | |
2818 | ac_cv_prog_CPP=$CPP | |
2819 | fi | |
2820 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2821 | echo "${ECHO_T}$CPP" >&6 | |
2822 | ac_preproc_ok=false | |
2823 | for ac_c_preproc_warn_flag in '' yes | |
2824 | do | |
2825 | # Use a header file that comes with gcc, so configuring glibc | |
2826 | # with a fresh cross-compiler works. | |
2827 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2828 | # <limits.h> exists even on freestanding compilers. | |
2829 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2830 | # not just through cpp. "Syntax error" is here to catch this case. | |
2831 | cat >conftest.$ac_ext <<_ACEOF | |
2832 | #line $LINENO "configure" | |
2833 | /* confdefs.h. */ | |
2834 | _ACEOF | |
2835 | cat confdefs.h >>conftest.$ac_ext | |
2836 | cat >>conftest.$ac_ext <<_ACEOF | |
2837 | /* end confdefs.h. */ | |
2838 | #ifdef __STDC__ | |
2839 | # include <limits.h> | |
2840 | #else | |
2841 | # include <assert.h> | |
2842 | #endif | |
2843 | Syntax error | |
2844 | _ACEOF | |
2845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2847 | ac_status=$? | |
2848 | grep -v '^ *+' conftest.er1 >conftest.err | |
2849 | rm -f conftest.er1 | |
2850 | cat conftest.err >&5 | |
2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2852 | (exit $ac_status); } >/dev/null; then | |
2853 | if test -s conftest.err; then | |
2854 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2855 | else | |
2856 | ac_cpp_err= | |
2857 | fi | |
2858 | else | |
2859 | ac_cpp_err=yes | |
2860 | fi | |
2861 | if test -z "$ac_cpp_err"; then | |
2862 | : | |
2863 | else | |
2864 | echo "$as_me: failed program was:" >&5 | |
2865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2866 | ||
2867 | # Broken: fails on valid input. | |
2868 | continue | |
2869 | fi | |
2870 | rm -f conftest.err conftest.$ac_ext | |
2871 | ||
2872 | # OK, works on sane cases. Now check whether non-existent headers | |
2873 | # can be detected and how. | |
2874 | cat >conftest.$ac_ext <<_ACEOF | |
2875 | #line $LINENO "configure" | |
2876 | /* confdefs.h. */ | |
2877 | _ACEOF | |
2878 | cat confdefs.h >>conftest.$ac_ext | |
2879 | cat >>conftest.$ac_ext <<_ACEOF | |
2880 | /* end confdefs.h. */ | |
2881 | #include <ac_nonexistent.h> | |
2882 | _ACEOF | |
2883 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2884 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2885 | ac_status=$? | |
2886 | grep -v '^ *+' conftest.er1 >conftest.err | |
2887 | rm -f conftest.er1 | |
2888 | cat conftest.err >&5 | |
2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2890 | (exit $ac_status); } >/dev/null; then | |
2891 | if test -s conftest.err; then | |
2892 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2893 | else | |
2894 | ac_cpp_err= | |
2895 | fi | |
2896 | else | |
2897 | ac_cpp_err=yes | |
2898 | fi | |
2899 | if test -z "$ac_cpp_err"; then | |
2900 | # Broken: success on invalid input. | |
2901 | continue | |
2902 | else | |
2903 | echo "$as_me: failed program was:" >&5 | |
2904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2905 | ||
2906 | # Passes both tests. | |
2907 | ac_preproc_ok=: | |
2908 | break | |
2909 | fi | |
2910 | rm -f conftest.err conftest.$ac_ext | |
2911 | ||
2912 | done | |
2913 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2914 | rm -f conftest.err conftest.$ac_ext | |
2915 | if $ac_preproc_ok; then | |
2916 | : | |
2917 | else | |
2918 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2919 | See \`config.log' for more details." >&5 | |
2920 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2921 | See \`config.log' for more details." >&2;} | |
2922 | { (exit 1); exit 1; }; } | |
795ca3e5 | 2923 | fi |
8106cdd5 AK |
2924 | |
2925 | ac_ext=c | |
2926 | ac_cpp='$CPP $CPPFLAGS' | |
2927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2930 | ||
2931 | ||
2932 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2933 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2934 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2936 | else |
8106cdd5 AK |
2937 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2938 | then ac_cv_prog_egrep='grep -E' | |
2939 | else ac_cv_prog_egrep='egrep' | |
2940 | fi | |
795ca3e5 | 2941 | fi |
8106cdd5 AK |
2942 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2943 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2944 | EGREP=$ac_cv_prog_egrep | |
795ca3e5 | 2945 | |
8106cdd5 AK |
2946 | |
2947 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2948 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2949 | if test "${ac_cv_header_stdc+set}" = set; then | |
2950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 2951 | else |
8106cdd5 AK |
2952 | cat >conftest.$ac_ext <<_ACEOF |
2953 | #line $LINENO "configure" | |
2954 | /* confdefs.h. */ | |
2955 | _ACEOF | |
2956 | cat confdefs.h >>conftest.$ac_ext | |
2957 | cat >>conftest.$ac_ext <<_ACEOF | |
2958 | /* end confdefs.h. */ | |
795ca3e5 AK |
2959 | #include <stdlib.h> |
2960 | #include <stdarg.h> | |
2961 | #include <string.h> | |
2962 | #include <float.h> | |
8106cdd5 AK |
2963 | |
2964 | int | |
2965 | main () | |
2966 | { | |
2967 | ||
2968 | ; | |
2969 | return 0; | |
2970 | } | |
2971 | _ACEOF | |
2972 | rm -f conftest.$ac_objext | |
2973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2974 | (eval $ac_compile) 2>&5 | |
2975 | ac_status=$? | |
2976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2977 | (exit $ac_status); } && | |
2978 | { ac_try='test -s conftest.$ac_objext' | |
2979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2980 | (eval $ac_try) 2>&5 | |
2981 | ac_status=$? | |
2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2983 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2984 | ac_cv_header_stdc=yes |
2985 | else | |
8106cdd5 AK |
2986 | echo "$as_me: failed program was:" >&5 |
2987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2988 | ||
2989 | ac_cv_header_stdc=no | |
795ca3e5 | 2990 | fi |
8106cdd5 | 2991 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 AK |
2992 | |
2993 | if test $ac_cv_header_stdc = yes; then | |
2994 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8106cdd5 AK |
2995 | cat >conftest.$ac_ext <<_ACEOF |
2996 | #line $LINENO "configure" | |
2997 | /* confdefs.h. */ | |
2998 | _ACEOF | |
2999 | cat confdefs.h >>conftest.$ac_ext | |
3000 | cat >>conftest.$ac_ext <<_ACEOF | |
3001 | /* end confdefs.h. */ | |
795ca3e5 | 3002 | #include <string.h> |
8106cdd5 AK |
3003 | |
3004 | _ACEOF | |
795ca3e5 | 3005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 3006 | $EGREP "memchr" >/dev/null 2>&1; then |
795ca3e5 AK |
3007 | : |
3008 | else | |
795ca3e5 AK |
3009 | ac_cv_header_stdc=no |
3010 | fi | |
3011 | rm -f conftest* | |
3012 | ||
3013 | fi | |
3014 | ||
3015 | if test $ac_cv_header_stdc = yes; then | |
3016 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8106cdd5 AK |
3017 | cat >conftest.$ac_ext <<_ACEOF |
3018 | #line $LINENO "configure" | |
3019 | /* confdefs.h. */ | |
3020 | _ACEOF | |
3021 | cat confdefs.h >>conftest.$ac_ext | |
3022 | cat >>conftest.$ac_ext <<_ACEOF | |
3023 | /* end confdefs.h. */ | |
795ca3e5 | 3024 | #include <stdlib.h> |
8106cdd5 AK |
3025 | |
3026 | _ACEOF | |
795ca3e5 | 3027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 3028 | $EGREP "free" >/dev/null 2>&1; then |
795ca3e5 AK |
3029 | : |
3030 | else | |
795ca3e5 AK |
3031 | ac_cv_header_stdc=no |
3032 | fi | |
3033 | rm -f conftest* | |
3034 | ||
3035 | fi | |
3036 | ||
3037 | if test $ac_cv_header_stdc = yes; then | |
3038 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8106cdd5 | 3039 | if test "$cross_compiling" = yes; then |
795ca3e5 AK |
3040 | : |
3041 | else | |
8106cdd5 AK |
3042 | cat >conftest.$ac_ext <<_ACEOF |
3043 | #line $LINENO "configure" | |
3044 | /* confdefs.h. */ | |
3045 | _ACEOF | |
3046 | cat confdefs.h >>conftest.$ac_ext | |
3047 | cat >>conftest.$ac_ext <<_ACEOF | |
3048 | /* end confdefs.h. */ | |
795ca3e5 | 3049 | #include <ctype.h> |
8106cdd5 AK |
3050 | #if ((' ' & 0x0FF) == 0x020) |
3051 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3052 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3053 | #else | |
3054 | # define ISLOWER(c) \ | |
3055 | (('a' <= (c) && (c) <= 'i') \ | |
3056 | || ('j' <= (c) && (c) <= 'r') \ | |
3057 | || ('s' <= (c) && (c) <= 'z')) | |
3058 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3059 | #endif | |
795ca3e5 | 3060 | |
8106cdd5 AK |
3061 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3062 | int | |
3063 | main () | |
3064 | { | |
3065 | int i; | |
3066 | for (i = 0; i < 256; i++) | |
3067 | if (XOR (islower (i), ISLOWER (i)) | |
3068 | || toupper (i) != TOUPPER (i)) | |
3069 | exit(2); | |
3070 | exit (0); | |
3071 | } | |
3072 | _ACEOF | |
3073 | rm -f conftest$ac_exeext | |
3074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3075 | (eval $ac_link) 2>&5 | |
3076 | ac_status=$? | |
3077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3078 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3080 | (eval $ac_try) 2>&5 | |
3081 | ac_status=$? | |
3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3083 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3084 | : |
3085 | else | |
8106cdd5 AK |
3086 | echo "$as_me: program exited with status $ac_status" >&5 |
3087 | echo "$as_me: failed program was:" >&5 | |
3088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3089 | ||
3090 | ( exit $ac_status ) | |
3091 | ac_cv_header_stdc=no | |
795ca3e5 | 3092 | fi |
8106cdd5 | 3093 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3094 | fi |
795ca3e5 AK |
3095 | fi |
3096 | fi | |
8106cdd5 AK |
3097 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3098 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
795ca3e5 | 3099 | if test $ac_cv_header_stdc = yes; then |
8106cdd5 AK |
3100 | |
3101 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3102 | #define STDC_HEADERS 1 |
8106cdd5 | 3103 | _ACEOF |
795ca3e5 AK |
3104 | |
3105 | fi | |
3106 | ||
8106cdd5 AK |
3107 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3108 | ||
3109 | ||
3110 | ||
3111 | ||
3112 | ||
3113 | ||
3114 | ||
3115 | ||
3116 | ||
3117 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3118 | inttypes.h stdint.h unistd.h | |
795ca3e5 | 3119 | do |
8106cdd5 AK |
3120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3125 | else | |
3126 | cat >conftest.$ac_ext <<_ACEOF | |
3127 | #line $LINENO "configure" | |
3128 | /* confdefs.h. */ | |
3129 | _ACEOF | |
3130 | cat confdefs.h >>conftest.$ac_ext | |
3131 | cat >>conftest.$ac_ext <<_ACEOF | |
3132 | /* end confdefs.h. */ | |
3133 | $ac_includes_default | |
3134 | ||
3135 | #include <$ac_header> | |
3136 | _ACEOF | |
3137 | rm -f conftest.$ac_objext | |
3138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3139 | (eval $ac_compile) 2>&5 | |
3140 | ac_status=$? | |
3141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3142 | (exit $ac_status); } && | |
3143 | { ac_try='test -s conftest.$ac_objext' | |
3144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3145 | (eval $ac_try) 2>&5 | |
3146 | ac_status=$? | |
3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3148 | (exit $ac_status); }; }; then | |
3149 | eval "$as_ac_Header=yes" | |
3150 | else | |
3151 | echo "$as_me: failed program was:" >&5 | |
3152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3153 | ||
3154 | eval "$as_ac_Header=no" | |
795ca3e5 | 3155 | fi |
8106cdd5 AK |
3156 | rm -f conftest.$ac_objext conftest.$ac_ext |
3157 | fi | |
3158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3159 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3160 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3161 | cat >>confdefs.h <<_ACEOF | |
3162 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3163 | _ACEOF | |
3164 | ||
3165 | fi | |
3166 | ||
3167 | done | |
3168 | ||
3169 | ||
3170 | ||
3171 | ||
3172 | ||
3173 | ||
3174 | for ac_header in fcntl.h malloc.h sys/ioctl.h unistd.h | |
3175 | do | |
3176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3182 | fi | |
3183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3185 | else | |
3186 | # Is the header compilable? | |
3187 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3188 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3189 | cat >conftest.$ac_ext <<_ACEOF | |
3190 | #line $LINENO "configure" | |
3191 | /* confdefs.h. */ | |
3192 | _ACEOF | |
3193 | cat confdefs.h >>conftest.$ac_ext | |
3194 | cat >>conftest.$ac_ext <<_ACEOF | |
3195 | /* end confdefs.h. */ | |
3196 | $ac_includes_default | |
3197 | #include <$ac_header> | |
3198 | _ACEOF | |
3199 | rm -f conftest.$ac_objext | |
3200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3201 | (eval $ac_compile) 2>&5 | |
3202 | ac_status=$? | |
3203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3204 | (exit $ac_status); } && | |
3205 | { ac_try='test -s conftest.$ac_objext' | |
3206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3207 | (eval $ac_try) 2>&5 | |
3208 | ac_status=$? | |
3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3210 | (exit $ac_status); }; }; then | |
3211 | ac_header_compiler=yes | |
3212 | else | |
3213 | echo "$as_me: failed program was:" >&5 | |
3214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3215 | ||
3216 | ac_header_compiler=no | |
3217 | fi | |
3218 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3219 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3220 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3221 | ||
3222 | # Is the header present? | |
3223 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3225 | cat >conftest.$ac_ext <<_ACEOF | |
3226 | #line $LINENO "configure" | |
3227 | /* confdefs.h. */ | |
3228 | _ACEOF | |
3229 | cat confdefs.h >>conftest.$ac_ext | |
3230 | cat >>conftest.$ac_ext <<_ACEOF | |
3231 | /* end confdefs.h. */ | |
3232 | #include <$ac_header> | |
3233 | _ACEOF | |
3234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3235 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3236 | ac_status=$? | |
3237 | grep -v '^ *+' conftest.er1 >conftest.err | |
3238 | rm -f conftest.er1 | |
3239 | cat conftest.err >&5 | |
3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3241 | (exit $ac_status); } >/dev/null; then | |
3242 | if test -s conftest.err; then | |
3243 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3244 | else | |
3245 | ac_cpp_err= | |
3246 | fi | |
3247 | else | |
3248 | ac_cpp_err=yes | |
795ca3e5 | 3249 | fi |
8106cdd5 AK |
3250 | if test -z "$ac_cpp_err"; then |
3251 | ac_header_preproc=yes | |
795ca3e5 | 3252 | else |
8106cdd5 AK |
3253 | echo "$as_me: failed program was:" >&5 |
3254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3255 | ||
3256 | ac_header_preproc=no | |
3257 | fi | |
3258 | rm -f conftest.err conftest.$ac_ext | |
3259 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3260 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3261 | ||
3262 | # So? What about this header? | |
3263 | case $ac_header_compiler:$ac_header_preproc in | |
3264 | yes:no ) | |
3265 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3266 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3268 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3269 | ( | |
3270 | cat <<\_ASBOX | |
3271 | ## ------------------------------------ ## | |
3272 | ## Report this to bug-autoconf@gnu.org. ## | |
3273 | ## ------------------------------------ ## | |
3274 | _ASBOX | |
3275 | ) | | |
3276 | sed "s/^/$as_me: WARNING: /" >&2 | |
3277 | ;; | |
3278 | no:yes ) | |
3279 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3280 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3281 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3282 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3284 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3285 | ( | |
3286 | cat <<\_ASBOX | |
3287 | ## ------------------------------------ ## | |
3288 | ## Report this to bug-autoconf@gnu.org. ## | |
3289 | ## ------------------------------------ ## | |
3290 | _ASBOX | |
3291 | ) | | |
3292 | sed "s/^/$as_me: WARNING: /" >&2 | |
3293 | ;; | |
3294 | esac | |
3295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3299 | else | |
3300 | eval "$as_ac_Header=$ac_header_preproc" | |
3301 | fi | |
3302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3304 | ||
3305 | fi | |
3306 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3307 | cat >>confdefs.h <<_ACEOF | |
3308 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3309 | _ACEOF | |
3310 | ||
795ca3e5 | 3311 | fi |
8106cdd5 | 3312 | |
795ca3e5 AK |
3313 | done |
3314 | ||
3315 | ||
8106cdd5 AK |
3316 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3317 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3318 | if test "${ac_cv_c_const+set}" = set; then | |
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3320 | else | |
3321 | cat >conftest.$ac_ext <<_ACEOF | |
3322 | #line $LINENO "configure" | |
3323 | /* confdefs.h. */ | |
3324 | _ACEOF | |
3325 | cat confdefs.h >>conftest.$ac_ext | |
3326 | cat >>conftest.$ac_ext <<_ACEOF | |
3327 | /* end confdefs.h. */ | |
3328 | ||
3329 | int | |
3330 | main () | |
3331 | { | |
3332 | /* FIXME: Include the comments suggested by Paul. */ | |
3333 | #ifndef __cplusplus | |
3334 | /* Ultrix mips cc rejects this. */ | |
3335 | typedef int charset[2]; | |
3336 | const charset x; | |
3337 | /* SunOS 4.1.1 cc rejects this. */ | |
3338 | char const *const *ccp; | |
3339 | char **p; | |
3340 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3341 | struct point {int x, y;}; | |
3342 | static struct point const zero = {0,0}; | |
3343 | /* AIX XL C 1.02.0.0 rejects this. | |
3344 | It does not let you subtract one const X* pointer from another in | |
3345 | an arm of an if-expression whose if-part is not a constant | |
3346 | expression */ | |
3347 | const char *g = "string"; | |
3348 | ccp = &g + (g ? g-g : 0); | |
3349 | /* HPUX 7.0 cc rejects these. */ | |
3350 | ++ccp; | |
3351 | p = (char**) ccp; | |
3352 | ccp = (char const *const *) p; | |
3353 | { /* SCO 3.2v4 cc rejects this. */ | |
3354 | char *t; | |
3355 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3356 | ||
3357 | *t++ = 0; | |
3358 | } | |
3359 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3360 | int x[] = {25, 17}; | |
3361 | const int *foo = &x[0]; | |
3362 | ++foo; | |
3363 | } | |
3364 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3365 | typedef const int *iptr; | |
3366 | iptr p = 0; | |
3367 | ++p; | |
3368 | } | |
3369 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3370 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3371 | struct s { int j; const int *ap[3]; }; | |
3372 | struct s *b; b->j = 5; | |
3373 | } | |
3374 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3375 | const int foo = 10; | |
3376 | } | |
3377 | #endif | |
795ca3e5 | 3378 | |
8106cdd5 AK |
3379 | ; |
3380 | return 0; | |
3381 | } | |
3382 | _ACEOF | |
3383 | rm -f conftest.$ac_objext | |
3384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3385 | (eval $ac_compile) 2>&5 | |
3386 | ac_status=$? | |
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3388 | (exit $ac_status); } && | |
3389 | { ac_try='test -s conftest.$ac_objext' | |
3390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3391 | (eval $ac_try) 2>&5 | |
3392 | ac_status=$? | |
3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3394 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3395 | ac_cv_c_const=yes |
3396 | else | |
8106cdd5 AK |
3397 | echo "$as_me: failed program was:" >&5 |
3398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3399 | ||
3400 | ac_cv_c_const=no | |
795ca3e5 | 3401 | fi |
8106cdd5 | 3402 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3403 | fi |
8106cdd5 AK |
3404 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3405 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
795ca3e5 | 3406 | if test $ac_cv_c_const = no; then |
8106cdd5 AK |
3407 | |
3408 | cat >>confdefs.h <<\_ACEOF | |
3409 | #define const | |
3410 | _ACEOF | |
795ca3e5 AK |
3411 | |
3412 | fi | |
3413 | ||
8106cdd5 AK |
3414 | echo "$as_me:$LINENO: checking for inline" >&5 |
3415 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3416 | if test "${ac_cv_c_inline+set}" = set; then | |
3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
3418 | else |
3419 | ac_cv_c_inline=no | |
3420 | for ac_kw in inline __inline__ __inline; do | |
8106cdd5 AK |
3421 | cat >conftest.$ac_ext <<_ACEOF |
3422 | #line $LINENO "configure" | |
3423 | /* confdefs.h. */ | |
3424 | _ACEOF | |
3425 | cat confdefs.h >>conftest.$ac_ext | |
3426 | cat >>conftest.$ac_ext <<_ACEOF | |
3427 | /* end confdefs.h. */ | |
3428 | #ifndef __cplusplus | |
3429 | typedef int foo_t; | |
3430 | static $ac_kw foo_t static_foo () {return 0; } | |
3431 | $ac_kw foo_t foo () {return 0; } | |
3432 | #endif | |
3433 | ||
3434 | _ACEOF | |
3435 | rm -f conftest.$ac_objext | |
3436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3437 | (eval $ac_compile) 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' | |
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 | |
795ca3e5 AK |
3447 | ac_cv_c_inline=$ac_kw; break |
3448 | else | |
8106cdd5 AK |
3449 | echo "$as_me: failed program was:" >&5 |
3450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3451 | ||
795ca3e5 | 3452 | fi |
8106cdd5 | 3453 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 AK |
3454 | done |
3455 | ||
3456 | fi | |
8106cdd5 AK |
3457 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3458 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
3459 | case $ac_cv_c_inline in | |
795ca3e5 | 3460 | inline | yes) ;; |
8106cdd5 AK |
3461 | no) |
3462 | cat >>confdefs.h <<\_ACEOF | |
3463 | #define inline | |
3464 | _ACEOF | |
795ca3e5 | 3465 | ;; |
8106cdd5 | 3466 | *) cat >>confdefs.h <<_ACEOF |
795ca3e5 | 3467 | #define inline $ac_cv_c_inline |
8106cdd5 | 3468 | _ACEOF |
795ca3e5 AK |
3469 | ;; |
3470 | esac | |
3471 | ||
8106cdd5 AK |
3472 | echo "$as_me:$LINENO: checking for off_t" >&5 |
3473 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3474 | if test "${ac_cv_type_off_t+set}" = set; then | |
3475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3476 | else |
8106cdd5 AK |
3477 | cat >conftest.$ac_ext <<_ACEOF |
3478 | #line $LINENO "configure" | |
3479 | /* confdefs.h. */ | |
3480 | _ACEOF | |
3481 | cat confdefs.h >>conftest.$ac_ext | |
3482 | cat >>conftest.$ac_ext <<_ACEOF | |
3483 | /* end confdefs.h. */ | |
3484 | $ac_includes_default | |
3485 | int | |
3486 | main () | |
3487 | { | |
3488 | if ((off_t *) 0) | |
3489 | return 0; | |
3490 | if (sizeof (off_t)) | |
3491 | return 0; | |
3492 | ; | |
3493 | return 0; | |
3494 | } | |
3495 | _ACEOF | |
3496 | rm -f conftest.$ac_objext | |
3497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3498 | (eval $ac_compile) 2>&5 | |
3499 | ac_status=$? | |
3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3501 | (exit $ac_status); } && | |
3502 | { ac_try='test -s conftest.$ac_objext' | |
3503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3504 | (eval $ac_try) 2>&5 | |
3505 | ac_status=$? | |
3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3507 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3508 | ac_cv_type_off_t=yes |
3509 | else | |
8106cdd5 AK |
3510 | echo "$as_me: failed program was:" >&5 |
3511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3512 | |
8106cdd5 | 3513 | ac_cv_type_off_t=no |
795ca3e5 | 3514 | fi |
8106cdd5 AK |
3515 | rm -f conftest.$ac_objext conftest.$ac_ext |
3516 | fi | |
3517 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
3518 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3519 | if test $ac_cv_type_off_t = yes; then | |
3520 | : | |
3521 | else | |
3522 | ||
3523 | cat >>confdefs.h <<_ACEOF | |
795ca3e5 | 3524 | #define off_t long |
8106cdd5 | 3525 | _ACEOF |
795ca3e5 AK |
3526 | |
3527 | fi | |
3528 | ||
8106cdd5 AK |
3529 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
3530 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
3531 | if test "${ac_cv_type_pid_t+set}" = set; then | |
3532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3533 | else |
8106cdd5 AK |
3534 | cat >conftest.$ac_ext <<_ACEOF |
3535 | #line $LINENO "configure" | |
3536 | /* confdefs.h. */ | |
3537 | _ACEOF | |
3538 | cat confdefs.h >>conftest.$ac_ext | |
3539 | cat >>conftest.$ac_ext <<_ACEOF | |
3540 | /* end confdefs.h. */ | |
3541 | $ac_includes_default | |
3542 | int | |
3543 | main () | |
3544 | { | |
3545 | if ((pid_t *) 0) | |
3546 | return 0; | |
3547 | if (sizeof (pid_t)) | |
3548 | return 0; | |
3549 | ; | |
3550 | return 0; | |
3551 | } | |
3552 | _ACEOF | |
3553 | rm -f conftest.$ac_objext | |
3554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3555 | (eval $ac_compile) 2>&5 | |
3556 | ac_status=$? | |
3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3558 | (exit $ac_status); } && | |
3559 | { ac_try='test -s conftest.$ac_objext' | |
3560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3561 | (eval $ac_try) 2>&5 | |
3562 | ac_status=$? | |
3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3564 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3565 | ac_cv_type_pid_t=yes |
3566 | else | |
8106cdd5 AK |
3567 | echo "$as_me: failed program was:" >&5 |
3568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3569 | |
8106cdd5 | 3570 | ac_cv_type_pid_t=no |
795ca3e5 | 3571 | fi |
8106cdd5 AK |
3572 | rm -f conftest.$ac_objext conftest.$ac_ext |
3573 | fi | |
3574 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
3575 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
3576 | if test $ac_cv_type_pid_t = yes; then | |
3577 | : | |
3578 | else | |
3579 | ||
3580 | cat >>confdefs.h <<_ACEOF | |
795ca3e5 | 3581 | #define pid_t int |
8106cdd5 | 3582 | _ACEOF |
795ca3e5 AK |
3583 | |
3584 | fi | |
3585 | ||
8106cdd5 AK |
3586 | echo "$as_me:$LINENO: checking for size_t" >&5 |
3587 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3588 | if test "${ac_cv_type_size_t+set}" = set; then | |
3589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3590 | else |
8106cdd5 AK |
3591 | cat >conftest.$ac_ext <<_ACEOF |
3592 | #line $LINENO "configure" | |
3593 | /* confdefs.h. */ | |
3594 | _ACEOF | |
3595 | cat confdefs.h >>conftest.$ac_ext | |
3596 | cat >>conftest.$ac_ext <<_ACEOF | |
3597 | /* end confdefs.h. */ | |
3598 | $ac_includes_default | |
3599 | int | |
3600 | main () | |
3601 | { | |
3602 | if ((size_t *) 0) | |
3603 | return 0; | |
3604 | if (sizeof (size_t)) | |
3605 | return 0; | |
3606 | ; | |
3607 | return 0; | |
3608 | } | |
3609 | _ACEOF | |
3610 | rm -f conftest.$ac_objext | |
3611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3612 | (eval $ac_compile) 2>&5 | |
3613 | ac_status=$? | |
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3615 | (exit $ac_status); } && | |
3616 | { ac_try='test -s conftest.$ac_objext' | |
3617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3618 | (eval $ac_try) 2>&5 | |
3619 | ac_status=$? | |
3620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3621 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3622 | ac_cv_type_size_t=yes |
3623 | else | |
8106cdd5 AK |
3624 | echo "$as_me: failed program was:" >&5 |
3625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 3626 | |
8106cdd5 | 3627 | ac_cv_type_size_t=no |
795ca3e5 | 3628 | fi |
8106cdd5 AK |
3629 | rm -f conftest.$ac_objext conftest.$ac_ext |
3630 | fi | |
3631 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
3632 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3633 | if test $ac_cv_type_size_t = yes; then | |
3634 | : | |
3635 | else | |
3636 | ||
3637 | cat >>confdefs.h <<_ACEOF | |
795ca3e5 | 3638 | #define size_t unsigned |
8106cdd5 | 3639 | _ACEOF |
795ca3e5 AK |
3640 | |
3641 | fi | |
3642 | ||
8106cdd5 AK |
3643 | |
3644 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
3645 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
3646 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
3647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3648 | else |
8106cdd5 AK |
3649 | cat >conftest.$ac_ext <<_ACEOF |
3650 | #line $LINENO "configure" | |
3651 | /* confdefs.h. */ | |
3652 | _ACEOF | |
3653 | cat confdefs.h >>conftest.$ac_ext | |
3654 | cat >>conftest.$ac_ext <<_ACEOF | |
3655 | /* end confdefs.h. */ | |
3656 | $ac_includes_default | |
3657 | int | |
3658 | main () | |
3659 | { | |
3660 | static struct stat ac_aggr; | |
3661 | if (ac_aggr.st_rdev) | |
3662 | return 0; | |
3663 | ; | |
3664 | return 0; | |
3665 | } | |
3666 | _ACEOF | |
3667 | rm -f conftest.$ac_objext | |
3668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3669 | (eval $ac_compile) 2>&5 | |
3670 | ac_status=$? | |
3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3672 | (exit $ac_status); } && | |
3673 | { ac_try='test -s conftest.$ac_objext' | |
3674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3675 | (eval $ac_try) 2>&5 | |
3676 | ac_status=$? | |
3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3678 | (exit $ac_status); }; }; then | |
3679 | ac_cv_member_struct_stat_st_rdev=yes | |
3680 | else | |
3681 | echo "$as_me: failed program was:" >&5 | |
3682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3683 | ||
3684 | cat >conftest.$ac_ext <<_ACEOF | |
3685 | #line $LINENO "configure" | |
3686 | /* confdefs.h. */ | |
3687 | _ACEOF | |
3688 | cat confdefs.h >>conftest.$ac_ext | |
3689 | cat >>conftest.$ac_ext <<_ACEOF | |
3690 | /* end confdefs.h. */ | |
3691 | $ac_includes_default | |
3692 | int | |
3693 | main () | |
3694 | { | |
3695 | static struct stat ac_aggr; | |
3696 | if (sizeof ac_aggr.st_rdev) | |
3697 | return 0; | |
3698 | ; | |
3699 | return 0; | |
3700 | } | |
3701 | _ACEOF | |
3702 | rm -f conftest.$ac_objext | |
3703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3704 | (eval $ac_compile) 2>&5 | |
3705 | ac_status=$? | |
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 | (exit $ac_status); } && | |
3708 | { ac_try='test -s conftest.$ac_objext' | |
3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3710 | (eval $ac_try) 2>&5 | |
3711 | ac_status=$? | |
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3713 | (exit $ac_status); }; }; then | |
3714 | ac_cv_member_struct_stat_st_rdev=yes | |
3715 | else | |
3716 | echo "$as_me: failed program was:" >&5 | |
3717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3718 | ||
3719 | ac_cv_member_struct_stat_st_rdev=no | |
795ca3e5 | 3720 | fi |
8106cdd5 AK |
3721 | rm -f conftest.$ac_objext conftest.$ac_ext |
3722 | fi | |
3723 | rm -f conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 3724 | fi |
8106cdd5 AK |
3725 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
3726 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
3727 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
795ca3e5 | 3728 | |
8106cdd5 AK |
3729 | cat >>confdefs.h <<_ACEOF |
3730 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
3731 | _ACEOF | |
3732 | ||
3733 | ||
3734 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3735 | #define HAVE_ST_RDEV 1 |
8106cdd5 | 3736 | _ACEOF |
795ca3e5 AK |
3737 | |
3738 | fi | |
3739 | ||
8106cdd5 AK |
3740 | |
3741 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
3742 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
3743 | if test "${ac_cv_header_time+set}" = set; then | |
3744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 3745 | else |
8106cdd5 AK |
3746 | cat >conftest.$ac_ext <<_ACEOF |
3747 | #line $LINENO "configure" | |
3748 | /* confdefs.h. */ | |
3749 | _ACEOF | |
3750 | cat confdefs.h >>conftest.$ac_ext | |
3751 | cat >>conftest.$ac_ext <<_ACEOF | |
3752 | /* end confdefs.h. */ | |
795ca3e5 AK |
3753 | #include <sys/types.h> |
3754 | #include <sys/time.h> | |
3755 | #include <time.h> | |
8106cdd5 AK |
3756 | |
3757 | int | |
3758 | main () | |
3759 | { | |
3760 | if ((struct tm *) 0) | |
3761 | return 0; | |
3762 | ; | |
3763 | return 0; | |
3764 | } | |
3765 | _ACEOF | |
3766 | rm -f conftest.$ac_objext | |
3767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3768 | (eval $ac_compile) 2>&5 | |
3769 | ac_status=$? | |
3770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3771 | (exit $ac_status); } && | |
3772 | { ac_try='test -s conftest.$ac_objext' | |
3773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3774 | (eval $ac_try) 2>&5 | |
3775 | ac_status=$? | |
3776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3777 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
3778 | ac_cv_header_time=yes |
3779 | else | |
8106cdd5 AK |
3780 | echo "$as_me: failed program was:" >&5 |
3781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3782 | ||
3783 | ac_cv_header_time=no | |
795ca3e5 | 3784 | fi |
8106cdd5 | 3785 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3786 | fi |
8106cdd5 AK |
3787 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3788 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
795ca3e5 | 3789 | if test $ac_cv_header_time = yes; then |
8106cdd5 AK |
3790 | |
3791 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 3792 | #define TIME_WITH_SYS_TIME 1 |
8106cdd5 | 3793 | _ACEOF |
795ca3e5 AK |
3794 | |
3795 | fi | |
3796 | ||
3797 | ||
b896caa1 | 3798 | # Make sure we can run config.sub. |
8106cdd5 AK |
3799 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3800 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3801 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3802 | { (exit 1); exit 1; }; } | |
3803 | ||
3804 | echo "$as_me:$LINENO: checking build system type" >&5 | |
3805 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3806 | if test "${ac_cv_build+set}" = set; then | |
3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3808 | else | |
3809 | ac_cv_build_alias=$build_alias | |
3810 | test -z "$ac_cv_build_alias" && | |
3811 | ac_cv_build_alias=`$ac_config_guess` | |
3812 | test -z "$ac_cv_build_alias" && | |
3813 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3814 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3815 | { (exit 1); exit 1; }; } | |
3816 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3817 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3818 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3819 | { (exit 1); exit 1; }; } | |
3820 | ||
3821 | fi | |
3822 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3823 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3824 | build=$ac_cv_build | |
3825 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3826 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3827 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3828 | ||
3829 | ||
3830 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3831 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3832 | if test "${ac_cv_host+set}" = set; then | |
3833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3834 | else | |
3835 | ac_cv_host_alias=$host_alias | |
3836 | test -z "$ac_cv_host_alias" && | |
3837 | ac_cv_host_alias=$ac_cv_build_alias | |
3838 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3839 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3840 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3841 | { (exit 1); exit 1; }; } | |
3842 | ||
3843 | fi | |
3844 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3845 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3846 | host=$ac_cv_host | |
3847 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3848 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3849 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3850 | ||
3851 | ||
3852 | echo "$as_me:$LINENO: checking target system type" >&5 | |
3853 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
3854 | if test "${ac_cv_target+set}" = set; then | |
3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3856 | else | |
3857 | ac_cv_target_alias=$target_alias | |
3858 | test "x$ac_cv_target_alias" = "x" && | |
3859 | ac_cv_target_alias=$ac_cv_host_alias | |
3860 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
3861 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
3862 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
3863 | { (exit 1); exit 1; }; } | |
b896caa1 | 3864 | |
8106cdd5 AK |
3865 | fi |
3866 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
3867 | echo "${ECHO_T}$ac_cv_target" >&6 | |
3868 | target=$ac_cv_target | |
3869 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3870 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3871 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
b896caa1 | 3872 | |
b896caa1 | 3873 | |
8106cdd5 AK |
3874 | # The aliases save the names the user supplied, while $host etc. |
3875 | # will get canonicalized. | |
3876 | test -n "$target_alias" && | |
b896caa1 AK |
3877 | test "$program_prefix$program_suffix$program_transform_name" = \ |
3878 | NONENONEs,x,x, && | |
3879 | program_prefix=${target_alias}- | |
3880 | ||
b896caa1 AK |
3881 | case "$host_os" in |
3882 | linux*) | |
8106cdd5 AK |
3883 | CFLAGS= |
3884 | CLDFLAGS="-Wl,--version-script,.export.sym" | |
3885 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
3886 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
3887 | LD_DEPS=".export.sym" | |
3888 | SOFLAG="-shared" | |
3889 | DEVMAPPER=yes | |
3890 | ODIRECT=yes ;; | |
3891 | darwin*) | |
3892 | CFLAGS="-no-cpp-precomp -fno-common" | |
3893 | CLDFLAGS= | |
3894 | CLDWHOLEARCHIVE="-all_load" | |
3895 | CLDNOWHOLEARCHIVE= | |
3896 | LD_DEPS= | |
3897 | SOFLAG="-dynamiclib" | |
3898 | DEVMAPPER=no | |
3899 | ODIRECT=no ;; | |
b896caa1 AK |
3900 | esac |
3901 | ||
3902 | ||
795ca3e5 | 3903 | |
8106cdd5 | 3904 | |
795ca3e5 AK |
3905 | # Check whether --with-user or --without-user was given. |
3906 | if test "${with_user+set}" = set; then | |
3907 | withval="$with_user" | |
8106cdd5 | 3908 | OWNER="$withval" |
795ca3e5 | 3909 | else |
8106cdd5 AK |
3910 | OWNER="root" |
3911 | fi; | |
795ca3e5 AK |
3912 | |
3913 | ||
3914 | # Check whether --with-group or --without-group was given. | |
3915 | if test "${with_group+set}" = set; then | |
3916 | withval="$with_group" | |
8106cdd5 | 3917 | GROUP="$withval" |
795ca3e5 | 3918 | else |
8106cdd5 AK |
3919 | GROUP="root" |
3920 | fi; | |
795ca3e5 AK |
3921 | |
3922 | ||
5a52dca9 AK |
3923 | # Check whether --with-lvm1 or --without-lvm1 was given. |
3924 | if test "${with_lvm1+set}" = set; then | |
3925 | withval="$with_lvm1" | |
8106cdd5 | 3926 | LVM1="$withval" |
5a52dca9 | 3927 | else |
8106cdd5 AK |
3928 | LVM1="internal" |
3929 | fi; | |
5a52dca9 AK |
3930 | |
3931 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
8106cdd5 AK |
3932 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
3933 | " >&5 | |
3934 | echo "$as_me: error: --with-lvm1 parameter invalid | |
3935 | " >&2;} | |
3936 | { (exit 1); exit 1; }; } | |
5a52dca9 AK |
3937 | exit |
3938 | fi; | |
3939 | ||
b896caa1 AK |
3940 | if test x$LVM1 = xinternal; then |
3941 | CFLAGS="$CFLAGS -DLVM1_INTERNAL" | |
3942 | fi | |
3943 | ||
795ca3e5 AK |
3944 | # Check whether --enable-jobs or --disable-jobs was given. |
3945 | if test "${enable_jobs+set}" = set; then | |
3946 | enableval="$enable_jobs" | |
3947 | JOBS=-j$enableval | |
3948 | else | |
8ef2b021 | 3949 | JOBS=-j2 |
8106cdd5 | 3950 | fi; |
795ca3e5 AK |
3951 | |
3952 | # Check whether --enable-static_link or --disable-static_link was given. | |
3953 | if test "${enable_static_link+set}" = set; then | |
3954 | enableval="$enable_static_link" | |
3955 | STATIC_LINK=$enableval | |
3956 | else | |
3957 | STATIC_LINK=no | |
8106cdd5 | 3958 | fi; |
795ca3e5 AK |
3959 | |
3960 | # Check whether --enable-readline or --disable-readline was given. | |
3961 | if test "${enable_readline+set}" = set; then | |
3962 | enableval="$enable_readline" | |
3963 | \ | |
3964 | READLINE=$enableval | |
3965 | else | |
5a52dca9 | 3966 | READLINE=no |
8106cdd5 | 3967 | fi; |
795ca3e5 | 3968 | |
b896caa1 AK |
3969 | if test x$READLINE = xyes; then |
3970 | CFLAGS="$CFLAGS -DREADLINE_SUPPORT" | |
3971 | fi | |
3972 | ||
69792976 | 3973 | echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6 |
8ef2b021 AK |
3974 | # Check whether --enable-debug or --disable-debug was given. |
3975 | if test "${enable_debug+set}" = set; then | |
3976 | enableval="$enable_debug" | |
3977 | \ | |
3978 | DEBUG=yes | |
3979 | else | |
3980 | DEBUG=no | |
8106cdd5 | 3981 | fi; |
69792976 | 3982 | echo "$ac_t""$DEBUG" 1>&6 |
8ef2b021 | 3983 | |
69792976 | 3984 | echo $ac_n "checking whether to enable device-mapper""... $ac_c" 1>&6 |
199e490e AK |
3985 | # Check whether --enable-devmapper or --disable-devmapper was given. |
3986 | if test "${enable_devmapper+set}" = set; then | |
3987 | enableval="$enable_devmapper" | |
3988 | \ | |
3989 | DEVMAPPER=no | |
8106cdd5 | 3990 | fi; |
69792976 | 3991 | echo "$ac_t""$DEVMAPPER" 1>&6 |
199e490e | 3992 | |
b896caa1 AK |
3993 | if test x$DEVMAPPER = xyes; then |
3994 | CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT" | |
3995 | fi | |
3996 | ||
69792976 | 3997 | echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6 |
2dc95e1c AK |
3998 | # Check whether --enable-o_direct or --disable-o_direct was given. |
3999 | if test "${enable_o_direct+set}" = set; then | |
4000 | enableval="$enable_o_direct" | |
4001 | \ | |
4002 | ODIRECT=no | |
8106cdd5 | 4003 | fi; |
69792976 | 4004 | echo "$ac_t""$ODIRECT" 1>&6 |
2dc95e1c AK |
4005 | |
4006 | if test x$ODIRECT = xyes; then | |
4007 | CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT" | |
4008 | fi | |
4009 | ||
8106cdd5 AK |
4010 | echo $ac_n "checking whether to compile liblvm2cmd.so""... $ac_c" 1>&6 |
4011 | # Check whether --enable-cmdlib or --disable-cmdlib was given. | |
4012 | if test "${enable_cmdlib+set}" = set; then | |
4013 | enableval="$enable_cmdlib" | |
4014 | \ | |
4015 | CMDLIB=yes | |
4016 | else | |
4017 | CMDLIB=no | |
4018 | fi; | |
4019 | echo "$ac_t""$CMDLIB" 1>&6 | |
4020 | ||
4021 | if test x$CMDLIB = xyes; then | |
4022 | CFLAGS="$CFLAGS -DCMDLIB" | |
4023 | fi | |
4024 | ||
795ca3e5 AK |
4025 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; |
4026 | then exec_prefix=""; | |
4027 | fi; | |
4028 | ||
8106cdd5 AK |
4029 | if test $ac_cv_c_compiler_gnu = yes; then |
4030 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
4031 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
4032 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 AK |
4034 | else |
4035 | ac_pattern="Autoconf.*'x'" | |
8106cdd5 AK |
4036 | cat >conftest.$ac_ext <<_ACEOF |
4037 | #line $LINENO "configure" | |
4038 | /* confdefs.h. */ | |
4039 | _ACEOF | |
4040 | cat confdefs.h >>conftest.$ac_ext | |
4041 | cat >>conftest.$ac_ext <<_ACEOF | |
4042 | /* end confdefs.h. */ | |
795ca3e5 AK |
4043 | #include <sgtty.h> |
4044 | Autoconf TIOCGETP | |
8106cdd5 | 4045 | _ACEOF |
795ca3e5 | 4046 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 4047 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
795ca3e5 AK |
4048 | ac_cv_prog_gcc_traditional=yes |
4049 | else | |
795ca3e5 AK |
4050 | ac_cv_prog_gcc_traditional=no |
4051 | fi | |
4052 | rm -f conftest* | |
4053 | ||
4054 | ||
4055 | if test $ac_cv_prog_gcc_traditional = no; then | |
8106cdd5 AK |
4056 | cat >conftest.$ac_ext <<_ACEOF |
4057 | #line $LINENO "configure" | |
4058 | /* confdefs.h. */ | |
4059 | _ACEOF | |
4060 | cat confdefs.h >>conftest.$ac_ext | |
4061 | cat >>conftest.$ac_ext <<_ACEOF | |
4062 | /* end confdefs.h. */ | |
795ca3e5 AK |
4063 | #include <termio.h> |
4064 | Autoconf TCGETA | |
8106cdd5 | 4065 | _ACEOF |
795ca3e5 | 4066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8106cdd5 | 4067 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
795ca3e5 AK |
4068 | ac_cv_prog_gcc_traditional=yes |
4069 | fi | |
4070 | rm -f conftest* | |
4071 | ||
4072 | fi | |
4073 | fi | |
8106cdd5 AK |
4074 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
4075 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
795ca3e5 AK |
4076 | if test $ac_cv_prog_gcc_traditional = yes; then |
4077 | CC="$CC -traditional" | |
4078 | fi | |
4079 | fi | |
4080 | ||
8106cdd5 AK |
4081 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
4082 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4083 | if test "${ac_cv_type_signal+set}" = set; then | |
4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4085 | else |
8106cdd5 AK |
4086 | cat >conftest.$ac_ext <<_ACEOF |
4087 | #line $LINENO "configure" | |
4088 | /* confdefs.h. */ | |
4089 | _ACEOF | |
4090 | cat confdefs.h >>conftest.$ac_ext | |
4091 | cat >>conftest.$ac_ext <<_ACEOF | |
4092 | /* end confdefs.h. */ | |
795ca3e5 AK |
4093 | #include <sys/types.h> |
4094 | #include <signal.h> | |
4095 | #ifdef signal | |
8106cdd5 | 4096 | # undef signal |
795ca3e5 AK |
4097 | #endif |
4098 | #ifdef __cplusplus | |
4099 | extern "C" void (*signal (int, void (*)(int)))(int); | |
4100 | #else | |
4101 | void (*signal ()) (); | |
4102 | #endif | |
4103 | ||
8106cdd5 AK |
4104 | int |
4105 | main () | |
4106 | { | |
795ca3e5 | 4107 | int i; |
8106cdd5 AK |
4108 | ; |
4109 | return 0; | |
4110 | } | |
4111 | _ACEOF | |
4112 | rm -f conftest.$ac_objext | |
4113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4114 | (eval $ac_compile) 2>&5 | |
4115 | ac_status=$? | |
4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4117 | (exit $ac_status); } && | |
4118 | { ac_try='test -s conftest.$ac_objext' | |
4119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4120 | (eval $ac_try) 2>&5 | |
4121 | ac_status=$? | |
4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4123 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
4124 | ac_cv_type_signal=void |
4125 | else | |
8106cdd5 AK |
4126 | echo "$as_me: failed program was:" >&5 |
4127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4128 | ||
4129 | ac_cv_type_signal=int | |
795ca3e5 | 4130 | fi |
8106cdd5 | 4131 | rm -f conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4132 | fi |
8106cdd5 AK |
4133 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
4134 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
795ca3e5 | 4135 | |
8106cdd5 | 4136 | cat >>confdefs.h <<_ACEOF |
795ca3e5 | 4137 | #define RETSIGTYPE $ac_cv_type_signal |
8106cdd5 | 4138 | _ACEOF |
795ca3e5 AK |
4139 | |
4140 | ||
8106cdd5 AK |
4141 | |
4142 | for ac_func in vprintf | |
4143 | do | |
4144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4145 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4147 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4149 | else |
8106cdd5 AK |
4150 | cat >conftest.$ac_ext <<_ACEOF |
4151 | #line $LINENO "configure" | |
4152 | /* confdefs.h. */ | |
4153 | _ACEOF | |
4154 | cat confdefs.h >>conftest.$ac_ext | |
4155 | cat >>conftest.$ac_ext <<_ACEOF | |
4156 | /* end confdefs.h. */ | |
795ca3e5 | 4157 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
4158 | which can conflict with char $ac_func (); below. |
4159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4160 | <limits.h> exists even on freestanding compilers. */ | |
4161 | #ifdef __STDC__ | |
4162 | # include <limits.h> | |
4163 | #else | |
4164 | # include <assert.h> | |
4165 | #endif | |
795ca3e5 | 4166 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4167 | #ifdef __cplusplus |
4168 | extern "C" | |
4169 | { | |
4170 | #endif | |
795ca3e5 | 4171 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4172 | builtin and then its argument prototype would still apply. */ |
4173 | char $ac_func (); | |
795ca3e5 AK |
4174 | /* The GNU C library defines this for functions which it implements |
4175 | to always fail with ENOSYS. Some functions are actually named | |
4176 | something starting with __ and the normal name is an alias. */ | |
8106cdd5 | 4177 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
795ca3e5 AK |
4178 | choke me |
4179 | #else | |
8106cdd5 AK |
4180 | char (*f) () = $ac_func; |
4181 | #endif | |
4182 | #ifdef __cplusplus | |
4183 | } | |
795ca3e5 AK |
4184 | #endif |
4185 | ||
8106cdd5 AK |
4186 | int |
4187 | main () | |
4188 | { | |
4189 | return f != $ac_func; | |
4190 | ; | |
4191 | return 0; | |
4192 | } | |
4193 | _ACEOF | |
4194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4196 | (eval $ac_link) 2>&5 | |
4197 | ac_status=$? | |
4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4199 | (exit $ac_status); } && | |
4200 | { ac_try='test -s conftest$ac_exeext' | |
4201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4202 | (eval $ac_try) 2>&5 | |
4203 | ac_status=$? | |
4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4205 | (exit $ac_status); }; }; then | |
4206 | eval "$as_ac_var=yes" | |
795ca3e5 | 4207 | else |
8106cdd5 AK |
4208 | echo "$as_me: failed program was:" >&5 |
4209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 4210 | |
8106cdd5 | 4211 | eval "$as_ac_var=no" |
795ca3e5 | 4212 | fi |
8106cdd5 AK |
4213 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4214 | fi | |
4215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4216 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4217 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4218 | cat >>confdefs.h <<_ACEOF | |
4219 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4220 | _ACEOF | |
795ca3e5 | 4221 | |
8106cdd5 AK |
4222 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
4223 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 | |
4224 | if test "${ac_cv_func__doprnt+set}" = set; then | |
4225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4226 | else |
8106cdd5 AK |
4227 | cat >conftest.$ac_ext <<_ACEOF |
4228 | #line $LINENO "configure" | |
4229 | /* confdefs.h. */ | |
4230 | _ACEOF | |
4231 | cat confdefs.h >>conftest.$ac_ext | |
4232 | cat >>conftest.$ac_ext <<_ACEOF | |
4233 | /* end confdefs.h. */ | |
795ca3e5 | 4234 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
4235 | which can conflict with char _doprnt (); below. |
4236 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4237 | <limits.h> exists even on freestanding compilers. */ | |
4238 | #ifdef __STDC__ | |
4239 | # include <limits.h> | |
4240 | #else | |
4241 | # include <assert.h> | |
4242 | #endif | |
795ca3e5 | 4243 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4244 | #ifdef __cplusplus |
4245 | extern "C" | |
4246 | { | |
4247 | #endif | |
795ca3e5 | 4248 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4249 | builtin and then its argument prototype would still apply. */ |
4250 | char _doprnt (); | |
795ca3e5 AK |
4251 | /* The GNU C library defines this for functions which it implements |
4252 | to always fail with ENOSYS. Some functions are actually named | |
4253 | something starting with __ and the normal name is an alias. */ | |
4254 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
4255 | choke me | |
4256 | #else | |
8106cdd5 AK |
4257 | char (*f) () = _doprnt; |
4258 | #endif | |
4259 | #ifdef __cplusplus | |
4260 | } | |
795ca3e5 AK |
4261 | #endif |
4262 | ||
8106cdd5 AK |
4263 | int |
4264 | main () | |
4265 | { | |
4266 | return f != _doprnt; | |
4267 | ; | |
4268 | return 0; | |
4269 | } | |
4270 | _ACEOF | |
4271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4273 | (eval $ac_link) 2>&5 | |
4274 | ac_status=$? | |
4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4276 | (exit $ac_status); } && | |
4277 | { ac_try='test -s conftest$ac_exeext' | |
4278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4279 | (eval $ac_try) 2>&5 | |
4280 | ac_status=$? | |
4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4282 | (exit $ac_status); }; }; then | |
4283 | ac_cv_func__doprnt=yes | |
795ca3e5 | 4284 | else |
8106cdd5 AK |
4285 | echo "$as_me: failed program was:" >&5 |
4286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4287 | ||
4288 | ac_cv_func__doprnt=no | |
795ca3e5 | 4289 | fi |
8106cdd5 | 4290 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 4291 | fi |
8106cdd5 AK |
4292 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
4293 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 | |
4294 | if test $ac_cv_func__doprnt = yes; then | |
795ca3e5 | 4295 | |
8106cdd5 | 4296 | cat >>confdefs.h <<\_ACEOF |
795ca3e5 | 4297 | #define HAVE_DOPRNT 1 |
8106cdd5 | 4298 | _ACEOF |
795ca3e5 | 4299 | |
795ca3e5 AK |
4300 | fi |
4301 | ||
4302 | fi | |
8106cdd5 AK |
4303 | done |
4304 | ||
4305 | ||
4306 | ||
4307 | ||
795ca3e5 AK |
4308 | |
4309 | for ac_func in mkdir rmdir uname | |
4310 | do | |
8106cdd5 AK |
4311 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4312 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4313 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4314 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4316 | else | |
4317 | cat >conftest.$ac_ext <<_ACEOF | |
4318 | #line $LINENO "configure" | |
4319 | /* confdefs.h. */ | |
4320 | _ACEOF | |
4321 | cat confdefs.h >>conftest.$ac_ext | |
4322 | cat >>conftest.$ac_ext <<_ACEOF | |
4323 | /* end confdefs.h. */ | |
795ca3e5 | 4324 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
4325 | which can conflict with char $ac_func (); below. |
4326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4327 | <limits.h> exists even on freestanding compilers. */ | |
4328 | #ifdef __STDC__ | |
4329 | # include <limits.h> | |
4330 | #else | |
4331 | # include <assert.h> | |
4332 | #endif | |
795ca3e5 | 4333 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4334 | #ifdef __cplusplus |
4335 | extern "C" | |
4336 | { | |
4337 | #endif | |
795ca3e5 | 4338 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4339 | builtin and then its argument prototype would still apply. */ |
4340 | char $ac_func (); | |
795ca3e5 AK |
4341 | /* The GNU C library defines this for functions which it implements |
4342 | to always fail with ENOSYS. Some functions are actually named | |
4343 | something starting with __ and the normal name is an alias. */ | |
4344 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4345 | choke me | |
4346 | #else | |
8106cdd5 AK |
4347 | char (*f) () = $ac_func; |
4348 | #endif | |
4349 | #ifdef __cplusplus | |
4350 | } | |
795ca3e5 AK |
4351 | #endif |
4352 | ||
8106cdd5 AK |
4353 | int |
4354 | main () | |
4355 | { | |
4356 | return f != $ac_func; | |
4357 | ; | |
4358 | return 0; | |
4359 | } | |
4360 | _ACEOF | |
4361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4363 | (eval $ac_link) 2>&5 | |
4364 | ac_status=$? | |
4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4366 | (exit $ac_status); } && | |
4367 | { ac_try='test -s conftest$ac_exeext' | |
4368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4369 | (eval $ac_try) 2>&5 | |
4370 | ac_status=$? | |
4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4372 | (exit $ac_status); }; }; then | |
4373 | eval "$as_ac_var=yes" | |
795ca3e5 | 4374 | else |
8106cdd5 AK |
4375 | echo "$as_me: failed program was:" >&5 |
4376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4377 | ||
4378 | eval "$as_ac_var=no" | |
795ca3e5 | 4379 | fi |
8106cdd5 | 4380 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 4381 | fi |
8106cdd5 AK |
4382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4383 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4385 | cat >>confdefs.h <<_ACEOF | |
4386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4387 | _ACEOF | |
795ca3e5 | 4388 | |
795ca3e5 AK |
4389 | fi |
4390 | done | |
4391 | ||
4392 | ||
4393 | if test x$READLINE = xyes; then | |
8106cdd5 AK |
4394 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
4395 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
4396 | if test "${ac_cv_search_tgetent+set}" = set; then | |
4397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4398 | else | |
4399 | ac_func_search_save_LIBS=$LIBS | |
4400 | ac_cv_search_tgetent=no | |
4401 | cat >conftest.$ac_ext <<_ACEOF | |
4402 | #line $LINENO "configure" | |
4403 | /* confdefs.h. */ | |
4404 | _ACEOF | |
4405 | cat confdefs.h >>conftest.$ac_ext | |
4406 | cat >>conftest.$ac_ext <<_ACEOF | |
4407 | /* end confdefs.h. */ | |
4408 | ||
795ca3e5 | 4409 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4410 | #ifdef __cplusplus |
4411 | extern "C" | |
4412 | #endif | |
795ca3e5 | 4413 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4414 | builtin and then its argument prototype would still apply. */ |
4415 | char tgetent (); | |
4416 | int | |
4417 | main () | |
4418 | { | |
4419 | tgetent (); | |
4420 | ; | |
4421 | return 0; | |
4422 | } | |
4423 | _ACEOF | |
4424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4426 | (eval $ac_link) 2>&5 | |
4427 | ac_status=$? | |
4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4429 | (exit $ac_status); } && | |
4430 | { ac_try='test -s conftest$ac_exeext' | |
4431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4432 | (eval $ac_try) 2>&5 | |
4433 | ac_status=$? | |
4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4435 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
4436 | ac_cv_search_tgetent="none required" |
4437 | else | |
8106cdd5 AK |
4438 | echo "$as_me: failed program was:" >&5 |
4439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4440 | ||
4441 | fi | |
4442 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4443 | if test "$ac_cv_search_tgetent" = no; then | |
4444 | for ac_lib in ncurses curses termcap termlib; do | |
4445 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4446 | cat >conftest.$ac_ext <<_ACEOF | |
4447 | #line $LINENO "configure" | |
4448 | /* confdefs.h. */ | |
4449 | _ACEOF | |
4450 | cat confdefs.h >>conftest.$ac_ext | |
4451 | cat >>conftest.$ac_ext <<_ACEOF | |
4452 | /* end confdefs.h. */ | |
4453 | ||
795ca3e5 | 4454 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4455 | #ifdef __cplusplus |
4456 | extern "C" | |
4457 | #endif | |
795ca3e5 | 4458 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4459 | builtin and then its argument prototype would still apply. */ |
4460 | char tgetent (); | |
4461 | int | |
4462 | main () | |
4463 | { | |
4464 | tgetent (); | |
4465 | ; | |
4466 | return 0; | |
4467 | } | |
4468 | _ACEOF | |
4469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4471 | (eval $ac_link) 2>&5 | |
4472 | ac_status=$? | |
4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4474 | (exit $ac_status); } && | |
4475 | { ac_try='test -s conftest$ac_exeext' | |
4476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4477 | (eval $ac_try) 2>&5 | |
4478 | ac_status=$? | |
4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4480 | (exit $ac_status); }; }; then | |
4481 | ac_cv_search_tgetent="-l$ac_lib" | |
795ca3e5 AK |
4482 | break |
4483 | else | |
8106cdd5 AK |
4484 | echo "$as_me: failed program was:" >&5 |
4485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4486 | ||
795ca3e5 | 4487 | fi |
8106cdd5 AK |
4488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4489 | done | |
795ca3e5 | 4490 | fi |
8106cdd5 AK |
4491 | LIBS=$ac_func_search_save_LIBS |
4492 | fi | |
4493 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
4494 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
4495 | if test "$ac_cv_search_tgetent" != no; then | |
795ca3e5 | 4496 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
8106cdd5 AK |
4497 | |
4498 | else | |
4499 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
4500 | --enable-readline option (which is enabled by default). Either disable readline | |
4501 | support with --disable-readline or download and install termcap from: | |
4502 | ftp.gnu.org/gnu/termcap | |
4503 | Note: if you are using precompiled packages you will also need the development | |
4504 | package as well (which may be called termcap-devel or something similar). | |
4505 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
4506 | not found either - but you could try installing that as well. | |
4507 | " >&5 | |
4508 | echo "$as_me: error: termcap could not be found which is required for the | |
795ca3e5 AK |
4509 | --enable-readline option (which is enabled by default). Either disable readline |
4510 | support with --disable-readline or download and install termcap from: | |
4511 | ftp.gnu.org/gnu/termcap | |
4512 | Note: if you are using precompiled packages you will also need the development | |
4513 | package as well (which may be called termcap-devel or something similar). | |
4514 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
4515 | not found either - but you could try installing that as well. | |
8106cdd5 AK |
4516 | " >&2;} |
4517 | { (exit 1); exit 1; }; } | |
795ca3e5 | 4518 | exit |
8106cdd5 | 4519 | |
795ca3e5 | 4520 | fi |
8106cdd5 | 4521 | |
795ca3e5 AK |
4522 | fi |
4523 | ||
8106cdd5 AK |
4524 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
4525 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
4526 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
4527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26e7f2e0 | 4528 | else |
8106cdd5 | 4529 | ac_check_lib_save_LIBS=$LIBS |
26e7f2e0 | 4530 | LIBS="-ldl $LIBS" |
8106cdd5 AK |
4531 | cat >conftest.$ac_ext <<_ACEOF |
4532 | #line $LINENO "configure" | |
4533 | /* confdefs.h. */ | |
4534 | _ACEOF | |
4535 | cat confdefs.h >>conftest.$ac_ext | |
4536 | cat >>conftest.$ac_ext <<_ACEOF | |
4537 | /* end confdefs.h. */ | |
4538 | ||
26e7f2e0 | 4539 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4540 | #ifdef __cplusplus |
4541 | extern "C" | |
4542 | #endif | |
26e7f2e0 | 4543 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4544 | builtin and then its argument prototype would still apply. */ |
4545 | char dlopen (); | |
4546 | int | |
4547 | main () | |
4548 | { | |
4549 | dlopen (); | |
4550 | ; | |
4551 | return 0; | |
4552 | } | |
4553 | _ACEOF | |
4554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4556 | (eval $ac_link) 2>&5 | |
4557 | ac_status=$? | |
4558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4559 | (exit $ac_status); } && | |
4560 | { ac_try='test -s conftest$ac_exeext' | |
4561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4562 | (eval $ac_try) 2>&5 | |
4563 | ac_status=$? | |
4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4565 | (exit $ac_status); }; }; then | |
4566 | ac_cv_lib_dl_dlopen=yes | |
4567 | else | |
4568 | echo "$as_me: failed program was:" >&5 | |
4569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26e7f2e0 | 4570 | |
8106cdd5 | 4571 | ac_cv_lib_dl_dlopen=no |
26e7f2e0 | 4572 | fi |
8106cdd5 AK |
4573 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4574 | LIBS=$ac_check_lib_save_LIBS | |
4575 | fi | |
4576 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
4577 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
4578 | if test $ac_cv_lib_dl_dlopen = yes; then | |
26e7f2e0 AK |
4579 | HAVE_LIBDL=yes |
4580 | else | |
8106cdd5 | 4581 | HAVE_LIBDL=no |
26e7f2e0 AK |
4582 | fi |
4583 | ||
4584 | ||
4585 | if test x$HAVE_LIBDL = xyes; then | |
b896caa1 | 4586 | CFLAGS="$CFLAGS -DHAVE_LIBDL" |
26e7f2e0 AK |
4587 | LIBS="-ldl $LIBS" |
4588 | fi | |
4589 | ||
8106cdd5 AK |
4590 | |
4591 | for ac_header in getopt.h | |
b896caa1 | 4592 | do |
8106cdd5 AK |
4593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4599 | fi | |
4600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4602 | else | |
4603 | # Is the header compilable? | |
4604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4606 | cat >conftest.$ac_ext <<_ACEOF | |
4607 | #line $LINENO "configure" | |
4608 | /* confdefs.h. */ | |
4609 | _ACEOF | |
4610 | cat confdefs.h >>conftest.$ac_ext | |
4611 | cat >>conftest.$ac_ext <<_ACEOF | |
4612 | /* end confdefs.h. */ | |
4613 | $ac_includes_default | |
4614 | #include <$ac_header> | |
4615 | _ACEOF | |
4616 | rm -f conftest.$ac_objext | |
4617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4618 | (eval $ac_compile) 2>&5 | |
4619 | ac_status=$? | |
4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4621 | (exit $ac_status); } && | |
4622 | { ac_try='test -s conftest.$ac_objext' | |
4623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4624 | (eval $ac_try) 2>&5 | |
4625 | ac_status=$? | |
4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4627 | (exit $ac_status); }; }; then | |
4628 | ac_header_compiler=yes | |
4629 | else | |
4630 | echo "$as_me: failed program was:" >&5 | |
4631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4632 | ||
4633 | ac_header_compiler=no | |
4634 | fi | |
4635 | rm -f conftest.$ac_objext conftest.$ac_ext | |
4636 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4637 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4638 | ||
4639 | # Is the header present? | |
4640 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4642 | cat >conftest.$ac_ext <<_ACEOF | |
4643 | #line $LINENO "configure" | |
4644 | /* confdefs.h. */ | |
4645 | _ACEOF | |
4646 | cat confdefs.h >>conftest.$ac_ext | |
4647 | cat >>conftest.$ac_ext <<_ACEOF | |
4648 | /* end confdefs.h. */ | |
4649 | #include <$ac_header> | |
4650 | _ACEOF | |
4651 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4653 | ac_status=$? | |
4654 | grep -v '^ *+' conftest.er1 >conftest.err | |
4655 | rm -f conftest.er1 | |
4656 | cat conftest.err >&5 | |
4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4658 | (exit $ac_status); } >/dev/null; then | |
4659 | if test -s conftest.err; then | |
4660 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4661 | else | |
4662 | ac_cpp_err= | |
4663 | fi | |
4664 | else | |
4665 | ac_cpp_err=yes | |
b896caa1 | 4666 | fi |
8106cdd5 AK |
4667 | if test -z "$ac_cpp_err"; then |
4668 | ac_header_preproc=yes | |
4669 | else | |
4670 | echo "$as_me: failed program was:" >&5 | |
4671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4672 | ||
4673 | ac_header_preproc=no | |
4674 | fi | |
4675 | rm -f conftest.err conftest.$ac_ext | |
4676 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4677 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4678 | ||
4679 | # So? What about this header? | |
4680 | case $ac_header_compiler:$ac_header_preproc in | |
4681 | yes:no ) | |
4682 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4683 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4686 | ( | |
4687 | cat <<\_ASBOX | |
4688 | ## ------------------------------------ ## | |
4689 | ## Report this to bug-autoconf@gnu.org. ## | |
4690 | ## ------------------------------------ ## | |
4691 | _ASBOX | |
4692 | ) | | |
4693 | sed "s/^/$as_me: WARNING: /" >&2 | |
4694 | ;; | |
4695 | no:yes ) | |
4696 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4697 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4698 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4699 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4701 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4702 | ( | |
4703 | cat <<\_ASBOX | |
4704 | ## ------------------------------------ ## | |
4705 | ## Report this to bug-autoconf@gnu.org. ## | |
4706 | ## ------------------------------------ ## | |
4707 | _ASBOX | |
4708 | ) | | |
4709 | sed "s/^/$as_me: WARNING: /" >&2 | |
4710 | ;; | |
4711 | esac | |
4712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4716 | else | |
4717 | eval "$as_ac_Header=$ac_header_preproc" | |
4718 | fi | |
4719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4721 | ||
b896caa1 | 4722 | fi |
8106cdd5 AK |
4723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4724 | cat >>confdefs.h <<_ACEOF | |
4725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4726 | _ACEOF | |
b896caa1 | 4727 | CFLAGS="$CFLAGS -DHAVE_GETOPTLONG" |
b896caa1 | 4728 | fi |
8106cdd5 | 4729 | |
b896caa1 AK |
4730 | done |
4731 | ||
4732 | ||
795ca3e5 | 4733 | if test x$READLINE = xyes; then |
8106cdd5 AK |
4734 | |
4735 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
4736 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 | |
4737 | if test "${ac_cv_lib_readline_readline+set}" = set; then | |
4738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
795ca3e5 | 4739 | else |
8106cdd5 | 4740 | ac_check_lib_save_LIBS=$LIBS |
795ca3e5 | 4741 | LIBS="-lreadline $LIBS" |
8106cdd5 AK |
4742 | cat >conftest.$ac_ext <<_ACEOF |
4743 | #line $LINENO "configure" | |
4744 | /* confdefs.h. */ | |
4745 | _ACEOF | |
4746 | cat confdefs.h >>conftest.$ac_ext | |
4747 | cat >>conftest.$ac_ext <<_ACEOF | |
4748 | /* end confdefs.h. */ | |
4749 | ||
795ca3e5 | 4750 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4751 | #ifdef __cplusplus |
4752 | extern "C" | |
4753 | #endif | |
795ca3e5 | 4754 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4755 | builtin and then its argument prototype would still apply. */ |
4756 | char readline (); | |
4757 | int | |
4758 | main () | |
4759 | { | |
4760 | readline (); | |
4761 | ; | |
4762 | return 0; | |
4763 | } | |
4764 | _ACEOF | |
4765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4767 | (eval $ac_link) 2>&5 | |
4768 | ac_status=$? | |
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4770 | (exit $ac_status); } && | |
4771 | { ac_try='test -s conftest$ac_exeext' | |
4772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4773 | (eval $ac_try) 2>&5 | |
4774 | ac_status=$? | |
4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4776 | (exit $ac_status); }; }; then | |
4777 | ac_cv_lib_readline_readline=yes | |
4778 | else | |
4779 | echo "$as_me: failed program was:" >&5 | |
4780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
795ca3e5 | 4781 | |
8106cdd5 | 4782 | ac_cv_lib_readline_readline=no |
795ca3e5 | 4783 | fi |
8106cdd5 AK |
4784 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4785 | LIBS=$ac_check_lib_save_LIBS | |
4786 | fi | |
4787 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 | |
4788 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 | |
4789 | if test $ac_cv_lib_readline_readline = yes; then | |
4790 | cat >>confdefs.h <<_ACEOF | |
4791 | #define HAVE_LIBREADLINE 1 | |
4792 | _ACEOF | |
795ca3e5 AK |
4793 | |
4794 | LIBS="-lreadline $LIBS" | |
4795 | ||
4796 | else | |
8106cdd5 AK |
4797 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
4798 | --enable-readline option (which is enabled by default). Either disable readline | |
4799 | support with --disable-readline or download and install readline from: | |
4800 | ftp.gnu.org/gnu/readline | |
4801 | Note: if you are using precompiled packages you will also need the development | |
4802 | package as well (which may be called readline-devel or something similar). | |
4803 | " >&5 | |
4804 | echo "$as_me: error: GNU Readline could not be found which is required for the | |
795ca3e5 AK |
4805 | --enable-readline option (which is enabled by default). Either disable readline |
4806 | support with --disable-readline or download and install readline from: | |
4807 | ftp.gnu.org/gnu/readline | |
4808 | Note: if you are using precompiled packages you will also need the development | |
4809 | package as well (which may be called readline-devel or something similar). | |
8106cdd5 AK |
4810 | " >&2;} |
4811 | { (exit 1); exit 1; }; } | |
795ca3e5 | 4812 | exit |
8106cdd5 | 4813 | |
795ca3e5 AK |
4814 | fi |
4815 | ||
8106cdd5 AK |
4816 | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
4817 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 | |
4818 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then | |
4819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
83912faa | 4820 | else |
8106cdd5 AK |
4821 | cat >conftest.$ac_ext <<_ACEOF |
4822 | #line $LINENO "configure" | |
4823 | /* confdefs.h. */ | |
4824 | _ACEOF | |
4825 | cat confdefs.h >>conftest.$ac_ext | |
4826 | cat >>conftest.$ac_ext <<_ACEOF | |
4827 | /* end confdefs.h. */ | |
83912faa | 4828 | /* System header to define __stub macros and hopefully few prototypes, |
8106cdd5 AK |
4829 | which can conflict with char rl_completion_matches (); below. |
4830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4831 | <limits.h> exists even on freestanding compilers. */ | |
4832 | #ifdef __STDC__ | |
4833 | # include <limits.h> | |
4834 | #else | |
4835 | # include <assert.h> | |
4836 | #endif | |
83912faa | 4837 | /* Override any gcc2 internal prototype to avoid an error. */ |
8106cdd5 AK |
4838 | #ifdef __cplusplus |
4839 | extern "C" | |
4840 | { | |
4841 | #endif | |
83912faa | 4842 | /* We use char because int might match the return type of a gcc2 |
8106cdd5 AK |
4843 | builtin and then its argument prototype would still apply. */ |
4844 | char rl_completion_matches (); | |
83912faa AK |
4845 | /* The GNU C library defines this for functions which it implements |
4846 | to always fail with ENOSYS. Some functions are actually named | |
4847 | something starting with __ and the normal name is an alias. */ | |
4848 | #if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches) | |
4849 | choke me | |
4850 | #else | |
8106cdd5 AK |
4851 | char (*f) () = rl_completion_matches; |
4852 | #endif | |
4853 | #ifdef __cplusplus | |
4854 | } | |
83912faa AK |
4855 | #endif |
4856 | ||
8106cdd5 AK |
4857 | int |
4858 | main () | |
4859 | { | |
4860 | return f != rl_completion_matches; | |
4861 | ; | |
4862 | return 0; | |
4863 | } | |
4864 | _ACEOF | |
4865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4867 | (eval $ac_link) 2>&5 | |
4868 | ac_status=$? | |
4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4870 | (exit $ac_status); } && | |
4871 | { ac_try='test -s conftest$ac_exeext' | |
4872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4873 | (eval $ac_try) 2>&5 | |
4874 | ac_status=$? | |
4875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4876 | (exit $ac_status); }; }; then | |
4877 | ac_cv_func_rl_completion_matches=yes | |
83912faa | 4878 | else |
8106cdd5 AK |
4879 | echo "$as_me: failed program was:" >&5 |
4880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4881 | ||
4882 | ac_cv_func_rl_completion_matches=no | |
83912faa | 4883 | fi |
8106cdd5 | 4884 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 4885 | fi |
8106cdd5 AK |
4886 | echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
4887 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6 | |
4888 | if test $ac_cv_func_rl_completion_matches = yes; then | |
b896caa1 | 4889 | CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES" |
83912faa AK |
4890 | fi |
4891 | ||
8106cdd5 | 4892 | |
69792976 AK |
4893 | fi |
4894 | ||
4895 | echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6 | |
4896 | # Check whether --enable-nls or --disable-nls was given. | |
4897 | if test "${enable_nls+set}" = set; then | |
4898 | enableval="$enable_nls" | |
4899 | \ | |
4900 | INTL=yes | |
4901 | else | |
4902 | INTL=no | |
8106cdd5 | 4903 | fi; |
69792976 AK |
4904 | echo "$ac_t""$INTL" 1>&6 |
4905 | ||
4906 | if test x$INTL = xyes; then | |
4907 | INTL_PACKAGE="lvm2" | |
4908 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
4909 | set dummy msgfmt; ac_word=$2 | |
8106cdd5 AK |
4910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4912 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
4913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
69792976 | 4914 | else |
8106cdd5 AK |
4915 | case $MSGFMT in |
4916 | [\\/]* | ?:[\\/]*) | |
69792976 AK |
4917 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
4918 | ;; | |
69792976 | 4919 | *) |
8106cdd5 AK |
4920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4921 | for as_dir in $PATH | |
4922 | do | |
4923 | IFS=$as_save_IFS | |
4924 | test -z "$as_dir" && as_dir=. | |
4925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4927 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
4928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4929 | break 2 | |
4930 | fi | |
4931 | done | |
4932 | done | |
4933 | ||
69792976 AK |
4934 | ;; |
4935 | esac | |
4936 | fi | |
8106cdd5 AK |
4937 | MSGFMT=$ac_cv_path_MSGFMT |
4938 | ||
69792976 | 4939 | if test -n "$MSGFMT"; then |
8106cdd5 AK |
4940 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
4941 | echo "${ECHO_T}$MSGFMT" >&6 | |
69792976 | 4942 | else |
8106cdd5 AK |
4943 | echo "$as_me:$LINENO: result: no" >&5 |
4944 | echo "${ECHO_T}no" >&6 | |
69792976 AK |
4945 | fi |
4946 | ||
4947 | if [ "x$MSGFMT" == x ]; | |
8106cdd5 AK |
4948 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
4949 | " >&5 | |
4950 | echo "$as_me: error: msgfmt not found in path $PATH | |
4951 | " >&2;} | |
4952 | { (exit 1); exit 1; }; } | |
4953 | exit | |
69792976 AK |
4954 | fi; |
4955 | ||
8106cdd5 AK |
4956 | |
4957 | # Check whether --with-localedir or --without-localedir was given. | |
69792976 AK |
4958 | if test "${with_localedir+set}" = set; then |
4959 | withval="$with_localedir" | |
8106cdd5 | 4960 | LOCALEDIR="$withval" |
69792976 | 4961 | else |
8106cdd5 AK |
4962 | LOCALEDIR='${prefix}/share/locale' |
4963 | fi; | |
83912faa AK |
4964 | fi |
4965 | ||
fae0c576 AK |
4966 | if test "-f VERSION"; then |
4967 | LVM_VERSION="\"`cat VERSION`\"" | |
4968 | else | |
4969 | LVM_VERSION="Unknown" | |
4970 | fi | |
4971 | ||
4972 | ||
83912faa | 4973 | |
795ca3e5 AK |
4974 | |
4975 | ||
4976 | ||
4977 | ||
4978 | ||
4979 | ||
5a52dca9 | 4980 | |
8ef2b021 | 4981 | |
199e490e | 4982 | |
69792976 AK |
4983 | |
4984 | ||
4985 | ||
4986 | ||
8106cdd5 AK |
4987 | |
4988 | ||
4989 | ||
4990 | ||
4991 | ||
4992 | ||
4993 | ||
4994 | ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile lib/format1/Makefile man/Makefile po/Makefile tools/Makefile tools/version.h test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile" | |
4995 | cat >confcache <<\_ACEOF | |
795ca3e5 AK |
4996 | # This file is a shell script that caches the results of configure |
4997 | # tests run on this system so they can be shared between configure | |
8106cdd5 AK |
4998 | # scripts and configure runs, see configure's option --config-cache. |
4999 | # It is not useful on other systems. If it contains results you don't | |
5000 | # want to keep, you may remove or edit it. | |
795ca3e5 | 5001 | # |
8106cdd5 AK |
5002 | # config.status only pays attention to the cache file if you give it |
5003 | # the --recheck option to rerun configure. | |
795ca3e5 | 5004 | # |
8106cdd5 AK |
5005 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
5006 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5007 | # following values. | |
5008 | ||
5009 | _ACEOF | |
5010 | ||
795ca3e5 AK |
5011 | # The following way of writing the cache mishandles newlines in values, |
5012 | # but we know of no workaround that is simple, portable, and efficient. | |
5013 | # So, don't put newlines in cache variables' values. | |
5014 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5015 | # and sets the high bit in the cache file unless we assign to the vars. | |
8106cdd5 AK |
5016 | { |
5017 | (set) 2>&1 | | |
5018 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5019 | *ac_space=\ *) | |
5020 | # `set' does not quote correctly, so add quotes (double-quote | |
5021 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5022 | sed -n \ | |
5023 | "s/'/'\\\\''/g; | |
5024 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5025 | ;; | |
5026 | *) | |
5027 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5028 | sed -n \ | |
5029 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
5030 | ;; | |
5031 | esac; | |
5032 | } | | |
5033 | sed ' | |
5034 | t clear | |
5035 | : clear | |
5036 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5037 | t end | |
5038 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5039 | : end' >>confcache | |
5040 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
795ca3e5 | 5041 | if test -w $cache_file; then |
8106cdd5 AK |
5042 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
5043 | cat confcache >$cache_file | |
795ca3e5 AK |
5044 | else |
5045 | echo "not updating unwritable cache $cache_file" | |
5046 | fi | |
5047 | fi | |
5048 | rm -f confcache | |
5049 | ||
795ca3e5 AK |
5050 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5051 | # Let make expand exec_prefix. | |
5052 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5053 | ||
8106cdd5 AK |
5054 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
5055 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
5056 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5057 | # (actually we leave an empty line to preserve line numbers). | |
795ca3e5 | 5058 | if test "x$srcdir" = x.; then |
8106cdd5 AK |
5059 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
5060 | s/:*\$(srcdir):*/:/; | |
5061 | s/:*\${srcdir}:*/:/; | |
5062 | s/:*@srcdir@:*/:/; | |
5063 | s/^\([^=]*=[ ]*\):*/\1/; | |
5064 | s/:*$//; | |
5065 | s/^[^=]*=[ ]*$//; | |
5066 | }' | |
795ca3e5 AK |
5067 | fi |
5068 | ||
795ca3e5 AK |
5069 | # Transform confdefs.h into DEFS. |
5070 | # Protect against shell expansion while executing Makefile rules. | |
5071 | # Protect against Makefile macro expansion. | |
8106cdd5 AK |
5072 | # |
5073 | # If the first sed substitution is executed (which looks for macros that | |
5074 | # take arguments), then we branch to the quote section. Otherwise, | |
5075 | # look for a macro that doesn't take arguments. | |
5076 | cat >confdef2opt.sed <<\_ACEOF | |
5077 | t clear | |
5078 | : clear | |
5079 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
5080 | t quote | |
5081 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
5082 | t quote | |
5083 | d | |
5084 | : quote | |
5085 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
5086 | s,\[,\\&,g | |
5087 | s,\],\\&,g | |
5088 | s,\$,$$,g | |
5089 | p | |
5090 | _ACEOF | |
5091 | # We use echo to avoid assuming a particular line-breaking character. | |
5092 | # The extra dot is to prevent the shell from consuming trailing | |
5093 | # line-breaks from the sub-command output. A line-break within | |
5094 | # single-quotes doesn't work because, if this script is created in a | |
5095 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
5096 | # would break. | |
5097 | ac_LF_and_DOT=`echo; echo .` | |
5098 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
5099 | rm -f confdef2opt.sed | |
5100 | ||
5101 | ||
5102 | ac_libobjs= | |
5103 | ac_ltlibobjs= | |
5104 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5105 | # 1. Remove the extension, and $U if already installed. | |
5106 | ac_i=`echo "$ac_i" | | |
5107 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
5108 | # 2. Add them. | |
5109 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
5110 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
5111 | done | |
5112 | LIBOBJS=$ac_libobjs | |
795ca3e5 | 5113 | |
8106cdd5 AK |
5114 | LTLIBOBJS=$ac_ltlibobjs |
5115 | ||
5116 | ||
5117 | ||
5118 | : ${CONFIG_STATUS=./config.status} | |
5119 | ac_clean_files_save=$ac_clean_files | |
5120 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5121 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5122 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5123 | cat >$CONFIG_STATUS <<_ACEOF | |
5124 | #! $SHELL | |
5125 | # Generated by $as_me. | |
795ca3e5 | 5126 | # Run this file to recreate the current configuration. |
795ca3e5 | 5127 | # Compiler output produced by configure, useful for debugging |
8106cdd5 AK |
5128 | # configure, is in config.log if it exists. |
5129 | ||
5130 | debug=false | |
5131 | ac_cs_recheck=false | |
5132 | ac_cs_silent=false | |
5133 | SHELL=\${CONFIG_SHELL-$SHELL} | |
5134 | _ACEOF | |
5135 | ||
5136 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5137 | ## --------------------- ## | |
5138 | ## M4sh Initialization. ## | |
5139 | ## --------------------- ## | |
5140 | ||
5141 | # Be Bourne compatible | |
5142 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5143 | emulate sh | |
5144 | NULLCMD=: | |
5145 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
5146 | # is contrary to our usage. Disable this feature. | |
5147 | alias -g '${1+"$@"}'='"$@"' | |
5148 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
5149 | set -o posix | |
5150 | fi | |
5151 | ||
5152 | # Support unset when possible. | |
5153 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
5154 | as_unset=unset | |
5155 | else | |
5156 | as_unset=false | |
5157 | fi | |
795ca3e5 | 5158 | |
8106cdd5 AK |
5159 | |
5160 | # Work around bugs in pre-3.0 UWIN ksh. | |
5161 | $as_unset ENV MAIL MAILPATH | |
5162 | PS1='$ ' | |
5163 | PS2='> ' | |
5164 | PS4='+ ' | |
5165 | ||
5166 | # NLS nuisances. | |
5167 | for as_var in \ | |
5168 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
5169 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
5170 | LC_TELEPHONE LC_TIME | |
795ca3e5 | 5171 | do |
8106cdd5 AK |
5172 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
5173 | eval $as_var=C; export $as_var | |
5174 | else | |
5175 | $as_unset $as_var | |
5176 | fi | |
795ca3e5 AK |
5177 | done |
5178 | ||
8106cdd5 AK |
5179 | # Required to use basename. |
5180 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5181 | as_expr=expr | |
5182 | else | |
5183 | as_expr=false | |
5184 | fi | |
795ca3e5 | 5185 | |
8106cdd5 AK |
5186 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
5187 | as_basename=basename | |
5188 | else | |
5189 | as_basename=false | |
5190 | fi | |
5191 | ||
5192 | ||
5193 | # Name of the executable. | |
5194 | as_me=`$as_basename "$0" || | |
5195 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5196 | X"$0" : 'X\(//\)$' \| \ | |
5197 | X"$0" : 'X\(/\)$' \| \ | |
5198 | . : '\(.\)' 2>/dev/null || | |
5199 | echo X/"$0" | | |
5200 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
5201 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
5202 | /^X\/\(\/\).*/{ s//\1/; q; } | |
5203 | s/.*/./; q'` | |
5204 | ||
5205 | ||
5206 | # PATH needs CR, and LINENO needs CR and PATH. | |
5207 | # Avoid depending upon Character Ranges. | |
5208 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5209 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5210 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5211 | as_cr_digits='0123456789' | |
5212 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5213 | ||
5214 | # The user is always right. | |
5215 | if test "${PATH_SEPARATOR+set}" != set; then | |
5216 | echo "#! /bin/sh" >conf$$.sh | |
5217 | echo "exit 0" >>conf$$.sh | |
5218 | chmod +x conf$$.sh | |
5219 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5220 | PATH_SEPARATOR=';' | |
795ca3e5 | 5221 | else |
8106cdd5 | 5222 | PATH_SEPARATOR=: |
795ca3e5 | 5223 | fi |
8106cdd5 AK |
5224 | rm -f conf$$.sh |
5225 | fi | |
5226 | ||
5227 | ||
5228 | as_lineno_1=$LINENO | |
5229 | as_lineno_2=$LINENO | |
5230 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5231 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5232 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
5233 | # Find who we are. Look in the path if we contain no path at all | |
5234 | # relative or not. | |
5235 | case $0 in | |
5236 | *[\\/]* ) as_myself=$0 ;; | |
5237 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5238 | for as_dir in $PATH | |
5239 | do | |
5240 | IFS=$as_save_IFS | |
5241 | test -z "$as_dir" && as_dir=. | |
5242 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5243 | done | |
5244 | ||
5245 | ;; | |
5246 | esac | |
5247 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5248 | # in which case we are not to be found in the path. | |
5249 | if test "x$as_myself" = x; then | |
5250 | as_myself=$0 | |
5251 | fi | |
5252 | if test ! -f "$as_myself"; then | |
5253 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
5254 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
5255 | { (exit 1); exit 1; }; } | |
795ca3e5 | 5256 | fi |
8106cdd5 AK |
5257 | case $CONFIG_SHELL in |
5258 | '') | |
5259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5260 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
5261 | do | |
5262 | IFS=$as_save_IFS | |
5263 | test -z "$as_dir" && as_dir=. | |
5264 | for as_base in sh bash ksh sh5; do | |
5265 | case $as_dir in | |
5266 | /*) | |
5267 | if ("$as_dir/$as_base" -c ' | |
5268 | as_lineno_1=$LINENO | |
5269 | as_lineno_2=$LINENO | |
5270 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5271 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5272 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
5273 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
5274 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
5275 | CONFIG_SHELL=$as_dir/$as_base | |
5276 | export CONFIG_SHELL | |
5277 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
5278 | fi;; | |
5279 | esac | |
5280 | done | |
795ca3e5 | 5281 | done |
8106cdd5 | 5282 | ;; |
795ca3e5 AK |
5283 | esac |
5284 | ||
8106cdd5 AK |
5285 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
5286 | # uniformly replaced by the line number. The first 'sed' inserts a | |
5287 | # line-number line before each line; the second 'sed' does the real | |
5288 | # work. The second script uses 'N' to pair each line-number line | |
5289 | # with the numbered line, and appends trailing '-' during | |
5290 | # substitution so that $LINENO is not a special case at line end. | |
5291 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
5292 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
5293 | sed '=' <$as_myself | | |
5294 | sed ' | |
5295 | N | |
5296 | s,$,-, | |
5297 | : loop | |
5298 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
5299 | t loop | |
5300 | s,-$,, | |
5301 | s,^['$as_cr_digits']*\n,, | |
5302 | ' >$as_me.lineno && | |
5303 | chmod +x $as_me.lineno || | |
5304 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
5305 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
5306 | { (exit 1); exit 1; }; } | |
5307 | ||
5308 | # Don't try to exec as it changes $[0], causing all sort of problems | |
5309 | # (the dirname of $[0] is not the place where we might find the | |
5310 | # original and so on. Autoconf is especially sensible to this). | |
5311 | . ./$as_me.lineno | |
5312 | # Exit status is that of the last command. | |
5313 | exit | |
5314 | } | |
5315 | ||
795ca3e5 | 5316 | |
8106cdd5 AK |
5317 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
5318 | *c*,-n*) ECHO_N= ECHO_C=' | |
5319 | ' ECHO_T=' ' ;; | |
5320 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
5321 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
5322 | esac | |
5323 | ||
5324 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5325 | as_expr=expr | |
5326 | else | |
5327 | as_expr=false | |
5328 | fi | |
5329 | ||
5330 | rm -f conf$$ conf$$.exe conf$$.file | |
5331 | echo >conf$$.file | |
5332 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5333 | # We could just check for DJGPP; but this test a) works b) is more generic | |
5334 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5335 | if test -f conf$$.exe; then | |
5336 | # Don't use ln at all; we don't have any links | |
5337 | as_ln_s='cp -p' | |
795ca3e5 | 5338 | else |
8106cdd5 | 5339 | as_ln_s='ln -s' |
795ca3e5 | 5340 | fi |
8106cdd5 AK |
5341 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5342 | as_ln_s=ln | |
5343 | else | |
5344 | as_ln_s='cp -p' | |
5345 | fi | |
5346 | rm -f conf$$ conf$$.exe conf$$.file | |
795ca3e5 | 5347 | |
8106cdd5 AK |
5348 | if mkdir -p . 2>/dev/null; then |
5349 | as_mkdir_p=: | |
5350 | else | |
5351 | as_mkdir_p=false | |
5352 | fi | |
5353 | ||
5354 | as_executable_p="test -f" | |
5355 | ||
5356 | # Sed expression to map a string onto a valid CPP name. | |
5357 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
5358 | ||
5359 | # Sed expression to map a string onto a valid variable name. | |
5360 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
5361 | ||
5362 | ||
5363 | # IFS | |
5364 | # We need space, tab and new line, in precisely that order. | |
5365 | as_nl=' | |
5366 | ' | |
5367 | IFS=" $as_nl" | |
5368 | ||
5369 | # CDPATH. | |
5370 | $as_unset CDPATH | |
5371 | ||
5372 | exec 6>&1 | |
5373 | ||
5374 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
5375 | # report actual input values of CONFIG_FILES etc. instead of their | |
5376 | # values after options handling. Logging --version etc. is OK. | |
5377 | exec 5>>config.log | |
5378 | { | |
5379 | echo | |
5380 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5381 | ## Running $as_me. ## | |
5382 | _ASBOX | |
5383 | } >&5 | |
5384 | cat >&5 <<_CSEOF | |
5385 | ||
5386 | This file was extended by $as_me, which was | |
5387 | generated by GNU Autoconf 2.57. Invocation command line was | |
5388 | ||
5389 | CONFIG_FILES = $CONFIG_FILES | |
5390 | CONFIG_HEADERS = $CONFIG_HEADERS | |
5391 | CONFIG_LINKS = $CONFIG_LINKS | |
5392 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5393 | $ $0 $@ | |
5394 | ||
5395 | _CSEOF | |
5396 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
5397 | echo >&5 | |
5398 | _ACEOF | |
5399 | ||
5400 | # Files that config.status was made for. | |
5401 | if test -n "$ac_config_files"; then | |
5402 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
5403 | fi | |
5404 | ||
5405 | if test -n "$ac_config_headers"; then | |
5406 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
5407 | fi | |
5408 | ||
5409 | if test -n "$ac_config_links"; then | |
5410 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
5411 | fi | |
5412 | ||
5413 | if test -n "$ac_config_commands"; then | |
5414 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
5415 | fi | |
5416 | ||
5417 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5418 | ||
5419 | ac_cs_usage="\ | |
5420 | \`$as_me' instantiates files from templates according to the | |
5421 | current configuration. | |
5422 | ||
5423 | Usage: $0 [OPTIONS] [FILE]... | |
5424 | ||
5425 | -h, --help print this help, then exit | |
5426 | -V, --version print version number, then exit | |
5427 | -q, --quiet do not print progress messages | |
5428 | -d, --debug don't remove temporary files | |
5429 | --recheck update $as_me by reconfiguring in the same conditions | |
5430 | --file=FILE[:TEMPLATE] | |
5431 | instantiate the configuration file FILE | |
5432 | ||
5433 | Configuration files: | |
5434 | $config_files | |
5435 | ||
5436 | Report bugs to <bug-autoconf@gnu.org>." | |
5437 | _ACEOF | |
5438 | ||
5439 | cat >>$CONFIG_STATUS <<_ACEOF | |
5440 | ac_cs_version="\\ | |
5441 | config.status | |
5442 | configured by $0, generated by GNU Autoconf 2.57, | |
5443 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
5444 | ||
5445 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
5446 | Free Software Foundation, Inc. | |
5447 | This config.status script is free software; the Free Software Foundation | |
5448 | gives unlimited permission to copy, distribute and modify it." | |
5449 | srcdir=$srcdir | |
5450 | INSTALL="$INSTALL" | |
5451 | _ACEOF | |
5452 | ||
5453 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5454 | # If no file are specified by the user, then we need to provide default | |
5455 | # value. By we need to know if files were specified by the user. | |
5456 | ac_need_defaults=: | |
5457 | while test $# != 0 | |
5458 | do | |
5459 | case $1 in | |
5460 | --*=*) | |
5461 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
5462 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
5463 | ac_shift=: | |
5464 | ;; | |
5465 | -*) | |
5466 | ac_option=$1 | |
5467 | ac_optarg=$2 | |
5468 | ac_shift=shift | |
5469 | ;; | |
5470 | *) # This is not an option, so the user has probably given explicit | |
5471 | # arguments. | |
5472 | ac_option=$1 | |
5473 | ac_need_defaults=false;; | |
5474 | esac | |
5475 | ||
5476 | case $ac_option in | |
5477 | # Handling of the options. | |
5478 | _ACEOF | |
5479 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5480 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5481 | ac_cs_recheck=: ;; | |
5482 | --version | --vers* | -V ) | |
5483 | echo "$ac_cs_version"; exit 0 ;; | |
5484 | --he | --h) | |
5485 | # Conflict between --help and --header | |
5486 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
5487 | Try \`$0 --help' for more information." >&5 | |
5488 | echo "$as_me: error: ambiguous option: $1 | |
5489 | Try \`$0 --help' for more information." >&2;} | |
5490 | { (exit 1); exit 1; }; };; | |
5491 | --help | --hel | -h ) | |
5492 | echo "$ac_cs_usage"; exit 0 ;; | |
5493 | --debug | --d* | -d ) | |
5494 | debug=: ;; | |
5495 | --file | --fil | --fi | --f ) | |
5496 | $ac_shift | |
5497 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
5498 | ac_need_defaults=false;; | |
5499 | --header | --heade | --head | --hea ) | |
5500 | $ac_shift | |
5501 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
5502 | ac_need_defaults=false;; | |
5503 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
5504 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5505 | ac_cs_silent=: ;; | |
5506 | ||
5507 | # This is an error. | |
5508 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
5509 | Try \`$0 --help' for more information." >&5 | |
5510 | echo "$as_me: error: unrecognized option: $1 | |
5511 | Try \`$0 --help' for more information." >&2;} | |
5512 | { (exit 1); exit 1; }; } ;; | |
5513 | ||
5514 | *) ac_config_targets="$ac_config_targets $1" ;; | |
5515 | ||
5516 | esac | |
5517 | shift | |
5518 | done | |
5519 | ||
5520 | ac_configure_extra_args= | |
5521 | ||
5522 | if $ac_cs_silent; then | |
5523 | exec 6>/dev/null | |
5524 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5525 | fi | |
5526 | ||
5527 | _ACEOF | |
5528 | cat >>$CONFIG_STATUS <<_ACEOF | |
5529 | if \$ac_cs_recheck; then | |
5530 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
5531 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
5532 | fi | |
5533 | ||
5534 | _ACEOF | |
5535 | ||
5536 | ||
5537 | ||
5538 | ||
5539 | ||
5540 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5541 | for ac_config_target in $ac_config_targets | |
5542 | do | |
5543 | case "$ac_config_target" in | |
5544 | # Handling of arguments. | |
5545 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
5546 | "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
5547 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
5548 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
5549 | "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
5550 | "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
5551 | "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
5552 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
5553 | "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
5554 | "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;; | |
5555 | "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;; | |
5556 | "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;; | |
5557 | "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;; | |
5558 | "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;; | |
5559 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
5560 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
5561 | { (exit 1); exit 1; }; };; | |
795ca3e5 | 5562 | esac |
8106cdd5 AK |
5563 | done |
5564 | ||
5565 | # If the user did not use the arguments to specify the items to instantiate, | |
5566 | # then the envvar interface is used. Set only those that are not. | |
5567 | # We use the long form for the default assignment because of an extremely | |
5568 | # bizarre bug on SunOS 4.1.3. | |
5569 | if $ac_need_defaults; then | |
5570 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5571 | fi | |
5572 | ||
5573 | # Have a temporary directory for convenience. Make it in the build tree | |
5574 | # simply because there is no reason to put it here, and in addition, | |
5575 | # creating and moving files from /tmp can sometimes cause problems. | |
5576 | # Create a temporary directory, and hook for its removal unless debugging. | |
5577 | $debug || | |
5578 | { | |
5579 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
5580 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
5581 | } | |
5582 | ||
5583 | # Create a (secure) tmp directory for tmp files. | |
5584 | ||
5585 | { | |
5586 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
5587 | test -n "$tmp" && test -d "$tmp" | |
5588 | } || | |
5589 | { | |
5590 | tmp=./confstat$$-$RANDOM | |
5591 | (umask 077 && mkdir $tmp) | |
5592 | } || | |
5593 | { | |
5594 | echo "$me: cannot create a temporary directory in ." >&2 | |
5595 | { (exit 1); exit 1; } | |
5596 | } | |
5597 | ||
5598 | _ACEOF | |
5599 | ||
5600 | cat >>$CONFIG_STATUS <<_ACEOF | |
795ca3e5 | 5601 | |
8106cdd5 AK |
5602 | # |
5603 | # CONFIG_FILES section. | |
5604 | # | |
5605 | ||
5606 | # No need to generate the scripts if there are no CONFIG_FILES. | |
5607 | # This happens for instance when ./config.status config.h | |
5608 | if test -n "\$CONFIG_FILES"; then | |
5609 | # Protect against being on the right side of a sed subst in config.status. | |
5610 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
5611 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
5612 | s,@SHELL@,$SHELL,;t t | |
5613 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
5614 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
5615 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
5616 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
5617 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
5618 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
5619 | s,@exec_prefix@,$exec_prefix,;t t | |
5620 | s,@prefix@,$prefix,;t t | |
5621 | s,@program_transform_name@,$program_transform_name,;t t | |
5622 | s,@bindir@,$bindir,;t t | |
5623 | s,@sbindir@,$sbindir,;t t | |
5624 | s,@libexecdir@,$libexecdir,;t t | |
5625 | s,@datadir@,$datadir,;t t | |
5626 | s,@sysconfdir@,$sysconfdir,;t t | |
5627 | s,@sharedstatedir@,$sharedstatedir,;t t | |
5628 | s,@localstatedir@,$localstatedir,;t t | |
5629 | s,@libdir@,$libdir,;t t | |
5630 | s,@includedir@,$includedir,;t t | |
5631 | s,@oldincludedir@,$oldincludedir,;t t | |
5632 | s,@infodir@,$infodir,;t t | |
5633 | s,@mandir@,$mandir,;t t | |
5634 | s,@build_alias@,$build_alias,;t t | |
5635 | s,@host_alias@,$host_alias,;t t | |
5636 | s,@target_alias@,$target_alias,;t t | |
5637 | s,@DEFS@,$DEFS,;t t | |
5638 | s,@ECHO_C@,$ECHO_C,;t t | |
5639 | s,@ECHO_N@,$ECHO_N,;t t | |
5640 | s,@ECHO_T@,$ECHO_T,;t t | |
5641 | s,@LIBS@,$LIBS,;t t | |
5642 | s,@AWK@,$AWK,;t t | |
5643 | s,@CC@,$CC,;t t | |
5644 | s,@CFLAGS@,$CFLAGS,;t t | |
5645 | s,@LDFLAGS@,$LDFLAGS,;t t | |
5646 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
5647 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
5648 | s,@EXEEXT@,$EXEEXT,;t t | |
5649 | s,@OBJEXT@,$OBJEXT,;t t | |
5650 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
5651 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
5652 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
5653 | s,@LN_S@,$LN_S,;t t | |
5654 | s,@SET_MAKE@,$SET_MAKE,;t t | |
5655 | s,@RANLIB@,$RANLIB,;t t | |
5656 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
5657 | s,@CPP@,$CPP,;t t | |
5658 | s,@EGREP@,$EGREP,;t t | |
5659 | s,@build@,$build,;t t | |
5660 | s,@build_cpu@,$build_cpu,;t t | |
5661 | s,@build_vendor@,$build_vendor,;t t | |
5662 | s,@build_os@,$build_os,;t t | |
5663 | s,@host@,$host,;t t | |
5664 | s,@host_cpu@,$host_cpu,;t t | |
5665 | s,@host_vendor@,$host_vendor,;t t | |
5666 | s,@host_os@,$host_os,;t t | |
5667 | s,@target@,$target,;t t | |
5668 | s,@target_cpu@,$target_cpu,;t t | |
5669 | s,@target_vendor@,$target_vendor,;t t | |
5670 | s,@target_os@,$target_os,;t t | |
5671 | s,@MSGFMT@,$MSGFMT,;t t | |
5672 | s,@JOBS@,$JOBS,;t t | |
5673 | s,@STATIC_LINK@,$STATIC_LINK,;t t | |
5674 | s,@LVM1@,$LVM1,;t t | |
5675 | s,@OWNER@,$OWNER,;t t | |
5676 | s,@GROUP@,$GROUP,;t t | |
5677 | s,@CLDFLAGS@,$CLDFLAGS,;t t | |
5678 | s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t | |
5679 | s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t | |
5680 | s,@LD_DEPS@,$LD_DEPS,;t t | |
5681 | s,@SOFLAG@,$SOFLAG,;t t | |
5682 | s,@LVM_VERSION@,$LVM_VERSION,;t t | |
5683 | s,@DEBUG@,$DEBUG,;t t | |
5684 | s,@DEVMAPPER@,$DEVMAPPER,;t t | |
5685 | s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t | |
5686 | s,@CMDLIB@,$CMDLIB,;t t | |
5687 | s,@LOCALEDIR@,$LOCALEDIR,;t t | |
5688 | s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t | |
5689 | s,@INTL@,$INTL,;t t | |
5690 | s,@LIBOBJS@,$LIBOBJS,;t t | |
5691 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
5692 | CEOF | |
5693 | ||
5694 | _ACEOF | |
5695 | ||
5696 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5697 | # Split the substitutions into bite-sized pieces for seds with | |
5698 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5699 | ac_max_sed_lines=48 | |
5700 | ac_sed_frag=1 # Number of current file. | |
5701 | ac_beg=1 # First line for current file. | |
5702 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
5703 | ac_more_lines=: | |
5704 | ac_sed_cmds= | |
5705 | while $ac_more_lines; do | |
5706 | if test $ac_beg -gt 1; then | |
5707 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5708 | else | |
5709 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
5710 | fi | |
5711 | if test ! -s $tmp/subs.frag; then | |
5712 | ac_more_lines=false | |
5713 | else | |
5714 | # The purpose of the label and of the branching condition is to | |
5715 | # speed up the sed processing (if there are no `@' at all, there | |
5716 | # is no need to browse any of the substitutions). | |
5717 | # These are the two extra sed commands mentioned above. | |
5718 | (echo ':t | |
5719 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
5720 | if test -z "$ac_sed_cmds"; then | |
5721 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
5722 | else | |
5723 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
5724 | fi | |
5725 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
5726 | ac_beg=$ac_end | |
5727 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
5728 | fi | |
5729 | done | |
5730 | if test -z "$ac_sed_cmds"; then | |
5731 | ac_sed_cmds=cat | |
5732 | fi | |
5733 | fi # test -n "$CONFIG_FILES" | |
5734 | ||
5735 | _ACEOF | |
5736 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5737 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
5738 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5739 | case $ac_file in | |
5740 | - | *:- | *:-:* ) # input from stdin | |
5741 | cat >$tmp/stdin | |
5742 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5743 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5744 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
5745 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
5746 | * ) ac_file_in=$ac_file.in ;; | |
795ca3e5 AK |
5747 | esac |
5748 | ||
8106cdd5 AK |
5749 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
5750 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
5751 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5752 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5753 | X"$ac_file" : 'X\(//\)$' \| \ | |
5754 | X"$ac_file" : 'X\(/\)' \| \ | |
5755 | . : '\(.\)' 2>/dev/null || | |
5756 | echo X"$ac_file" | | |
5757 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
5758 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5759 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5760 | /^X\(\/\).*/{ s//\1/; q; } | |
5761 | s/.*/./; q'` | |
5762 | { if $as_mkdir_p; then | |
5763 | mkdir -p "$ac_dir" | |
5764 | else | |
5765 | as_dir="$ac_dir" | |
5766 | as_dirs= | |
5767 | while test ! -d "$as_dir"; do | |
5768 | as_dirs="$as_dir $as_dirs" | |
5769 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
5770 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5771 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
5772 | X"$as_dir" : 'X\(//\)$' \| \ | |
5773 | X"$as_dir" : 'X\(/\)' \| \ | |
5774 | . : '\(.\)' 2>/dev/null || | |
5775 | echo X"$as_dir" | | |
5776 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
5777 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
5778 | /^X\(\/\/\)$/{ s//\1/; q; } | |
5779 | /^X\(\/\).*/{ s//\1/; q; } | |
5780 | s/.*/./; q'` | |
5781 | done | |
5782 | test ! -n "$as_dirs" || mkdir $as_dirs | |
5783 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
5784 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
5785 | { (exit 1); exit 1; }; }; } | |
5786 | ||
5787 | ac_builddir=. | |
5788 | ||
5789 | if test "$ac_dir" != .; then | |
5790 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
5791 | # A "../" for each directory in $ac_dir_suffix. | |
5792 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
5793 | else | |
5794 | ac_dir_suffix= ac_top_builddir= | |
5795 | fi | |
5796 | ||
5797 | case $srcdir in | |
5798 | .) # No --srcdir option. We are building in place. | |
5799 | ac_srcdir=. | |
5800 | if test -z "$ac_top_builddir"; then | |
5801 | ac_top_srcdir=. | |
5802 | else | |
5803 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
5804 | fi ;; | |
5805 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
5806 | ac_srcdir=$srcdir$ac_dir_suffix; | |
5807 | ac_top_srcdir=$srcdir ;; | |
5808 | *) # Relative path. | |
5809 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
5810 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
5811 | esac | |
5812 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
5813 | # absolute. | |
5814 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
5815 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
5816 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
5817 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
5818 | ||
5819 | ||
5820 | case $INSTALL in | |
5821 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5822 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
795ca3e5 AK |
5823 | esac |
5824 | ||
8106cdd5 AK |
5825 | if test x"$ac_file" != x-; then |
5826 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
5827 | echo "$as_me: creating $ac_file" >&6;} | |
5828 | rm -f "$ac_file" | |
5829 | fi | |
5830 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5831 | # use $as_me), people would be surprised to read: | |
5832 | # /* config.h. Generated by config.status. */ | |
5833 | if test x"$ac_file" = x-; then | |
5834 | configure_input= | |
5835 | else | |
5836 | configure_input="$ac_file. " | |
5837 | fi | |
5838 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
5839 | sed 's,.*/,,'` by configure." | |
5840 | ||
5841 | # First look for the input files in the build tree, otherwise in the | |
5842 | # src tree. | |
5843 | ac_file_inputs=`IFS=: | |
5844 | for f in $ac_file_in; do | |
5845 | case $f in | |
5846 | -) echo $tmp/stdin ;; | |
5847 | [\\/$]*) | |
5848 | # Absolute (can't be DOS-style, as IFS=:) | |
5849 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
5850 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
5851 | { (exit 1); exit 1; }; } | |
5852 | echo $f;; | |
5853 | *) # Relative | |
5854 | if test -f "$f"; then | |
5855 | # Build tree | |
5856 | echo $f | |
5857 | elif test -f "$srcdir/$f"; then | |
5858 | # Source tree | |
5859 | echo $srcdir/$f | |
5860 | else | |
5861 | # /dev/null tree | |
5862 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
5863 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
5864 | { (exit 1); exit 1; }; } | |
5865 | fi;; | |
5866 | esac | |
5867 | done` || { (exit 1); exit 1; } | |
5868 | _ACEOF | |
5869 | cat >>$CONFIG_STATUS <<_ACEOF | |
5870 | sed "$ac_vpsub | |
5871 | $extrasub | |
5872 | _ACEOF | |
5873 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5874 | :t | |
5875 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5876 | s,@configure_input@,$configure_input,;t t | |
5877 | s,@srcdir@,$ac_srcdir,;t t | |
5878 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
5879 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
5880 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
5881 | s,@builddir@,$ac_builddir,;t t | |
5882 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
5883 | s,@top_builddir@,$ac_top_builddir,;t t | |
5884 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
5885 | s,@INSTALL@,$ac_INSTALL,;t t | |
5886 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
5887 | rm -f $tmp/stdin | |
5888 | if test x"$ac_file" != x-; then | |
5889 | mv $tmp/out $ac_file | |
5890 | else | |
5891 | cat $tmp/out | |
5892 | rm -f $tmp/out | |
5893 | fi | |
795ca3e5 | 5894 | |
8106cdd5 AK |
5895 | done |
5896 | _ACEOF | |
795ca3e5 | 5897 | |
8106cdd5 | 5898 | cat >>$CONFIG_STATUS <<\_ACEOF |
795ca3e5 | 5899 | |
8106cdd5 AK |
5900 | { (exit 0); exit 0; } |
5901 | _ACEOF | |
795ca3e5 | 5902 | chmod +x $CONFIG_STATUS |
8106cdd5 AK |
5903 | ac_clean_files=$ac_clean_files_save |
5904 | ||
5905 | ||
5906 | # configure is writing to config.log, and then calls config.status. | |
5907 | # config.status does its own redirection, appending to config.log. | |
5908 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5909 | # by configure, so config.status won't be able to write to it; its | |
5910 | # output is simply discarded. So we exec the FD to /dev/null, | |
5911 | # effectively closing config.log, so it can be properly (re)opened and | |
5912 | # appended to by config.status. When coming back to configure, we | |
5913 | # need to make the FD available again. | |
5914 | if test "$no_create" != yes; then | |
5915 | ac_cs_success=: | |
5916 | ac_config_status_args= | |
5917 | test "$silent" = yes && | |
5918 | ac_config_status_args="$ac_config_status_args --quiet" | |
5919 | exec 5>/dev/null | |
5920 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5921 | exec 5>>config.log | |
5922 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5923 | # would make configure fail if this is the last instruction. | |
5924 | $ac_cs_success || { (exit 1); exit 1; } | |
5925 | fi | |
795ca3e5 | 5926 | |
2dc95e1c AK |
5927 | |
5928 | if test x$ODIRECT != xyes; then | |
5929 | echo | |
5930 | echo Warning: O_DIRECT disabled. | |
5931 | echo Use of pvmove may cause machine to lock up under low memory conditions. | |
5932 | echo | |
5933 | fi |