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