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