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="tc.vers.c" |
---|
275 | # Factoring default headers for most tests. |
---|
276 | ac_includes_default="\ |
---|
277 | #include <stdio.h> |
---|
278 | #if HAVE_SYS_TYPES_H |
---|
279 | # include <sys/types.h> |
---|
280 | #endif |
---|
281 | #if HAVE_SYS_STAT_H |
---|
282 | # include <sys/stat.h> |
---|
283 | #endif |
---|
284 | #if STDC_HEADERS |
---|
285 | # include <stdlib.h> |
---|
286 | # include <stddef.h> |
---|
287 | #else |
---|
288 | # if HAVE_STDLIB_H |
---|
289 | # include <stdlib.h> |
---|
290 | # endif |
---|
291 | #endif |
---|
292 | #if HAVE_STRING_H |
---|
293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
294 | # include <memory.h> |
---|
295 | # endif |
---|
296 | # include <string.h> |
---|
297 | #endif |
---|
298 | #if HAVE_STRINGS_H |
---|
299 | # include <strings.h> |
---|
300 | #endif |
---|
301 | #if HAVE_INTTYPES_H |
---|
302 | # include <inttypes.h> |
---|
303 | #else |
---|
304 | # if HAVE_STDINT_H |
---|
305 | # include <stdint.h> |
---|
306 | # endif |
---|
307 | #endif |
---|
308 | #if HAVE_UNISTD_H |
---|
309 | # include <unistd.h> |
---|
310 | #endif" |
---|
311 | |
---|
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP DFLAGS HESDEF HESLIB lbindir LIBOBJS LTLIBOBJS' |
---|
313 | ac_subst_files='' |
---|
314 | |
---|
315 | # Initialize some variables set by options. |
---|
316 | ac_init_help= |
---|
317 | ac_init_version=false |
---|
318 | # The variables have the same names as the options, with |
---|
319 | # dashes changed to underlines. |
---|
320 | cache_file=/dev/null |
---|
321 | exec_prefix=NONE |
---|
322 | no_create= |
---|
323 | no_recursion= |
---|
324 | prefix=NONE |
---|
325 | program_prefix=NONE |
---|
326 | program_suffix=NONE |
---|
327 | program_transform_name=s,x,x, |
---|
328 | silent= |
---|
329 | site= |
---|
330 | srcdir= |
---|
331 | verbose= |
---|
332 | x_includes=NONE |
---|
333 | x_libraries=NONE |
---|
334 | |
---|
335 | # Installation directory options. |
---|
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
337 | # and all the variables that are supposed to be based on exec_prefix |
---|
338 | # by default will actually change. |
---|
339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
340 | bindir='${exec_prefix}/bin' |
---|
341 | sbindir='${exec_prefix}/sbin' |
---|
342 | libexecdir='${exec_prefix}/libexec' |
---|
343 | datadir='${prefix}/share' |
---|
344 | sysconfdir='${prefix}/etc' |
---|
345 | sharedstatedir='${prefix}/com' |
---|
346 | localstatedir='${prefix}/var' |
---|
347 | libdir='${exec_prefix}/lib' |
---|
348 | includedir='${prefix}/include' |
---|
349 | oldincludedir='/usr/include' |
---|
350 | infodir='${prefix}/info' |
---|
351 | mandir='${prefix}/man' |
---|
352 | |
---|
353 | ac_prev= |
---|
354 | for ac_option |
---|
355 | do |
---|
356 | # If the previous option needs an argument, assign it. |
---|
357 | if test -n "$ac_prev"; then |
---|
358 | eval "$ac_prev=\$ac_option" |
---|
359 | ac_prev= |
---|
360 | continue |
---|
361 | fi |
---|
362 | |
---|
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
364 | |
---|
365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
366 | |
---|
367 | case $ac_option in |
---|
368 | |
---|
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
370 | ac_prev=bindir ;; |
---|
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
372 | bindir=$ac_optarg ;; |
---|
373 | |
---|
374 | -build | --build | --buil | --bui | --bu) |
---|
375 | ac_prev=build_alias ;; |
---|
376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
377 | build_alias=$ac_optarg ;; |
---|
378 | |
---|
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
381 | ac_prev=cache_file ;; |
---|
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
384 | cache_file=$ac_optarg ;; |
---|
385 | |
---|
386 | --config-cache | -C) |
---|
387 | cache_file=config.cache ;; |
---|
388 | |
---|
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
390 | ac_prev=datadir ;; |
---|
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
392 | | --da=*) |
---|
393 | datadir=$ac_optarg ;; |
---|
394 | |
---|
395 | -disable-* | --disable-*) |
---|
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
397 | # Reject names that are not valid shell variable names. |
---|
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
400 | { (exit 1); exit 1; }; } |
---|
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
402 | eval "enable_$ac_feature=no" ;; |
---|
403 | |
---|
404 | -enable-* | --enable-*) |
---|
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
406 | # Reject names that are not valid shell variable names. |
---|
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
409 | { (exit 1); exit 1; }; } |
---|
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
411 | case $ac_option in |
---|
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
413 | *) ac_optarg=yes ;; |
---|
414 | esac |
---|
415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
416 | |
---|
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
419 | | --exec | --exe | --ex) |
---|
420 | ac_prev=exec_prefix ;; |
---|
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
423 | | --exec=* | --exe=* | --ex=*) |
---|
424 | exec_prefix=$ac_optarg ;; |
---|
425 | |
---|
426 | -gas | --gas | --ga | --g) |
---|
427 | # Obsolete; use --with-gas. |
---|
428 | with_gas=yes ;; |
---|
429 | |
---|
430 | -help | --help | --hel | --he | -h) |
---|
431 | ac_init_help=long ;; |
---|
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
433 | ac_init_help=recursive ;; |
---|
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
435 | ac_init_help=short ;; |
---|
436 | |
---|
437 | -host | --host | --hos | --ho) |
---|
438 | ac_prev=host_alias ;; |
---|
439 | -host=* | --host=* | --hos=* | --ho=*) |
---|
440 | host_alias=$ac_optarg ;; |
---|
441 | |
---|
442 | -includedir | --includedir | --includedi | --included | --include \ |
---|
443 | | --includ | --inclu | --incl | --inc) |
---|
444 | ac_prev=includedir ;; |
---|
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
447 | includedir=$ac_optarg ;; |
---|
448 | |
---|
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
450 | ac_prev=infodir ;; |
---|
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
452 | infodir=$ac_optarg ;; |
---|
453 | |
---|
454 | -libdir | --libdir | --libdi | --libd) |
---|
455 | ac_prev=libdir ;; |
---|
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
457 | libdir=$ac_optarg ;; |
---|
458 | |
---|
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
460 | | --libexe | --libex | --libe) |
---|
461 | ac_prev=libexecdir ;; |
---|
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
463 | | --libexe=* | --libex=* | --libe=*) |
---|
464 | libexecdir=$ac_optarg ;; |
---|
465 | |
---|
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
467 | | --localstate | --localstat | --localsta | --localst \ |
---|
468 | | --locals | --local | --loca | --loc | --lo) |
---|
469 | ac_prev=localstatedir ;; |
---|
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
473 | localstatedir=$ac_optarg ;; |
---|
474 | |
---|
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
476 | ac_prev=mandir ;; |
---|
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
478 | mandir=$ac_optarg ;; |
---|
479 | |
---|
480 | -nfp | --nfp | --nf) |
---|
481 | # Obsolete; use --without-fp. |
---|
482 | with_fp=no ;; |
---|
483 | |
---|
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
485 | | --no-cr | --no-c | -n) |
---|
486 | no_create=yes ;; |
---|
487 | |
---|
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
490 | no_recursion=yes ;; |
---|
491 | |
---|
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
494 | | --oldin | --oldi | --old | --ol | --o) |
---|
495 | ac_prev=oldincludedir ;; |
---|
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
499 | oldincludedir=$ac_optarg ;; |
---|
500 | |
---|
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
502 | ac_prev=prefix ;; |
---|
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
504 | prefix=$ac_optarg ;; |
---|
505 | |
---|
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
507 | | --program-pre | --program-pr | --program-p) |
---|
508 | ac_prev=program_prefix ;; |
---|
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
511 | program_prefix=$ac_optarg ;; |
---|
512 | |
---|
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
514 | | --program-suf | --program-su | --program-s) |
---|
515 | ac_prev=program_suffix ;; |
---|
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
518 | program_suffix=$ac_optarg ;; |
---|
519 | |
---|
520 | -program-transform-name | --program-transform-name \ |
---|
521 | | --program-transform-nam | --program-transform-na \ |
---|
522 | | --program-transform-n | --program-transform- \ |
---|
523 | | --program-transform | --program-transfor \ |
---|
524 | | --program-transfo | --program-transf \ |
---|
525 | | --program-trans | --program-tran \ |
---|
526 | | --progr-tra | --program-tr | --program-t) |
---|
527 | ac_prev=program_transform_name ;; |
---|
528 | -program-transform-name=* | --program-transform-name=* \ |
---|
529 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
530 | | --program-transform-n=* | --program-transform-=* \ |
---|
531 | | --program-transform=* | --program-transfor=* \ |
---|
532 | | --program-transfo=* | --program-transf=* \ |
---|
533 | | --program-trans=* | --program-tran=* \ |
---|
534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
535 | program_transform_name=$ac_optarg ;; |
---|
536 | |
---|
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
538 | | -silent | --silent | --silen | --sile | --sil) |
---|
539 | silent=yes ;; |
---|
540 | |
---|
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
542 | ac_prev=sbindir ;; |
---|
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
544 | | --sbi=* | --sb=*) |
---|
545 | sbindir=$ac_optarg ;; |
---|
546 | |
---|
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
549 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
550 | | --sha | --sh) |
---|
551 | ac_prev=sharedstatedir ;; |
---|
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
555 | | --sha=* | --sh=*) |
---|
556 | sharedstatedir=$ac_optarg ;; |
---|
557 | |
---|
558 | -site | --site | --sit) |
---|
559 | ac_prev=site ;; |
---|
560 | -site=* | --site=* | --sit=*) |
---|
561 | site=$ac_optarg ;; |
---|
562 | |
---|
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
564 | ac_prev=srcdir ;; |
---|
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
566 | srcdir=$ac_optarg ;; |
---|
567 | |
---|
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
569 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
570 | ac_prev=sysconfdir ;; |
---|
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
573 | sysconfdir=$ac_optarg ;; |
---|
574 | |
---|
575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
576 | ac_prev=target_alias ;; |
---|
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
578 | target_alias=$ac_optarg ;; |
---|
579 | |
---|
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
581 | verbose=yes ;; |
---|
582 | |
---|
583 | -version | --version | --versio | --versi | --vers | -V) |
---|
584 | ac_init_version=: ;; |
---|
585 | |
---|
586 | -with-* | --with-*) |
---|
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
588 | # Reject names that are not valid shell variable names. |
---|
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
591 | { (exit 1); exit 1; }; } |
---|
592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
593 | case $ac_option in |
---|
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
595 | *) ac_optarg=yes ;; |
---|
596 | esac |
---|
597 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
598 | |
---|
599 | -without-* | --without-*) |
---|
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
601 | # Reject names that are not valid shell variable names. |
---|
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
604 | { (exit 1); exit 1; }; } |
---|
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
606 | eval "with_$ac_package=no" ;; |
---|
607 | |
---|
608 | --x) |
---|
609 | # Obsolete; use --with-x. |
---|
610 | with_x=yes ;; |
---|
611 | |
---|
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
613 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
614 | ac_prev=x_includes ;; |
---|
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
617 | x_includes=$ac_optarg ;; |
---|
618 | |
---|
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
621 | ac_prev=x_libraries ;; |
---|
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
624 | x_libraries=$ac_optarg ;; |
---|
625 | |
---|
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
627 | Try \`$0 --help' for more information." >&2 |
---|
628 | { (exit 1); exit 1; }; } |
---|
629 | ;; |
---|
630 | |
---|
631 | *=*) |
---|
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
633 | # Reject names that are not valid shell variable names. |
---|
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
636 | { (exit 1); exit 1; }; } |
---|
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
638 | eval "$ac_envvar='$ac_optarg'" |
---|
639 | export $ac_envvar ;; |
---|
640 | |
---|
641 | *) |
---|
642 | # FIXME: should be removed in autoconf 3.0. |
---|
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
647 | ;; |
---|
648 | |
---|
649 | esac |
---|
650 | done |
---|
651 | |
---|
652 | if test -n "$ac_prev"; then |
---|
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
655 | { (exit 1); exit 1; }; } |
---|
656 | fi |
---|
657 | |
---|
658 | # Be sure to have absolute paths. |
---|
659 | for ac_var in exec_prefix prefix |
---|
660 | do |
---|
661 | eval ac_val=$`echo $ac_var` |
---|
662 | case $ac_val in |
---|
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
665 | { (exit 1); exit 1; }; };; |
---|
666 | esac |
---|
667 | done |
---|
668 | |
---|
669 | # Be sure to have absolute paths. |
---|
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
671 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
672 | do |
---|
673 | eval ac_val=$`echo $ac_var` |
---|
674 | case $ac_val in |
---|
675 | [\\/$]* | ?:[\\/]* ) ;; |
---|
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
677 | { (exit 1); exit 1; }; };; |
---|
678 | esac |
---|
679 | done |
---|
680 | |
---|
681 | # There might be people who depend on the old broken behavior: `$host' |
---|
682 | # used to hold the argument of --host etc. |
---|
683 | # FIXME: To remove some day. |
---|
684 | build=$build_alias |
---|
685 | host=$host_alias |
---|
686 | target=$target_alias |
---|
687 | |
---|
688 | # FIXME: To remove some day. |
---|
689 | if test "x$host_alias" != x; then |
---|
690 | if test "x$build_alias" = x; then |
---|
691 | cross_compiling=maybe |
---|
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
694 | elif test "x$build_alias" != "x$host_alias"; then |
---|
695 | cross_compiling=yes |
---|
696 | fi |
---|
697 | fi |
---|
698 | |
---|
699 | ac_tool_prefix= |
---|
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
701 | |
---|
702 | test "$silent" = yes && exec 6>/dev/null |
---|
703 | |
---|
704 | |
---|
705 | # Find the source files, if location was not specified. |
---|
706 | if test -z "$srcdir"; then |
---|
707 | ac_srcdir_defaulted=yes |
---|
708 | # Try the directory containing this script, then its parent. |
---|
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
711 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
712 | X"$0" : 'X\(//\)$' \| \ |
---|
713 | X"$0" : 'X\(/\)' \| \ |
---|
714 | . : '\(.\)' 2>/dev/null || |
---|
715 | echo X"$0" | |
---|
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
718 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
719 | /^X\(\/\).*/{ s//\1/; q; } |
---|
720 | s/.*/./; q'` |
---|
721 | srcdir=$ac_confdir |
---|
722 | if test ! -r $srcdir/$ac_unique_file; then |
---|
723 | srcdir=.. |
---|
724 | fi |
---|
725 | else |
---|
726 | ac_srcdir_defaulted=no |
---|
727 | fi |
---|
728 | if test ! -r $srcdir/$ac_unique_file; then |
---|
729 | if test "$ac_srcdir_defaulted" = yes; then |
---|
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
731 | { (exit 1); exit 1; }; } |
---|
732 | else |
---|
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
734 | { (exit 1); exit 1; }; } |
---|
735 | fi |
---|
736 | fi |
---|
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
739 | { (exit 1); exit 1; }; } |
---|
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
741 | ac_env_build_alias_set=${build_alias+set} |
---|
742 | ac_env_build_alias_value=$build_alias |
---|
743 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
744 | ac_cv_env_build_alias_value=$build_alias |
---|
745 | ac_env_host_alias_set=${host_alias+set} |
---|
746 | ac_env_host_alias_value=$host_alias |
---|
747 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
748 | ac_cv_env_host_alias_value=$host_alias |
---|
749 | ac_env_target_alias_set=${target_alias+set} |
---|
750 | ac_env_target_alias_value=$target_alias |
---|
751 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
752 | ac_cv_env_target_alias_value=$target_alias |
---|
753 | ac_env_CC_set=${CC+set} |
---|
754 | ac_env_CC_value=$CC |
---|
755 | ac_cv_env_CC_set=${CC+set} |
---|
756 | ac_cv_env_CC_value=$CC |
---|
757 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
758 | ac_env_CFLAGS_value=$CFLAGS |
---|
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
760 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
762 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
769 | ac_env_CPP_set=${CPP+set} |
---|
770 | ac_env_CPP_value=$CPP |
---|
771 | ac_cv_env_CPP_set=${CPP+set} |
---|
772 | ac_cv_env_CPP_value=$CPP |
---|
773 | |
---|
774 | # |
---|
775 | # Report the --help message. |
---|
776 | # |
---|
777 | if test "$ac_init_help" = "long"; then |
---|
778 | # Omit some internal or obsolete options to make the list less imposing. |
---|
779 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
780 | cat <<_ACEOF |
---|
781 | \`configure' configures this package to adapt to many kinds of systems. |
---|
782 | |
---|
783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
784 | |
---|
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
787 | |
---|
788 | Defaults for the options are specified in brackets. |
---|
789 | |
---|
790 | Configuration: |
---|
791 | -h, --help display this help and exit |
---|
792 | --help=short display options specific to this package |
---|
793 | --help=recursive display the short help of all the included packages |
---|
794 | -V, --version display version information and exit |
---|
795 | -q, --quiet, --silent do not print \`checking...' messages |
---|
796 | --cache-file=FILE cache test results in FILE [disabled] |
---|
797 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
798 | -n, --no-create do not create output files |
---|
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
800 | |
---|
801 | _ACEOF |
---|
802 | |
---|
803 | cat <<_ACEOF |
---|
804 | Installation directories: |
---|
805 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
806 | [$ac_default_prefix] |
---|
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
808 | [PREFIX] |
---|
809 | |
---|
810 | By default, \`make install' will install all the files in |
---|
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
813 | for instance \`--prefix=\$HOME'. |
---|
814 | |
---|
815 | For better control, use the options below. |
---|
816 | |
---|
817 | Fine tuning of the installation directories: |
---|
818 | --bindir=DIR user executables [EPREFIX/bin] |
---|
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
825 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
826 | --includedir=DIR C header files [PREFIX/include] |
---|
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
828 | --infodir=DIR info documentation [PREFIX/info] |
---|
829 | --mandir=DIR man documentation [PREFIX/man] |
---|
830 | _ACEOF |
---|
831 | |
---|
832 | cat <<\_ACEOF |
---|
833 | |
---|
834 | System types: |
---|
835 | --build=BUILD configure for building on BUILD [guessed] |
---|
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
837 | _ACEOF |
---|
838 | fi |
---|
839 | |
---|
840 | if test -n "$ac_init_help"; then |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Optional Packages: |
---|
845 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
846 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
847 | --with-hesiod=PREFIX Use Hesiod lookup for ~ expansion |
---|
848 | |
---|
849 | Some influential environment variables: |
---|
850 | CC C compiler command |
---|
851 | CFLAGS C compiler flags |
---|
852 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
853 | nonstandard directory <lib dir> |
---|
854 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
855 | headers in a nonstandard directory <include dir> |
---|
856 | CPP C preprocessor |
---|
857 | |
---|
858 | Use these variables to override the choices made by `configure' or to help |
---|
859 | it to find libraries and programs with nonstandard names/locations. |
---|
860 | |
---|
861 | _ACEOF |
---|
862 | fi |
---|
863 | |
---|
864 | if test "$ac_init_help" = "recursive"; then |
---|
865 | # If there are subdirs, report their specific --help. |
---|
866 | ac_popdir=`pwd` |
---|
867 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
868 | test -d $ac_dir || continue |
---|
869 | ac_builddir=. |
---|
870 | |
---|
871 | if test "$ac_dir" != .; then |
---|
872 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
873 | # A "../" for each directory in $ac_dir_suffix. |
---|
874 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
875 | else |
---|
876 | ac_dir_suffix= ac_top_builddir= |
---|
877 | fi |
---|
878 | |
---|
879 | case $srcdir in |
---|
880 | .) # No --srcdir option. We are building in place. |
---|
881 | ac_srcdir=. |
---|
882 | if test -z "$ac_top_builddir"; then |
---|
883 | ac_top_srcdir=. |
---|
884 | else |
---|
885 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
886 | fi ;; |
---|
887 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
888 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
889 | ac_top_srcdir=$srcdir ;; |
---|
890 | *) # Relative path. |
---|
891 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
892 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
893 | esac |
---|
894 | |
---|
895 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
896 | # the directories may not exist. |
---|
897 | case `pwd` in |
---|
898 | .) ac_abs_builddir="$ac_dir";; |
---|
899 | *) |
---|
900 | case "$ac_dir" in |
---|
901 | .) ac_abs_builddir=`pwd`;; |
---|
902 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
903 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
904 | esac;; |
---|
905 | esac |
---|
906 | case $ac_abs_builddir in |
---|
907 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
908 | *) |
---|
909 | case ${ac_top_builddir}. in |
---|
910 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
911 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
912 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
913 | esac;; |
---|
914 | esac |
---|
915 | case $ac_abs_builddir in |
---|
916 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
917 | *) |
---|
918 | case $ac_srcdir in |
---|
919 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
920 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
921 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
922 | esac;; |
---|
923 | esac |
---|
924 | case $ac_abs_builddir in |
---|
925 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
926 | *) |
---|
927 | case $ac_top_srcdir in |
---|
928 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
929 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
930 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
931 | esac;; |
---|
932 | esac |
---|
933 | |
---|
934 | cd $ac_dir |
---|
935 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
936 | if test -f $ac_srcdir/configure.gnu; then |
---|
937 | echo |
---|
938 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
939 | elif test -f $ac_srcdir/configure; then |
---|
940 | echo |
---|
941 | $SHELL $ac_srcdir/configure --help=recursive |
---|
942 | elif test -f $ac_srcdir/configure.ac || |
---|
943 | test -f $ac_srcdir/configure.in; then |
---|
944 | echo |
---|
945 | $ac_configure --help |
---|
946 | else |
---|
947 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
948 | fi |
---|
949 | cd $ac_popdir |
---|
950 | done |
---|
951 | fi |
---|
952 | |
---|
953 | test -n "$ac_init_help" && exit 0 |
---|
954 | if $ac_init_version; then |
---|
955 | cat <<\_ACEOF |
---|
956 | |
---|
957 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
958 | This configure script is free software; the Free Software Foundation |
---|
959 | gives unlimited permission to copy, distribute and modify it. |
---|
960 | _ACEOF |
---|
961 | exit 0 |
---|
962 | fi |
---|
963 | exec 5>config.log |
---|
964 | cat >&5 <<_ACEOF |
---|
965 | This file contains any messages produced by compilers while |
---|
966 | running configure, to aid debugging if configure makes a mistake. |
---|
967 | |
---|
968 | It was created by $as_me, which was |
---|
969 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
970 | |
---|
971 | $ $0 $@ |
---|
972 | |
---|
973 | _ACEOF |
---|
974 | { |
---|
975 | cat <<_ASUNAME |
---|
976 | ## --------- ## |
---|
977 | ## Platform. ## |
---|
978 | ## --------- ## |
---|
979 | |
---|
980 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
981 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
982 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
983 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
984 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
985 | |
---|
986 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
987 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
988 | |
---|
989 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
990 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
991 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
992 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
993 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
994 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
995 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
996 | |
---|
997 | _ASUNAME |
---|
998 | |
---|
999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1000 | for as_dir in $PATH |
---|
1001 | do |
---|
1002 | IFS=$as_save_IFS |
---|
1003 | test -z "$as_dir" && as_dir=. |
---|
1004 | echo "PATH: $as_dir" |
---|
1005 | done |
---|
1006 | |
---|
1007 | } >&5 |
---|
1008 | |
---|
1009 | cat >&5 <<_ACEOF |
---|
1010 | |
---|
1011 | |
---|
1012 | ## ----------- ## |
---|
1013 | ## Core tests. ## |
---|
1014 | ## ----------- ## |
---|
1015 | |
---|
1016 | _ACEOF |
---|
1017 | |
---|
1018 | |
---|
1019 | # Keep a trace of the command line. |
---|
1020 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1021 | # Strip out --silent because we don't want to record it for future runs. |
---|
1022 | # Also quote any args containing shell meta-characters. |
---|
1023 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1024 | ac_configure_args= |
---|
1025 | ac_configure_args0= |
---|
1026 | ac_configure_args1= |
---|
1027 | ac_sep= |
---|
1028 | ac_must_keep_next=false |
---|
1029 | for ac_pass in 1 2 |
---|
1030 | do |
---|
1031 | for ac_arg |
---|
1032 | do |
---|
1033 | case $ac_arg in |
---|
1034 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1035 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1036 | | -silent | --silent | --silen | --sile | --sil) |
---|
1037 | continue ;; |
---|
1038 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1039 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1040 | esac |
---|
1041 | case $ac_pass in |
---|
1042 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1043 | 2) |
---|
1044 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1045 | if test $ac_must_keep_next = true; then |
---|
1046 | ac_must_keep_next=false # Got value, back to normal. |
---|
1047 | else |
---|
1048 | case $ac_arg in |
---|
1049 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1050 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1051 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1052 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1053 | case "$ac_configure_args0 " in |
---|
1054 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1055 | esac |
---|
1056 | ;; |
---|
1057 | -* ) ac_must_keep_next=true ;; |
---|
1058 | esac |
---|
1059 | fi |
---|
1060 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1061 | # Get rid of the leading space. |
---|
1062 | ac_sep=" " |
---|
1063 | ;; |
---|
1064 | esac |
---|
1065 | done |
---|
1066 | done |
---|
1067 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1068 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1069 | |
---|
1070 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1071 | # config.log. We remove comments because anyway the quotes in there |
---|
1072 | # would cause problems or look ugly. |
---|
1073 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1074 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1075 | trap 'exit_status=$? |
---|
1076 | # Save into config.log some information that might help in debugging. |
---|
1077 | { |
---|
1078 | echo |
---|
1079 | |
---|
1080 | cat <<\_ASBOX |
---|
1081 | ## ---------------- ## |
---|
1082 | ## Cache variables. ## |
---|
1083 | ## ---------------- ## |
---|
1084 | _ASBOX |
---|
1085 | echo |
---|
1086 | # The following way of writing the cache mishandles newlines in values, |
---|
1087 | { |
---|
1088 | (set) 2>&1 | |
---|
1089 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1090 | *ac_space=\ *) |
---|
1091 | sed -n \ |
---|
1092 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1093 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1094 | ;; |
---|
1095 | *) |
---|
1096 | sed -n \ |
---|
1097 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1098 | ;; |
---|
1099 | esac; |
---|
1100 | } |
---|
1101 | echo |
---|
1102 | |
---|
1103 | cat <<\_ASBOX |
---|
1104 | ## ----------------- ## |
---|
1105 | ## Output variables. ## |
---|
1106 | ## ----------------- ## |
---|
1107 | _ASBOX |
---|
1108 | echo |
---|
1109 | for ac_var in $ac_subst_vars |
---|
1110 | do |
---|
1111 | eval ac_val=$`echo $ac_var` |
---|
1112 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1113 | done | sort |
---|
1114 | echo |
---|
1115 | |
---|
1116 | if test -n "$ac_subst_files"; then |
---|
1117 | cat <<\_ASBOX |
---|
1118 | ## ------------- ## |
---|
1119 | ## Output files. ## |
---|
1120 | ## ------------- ## |
---|
1121 | _ASBOX |
---|
1122 | echo |
---|
1123 | for ac_var in $ac_subst_files |
---|
1124 | do |
---|
1125 | eval ac_val=$`echo $ac_var` |
---|
1126 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1127 | done | sort |
---|
1128 | echo |
---|
1129 | fi |
---|
1130 | |
---|
1131 | if test -s confdefs.h; then |
---|
1132 | cat <<\_ASBOX |
---|
1133 | ## ----------- ## |
---|
1134 | ## confdefs.h. ## |
---|
1135 | ## ----------- ## |
---|
1136 | _ASBOX |
---|
1137 | echo |
---|
1138 | sed "/^$/d" confdefs.h | sort |
---|
1139 | echo |
---|
1140 | fi |
---|
1141 | test "$ac_signal" != 0 && |
---|
1142 | echo "$as_me: caught signal $ac_signal" |
---|
1143 | echo "$as_me: exit $exit_status" |
---|
1144 | } >&5 |
---|
1145 | rm -f core *.core && |
---|
1146 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1147 | exit $exit_status |
---|
1148 | ' 0 |
---|
1149 | for ac_signal in 1 2 13 15; do |
---|
1150 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1151 | done |
---|
1152 | ac_signal=0 |
---|
1153 | |
---|
1154 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1155 | rm -rf conftest* confdefs.h |
---|
1156 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1157 | echo >confdefs.h |
---|
1158 | |
---|
1159 | # Predefined preprocessor variables. |
---|
1160 | |
---|
1161 | cat >>confdefs.h <<_ACEOF |
---|
1162 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1163 | _ACEOF |
---|
1164 | |
---|
1165 | |
---|
1166 | cat >>confdefs.h <<_ACEOF |
---|
1167 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1168 | _ACEOF |
---|
1169 | |
---|
1170 | |
---|
1171 | cat >>confdefs.h <<_ACEOF |
---|
1172 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1173 | _ACEOF |
---|
1174 | |
---|
1175 | |
---|
1176 | cat >>confdefs.h <<_ACEOF |
---|
1177 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1178 | _ACEOF |
---|
1179 | |
---|
1180 | |
---|
1181 | cat >>confdefs.h <<_ACEOF |
---|
1182 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1183 | _ACEOF |
---|
1184 | |
---|
1185 | |
---|
1186 | # Let the site file select an alternate cache file if it wants to. |
---|
1187 | # Prefer explicitly selected file to automatically selected ones. |
---|
1188 | if test -z "$CONFIG_SITE"; then |
---|
1189 | if test "x$prefix" != xNONE; then |
---|
1190 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1191 | else |
---|
1192 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1193 | fi |
---|
1194 | fi |
---|
1195 | for ac_site_file in $CONFIG_SITE; do |
---|
1196 | if test -r "$ac_site_file"; then |
---|
1197 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1198 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1199 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1200 | . "$ac_site_file" |
---|
1201 | fi |
---|
1202 | done |
---|
1203 | |
---|
1204 | if test -r "$cache_file"; then |
---|
1205 | # Some versions of bash will fail to source /dev/null (special |
---|
1206 | # files actually), so we avoid doing that. |
---|
1207 | if test -f "$cache_file"; then |
---|
1208 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1209 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1210 | case $cache_file in |
---|
1211 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1212 | *) . ./$cache_file;; |
---|
1213 | esac |
---|
1214 | fi |
---|
1215 | else |
---|
1216 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1217 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1218 | >$cache_file |
---|
1219 | fi |
---|
1220 | |
---|
1221 | # Check that the precious variables saved in the cache have kept the same |
---|
1222 | # value. |
---|
1223 | ac_cache_corrupted=false |
---|
1224 | for ac_var in `(set) 2>&1 | |
---|
1225 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1226 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1227 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1228 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1229 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1230 | case $ac_old_set,$ac_new_set in |
---|
1231 | set,) |
---|
1232 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1233 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1234 | ac_cache_corrupted=: ;; |
---|
1235 | ,set) |
---|
1236 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1237 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1238 | ac_cache_corrupted=: ;; |
---|
1239 | ,);; |
---|
1240 | *) |
---|
1241 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1242 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1243 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1244 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1245 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1246 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1247 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1248 | ac_cache_corrupted=: |
---|
1249 | fi;; |
---|
1250 | esac |
---|
1251 | # Pass precious variables to config.status. |
---|
1252 | if test "$ac_new_set" = set; then |
---|
1253 | case $ac_new_val in |
---|
1254 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1255 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1256 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1257 | esac |
---|
1258 | case " $ac_configure_args " in |
---|
1259 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1260 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1261 | esac |
---|
1262 | fi |
---|
1263 | done |
---|
1264 | if $ac_cache_corrupted; then |
---|
1265 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1266 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1267 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1268 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1269 | { (exit 1); exit 1; }; } |
---|
1270 | fi |
---|
1271 | |
---|
1272 | ac_ext=c |
---|
1273 | ac_cpp='$CPP $CPPFLAGS' |
---|
1274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1277 | |
---|
1278 | |
---|
1279 | |
---|
1280 | |
---|
1281 | |
---|
1282 | |
---|
1283 | |
---|
1284 | |
---|
1285 | |
---|
1286 | |
---|
1287 | |
---|
1288 | |
---|
1289 | |
---|
1290 | |
---|
1291 | |
---|
1292 | |
---|
1293 | |
---|
1294 | |
---|
1295 | |
---|
1296 | |
---|
1297 | ac_config_headers="$ac_config_headers config.h" |
---|
1298 | |
---|
1299 | |
---|
1300 | ac_aux_dir= |
---|
1301 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1302 | if test -f $ac_dir/install-sh; then |
---|
1303 | ac_aux_dir=$ac_dir |
---|
1304 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1305 | break |
---|
1306 | elif test -f $ac_dir/install.sh; then |
---|
1307 | ac_aux_dir=$ac_dir |
---|
1308 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1309 | break |
---|
1310 | elif test -f $ac_dir/shtool; then |
---|
1311 | ac_aux_dir=$ac_dir |
---|
1312 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1313 | break |
---|
1314 | fi |
---|
1315 | done |
---|
1316 | if test -z "$ac_aux_dir"; then |
---|
1317 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1318 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1319 | { (exit 1); exit 1; }; } |
---|
1320 | fi |
---|
1321 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1322 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1323 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1324 | |
---|
1325 | # Make sure we can run config.sub. |
---|
1326 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1327 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1328 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1329 | { (exit 1); exit 1; }; } |
---|
1330 | |
---|
1331 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1332 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1333 | if test "${ac_cv_build+set}" = set; then |
---|
1334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1335 | else |
---|
1336 | ac_cv_build_alias=$build_alias |
---|
1337 | test -z "$ac_cv_build_alias" && |
---|
1338 | ac_cv_build_alias=`$ac_config_guess` |
---|
1339 | test -z "$ac_cv_build_alias" && |
---|
1340 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1341 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1342 | { (exit 1); exit 1; }; } |
---|
1343 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1344 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1345 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1346 | { (exit 1); exit 1; }; } |
---|
1347 | |
---|
1348 | fi |
---|
1349 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1350 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1351 | build=$ac_cv_build |
---|
1352 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1353 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1354 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1355 | |
---|
1356 | |
---|
1357 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1358 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1359 | if test "${ac_cv_host+set}" = set; then |
---|
1360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1361 | else |
---|
1362 | ac_cv_host_alias=$host_alias |
---|
1363 | test -z "$ac_cv_host_alias" && |
---|
1364 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1365 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1366 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1367 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1368 | { (exit 1); exit 1; }; } |
---|
1369 | |
---|
1370 | fi |
---|
1371 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1372 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1373 | host=$ac_cv_host |
---|
1374 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1375 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1376 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1377 | |
---|
1378 | |
---|
1379 | |
---|
1380 | echo "$as_me:$LINENO: checking cached host tuple" >&5 |
---|
1381 | echo $ECHO_N "checking cached host tuple... $ECHO_C" >&6 |
---|
1382 | if { test x"${ac_cv_host_system_type+set}" = x"set" && |
---|
1383 | test x"$ac_cv_host_system_type" != x"$host"; }; then |
---|
1384 | echo "$as_me:$LINENO: result: different" >&5 |
---|
1385 | echo "${ECHO_T}different" >&6 |
---|
1386 | { { echo "$as_me:$LINENO: error: remove config.cache and re-run configure" >&5 |
---|
1387 | echo "$as_me: error: remove config.cache and re-run configure" >&2;} |
---|
1388 | { (exit 1); exit 1; }; } |
---|
1389 | else |
---|
1390 | echo "$as_me:$LINENO: result: ok" >&5 |
---|
1391 | echo "${ECHO_T}ok" >&6 |
---|
1392 | fi |
---|
1393 | ac_cv_host_system_type="$host" |
---|
1394 | |
---|
1395 | |
---|
1396 | |
---|
1397 | case "${host}" in |
---|
1398 | |
---|
1399 | ## Alpha (DEC) machines. |
---|
1400 | alpha*-dec-osf* ) |
---|
1401 | tcsh_config_file=decosf1 |
---|
1402 | ;; |
---|
1403 | |
---|
1404 | ## Ultrix |
---|
1405 | *-dec-ultrix* ) |
---|
1406 | tcsh_config_file=ultrix |
---|
1407 | ;; |
---|
1408 | |
---|
1409 | ## DGUX |
---|
1410 | *-dg-dguxR4* ) |
---|
1411 | tcsh_config_file=dgux5.4 |
---|
1412 | ;; |
---|
1413 | m88k-dg-dgux5.4R* ) |
---|
1414 | tcsh_config_file=dgux5.4 |
---|
1415 | ;; |
---|
1416 | |
---|
1417 | ## HP/UX |
---|
1418 | *-hp-hpux7* ) |
---|
1419 | tcsh_config_file=hpux7 |
---|
1420 | ;; |
---|
1421 | *-hp-hpux[89]* ) |
---|
1422 | tcsh_config_file=hpux8 |
---|
1423 | ;; |
---|
1424 | *-hp-hpux1[0-9]* ) |
---|
1425 | tcsh_config_file=hpux11 |
---|
1426 | ;; |
---|
1427 | |
---|
1428 | ## IBM AIX systems |
---|
1429 | *-ibm-aix*) |
---|
1430 | tcsh_config_file=aix |
---|
1431 | ;; |
---|
1432 | |
---|
1433 | ## SX-4 |
---|
1434 | sx4-nec-*) |
---|
1435 | CC='cc -h0,ansi,novector,float0' |
---|
1436 | LDFLAGS='-Gsmall' |
---|
1437 | tcsh_config_file=superux8 |
---|
1438 | ;; |
---|
1439 | |
---|
1440 | ## IBM OS/390 systems |
---|
1441 | *-ibm-os390*) |
---|
1442 | CC='c89' |
---|
1443 | tcsh_config_file=os390 |
---|
1444 | ;; |
---|
1445 | |
---|
1446 | ## Linux |
---|
1447 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) |
---|
1448 | tcsh_config_file=linux |
---|
1449 | ;; |
---|
1450 | |
---|
1451 | ## Motorola systems |
---|
1452 | m68k-motorola-sysv* ) |
---|
1453 | tcsh_config_file=sysV68 |
---|
1454 | ;; |
---|
1455 | m88k-motorola-sysv3* ) |
---|
1456 | tcsh_config_file=sysV88 |
---|
1457 | ;; |
---|
1458 | |
---|
1459 | ## NetBSD systems |
---|
1460 | *-*-netbsd*) |
---|
1461 | tcsh_config_file=bsd4.4 |
---|
1462 | ;; |
---|
1463 | |
---|
1464 | ## FreeBSD systems |
---|
1465 | *-*-freebsd*) |
---|
1466 | tcsh_config_file=bsd4.4 |
---|
1467 | ;; |
---|
1468 | |
---|
1469 | ## OpenBSD systems |
---|
1470 | *-*-openbsd*) |
---|
1471 | tcsh_config_file=bsd4.4 |
---|
1472 | ;; |
---|
1473 | |
---|
1474 | ## BSDI systems |
---|
1475 | *-*-bsdi*) |
---|
1476 | tcsh_config_file=bsd4.4 |
---|
1477 | ;; |
---|
1478 | |
---|
1479 | ## Mac OS X Server |
---|
1480 | *-*-rhapsody* ) |
---|
1481 | tcsh_config_file=bsd4.4 |
---|
1482 | ;; |
---|
1483 | |
---|
1484 | ## Mac OS X Server |
---|
1485 | *-*-darwin* ) |
---|
1486 | tcsh_config_file=bsd4.4 |
---|
1487 | ;; |
---|
1488 | |
---|
1489 | ## Silicon Graphics machines |
---|
1490 | *-sgi-iri* ) |
---|
1491 | tcsh_config_file=irix |
---|
1492 | case "${host_os}" in |
---|
1493 | irix[34]*) # Irix-3.x - Irix 4.x |
---|
1494 | NON_GNU_DFLAGS='-D__STDC__' |
---|
1495 | LIBS='-lsun -lbsd -lc_s' |
---|
1496 | ;; |
---|
1497 | irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1 |
---|
1498 | LIBS='-lbsd' |
---|
1499 | ;; |
---|
1500 | irix6.[2-9]*) # Irix 6.2 and later |
---|
1501 | tcsh_config_file=irix62 |
---|
1502 | ;; |
---|
1503 | esac |
---|
1504 | ;; |
---|
1505 | |
---|
1506 | ## Suns |
---|
1507 | *-sun-sunos3* ) |
---|
1508 | tcsh_config_file=sunos35 |
---|
1509 | ;; |
---|
1510 | *-sun-sunos4.0* ) |
---|
1511 | tcsh_config_file=sunos40 |
---|
1512 | ;; |
---|
1513 | *-sun-sunos4.1.[12]* ) |
---|
1514 | tcsh_config_file=sunos41 |
---|
1515 | ;; |
---|
1516 | *-sun-sunos4.1.[3456]* ) |
---|
1517 | tcsh_config_file=sunos413 |
---|
1518 | ;; |
---|
1519 | *-*-solaris2.[01]* ) # Should handle sparc or x86 |
---|
1520 | tcsh_config_file=sol2 |
---|
1521 | ;; |
---|
1522 | *-sun-solaris2.2* ) # Sparc only release |
---|
1523 | tcsh_config_file=sol22 |
---|
1524 | ;; |
---|
1525 | *-sun-solaris2.3* ) # Sparc only release |
---|
1526 | tcsh_config_file=sol23 |
---|
1527 | ;; |
---|
1528 | *-*-solaris2.[45]* ) # Should handle sparc, x86 and powerpc |
---|
1529 | tcsh_config_file=sol24 |
---|
1530 | ;; |
---|
1531 | *-*-solaris2.* ) # Should handle sparc, x86 and powerpc |
---|
1532 | tcsh_config_file=sol26 |
---|
1533 | ;; |
---|
1534 | |
---|
1535 | ## Dell SVR4 |
---|
1536 | *-dell-sysv4* ) |
---|
1537 | tcsh_config_file=sysv4 |
---|
1538 | DFLAGS="$DFLAGS -DDELL" |
---|
1539 | ;; |
---|
1540 | |
---|
1541 | ## SVR4 (Generic and otherwise) |
---|
1542 | *-*-sysv4* ) |
---|
1543 | tcsh_config_file=sysv4 |
---|
1544 | ;; |
---|
1545 | |
---|
1546 | ## Tektronix systems |
---|
1547 | m68k-tektronix-bsd* ) |
---|
1548 | tcsh_config_file=bsd |
---|
1549 | NON_GNU_DFLAGS='-DBSD -DUTek' |
---|
1550 | ;; |
---|
1551 | m88k-tektronix-sysv3* ) |
---|
1552 | tcsh_config_file=tekXD88 |
---|
1553 | ;; |
---|
1554 | |
---|
1555 | ## SCO |
---|
1556 | *-sco3.2v5*) |
---|
1557 | tcsh_config_file=sco32v5 |
---|
1558 | ;; |
---|
1559 | *-sco3.2v4*) |
---|
1560 | tcsh_config_file=sco32v4 |
---|
1561 | ;; |
---|
1562 | *-sco3.2v2*) |
---|
1563 | tcsh_config_file=sco32v2 |
---|
1564 | ;; |
---|
1565 | |
---|
1566 | ## Siemens BS2000 Mainframe |
---|
1567 | bs2000-siemens-*) |
---|
1568 | tcsh_config_file=bs2000 |
---|
1569 | ;; |
---|
1570 | |
---|
1571 | ## Convex |
---|
1572 | *-convex*) |
---|
1573 | tcsh_config_file=convex |
---|
1574 | ;; |
---|
1575 | |
---|
1576 | ## Cray |
---|
1577 | *-cray-unicos*) |
---|
1578 | tcsh_config_file=cray |
---|
1579 | ;; |
---|
1580 | |
---|
1581 | ## Red Hat Cygwin |
---|
1582 | *-cygwin) |
---|
1583 | tcsh_config_file=cygwin32 |
---|
1584 | ;; |
---|
1585 | |
---|
1586 | ## mips-compaq-nonstopux |
---|
1587 | *-*-nonstopux) |
---|
1588 | tcsh_config_file=sysv4 |
---|
1589 | ;; |
---|
1590 | |
---|
1591 | ## Apollo Domain/OS |
---|
1592 | *-apollo-*) |
---|
1593 | tcsh_config_file=apollo |
---|
1594 | ;; |
---|
1595 | |
---|
1596 | * ) |
---|
1597 | { { echo "$as_me:$LINENO: error: Tcsh can't guess the configuration file name |
---|
1598 | for \`${host}' systems. |
---|
1599 | Check tcsh's \`Ported' file for manual configuration instructions." >&5 |
---|
1600 | echo "$as_me: error: Tcsh can't guess the configuration file name |
---|
1601 | for \`${host}' systems. |
---|
1602 | Check tcsh's \`Ported' file for manual configuration instructions." >&2;} |
---|
1603 | { (exit 1); exit 1; }; } |
---|
1604 | ;; |
---|
1605 | |
---|
1606 | esac |
---|
1607 | |
---|
1608 | echo "Tcsh will use configuration file \`$tcsh_config_file'." |
---|
1609 | cp ${srcdir}/config/${tcsh_config_file} config_p.h |
---|
1610 | |
---|
1611 | |
---|
1612 | |
---|
1613 | ac_ext=c |
---|
1614 | ac_cpp='$CPP $CPPFLAGS' |
---|
1615 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1616 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1617 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1618 | if test -n "$ac_tool_prefix"; then |
---|
1619 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1620 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1623 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1625 | else |
---|
1626 | if test -n "$CC"; then |
---|
1627 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1628 | else |
---|
1629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1630 | for as_dir in $PATH |
---|
1631 | do |
---|
1632 | IFS=$as_save_IFS |
---|
1633 | test -z "$as_dir" && as_dir=. |
---|
1634 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1636 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1638 | break 2 |
---|
1639 | fi |
---|
1640 | done |
---|
1641 | done |
---|
1642 | |
---|
1643 | fi |
---|
1644 | fi |
---|
1645 | CC=$ac_cv_prog_CC |
---|
1646 | if test -n "$CC"; then |
---|
1647 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1648 | echo "${ECHO_T}$CC" >&6 |
---|
1649 | else |
---|
1650 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1651 | echo "${ECHO_T}no" >&6 |
---|
1652 | fi |
---|
1653 | |
---|
1654 | fi |
---|
1655 | if test -z "$ac_cv_prog_CC"; then |
---|
1656 | ac_ct_CC=$CC |
---|
1657 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1658 | set dummy gcc; ac_word=$2 |
---|
1659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1661 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1663 | else |
---|
1664 | if test -n "$ac_ct_CC"; then |
---|
1665 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1666 | else |
---|
1667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1668 | for as_dir in $PATH |
---|
1669 | do |
---|
1670 | IFS=$as_save_IFS |
---|
1671 | test -z "$as_dir" && as_dir=. |
---|
1672 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1674 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1676 | break 2 |
---|
1677 | fi |
---|
1678 | done |
---|
1679 | done |
---|
1680 | |
---|
1681 | fi |
---|
1682 | fi |
---|
1683 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1684 | if test -n "$ac_ct_CC"; then |
---|
1685 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1686 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1687 | else |
---|
1688 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1689 | echo "${ECHO_T}no" >&6 |
---|
1690 | fi |
---|
1691 | |
---|
1692 | CC=$ac_ct_CC |
---|
1693 | else |
---|
1694 | CC="$ac_cv_prog_CC" |
---|
1695 | fi |
---|
1696 | |
---|
1697 | if test -z "$CC"; then |
---|
1698 | if test -n "$ac_tool_prefix"; then |
---|
1699 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1700 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1701 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1703 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1705 | else |
---|
1706 | if test -n "$CC"; then |
---|
1707 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1708 | else |
---|
1709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1710 | for as_dir in $PATH |
---|
1711 | do |
---|
1712 | IFS=$as_save_IFS |
---|
1713 | test -z "$as_dir" && as_dir=. |
---|
1714 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1716 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1718 | break 2 |
---|
1719 | fi |
---|
1720 | done |
---|
1721 | done |
---|
1722 | |
---|
1723 | fi |
---|
1724 | fi |
---|
1725 | CC=$ac_cv_prog_CC |
---|
1726 | if test -n "$CC"; then |
---|
1727 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1728 | echo "${ECHO_T}$CC" >&6 |
---|
1729 | else |
---|
1730 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1731 | echo "${ECHO_T}no" >&6 |
---|
1732 | fi |
---|
1733 | |
---|
1734 | fi |
---|
1735 | if test -z "$ac_cv_prog_CC"; then |
---|
1736 | ac_ct_CC=$CC |
---|
1737 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1738 | set dummy cc; ac_word=$2 |
---|
1739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1741 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1743 | else |
---|
1744 | if test -n "$ac_ct_CC"; then |
---|
1745 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1746 | else |
---|
1747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1748 | for as_dir in $PATH |
---|
1749 | do |
---|
1750 | IFS=$as_save_IFS |
---|
1751 | test -z "$as_dir" && as_dir=. |
---|
1752 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1753 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1754 | ac_cv_prog_ac_ct_CC="cc" |
---|
1755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1756 | break 2 |
---|
1757 | fi |
---|
1758 | done |
---|
1759 | done |
---|
1760 | |
---|
1761 | fi |
---|
1762 | fi |
---|
1763 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1764 | if test -n "$ac_ct_CC"; then |
---|
1765 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1766 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1767 | else |
---|
1768 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1769 | echo "${ECHO_T}no" >&6 |
---|
1770 | fi |
---|
1771 | |
---|
1772 | CC=$ac_ct_CC |
---|
1773 | else |
---|
1774 | CC="$ac_cv_prog_CC" |
---|
1775 | fi |
---|
1776 | |
---|
1777 | fi |
---|
1778 | if test -z "$CC"; then |
---|
1779 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1780 | set dummy cc; ac_word=$2 |
---|
1781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1783 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1785 | else |
---|
1786 | if test -n "$CC"; then |
---|
1787 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1788 | else |
---|
1789 | ac_prog_rejected=no |
---|
1790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1791 | for as_dir in $PATH |
---|
1792 | do |
---|
1793 | IFS=$as_save_IFS |
---|
1794 | test -z "$as_dir" && as_dir=. |
---|
1795 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1797 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1798 | ac_prog_rejected=yes |
---|
1799 | continue |
---|
1800 | fi |
---|
1801 | ac_cv_prog_CC="cc" |
---|
1802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1803 | break 2 |
---|
1804 | fi |
---|
1805 | done |
---|
1806 | done |
---|
1807 | |
---|
1808 | if test $ac_prog_rejected = yes; then |
---|
1809 | # We found a bogon in the path, so make sure we never use it. |
---|
1810 | set dummy $ac_cv_prog_CC |
---|
1811 | shift |
---|
1812 | if test $# != 0; then |
---|
1813 | # We chose a different compiler from the bogus one. |
---|
1814 | # However, it has the same basename, so the bogon will be chosen |
---|
1815 | # first if we set CC to just the basename; use the full file name. |
---|
1816 | shift |
---|
1817 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
1818 | fi |
---|
1819 | fi |
---|
1820 | fi |
---|
1821 | fi |
---|
1822 | CC=$ac_cv_prog_CC |
---|
1823 | if test -n "$CC"; then |
---|
1824 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1825 | echo "${ECHO_T}$CC" >&6 |
---|
1826 | else |
---|
1827 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1828 | echo "${ECHO_T}no" >&6 |
---|
1829 | fi |
---|
1830 | |
---|
1831 | fi |
---|
1832 | if test -z "$CC"; then |
---|
1833 | if test -n "$ac_tool_prefix"; then |
---|
1834 | for ac_prog in cl |
---|
1835 | do |
---|
1836 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1837 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1840 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1842 | else |
---|
1843 | if test -n "$CC"; then |
---|
1844 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1845 | else |
---|
1846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1847 | for as_dir in $PATH |
---|
1848 | do |
---|
1849 | IFS=$as_save_IFS |
---|
1850 | test -z "$as_dir" && as_dir=. |
---|
1851 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1852 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1853 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1855 | break 2 |
---|
1856 | fi |
---|
1857 | done |
---|
1858 | done |
---|
1859 | |
---|
1860 | fi |
---|
1861 | fi |
---|
1862 | CC=$ac_cv_prog_CC |
---|
1863 | if test -n "$CC"; then |
---|
1864 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1865 | echo "${ECHO_T}$CC" >&6 |
---|
1866 | else |
---|
1867 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1868 | echo "${ECHO_T}no" >&6 |
---|
1869 | fi |
---|
1870 | |
---|
1871 | test -n "$CC" && break |
---|
1872 | done |
---|
1873 | fi |
---|
1874 | if test -z "$CC"; then |
---|
1875 | ac_ct_CC=$CC |
---|
1876 | for ac_prog in cl |
---|
1877 | do |
---|
1878 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1879 | set dummy $ac_prog; ac_word=$2 |
---|
1880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1882 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1884 | else |
---|
1885 | if test -n "$ac_ct_CC"; then |
---|
1886 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1887 | else |
---|
1888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1889 | for as_dir in $PATH |
---|
1890 | do |
---|
1891 | IFS=$as_save_IFS |
---|
1892 | test -z "$as_dir" && as_dir=. |
---|
1893 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1895 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1897 | break 2 |
---|
1898 | fi |
---|
1899 | done |
---|
1900 | done |
---|
1901 | |
---|
1902 | fi |
---|
1903 | fi |
---|
1904 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1905 | if test -n "$ac_ct_CC"; then |
---|
1906 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1907 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1908 | else |
---|
1909 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1910 | echo "${ECHO_T}no" >&6 |
---|
1911 | fi |
---|
1912 | |
---|
1913 | test -n "$ac_ct_CC" && break |
---|
1914 | done |
---|
1915 | |
---|
1916 | CC=$ac_ct_CC |
---|
1917 | fi |
---|
1918 | |
---|
1919 | fi |
---|
1920 | |
---|
1921 | |
---|
1922 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
1923 | See \`config.log' for more details." >&5 |
---|
1924 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
1925 | See \`config.log' for more details." >&2;} |
---|
1926 | { (exit 1); exit 1; }; } |
---|
1927 | |
---|
1928 | # Provide some information about the compiler. |
---|
1929 | echo "$as_me:$LINENO:" \ |
---|
1930 | "checking for C compiler version" >&5 |
---|
1931 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1932 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1933 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1934 | ac_status=$? |
---|
1935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1936 | (exit $ac_status); } |
---|
1937 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1938 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1939 | ac_status=$? |
---|
1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1941 | (exit $ac_status); } |
---|
1942 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1943 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1944 | ac_status=$? |
---|
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1946 | (exit $ac_status); } |
---|
1947 | |
---|
1948 | cat >conftest.$ac_ext <<_ACEOF |
---|
1949 | /* confdefs.h. */ |
---|
1950 | _ACEOF |
---|
1951 | cat confdefs.h >>conftest.$ac_ext |
---|
1952 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1953 | /* end confdefs.h. */ |
---|
1954 | |
---|
1955 | int |
---|
1956 | main () |
---|
1957 | { |
---|
1958 | |
---|
1959 | ; |
---|
1960 | return 0; |
---|
1961 | } |
---|
1962 | _ACEOF |
---|
1963 | ac_clean_files_save=$ac_clean_files |
---|
1964 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1965 | # Try to create an executable without -o first, disregard a.out. |
---|
1966 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1967 | # of exeext. |
---|
1968 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
1969 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
1970 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1971 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1972 | (eval $ac_link_default) 2>&5 |
---|
1973 | ac_status=$? |
---|
1974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1975 | (exit $ac_status); }; then |
---|
1976 | # Find the output, starting from the most likely. This scheme is |
---|
1977 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1978 | # resort. |
---|
1979 | |
---|
1980 | # Be careful to initialize this variable, since it used to be cached. |
---|
1981 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1982 | ac_cv_exeext= |
---|
1983 | # b.out is created by i960 compilers. |
---|
1984 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1985 | do |
---|
1986 | test -f "$ac_file" || continue |
---|
1987 | case $ac_file in |
---|
1988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1989 | ;; |
---|
1990 | conftest.$ac_ext ) |
---|
1991 | # This is the source file. |
---|
1992 | ;; |
---|
1993 | [ab].out ) |
---|
1994 | # We found the default executable, but exeext='' is most |
---|
1995 | # certainly right. |
---|
1996 | break;; |
---|
1997 | *.* ) |
---|
1998 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1999 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2000 | # but it would be cool to find out if it's true. Does anybody |
---|
2001 | # maintain Libtool? --akim. |
---|
2002 | export ac_cv_exeext |
---|
2003 | break;; |
---|
2004 | * ) |
---|
2005 | break;; |
---|
2006 | esac |
---|
2007 | done |
---|
2008 | else |
---|
2009 | echo "$as_me: failed program was:" >&5 |
---|
2010 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2011 | |
---|
2012 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2013 | See \`config.log' for more details." >&5 |
---|
2014 | echo "$as_me: error: C compiler cannot create executables |
---|
2015 | See \`config.log' for more details." >&2;} |
---|
2016 | { (exit 77); exit 77; }; } |
---|
2017 | fi |
---|
2018 | |
---|
2019 | ac_exeext=$ac_cv_exeext |
---|
2020 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2021 | echo "${ECHO_T}$ac_file" >&6 |
---|
2022 | |
---|
2023 | # Check the compiler produces executables we can run. If not, either |
---|
2024 | # the compiler is broken, or we cross compile. |
---|
2025 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2026 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2027 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2028 | # If not cross compiling, check that we can run a simple program. |
---|
2029 | if test "$cross_compiling" != yes; then |
---|
2030 | if { ac_try='./$ac_file' |
---|
2031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2032 | (eval $ac_try) 2>&5 |
---|
2033 | ac_status=$? |
---|
2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2035 | (exit $ac_status); }; }; then |
---|
2036 | cross_compiling=no |
---|
2037 | else |
---|
2038 | if test "$cross_compiling" = maybe; then |
---|
2039 | cross_compiling=yes |
---|
2040 | else |
---|
2041 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2042 | If you meant to cross compile, use \`--host'. |
---|
2043 | See \`config.log' for more details." >&5 |
---|
2044 | echo "$as_me: error: cannot run C compiled programs. |
---|
2045 | If you meant to cross compile, use \`--host'. |
---|
2046 | See \`config.log' for more details." >&2;} |
---|
2047 | { (exit 1); exit 1; }; } |
---|
2048 | fi |
---|
2049 | fi |
---|
2050 | fi |
---|
2051 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2052 | echo "${ECHO_T}yes" >&6 |
---|
2053 | |
---|
2054 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2055 | ac_clean_files=$ac_clean_files_save |
---|
2056 | # Check the compiler produces executables we can run. If not, either |
---|
2057 | # the compiler is broken, or we cross compile. |
---|
2058 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2059 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2060 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2061 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2062 | |
---|
2063 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2064 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2066 | (eval $ac_link) 2>&5 |
---|
2067 | ac_status=$? |
---|
2068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2069 | (exit $ac_status); }; then |
---|
2070 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2071 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2072 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2073 | # `rm'. |
---|
2074 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2075 | test -f "$ac_file" || continue |
---|
2076 | case $ac_file in |
---|
2077 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2078 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2079 | export ac_cv_exeext |
---|
2080 | break;; |
---|
2081 | * ) break;; |
---|
2082 | esac |
---|
2083 | done |
---|
2084 | else |
---|
2085 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2086 | See \`config.log' for more details." >&5 |
---|
2087 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2088 | See \`config.log' for more details." >&2;} |
---|
2089 | { (exit 1); exit 1; }; } |
---|
2090 | fi |
---|
2091 | |
---|
2092 | rm -f conftest$ac_cv_exeext |
---|
2093 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2094 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2095 | |
---|
2096 | rm -f conftest.$ac_ext |
---|
2097 | EXEEXT=$ac_cv_exeext |
---|
2098 | ac_exeext=$EXEEXT |
---|
2099 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2100 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2101 | if test "${ac_cv_objext+set}" = set; then |
---|
2102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2103 | else |
---|
2104 | cat >conftest.$ac_ext <<_ACEOF |
---|
2105 | /* confdefs.h. */ |
---|
2106 | _ACEOF |
---|
2107 | cat confdefs.h >>conftest.$ac_ext |
---|
2108 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2109 | /* end confdefs.h. */ |
---|
2110 | |
---|
2111 | int |
---|
2112 | main () |
---|
2113 | { |
---|
2114 | |
---|
2115 | ; |
---|
2116 | return 0; |
---|
2117 | } |
---|
2118 | _ACEOF |
---|
2119 | rm -f conftest.o conftest.obj |
---|
2120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2121 | (eval $ac_compile) 2>&5 |
---|
2122 | ac_status=$? |
---|
2123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2124 | (exit $ac_status); }; then |
---|
2125 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2126 | case $ac_file in |
---|
2127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2128 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2129 | break;; |
---|
2130 | esac |
---|
2131 | done |
---|
2132 | else |
---|
2133 | echo "$as_me: failed program was:" >&5 |
---|
2134 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2135 | |
---|
2136 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2137 | See \`config.log' for more details." >&5 |
---|
2138 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2139 | See \`config.log' for more details." >&2;} |
---|
2140 | { (exit 1); exit 1; }; } |
---|
2141 | fi |
---|
2142 | |
---|
2143 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2144 | fi |
---|
2145 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2146 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2147 | OBJEXT=$ac_cv_objext |
---|
2148 | ac_objext=$OBJEXT |
---|
2149 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2150 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2151 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2153 | else |
---|
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 | |
---|
2161 | int |
---|
2162 | main () |
---|
2163 | { |
---|
2164 | #ifndef __GNUC__ |
---|
2165 | choke me |
---|
2166 | #endif |
---|
2167 | |
---|
2168 | ; |
---|
2169 | return 0; |
---|
2170 | } |
---|
2171 | _ACEOF |
---|
2172 | rm -f conftest.$ac_objext |
---|
2173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2174 | (eval $ac_compile) 2>conftest.er1 |
---|
2175 | ac_status=$? |
---|
2176 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2177 | rm -f conftest.er1 |
---|
2178 | cat conftest.err >&5 |
---|
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2180 | (exit $ac_status); } && |
---|
2181 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2182 | || test ! -s conftest.err' |
---|
2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2184 | (eval $ac_try) 2>&5 |
---|
2185 | ac_status=$? |
---|
2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2187 | (exit $ac_status); }; } && |
---|
2188 | { ac_try='test -s conftest.$ac_objext' |
---|
2189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2190 | (eval $ac_try) 2>&5 |
---|
2191 | ac_status=$? |
---|
2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2193 | (exit $ac_status); }; }; then |
---|
2194 | ac_compiler_gnu=yes |
---|
2195 | else |
---|
2196 | echo "$as_me: failed program was:" >&5 |
---|
2197 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2198 | |
---|
2199 | ac_compiler_gnu=no |
---|
2200 | fi |
---|
2201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2202 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2203 | |
---|
2204 | fi |
---|
2205 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2206 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2207 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2208 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2209 | ac_save_CFLAGS=$CFLAGS |
---|
2210 | CFLAGS="-g" |
---|
2211 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2212 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2213 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2215 | else |
---|
2216 | cat >conftest.$ac_ext <<_ACEOF |
---|
2217 | /* confdefs.h. */ |
---|
2218 | _ACEOF |
---|
2219 | cat confdefs.h >>conftest.$ac_ext |
---|
2220 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2221 | /* end confdefs.h. */ |
---|
2222 | |
---|
2223 | int |
---|
2224 | main () |
---|
2225 | { |
---|
2226 | |
---|
2227 | ; |
---|
2228 | return 0; |
---|
2229 | } |
---|
2230 | _ACEOF |
---|
2231 | rm -f conftest.$ac_objext |
---|
2232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2233 | (eval $ac_compile) 2>conftest.er1 |
---|
2234 | ac_status=$? |
---|
2235 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2236 | rm -f conftest.er1 |
---|
2237 | cat conftest.err >&5 |
---|
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2239 | (exit $ac_status); } && |
---|
2240 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2241 | || test ! -s conftest.err' |
---|
2242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2243 | (eval $ac_try) 2>&5 |
---|
2244 | ac_status=$? |
---|
2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2246 | (exit $ac_status); }; } && |
---|
2247 | { ac_try='test -s conftest.$ac_objext' |
---|
2248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2249 | (eval $ac_try) 2>&5 |
---|
2250 | ac_status=$? |
---|
2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2252 | (exit $ac_status); }; }; then |
---|
2253 | ac_cv_prog_cc_g=yes |
---|
2254 | else |
---|
2255 | echo "$as_me: failed program was:" >&5 |
---|
2256 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2257 | |
---|
2258 | ac_cv_prog_cc_g=no |
---|
2259 | fi |
---|
2260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2261 | fi |
---|
2262 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2263 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2264 | if test "$ac_test_CFLAGS" = set; then |
---|
2265 | CFLAGS=$ac_save_CFLAGS |
---|
2266 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2267 | if test "$GCC" = yes; then |
---|
2268 | CFLAGS="-g -O2" |
---|
2269 | else |
---|
2270 | CFLAGS="-g" |
---|
2271 | fi |
---|
2272 | else |
---|
2273 | if test "$GCC" = yes; then |
---|
2274 | CFLAGS="-O2" |
---|
2275 | else |
---|
2276 | CFLAGS= |
---|
2277 | fi |
---|
2278 | fi |
---|
2279 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2280 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2281 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2283 | else |
---|
2284 | ac_cv_prog_cc_stdc=no |
---|
2285 | ac_save_CC=$CC |
---|
2286 | cat >conftest.$ac_ext <<_ACEOF |
---|
2287 | /* confdefs.h. */ |
---|
2288 | _ACEOF |
---|
2289 | cat confdefs.h >>conftest.$ac_ext |
---|
2290 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2291 | /* end confdefs.h. */ |
---|
2292 | #include <stdarg.h> |
---|
2293 | #include <stdio.h> |
---|
2294 | #include <sys/types.h> |
---|
2295 | #include <sys/stat.h> |
---|
2296 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2297 | struct buf { int x; }; |
---|
2298 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2299 | static char *e (p, i) |
---|
2300 | char **p; |
---|
2301 | int i; |
---|
2302 | { |
---|
2303 | return p[i]; |
---|
2304 | } |
---|
2305 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2306 | { |
---|
2307 | char *s; |
---|
2308 | va_list v; |
---|
2309 | va_start (v,p); |
---|
2310 | s = g (p, va_arg (v,int)); |
---|
2311 | va_end (v); |
---|
2312 | return s; |
---|
2313 | } |
---|
2314 | |
---|
2315 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2316 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2317 | These don't provoke an error unfortunately, instead are silently treated |
---|
2318 | as 'x'. The following induces an error, until -std1 is added to get |
---|
2319 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2320 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2321 | that's true only with -std1. */ |
---|
2322 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2323 | |
---|
2324 | int test (int i, double x); |
---|
2325 | struct s1 {int (*f) (int a);}; |
---|
2326 | struct s2 {int (*f) (double a);}; |
---|
2327 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2328 | int argc; |
---|
2329 | char **argv; |
---|
2330 | int |
---|
2331 | main () |
---|
2332 | { |
---|
2333 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2334 | ; |
---|
2335 | return 0; |
---|
2336 | } |
---|
2337 | _ACEOF |
---|
2338 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2339 | # breaks some systems' header files. |
---|
2340 | # AIX -qlanglvl=ansi |
---|
2341 | # Ultrix and OSF/1 -std1 |
---|
2342 | # HP-UX 10.20 and later -Ae |
---|
2343 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2344 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2345 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2346 | do |
---|
2347 | CC="$ac_save_CC $ac_arg" |
---|
2348 | rm -f conftest.$ac_objext |
---|
2349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2350 | (eval $ac_compile) 2>conftest.er1 |
---|
2351 | ac_status=$? |
---|
2352 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2353 | rm -f conftest.er1 |
---|
2354 | cat conftest.err >&5 |
---|
2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2356 | (exit $ac_status); } && |
---|
2357 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2358 | || test ! -s conftest.err' |
---|
2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2360 | (eval $ac_try) 2>&5 |
---|
2361 | ac_status=$? |
---|
2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2363 | (exit $ac_status); }; } && |
---|
2364 | { ac_try='test -s conftest.$ac_objext' |
---|
2365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2366 | (eval $ac_try) 2>&5 |
---|
2367 | ac_status=$? |
---|
2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2369 | (exit $ac_status); }; }; then |
---|
2370 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2371 | break |
---|
2372 | else |
---|
2373 | echo "$as_me: failed program was:" >&5 |
---|
2374 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2375 | |
---|
2376 | fi |
---|
2377 | rm -f conftest.err conftest.$ac_objext |
---|
2378 | done |
---|
2379 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2380 | CC=$ac_save_CC |
---|
2381 | |
---|
2382 | fi |
---|
2383 | |
---|
2384 | case "x$ac_cv_prog_cc_stdc" in |
---|
2385 | x|xno) |
---|
2386 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2387 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2388 | *) |
---|
2389 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2390 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2391 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2392 | esac |
---|
2393 | |
---|
2394 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2395 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2396 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2397 | # the declaration of exit, since it's the most demanding environment. |
---|
2398 | cat >conftest.$ac_ext <<_ACEOF |
---|
2399 | #ifndef __cplusplus |
---|
2400 | choke me |
---|
2401 | #endif |
---|
2402 | _ACEOF |
---|
2403 | rm -f conftest.$ac_objext |
---|
2404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2405 | (eval $ac_compile) 2>conftest.er1 |
---|
2406 | ac_status=$? |
---|
2407 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2408 | rm -f conftest.er1 |
---|
2409 | cat conftest.err >&5 |
---|
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2411 | (exit $ac_status); } && |
---|
2412 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2413 | || test ! -s conftest.err' |
---|
2414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2415 | (eval $ac_try) 2>&5 |
---|
2416 | ac_status=$? |
---|
2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2418 | (exit $ac_status); }; } && |
---|
2419 | { ac_try='test -s conftest.$ac_objext' |
---|
2420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2421 | (eval $ac_try) 2>&5 |
---|
2422 | ac_status=$? |
---|
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2424 | (exit $ac_status); }; }; then |
---|
2425 | for ac_declaration in \ |
---|
2426 | '' \ |
---|
2427 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2428 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2429 | 'extern "C" void exit (int) throw ();' \ |
---|
2430 | 'extern "C" void exit (int);' \ |
---|
2431 | 'void exit (int);' |
---|
2432 | do |
---|
2433 | cat >conftest.$ac_ext <<_ACEOF |
---|
2434 | /* confdefs.h. */ |
---|
2435 | _ACEOF |
---|
2436 | cat confdefs.h >>conftest.$ac_ext |
---|
2437 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2438 | /* end confdefs.h. */ |
---|
2439 | $ac_declaration |
---|
2440 | #include <stdlib.h> |
---|
2441 | int |
---|
2442 | main () |
---|
2443 | { |
---|
2444 | exit (42); |
---|
2445 | ; |
---|
2446 | return 0; |
---|
2447 | } |
---|
2448 | _ACEOF |
---|
2449 | rm -f conftest.$ac_objext |
---|
2450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2451 | (eval $ac_compile) 2>conftest.er1 |
---|
2452 | ac_status=$? |
---|
2453 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2454 | rm -f conftest.er1 |
---|
2455 | cat conftest.err >&5 |
---|
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2457 | (exit $ac_status); } && |
---|
2458 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2459 | || test ! -s conftest.err' |
---|
2460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2461 | (eval $ac_try) 2>&5 |
---|
2462 | ac_status=$? |
---|
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2464 | (exit $ac_status); }; } && |
---|
2465 | { ac_try='test -s conftest.$ac_objext' |
---|
2466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2467 | (eval $ac_try) 2>&5 |
---|
2468 | ac_status=$? |
---|
2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2470 | (exit $ac_status); }; }; then |
---|
2471 | : |
---|
2472 | else |
---|
2473 | echo "$as_me: failed program was:" >&5 |
---|
2474 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2475 | |
---|
2476 | continue |
---|
2477 | fi |
---|
2478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2479 | cat >conftest.$ac_ext <<_ACEOF |
---|
2480 | /* confdefs.h. */ |
---|
2481 | _ACEOF |
---|
2482 | cat confdefs.h >>conftest.$ac_ext |
---|
2483 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2484 | /* end confdefs.h. */ |
---|
2485 | $ac_declaration |
---|
2486 | int |
---|
2487 | main () |
---|
2488 | { |
---|
2489 | exit (42); |
---|
2490 | ; |
---|
2491 | return 0; |
---|
2492 | } |
---|
2493 | _ACEOF |
---|
2494 | rm -f conftest.$ac_objext |
---|
2495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2496 | (eval $ac_compile) 2>conftest.er1 |
---|
2497 | ac_status=$? |
---|
2498 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2499 | rm -f conftest.er1 |
---|
2500 | cat conftest.err >&5 |
---|
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2502 | (exit $ac_status); } && |
---|
2503 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2504 | || test ! -s conftest.err' |
---|
2505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2506 | (eval $ac_try) 2>&5 |
---|
2507 | ac_status=$? |
---|
2508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2509 | (exit $ac_status); }; } && |
---|
2510 | { ac_try='test -s conftest.$ac_objext' |
---|
2511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2512 | (eval $ac_try) 2>&5 |
---|
2513 | ac_status=$? |
---|
2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2515 | (exit $ac_status); }; }; then |
---|
2516 | break |
---|
2517 | else |
---|
2518 | echo "$as_me: failed program was:" >&5 |
---|
2519 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2520 | |
---|
2521 | fi |
---|
2522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2523 | done |
---|
2524 | rm -f conftest* |
---|
2525 | if test -n "$ac_declaration"; then |
---|
2526 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2527 | echo $ac_declaration >>confdefs.h |
---|
2528 | echo '#endif' >>confdefs.h |
---|
2529 | fi |
---|
2530 | |
---|
2531 | else |
---|
2532 | echo "$as_me: failed program was:" >&5 |
---|
2533 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2534 | |
---|
2535 | fi |
---|
2536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2537 | ac_ext=c |
---|
2538 | ac_cpp='$CPP $CPPFLAGS' |
---|
2539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2542 | |
---|
2543 | ac_ext=c |
---|
2544 | ac_cpp='$CPP $CPPFLAGS' |
---|
2545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2548 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
2549 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
2550 | # On Suns, sometimes $CPP names a directory. |
---|
2551 | if test -n "$CPP" && test -d "$CPP"; then |
---|
2552 | CPP= |
---|
2553 | fi |
---|
2554 | if test -z "$CPP"; then |
---|
2555 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
2556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2557 | else |
---|
2558 | # Double quotes because CPP needs to be expanded |
---|
2559 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
2560 | do |
---|
2561 | ac_preproc_ok=false |
---|
2562 | for ac_c_preproc_warn_flag in '' yes |
---|
2563 | do |
---|
2564 | # Use a header file that comes with gcc, so configuring glibc |
---|
2565 | # with a fresh cross-compiler works. |
---|
2566 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2567 | # <limits.h> exists even on freestanding compilers. |
---|
2568 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2569 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2570 | cat >conftest.$ac_ext <<_ACEOF |
---|
2571 | /* confdefs.h. */ |
---|
2572 | _ACEOF |
---|
2573 | cat confdefs.h >>conftest.$ac_ext |
---|
2574 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2575 | /* end confdefs.h. */ |
---|
2576 | #ifdef __STDC__ |
---|
2577 | # include <limits.h> |
---|
2578 | #else |
---|
2579 | # include <assert.h> |
---|
2580 | #endif |
---|
2581 | Syntax error |
---|
2582 | _ACEOF |
---|
2583 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2584 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2585 | ac_status=$? |
---|
2586 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2587 | rm -f conftest.er1 |
---|
2588 | cat conftest.err >&5 |
---|
2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2590 | (exit $ac_status); } >/dev/null; then |
---|
2591 | if test -s conftest.err; then |
---|
2592 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2593 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2594 | else |
---|
2595 | ac_cpp_err= |
---|
2596 | fi |
---|
2597 | else |
---|
2598 | ac_cpp_err=yes |
---|
2599 | fi |
---|
2600 | if test -z "$ac_cpp_err"; then |
---|
2601 | : |
---|
2602 | else |
---|
2603 | echo "$as_me: failed program was:" >&5 |
---|
2604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2605 | |
---|
2606 | # Broken: fails on valid input. |
---|
2607 | continue |
---|
2608 | fi |
---|
2609 | rm -f conftest.err conftest.$ac_ext |
---|
2610 | |
---|
2611 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2612 | # can be detected and how. |
---|
2613 | cat >conftest.$ac_ext <<_ACEOF |
---|
2614 | /* confdefs.h. */ |
---|
2615 | _ACEOF |
---|
2616 | cat confdefs.h >>conftest.$ac_ext |
---|
2617 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2618 | /* end confdefs.h. */ |
---|
2619 | #include <ac_nonexistent.h> |
---|
2620 | _ACEOF |
---|
2621 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2622 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2623 | ac_status=$? |
---|
2624 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2625 | rm -f conftest.er1 |
---|
2626 | cat conftest.err >&5 |
---|
2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2628 | (exit $ac_status); } >/dev/null; then |
---|
2629 | if test -s conftest.err; then |
---|
2630 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2631 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2632 | else |
---|
2633 | ac_cpp_err= |
---|
2634 | fi |
---|
2635 | else |
---|
2636 | ac_cpp_err=yes |
---|
2637 | fi |
---|
2638 | if test -z "$ac_cpp_err"; then |
---|
2639 | # Broken: success on invalid input. |
---|
2640 | continue |
---|
2641 | else |
---|
2642 | echo "$as_me: failed program was:" >&5 |
---|
2643 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2644 | |
---|
2645 | # Passes both tests. |
---|
2646 | ac_preproc_ok=: |
---|
2647 | break |
---|
2648 | fi |
---|
2649 | rm -f conftest.err conftest.$ac_ext |
---|
2650 | |
---|
2651 | done |
---|
2652 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2653 | rm -f conftest.err conftest.$ac_ext |
---|
2654 | if $ac_preproc_ok; then |
---|
2655 | break |
---|
2656 | fi |
---|
2657 | |
---|
2658 | done |
---|
2659 | ac_cv_prog_CPP=$CPP |
---|
2660 | |
---|
2661 | fi |
---|
2662 | CPP=$ac_cv_prog_CPP |
---|
2663 | else |
---|
2664 | ac_cv_prog_CPP=$CPP |
---|
2665 | fi |
---|
2666 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
2667 | echo "${ECHO_T}$CPP" >&6 |
---|
2668 | ac_preproc_ok=false |
---|
2669 | for ac_c_preproc_warn_flag in '' yes |
---|
2670 | do |
---|
2671 | # Use a header file that comes with gcc, so configuring glibc |
---|
2672 | # with a fresh cross-compiler works. |
---|
2673 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
2674 | # <limits.h> exists even on freestanding compilers. |
---|
2675 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
2676 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
2677 | cat >conftest.$ac_ext <<_ACEOF |
---|
2678 | /* confdefs.h. */ |
---|
2679 | _ACEOF |
---|
2680 | cat confdefs.h >>conftest.$ac_ext |
---|
2681 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2682 | /* end confdefs.h. */ |
---|
2683 | #ifdef __STDC__ |
---|
2684 | # include <limits.h> |
---|
2685 | #else |
---|
2686 | # include <assert.h> |
---|
2687 | #endif |
---|
2688 | Syntax error |
---|
2689 | _ACEOF |
---|
2690 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2692 | ac_status=$? |
---|
2693 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2694 | rm -f conftest.er1 |
---|
2695 | cat conftest.err >&5 |
---|
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2697 | (exit $ac_status); } >/dev/null; then |
---|
2698 | if test -s conftest.err; then |
---|
2699 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2700 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2701 | else |
---|
2702 | ac_cpp_err= |
---|
2703 | fi |
---|
2704 | else |
---|
2705 | ac_cpp_err=yes |
---|
2706 | fi |
---|
2707 | if test -z "$ac_cpp_err"; then |
---|
2708 | : |
---|
2709 | else |
---|
2710 | echo "$as_me: failed program was:" >&5 |
---|
2711 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2712 | |
---|
2713 | # Broken: fails on valid input. |
---|
2714 | continue |
---|
2715 | fi |
---|
2716 | rm -f conftest.err conftest.$ac_ext |
---|
2717 | |
---|
2718 | # OK, works on sane cases. Now check whether non-existent headers |
---|
2719 | # can be detected and how. |
---|
2720 | cat >conftest.$ac_ext <<_ACEOF |
---|
2721 | /* confdefs.h. */ |
---|
2722 | _ACEOF |
---|
2723 | cat confdefs.h >>conftest.$ac_ext |
---|
2724 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2725 | /* end confdefs.h. */ |
---|
2726 | #include <ac_nonexistent.h> |
---|
2727 | _ACEOF |
---|
2728 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
2729 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
2730 | ac_status=$? |
---|
2731 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2732 | rm -f conftest.er1 |
---|
2733 | cat conftest.err >&5 |
---|
2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2735 | (exit $ac_status); } >/dev/null; then |
---|
2736 | if test -s conftest.err; then |
---|
2737 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
2738 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
2739 | else |
---|
2740 | ac_cpp_err= |
---|
2741 | fi |
---|
2742 | else |
---|
2743 | ac_cpp_err=yes |
---|
2744 | fi |
---|
2745 | if test -z "$ac_cpp_err"; then |
---|
2746 | # Broken: success on invalid input. |
---|
2747 | continue |
---|
2748 | else |
---|
2749 | echo "$as_me: failed program was:" >&5 |
---|
2750 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2751 | |
---|
2752 | # Passes both tests. |
---|
2753 | ac_preproc_ok=: |
---|
2754 | break |
---|
2755 | fi |
---|
2756 | rm -f conftest.err conftest.$ac_ext |
---|
2757 | |
---|
2758 | done |
---|
2759 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
2760 | rm -f conftest.err conftest.$ac_ext |
---|
2761 | if $ac_preproc_ok; then |
---|
2762 | : |
---|
2763 | else |
---|
2764 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
2765 | See \`config.log' for more details." >&5 |
---|
2766 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
2767 | See \`config.log' for more details." >&2;} |
---|
2768 | { (exit 1); exit 1; }; } |
---|
2769 | fi |
---|
2770 | |
---|
2771 | ac_ext=c |
---|
2772 | ac_cpp='$CPP $CPPFLAGS' |
---|
2773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2776 | |
---|
2777 | |
---|
2778 | |
---|
2779 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
2780 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
2781 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2783 | else |
---|
2784 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
2785 | then ac_cv_prog_egrep='grep -E' |
---|
2786 | else ac_cv_prog_egrep='egrep' |
---|
2787 | fi |
---|
2788 | fi |
---|
2789 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
2790 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
2791 | EGREP=$ac_cv_prog_egrep |
---|
2792 | |
---|
2793 | |
---|
2794 | if test $ac_cv_c_compiler_gnu = yes; then |
---|
2795 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
---|
2796 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
---|
2797 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
---|
2798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2799 | else |
---|
2800 | ac_pattern="Autoconf.*'x'" |
---|
2801 | cat >conftest.$ac_ext <<_ACEOF |
---|
2802 | /* confdefs.h. */ |
---|
2803 | _ACEOF |
---|
2804 | cat confdefs.h >>conftest.$ac_ext |
---|
2805 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2806 | /* end confdefs.h. */ |
---|
2807 | #include <sgtty.h> |
---|
2808 | Autoconf TIOCGETP |
---|
2809 | _ACEOF |
---|
2810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2811 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
2812 | ac_cv_prog_gcc_traditional=yes |
---|
2813 | else |
---|
2814 | ac_cv_prog_gcc_traditional=no |
---|
2815 | fi |
---|
2816 | rm -f conftest* |
---|
2817 | |
---|
2818 | |
---|
2819 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
2820 | cat >conftest.$ac_ext <<_ACEOF |
---|
2821 | /* confdefs.h. */ |
---|
2822 | _ACEOF |
---|
2823 | cat confdefs.h >>conftest.$ac_ext |
---|
2824 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2825 | /* end confdefs.h. */ |
---|
2826 | #include <termio.h> |
---|
2827 | Autoconf TCGETA |
---|
2828 | _ACEOF |
---|
2829 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
2830 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
2831 | ac_cv_prog_gcc_traditional=yes |
---|
2832 | fi |
---|
2833 | rm -f conftest* |
---|
2834 | |
---|
2835 | fi |
---|
2836 | fi |
---|
2837 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
---|
2838 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
---|
2839 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
2840 | CC="$CC -traditional" |
---|
2841 | fi |
---|
2842 | fi |
---|
2843 | |
---|
2844 | |
---|
2845 | if test "x$GCC" != xyes ; then |
---|
2846 | DFLAGS="$DFLAGS $NON_GNU_DFLAGS" |
---|
2847 | CFLAGS="$CFLAGS $NON_GNU_CFLAGS" |
---|
2848 | fi |
---|
2849 | |
---|
2850 | echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
---|
2851 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6 |
---|
2852 | if test "${ac_cv_search_crypt+set}" = set; then |
---|
2853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2854 | else |
---|
2855 | ac_func_search_save_LIBS=$LIBS |
---|
2856 | ac_cv_search_crypt=no |
---|
2857 | cat >conftest.$ac_ext <<_ACEOF |
---|
2858 | /* confdefs.h. */ |
---|
2859 | _ACEOF |
---|
2860 | cat confdefs.h >>conftest.$ac_ext |
---|
2861 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2862 | /* end confdefs.h. */ |
---|
2863 | |
---|
2864 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2865 | #ifdef __cplusplus |
---|
2866 | extern "C" |
---|
2867 | #endif |
---|
2868 | /* We use char because int might match the return type of a gcc2 |
---|
2869 | builtin and then its argument prototype would still apply. */ |
---|
2870 | char crypt (); |
---|
2871 | int |
---|
2872 | main () |
---|
2873 | { |
---|
2874 | crypt (); |
---|
2875 | ; |
---|
2876 | return 0; |
---|
2877 | } |
---|
2878 | _ACEOF |
---|
2879 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2881 | (eval $ac_link) 2>conftest.er1 |
---|
2882 | ac_status=$? |
---|
2883 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2884 | rm -f conftest.er1 |
---|
2885 | cat conftest.err >&5 |
---|
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2887 | (exit $ac_status); } && |
---|
2888 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2889 | || test ! -s conftest.err' |
---|
2890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2891 | (eval $ac_try) 2>&5 |
---|
2892 | ac_status=$? |
---|
2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2894 | (exit $ac_status); }; } && |
---|
2895 | { ac_try='test -s conftest$ac_exeext' |
---|
2896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2897 | (eval $ac_try) 2>&5 |
---|
2898 | ac_status=$? |
---|
2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2900 | (exit $ac_status); }; }; then |
---|
2901 | ac_cv_search_crypt="none required" |
---|
2902 | else |
---|
2903 | echo "$as_me: failed program was:" >&5 |
---|
2904 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2905 | |
---|
2906 | fi |
---|
2907 | rm -f conftest.err conftest.$ac_objext \ |
---|
2908 | conftest$ac_exeext conftest.$ac_ext |
---|
2909 | if test "$ac_cv_search_crypt" = no; then |
---|
2910 | for ac_lib in crypt; do |
---|
2911 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
2912 | cat >conftest.$ac_ext <<_ACEOF |
---|
2913 | /* confdefs.h. */ |
---|
2914 | _ACEOF |
---|
2915 | cat confdefs.h >>conftest.$ac_ext |
---|
2916 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2917 | /* end confdefs.h. */ |
---|
2918 | |
---|
2919 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2920 | #ifdef __cplusplus |
---|
2921 | extern "C" |
---|
2922 | #endif |
---|
2923 | /* We use char because int might match the return type of a gcc2 |
---|
2924 | builtin and then its argument prototype would still apply. */ |
---|
2925 | char crypt (); |
---|
2926 | int |
---|
2927 | main () |
---|
2928 | { |
---|
2929 | crypt (); |
---|
2930 | ; |
---|
2931 | return 0; |
---|
2932 | } |
---|
2933 | _ACEOF |
---|
2934 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
2935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2936 | (eval $ac_link) 2>conftest.er1 |
---|
2937 | ac_status=$? |
---|
2938 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2939 | rm -f conftest.er1 |
---|
2940 | cat conftest.err >&5 |
---|
2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2942 | (exit $ac_status); } && |
---|
2943 | { ac_try='test -z "$ac_c_werror_flag" |
---|
2944 | || test ! -s conftest.err' |
---|
2945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2946 | (eval $ac_try) 2>&5 |
---|
2947 | ac_status=$? |
---|
2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2949 | (exit $ac_status); }; } && |
---|
2950 | { ac_try='test -s conftest$ac_exeext' |
---|
2951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2952 | (eval $ac_try) 2>&5 |
---|
2953 | ac_status=$? |
---|
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2955 | (exit $ac_status); }; }; then |
---|
2956 | ac_cv_search_crypt="-l$ac_lib" |
---|
2957 | break |
---|
2958 | else |
---|
2959 | echo "$as_me: failed program was:" >&5 |
---|
2960 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2961 | |
---|
2962 | fi |
---|
2963 | rm -f conftest.err conftest.$ac_objext \ |
---|
2964 | conftest$ac_exeext conftest.$ac_ext |
---|
2965 | done |
---|
2966 | fi |
---|
2967 | LIBS=$ac_func_search_save_LIBS |
---|
2968 | fi |
---|
2969 | echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
---|
2970 | echo "${ECHO_T}$ac_cv_search_crypt" >&6 |
---|
2971 | if test "$ac_cv_search_crypt" != no; then |
---|
2972 | test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS" |
---|
2973 | |
---|
2974 | fi |
---|
2975 | |
---|
2976 | echo "$as_me:$LINENO: checking for library containing getspnam" >&5 |
---|
2977 | echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6 |
---|
2978 | if test "${ac_cv_search_getspnam+set}" = set; then |
---|
2979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2980 | else |
---|
2981 | ac_func_search_save_LIBS=$LIBS |
---|
2982 | ac_cv_search_getspnam=no |
---|
2983 | cat >conftest.$ac_ext <<_ACEOF |
---|
2984 | /* confdefs.h. */ |
---|
2985 | _ACEOF |
---|
2986 | cat confdefs.h >>conftest.$ac_ext |
---|
2987 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2988 | /* end confdefs.h. */ |
---|
2989 | |
---|
2990 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2991 | #ifdef __cplusplus |
---|
2992 | extern "C" |
---|
2993 | #endif |
---|
2994 | /* We use char because int might match the return type of a gcc2 |
---|
2995 | builtin and then its argument prototype would still apply. */ |
---|
2996 | char getspnam (); |
---|
2997 | int |
---|
2998 | main () |
---|
2999 | { |
---|
3000 | getspnam (); |
---|
3001 | ; |
---|
3002 | return 0; |
---|
3003 | } |
---|
3004 | _ACEOF |
---|
3005 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3007 | (eval $ac_link) 2>conftest.er1 |
---|
3008 | ac_status=$? |
---|
3009 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3010 | rm -f conftest.er1 |
---|
3011 | cat conftest.err >&5 |
---|
3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3013 | (exit $ac_status); } && |
---|
3014 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3015 | || test ! -s conftest.err' |
---|
3016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3017 | (eval $ac_try) 2>&5 |
---|
3018 | ac_status=$? |
---|
3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3020 | (exit $ac_status); }; } && |
---|
3021 | { ac_try='test -s conftest$ac_exeext' |
---|
3022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3023 | (eval $ac_try) 2>&5 |
---|
3024 | ac_status=$? |
---|
3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3026 | (exit $ac_status); }; }; then |
---|
3027 | ac_cv_search_getspnam="none required" |
---|
3028 | else |
---|
3029 | echo "$as_me: failed program was:" >&5 |
---|
3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3031 | |
---|
3032 | fi |
---|
3033 | rm -f conftest.err conftest.$ac_objext \ |
---|
3034 | conftest$ac_exeext conftest.$ac_ext |
---|
3035 | if test "$ac_cv_search_getspnam" = no; then |
---|
3036 | for ac_lib in sec; do |
---|
3037 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
3038 | cat >conftest.$ac_ext <<_ACEOF |
---|
3039 | /* confdefs.h. */ |
---|
3040 | _ACEOF |
---|
3041 | cat confdefs.h >>conftest.$ac_ext |
---|
3042 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3043 | /* end confdefs.h. */ |
---|
3044 | |
---|
3045 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3046 | #ifdef __cplusplus |
---|
3047 | extern "C" |
---|
3048 | #endif |
---|
3049 | /* We use char because int might match the return type of a gcc2 |
---|
3050 | builtin and then its argument prototype would still apply. */ |
---|
3051 | char getspnam (); |
---|
3052 | int |
---|
3053 | main () |
---|
3054 | { |
---|
3055 | getspnam (); |
---|
3056 | ; |
---|
3057 | return 0; |
---|
3058 | } |
---|
3059 | _ACEOF |
---|
3060 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3062 | (eval $ac_link) 2>conftest.er1 |
---|
3063 | ac_status=$? |
---|
3064 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3065 | rm -f conftest.er1 |
---|
3066 | cat conftest.err >&5 |
---|
3067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3068 | (exit $ac_status); } && |
---|
3069 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3070 | || test ! -s conftest.err' |
---|
3071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3072 | (eval $ac_try) 2>&5 |
---|
3073 | ac_status=$? |
---|
3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3075 | (exit $ac_status); }; } && |
---|
3076 | { ac_try='test -s conftest$ac_exeext' |
---|
3077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3078 | (eval $ac_try) 2>&5 |
---|
3079 | ac_status=$? |
---|
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3081 | (exit $ac_status); }; }; then |
---|
3082 | ac_cv_search_getspnam="-l$ac_lib" |
---|
3083 | break |
---|
3084 | else |
---|
3085 | echo "$as_me: failed program was:" >&5 |
---|
3086 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3087 | |
---|
3088 | fi |
---|
3089 | rm -f conftest.err conftest.$ac_objext \ |
---|
3090 | conftest$ac_exeext conftest.$ac_ext |
---|
3091 | done |
---|
3092 | fi |
---|
3093 | LIBS=$ac_func_search_save_LIBS |
---|
3094 | fi |
---|
3095 | echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5 |
---|
3096 | echo "${ECHO_T}$ac_cv_search_getspnam" >&6 |
---|
3097 | if test "$ac_cv_search_getspnam" != no; then |
---|
3098 | test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS" |
---|
3099 | |
---|
3100 | fi |
---|
3101 | |
---|
3102 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
---|
3103 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
---|
3104 | if test "${ac_cv_search_tgetent+set}" = set; then |
---|
3105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3106 | else |
---|
3107 | ac_func_search_save_LIBS=$LIBS |
---|
3108 | ac_cv_search_tgetent=no |
---|
3109 | cat >conftest.$ac_ext <<_ACEOF |
---|
3110 | /* confdefs.h. */ |
---|
3111 | _ACEOF |
---|
3112 | cat confdefs.h >>conftest.$ac_ext |
---|
3113 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3114 | /* end confdefs.h. */ |
---|
3115 | |
---|
3116 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3117 | #ifdef __cplusplus |
---|
3118 | extern "C" |
---|
3119 | #endif |
---|
3120 | /* We use char because int might match the return type of a gcc2 |
---|
3121 | builtin and then its argument prototype would still apply. */ |
---|
3122 | char tgetent (); |
---|
3123 | int |
---|
3124 | main () |
---|
3125 | { |
---|
3126 | tgetent (); |
---|
3127 | ; |
---|
3128 | return 0; |
---|
3129 | } |
---|
3130 | _ACEOF |
---|
3131 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3133 | (eval $ac_link) 2>conftest.er1 |
---|
3134 | ac_status=$? |
---|
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3136 | rm -f conftest.er1 |
---|
3137 | cat conftest.err >&5 |
---|
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3139 | (exit $ac_status); } && |
---|
3140 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3141 | || test ! -s conftest.err' |
---|
3142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3143 | (eval $ac_try) 2>&5 |
---|
3144 | ac_status=$? |
---|
3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3146 | (exit $ac_status); }; } && |
---|
3147 | { ac_try='test -s conftest$ac_exeext' |
---|
3148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3149 | (eval $ac_try) 2>&5 |
---|
3150 | ac_status=$? |
---|
3151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3152 | (exit $ac_status); }; }; then |
---|
3153 | ac_cv_search_tgetent="none required" |
---|
3154 | else |
---|
3155 | echo "$as_me: failed program was:" >&5 |
---|
3156 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3157 | |
---|
3158 | fi |
---|
3159 | rm -f conftest.err conftest.$ac_objext \ |
---|
3160 | conftest$ac_exeext conftest.$ac_ext |
---|
3161 | if test "$ac_cv_search_tgetent" = no; then |
---|
3162 | for ac_lib in termlib termcap curses ncurses; do |
---|
3163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
3164 | cat >conftest.$ac_ext <<_ACEOF |
---|
3165 | /* confdefs.h. */ |
---|
3166 | _ACEOF |
---|
3167 | cat confdefs.h >>conftest.$ac_ext |
---|
3168 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3169 | /* end confdefs.h. */ |
---|
3170 | |
---|
3171 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3172 | #ifdef __cplusplus |
---|
3173 | extern "C" |
---|
3174 | #endif |
---|
3175 | /* We use char because int might match the return type of a gcc2 |
---|
3176 | builtin and then its argument prototype would still apply. */ |
---|
3177 | char tgetent (); |
---|
3178 | int |
---|
3179 | main () |
---|
3180 | { |
---|
3181 | tgetent (); |
---|
3182 | ; |
---|
3183 | return 0; |
---|
3184 | } |
---|
3185 | _ACEOF |
---|
3186 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3188 | (eval $ac_link) 2>conftest.er1 |
---|
3189 | ac_status=$? |
---|
3190 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3191 | rm -f conftest.er1 |
---|
3192 | cat conftest.err >&5 |
---|
3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3194 | (exit $ac_status); } && |
---|
3195 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3196 | || test ! -s conftest.err' |
---|
3197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3198 | (eval $ac_try) 2>&5 |
---|
3199 | ac_status=$? |
---|
3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3201 | (exit $ac_status); }; } && |
---|
3202 | { ac_try='test -s conftest$ac_exeext' |
---|
3203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3204 | (eval $ac_try) 2>&5 |
---|
3205 | ac_status=$? |
---|
3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3207 | (exit $ac_status); }; }; then |
---|
3208 | ac_cv_search_tgetent="-l$ac_lib" |
---|
3209 | break |
---|
3210 | else |
---|
3211 | echo "$as_me: failed program was:" >&5 |
---|
3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3213 | |
---|
3214 | fi |
---|
3215 | rm -f conftest.err conftest.$ac_objext \ |
---|
3216 | conftest$ac_exeext conftest.$ac_ext |
---|
3217 | done |
---|
3218 | fi |
---|
3219 | LIBS=$ac_func_search_save_LIBS |
---|
3220 | fi |
---|
3221 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
---|
3222 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
---|
3223 | if test "$ac_cv_search_tgetent" != no; then |
---|
3224 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
---|
3225 | |
---|
3226 | fi |
---|
3227 | |
---|
3228 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
---|
3229 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 |
---|
3230 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
---|
3231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3232 | else |
---|
3233 | ac_func_search_save_LIBS=$LIBS |
---|
3234 | ac_cv_search_gethostbyname=no |
---|
3235 | cat >conftest.$ac_ext <<_ACEOF |
---|
3236 | /* confdefs.h. */ |
---|
3237 | _ACEOF |
---|
3238 | cat confdefs.h >>conftest.$ac_ext |
---|
3239 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3240 | /* end confdefs.h. */ |
---|
3241 | |
---|
3242 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3243 | #ifdef __cplusplus |
---|
3244 | extern "C" |
---|
3245 | #endif |
---|
3246 | /* We use char because int might match the return type of a gcc2 |
---|
3247 | builtin and then its argument prototype would still apply. */ |
---|
3248 | char gethostbyname (); |
---|
3249 | int |
---|
3250 | main () |
---|
3251 | { |
---|
3252 | gethostbyname (); |
---|
3253 | ; |
---|
3254 | return 0; |
---|
3255 | } |
---|
3256 | _ACEOF |
---|
3257 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3259 | (eval $ac_link) 2>conftest.er1 |
---|
3260 | ac_status=$? |
---|
3261 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3262 | rm -f conftest.er1 |
---|
3263 | cat conftest.err >&5 |
---|
3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3265 | (exit $ac_status); } && |
---|
3266 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3267 | || test ! -s conftest.err' |
---|
3268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3269 | (eval $ac_try) 2>&5 |
---|
3270 | ac_status=$? |
---|
3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3272 | (exit $ac_status); }; } && |
---|
3273 | { ac_try='test -s conftest$ac_exeext' |
---|
3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3275 | (eval $ac_try) 2>&5 |
---|
3276 | ac_status=$? |
---|
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3278 | (exit $ac_status); }; }; then |
---|
3279 | ac_cv_search_gethostbyname="none required" |
---|
3280 | else |
---|
3281 | echo "$as_me: failed program was:" >&5 |
---|
3282 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3283 | |
---|
3284 | fi |
---|
3285 | rm -f conftest.err conftest.$ac_objext \ |
---|
3286 | conftest$ac_exeext conftest.$ac_ext |
---|
3287 | if test "$ac_cv_search_gethostbyname" = no; then |
---|
3288 | for ac_lib in nsl; do |
---|
3289 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
3290 | cat >conftest.$ac_ext <<_ACEOF |
---|
3291 | /* confdefs.h. */ |
---|
3292 | _ACEOF |
---|
3293 | cat confdefs.h >>conftest.$ac_ext |
---|
3294 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3295 | /* end confdefs.h. */ |
---|
3296 | |
---|
3297 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3298 | #ifdef __cplusplus |
---|
3299 | extern "C" |
---|
3300 | #endif |
---|
3301 | /* We use char because int might match the return type of a gcc2 |
---|
3302 | builtin and then its argument prototype would still apply. */ |
---|
3303 | char gethostbyname (); |
---|
3304 | int |
---|
3305 | main () |
---|
3306 | { |
---|
3307 | gethostbyname (); |
---|
3308 | ; |
---|
3309 | return 0; |
---|
3310 | } |
---|
3311 | _ACEOF |
---|
3312 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3314 | (eval $ac_link) 2>conftest.er1 |
---|
3315 | ac_status=$? |
---|
3316 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3317 | rm -f conftest.er1 |
---|
3318 | cat conftest.err >&5 |
---|
3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3320 | (exit $ac_status); } && |
---|
3321 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3322 | || test ! -s conftest.err' |
---|
3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3324 | (eval $ac_try) 2>&5 |
---|
3325 | ac_status=$? |
---|
3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3327 | (exit $ac_status); }; } && |
---|
3328 | { ac_try='test -s conftest$ac_exeext' |
---|
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); }; }; then |
---|
3334 | ac_cv_search_gethostbyname="-l$ac_lib" |
---|
3335 | break |
---|
3336 | else |
---|
3337 | echo "$as_me: failed program was:" >&5 |
---|
3338 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3339 | |
---|
3340 | fi |
---|
3341 | rm -f conftest.err conftest.$ac_objext \ |
---|
3342 | conftest$ac_exeext conftest.$ac_ext |
---|
3343 | done |
---|
3344 | fi |
---|
3345 | LIBS=$ac_func_search_save_LIBS |
---|
3346 | fi |
---|
3347 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
---|
3348 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 |
---|
3349 | if test "$ac_cv_search_gethostbyname" != no; then |
---|
3350 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" |
---|
3351 | |
---|
3352 | fi |
---|
3353 | |
---|
3354 | echo "$as_me:$LINENO: checking for library containing connect" >&5 |
---|
3355 | echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6 |
---|
3356 | if test "${ac_cv_search_connect+set}" = set; then |
---|
3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3358 | else |
---|
3359 | ac_func_search_save_LIBS=$LIBS |
---|
3360 | ac_cv_search_connect=no |
---|
3361 | cat >conftest.$ac_ext <<_ACEOF |
---|
3362 | /* confdefs.h. */ |
---|
3363 | _ACEOF |
---|
3364 | cat confdefs.h >>conftest.$ac_ext |
---|
3365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3366 | /* end confdefs.h. */ |
---|
3367 | |
---|
3368 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3369 | #ifdef __cplusplus |
---|
3370 | extern "C" |
---|
3371 | #endif |
---|
3372 | /* We use char because int might match the return type of a gcc2 |
---|
3373 | builtin and then its argument prototype would still apply. */ |
---|
3374 | char connect (); |
---|
3375 | int |
---|
3376 | main () |
---|
3377 | { |
---|
3378 | connect (); |
---|
3379 | ; |
---|
3380 | return 0; |
---|
3381 | } |
---|
3382 | _ACEOF |
---|
3383 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3385 | (eval $ac_link) 2>conftest.er1 |
---|
3386 | ac_status=$? |
---|
3387 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3388 | rm -f conftest.er1 |
---|
3389 | cat conftest.err >&5 |
---|
3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3391 | (exit $ac_status); } && |
---|
3392 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3393 | || test ! -s conftest.err' |
---|
3394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3395 | (eval $ac_try) 2>&5 |
---|
3396 | ac_status=$? |
---|
3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3398 | (exit $ac_status); }; } && |
---|
3399 | { ac_try='test -s conftest$ac_exeext' |
---|
3400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3401 | (eval $ac_try) 2>&5 |
---|
3402 | ac_status=$? |
---|
3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3404 | (exit $ac_status); }; }; then |
---|
3405 | ac_cv_search_connect="none required" |
---|
3406 | else |
---|
3407 | echo "$as_me: failed program was:" >&5 |
---|
3408 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3409 | |
---|
3410 | fi |
---|
3411 | rm -f conftest.err conftest.$ac_objext \ |
---|
3412 | conftest$ac_exeext conftest.$ac_ext |
---|
3413 | if test "$ac_cv_search_connect" = no; then |
---|
3414 | for ac_lib in socket; do |
---|
3415 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
3416 | cat >conftest.$ac_ext <<_ACEOF |
---|
3417 | /* confdefs.h. */ |
---|
3418 | _ACEOF |
---|
3419 | cat confdefs.h >>conftest.$ac_ext |
---|
3420 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3421 | /* end confdefs.h. */ |
---|
3422 | |
---|
3423 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3424 | #ifdef __cplusplus |
---|
3425 | extern "C" |
---|
3426 | #endif |
---|
3427 | /* We use char because int might match the return type of a gcc2 |
---|
3428 | builtin and then its argument prototype would still apply. */ |
---|
3429 | char connect (); |
---|
3430 | int |
---|
3431 | main () |
---|
3432 | { |
---|
3433 | connect (); |
---|
3434 | ; |
---|
3435 | return 0; |
---|
3436 | } |
---|
3437 | _ACEOF |
---|
3438 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3440 | (eval $ac_link) 2>conftest.er1 |
---|
3441 | ac_status=$? |
---|
3442 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3443 | rm -f conftest.er1 |
---|
3444 | cat conftest.err >&5 |
---|
3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3446 | (exit $ac_status); } && |
---|
3447 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3448 | || test ! -s conftest.err' |
---|
3449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3450 | (eval $ac_try) 2>&5 |
---|
3451 | ac_status=$? |
---|
3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3453 | (exit $ac_status); }; } && |
---|
3454 | { ac_try='test -s conftest$ac_exeext' |
---|
3455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3456 | (eval $ac_try) 2>&5 |
---|
3457 | ac_status=$? |
---|
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3459 | (exit $ac_status); }; }; then |
---|
3460 | ac_cv_search_connect="-l$ac_lib" |
---|
3461 | break |
---|
3462 | else |
---|
3463 | echo "$as_me: failed program was:" >&5 |
---|
3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3465 | |
---|
3466 | fi |
---|
3467 | rm -f conftest.err conftest.$ac_objext \ |
---|
3468 | conftest$ac_exeext conftest.$ac_ext |
---|
3469 | done |
---|
3470 | fi |
---|
3471 | LIBS=$ac_func_search_save_LIBS |
---|
3472 | fi |
---|
3473 | echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5 |
---|
3474 | echo "${ECHO_T}$ac_cv_search_connect" >&6 |
---|
3475 | if test "$ac_cv_search_connect" != no; then |
---|
3476 | test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS" |
---|
3477 | |
---|
3478 | fi |
---|
3479 | |
---|
3480 | echo "$as_me:$LINENO: checking for library containing iconv" >&5 |
---|
3481 | echo $ECHO_N "checking for library containing iconv... $ECHO_C" >&6 |
---|
3482 | if test "${ac_cv_search_iconv+set}" = set; then |
---|
3483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3484 | else |
---|
3485 | ac_func_search_save_LIBS=$LIBS |
---|
3486 | ac_cv_search_iconv=no |
---|
3487 | cat >conftest.$ac_ext <<_ACEOF |
---|
3488 | /* confdefs.h. */ |
---|
3489 | _ACEOF |
---|
3490 | cat confdefs.h >>conftest.$ac_ext |
---|
3491 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3492 | /* end confdefs.h. */ |
---|
3493 | |
---|
3494 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3495 | #ifdef __cplusplus |
---|
3496 | extern "C" |
---|
3497 | #endif |
---|
3498 | /* We use char because int might match the return type of a gcc2 |
---|
3499 | builtin and then its argument prototype would still apply. */ |
---|
3500 | char iconv (); |
---|
3501 | int |
---|
3502 | main () |
---|
3503 | { |
---|
3504 | iconv (); |
---|
3505 | ; |
---|
3506 | return 0; |
---|
3507 | } |
---|
3508 | _ACEOF |
---|
3509 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3511 | (eval $ac_link) 2>conftest.er1 |
---|
3512 | ac_status=$? |
---|
3513 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3514 | rm -f conftest.er1 |
---|
3515 | cat conftest.err >&5 |
---|
3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3517 | (exit $ac_status); } && |
---|
3518 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3519 | || test ! -s conftest.err' |
---|
3520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3521 | (eval $ac_try) 2>&5 |
---|
3522 | ac_status=$? |
---|
3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3524 | (exit $ac_status); }; } && |
---|
3525 | { ac_try='test -s conftest$ac_exeext' |
---|
3526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3527 | (eval $ac_try) 2>&5 |
---|
3528 | ac_status=$? |
---|
3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3530 | (exit $ac_status); }; }; then |
---|
3531 | ac_cv_search_iconv="none required" |
---|
3532 | else |
---|
3533 | echo "$as_me: failed program was:" >&5 |
---|
3534 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3535 | |
---|
3536 | fi |
---|
3537 | rm -f conftest.err conftest.$ac_objext \ |
---|
3538 | conftest$ac_exeext conftest.$ac_ext |
---|
3539 | if test "$ac_cv_search_iconv" = no; then |
---|
3540 | for ac_lib in iconv; do |
---|
3541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
3542 | cat >conftest.$ac_ext <<_ACEOF |
---|
3543 | /* confdefs.h. */ |
---|
3544 | _ACEOF |
---|
3545 | cat confdefs.h >>conftest.$ac_ext |
---|
3546 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3547 | /* end confdefs.h. */ |
---|
3548 | |
---|
3549 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3550 | #ifdef __cplusplus |
---|
3551 | extern "C" |
---|
3552 | #endif |
---|
3553 | /* We use char because int might match the return type of a gcc2 |
---|
3554 | builtin and then its argument prototype would still apply. */ |
---|
3555 | char iconv (); |
---|
3556 | int |
---|
3557 | main () |
---|
3558 | { |
---|
3559 | iconv (); |
---|
3560 | ; |
---|
3561 | return 0; |
---|
3562 | } |
---|
3563 | _ACEOF |
---|
3564 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3566 | (eval $ac_link) 2>conftest.er1 |
---|
3567 | ac_status=$? |
---|
3568 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3569 | rm -f conftest.er1 |
---|
3570 | cat conftest.err >&5 |
---|
3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3572 | (exit $ac_status); } && |
---|
3573 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3574 | || test ! -s conftest.err' |
---|
3575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3576 | (eval $ac_try) 2>&5 |
---|
3577 | ac_status=$? |
---|
3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3579 | (exit $ac_status); }; } && |
---|
3580 | { ac_try='test -s conftest$ac_exeext' |
---|
3581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3582 | (eval $ac_try) 2>&5 |
---|
3583 | ac_status=$? |
---|
3584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3585 | (exit $ac_status); }; }; then |
---|
3586 | ac_cv_search_iconv="-l$ac_lib" |
---|
3587 | break |
---|
3588 | else |
---|
3589 | echo "$as_me: failed program was:" >&5 |
---|
3590 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3591 | |
---|
3592 | fi |
---|
3593 | rm -f conftest.err conftest.$ac_objext \ |
---|
3594 | conftest$ac_exeext conftest.$ac_ext |
---|
3595 | done |
---|
3596 | fi |
---|
3597 | LIBS=$ac_func_search_save_LIBS |
---|
3598 | fi |
---|
3599 | echo "$as_me:$LINENO: result: $ac_cv_search_iconv" >&5 |
---|
3600 | echo "${ECHO_T}$ac_cv_search_iconv" >&6 |
---|
3601 | if test "$ac_cv_search_iconv" != no; then |
---|
3602 | test "$ac_cv_search_iconv" = "none required" || LIBS="$ac_cv_search_iconv $LIBS" |
---|
3603 | |
---|
3604 | cat >>confdefs.h <<\_ACEOF |
---|
3605 | #define HAVE_ICONV 1 |
---|
3606 | _ACEOF |
---|
3607 | |
---|
3608 | fi |
---|
3609 | |
---|
3610 | |
---|
3611 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3612 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3613 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3615 | else |
---|
3616 | cat >conftest.$ac_ext <<_ACEOF |
---|
3617 | /* confdefs.h. */ |
---|
3618 | _ACEOF |
---|
3619 | cat confdefs.h >>conftest.$ac_ext |
---|
3620 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3621 | /* end confdefs.h. */ |
---|
3622 | #include <stdlib.h> |
---|
3623 | #include <stdarg.h> |
---|
3624 | #include <string.h> |
---|
3625 | #include <float.h> |
---|
3626 | |
---|
3627 | int |
---|
3628 | main () |
---|
3629 | { |
---|
3630 | |
---|
3631 | ; |
---|
3632 | return 0; |
---|
3633 | } |
---|
3634 | _ACEOF |
---|
3635 | rm -f conftest.$ac_objext |
---|
3636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3637 | (eval $ac_compile) 2>conftest.er1 |
---|
3638 | ac_status=$? |
---|
3639 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3640 | rm -f conftest.er1 |
---|
3641 | cat conftest.err >&5 |
---|
3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3643 | (exit $ac_status); } && |
---|
3644 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3645 | || test ! -s conftest.err' |
---|
3646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3647 | (eval $ac_try) 2>&5 |
---|
3648 | ac_status=$? |
---|
3649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3650 | (exit $ac_status); }; } && |
---|
3651 | { ac_try='test -s conftest.$ac_objext' |
---|
3652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3653 | (eval $ac_try) 2>&5 |
---|
3654 | ac_status=$? |
---|
3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3656 | (exit $ac_status); }; }; then |
---|
3657 | ac_cv_header_stdc=yes |
---|
3658 | else |
---|
3659 | echo "$as_me: failed program was:" >&5 |
---|
3660 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3661 | |
---|
3662 | ac_cv_header_stdc=no |
---|
3663 | fi |
---|
3664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3665 | |
---|
3666 | if test $ac_cv_header_stdc = yes; then |
---|
3667 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3668 | cat >conftest.$ac_ext <<_ACEOF |
---|
3669 | /* confdefs.h. */ |
---|
3670 | _ACEOF |
---|
3671 | cat confdefs.h >>conftest.$ac_ext |
---|
3672 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3673 | /* end confdefs.h. */ |
---|
3674 | #include <string.h> |
---|
3675 | |
---|
3676 | _ACEOF |
---|
3677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3678 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3679 | : |
---|
3680 | else |
---|
3681 | ac_cv_header_stdc=no |
---|
3682 | fi |
---|
3683 | rm -f conftest* |
---|
3684 | |
---|
3685 | fi |
---|
3686 | |
---|
3687 | if test $ac_cv_header_stdc = yes; then |
---|
3688 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3689 | cat >conftest.$ac_ext <<_ACEOF |
---|
3690 | /* confdefs.h. */ |
---|
3691 | _ACEOF |
---|
3692 | cat confdefs.h >>conftest.$ac_ext |
---|
3693 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3694 | /* end confdefs.h. */ |
---|
3695 | #include <stdlib.h> |
---|
3696 | |
---|
3697 | _ACEOF |
---|
3698 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3699 | $EGREP "free" >/dev/null 2>&1; then |
---|
3700 | : |
---|
3701 | else |
---|
3702 | ac_cv_header_stdc=no |
---|
3703 | fi |
---|
3704 | rm -f conftest* |
---|
3705 | |
---|
3706 | fi |
---|
3707 | |
---|
3708 | if test $ac_cv_header_stdc = yes; then |
---|
3709 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3710 | if test "$cross_compiling" = yes; then |
---|
3711 | : |
---|
3712 | else |
---|
3713 | cat >conftest.$ac_ext <<_ACEOF |
---|
3714 | /* confdefs.h. */ |
---|
3715 | _ACEOF |
---|
3716 | cat confdefs.h >>conftest.$ac_ext |
---|
3717 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3718 | /* end confdefs.h. */ |
---|
3719 | #include <ctype.h> |
---|
3720 | #if ((' ' & 0x0FF) == 0x020) |
---|
3721 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3722 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3723 | #else |
---|
3724 | # define ISLOWER(c) \ |
---|
3725 | (('a' <= (c) && (c) <= 'i') \ |
---|
3726 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3727 | || ('s' <= (c) && (c) <= 'z')) |
---|
3728 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3729 | #endif |
---|
3730 | |
---|
3731 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3732 | int |
---|
3733 | main () |
---|
3734 | { |
---|
3735 | int i; |
---|
3736 | for (i = 0; i < 256; i++) |
---|
3737 | if (XOR (islower (i), ISLOWER (i)) |
---|
3738 | || toupper (i) != TOUPPER (i)) |
---|
3739 | exit(2); |
---|
3740 | exit (0); |
---|
3741 | } |
---|
3742 | _ACEOF |
---|
3743 | rm -f conftest$ac_exeext |
---|
3744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3745 | (eval $ac_link) 2>&5 |
---|
3746 | ac_status=$? |
---|
3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3748 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3750 | (eval $ac_try) 2>&5 |
---|
3751 | ac_status=$? |
---|
3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3753 | (exit $ac_status); }; }; then |
---|
3754 | : |
---|
3755 | else |
---|
3756 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3757 | echo "$as_me: failed program was:" >&5 |
---|
3758 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3759 | |
---|
3760 | ( exit $ac_status ) |
---|
3761 | ac_cv_header_stdc=no |
---|
3762 | fi |
---|
3763 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3764 | fi |
---|
3765 | fi |
---|
3766 | fi |
---|
3767 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3768 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3769 | if test $ac_cv_header_stdc = yes; then |
---|
3770 | |
---|
3771 | cat >>confdefs.h <<\_ACEOF |
---|
3772 | #define STDC_HEADERS 1 |
---|
3773 | _ACEOF |
---|
3774 | |
---|
3775 | fi |
---|
3776 | |
---|
3777 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3778 | |
---|
3779 | |
---|
3780 | |
---|
3781 | |
---|
3782 | |
---|
3783 | |
---|
3784 | |
---|
3785 | |
---|
3786 | |
---|
3787 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3788 | inttypes.h stdint.h unistd.h |
---|
3789 | do |
---|
3790 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3795 | else |
---|
3796 | cat >conftest.$ac_ext <<_ACEOF |
---|
3797 | /* confdefs.h. */ |
---|
3798 | _ACEOF |
---|
3799 | cat confdefs.h >>conftest.$ac_ext |
---|
3800 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3801 | /* end confdefs.h. */ |
---|
3802 | $ac_includes_default |
---|
3803 | |
---|
3804 | #include <$ac_header> |
---|
3805 | _ACEOF |
---|
3806 | rm -f conftest.$ac_objext |
---|
3807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3808 | (eval $ac_compile) 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_objext' |
---|
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 | eval "$as_ac_Header=yes" |
---|
3829 | else |
---|
3830 | echo "$as_me: failed program was:" >&5 |
---|
3831 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3832 | |
---|
3833 | eval "$as_ac_Header=no" |
---|
3834 | fi |
---|
3835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3836 | fi |
---|
3837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3838 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3839 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3840 | cat >>confdefs.h <<_ACEOF |
---|
3841 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3842 | _ACEOF |
---|
3843 | |
---|
3844 | fi |
---|
3845 | |
---|
3846 | done |
---|
3847 | |
---|
3848 | |
---|
3849 | |
---|
3850 | |
---|
3851 | |
---|
3852 | |
---|
3853 | for ac_header in auth.h inttypes.h shadow.h stdint.h |
---|
3854 | do |
---|
3855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3857 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3861 | fi |
---|
3862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3864 | else |
---|
3865 | # Is the header compilable? |
---|
3866 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3867 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3868 | cat >conftest.$ac_ext <<_ACEOF |
---|
3869 | /* confdefs.h. */ |
---|
3870 | _ACEOF |
---|
3871 | cat confdefs.h >>conftest.$ac_ext |
---|
3872 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3873 | /* end confdefs.h. */ |
---|
3874 | $ac_includes_default |
---|
3875 | #include <$ac_header> |
---|
3876 | _ACEOF |
---|
3877 | rm -f conftest.$ac_objext |
---|
3878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3879 | (eval $ac_compile) 2>conftest.er1 |
---|
3880 | ac_status=$? |
---|
3881 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3882 | rm -f conftest.er1 |
---|
3883 | cat conftest.err >&5 |
---|
3884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3885 | (exit $ac_status); } && |
---|
3886 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3887 | || test ! -s conftest.err' |
---|
3888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3889 | (eval $ac_try) 2>&5 |
---|
3890 | ac_status=$? |
---|
3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3892 | (exit $ac_status); }; } && |
---|
3893 | { ac_try='test -s conftest.$ac_objext' |
---|
3894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3895 | (eval $ac_try) 2>&5 |
---|
3896 | ac_status=$? |
---|
3897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3898 | (exit $ac_status); }; }; then |
---|
3899 | ac_header_compiler=yes |
---|
3900 | else |
---|
3901 | echo "$as_me: failed program was:" >&5 |
---|
3902 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3903 | |
---|
3904 | ac_header_compiler=no |
---|
3905 | fi |
---|
3906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3907 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3908 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3909 | |
---|
3910 | # Is the header present? |
---|
3911 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3912 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3913 | cat >conftest.$ac_ext <<_ACEOF |
---|
3914 | /* confdefs.h. */ |
---|
3915 | _ACEOF |
---|
3916 | cat confdefs.h >>conftest.$ac_ext |
---|
3917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3918 | /* end confdefs.h. */ |
---|
3919 | #include <$ac_header> |
---|
3920 | _ACEOF |
---|
3921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3923 | ac_status=$? |
---|
3924 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3925 | rm -f conftest.er1 |
---|
3926 | cat conftest.err >&5 |
---|
3927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3928 | (exit $ac_status); } >/dev/null; then |
---|
3929 | if test -s conftest.err; then |
---|
3930 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3931 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3932 | else |
---|
3933 | ac_cpp_err= |
---|
3934 | fi |
---|
3935 | else |
---|
3936 | ac_cpp_err=yes |
---|
3937 | fi |
---|
3938 | if test -z "$ac_cpp_err"; then |
---|
3939 | ac_header_preproc=yes |
---|
3940 | else |
---|
3941 | echo "$as_me: failed program was:" >&5 |
---|
3942 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3943 | |
---|
3944 | ac_header_preproc=no |
---|
3945 | fi |
---|
3946 | rm -f conftest.err conftest.$ac_ext |
---|
3947 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3948 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3949 | |
---|
3950 | # So? What about this header? |
---|
3951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
3952 | yes:no: ) |
---|
3953 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3954 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
3956 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
3957 | ac_header_preproc=yes |
---|
3958 | ;; |
---|
3959 | no:yes:* ) |
---|
3960 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3961 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3962 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3963 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3964 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
3965 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
3966 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
3967 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
3968 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3969 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3970 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
3971 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
3972 | ( |
---|
3973 | cat <<\_ASBOX |
---|
3974 | ## ------------------------------------------ ## |
---|
3975 | ## Report this to the AC_PACKAGE_NAME lists. ## |
---|
3976 | ## ------------------------------------------ ## |
---|
3977 | _ASBOX |
---|
3978 | ) | |
---|
3979 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3980 | ;; |
---|
3981 | esac |
---|
3982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3986 | else |
---|
3987 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
3988 | fi |
---|
3989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3991 | |
---|
3992 | fi |
---|
3993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3994 | cat >>confdefs.h <<_ACEOF |
---|
3995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3996 | _ACEOF |
---|
3997 | |
---|
3998 | fi |
---|
3999 | |
---|
4000 | done |
---|
4001 | |
---|
4002 | |
---|
4003 | |
---|
4004 | for ac_header in utmpx.h utmp.h |
---|
4005 | do |
---|
4006 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4008 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4012 | fi |
---|
4013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4014 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4015 | else |
---|
4016 | # Is the header compilable? |
---|
4017 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4018 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4019 | cat >conftest.$ac_ext <<_ACEOF |
---|
4020 | /* confdefs.h. */ |
---|
4021 | _ACEOF |
---|
4022 | cat confdefs.h >>conftest.$ac_ext |
---|
4023 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4024 | /* end confdefs.h. */ |
---|
4025 | $ac_includes_default |
---|
4026 | #include <$ac_header> |
---|
4027 | _ACEOF |
---|
4028 | rm -f conftest.$ac_objext |
---|
4029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4030 | (eval $ac_compile) 2>conftest.er1 |
---|
4031 | ac_status=$? |
---|
4032 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4033 | rm -f conftest.er1 |
---|
4034 | cat conftest.err >&5 |
---|
4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4036 | (exit $ac_status); } && |
---|
4037 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4038 | || test ! -s conftest.err' |
---|
4039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4040 | (eval $ac_try) 2>&5 |
---|
4041 | ac_status=$? |
---|
4042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4043 | (exit $ac_status); }; } && |
---|
4044 | { ac_try='test -s conftest.$ac_objext' |
---|
4045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4046 | (eval $ac_try) 2>&5 |
---|
4047 | ac_status=$? |
---|
4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4049 | (exit $ac_status); }; }; then |
---|
4050 | ac_header_compiler=yes |
---|
4051 | else |
---|
4052 | echo "$as_me: failed program was:" >&5 |
---|
4053 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4054 | |
---|
4055 | ac_header_compiler=no |
---|
4056 | fi |
---|
4057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4058 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4059 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4060 | |
---|
4061 | # Is the header present? |
---|
4062 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4063 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4064 | cat >conftest.$ac_ext <<_ACEOF |
---|
4065 | /* confdefs.h. */ |
---|
4066 | _ACEOF |
---|
4067 | cat confdefs.h >>conftest.$ac_ext |
---|
4068 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4069 | /* end confdefs.h. */ |
---|
4070 | #include <$ac_header> |
---|
4071 | _ACEOF |
---|
4072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4074 | ac_status=$? |
---|
4075 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4076 | rm -f conftest.er1 |
---|
4077 | cat conftest.err >&5 |
---|
4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4079 | (exit $ac_status); } >/dev/null; then |
---|
4080 | if test -s conftest.err; then |
---|
4081 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4083 | else |
---|
4084 | ac_cpp_err= |
---|
4085 | fi |
---|
4086 | else |
---|
4087 | ac_cpp_err=yes |
---|
4088 | fi |
---|
4089 | if test -z "$ac_cpp_err"; then |
---|
4090 | ac_header_preproc=yes |
---|
4091 | else |
---|
4092 | echo "$as_me: failed program was:" >&5 |
---|
4093 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4094 | |
---|
4095 | ac_header_preproc=no |
---|
4096 | fi |
---|
4097 | rm -f conftest.err conftest.$ac_ext |
---|
4098 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4099 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4100 | |
---|
4101 | # So? What about this header? |
---|
4102 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4103 | yes:no: ) |
---|
4104 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4105 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4107 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4108 | ac_header_preproc=yes |
---|
4109 | ;; |
---|
4110 | no:yes:* ) |
---|
4111 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4112 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4113 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4114 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4115 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4116 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4117 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4118 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4120 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4121 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4122 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4123 | ( |
---|
4124 | cat <<\_ASBOX |
---|
4125 | ## ------------------------------------------ ## |
---|
4126 | ## Report this to the AC_PACKAGE_NAME lists. ## |
---|
4127 | ## ------------------------------------------ ## |
---|
4128 | _ASBOX |
---|
4129 | ) | |
---|
4130 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4131 | ;; |
---|
4132 | esac |
---|
4133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4137 | else |
---|
4138 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4139 | fi |
---|
4140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4142 | |
---|
4143 | fi |
---|
4144 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4145 | cat >>confdefs.h <<_ACEOF |
---|
4146 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4147 | _ACEOF |
---|
4148 | |
---|
4149 | fi |
---|
4150 | |
---|
4151 | done |
---|
4152 | |
---|
4153 | |
---|
4154 | for ac_header in wchar.h |
---|
4155 | do |
---|
4156 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4158 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4162 | fi |
---|
4163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4164 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4165 | else |
---|
4166 | # Is the header compilable? |
---|
4167 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4168 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4169 | cat >conftest.$ac_ext <<_ACEOF |
---|
4170 | /* confdefs.h. */ |
---|
4171 | _ACEOF |
---|
4172 | cat confdefs.h >>conftest.$ac_ext |
---|
4173 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4174 | /* end confdefs.h. */ |
---|
4175 | $ac_includes_default |
---|
4176 | #include <$ac_header> |
---|
4177 | _ACEOF |
---|
4178 | rm -f conftest.$ac_objext |
---|
4179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4180 | (eval $ac_compile) 2>conftest.er1 |
---|
4181 | ac_status=$? |
---|
4182 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4183 | rm -f conftest.er1 |
---|
4184 | cat conftest.err >&5 |
---|
4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4186 | (exit $ac_status); } && |
---|
4187 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4188 | || test ! -s conftest.err' |
---|
4189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4190 | (eval $ac_try) 2>&5 |
---|
4191 | ac_status=$? |
---|
4192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4193 | (exit $ac_status); }; } && |
---|
4194 | { ac_try='test -s conftest.$ac_objext' |
---|
4195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4196 | (eval $ac_try) 2>&5 |
---|
4197 | ac_status=$? |
---|
4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4199 | (exit $ac_status); }; }; then |
---|
4200 | ac_header_compiler=yes |
---|
4201 | else |
---|
4202 | echo "$as_me: failed program was:" >&5 |
---|
4203 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4204 | |
---|
4205 | ac_header_compiler=no |
---|
4206 | fi |
---|
4207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4208 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4209 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4210 | |
---|
4211 | # Is the header present? |
---|
4212 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4213 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4214 | cat >conftest.$ac_ext <<_ACEOF |
---|
4215 | /* confdefs.h. */ |
---|
4216 | _ACEOF |
---|
4217 | cat confdefs.h >>conftest.$ac_ext |
---|
4218 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4219 | /* end confdefs.h. */ |
---|
4220 | #include <$ac_header> |
---|
4221 | _ACEOF |
---|
4222 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4223 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4224 | ac_status=$? |
---|
4225 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4226 | rm -f conftest.er1 |
---|
4227 | cat conftest.err >&5 |
---|
4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4229 | (exit $ac_status); } >/dev/null; then |
---|
4230 | if test -s conftest.err; then |
---|
4231 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4232 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4233 | else |
---|
4234 | ac_cpp_err= |
---|
4235 | fi |
---|
4236 | else |
---|
4237 | ac_cpp_err=yes |
---|
4238 | fi |
---|
4239 | if test -z "$ac_cpp_err"; then |
---|
4240 | ac_header_preproc=yes |
---|
4241 | else |
---|
4242 | echo "$as_me: failed program was:" >&5 |
---|
4243 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4244 | |
---|
4245 | ac_header_preproc=no |
---|
4246 | fi |
---|
4247 | rm -f conftest.err conftest.$ac_ext |
---|
4248 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4249 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4250 | |
---|
4251 | # So? What about this header? |
---|
4252 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4253 | yes:no: ) |
---|
4254 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4255 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4256 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4257 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4258 | ac_header_preproc=yes |
---|
4259 | ;; |
---|
4260 | no:yes:* ) |
---|
4261 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4262 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4263 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4264 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4265 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4266 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4267 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4268 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4270 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4271 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4272 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4273 | ( |
---|
4274 | cat <<\_ASBOX |
---|
4275 | ## ------------------------------------------ ## |
---|
4276 | ## Report this to the AC_PACKAGE_NAME lists. ## |
---|
4277 | ## ------------------------------------------ ## |
---|
4278 | _ASBOX |
---|
4279 | ) | |
---|
4280 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4281 | ;; |
---|
4282 | esac |
---|
4283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4287 | else |
---|
4288 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4289 | fi |
---|
4290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4291 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4292 | |
---|
4293 | fi |
---|
4294 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4295 | cat >>confdefs.h <<_ACEOF |
---|
4296 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4297 | _ACEOF |
---|
4298 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
---|
4299 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
---|
4300 | if test "${ac_cv_type_wchar_t+set}" = set; then |
---|
4301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4302 | else |
---|
4303 | cat >conftest.$ac_ext <<_ACEOF |
---|
4304 | /* confdefs.h. */ |
---|
4305 | _ACEOF |
---|
4306 | cat confdefs.h >>conftest.$ac_ext |
---|
4307 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4308 | /* end confdefs.h. */ |
---|
4309 | #include <stdio.h> |
---|
4310 | #include <wchar.h> |
---|
4311 | |
---|
4312 | int |
---|
4313 | main () |
---|
4314 | { |
---|
4315 | if ((wchar_t *) 0) |
---|
4316 | return 0; |
---|
4317 | if (sizeof (wchar_t)) |
---|
4318 | return 0; |
---|
4319 | ; |
---|
4320 | return 0; |
---|
4321 | } |
---|
4322 | _ACEOF |
---|
4323 | rm -f conftest.$ac_objext |
---|
4324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4325 | (eval $ac_compile) 2>conftest.er1 |
---|
4326 | ac_status=$? |
---|
4327 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4328 | rm -f conftest.er1 |
---|
4329 | cat conftest.err >&5 |
---|
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4331 | (exit $ac_status); } && |
---|
4332 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4333 | || test ! -s conftest.err' |
---|
4334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4335 | (eval $ac_try) 2>&5 |
---|
4336 | ac_status=$? |
---|
4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4338 | (exit $ac_status); }; } && |
---|
4339 | { ac_try='test -s conftest.$ac_objext' |
---|
4340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4341 | (eval $ac_try) 2>&5 |
---|
4342 | ac_status=$? |
---|
4343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4344 | (exit $ac_status); }; }; then |
---|
4345 | ac_cv_type_wchar_t=yes |
---|
4346 | else |
---|
4347 | echo "$as_me: failed program was:" >&5 |
---|
4348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4349 | |
---|
4350 | ac_cv_type_wchar_t=no |
---|
4351 | fi |
---|
4352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4353 | fi |
---|
4354 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
---|
4355 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
---|
4356 | |
---|
4357 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
---|
4358 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
---|
4359 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
---|
4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4361 | else |
---|
4362 | if test "$ac_cv_type_wchar_t" = yes; then |
---|
4363 | # The cast to unsigned long works around a bug in the HP C Compiler |
---|
4364 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
4365 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
4366 | # This bug is HP SR number 8606223364. |
---|
4367 | if test "$cross_compiling" = yes; then |
---|
4368 | # Depending upon the size, compute the lo and hi bounds. |
---|
4369 | cat >conftest.$ac_ext <<_ACEOF |
---|
4370 | /* confdefs.h. */ |
---|
4371 | _ACEOF |
---|
4372 | cat confdefs.h >>conftest.$ac_ext |
---|
4373 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4374 | /* end confdefs.h. */ |
---|
4375 | #include <stdio.h> |
---|
4376 | #include <wchar.h> |
---|
4377 | |
---|
4378 | int |
---|
4379 | main () |
---|
4380 | { |
---|
4381 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
---|
4382 | test_array [0] = 0 |
---|
4383 | |
---|
4384 | ; |
---|
4385 | return 0; |
---|
4386 | } |
---|
4387 | _ACEOF |
---|
4388 | rm -f conftest.$ac_objext |
---|
4389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4390 | (eval $ac_compile) 2>conftest.er1 |
---|
4391 | ac_status=$? |
---|
4392 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4393 | rm -f conftest.er1 |
---|
4394 | cat conftest.err >&5 |
---|
4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4396 | (exit $ac_status); } && |
---|
4397 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4398 | || test ! -s conftest.err' |
---|
4399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4400 | (eval $ac_try) 2>&5 |
---|
4401 | ac_status=$? |
---|
4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4403 | (exit $ac_status); }; } && |
---|
4404 | { ac_try='test -s conftest.$ac_objext' |
---|
4405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4406 | (eval $ac_try) 2>&5 |
---|
4407 | ac_status=$? |
---|
4408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4409 | (exit $ac_status); }; }; then |
---|
4410 | ac_lo=0 ac_mid=0 |
---|
4411 | while :; do |
---|
4412 | cat >conftest.$ac_ext <<_ACEOF |
---|
4413 | /* confdefs.h. */ |
---|
4414 | _ACEOF |
---|
4415 | cat confdefs.h >>conftest.$ac_ext |
---|
4416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4417 | /* end confdefs.h. */ |
---|
4418 | #include <stdio.h> |
---|
4419 | #include <wchar.h> |
---|
4420 | |
---|
4421 | int |
---|
4422 | main () |
---|
4423 | { |
---|
4424 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
---|
4425 | test_array [0] = 0 |
---|
4426 | |
---|
4427 | ; |
---|
4428 | return 0; |
---|
4429 | } |
---|
4430 | _ACEOF |
---|
4431 | rm -f conftest.$ac_objext |
---|
4432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4433 | (eval $ac_compile) 2>conftest.er1 |
---|
4434 | ac_status=$? |
---|
4435 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4436 | rm -f conftest.er1 |
---|
4437 | cat conftest.err >&5 |
---|
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4439 | (exit $ac_status); } && |
---|
4440 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4441 | || test ! -s conftest.err' |
---|
4442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4443 | (eval $ac_try) 2>&5 |
---|
4444 | ac_status=$? |
---|
4445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4446 | (exit $ac_status); }; } && |
---|
4447 | { ac_try='test -s conftest.$ac_objext' |
---|
4448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4449 | (eval $ac_try) 2>&5 |
---|
4450 | ac_status=$? |
---|
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4452 | (exit $ac_status); }; }; then |
---|
4453 | ac_hi=$ac_mid; break |
---|
4454 | else |
---|
4455 | echo "$as_me: failed program was:" >&5 |
---|
4456 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4457 | |
---|
4458 | ac_lo=`expr $ac_mid + 1` |
---|
4459 | if test $ac_lo -le $ac_mid; then |
---|
4460 | ac_lo= ac_hi= |
---|
4461 | break |
---|
4462 | fi |
---|
4463 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
4464 | fi |
---|
4465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4466 | done |
---|
4467 | else |
---|
4468 | echo "$as_me: failed program was:" >&5 |
---|
4469 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4470 | |
---|
4471 | cat >conftest.$ac_ext <<_ACEOF |
---|
4472 | /* confdefs.h. */ |
---|
4473 | _ACEOF |
---|
4474 | cat confdefs.h >>conftest.$ac_ext |
---|
4475 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4476 | /* end confdefs.h. */ |
---|
4477 | #include <stdio.h> |
---|
4478 | #include <wchar.h> |
---|
4479 | |
---|
4480 | int |
---|
4481 | main () |
---|
4482 | { |
---|
4483 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
---|
4484 | test_array [0] = 0 |
---|
4485 | |
---|
4486 | ; |
---|
4487 | return 0; |
---|
4488 | } |
---|
4489 | _ACEOF |
---|
4490 | rm -f conftest.$ac_objext |
---|
4491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4492 | (eval $ac_compile) 2>conftest.er1 |
---|
4493 | ac_status=$? |
---|
4494 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4495 | rm -f conftest.er1 |
---|
4496 | cat conftest.err >&5 |
---|
4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4498 | (exit $ac_status); } && |
---|
4499 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4500 | || test ! -s conftest.err' |
---|
4501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4502 | (eval $ac_try) 2>&5 |
---|
4503 | ac_status=$? |
---|
4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4505 | (exit $ac_status); }; } && |
---|
4506 | { ac_try='test -s conftest.$ac_objext' |
---|
4507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4508 | (eval $ac_try) 2>&5 |
---|
4509 | ac_status=$? |
---|
4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4511 | (exit $ac_status); }; }; then |
---|
4512 | ac_hi=-1 ac_mid=-1 |
---|
4513 | while :; do |
---|
4514 | cat >conftest.$ac_ext <<_ACEOF |
---|
4515 | /* confdefs.h. */ |
---|
4516 | _ACEOF |
---|
4517 | cat confdefs.h >>conftest.$ac_ext |
---|
4518 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4519 | /* end confdefs.h. */ |
---|
4520 | #include <stdio.h> |
---|
4521 | #include <wchar.h> |
---|
4522 | |
---|
4523 | int |
---|
4524 | main () |
---|
4525 | { |
---|
4526 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
---|
4527 | test_array [0] = 0 |
---|
4528 | |
---|
4529 | ; |
---|
4530 | return 0; |
---|
4531 | } |
---|
4532 | _ACEOF |
---|
4533 | rm -f conftest.$ac_objext |
---|
4534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4535 | (eval $ac_compile) 2>conftest.er1 |
---|
4536 | ac_status=$? |
---|
4537 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4538 | rm -f conftest.er1 |
---|
4539 | cat conftest.err >&5 |
---|
4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4541 | (exit $ac_status); } && |
---|
4542 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4543 | || test ! -s conftest.err' |
---|
4544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4545 | (eval $ac_try) 2>&5 |
---|
4546 | ac_status=$? |
---|
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4548 | (exit $ac_status); }; } && |
---|
4549 | { ac_try='test -s conftest.$ac_objext' |
---|
4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4551 | (eval $ac_try) 2>&5 |
---|
4552 | ac_status=$? |
---|
4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4554 | (exit $ac_status); }; }; then |
---|
4555 | ac_lo=$ac_mid; break |
---|
4556 | else |
---|
4557 | echo "$as_me: failed program was:" >&5 |
---|
4558 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4559 | |
---|
4560 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
4561 | if test $ac_mid -le $ac_hi; then |
---|
4562 | ac_lo= ac_hi= |
---|
4563 | break |
---|
4564 | fi |
---|
4565 | ac_mid=`expr 2 '*' $ac_mid` |
---|
4566 | fi |
---|
4567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4568 | done |
---|
4569 | else |
---|
4570 | echo "$as_me: failed program was:" >&5 |
---|
4571 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4572 | |
---|
4573 | ac_lo= ac_hi= |
---|
4574 | fi |
---|
4575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4576 | fi |
---|
4577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4578 | # Binary search between lo and hi bounds. |
---|
4579 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
4580 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
4581 | cat >conftest.$ac_ext <<_ACEOF |
---|
4582 | /* confdefs.h. */ |
---|
4583 | _ACEOF |
---|
4584 | cat confdefs.h >>conftest.$ac_ext |
---|
4585 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4586 | /* end confdefs.h. */ |
---|
4587 | #include <stdio.h> |
---|
4588 | #include <wchar.h> |
---|
4589 | |
---|
4590 | int |
---|
4591 | main () |
---|
4592 | { |
---|
4593 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
---|
4594 | test_array [0] = 0 |
---|
4595 | |
---|
4596 | ; |
---|
4597 | return 0; |
---|
4598 | } |
---|
4599 | _ACEOF |
---|
4600 | rm -f conftest.$ac_objext |
---|
4601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4602 | (eval $ac_compile) 2>conftest.er1 |
---|
4603 | ac_status=$? |
---|
4604 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4605 | rm -f conftest.er1 |
---|
4606 | cat conftest.err >&5 |
---|
4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4608 | (exit $ac_status); } && |
---|
4609 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4610 | || test ! -s conftest.err' |
---|
4611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4612 | (eval $ac_try) 2>&5 |
---|
4613 | ac_status=$? |
---|
4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4615 | (exit $ac_status); }; } && |
---|
4616 | { ac_try='test -s conftest.$ac_objext' |
---|
4617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4618 | (eval $ac_try) 2>&5 |
---|
4619 | ac_status=$? |
---|
4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4621 | (exit $ac_status); }; }; then |
---|
4622 | ac_hi=$ac_mid |
---|
4623 | else |
---|
4624 | echo "$as_me: failed program was:" >&5 |
---|
4625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4626 | |
---|
4627 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
4628 | fi |
---|
4629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4630 | done |
---|
4631 | case $ac_lo in |
---|
4632 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
---|
4633 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
---|
4634 | See \`config.log' for more details." >&5 |
---|
4635 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
---|
4636 | See \`config.log' for more details." >&2;} |
---|
4637 | { (exit 1); exit 1; }; } ;; |
---|
4638 | esac |
---|
4639 | else |
---|
4640 | if test "$cross_compiling" = yes; then |
---|
4641 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
---|
4642 | See \`config.log' for more details." >&5 |
---|
4643 | echo "$as_me: error: cannot run test program while cross compiling |
---|
4644 | See \`config.log' for more details." >&2;} |
---|
4645 | { (exit 1); exit 1; }; } |
---|
4646 | else |
---|
4647 | cat >conftest.$ac_ext <<_ACEOF |
---|
4648 | /* confdefs.h. */ |
---|
4649 | _ACEOF |
---|
4650 | cat confdefs.h >>conftest.$ac_ext |
---|
4651 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4652 | /* end confdefs.h. */ |
---|
4653 | #include <stdio.h> |
---|
4654 | #include <wchar.h> |
---|
4655 | |
---|
4656 | long longval () { return (long) (sizeof (wchar_t)); } |
---|
4657 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
---|
4658 | #include <stdio.h> |
---|
4659 | #include <stdlib.h> |
---|
4660 | int |
---|
4661 | main () |
---|
4662 | { |
---|
4663 | |
---|
4664 | FILE *f = fopen ("conftest.val", "w"); |
---|
4665 | if (! f) |
---|
4666 | exit (1); |
---|
4667 | if (((long) (sizeof (wchar_t))) < 0) |
---|
4668 | { |
---|
4669 | long i = longval (); |
---|
4670 | if (i != ((long) (sizeof (wchar_t)))) |
---|
4671 | exit (1); |
---|
4672 | fprintf (f, "%ld\n", i); |
---|
4673 | } |
---|
4674 | else |
---|
4675 | { |
---|
4676 | unsigned long i = ulongval (); |
---|
4677 | if (i != ((long) (sizeof (wchar_t)))) |
---|
4678 | exit (1); |
---|
4679 | fprintf (f, "%lu\n", i); |
---|
4680 | } |
---|
4681 | exit (ferror (f) || fclose (f) != 0); |
---|
4682 | |
---|
4683 | ; |
---|
4684 | return 0; |
---|
4685 | } |
---|
4686 | _ACEOF |
---|
4687 | rm -f conftest$ac_exeext |
---|
4688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4689 | (eval $ac_link) 2>&5 |
---|
4690 | ac_status=$? |
---|
4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4694 | (eval $ac_try) 2>&5 |
---|
4695 | ac_status=$? |
---|
4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4697 | (exit $ac_status); }; }; then |
---|
4698 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
---|
4699 | else |
---|
4700 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4701 | echo "$as_me: failed program was:" >&5 |
---|
4702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4703 | |
---|
4704 | ( exit $ac_status ) |
---|
4705 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
---|
4706 | See \`config.log' for more details." >&5 |
---|
4707 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
---|
4708 | See \`config.log' for more details." >&2;} |
---|
4709 | { (exit 1); exit 1; }; } |
---|
4710 | fi |
---|
4711 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4712 | fi |
---|
4713 | fi |
---|
4714 | rm -f conftest.val |
---|
4715 | else |
---|
4716 | ac_cv_sizeof_wchar_t=0 |
---|
4717 | fi |
---|
4718 | fi |
---|
4719 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
---|
4720 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
---|
4721 | cat >>confdefs.h <<_ACEOF |
---|
4722 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
---|
4723 | _ACEOF |
---|
4724 | |
---|
4725 | |
---|
4726 | |
---|
4727 | for ac_header in wctype.h |
---|
4728 | do |
---|
4729 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4730 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4731 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4733 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4735 | fi |
---|
4736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4737 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4738 | else |
---|
4739 | # Is the header compilable? |
---|
4740 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4741 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4742 | cat >conftest.$ac_ext <<_ACEOF |
---|
4743 | /* confdefs.h. */ |
---|
4744 | _ACEOF |
---|
4745 | cat confdefs.h >>conftest.$ac_ext |
---|
4746 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4747 | /* end confdefs.h. */ |
---|
4748 | $ac_includes_default |
---|
4749 | #include <$ac_header> |
---|
4750 | _ACEOF |
---|
4751 | rm -f conftest.$ac_objext |
---|
4752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4753 | (eval $ac_compile) 2>conftest.er1 |
---|
4754 | ac_status=$? |
---|
4755 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4756 | rm -f conftest.er1 |
---|
4757 | cat conftest.err >&5 |
---|
4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4759 | (exit $ac_status); } && |
---|
4760 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4761 | || test ! -s conftest.err' |
---|
4762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4763 | (eval $ac_try) 2>&5 |
---|
4764 | ac_status=$? |
---|
4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4766 | (exit $ac_status); }; } && |
---|
4767 | { ac_try='test -s conftest.$ac_objext' |
---|
4768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4769 | (eval $ac_try) 2>&5 |
---|
4770 | ac_status=$? |
---|
4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4772 | (exit $ac_status); }; }; then |
---|
4773 | ac_header_compiler=yes |
---|
4774 | else |
---|
4775 | echo "$as_me: failed program was:" >&5 |
---|
4776 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4777 | |
---|
4778 | ac_header_compiler=no |
---|
4779 | fi |
---|
4780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4781 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4782 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4783 | |
---|
4784 | # Is the header present? |
---|
4785 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4786 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4787 | cat >conftest.$ac_ext <<_ACEOF |
---|
4788 | /* confdefs.h. */ |
---|
4789 | _ACEOF |
---|
4790 | cat confdefs.h >>conftest.$ac_ext |
---|
4791 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4792 | /* end confdefs.h. */ |
---|
4793 | #include <$ac_header> |
---|
4794 | _ACEOF |
---|
4795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4797 | ac_status=$? |
---|
4798 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4799 | rm -f conftest.er1 |
---|
4800 | cat conftest.err >&5 |
---|
4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4802 | (exit $ac_status); } >/dev/null; then |
---|
4803 | if test -s conftest.err; then |
---|
4804 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4806 | else |
---|
4807 | ac_cpp_err= |
---|
4808 | fi |
---|
4809 | else |
---|
4810 | ac_cpp_err=yes |
---|
4811 | fi |
---|
4812 | if test -z "$ac_cpp_err"; then |
---|
4813 | ac_header_preproc=yes |
---|
4814 | else |
---|
4815 | echo "$as_me: failed program was:" >&5 |
---|
4816 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4817 | |
---|
4818 | ac_header_preproc=no |
---|
4819 | fi |
---|
4820 | rm -f conftest.err conftest.$ac_ext |
---|
4821 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4822 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4823 | |
---|
4824 | # So? What about this header? |
---|
4825 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4826 | yes:no: ) |
---|
4827 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4828 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4829 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4830 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4831 | ac_header_preproc=yes |
---|
4832 | ;; |
---|
4833 | no:yes:* ) |
---|
4834 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4835 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4836 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4837 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4838 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4839 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4840 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4841 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4843 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4844 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4845 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4846 | ( |
---|
4847 | cat <<\_ASBOX |
---|
4848 | ## ------------------------------------------ ## |
---|
4849 | ## Report this to the AC_PACKAGE_NAME lists. ## |
---|
4850 | ## ------------------------------------------ ## |
---|
4851 | _ASBOX |
---|
4852 | ) | |
---|
4853 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4854 | ;; |
---|
4855 | esac |
---|
4856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4860 | else |
---|
4861 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4862 | fi |
---|
4863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4865 | |
---|
4866 | fi |
---|
4867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4868 | cat >>confdefs.h <<_ACEOF |
---|
4869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4870 | _ACEOF |
---|
4871 | |
---|
4872 | fi |
---|
4873 | |
---|
4874 | done |
---|
4875 | |
---|
4876 | fi |
---|
4877 | |
---|
4878 | done |
---|
4879 | |
---|
4880 | |
---|
4881 | |
---|
4882 | |
---|
4883 | |
---|
4884 | |
---|
4885 | ac_header_dirent=no |
---|
4886 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
---|
4887 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
---|
4888 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
---|
4889 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
---|
4890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4892 | else |
---|
4893 | cat >conftest.$ac_ext <<_ACEOF |
---|
4894 | /* confdefs.h. */ |
---|
4895 | _ACEOF |
---|
4896 | cat confdefs.h >>conftest.$ac_ext |
---|
4897 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4898 | /* end confdefs.h. */ |
---|
4899 | #include <sys/types.h> |
---|
4900 | #include <$ac_hdr> |
---|
4901 | |
---|
4902 | int |
---|
4903 | main () |
---|
4904 | { |
---|
4905 | if ((DIR *) 0) |
---|
4906 | return 0; |
---|
4907 | ; |
---|
4908 | return 0; |
---|
4909 | } |
---|
4910 | _ACEOF |
---|
4911 | rm -f conftest.$ac_objext |
---|
4912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4913 | (eval $ac_compile) 2>conftest.er1 |
---|
4914 | ac_status=$? |
---|
4915 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4916 | rm -f conftest.er1 |
---|
4917 | cat conftest.err >&5 |
---|
4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4919 | (exit $ac_status); } && |
---|
4920 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4921 | || test ! -s conftest.err' |
---|
4922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4923 | (eval $ac_try) 2>&5 |
---|
4924 | ac_status=$? |
---|
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4926 | (exit $ac_status); }; } && |
---|
4927 | { ac_try='test -s conftest.$ac_objext' |
---|
4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4929 | (eval $ac_try) 2>&5 |
---|
4930 | ac_status=$? |
---|
4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4932 | (exit $ac_status); }; }; then |
---|
4933 | eval "$as_ac_Header=yes" |
---|
4934 | else |
---|
4935 | echo "$as_me: failed program was:" >&5 |
---|
4936 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4937 | |
---|
4938 | eval "$as_ac_Header=no" |
---|
4939 | fi |
---|
4940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4941 | fi |
---|
4942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4944 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4945 | cat >>confdefs.h <<_ACEOF |
---|
4946 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
---|
4947 | _ACEOF |
---|
4948 | |
---|
4949 | ac_header_dirent=$ac_hdr; break |
---|
4950 | fi |
---|
4951 | |
---|
4952 | done |
---|
4953 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
4954 | if test $ac_header_dirent = dirent.h; then |
---|
4955 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
4956 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
4957 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
4958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4959 | else |
---|
4960 | ac_func_search_save_LIBS=$LIBS |
---|
4961 | ac_cv_search_opendir=no |
---|
4962 | cat >conftest.$ac_ext <<_ACEOF |
---|
4963 | /* confdefs.h. */ |
---|
4964 | _ACEOF |
---|
4965 | cat confdefs.h >>conftest.$ac_ext |
---|
4966 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4967 | /* end confdefs.h. */ |
---|
4968 | |
---|
4969 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4970 | #ifdef __cplusplus |
---|
4971 | extern "C" |
---|
4972 | #endif |
---|
4973 | /* We use char because int might match the return type of a gcc2 |
---|
4974 | builtin and then its argument prototype would still apply. */ |
---|
4975 | char opendir (); |
---|
4976 | int |
---|
4977 | main () |
---|
4978 | { |
---|
4979 | opendir (); |
---|
4980 | ; |
---|
4981 | return 0; |
---|
4982 | } |
---|
4983 | _ACEOF |
---|
4984 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4986 | (eval $ac_link) 2>conftest.er1 |
---|
4987 | ac_status=$? |
---|
4988 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4989 | rm -f conftest.er1 |
---|
4990 | cat conftest.err >&5 |
---|
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4992 | (exit $ac_status); } && |
---|
4993 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4994 | || test ! -s conftest.err' |
---|
4995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4996 | (eval $ac_try) 2>&5 |
---|
4997 | ac_status=$? |
---|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4999 | (exit $ac_status); }; } && |
---|
5000 | { ac_try='test -s conftest$ac_exeext' |
---|
5001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5002 | (eval $ac_try) 2>&5 |
---|
5003 | ac_status=$? |
---|
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5005 | (exit $ac_status); }; }; then |
---|
5006 | ac_cv_search_opendir="none required" |
---|
5007 | else |
---|
5008 | echo "$as_me: failed program was:" >&5 |
---|
5009 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5010 | |
---|
5011 | fi |
---|
5012 | rm -f conftest.err conftest.$ac_objext \ |
---|
5013 | conftest$ac_exeext conftest.$ac_ext |
---|
5014 | if test "$ac_cv_search_opendir" = no; then |
---|
5015 | for ac_lib in dir; do |
---|
5016 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5017 | cat >conftest.$ac_ext <<_ACEOF |
---|
5018 | /* confdefs.h. */ |
---|
5019 | _ACEOF |
---|
5020 | cat confdefs.h >>conftest.$ac_ext |
---|
5021 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5022 | /* end confdefs.h. */ |
---|
5023 | |
---|
5024 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5025 | #ifdef __cplusplus |
---|
5026 | extern "C" |
---|
5027 | #endif |
---|
5028 | /* We use char because int might match the return type of a gcc2 |
---|
5029 | builtin and then its argument prototype would still apply. */ |
---|
5030 | char opendir (); |
---|
5031 | int |
---|
5032 | main () |
---|
5033 | { |
---|
5034 | opendir (); |
---|
5035 | ; |
---|
5036 | return 0; |
---|
5037 | } |
---|
5038 | _ACEOF |
---|
5039 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5041 | (eval $ac_link) 2>conftest.er1 |
---|
5042 | ac_status=$? |
---|
5043 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5044 | rm -f conftest.er1 |
---|
5045 | cat conftest.err >&5 |
---|
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5047 | (exit $ac_status); } && |
---|
5048 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5049 | || test ! -s conftest.err' |
---|
5050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5051 | (eval $ac_try) 2>&5 |
---|
5052 | ac_status=$? |
---|
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5054 | (exit $ac_status); }; } && |
---|
5055 | { ac_try='test -s conftest$ac_exeext' |
---|
5056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5057 | (eval $ac_try) 2>&5 |
---|
5058 | ac_status=$? |
---|
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5060 | (exit $ac_status); }; }; then |
---|
5061 | ac_cv_search_opendir="-l$ac_lib" |
---|
5062 | break |
---|
5063 | else |
---|
5064 | echo "$as_me: failed program was:" >&5 |
---|
5065 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5066 | |
---|
5067 | fi |
---|
5068 | rm -f conftest.err conftest.$ac_objext \ |
---|
5069 | conftest$ac_exeext conftest.$ac_ext |
---|
5070 | done |
---|
5071 | fi |
---|
5072 | LIBS=$ac_func_search_save_LIBS |
---|
5073 | fi |
---|
5074 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5075 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
5076 | if test "$ac_cv_search_opendir" != no; then |
---|
5077 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
5078 | |
---|
5079 | fi |
---|
5080 | |
---|
5081 | else |
---|
5082 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
5083 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
5084 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
5085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5086 | else |
---|
5087 | ac_func_search_save_LIBS=$LIBS |
---|
5088 | ac_cv_search_opendir=no |
---|
5089 | cat >conftest.$ac_ext <<_ACEOF |
---|
5090 | /* confdefs.h. */ |
---|
5091 | _ACEOF |
---|
5092 | cat confdefs.h >>conftest.$ac_ext |
---|
5093 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5094 | /* end confdefs.h. */ |
---|
5095 | |
---|
5096 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5097 | #ifdef __cplusplus |
---|
5098 | extern "C" |
---|
5099 | #endif |
---|
5100 | /* We use char because int might match the return type of a gcc2 |
---|
5101 | builtin and then its argument prototype would still apply. */ |
---|
5102 | char opendir (); |
---|
5103 | int |
---|
5104 | main () |
---|
5105 | { |
---|
5106 | opendir (); |
---|
5107 | ; |
---|
5108 | return 0; |
---|
5109 | } |
---|
5110 | _ACEOF |
---|
5111 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5113 | (eval $ac_link) 2>conftest.er1 |
---|
5114 | ac_status=$? |
---|
5115 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5116 | rm -f conftest.er1 |
---|
5117 | cat conftest.err >&5 |
---|
5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5119 | (exit $ac_status); } && |
---|
5120 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5121 | || test ! -s conftest.err' |
---|
5122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5123 | (eval $ac_try) 2>&5 |
---|
5124 | ac_status=$? |
---|
5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5126 | (exit $ac_status); }; } && |
---|
5127 | { ac_try='test -s conftest$ac_exeext' |
---|
5128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5129 | (eval $ac_try) 2>&5 |
---|
5130 | ac_status=$? |
---|
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5132 | (exit $ac_status); }; }; then |
---|
5133 | ac_cv_search_opendir="none required" |
---|
5134 | else |
---|
5135 | echo "$as_me: failed program was:" >&5 |
---|
5136 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5137 | |
---|
5138 | fi |
---|
5139 | rm -f conftest.err conftest.$ac_objext \ |
---|
5140 | conftest$ac_exeext conftest.$ac_ext |
---|
5141 | if test "$ac_cv_search_opendir" = no; then |
---|
5142 | for ac_lib in x; do |
---|
5143 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
5144 | cat >conftest.$ac_ext <<_ACEOF |
---|
5145 | /* confdefs.h. */ |
---|
5146 | _ACEOF |
---|
5147 | cat confdefs.h >>conftest.$ac_ext |
---|
5148 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5149 | /* end confdefs.h. */ |
---|
5150 | |
---|
5151 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5152 | #ifdef __cplusplus |
---|
5153 | extern "C" |
---|
5154 | #endif |
---|
5155 | /* We use char because int might match the return type of a gcc2 |
---|
5156 | builtin and then its argument prototype would still apply. */ |
---|
5157 | char opendir (); |
---|
5158 | int |
---|
5159 | main () |
---|
5160 | { |
---|
5161 | opendir (); |
---|
5162 | ; |
---|
5163 | return 0; |
---|
5164 | } |
---|
5165 | _ACEOF |
---|
5166 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5168 | (eval $ac_link) 2>conftest.er1 |
---|
5169 | ac_status=$? |
---|
5170 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5171 | rm -f conftest.er1 |
---|
5172 | cat conftest.err >&5 |
---|
5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5174 | (exit $ac_status); } && |
---|
5175 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5176 | || test ! -s conftest.err' |
---|
5177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5178 | (eval $ac_try) 2>&5 |
---|
5179 | ac_status=$? |
---|
5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5181 | (exit $ac_status); }; } && |
---|
5182 | { ac_try='test -s conftest$ac_exeext' |
---|
5183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5184 | (eval $ac_try) 2>&5 |
---|
5185 | ac_status=$? |
---|
5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5187 | (exit $ac_status); }; }; then |
---|
5188 | ac_cv_search_opendir="-l$ac_lib" |
---|
5189 | break |
---|
5190 | else |
---|
5191 | echo "$as_me: failed program was:" >&5 |
---|
5192 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5193 | |
---|
5194 | fi |
---|
5195 | rm -f conftest.err conftest.$ac_objext \ |
---|
5196 | conftest$ac_exeext conftest.$ac_ext |
---|
5197 | done |
---|
5198 | fi |
---|
5199 | LIBS=$ac_func_search_save_LIBS |
---|
5200 | fi |
---|
5201 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
5202 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
5203 | if test "$ac_cv_search_opendir" != no; then |
---|
5204 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
5205 | |
---|
5206 | fi |
---|
5207 | |
---|
5208 | fi |
---|
5209 | |
---|
5210 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
---|
5211 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
---|
5212 | if test "${ac_cv_header_stat_broken+set}" = set; then |
---|
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5214 | else |
---|
5215 | cat >conftest.$ac_ext <<_ACEOF |
---|
5216 | /* confdefs.h. */ |
---|
5217 | _ACEOF |
---|
5218 | cat confdefs.h >>conftest.$ac_ext |
---|
5219 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5220 | /* end confdefs.h. */ |
---|
5221 | #include <sys/types.h> |
---|
5222 | #include <sys/stat.h> |
---|
5223 | |
---|
5224 | #if defined(S_ISBLK) && defined(S_IFDIR) |
---|
5225 | # if S_ISBLK (S_IFDIR) |
---|
5226 | You lose. |
---|
5227 | # endif |
---|
5228 | #endif |
---|
5229 | |
---|
5230 | #if defined(S_ISBLK) && defined(S_IFCHR) |
---|
5231 | # if S_ISBLK (S_IFCHR) |
---|
5232 | You lose. |
---|
5233 | # endif |
---|
5234 | #endif |
---|
5235 | |
---|
5236 | #if defined(S_ISLNK) && defined(S_IFREG) |
---|
5237 | # if S_ISLNK (S_IFREG) |
---|
5238 | You lose. |
---|
5239 | # endif |
---|
5240 | #endif |
---|
5241 | |
---|
5242 | #if defined(S_ISSOCK) && defined(S_IFREG) |
---|
5243 | # if S_ISSOCK (S_IFREG) |
---|
5244 | You lose. |
---|
5245 | # endif |
---|
5246 | #endif |
---|
5247 | |
---|
5248 | _ACEOF |
---|
5249 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5250 | $EGREP "You lose" >/dev/null 2>&1; then |
---|
5251 | ac_cv_header_stat_broken=yes |
---|
5252 | else |
---|
5253 | ac_cv_header_stat_broken=no |
---|
5254 | fi |
---|
5255 | rm -f conftest* |
---|
5256 | |
---|
5257 | fi |
---|
5258 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
---|
5259 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
---|
5260 | if test $ac_cv_header_stat_broken = yes; then |
---|
5261 | |
---|
5262 | cat >>confdefs.h <<\_ACEOF |
---|
5263 | #define STAT_MACROS_BROKEN 1 |
---|
5264 | _ACEOF |
---|
5265 | |
---|
5266 | fi |
---|
5267 | |
---|
5268 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5269 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5270 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5272 | else |
---|
5273 | cat >conftest.$ac_ext <<_ACEOF |
---|
5274 | /* confdefs.h. */ |
---|
5275 | _ACEOF |
---|
5276 | cat confdefs.h >>conftest.$ac_ext |
---|
5277 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5278 | /* end confdefs.h. */ |
---|
5279 | #include <stdlib.h> |
---|
5280 | #include <stdarg.h> |
---|
5281 | #include <string.h> |
---|
5282 | #include <float.h> |
---|
5283 | |
---|
5284 | int |
---|
5285 | main () |
---|
5286 | { |
---|
5287 | |
---|
5288 | ; |
---|
5289 | return 0; |
---|
5290 | } |
---|
5291 | _ACEOF |
---|
5292 | rm -f conftest.$ac_objext |
---|
5293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5294 | (eval $ac_compile) 2>conftest.er1 |
---|
5295 | ac_status=$? |
---|
5296 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5297 | rm -f conftest.er1 |
---|
5298 | cat conftest.err >&5 |
---|
5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5300 | (exit $ac_status); } && |
---|
5301 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5302 | || test ! -s conftest.err' |
---|
5303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5304 | (eval $ac_try) 2>&5 |
---|
5305 | ac_status=$? |
---|
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5307 | (exit $ac_status); }; } && |
---|
5308 | { ac_try='test -s conftest.$ac_objext' |
---|
5309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5310 | (eval $ac_try) 2>&5 |
---|
5311 | ac_status=$? |
---|
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5313 | (exit $ac_status); }; }; then |
---|
5314 | ac_cv_header_stdc=yes |
---|
5315 | else |
---|
5316 | echo "$as_me: failed program was:" >&5 |
---|
5317 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5318 | |
---|
5319 | ac_cv_header_stdc=no |
---|
5320 | fi |
---|
5321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5322 | |
---|
5323 | if test $ac_cv_header_stdc = yes; then |
---|
5324 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5325 | cat >conftest.$ac_ext <<_ACEOF |
---|
5326 | /* confdefs.h. */ |
---|
5327 | _ACEOF |
---|
5328 | cat confdefs.h >>conftest.$ac_ext |
---|
5329 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5330 | /* end confdefs.h. */ |
---|
5331 | #include <string.h> |
---|
5332 | |
---|
5333 | _ACEOF |
---|
5334 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5335 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
5336 | : |
---|
5337 | else |
---|
5338 | ac_cv_header_stdc=no |
---|
5339 | fi |
---|
5340 | rm -f conftest* |
---|
5341 | |
---|
5342 | fi |
---|
5343 | |
---|
5344 | if test $ac_cv_header_stdc = yes; then |
---|
5345 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5346 | cat >conftest.$ac_ext <<_ACEOF |
---|
5347 | /* confdefs.h. */ |
---|
5348 | _ACEOF |
---|
5349 | cat confdefs.h >>conftest.$ac_ext |
---|
5350 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5351 | /* end confdefs.h. */ |
---|
5352 | #include <stdlib.h> |
---|
5353 | |
---|
5354 | _ACEOF |
---|
5355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5356 | $EGREP "free" >/dev/null 2>&1; then |
---|
5357 | : |
---|
5358 | else |
---|
5359 | ac_cv_header_stdc=no |
---|
5360 | fi |
---|
5361 | rm -f conftest* |
---|
5362 | |
---|
5363 | fi |
---|
5364 | |
---|
5365 | if test $ac_cv_header_stdc = yes; then |
---|
5366 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5367 | if test "$cross_compiling" = yes; then |
---|
5368 | : |
---|
5369 | else |
---|
5370 | cat >conftest.$ac_ext <<_ACEOF |
---|
5371 | /* confdefs.h. */ |
---|
5372 | _ACEOF |
---|
5373 | cat confdefs.h >>conftest.$ac_ext |
---|
5374 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5375 | /* end confdefs.h. */ |
---|
5376 | #include <ctype.h> |
---|
5377 | #if ((' ' & 0x0FF) == 0x020) |
---|
5378 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5379 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5380 | #else |
---|
5381 | # define ISLOWER(c) \ |
---|
5382 | (('a' <= (c) && (c) <= 'i') \ |
---|
5383 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5384 | || ('s' <= (c) && (c) <= 'z')) |
---|
5385 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5386 | #endif |
---|
5387 | |
---|
5388 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5389 | int |
---|
5390 | main () |
---|
5391 | { |
---|
5392 | int i; |
---|
5393 | for (i = 0; i < 256; i++) |
---|
5394 | if (XOR (islower (i), ISLOWER (i)) |
---|
5395 | || toupper (i) != TOUPPER (i)) |
---|
5396 | exit(2); |
---|
5397 | exit (0); |
---|
5398 | } |
---|
5399 | _ACEOF |
---|
5400 | rm -f conftest$ac_exeext |
---|
5401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5402 | (eval $ac_link) 2>&5 |
---|
5403 | ac_status=$? |
---|
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5407 | (eval $ac_try) 2>&5 |
---|
5408 | ac_status=$? |
---|
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5410 | (exit $ac_status); }; }; then |
---|
5411 | : |
---|
5412 | else |
---|
5413 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5414 | echo "$as_me: failed program was:" >&5 |
---|
5415 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5416 | |
---|
5417 | ( exit $ac_status ) |
---|
5418 | ac_cv_header_stdc=no |
---|
5419 | fi |
---|
5420 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5421 | fi |
---|
5422 | fi |
---|
5423 | fi |
---|
5424 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
5425 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
5426 | if test $ac_cv_header_stdc = yes; then |
---|
5427 | |
---|
5428 | cat >>confdefs.h <<\_ACEOF |
---|
5429 | #define STDC_HEADERS 1 |
---|
5430 | _ACEOF |
---|
5431 | |
---|
5432 | fi |
---|
5433 | |
---|
5434 | |
---|
5435 | echo "$as_me:$LINENO: checking for long long" >&5 |
---|
5436 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
---|
5437 | if test "${ac_cv_type_long_long+set}" = set; then |
---|
5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5439 | else |
---|
5440 | cat >conftest.$ac_ext <<_ACEOF |
---|
5441 | /* confdefs.h. */ |
---|
5442 | _ACEOF |
---|
5443 | cat confdefs.h >>conftest.$ac_ext |
---|
5444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5445 | /* end confdefs.h. */ |
---|
5446 | $ac_includes_default |
---|
5447 | int |
---|
5448 | main () |
---|
5449 | { |
---|
5450 | if ((long long *) 0) |
---|
5451 | return 0; |
---|
5452 | if (sizeof (long long)) |
---|
5453 | return 0; |
---|
5454 | ; |
---|
5455 | return 0; |
---|
5456 | } |
---|
5457 | _ACEOF |
---|
5458 | rm -f conftest.$ac_objext |
---|
5459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5460 | (eval $ac_compile) 2>conftest.er1 |
---|
5461 | ac_status=$? |
---|
5462 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5463 | rm -f conftest.er1 |
---|
5464 | cat conftest.err >&5 |
---|
5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5466 | (exit $ac_status); } && |
---|
5467 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5468 | || test ! -s conftest.err' |
---|
5469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5470 | (eval $ac_try) 2>&5 |
---|
5471 | ac_status=$? |
---|
5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5473 | (exit $ac_status); }; } && |
---|
5474 | { ac_try='test -s conftest.$ac_objext' |
---|
5475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5476 | (eval $ac_try) 2>&5 |
---|
5477 | ac_status=$? |
---|
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5479 | (exit $ac_status); }; }; then |
---|
5480 | ac_cv_type_long_long=yes |
---|
5481 | else |
---|
5482 | echo "$as_me: failed program was:" >&5 |
---|
5483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5484 | |
---|
5485 | ac_cv_type_long_long=no |
---|
5486 | fi |
---|
5487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5488 | fi |
---|
5489 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
---|
5490 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
---|
5491 | if test $ac_cv_type_long_long = yes; then |
---|
5492 | |
---|
5493 | cat >>confdefs.h <<_ACEOF |
---|
5494 | #define HAVE_LONG_LONG 1 |
---|
5495 | _ACEOF |
---|
5496 | |
---|
5497 | |
---|
5498 | fi |
---|
5499 | |
---|
5500 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
---|
5501 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
---|
5502 | if test "${ac_cv_type_uid_t+set}" = set; then |
---|
5503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5504 | else |
---|
5505 | cat >conftest.$ac_ext <<_ACEOF |
---|
5506 | /* confdefs.h. */ |
---|
5507 | _ACEOF |
---|
5508 | cat confdefs.h >>conftest.$ac_ext |
---|
5509 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5510 | /* end confdefs.h. */ |
---|
5511 | #include <sys/types.h> |
---|
5512 | |
---|
5513 | _ACEOF |
---|
5514 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5515 | $EGREP "uid_t" >/dev/null 2>&1; then |
---|
5516 | ac_cv_type_uid_t=yes |
---|
5517 | else |
---|
5518 | ac_cv_type_uid_t=no |
---|
5519 | fi |
---|
5520 | rm -f conftest* |
---|
5521 | |
---|
5522 | fi |
---|
5523 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
---|
5524 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
---|
5525 | if test $ac_cv_type_uid_t = no; then |
---|
5526 | |
---|
5527 | cat >>confdefs.h <<\_ACEOF |
---|
5528 | #define uid_t int |
---|
5529 | _ACEOF |
---|
5530 | |
---|
5531 | |
---|
5532 | cat >>confdefs.h <<\_ACEOF |
---|
5533 | #define gid_t int |
---|
5534 | _ACEOF |
---|
5535 | |
---|
5536 | fi |
---|
5537 | |
---|
5538 | echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 |
---|
5539 | echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6 |
---|
5540 | if test "${ac_cv_type_getgroups+set}" = set; then |
---|
5541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5542 | else |
---|
5543 | if test "$cross_compiling" = yes; then |
---|
5544 | ac_cv_type_getgroups=cross |
---|
5545 | else |
---|
5546 | cat >conftest.$ac_ext <<_ACEOF |
---|
5547 | /* confdefs.h. */ |
---|
5548 | _ACEOF |
---|
5549 | cat confdefs.h >>conftest.$ac_ext |
---|
5550 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5551 | /* end confdefs.h. */ |
---|
5552 | /* Thanks to Mike Rendell for this test. */ |
---|
5553 | #include <sys/types.h> |
---|
5554 | #define NGID 256 |
---|
5555 | #undef MAX |
---|
5556 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) |
---|
5557 | |
---|
5558 | int |
---|
5559 | main () |
---|
5560 | { |
---|
5561 | gid_t gidset[NGID]; |
---|
5562 | int i, n; |
---|
5563 | union { gid_t gval; long lval; } val; |
---|
5564 | |
---|
5565 | val.lval = -1; |
---|
5566 | for (i = 0; i < NGID; i++) |
---|
5567 | gidset[i] = val.gval; |
---|
5568 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, |
---|
5569 | gidset); |
---|
5570 | /* Exit non-zero if getgroups seems to require an array of ints. This |
---|
5571 | happens when gid_t is short but getgroups modifies an array of ints. */ |
---|
5572 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); |
---|
5573 | } |
---|
5574 | _ACEOF |
---|
5575 | rm -f conftest$ac_exeext |
---|
5576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5577 | (eval $ac_link) 2>&5 |
---|
5578 | ac_status=$? |
---|
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5580 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5582 | (eval $ac_try) 2>&5 |
---|
5583 | ac_status=$? |
---|
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5585 | (exit $ac_status); }; }; then |
---|
5586 | ac_cv_type_getgroups=gid_t |
---|
5587 | else |
---|
5588 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5589 | echo "$as_me: failed program was:" >&5 |
---|
5590 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5591 | |
---|
5592 | ( exit $ac_status ) |
---|
5593 | ac_cv_type_getgroups=int |
---|
5594 | fi |
---|
5595 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5596 | fi |
---|
5597 | if test $ac_cv_type_getgroups = cross; then |
---|
5598 | cat >conftest.$ac_ext <<_ACEOF |
---|
5599 | /* confdefs.h. */ |
---|
5600 | _ACEOF |
---|
5601 | cat confdefs.h >>conftest.$ac_ext |
---|
5602 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5603 | /* end confdefs.h. */ |
---|
5604 | #include <unistd.h> |
---|
5605 | |
---|
5606 | _ACEOF |
---|
5607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5608 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then |
---|
5609 | ac_cv_type_getgroups=gid_t |
---|
5610 | else |
---|
5611 | ac_cv_type_getgroups=int |
---|
5612 | fi |
---|
5613 | rm -f conftest* |
---|
5614 | |
---|
5615 | fi |
---|
5616 | fi |
---|
5617 | echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 |
---|
5618 | echo "${ECHO_T}$ac_cv_type_getgroups" >&6 |
---|
5619 | |
---|
5620 | cat >>confdefs.h <<_ACEOF |
---|
5621 | #define GETGROUPS_T $ac_cv_type_getgroups |
---|
5622 | _ACEOF |
---|
5623 | |
---|
5624 | |
---|
5625 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
---|
5626 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
---|
5627 | if test "${ac_cv_type_mode_t+set}" = set; then |
---|
5628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5629 | else |
---|
5630 | cat >conftest.$ac_ext <<_ACEOF |
---|
5631 | /* confdefs.h. */ |
---|
5632 | _ACEOF |
---|
5633 | cat confdefs.h >>conftest.$ac_ext |
---|
5634 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5635 | /* end confdefs.h. */ |
---|
5636 | $ac_includes_default |
---|
5637 | int |
---|
5638 | main () |
---|
5639 | { |
---|
5640 | if ((mode_t *) 0) |
---|
5641 | return 0; |
---|
5642 | if (sizeof (mode_t)) |
---|
5643 | return 0; |
---|
5644 | ; |
---|
5645 | return 0; |
---|
5646 | } |
---|
5647 | _ACEOF |
---|
5648 | rm -f conftest.$ac_objext |
---|
5649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5650 | (eval $ac_compile) 2>conftest.er1 |
---|
5651 | ac_status=$? |
---|
5652 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5653 | rm -f conftest.er1 |
---|
5654 | cat conftest.err >&5 |
---|
5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5656 | (exit $ac_status); } && |
---|
5657 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5658 | || test ! -s conftest.err' |
---|
5659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5660 | (eval $ac_try) 2>&5 |
---|
5661 | ac_status=$? |
---|
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5663 | (exit $ac_status); }; } && |
---|
5664 | { ac_try='test -s conftest.$ac_objext' |
---|
5665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5666 | (eval $ac_try) 2>&5 |
---|
5667 | ac_status=$? |
---|
5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5669 | (exit $ac_status); }; }; then |
---|
5670 | ac_cv_type_mode_t=yes |
---|
5671 | else |
---|
5672 | echo "$as_me: failed program was:" >&5 |
---|
5673 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5674 | |
---|
5675 | ac_cv_type_mode_t=no |
---|
5676 | fi |
---|
5677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5678 | fi |
---|
5679 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
---|
5680 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
---|
5681 | if test $ac_cv_type_mode_t = yes; then |
---|
5682 | : |
---|
5683 | else |
---|
5684 | |
---|
5685 | cat >>confdefs.h <<_ACEOF |
---|
5686 | #define mode_t int |
---|
5687 | _ACEOF |
---|
5688 | |
---|
5689 | fi |
---|
5690 | |
---|
5691 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
5692 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
---|
5693 | if test "${ac_cv_type_signal+set}" = set; then |
---|
5694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5695 | else |
---|
5696 | cat >conftest.$ac_ext <<_ACEOF |
---|
5697 | /* confdefs.h. */ |
---|
5698 | _ACEOF |
---|
5699 | cat confdefs.h >>conftest.$ac_ext |
---|
5700 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5701 | /* end confdefs.h. */ |
---|
5702 | #include <sys/types.h> |
---|
5703 | #include <signal.h> |
---|
5704 | #ifdef signal |
---|
5705 | # undef signal |
---|
5706 | #endif |
---|
5707 | #ifdef __cplusplus |
---|
5708 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
5709 | #else |
---|
5710 | void (*signal ()) (); |
---|
5711 | #endif |
---|
5712 | |
---|
5713 | int |
---|
5714 | main () |
---|
5715 | { |
---|
5716 | int i; |
---|
5717 | ; |
---|
5718 | return 0; |
---|
5719 | } |
---|
5720 | _ACEOF |
---|
5721 | rm -f conftest.$ac_objext |
---|
5722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5723 | (eval $ac_compile) 2>conftest.er1 |
---|
5724 | ac_status=$? |
---|
5725 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5726 | rm -f conftest.er1 |
---|
5727 | cat conftest.err >&5 |
---|
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5729 | (exit $ac_status); } && |
---|
5730 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5731 | || test ! -s conftest.err' |
---|
5732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5733 | (eval $ac_try) 2>&5 |
---|
5734 | ac_status=$? |
---|
5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5736 | (exit $ac_status); }; } && |
---|
5737 | { ac_try='test -s conftest.$ac_objext' |
---|
5738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5739 | (eval $ac_try) 2>&5 |
---|
5740 | ac_status=$? |
---|
5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5742 | (exit $ac_status); }; }; then |
---|
5743 | ac_cv_type_signal=void |
---|
5744 | else |
---|
5745 | echo "$as_me: failed program was:" >&5 |
---|
5746 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5747 | |
---|
5748 | ac_cv_type_signal=int |
---|
5749 | fi |
---|
5750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5751 | fi |
---|
5752 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
5753 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
---|
5754 | |
---|
5755 | cat >>confdefs.h <<_ACEOF |
---|
5756 | #define RETSIGTYPE $ac_cv_type_signal |
---|
5757 | _ACEOF |
---|
5758 | |
---|
5759 | |
---|
5760 | echo "$as_me:$LINENO: checking for size_t" >&5 |
---|
5761 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
---|
5762 | if test "${ac_cv_type_size_t+set}" = set; then |
---|
5763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5764 | else |
---|
5765 | cat >conftest.$ac_ext <<_ACEOF |
---|
5766 | /* confdefs.h. */ |
---|
5767 | _ACEOF |
---|
5768 | cat confdefs.h >>conftest.$ac_ext |
---|
5769 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5770 | /* end confdefs.h. */ |
---|
5771 | $ac_includes_default |
---|
5772 | int |
---|
5773 | main () |
---|
5774 | { |
---|
5775 | if ((size_t *) 0) |
---|
5776 | return 0; |
---|
5777 | if (sizeof (size_t)) |
---|
5778 | return 0; |
---|
5779 | ; |
---|
5780 | return 0; |
---|
5781 | } |
---|
5782 | _ACEOF |
---|
5783 | rm -f conftest.$ac_objext |
---|
5784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5785 | (eval $ac_compile) 2>conftest.er1 |
---|
5786 | ac_status=$? |
---|
5787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5788 | rm -f conftest.er1 |
---|
5789 | cat conftest.err >&5 |
---|
5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5791 | (exit $ac_status); } && |
---|
5792 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5793 | || test ! -s conftest.err' |
---|
5794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5795 | (eval $ac_try) 2>&5 |
---|
5796 | ac_status=$? |
---|
5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5798 | (exit $ac_status); }; } && |
---|
5799 | { ac_try='test -s conftest.$ac_objext' |
---|
5800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5801 | (eval $ac_try) 2>&5 |
---|
5802 | ac_status=$? |
---|
5803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5804 | (exit $ac_status); }; }; then |
---|
5805 | ac_cv_type_size_t=yes |
---|
5806 | else |
---|
5807 | echo "$as_me: failed program was:" >&5 |
---|
5808 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5809 | |
---|
5810 | ac_cv_type_size_t=no |
---|
5811 | fi |
---|
5812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5813 | fi |
---|
5814 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
---|
5815 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
---|
5816 | if test $ac_cv_type_size_t = yes; then |
---|
5817 | : |
---|
5818 | else |
---|
5819 | |
---|
5820 | cat >>confdefs.h <<_ACEOF |
---|
5821 | #define size_t unsigned |
---|
5822 | _ACEOF |
---|
5823 | |
---|
5824 | fi |
---|
5825 | |
---|
5826 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
---|
5827 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
---|
5828 | if test "${ac_cv_type_uid_t+set}" = set; then |
---|
5829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5830 | else |
---|
5831 | cat >conftest.$ac_ext <<_ACEOF |
---|
5832 | /* confdefs.h. */ |
---|
5833 | _ACEOF |
---|
5834 | cat confdefs.h >>conftest.$ac_ext |
---|
5835 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5836 | /* end confdefs.h. */ |
---|
5837 | #include <sys/types.h> |
---|
5838 | |
---|
5839 | _ACEOF |
---|
5840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5841 | $EGREP "uid_t" >/dev/null 2>&1; then |
---|
5842 | ac_cv_type_uid_t=yes |
---|
5843 | else |
---|
5844 | ac_cv_type_uid_t=no |
---|
5845 | fi |
---|
5846 | rm -f conftest* |
---|
5847 | |
---|
5848 | fi |
---|
5849 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
---|
5850 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
---|
5851 | if test $ac_cv_type_uid_t = no; then |
---|
5852 | |
---|
5853 | cat >>confdefs.h <<\_ACEOF |
---|
5854 | #define uid_t int |
---|
5855 | _ACEOF |
---|
5856 | |
---|
5857 | |
---|
5858 | cat >>confdefs.h <<\_ACEOF |
---|
5859 | #define gid_t int |
---|
5860 | _ACEOF |
---|
5861 | |
---|
5862 | fi |
---|
5863 | |
---|
5864 | |
---|
5865 | |
---|
5866 | |
---|
5867 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
---|
5868 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
---|
5869 | if test "${ac_cv_type_socklen_t+set}" = set; then |
---|
5870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5871 | else |
---|
5872 | cat >conftest.$ac_ext <<_ACEOF |
---|
5873 | /* confdefs.h. */ |
---|
5874 | _ACEOF |
---|
5875 | cat confdefs.h >>conftest.$ac_ext |
---|
5876 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5877 | /* end confdefs.h. */ |
---|
5878 | |
---|
5879 | #include <sys/types.h> |
---|
5880 | #include <sys/socket.h> |
---|
5881 | |
---|
5882 | |
---|
5883 | int |
---|
5884 | main () |
---|
5885 | { |
---|
5886 | if ((socklen_t *) 0) |
---|
5887 | return 0; |
---|
5888 | if (sizeof (socklen_t)) |
---|
5889 | return 0; |
---|
5890 | ; |
---|
5891 | return 0; |
---|
5892 | } |
---|
5893 | _ACEOF |
---|
5894 | rm -f conftest.$ac_objext |
---|
5895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5896 | (eval $ac_compile) 2>conftest.er1 |
---|
5897 | ac_status=$? |
---|
5898 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5899 | rm -f conftest.er1 |
---|
5900 | cat conftest.err >&5 |
---|
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5902 | (exit $ac_status); } && |
---|
5903 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5904 | || test ! -s conftest.err' |
---|
5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5906 | (eval $ac_try) 2>&5 |
---|
5907 | ac_status=$? |
---|
5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5909 | (exit $ac_status); }; } && |
---|
5910 | { ac_try='test -s conftest.$ac_objext' |
---|
5911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5912 | (eval $ac_try) 2>&5 |
---|
5913 | ac_status=$? |
---|
5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5915 | (exit $ac_status); }; }; then |
---|
5916 | ac_cv_type_socklen_t=yes |
---|
5917 | else |
---|
5918 | echo "$as_me: failed program was:" >&5 |
---|
5919 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5920 | |
---|
5921 | ac_cv_type_socklen_t=no |
---|
5922 | fi |
---|
5923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5924 | fi |
---|
5925 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
---|
5926 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
---|
5927 | if test $ac_cv_type_socklen_t = yes; then |
---|
5928 | : |
---|
5929 | else |
---|
5930 | |
---|
5931 | cat >>confdefs.h <<\_ACEOF |
---|
5932 | #define socklen_t int |
---|
5933 | _ACEOF |
---|
5934 | |
---|
5935 | fi |
---|
5936 | |
---|
5937 | |
---|
5938 | |
---|
5939 | |
---|
5940 | echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5 |
---|
5941 | echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6 |
---|
5942 | if test "${ac_cv_member_struct_dirent_d_ino+set}" = set; then |
---|
5943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5944 | else |
---|
5945 | cat >conftest.$ac_ext <<_ACEOF |
---|
5946 | /* confdefs.h. */ |
---|
5947 | _ACEOF |
---|
5948 | cat confdefs.h >>conftest.$ac_ext |
---|
5949 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5950 | /* end confdefs.h. */ |
---|
5951 | #ifdef HAVE_DIRENT_H |
---|
5952 | # include <dirent.h> |
---|
5953 | #else |
---|
5954 | # ifdef HAVE_NDIR_H |
---|
5955 | # include <ndir.h> |
---|
5956 | # else |
---|
5957 | # include <sys/dir.h> |
---|
5958 | # endif |
---|
5959 | # define dirent direct |
---|
5960 | #endif |
---|
5961 | |
---|
5962 | int |
---|
5963 | main () |
---|
5964 | { |
---|
5965 | static struct dirent ac_aggr; |
---|
5966 | if (ac_aggr.d_ino) |
---|
5967 | return 0; |
---|
5968 | ; |
---|
5969 | return 0; |
---|
5970 | } |
---|
5971 | _ACEOF |
---|
5972 | rm -f conftest.$ac_objext |
---|
5973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5974 | (eval $ac_compile) 2>conftest.er1 |
---|
5975 | ac_status=$? |
---|
5976 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5977 | rm -f conftest.er1 |
---|
5978 | cat conftest.err >&5 |
---|
5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5980 | (exit $ac_status); } && |
---|
5981 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5982 | || test ! -s conftest.err' |
---|
5983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5984 | (eval $ac_try) 2>&5 |
---|
5985 | ac_status=$? |
---|
5986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5987 | (exit $ac_status); }; } && |
---|
5988 | { ac_try='test -s conftest.$ac_objext' |
---|
5989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5990 | (eval $ac_try) 2>&5 |
---|
5991 | ac_status=$? |
---|
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5993 | (exit $ac_status); }; }; then |
---|
5994 | ac_cv_member_struct_dirent_d_ino=yes |
---|
5995 | else |
---|
5996 | echo "$as_me: failed program was:" >&5 |
---|
5997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5998 | |
---|
5999 | cat >conftest.$ac_ext <<_ACEOF |
---|
6000 | /* confdefs.h. */ |
---|
6001 | _ACEOF |
---|
6002 | cat confdefs.h >>conftest.$ac_ext |
---|
6003 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6004 | /* end confdefs.h. */ |
---|
6005 | #ifdef HAVE_DIRENT_H |
---|
6006 | # include <dirent.h> |
---|
6007 | #else |
---|
6008 | # ifdef HAVE_NDIR_H |
---|
6009 | # include <ndir.h> |
---|
6010 | # else |
---|
6011 | # include <sys/dir.h> |
---|
6012 | # endif |
---|
6013 | # define dirent direct |
---|
6014 | #endif |
---|
6015 | |
---|
6016 | int |
---|
6017 | main () |
---|
6018 | { |
---|
6019 | static struct dirent ac_aggr; |
---|
6020 | if (sizeof ac_aggr.d_ino) |
---|
6021 | return 0; |
---|
6022 | ; |
---|
6023 | return 0; |
---|
6024 | } |
---|
6025 | _ACEOF |
---|
6026 | rm -f conftest.$ac_objext |
---|
6027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6028 | (eval $ac_compile) 2>conftest.er1 |
---|
6029 | ac_status=$? |
---|
6030 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6031 | rm -f conftest.er1 |
---|
6032 | cat conftest.err >&5 |
---|
6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6034 | (exit $ac_status); } && |
---|
6035 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6036 | || test ! -s conftest.err' |
---|
6037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6038 | (eval $ac_try) 2>&5 |
---|
6039 | ac_status=$? |
---|
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6041 | (exit $ac_status); }; } && |
---|
6042 | { ac_try='test -s conftest.$ac_objext' |
---|
6043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6044 | (eval $ac_try) 2>&5 |
---|
6045 | ac_status=$? |
---|
6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6047 | (exit $ac_status); }; }; then |
---|
6048 | ac_cv_member_struct_dirent_d_ino=yes |
---|
6049 | else |
---|
6050 | echo "$as_me: failed program was:" >&5 |
---|
6051 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6052 | |
---|
6053 | ac_cv_member_struct_dirent_d_ino=no |
---|
6054 | fi |
---|
6055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6056 | fi |
---|
6057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6058 | fi |
---|
6059 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_ino" >&5 |
---|
6060 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_ino" >&6 |
---|
6061 | if test $ac_cv_member_struct_dirent_d_ino = yes; then |
---|
6062 | |
---|
6063 | cat >>confdefs.h <<_ACEOF |
---|
6064 | #define HAVE_STRUCT_DIRENT_D_INO 1 |
---|
6065 | _ACEOF |
---|
6066 | |
---|
6067 | |
---|
6068 | fi |
---|
6069 | |
---|
6070 | echo "$as_me:$LINENO: checking for struct utmp.ut_host" >&5 |
---|
6071 | echo $ECHO_N "checking for struct utmp.ut_host... $ECHO_C" >&6 |
---|
6072 | if test "${ac_cv_member_struct_utmp_ut_host+set}" = set; then |
---|
6073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6074 | else |
---|
6075 | cat >conftest.$ac_ext <<_ACEOF |
---|
6076 | /* confdefs.h. */ |
---|
6077 | _ACEOF |
---|
6078 | cat confdefs.h >>conftest.$ac_ext |
---|
6079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6080 | /* end confdefs.h. */ |
---|
6081 | #ifdef HAVE_UTMPX_H |
---|
6082 | #include <utmpx.h> |
---|
6083 | #define utmp utmpx |
---|
6084 | #elif defined HAVE_UTMP_H |
---|
6085 | #include <utmp.h> |
---|
6086 | #endif |
---|
6087 | |
---|
6088 | int |
---|
6089 | main () |
---|
6090 | { |
---|
6091 | static struct utmp ac_aggr; |
---|
6092 | if (ac_aggr.ut_host) |
---|
6093 | return 0; |
---|
6094 | ; |
---|
6095 | return 0; |
---|
6096 | } |
---|
6097 | _ACEOF |
---|
6098 | rm -f conftest.$ac_objext |
---|
6099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6100 | (eval $ac_compile) 2>conftest.er1 |
---|
6101 | ac_status=$? |
---|
6102 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6103 | rm -f conftest.er1 |
---|
6104 | cat conftest.err >&5 |
---|
6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6106 | (exit $ac_status); } && |
---|
6107 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6108 | || test ! -s conftest.err' |
---|
6109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6110 | (eval $ac_try) 2>&5 |
---|
6111 | ac_status=$? |
---|
6112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6113 | (exit $ac_status); }; } && |
---|
6114 | { ac_try='test -s conftest.$ac_objext' |
---|
6115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6116 | (eval $ac_try) 2>&5 |
---|
6117 | ac_status=$? |
---|
6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6119 | (exit $ac_status); }; }; then |
---|
6120 | ac_cv_member_struct_utmp_ut_host=yes |
---|
6121 | else |
---|
6122 | echo "$as_me: failed program was:" >&5 |
---|
6123 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6124 | |
---|
6125 | cat >conftest.$ac_ext <<_ACEOF |
---|
6126 | /* confdefs.h. */ |
---|
6127 | _ACEOF |
---|
6128 | cat confdefs.h >>conftest.$ac_ext |
---|
6129 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6130 | /* end confdefs.h. */ |
---|
6131 | #ifdef HAVE_UTMPX_H |
---|
6132 | #include <utmpx.h> |
---|
6133 | #define utmp utmpx |
---|
6134 | #elif defined HAVE_UTMP_H |
---|
6135 | #include <utmp.h> |
---|
6136 | #endif |
---|
6137 | |
---|
6138 | int |
---|
6139 | main () |
---|
6140 | { |
---|
6141 | static struct utmp ac_aggr; |
---|
6142 | if (sizeof ac_aggr.ut_host) |
---|
6143 | return 0; |
---|
6144 | ; |
---|
6145 | return 0; |
---|
6146 | } |
---|
6147 | _ACEOF |
---|
6148 | rm -f conftest.$ac_objext |
---|
6149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6150 | (eval $ac_compile) 2>conftest.er1 |
---|
6151 | ac_status=$? |
---|
6152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6153 | rm -f conftest.er1 |
---|
6154 | cat conftest.err >&5 |
---|
6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6156 | (exit $ac_status); } && |
---|
6157 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6158 | || test ! -s conftest.err' |
---|
6159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6160 | (eval $ac_try) 2>&5 |
---|
6161 | ac_status=$? |
---|
6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6163 | (exit $ac_status); }; } && |
---|
6164 | { ac_try='test -s conftest.$ac_objext' |
---|
6165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6166 | (eval $ac_try) 2>&5 |
---|
6167 | ac_status=$? |
---|
6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6169 | (exit $ac_status); }; }; then |
---|
6170 | ac_cv_member_struct_utmp_ut_host=yes |
---|
6171 | else |
---|
6172 | echo "$as_me: failed program was:" >&5 |
---|
6173 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6174 | |
---|
6175 | ac_cv_member_struct_utmp_ut_host=no |
---|
6176 | fi |
---|
6177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6178 | fi |
---|
6179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6180 | fi |
---|
6181 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_host" >&5 |
---|
6182 | echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_host" >&6 |
---|
6183 | if test $ac_cv_member_struct_utmp_ut_host = yes; then |
---|
6184 | |
---|
6185 | cat >>confdefs.h <<_ACEOF |
---|
6186 | #define HAVE_STRUCT_UTMP_UT_HOST 1 |
---|
6187 | _ACEOF |
---|
6188 | |
---|
6189 | |
---|
6190 | fi |
---|
6191 | echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5 |
---|
6192 | echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6 |
---|
6193 | if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then |
---|
6194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6195 | else |
---|
6196 | cat >conftest.$ac_ext <<_ACEOF |
---|
6197 | /* confdefs.h. */ |
---|
6198 | _ACEOF |
---|
6199 | cat confdefs.h >>conftest.$ac_ext |
---|
6200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6201 | /* end confdefs.h. */ |
---|
6202 | #ifdef HAVE_UTMPX_H |
---|
6203 | #include <utmpx.h> |
---|
6204 | #define utmp utmpx |
---|
6205 | #elif defined HAVE_UTMP_H |
---|
6206 | #include <utmp.h> |
---|
6207 | #endif |
---|
6208 | |
---|
6209 | int |
---|
6210 | main () |
---|
6211 | { |
---|
6212 | static struct utmp ac_aggr; |
---|
6213 | if (ac_aggr.ut_user) |
---|
6214 | return 0; |
---|
6215 | ; |
---|
6216 | return 0; |
---|
6217 | } |
---|
6218 | _ACEOF |
---|
6219 | rm -f conftest.$ac_objext |
---|
6220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6221 | (eval $ac_compile) 2>conftest.er1 |
---|
6222 | ac_status=$? |
---|
6223 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6224 | rm -f conftest.er1 |
---|
6225 | cat conftest.err >&5 |
---|
6226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6227 | (exit $ac_status); } && |
---|
6228 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6229 | || test ! -s conftest.err' |
---|
6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6231 | (eval $ac_try) 2>&5 |
---|
6232 | ac_status=$? |
---|
6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6234 | (exit $ac_status); }; } && |
---|
6235 | { ac_try='test -s conftest.$ac_objext' |
---|
6236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6237 | (eval $ac_try) 2>&5 |
---|
6238 | ac_status=$? |
---|
6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6240 | (exit $ac_status); }; }; then |
---|
6241 | ac_cv_member_struct_utmp_ut_user=yes |
---|
6242 | else |
---|
6243 | echo "$as_me: failed program was:" >&5 |
---|
6244 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6245 | |
---|
6246 | cat >conftest.$ac_ext <<_ACEOF |
---|
6247 | /* confdefs.h. */ |
---|
6248 | _ACEOF |
---|
6249 | cat confdefs.h >>conftest.$ac_ext |
---|
6250 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6251 | /* end confdefs.h. */ |
---|
6252 | #ifdef HAVE_UTMPX_H |
---|
6253 | #include <utmpx.h> |
---|
6254 | #define utmp utmpx |
---|
6255 | #elif defined HAVE_UTMP_H |
---|
6256 | #include <utmp.h> |
---|
6257 | #endif |
---|
6258 | |
---|
6259 | int |
---|
6260 | main () |
---|
6261 | { |
---|
6262 | static struct utmp ac_aggr; |
---|
6263 | if (sizeof ac_aggr.ut_user) |
---|
6264 | return 0; |
---|
6265 | ; |
---|
6266 | return 0; |
---|
6267 | } |
---|
6268 | _ACEOF |
---|
6269 | rm -f conftest.$ac_objext |
---|
6270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6271 | (eval $ac_compile) 2>conftest.er1 |
---|
6272 | ac_status=$? |
---|
6273 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6274 | rm -f conftest.er1 |
---|
6275 | cat conftest.err >&5 |
---|
6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6277 | (exit $ac_status); } && |
---|
6278 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6279 | || test ! -s conftest.err' |
---|
6280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6281 | (eval $ac_try) 2>&5 |
---|
6282 | ac_status=$? |
---|
6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6284 | (exit $ac_status); }; } && |
---|
6285 | { ac_try='test -s conftest.$ac_objext' |
---|
6286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6287 | (eval $ac_try) 2>&5 |
---|
6288 | ac_status=$? |
---|
6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6290 | (exit $ac_status); }; }; then |
---|
6291 | ac_cv_member_struct_utmp_ut_user=yes |
---|
6292 | else |
---|
6293 | echo "$as_me: failed program was:" >&5 |
---|
6294 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6295 | |
---|
6296 | ac_cv_member_struct_utmp_ut_user=no |
---|
6297 | fi |
---|
6298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6299 | fi |
---|
6300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6301 | fi |
---|
6302 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5 |
---|
6303 | echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6 |
---|
6304 | if test $ac_cv_member_struct_utmp_ut_user = yes; then |
---|
6305 | |
---|
6306 | cat >>confdefs.h <<_ACEOF |
---|
6307 | #define HAVE_STRUCT_UTMP_UT_USER 1 |
---|
6308 | _ACEOF |
---|
6309 | |
---|
6310 | |
---|
6311 | fi |
---|
6312 | echo "$as_me:$LINENO: checking for struct utmp.ut_tv" >&5 |
---|
6313 | echo $ECHO_N "checking for struct utmp.ut_tv... $ECHO_C" >&6 |
---|
6314 | if test "${ac_cv_member_struct_utmp_ut_tv+set}" = set; then |
---|
6315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6316 | else |
---|
6317 | cat >conftest.$ac_ext <<_ACEOF |
---|
6318 | /* confdefs.h. */ |
---|
6319 | _ACEOF |
---|
6320 | cat confdefs.h >>conftest.$ac_ext |
---|
6321 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6322 | /* end confdefs.h. */ |
---|
6323 | #ifdef HAVE_UTMPX_H |
---|
6324 | #include <utmpx.h> |
---|
6325 | #define utmp utmpx |
---|
6326 | #elif defined HAVE_UTMP_H |
---|
6327 | #include <utmp.h> |
---|
6328 | #endif |
---|
6329 | |
---|
6330 | int |
---|
6331 | main () |
---|
6332 | { |
---|
6333 | static struct utmp ac_aggr; |
---|
6334 | if (ac_aggr.ut_tv) |
---|
6335 | return 0; |
---|
6336 | ; |
---|
6337 | return 0; |
---|
6338 | } |
---|
6339 | _ACEOF |
---|
6340 | rm -f conftest.$ac_objext |
---|
6341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6342 | (eval $ac_compile) 2>conftest.er1 |
---|
6343 | ac_status=$? |
---|
6344 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6345 | rm -f conftest.er1 |
---|
6346 | cat conftest.err >&5 |
---|
6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6348 | (exit $ac_status); } && |
---|
6349 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6350 | || test ! -s conftest.err' |
---|
6351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6352 | (eval $ac_try) 2>&5 |
---|
6353 | ac_status=$? |
---|
6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6355 | (exit $ac_status); }; } && |
---|
6356 | { ac_try='test -s conftest.$ac_objext' |
---|
6357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6358 | (eval $ac_try) 2>&5 |
---|
6359 | ac_status=$? |
---|
6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6361 | (exit $ac_status); }; }; then |
---|
6362 | ac_cv_member_struct_utmp_ut_tv=yes |
---|
6363 | else |
---|
6364 | echo "$as_me: failed program was:" >&5 |
---|
6365 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6366 | |
---|
6367 | cat >conftest.$ac_ext <<_ACEOF |
---|
6368 | /* confdefs.h. */ |
---|
6369 | _ACEOF |
---|
6370 | cat confdefs.h >>conftest.$ac_ext |
---|
6371 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6372 | /* end confdefs.h. */ |
---|
6373 | #ifdef HAVE_UTMPX_H |
---|
6374 | #include <utmpx.h> |
---|
6375 | #define utmp utmpx |
---|
6376 | #elif defined HAVE_UTMP_H |
---|
6377 | #include <utmp.h> |
---|
6378 | #endif |
---|
6379 | |
---|
6380 | int |
---|
6381 | main () |
---|
6382 | { |
---|
6383 | static struct utmp ac_aggr; |
---|
6384 | if (sizeof ac_aggr.ut_tv) |
---|
6385 | return 0; |
---|
6386 | ; |
---|
6387 | return 0; |
---|
6388 | } |
---|
6389 | _ACEOF |
---|
6390 | rm -f conftest.$ac_objext |
---|
6391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6392 | (eval $ac_compile) 2>conftest.er1 |
---|
6393 | ac_status=$? |
---|
6394 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6395 | rm -f conftest.er1 |
---|
6396 | cat conftest.err >&5 |
---|
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6398 | (exit $ac_status); } && |
---|
6399 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6400 | || test ! -s conftest.err' |
---|
6401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6402 | (eval $ac_try) 2>&5 |
---|
6403 | ac_status=$? |
---|
6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6405 | (exit $ac_status); }; } && |
---|
6406 | { ac_try='test -s conftest.$ac_objext' |
---|
6407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6408 | (eval $ac_try) 2>&5 |
---|
6409 | ac_status=$? |
---|
6410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6411 | (exit $ac_status); }; }; then |
---|
6412 | ac_cv_member_struct_utmp_ut_tv=yes |
---|
6413 | else |
---|
6414 | echo "$as_me: failed program was:" >&5 |
---|
6415 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6416 | |
---|
6417 | ac_cv_member_struct_utmp_ut_tv=no |
---|
6418 | fi |
---|
6419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6420 | fi |
---|
6421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6422 | fi |
---|
6423 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_tv" >&5 |
---|
6424 | echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_tv" >&6 |
---|
6425 | if test $ac_cv_member_struct_utmp_ut_tv = yes; then |
---|
6426 | |
---|
6427 | cat >>confdefs.h <<_ACEOF |
---|
6428 | #define HAVE_STRUCT_UTMP_UT_TV 1 |
---|
6429 | _ACEOF |
---|
6430 | |
---|
6431 | |
---|
6432 | fi |
---|
6433 | echo "$as_me:$LINENO: checking for struct utmp.ut_xtime" >&5 |
---|
6434 | echo $ECHO_N "checking for struct utmp.ut_xtime... $ECHO_C" >&6 |
---|
6435 | if test "${ac_cv_member_struct_utmp_ut_xtime+set}" = set; then |
---|
6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6437 | else |
---|
6438 | cat >conftest.$ac_ext <<_ACEOF |
---|
6439 | /* confdefs.h. */ |
---|
6440 | _ACEOF |
---|
6441 | cat confdefs.h >>conftest.$ac_ext |
---|
6442 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6443 | /* end confdefs.h. */ |
---|
6444 | #ifdef HAVE_UTMPX_H |
---|
6445 | #include <utmpx.h> |
---|
6446 | #define utmp utmpx |
---|
6447 | #elif defined HAVE_UTMP_H |
---|
6448 | #include <utmp.h> |
---|
6449 | #endif |
---|
6450 | |
---|
6451 | int |
---|
6452 | main () |
---|
6453 | { |
---|
6454 | static struct utmp ac_aggr; |
---|
6455 | if (ac_aggr.ut_xtime) |
---|
6456 | return 0; |
---|
6457 | ; |
---|
6458 | return 0; |
---|
6459 | } |
---|
6460 | _ACEOF |
---|
6461 | rm -f conftest.$ac_objext |
---|
6462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6463 | (eval $ac_compile) 2>conftest.er1 |
---|
6464 | ac_status=$? |
---|
6465 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6466 | rm -f conftest.er1 |
---|
6467 | cat conftest.err >&5 |
---|
6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6469 | (exit $ac_status); } && |
---|
6470 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6471 | || test ! -s conftest.err' |
---|
6472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6473 | (eval $ac_try) 2>&5 |
---|
6474 | ac_status=$? |
---|
6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6476 | (exit $ac_status); }; } && |
---|
6477 | { ac_try='test -s conftest.$ac_objext' |
---|
6478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6479 | (eval $ac_try) 2>&5 |
---|
6480 | ac_status=$? |
---|
6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6482 | (exit $ac_status); }; }; then |
---|
6483 | ac_cv_member_struct_utmp_ut_xtime=yes |
---|
6484 | else |
---|
6485 | echo "$as_me: failed program was:" >&5 |
---|
6486 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6487 | |
---|
6488 | cat >conftest.$ac_ext <<_ACEOF |
---|
6489 | /* confdefs.h. */ |
---|
6490 | _ACEOF |
---|
6491 | cat confdefs.h >>conftest.$ac_ext |
---|
6492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6493 | /* end confdefs.h. */ |
---|
6494 | #ifdef HAVE_UTMPX_H |
---|
6495 | #include <utmpx.h> |
---|
6496 | #define utmp utmpx |
---|
6497 | #elif defined HAVE_UTMP_H |
---|
6498 | #include <utmp.h> |
---|
6499 | #endif |
---|
6500 | |
---|
6501 | int |
---|
6502 | main () |
---|
6503 | { |
---|
6504 | static struct utmp ac_aggr; |
---|
6505 | if (sizeof ac_aggr.ut_xtime) |
---|
6506 | return 0; |
---|
6507 | ; |
---|
6508 | return 0; |
---|
6509 | } |
---|
6510 | _ACEOF |
---|
6511 | rm -f conftest.$ac_objext |
---|
6512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6513 | (eval $ac_compile) 2>conftest.er1 |
---|
6514 | ac_status=$? |
---|
6515 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6516 | rm -f conftest.er1 |
---|
6517 | cat conftest.err >&5 |
---|
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6519 | (exit $ac_status); } && |
---|
6520 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6521 | || test ! -s conftest.err' |
---|
6522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6523 | (eval $ac_try) 2>&5 |
---|
6524 | ac_status=$? |
---|
6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6526 | (exit $ac_status); }; } && |
---|
6527 | { ac_try='test -s conftest.$ac_objext' |
---|
6528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6529 | (eval $ac_try) 2>&5 |
---|
6530 | ac_status=$? |
---|
6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6532 | (exit $ac_status); }; }; then |
---|
6533 | ac_cv_member_struct_utmp_ut_xtime=yes |
---|
6534 | else |
---|
6535 | echo "$as_me: failed program was:" >&5 |
---|
6536 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6537 | |
---|
6538 | ac_cv_member_struct_utmp_ut_xtime=no |
---|
6539 | fi |
---|
6540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6541 | fi |
---|
6542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6543 | fi |
---|
6544 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_xtime" >&5 |
---|
6545 | echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_xtime" >&6 |
---|
6546 | if test $ac_cv_member_struct_utmp_ut_xtime = yes; then |
---|
6547 | |
---|
6548 | cat >>confdefs.h <<_ACEOF |
---|
6549 | #define HAVE_STRUCT_UTMP_UT_XTIME 1 |
---|
6550 | _ACEOF |
---|
6551 | |
---|
6552 | |
---|
6553 | fi |
---|
6554 | |
---|
6555 | echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5 |
---|
6556 | echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6 |
---|
6557 | if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then |
---|
6558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6559 | else |
---|
6560 | cat >conftest.$ac_ext <<_ACEOF |
---|
6561 | /* confdefs.h. */ |
---|
6562 | _ACEOF |
---|
6563 | cat confdefs.h >>conftest.$ac_ext |
---|
6564 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6565 | /* end confdefs.h. */ |
---|
6566 | #include <sys/types.h> |
---|
6567 | #include <sys/socket.h> |
---|
6568 | |
---|
6569 | int |
---|
6570 | main () |
---|
6571 | { |
---|
6572 | static struct sockaddr_storage ac_aggr; |
---|
6573 | if (ac_aggr.ss_family) |
---|
6574 | return 0; |
---|
6575 | ; |
---|
6576 | return 0; |
---|
6577 | } |
---|
6578 | _ACEOF |
---|
6579 | rm -f conftest.$ac_objext |
---|
6580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6581 | (eval $ac_compile) 2>conftest.er1 |
---|
6582 | ac_status=$? |
---|
6583 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6584 | rm -f conftest.er1 |
---|
6585 | cat conftest.err >&5 |
---|
6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6587 | (exit $ac_status); } && |
---|
6588 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6589 | || test ! -s conftest.err' |
---|
6590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6591 | (eval $ac_try) 2>&5 |
---|
6592 | ac_status=$? |
---|
6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6594 | (exit $ac_status); }; } && |
---|
6595 | { ac_try='test -s conftest.$ac_objext' |
---|
6596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6597 | (eval $ac_try) 2>&5 |
---|
6598 | ac_status=$? |
---|
6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6600 | (exit $ac_status); }; }; then |
---|
6601 | ac_cv_member_struct_sockaddr_storage_ss_family=yes |
---|
6602 | else |
---|
6603 | echo "$as_me: failed program was:" >&5 |
---|
6604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6605 | |
---|
6606 | cat >conftest.$ac_ext <<_ACEOF |
---|
6607 | /* confdefs.h. */ |
---|
6608 | _ACEOF |
---|
6609 | cat confdefs.h >>conftest.$ac_ext |
---|
6610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6611 | /* end confdefs.h. */ |
---|
6612 | #include <sys/types.h> |
---|
6613 | #include <sys/socket.h> |
---|
6614 | |
---|
6615 | int |
---|
6616 | main () |
---|
6617 | { |
---|
6618 | static struct sockaddr_storage ac_aggr; |
---|
6619 | if (sizeof ac_aggr.ss_family) |
---|
6620 | return 0; |
---|
6621 | ; |
---|
6622 | return 0; |
---|
6623 | } |
---|
6624 | _ACEOF |
---|
6625 | rm -f conftest.$ac_objext |
---|
6626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6627 | (eval $ac_compile) 2>conftest.er1 |
---|
6628 | ac_status=$? |
---|
6629 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6630 | rm -f conftest.er1 |
---|
6631 | cat conftest.err >&5 |
---|
6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6633 | (exit $ac_status); } && |
---|
6634 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6635 | || test ! -s conftest.err' |
---|
6636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6637 | (eval $ac_try) 2>&5 |
---|
6638 | ac_status=$? |
---|
6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6640 | (exit $ac_status); }; } && |
---|
6641 | { ac_try='test -s conftest.$ac_objext' |
---|
6642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6643 | (eval $ac_try) 2>&5 |
---|
6644 | ac_status=$? |
---|
6645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6646 | (exit $ac_status); }; }; then |
---|
6647 | ac_cv_member_struct_sockaddr_storage_ss_family=yes |
---|
6648 | else |
---|
6649 | echo "$as_me: failed program was:" >&5 |
---|
6650 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6651 | |
---|
6652 | ac_cv_member_struct_sockaddr_storage_ss_family=no |
---|
6653 | fi |
---|
6654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6655 | fi |
---|
6656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6657 | fi |
---|
6658 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5 |
---|
6659 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6 |
---|
6660 | if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then |
---|
6661 | |
---|
6662 | cat >>confdefs.h <<_ACEOF |
---|
6663 | #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 |
---|
6664 | _ACEOF |
---|
6665 | |
---|
6666 | |
---|
6667 | fi |
---|
6668 | |
---|
6669 | |
---|
6670 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
6671 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
6672 | if test "${ac_cv_c_const+set}" = set; then |
---|
6673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6674 | else |
---|
6675 | cat >conftest.$ac_ext <<_ACEOF |
---|
6676 | /* confdefs.h. */ |
---|
6677 | _ACEOF |
---|
6678 | cat confdefs.h >>conftest.$ac_ext |
---|
6679 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6680 | /* end confdefs.h. */ |
---|
6681 | |
---|
6682 | int |
---|
6683 | main () |
---|
6684 | { |
---|
6685 | /* FIXME: Include the comments suggested by Paul. */ |
---|
6686 | #ifndef __cplusplus |
---|
6687 | /* Ultrix mips cc rejects this. */ |
---|
6688 | typedef int charset[2]; |
---|
6689 | const charset x; |
---|
6690 | /* SunOS 4.1.1 cc rejects this. */ |
---|
6691 | char const *const *ccp; |
---|
6692 | char **p; |
---|
6693 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
6694 | struct point {int x, y;}; |
---|
6695 | static struct point const zero = {0,0}; |
---|
6696 | /* AIX XL C 1.02.0.0 rejects this. |
---|
6697 | It does not let you subtract one const X* pointer from another in |
---|
6698 | an arm of an if-expression whose if-part is not a constant |
---|
6699 | expression */ |
---|
6700 | const char *g = "string"; |
---|
6701 | ccp = &g + (g ? g-g : 0); |
---|
6702 | /* HPUX 7.0 cc rejects these. */ |
---|
6703 | ++ccp; |
---|
6704 | p = (char**) ccp; |
---|
6705 | ccp = (char const *const *) p; |
---|
6706 | { /* SCO 3.2v4 cc rejects this. */ |
---|
6707 | char *t; |
---|
6708 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
6709 | |
---|
6710 | *t++ = 0; |
---|
6711 | } |
---|
6712 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
6713 | int x[] = {25, 17}; |
---|
6714 | const int *foo = &x[0]; |
---|
6715 | ++foo; |
---|
6716 | } |
---|
6717 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
6718 | typedef const int *iptr; |
---|
6719 | iptr p = 0; |
---|
6720 | ++p; |
---|
6721 | } |
---|
6722 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
6723 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
6724 | struct s { int j; const int *ap[3]; }; |
---|
6725 | struct s *b; b->j = 5; |
---|
6726 | } |
---|
6727 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
6728 | const int foo = 10; |
---|
6729 | } |
---|
6730 | #endif |
---|
6731 | |
---|
6732 | ; |
---|
6733 | return 0; |
---|
6734 | } |
---|
6735 | _ACEOF |
---|
6736 | rm -f conftest.$ac_objext |
---|
6737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6738 | (eval $ac_compile) 2>conftest.er1 |
---|
6739 | ac_status=$? |
---|
6740 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6741 | rm -f conftest.er1 |
---|
6742 | cat conftest.err >&5 |
---|
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6744 | (exit $ac_status); } && |
---|
6745 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6746 | || test ! -s conftest.err' |
---|
6747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6748 | (eval $ac_try) 2>&5 |
---|
6749 | ac_status=$? |
---|
6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6751 | (exit $ac_status); }; } && |
---|
6752 | { ac_try='test -s conftest.$ac_objext' |
---|
6753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6754 | (eval $ac_try) 2>&5 |
---|
6755 | ac_status=$? |
---|
6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6757 | (exit $ac_status); }; }; then |
---|
6758 | ac_cv_c_const=yes |
---|
6759 | else |
---|
6760 | echo "$as_me: failed program was:" >&5 |
---|
6761 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6762 | |
---|
6763 | ac_cv_c_const=no |
---|
6764 | fi |
---|
6765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6766 | fi |
---|
6767 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
6768 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
6769 | if test $ac_cv_c_const = no; then |
---|
6770 | |
---|
6771 | cat >>confdefs.h <<\_ACEOF |
---|
6772 | #define const |
---|
6773 | _ACEOF |
---|
6774 | |
---|
6775 | fi |
---|
6776 | |
---|
6777 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
---|
6778 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
---|
6779 | if test "$ac_cv_prog_cc_stdc" != no; then |
---|
6780 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
6781 | echo "${ECHO_T}yes" >&6 |
---|
6782 | |
---|
6783 | cat >>confdefs.h <<\_ACEOF |
---|
6784 | #define PROTOTYPES 1 |
---|
6785 | _ACEOF |
---|
6786 | |
---|
6787 | |
---|
6788 | cat >>confdefs.h <<\_ACEOF |
---|
6789 | #define __PROTOTYPES 1 |
---|
6790 | _ACEOF |
---|
6791 | |
---|
6792 | else |
---|
6793 | echo "$as_me:$LINENO: result: no" >&5 |
---|
6794 | echo "${ECHO_T}no" >&6 |
---|
6795 | fi |
---|
6796 | |
---|
6797 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
---|
6798 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
---|
6799 | if test "${ac_cv_c_volatile+set}" = set; then |
---|
6800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6801 | else |
---|
6802 | cat >conftest.$ac_ext <<_ACEOF |
---|
6803 | /* confdefs.h. */ |
---|
6804 | _ACEOF |
---|
6805 | cat confdefs.h >>conftest.$ac_ext |
---|
6806 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6807 | /* end confdefs.h. */ |
---|
6808 | |
---|
6809 | int |
---|
6810 | main () |
---|
6811 | { |
---|
6812 | |
---|
6813 | volatile int x; |
---|
6814 | int * volatile y; |
---|
6815 | ; |
---|
6816 | return 0; |
---|
6817 | } |
---|
6818 | _ACEOF |
---|
6819 | rm -f conftest.$ac_objext |
---|
6820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6821 | (eval $ac_compile) 2>conftest.er1 |
---|
6822 | ac_status=$? |
---|
6823 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6824 | rm -f conftest.er1 |
---|
6825 | cat conftest.err >&5 |
---|
6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6827 | (exit $ac_status); } && |
---|
6828 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6829 | || test ! -s conftest.err' |
---|
6830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6831 | (eval $ac_try) 2>&5 |
---|
6832 | ac_status=$? |
---|
6833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6834 | (exit $ac_status); }; } && |
---|
6835 | { ac_try='test -s conftest.$ac_objext' |
---|
6836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6837 | (eval $ac_try) 2>&5 |
---|
6838 | ac_status=$? |
---|
6839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6840 | (exit $ac_status); }; }; then |
---|
6841 | ac_cv_c_volatile=yes |
---|
6842 | else |
---|
6843 | echo "$as_me: failed program was:" >&5 |
---|
6844 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6845 | |
---|
6846 | ac_cv_c_volatile=no |
---|
6847 | fi |
---|
6848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6849 | fi |
---|
6850 | echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
---|
6851 | echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
---|
6852 | if test $ac_cv_c_volatile = no; then |
---|
6853 | |
---|
6854 | cat >>confdefs.h <<\_ACEOF |
---|
6855 | #define volatile |
---|
6856 | _ACEOF |
---|
6857 | |
---|
6858 | fi |
---|
6859 | |
---|
6860 | |
---|
6861 | echo "$as_me:$LINENO: checking whether gethostname is declared" >&5 |
---|
6862 | echo $ECHO_N "checking whether gethostname is declared... $ECHO_C" >&6 |
---|
6863 | if test "${ac_cv_have_decl_gethostname+set}" = set; then |
---|
6864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6865 | else |
---|
6866 | cat >conftest.$ac_ext <<_ACEOF |
---|
6867 | /* confdefs.h. */ |
---|
6868 | _ACEOF |
---|
6869 | cat confdefs.h >>conftest.$ac_ext |
---|
6870 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6871 | /* end confdefs.h. */ |
---|
6872 | $ac_includes_default |
---|
6873 | int |
---|
6874 | main () |
---|
6875 | { |
---|
6876 | #ifndef gethostname |
---|
6877 | char *p = (char *) gethostname; |
---|
6878 | #endif |
---|
6879 | |
---|
6880 | ; |
---|
6881 | return 0; |
---|
6882 | } |
---|
6883 | _ACEOF |
---|
6884 | rm -f conftest.$ac_objext |
---|
6885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6886 | (eval $ac_compile) 2>conftest.er1 |
---|
6887 | ac_status=$? |
---|
6888 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6889 | rm -f conftest.er1 |
---|
6890 | cat conftest.err >&5 |
---|
6891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6892 | (exit $ac_status); } && |
---|
6893 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6894 | || test ! -s conftest.err' |
---|
6895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6896 | (eval $ac_try) 2>&5 |
---|
6897 | ac_status=$? |
---|
6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6899 | (exit $ac_status); }; } && |
---|
6900 | { ac_try='test -s conftest.$ac_objext' |
---|
6901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6902 | (eval $ac_try) 2>&5 |
---|
6903 | ac_status=$? |
---|
6904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6905 | (exit $ac_status); }; }; then |
---|
6906 | ac_cv_have_decl_gethostname=yes |
---|
6907 | else |
---|
6908 | echo "$as_me: failed program was:" >&5 |
---|
6909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6910 | |
---|
6911 | ac_cv_have_decl_gethostname=no |
---|
6912 | fi |
---|
6913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6914 | fi |
---|
6915 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostname" >&5 |
---|
6916 | echo "${ECHO_T}$ac_cv_have_decl_gethostname" >&6 |
---|
6917 | if test $ac_cv_have_decl_gethostname = yes; then |
---|
6918 | |
---|
6919 | cat >>confdefs.h <<_ACEOF |
---|
6920 | #define HAVE_DECL_GETHOSTNAME 1 |
---|
6921 | _ACEOF |
---|
6922 | |
---|
6923 | |
---|
6924 | else |
---|
6925 | cat >>confdefs.h <<_ACEOF |
---|
6926 | #define HAVE_DECL_GETHOSTNAME 0 |
---|
6927 | _ACEOF |
---|
6928 | |
---|
6929 | |
---|
6930 | fi |
---|
6931 | |
---|
6932 | |
---|
6933 | |
---|
6934 | |
---|
6935 | |
---|
6936 | |
---|
6937 | |
---|
6938 | |
---|
6939 | |
---|
6940 | |
---|
6941 | |
---|
6942 | |
---|
6943 | |
---|
6944 | |
---|
6945 | |
---|
6946 | |
---|
6947 | |
---|
6948 | |
---|
6949 | for ac_func in dup2 getcwd gethostname getpwent getutent memmove memset nice nl_langinfo sbrk setpgid setpriority strerror strstr sysconf wcwidth |
---|
6950 | do |
---|
6951 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6952 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6953 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
6954 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
6955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6956 | else |
---|
6957 | cat >conftest.$ac_ext <<_ACEOF |
---|
6958 | /* confdefs.h. */ |
---|
6959 | _ACEOF |
---|
6960 | cat confdefs.h >>conftest.$ac_ext |
---|
6961 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6962 | /* end confdefs.h. */ |
---|
6963 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
6964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
6965 | #define $ac_func innocuous_$ac_func |
---|
6966 | |
---|
6967 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6968 | which can conflict with char $ac_func (); below. |
---|
6969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6970 | <limits.h> exists even on freestanding compilers. */ |
---|
6971 | |
---|
6972 | #ifdef __STDC__ |
---|
6973 | # include <limits.h> |
---|
6974 | #else |
---|
6975 | # include <assert.h> |
---|
6976 | #endif |
---|
6977 | |
---|
6978 | #undef $ac_func |
---|
6979 | |
---|
6980 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6981 | #ifdef __cplusplus |
---|
6982 | extern "C" |
---|
6983 | { |
---|
6984 | #endif |
---|
6985 | /* We use char because int might match the return type of a gcc2 |
---|
6986 | builtin and then its argument prototype would still apply. */ |
---|
6987 | char $ac_func (); |
---|
6988 | /* The GNU C library defines this for functions which it implements |
---|
6989 | to always fail with ENOSYS. Some functions are actually named |
---|
6990 | something starting with __ and the normal name is an alias. */ |
---|
6991 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6992 | choke me |
---|
6993 | #else |
---|
6994 | char (*f) () = $ac_func; |
---|
6995 | #endif |
---|
6996 | #ifdef __cplusplus |
---|
6997 | } |
---|
6998 | #endif |
---|
6999 | |
---|
7000 | int |
---|
7001 | main () |
---|
7002 | { |
---|
7003 | return f != $ac_func; |
---|
7004 | ; |
---|
7005 | return 0; |
---|
7006 | } |
---|
7007 | _ACEOF |
---|
7008 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7010 | (eval $ac_link) 2>conftest.er1 |
---|
7011 | ac_status=$? |
---|
7012 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7013 | rm -f conftest.er1 |
---|
7014 | cat conftest.err >&5 |
---|
7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7016 | (exit $ac_status); } && |
---|
7017 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7018 | || test ! -s conftest.err' |
---|
7019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7020 | (eval $ac_try) 2>&5 |
---|
7021 | ac_status=$? |
---|
7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7023 | (exit $ac_status); }; } && |
---|
7024 | { ac_try='test -s conftest$ac_exeext' |
---|
7025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7026 | (eval $ac_try) 2>&5 |
---|
7027 | ac_status=$? |
---|
7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7029 | (exit $ac_status); }; }; then |
---|
7030 | eval "$as_ac_var=yes" |
---|
7031 | else |
---|
7032 | echo "$as_me: failed program was:" >&5 |
---|
7033 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7034 | |
---|
7035 | eval "$as_ac_var=no" |
---|
7036 | fi |
---|
7037 | rm -f conftest.err conftest.$ac_objext \ |
---|
7038 | conftest$ac_exeext conftest.$ac_ext |
---|
7039 | fi |
---|
7040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
7041 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
7042 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
7043 | cat >>confdefs.h <<_ACEOF |
---|
7044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
7045 | _ACEOF |
---|
7046 | |
---|
7047 | fi |
---|
7048 | done |
---|
7049 | |
---|
7050 | echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
---|
7051 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 |
---|
7052 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
---|
7053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7054 | else |
---|
7055 | # Use it with a single arg. |
---|
7056 | cat >conftest.$ac_ext <<_ACEOF |
---|
7057 | /* confdefs.h. */ |
---|
7058 | _ACEOF |
---|
7059 | cat confdefs.h >>conftest.$ac_ext |
---|
7060 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7061 | /* end confdefs.h. */ |
---|
7062 | $ac_includes_default |
---|
7063 | int |
---|
7064 | main () |
---|
7065 | { |
---|
7066 | getpgrp (0); |
---|
7067 | ; |
---|
7068 | return 0; |
---|
7069 | } |
---|
7070 | _ACEOF |
---|
7071 | rm -f conftest.$ac_objext |
---|
7072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7073 | (eval $ac_compile) 2>conftest.er1 |
---|
7074 | ac_status=$? |
---|
7075 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7076 | rm -f conftest.er1 |
---|
7077 | cat conftest.err >&5 |
---|
7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7079 | (exit $ac_status); } && |
---|
7080 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7081 | || test ! -s conftest.err' |
---|
7082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7083 | (eval $ac_try) 2>&5 |
---|
7084 | ac_status=$? |
---|
7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7086 | (exit $ac_status); }; } && |
---|
7087 | { ac_try='test -s conftest.$ac_objext' |
---|
7088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7089 | (eval $ac_try) 2>&5 |
---|
7090 | ac_status=$? |
---|
7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7092 | (exit $ac_status); }; }; then |
---|
7093 | ac_cv_func_getpgrp_void=no |
---|
7094 | else |
---|
7095 | echo "$as_me: failed program was:" >&5 |
---|
7096 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7097 | |
---|
7098 | ac_cv_func_getpgrp_void=yes |
---|
7099 | fi |
---|
7100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7101 | |
---|
7102 | fi |
---|
7103 | echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
---|
7104 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 |
---|
7105 | if test $ac_cv_func_getpgrp_void = yes; then |
---|
7106 | |
---|
7107 | cat >>confdefs.h <<\_ACEOF |
---|
7108 | #define GETPGRP_VOID 1 |
---|
7109 | _ACEOF |
---|
7110 | |
---|
7111 | fi |
---|
7112 | |
---|
7113 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
---|
7114 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
---|
7115 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
---|
7116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7117 | else |
---|
7118 | if test "$cross_compiling" = yes; then |
---|
7119 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
---|
7120 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
---|
7121 | { (exit 1); exit 1; }; } |
---|
7122 | else |
---|
7123 | cat >conftest.$ac_ext <<_ACEOF |
---|
7124 | /* confdefs.h. */ |
---|
7125 | _ACEOF |
---|
7126 | cat confdefs.h >>conftest.$ac_ext |
---|
7127 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7128 | /* end confdefs.h. */ |
---|
7129 | #if HAVE_UNISTD_H |
---|
7130 | # include <unistd.h> |
---|
7131 | #endif |
---|
7132 | |
---|
7133 | int |
---|
7134 | main () |
---|
7135 | { |
---|
7136 | /* If this system has a BSD-style setpgrp which takes arguments, |
---|
7137 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
---|
7138 | exit successfully. */ |
---|
7139 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
---|
7140 | ; |
---|
7141 | return 0; |
---|
7142 | } |
---|
7143 | _ACEOF |
---|
7144 | rm -f conftest$ac_exeext |
---|
7145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7146 | (eval $ac_link) 2>&5 |
---|
7147 | ac_status=$? |
---|
7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7149 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7151 | (eval $ac_try) 2>&5 |
---|
7152 | ac_status=$? |
---|
7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7154 | (exit $ac_status); }; }; then |
---|
7155 | ac_cv_func_setpgrp_void=no |
---|
7156 | else |
---|
7157 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7158 | echo "$as_me: failed program was:" >&5 |
---|
7159 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7160 | |
---|
7161 | ( exit $ac_status ) |
---|
7162 | ac_cv_func_setpgrp_void=yes |
---|
7163 | fi |
---|
7164 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7165 | fi |
---|
7166 | fi |
---|
7167 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
---|
7168 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
---|
7169 | if test $ac_cv_func_setpgrp_void = yes; then |
---|
7170 | |
---|
7171 | cat >>confdefs.h <<\_ACEOF |
---|
7172 | #define SETPGRP_VOID 1 |
---|
7173 | _ACEOF |
---|
7174 | |
---|
7175 | fi |
---|
7176 | |
---|
7177 | |
---|
7178 | |
---|
7179 | |
---|
7180 | |
---|
7181 | |
---|
7182 | # Check whether --with-hesiod or --without-hesiod was given. |
---|
7183 | if test "${with_hesiod+set}" = set; then |
---|
7184 | withval="$with_hesiod" |
---|
7185 | hesiod="$withval" |
---|
7186 | else |
---|
7187 | hesiod=no |
---|
7188 | fi; |
---|
7189 | if test "$hesiod" != no; then |
---|
7190 | HESLIB="-lhesiod" |
---|
7191 | echo "$as_me:$LINENO: checking for res_send" >&5 |
---|
7192 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
---|
7193 | if test "${ac_cv_func_res_send+set}" = set; then |
---|
7194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7195 | else |
---|
7196 | cat >conftest.$ac_ext <<_ACEOF |
---|
7197 | /* confdefs.h. */ |
---|
7198 | _ACEOF |
---|
7199 | cat confdefs.h >>conftest.$ac_ext |
---|
7200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7201 | /* end confdefs.h. */ |
---|
7202 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
---|
7203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
7204 | #define res_send innocuous_res_send |
---|
7205 | |
---|
7206 | /* System header to define __stub macros and hopefully few prototypes, |
---|
7207 | which can conflict with char res_send (); below. |
---|
7208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7209 | <limits.h> exists even on freestanding compilers. */ |
---|
7210 | |
---|
7211 | #ifdef __STDC__ |
---|
7212 | # include <limits.h> |
---|
7213 | #else |
---|
7214 | # include <assert.h> |
---|
7215 | #endif |
---|
7216 | |
---|
7217 | #undef res_send |
---|
7218 | |
---|
7219 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7220 | #ifdef __cplusplus |
---|
7221 | extern "C" |
---|
7222 | { |
---|
7223 | #endif |
---|
7224 | /* We use char because int might match the return type of a gcc2 |
---|
7225 | builtin and then its argument prototype would still apply. */ |
---|
7226 | char res_send (); |
---|
7227 | /* The GNU C library defines this for functions which it implements |
---|
7228 | to always fail with ENOSYS. Some functions are actually named |
---|
7229 | something starting with __ and the normal name is an alias. */ |
---|
7230 | #if defined (__stub_res_send) || defined (__stub___res_send) |
---|
7231 | choke me |
---|
7232 | #else |
---|
7233 | char (*f) () = res_send; |
---|
7234 | #endif |
---|
7235 | #ifdef __cplusplus |
---|
7236 | } |
---|
7237 | #endif |
---|
7238 | |
---|
7239 | int |
---|
7240 | main () |
---|
7241 | { |
---|
7242 | return f != res_send; |
---|
7243 | ; |
---|
7244 | return 0; |
---|
7245 | } |
---|
7246 | _ACEOF |
---|
7247 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7249 | (eval $ac_link) 2>conftest.er1 |
---|
7250 | ac_status=$? |
---|
7251 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7252 | rm -f conftest.er1 |
---|
7253 | cat conftest.err >&5 |
---|
7254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7255 | (exit $ac_status); } && |
---|
7256 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7257 | || test ! -s conftest.err' |
---|
7258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7259 | (eval $ac_try) 2>&5 |
---|
7260 | ac_status=$? |
---|
7261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7262 | (exit $ac_status); }; } && |
---|
7263 | { ac_try='test -s conftest$ac_exeext' |
---|
7264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7265 | (eval $ac_try) 2>&5 |
---|
7266 | ac_status=$? |
---|
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7268 | (exit $ac_status); }; }; then |
---|
7269 | ac_cv_func_res_send=yes |
---|
7270 | else |
---|
7271 | echo "$as_me: failed program was:" >&5 |
---|
7272 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7273 | |
---|
7274 | ac_cv_func_res_send=no |
---|
7275 | fi |
---|
7276 | rm -f conftest.err conftest.$ac_objext \ |
---|
7277 | conftest$ac_exeext conftest.$ac_ext |
---|
7278 | fi |
---|
7279 | echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
---|
7280 | echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
---|
7281 | if test $ac_cv_func_res_send = yes; then |
---|
7282 | : |
---|
7283 | else |
---|
7284 | echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
---|
7285 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
---|
7286 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
---|
7287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7288 | else |
---|
7289 | ac_check_lib_save_LIBS=$LIBS |
---|
7290 | LIBS="-lresolv $LIBS" |
---|
7291 | cat >conftest.$ac_ext <<_ACEOF |
---|
7292 | /* confdefs.h. */ |
---|
7293 | _ACEOF |
---|
7294 | cat confdefs.h >>conftest.$ac_ext |
---|
7295 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7296 | /* end confdefs.h. */ |
---|
7297 | |
---|
7298 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7299 | #ifdef __cplusplus |
---|
7300 | extern "C" |
---|
7301 | #endif |
---|
7302 | /* We use char because int might match the return type of a gcc2 |
---|
7303 | builtin and then its argument prototype would still apply. */ |
---|
7304 | char res_send (); |
---|
7305 | int |
---|
7306 | main () |
---|
7307 | { |
---|
7308 | res_send (); |
---|
7309 | ; |
---|
7310 | return 0; |
---|
7311 | } |
---|
7312 | _ACEOF |
---|
7313 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7315 | (eval $ac_link) 2>conftest.er1 |
---|
7316 | ac_status=$? |
---|
7317 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7318 | rm -f conftest.er1 |
---|
7319 | cat conftest.err >&5 |
---|
7320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7321 | (exit $ac_status); } && |
---|
7322 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7323 | || test ! -s conftest.err' |
---|
7324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7325 | (eval $ac_try) 2>&5 |
---|
7326 | ac_status=$? |
---|
7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7328 | (exit $ac_status); }; } && |
---|
7329 | { ac_try='test -s conftest$ac_exeext' |
---|
7330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7331 | (eval $ac_try) 2>&5 |
---|
7332 | ac_status=$? |
---|
7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7334 | (exit $ac_status); }; }; then |
---|
7335 | ac_cv_lib_resolv_res_send=yes |
---|
7336 | else |
---|
7337 | echo "$as_me: failed program was:" >&5 |
---|
7338 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7339 | |
---|
7340 | ac_cv_lib_resolv_res_send=no |
---|
7341 | fi |
---|
7342 | rm -f conftest.err conftest.$ac_objext \ |
---|
7343 | conftest$ac_exeext conftest.$ac_ext |
---|
7344 | LIBS=$ac_check_lib_save_LIBS |
---|
7345 | fi |
---|
7346 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
---|
7347 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
---|
7348 | if test $ac_cv_lib_resolv_res_send = yes; then |
---|
7349 | HESLIB="$HESLIB -lresolv" |
---|
7350 | fi |
---|
7351 | |
---|
7352 | fi |
---|
7353 | |
---|
7354 | HESDEF=-DHESIOD |
---|
7355 | if test "$hesiod" != yes; then |
---|
7356 | HESDEF="$HESDEF -I$hesiod/include" |
---|
7357 | HESLIB="-L$hesiod/lib $HESLIB" |
---|
7358 | fi |
---|
7359 | fi |
---|
7360 | |
---|
7361 | |
---|
7362 | |
---|
7363 | |
---|
7364 | ac_config_files="$ac_config_files Makefile" |
---|
7365 | |
---|
7366 | cat >confcache <<\_ACEOF |
---|
7367 | # This file is a shell script that caches the results of configure |
---|
7368 | # tests run on this system so they can be shared between configure |
---|
7369 | # scripts and configure runs, see configure's option --config-cache. |
---|
7370 | # It is not useful on other systems. If it contains results you don't |
---|
7371 | # want to keep, you may remove or edit it. |
---|
7372 | # |
---|
7373 | # config.status only pays attention to the cache file if you give it |
---|
7374 | # the --recheck option to rerun configure. |
---|
7375 | # |
---|
7376 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
7377 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
7378 | # following values. |
---|
7379 | |
---|
7380 | _ACEOF |
---|
7381 | |
---|
7382 | # The following way of writing the cache mishandles newlines in values, |
---|
7383 | # but we know of no workaround that is simple, portable, and efficient. |
---|
7384 | # So, don't put newlines in cache variables' values. |
---|
7385 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
7386 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
7387 | { |
---|
7388 | (set) 2>&1 | |
---|
7389 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
7390 | *ac_space=\ *) |
---|
7391 | # `set' does not quote correctly, so add quotes (double-quote |
---|
7392 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
7393 | sed -n \ |
---|
7394 | "s/'/'\\\\''/g; |
---|
7395 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
7396 | ;; |
---|
7397 | *) |
---|
7398 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
7399 | sed -n \ |
---|
7400 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
7401 | ;; |
---|
7402 | esac; |
---|
7403 | } | |
---|
7404 | sed ' |
---|
7405 | t clear |
---|
7406 | : clear |
---|
7407 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
7408 | t end |
---|
7409 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
7410 | : end' >>confcache |
---|
7411 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
7412 | if test -w $cache_file; then |
---|
7413 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
7414 | cat confcache >$cache_file |
---|
7415 | else |
---|
7416 | echo "not updating unwritable cache $cache_file" |
---|
7417 | fi |
---|
7418 | fi |
---|
7419 | rm -f confcache |
---|
7420 | |
---|
7421 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
7422 | # Let make expand exec_prefix. |
---|
7423 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
7424 | |
---|
7425 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
7426 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
7427 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7428 | # (actually we leave an empty line to preserve line numbers). |
---|
7429 | if test "x$srcdir" = x.; then |
---|
7430 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
7431 | s/:*\$(srcdir):*/:/; |
---|
7432 | s/:*\${srcdir}:*/:/; |
---|
7433 | s/:*@srcdir@:*/:/; |
---|
7434 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
7435 | s/:*$//; |
---|
7436 | s/^[^=]*=[ ]*$//; |
---|
7437 | }' |
---|
7438 | fi |
---|
7439 | |
---|
7440 | DEFS=-DHAVE_CONFIG_H |
---|
7441 | |
---|
7442 | ac_libobjs= |
---|
7443 | ac_ltlibobjs= |
---|
7444 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
7445 | # 1. Remove the extension, and $U if already installed. |
---|
7446 | ac_i=`echo "$ac_i" | |
---|
7447 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
7448 | # 2. Add them. |
---|
7449 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
7450 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
7451 | done |
---|
7452 | LIBOBJS=$ac_libobjs |
---|
7453 | |
---|
7454 | LTLIBOBJS=$ac_ltlibobjs |
---|
7455 | |
---|
7456 | |
---|
7457 | |
---|
7458 | : ${CONFIG_STATUS=./config.status} |
---|
7459 | ac_clean_files_save=$ac_clean_files |
---|
7460 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
7461 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
7462 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
7463 | cat >$CONFIG_STATUS <<_ACEOF |
---|
7464 | #! $SHELL |
---|
7465 | # Generated by $as_me. |
---|
7466 | # Run this file to recreate the current configuration. |
---|
7467 | # Compiler output produced by configure, useful for debugging |
---|
7468 | # configure, is in config.log if it exists. |
---|
7469 | |
---|
7470 | debug=false |
---|
7471 | ac_cs_recheck=false |
---|
7472 | ac_cs_silent=false |
---|
7473 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
7474 | _ACEOF |
---|
7475 | |
---|
7476 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7477 | ## --------------------- ## |
---|
7478 | ## M4sh Initialization. ## |
---|
7479 | ## --------------------- ## |
---|
7480 | |
---|
7481 | # Be Bourne compatible |
---|
7482 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
7483 | emulate sh |
---|
7484 | NULLCMD=: |
---|
7485 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
7486 | # is contrary to our usage. Disable this feature. |
---|
7487 | alias -g '${1+"$@"}'='"$@"' |
---|
7488 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
7489 | set -o posix |
---|
7490 | fi |
---|
7491 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
7492 | |
---|
7493 | # Support unset when possible. |
---|
7494 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
7495 | as_unset=unset |
---|
7496 | else |
---|
7497 | as_unset=false |
---|
7498 | fi |
---|
7499 | |
---|
7500 | |
---|
7501 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
7502 | $as_unset ENV MAIL MAILPATH |
---|
7503 | PS1='$ ' |
---|
7504 | PS2='> ' |
---|
7505 | PS4='+ ' |
---|
7506 | |
---|
7507 | # NLS nuisances. |
---|
7508 | for as_var in \ |
---|
7509 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
7510 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
7511 | LC_TELEPHONE LC_TIME |
---|
7512 | do |
---|
7513 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
7514 | eval $as_var=C; export $as_var |
---|
7515 | else |
---|
7516 | $as_unset $as_var |
---|
7517 | fi |
---|
7518 | done |
---|
7519 | |
---|
7520 | # Required to use basename. |
---|
7521 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7522 | as_expr=expr |
---|
7523 | else |
---|
7524 | as_expr=false |
---|
7525 | fi |
---|
7526 | |
---|
7527 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
7528 | as_basename=basename |
---|
7529 | else |
---|
7530 | as_basename=false |
---|
7531 | fi |
---|
7532 | |
---|
7533 | |
---|
7534 | # Name of the executable. |
---|
7535 | as_me=`$as_basename "$0" || |
---|
7536 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
7537 | X"$0" : 'X\(//\)$' \| \ |
---|
7538 | X"$0" : 'X\(/\)$' \| \ |
---|
7539 | . : '\(.\)' 2>/dev/null || |
---|
7540 | echo X/"$0" | |
---|
7541 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
7542 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
7543 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
7544 | s/.*/./; q'` |
---|
7545 | |
---|
7546 | |
---|
7547 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
7548 | # Avoid depending upon Character Ranges. |
---|
7549 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
7550 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
7551 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
7552 | as_cr_digits='0123456789' |
---|
7553 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
7554 | |
---|
7555 | # The user is always right. |
---|
7556 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
7557 | echo "#! /bin/sh" >conf$$.sh |
---|
7558 | echo "exit 0" >>conf$$.sh |
---|
7559 | chmod +x conf$$.sh |
---|
7560 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
7561 | PATH_SEPARATOR=';' |
---|
7562 | else |
---|
7563 | PATH_SEPARATOR=: |
---|
7564 | fi |
---|
7565 | rm -f conf$$.sh |
---|
7566 | fi |
---|
7567 | |
---|
7568 | |
---|
7569 | as_lineno_1=$LINENO |
---|
7570 | as_lineno_2=$LINENO |
---|
7571 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
7572 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
7573 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
7574 | # Find who we are. Look in the path if we contain no path at all |
---|
7575 | # relative or not. |
---|
7576 | case $0 in |
---|
7577 | *[\\/]* ) as_myself=$0 ;; |
---|
7578 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7579 | for as_dir in $PATH |
---|
7580 | do |
---|
7581 | IFS=$as_save_IFS |
---|
7582 | test -z "$as_dir" && as_dir=. |
---|
7583 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
7584 | done |
---|
7585 | |
---|
7586 | ;; |
---|
7587 | esac |
---|
7588 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
7589 | # in which case we are not to be found in the path. |
---|
7590 | if test "x$as_myself" = x; then |
---|
7591 | as_myself=$0 |
---|
7592 | fi |
---|
7593 | if test ! -f "$as_myself"; then |
---|
7594 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
7595 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
7596 | { (exit 1); exit 1; }; } |
---|
7597 | fi |
---|
7598 | case $CONFIG_SHELL in |
---|
7599 | '') |
---|
7600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7601 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
7602 | do |
---|
7603 | IFS=$as_save_IFS |
---|
7604 | test -z "$as_dir" && as_dir=. |
---|
7605 | for as_base in sh bash ksh sh5; do |
---|
7606 | case $as_dir in |
---|
7607 | /*) |
---|
7608 | if ("$as_dir/$as_base" -c ' |
---|
7609 | as_lineno_1=$LINENO |
---|
7610 | as_lineno_2=$LINENO |
---|
7611 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
7612 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
7613 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
7614 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
7615 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
7616 | CONFIG_SHELL=$as_dir/$as_base |
---|
7617 | export CONFIG_SHELL |
---|
7618 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
7619 | fi;; |
---|
7620 | esac |
---|
7621 | done |
---|
7622 | done |
---|
7623 | ;; |
---|
7624 | esac |
---|
7625 | |
---|
7626 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
7627 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
7628 | # line-number line before each line; the second 'sed' does the real |
---|
7629 | # work. The second script uses 'N' to pair each line-number line |
---|
7630 | # with the numbered line, and appends trailing '-' during |
---|
7631 | # substitution so that $LINENO is not a special case at line end. |
---|
7632 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
7633 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
7634 | sed '=' <$as_myself | |
---|
7635 | sed ' |
---|
7636 | N |
---|
7637 | s,$,-, |
---|
7638 | : loop |
---|
7639 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
7640 | t loop |
---|
7641 | s,-$,, |
---|
7642 | s,^['$as_cr_digits']*\n,, |
---|
7643 | ' >$as_me.lineno && |
---|
7644 | chmod +x $as_me.lineno || |
---|
7645 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
7646 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
7647 | { (exit 1); exit 1; }; } |
---|
7648 | |
---|
7649 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
7650 | # (the dirname of $[0] is not the place where we might find the |
---|
7651 | # original and so on. Autoconf is especially sensible to this). |
---|
7652 | . ./$as_me.lineno |
---|
7653 | # Exit status is that of the last command. |
---|
7654 | exit |
---|
7655 | } |
---|
7656 | |
---|
7657 | |
---|
7658 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
7659 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
7660 | ' ECHO_T=' ' ;; |
---|
7661 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
7662 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
7663 | esac |
---|
7664 | |
---|
7665 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7666 | as_expr=expr |
---|
7667 | else |
---|
7668 | as_expr=false |
---|
7669 | fi |
---|
7670 | |
---|
7671 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7672 | echo >conf$$.file |
---|
7673 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
7674 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
7675 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
7676 | if test -f conf$$.exe; then |
---|
7677 | # Don't use ln at all; we don't have any links |
---|
7678 | as_ln_s='cp -p' |
---|
7679 | else |
---|
7680 | as_ln_s='ln -s' |
---|
7681 | fi |
---|
7682 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
7683 | as_ln_s=ln |
---|
7684 | else |
---|
7685 | as_ln_s='cp -p' |
---|
7686 | fi |
---|
7687 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7688 | |
---|
7689 | if mkdir -p . 2>/dev/null; then |
---|
7690 | as_mkdir_p=: |
---|
7691 | else |
---|
7692 | test -d ./-p && rmdir ./-p |
---|
7693 | as_mkdir_p=false |
---|
7694 | fi |
---|
7695 | |
---|
7696 | as_executable_p="test -f" |
---|
7697 | |
---|
7698 | # Sed expression to map a string onto a valid CPP name. |
---|
7699 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
7700 | |
---|
7701 | # Sed expression to map a string onto a valid variable name. |
---|
7702 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
7703 | |
---|
7704 | |
---|
7705 | # IFS |
---|
7706 | # We need space, tab and new line, in precisely that order. |
---|
7707 | as_nl=' |
---|
7708 | ' |
---|
7709 | IFS=" $as_nl" |
---|
7710 | |
---|
7711 | # CDPATH. |
---|
7712 | $as_unset CDPATH |
---|
7713 | |
---|
7714 | exec 6>&1 |
---|
7715 | |
---|
7716 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
7717 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
7718 | # values after options handling. Logging --version etc. is OK. |
---|
7719 | exec 5>>config.log |
---|
7720 | { |
---|
7721 | echo |
---|
7722 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7723 | ## Running $as_me. ## |
---|
7724 | _ASBOX |
---|
7725 | } >&5 |
---|
7726 | cat >&5 <<_CSEOF |
---|
7727 | |
---|
7728 | This file was extended by $as_me, which was |
---|
7729 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
7730 | |
---|
7731 | CONFIG_FILES = $CONFIG_FILES |
---|
7732 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
7733 | CONFIG_LINKS = $CONFIG_LINKS |
---|
7734 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
7735 | $ $0 $@ |
---|
7736 | |
---|
7737 | _CSEOF |
---|
7738 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
7739 | echo >&5 |
---|
7740 | _ACEOF |
---|
7741 | |
---|
7742 | # Files that config.status was made for. |
---|
7743 | if test -n "$ac_config_files"; then |
---|
7744 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
7745 | fi |
---|
7746 | |
---|
7747 | if test -n "$ac_config_headers"; then |
---|
7748 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
7749 | fi |
---|
7750 | |
---|
7751 | if test -n "$ac_config_links"; then |
---|
7752 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
7753 | fi |
---|
7754 | |
---|
7755 | if test -n "$ac_config_commands"; then |
---|
7756 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
7757 | fi |
---|
7758 | |
---|
7759 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7760 | |
---|
7761 | ac_cs_usage="\ |
---|
7762 | \`$as_me' instantiates files from templates according to the |
---|
7763 | current configuration. |
---|
7764 | |
---|
7765 | Usage: $0 [OPTIONS] [FILE]... |
---|
7766 | |
---|
7767 | -h, --help print this help, then exit |
---|
7768 | -V, --version print version number, then exit |
---|
7769 | -q, --quiet do not print progress messages |
---|
7770 | -d, --debug don't remove temporary files |
---|
7771 | --recheck update $as_me by reconfiguring in the same conditions |
---|
7772 | --file=FILE[:TEMPLATE] |
---|
7773 | instantiate the configuration file FILE |
---|
7774 | --header=FILE[:TEMPLATE] |
---|
7775 | instantiate the configuration header FILE |
---|
7776 | |
---|
7777 | Configuration files: |
---|
7778 | $config_files |
---|
7779 | |
---|
7780 | Configuration headers: |
---|
7781 | $config_headers |
---|
7782 | |
---|
7783 | Report bugs to <bug-autoconf@gnu.org>." |
---|
7784 | _ACEOF |
---|
7785 | |
---|
7786 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7787 | ac_cs_version="\\ |
---|
7788 | config.status |
---|
7789 | configured by $0, generated by GNU Autoconf 2.59, |
---|
7790 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
7791 | |
---|
7792 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
7793 | This config.status script is free software; the Free Software Foundation |
---|
7794 | gives unlimited permission to copy, distribute and modify it." |
---|
7795 | srcdir=$srcdir |
---|
7796 | _ACEOF |
---|
7797 | |
---|
7798 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7799 | # If no file are specified by the user, then we need to provide default |
---|
7800 | # value. By we need to know if files were specified by the user. |
---|
7801 | ac_need_defaults=: |
---|
7802 | while test $# != 0 |
---|
7803 | do |
---|
7804 | case $1 in |
---|
7805 | --*=*) |
---|
7806 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
7807 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
7808 | ac_shift=: |
---|
7809 | ;; |
---|
7810 | -*) |
---|
7811 | ac_option=$1 |
---|
7812 | ac_optarg=$2 |
---|
7813 | ac_shift=shift |
---|
7814 | ;; |
---|
7815 | *) # This is not an option, so the user has probably given explicit |
---|
7816 | # arguments. |
---|
7817 | ac_option=$1 |
---|
7818 | ac_need_defaults=false;; |
---|
7819 | esac |
---|
7820 | |
---|
7821 | case $ac_option in |
---|
7822 | # Handling of the options. |
---|
7823 | _ACEOF |
---|
7824 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7825 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7826 | ac_cs_recheck=: ;; |
---|
7827 | --version | --vers* | -V ) |
---|
7828 | echo "$ac_cs_version"; exit 0 ;; |
---|
7829 | --he | --h) |
---|
7830 | # Conflict between --help and --header |
---|
7831 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
7832 | Try \`$0 --help' for more information." >&5 |
---|
7833 | echo "$as_me: error: ambiguous option: $1 |
---|
7834 | Try \`$0 --help' for more information." >&2;} |
---|
7835 | { (exit 1); exit 1; }; };; |
---|
7836 | --help | --hel | -h ) |
---|
7837 | echo "$ac_cs_usage"; exit 0 ;; |
---|
7838 | --debug | --d* | -d ) |
---|
7839 | debug=: ;; |
---|
7840 | --file | --fil | --fi | --f ) |
---|
7841 | $ac_shift |
---|
7842 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
7843 | ac_need_defaults=false;; |
---|
7844 | --header | --heade | --head | --hea ) |
---|
7845 | $ac_shift |
---|
7846 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
7847 | ac_need_defaults=false;; |
---|
7848 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
7849 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
7850 | ac_cs_silent=: ;; |
---|
7851 | |
---|
7852 | # This is an error. |
---|
7853 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
7854 | Try \`$0 --help' for more information." >&5 |
---|
7855 | echo "$as_me: error: unrecognized option: $1 |
---|
7856 | Try \`$0 --help' for more information." >&2;} |
---|
7857 | { (exit 1); exit 1; }; } ;; |
---|
7858 | |
---|
7859 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
7860 | |
---|
7861 | esac |
---|
7862 | shift |
---|
7863 | done |
---|
7864 | |
---|
7865 | ac_configure_extra_args= |
---|
7866 | |
---|
7867 | if $ac_cs_silent; then |
---|
7868 | exec 6>/dev/null |
---|
7869 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7870 | fi |
---|
7871 | |
---|
7872 | _ACEOF |
---|
7873 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7874 | if \$ac_cs_recheck; then |
---|
7875 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
7876 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7877 | fi |
---|
7878 | |
---|
7879 | _ACEOF |
---|
7880 | |
---|
7881 | |
---|
7882 | |
---|
7883 | |
---|
7884 | |
---|
7885 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7886 | for ac_config_target in $ac_config_targets |
---|
7887 | do |
---|
7888 | case "$ac_config_target" in |
---|
7889 | # Handling of arguments. |
---|
7890 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7891 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
7892 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
7893 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
7894 | { (exit 1); exit 1; }; };; |
---|
7895 | esac |
---|
7896 | done |
---|
7897 | |
---|
7898 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7899 | # then the envvar interface is used. Set only those that are not. |
---|
7900 | # We use the long form for the default assignment because of an extremely |
---|
7901 | # bizarre bug on SunOS 4.1.3. |
---|
7902 | if $ac_need_defaults; then |
---|
7903 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7904 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7905 | fi |
---|
7906 | |
---|
7907 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7908 | # simply because there is no reason to put it here, and in addition, |
---|
7909 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7910 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
7911 | $debug || |
---|
7912 | { |
---|
7913 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
7914 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
7915 | } |
---|
7916 | |
---|
7917 | # Create a (secure) tmp directory for tmp files. |
---|
7918 | |
---|
7919 | { |
---|
7920 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
7921 | test -n "$tmp" && test -d "$tmp" |
---|
7922 | } || |
---|
7923 | { |
---|
7924 | tmp=./confstat$$-$RANDOM |
---|
7925 | (umask 077 && mkdir $tmp) |
---|
7926 | } || |
---|
7927 | { |
---|
7928 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
7929 | { (exit 1); exit 1; } |
---|
7930 | } |
---|
7931 | |
---|
7932 | _ACEOF |
---|
7933 | |
---|
7934 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7935 | |
---|
7936 | # |
---|
7937 | # CONFIG_FILES section. |
---|
7938 | # |
---|
7939 | |
---|
7940 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
7941 | # This happens for instance when ./config.status config.h |
---|
7942 | if test -n "\$CONFIG_FILES"; then |
---|
7943 | # Protect against being on the right side of a sed subst in config.status. |
---|
7944 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
7945 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
7946 | s,@SHELL@,$SHELL,;t t |
---|
7947 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
7948 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
7949 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
7950 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
7951 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
7952 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
7953 | s,@exec_prefix@,$exec_prefix,;t t |
---|
7954 | s,@prefix@,$prefix,;t t |
---|
7955 | s,@program_transform_name@,$program_transform_name,;t t |
---|
7956 | s,@bindir@,$bindir,;t t |
---|
7957 | s,@sbindir@,$sbindir,;t t |
---|
7958 | s,@libexecdir@,$libexecdir,;t t |
---|
7959 | s,@datadir@,$datadir,;t t |
---|
7960 | s,@sysconfdir@,$sysconfdir,;t t |
---|
7961 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
7962 | s,@localstatedir@,$localstatedir,;t t |
---|
7963 | s,@libdir@,$libdir,;t t |
---|
7964 | s,@includedir@,$includedir,;t t |
---|
7965 | s,@oldincludedir@,$oldincludedir,;t t |
---|
7966 | s,@infodir@,$infodir,;t t |
---|
7967 | s,@mandir@,$mandir,;t t |
---|
7968 | s,@build_alias@,$build_alias,;t t |
---|
7969 | s,@host_alias@,$host_alias,;t t |
---|
7970 | s,@target_alias@,$target_alias,;t t |
---|
7971 | s,@DEFS@,$DEFS,;t t |
---|
7972 | s,@ECHO_C@,$ECHO_C,;t t |
---|
7973 | s,@ECHO_N@,$ECHO_N,;t t |
---|
7974 | s,@ECHO_T@,$ECHO_T,;t t |
---|
7975 | s,@LIBS@,$LIBS,;t t |
---|
7976 | s,@build@,$build,;t t |
---|
7977 | s,@build_cpu@,$build_cpu,;t t |
---|
7978 | s,@build_vendor@,$build_vendor,;t t |
---|
7979 | s,@build_os@,$build_os,;t t |
---|
7980 | s,@host@,$host,;t t |
---|
7981 | s,@host_cpu@,$host_cpu,;t t |
---|
7982 | s,@host_vendor@,$host_vendor,;t t |
---|
7983 | s,@host_os@,$host_os,;t t |
---|
7984 | s,@CC@,$CC,;t t |
---|
7985 | s,@CFLAGS@,$CFLAGS,;t t |
---|
7986 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
7987 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
7988 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
7989 | s,@EXEEXT@,$EXEEXT,;t t |
---|
7990 | s,@OBJEXT@,$OBJEXT,;t t |
---|
7991 | s,@CPP@,$CPP,;t t |
---|
7992 | s,@EGREP@,$EGREP,;t t |
---|
7993 | s,@DFLAGS@,$DFLAGS,;t t |
---|
7994 | s,@HESDEF@,$HESDEF,;t t |
---|
7995 | s,@HESLIB@,$HESLIB,;t t |
---|
7996 | s,@lbindir@,$lbindir,;t t |
---|
7997 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
7998 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
7999 | CEOF |
---|
8000 | |
---|
8001 | _ACEOF |
---|
8002 | |
---|
8003 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8004 | # Split the substitutions into bite-sized pieces for seds with |
---|
8005 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
8006 | ac_max_sed_lines=48 |
---|
8007 | ac_sed_frag=1 # Number of current file. |
---|
8008 | ac_beg=1 # First line for current file. |
---|
8009 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
8010 | ac_more_lines=: |
---|
8011 | ac_sed_cmds= |
---|
8012 | while $ac_more_lines; do |
---|
8013 | if test $ac_beg -gt 1; then |
---|
8014 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8015 | else |
---|
8016 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
8017 | fi |
---|
8018 | if test ! -s $tmp/subs.frag; then |
---|
8019 | ac_more_lines=false |
---|
8020 | else |
---|
8021 | # The purpose of the label and of the branching condition is to |
---|
8022 | # speed up the sed processing (if there are no `@' at all, there |
---|
8023 | # is no need to browse any of the substitutions). |
---|
8024 | # These are the two extra sed commands mentioned above. |
---|
8025 | (echo ':t |
---|
8026 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
8027 | if test -z "$ac_sed_cmds"; then |
---|
8028 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8029 | else |
---|
8030 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
8031 | fi |
---|
8032 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
8033 | ac_beg=$ac_end |
---|
8034 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
8035 | fi |
---|
8036 | done |
---|
8037 | if test -z "$ac_sed_cmds"; then |
---|
8038 | ac_sed_cmds=cat |
---|
8039 | fi |
---|
8040 | fi # test -n "$CONFIG_FILES" |
---|
8041 | |
---|
8042 | _ACEOF |
---|
8043 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8044 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
8045 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8046 | case $ac_file in |
---|
8047 | - | *:- | *:-:* ) # input from stdin |
---|
8048 | cat >$tmp/stdin |
---|
8049 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8050 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8051 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8052 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8053 | * ) ac_file_in=$ac_file.in ;; |
---|
8054 | esac |
---|
8055 | |
---|
8056 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
8057 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8058 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8059 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8060 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8061 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8062 | . : '\(.\)' 2>/dev/null || |
---|
8063 | echo X"$ac_file" | |
---|
8064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8065 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8066 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8067 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8068 | s/.*/./; q'` |
---|
8069 | { if $as_mkdir_p; then |
---|
8070 | mkdir -p "$ac_dir" |
---|
8071 | else |
---|
8072 | as_dir="$ac_dir" |
---|
8073 | as_dirs= |
---|
8074 | while test ! -d "$as_dir"; do |
---|
8075 | as_dirs="$as_dir $as_dirs" |
---|
8076 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8077 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8078 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8079 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8080 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8081 | . : '\(.\)' 2>/dev/null || |
---|
8082 | echo X"$as_dir" | |
---|
8083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8084 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8085 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8086 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8087 | s/.*/./; q'` |
---|
8088 | done |
---|
8089 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8090 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8091 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8092 | { (exit 1); exit 1; }; }; } |
---|
8093 | |
---|
8094 | ac_builddir=. |
---|
8095 | |
---|
8096 | if test "$ac_dir" != .; then |
---|
8097 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
8098 | # A "../" for each directory in $ac_dir_suffix. |
---|
8099 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
8100 | else |
---|
8101 | ac_dir_suffix= ac_top_builddir= |
---|
8102 | fi |
---|
8103 | |
---|
8104 | case $srcdir in |
---|
8105 | .) # No --srcdir option. We are building in place. |
---|
8106 | ac_srcdir=. |
---|
8107 | if test -z "$ac_top_builddir"; then |
---|
8108 | ac_top_srcdir=. |
---|
8109 | else |
---|
8110 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
8111 | fi ;; |
---|
8112 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
8113 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
8114 | ac_top_srcdir=$srcdir ;; |
---|
8115 | *) # Relative path. |
---|
8116 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
8117 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
8118 | esac |
---|
8119 | |
---|
8120 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
8121 | # the directories may not exist. |
---|
8122 | case `pwd` in |
---|
8123 | .) ac_abs_builddir="$ac_dir";; |
---|
8124 | *) |
---|
8125 | case "$ac_dir" in |
---|
8126 | .) ac_abs_builddir=`pwd`;; |
---|
8127 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
8128 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
8129 | esac;; |
---|
8130 | esac |
---|
8131 | case $ac_abs_builddir in |
---|
8132 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8133 | *) |
---|
8134 | case ${ac_top_builddir}. in |
---|
8135 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
8136 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
8137 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
8138 | esac;; |
---|
8139 | esac |
---|
8140 | case $ac_abs_builddir in |
---|
8141 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
8142 | *) |
---|
8143 | case $ac_srcdir in |
---|
8144 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
8145 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
8146 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
8147 | esac;; |
---|
8148 | esac |
---|
8149 | case $ac_abs_builddir in |
---|
8150 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8151 | *) |
---|
8152 | case $ac_top_srcdir in |
---|
8153 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
8154 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
8155 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
8156 | esac;; |
---|
8157 | esac |
---|
8158 | |
---|
8159 | |
---|
8160 | |
---|
8161 | if test x"$ac_file" != x-; then |
---|
8162 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8163 | echo "$as_me: creating $ac_file" >&6;} |
---|
8164 | rm -f "$ac_file" |
---|
8165 | fi |
---|
8166 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8167 | # use $as_me), people would be surprised to read: |
---|
8168 | # /* config.h. Generated by config.status. */ |
---|
8169 | if test x"$ac_file" = x-; then |
---|
8170 | configure_input= |
---|
8171 | else |
---|
8172 | configure_input="$ac_file. " |
---|
8173 | fi |
---|
8174 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
8175 | sed 's,.*/,,'` by configure." |
---|
8176 | |
---|
8177 | # First look for the input files in the build tree, otherwise in the |
---|
8178 | # src tree. |
---|
8179 | ac_file_inputs=`IFS=: |
---|
8180 | for f in $ac_file_in; do |
---|
8181 | case $f in |
---|
8182 | -) echo $tmp/stdin ;; |
---|
8183 | [\\/$]*) |
---|
8184 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8185 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8186 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8187 | { (exit 1); exit 1; }; } |
---|
8188 | echo "$f";; |
---|
8189 | *) # Relative |
---|
8190 | if test -f "$f"; then |
---|
8191 | # Build tree |
---|
8192 | echo "$f" |
---|
8193 | elif test -f "$srcdir/$f"; then |
---|
8194 | # Source tree |
---|
8195 | echo "$srcdir/$f" |
---|
8196 | else |
---|
8197 | # /dev/null tree |
---|
8198 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8199 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8200 | { (exit 1); exit 1; }; } |
---|
8201 | fi;; |
---|
8202 | esac |
---|
8203 | done` || { (exit 1); exit 1; } |
---|
8204 | _ACEOF |
---|
8205 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
8206 | sed "$ac_vpsub |
---|
8207 | $extrasub |
---|
8208 | _ACEOF |
---|
8209 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8210 | :t |
---|
8211 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
8212 | s,@configure_input@,$configure_input,;t t |
---|
8213 | s,@srcdir@,$ac_srcdir,;t t |
---|
8214 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
8215 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
8216 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
8217 | s,@builddir@,$ac_builddir,;t t |
---|
8218 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
8219 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
8220 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
8221 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
8222 | rm -f $tmp/stdin |
---|
8223 | if test x"$ac_file" != x-; then |
---|
8224 | mv $tmp/out $ac_file |
---|
8225 | else |
---|
8226 | cat $tmp/out |
---|
8227 | rm -f $tmp/out |
---|
8228 | fi |
---|
8229 | |
---|
8230 | done |
---|
8231 | _ACEOF |
---|
8232 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8233 | |
---|
8234 | # |
---|
8235 | # CONFIG_HEADER section. |
---|
8236 | # |
---|
8237 | |
---|
8238 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
8239 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
8240 | # |
---|
8241 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
8242 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
8243 | ac_dB='[ ].*$,\1#\2' |
---|
8244 | ac_dC=' ' |
---|
8245 | ac_dD=',;t' |
---|
8246 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
8247 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
8248 | ac_uB='$,\1#\2define\3' |
---|
8249 | ac_uC=' ' |
---|
8250 | ac_uD=',;t' |
---|
8251 | |
---|
8252 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
8253 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
8254 | case $ac_file in |
---|
8255 | - | *:- | *:-:* ) # input from stdin |
---|
8256 | cat >$tmp/stdin |
---|
8257 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8258 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8259 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
8260 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
8261 | * ) ac_file_in=$ac_file.in ;; |
---|
8262 | esac |
---|
8263 | |
---|
8264 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
8265 | echo "$as_me: creating $ac_file" >&6;} |
---|
8266 | |
---|
8267 | # First look for the input files in the build tree, otherwise in the |
---|
8268 | # src tree. |
---|
8269 | ac_file_inputs=`IFS=: |
---|
8270 | for f in $ac_file_in; do |
---|
8271 | case $f in |
---|
8272 | -) echo $tmp/stdin ;; |
---|
8273 | [\\/$]*) |
---|
8274 | # Absolute (can't be DOS-style, as IFS=:) |
---|
8275 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8276 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8277 | { (exit 1); exit 1; }; } |
---|
8278 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
8279 | echo "$f";; |
---|
8280 | *) # Relative |
---|
8281 | if test -f "$f"; then |
---|
8282 | # Build tree |
---|
8283 | echo "$f" |
---|
8284 | elif test -f "$srcdir/$f"; then |
---|
8285 | # Source tree |
---|
8286 | echo "$srcdir/$f" |
---|
8287 | else |
---|
8288 | # /dev/null tree |
---|
8289 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
8290 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
8291 | { (exit 1); exit 1; }; } |
---|
8292 | fi;; |
---|
8293 | esac |
---|
8294 | done` || { (exit 1); exit 1; } |
---|
8295 | # Remove the trailing spaces. |
---|
8296 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
8297 | |
---|
8298 | _ACEOF |
---|
8299 | |
---|
8300 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
8301 | # `conftest.undefs', that substitutes the proper values into |
---|
8302 | # config.h.in to produce config.h. The first handles `#define' |
---|
8303 | # templates, and the second `#undef' templates. |
---|
8304 | # And first: Protect against being on the right side of a sed subst in |
---|
8305 | # config.status. Protect against being in an unquoted here document |
---|
8306 | # in config.status. |
---|
8307 | rm -f conftest.defines conftest.undefs |
---|
8308 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
8309 | # Putting comments in sed scripts is not portable. |
---|
8310 | # |
---|
8311 | # `end' is used to avoid that the second main sed command (meant for |
---|
8312 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
8313 | # See the Autoconf documentation for `clear'. |
---|
8314 | cat >confdef2sed.sed <<\_ACEOF |
---|
8315 | s/[\\&,]/\\&/g |
---|
8316 | s,[\\$`],\\&,g |
---|
8317 | t clear |
---|
8318 | : clear |
---|
8319 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
8320 | t end |
---|
8321 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
8322 | : end |
---|
8323 | _ACEOF |
---|
8324 | # If some macros were called several times there might be several times |
---|
8325 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
8326 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
8327 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
8328 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
8329 | rm -f confdef2sed.sed |
---|
8330 | |
---|
8331 | # This sed command replaces #undef with comments. This is necessary, for |
---|
8332 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
8333 | # on some systems where configure will not decide to define it. |
---|
8334 | cat >>conftest.undefs <<\_ACEOF |
---|
8335 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
8336 | _ACEOF |
---|
8337 | |
---|
8338 | # Break up conftest.defines because some shells have a limit on the size |
---|
8339 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8340 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
8341 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
8342 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
8343 | echo ' :' >>$CONFIG_STATUS |
---|
8344 | rm -f conftest.tail |
---|
8345 | while grep . conftest.defines >/dev/null |
---|
8346 | do |
---|
8347 | # Write a limited-size here document to $tmp/defines.sed. |
---|
8348 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
8349 | # Speed up: don't consider the non `#define' lines. |
---|
8350 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
8351 | # Work around the forget-to-reset-the-flag bug. |
---|
8352 | echo 't clr' >>$CONFIG_STATUS |
---|
8353 | echo ': clr' >>$CONFIG_STATUS |
---|
8354 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
8355 | echo 'CEOF |
---|
8356 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
8357 | rm -f $tmp/in |
---|
8358 | mv $tmp/out $tmp/in |
---|
8359 | ' >>$CONFIG_STATUS |
---|
8360 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
8361 | rm -f conftest.defines |
---|
8362 | mv conftest.tail conftest.defines |
---|
8363 | done |
---|
8364 | rm -f conftest.defines |
---|
8365 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
8366 | echo >>$CONFIG_STATUS |
---|
8367 | |
---|
8368 | # Break up conftest.undefs because some shells have a limit on the size |
---|
8369 | # of here documents, and old seds have small limits too (100 cmds). |
---|
8370 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
8371 | rm -f conftest.tail |
---|
8372 | while grep . conftest.undefs >/dev/null |
---|
8373 | do |
---|
8374 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
8375 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
8376 | # Speed up: don't consider the non `#undef' |
---|
8377 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
8378 | # Work around the forget-to-reset-the-flag bug. |
---|
8379 | echo 't clr' >>$CONFIG_STATUS |
---|
8380 | echo ': clr' >>$CONFIG_STATUS |
---|
8381 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
8382 | echo 'CEOF |
---|
8383 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
8384 | rm -f $tmp/in |
---|
8385 | mv $tmp/out $tmp/in |
---|
8386 | ' >>$CONFIG_STATUS |
---|
8387 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
8388 | rm -f conftest.undefs |
---|
8389 | mv conftest.tail conftest.undefs |
---|
8390 | done |
---|
8391 | rm -f conftest.undefs |
---|
8392 | |
---|
8393 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8394 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
8395 | # use $as_me), people would be surprised to read: |
---|
8396 | # /* config.h. Generated by config.status. */ |
---|
8397 | if test x"$ac_file" = x-; then |
---|
8398 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
8399 | else |
---|
8400 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
8401 | fi |
---|
8402 | cat $tmp/in >>$tmp/config.h |
---|
8403 | rm -f $tmp/in |
---|
8404 | if test x"$ac_file" != x-; then |
---|
8405 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
8406 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
8407 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
8408 | else |
---|
8409 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
8410 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8411 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
8412 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
8413 | X"$ac_file" : 'X\(/\)' \| \ |
---|
8414 | . : '\(.\)' 2>/dev/null || |
---|
8415 | echo X"$ac_file" | |
---|
8416 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8417 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8418 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8419 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8420 | s/.*/./; q'` |
---|
8421 | { if $as_mkdir_p; then |
---|
8422 | mkdir -p "$ac_dir" |
---|
8423 | else |
---|
8424 | as_dir="$ac_dir" |
---|
8425 | as_dirs= |
---|
8426 | while test ! -d "$as_dir"; do |
---|
8427 | as_dirs="$as_dir $as_dirs" |
---|
8428 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8429 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8430 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8431 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8432 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8433 | . : '\(.\)' 2>/dev/null || |
---|
8434 | echo X"$as_dir" | |
---|
8435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8436 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8437 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8438 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8439 | s/.*/./; q'` |
---|
8440 | done |
---|
8441 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8442 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
8443 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
8444 | { (exit 1); exit 1; }; }; } |
---|
8445 | |
---|
8446 | rm -f $ac_file |
---|
8447 | mv $tmp/config.h $ac_file |
---|
8448 | fi |
---|
8449 | else |
---|
8450 | cat $tmp/config.h |
---|
8451 | rm -f $tmp/config.h |
---|
8452 | fi |
---|
8453 | done |
---|
8454 | _ACEOF |
---|
8455 | |
---|
8456 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8457 | |
---|
8458 | { (exit 0); exit 0; } |
---|
8459 | _ACEOF |
---|
8460 | chmod +x $CONFIG_STATUS |
---|
8461 | ac_clean_files=$ac_clean_files_save |
---|
8462 | |
---|
8463 | |
---|
8464 | # configure is writing to config.log, and then calls config.status. |
---|
8465 | # config.status does its own redirection, appending to config.log. |
---|
8466 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
8467 | # by configure, so config.status won't be able to write to it; its |
---|
8468 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
8469 | # effectively closing config.log, so it can be properly (re)opened and |
---|
8470 | # appended to by config.status. When coming back to configure, we |
---|
8471 | # need to make the FD available again. |
---|
8472 | if test "$no_create" != yes; then |
---|
8473 | ac_cs_success=: |
---|
8474 | ac_config_status_args= |
---|
8475 | test "$silent" = yes && |
---|
8476 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
8477 | exec 5>/dev/null |
---|
8478 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
8479 | exec 5>>config.log |
---|
8480 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
8481 | # would make configure fail if this is the last instruction. |
---|
8482 | $ac_cs_success || { (exit 1); exit 1; } |
---|
8483 | fi |
---|
8484 | |
---|