]>
Commit | Line | Data |
---|---|---|
b3076f16 AS |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in,v 1.2 2004/06/28 22:45:19 r33d Exp . | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.59 for srvx 1.3. | |
5 | # | |
6 | # Report bugs to <srvx-bugs@lists.sourceforge.net>. | |
7 | # | |
8 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
25 | DUALCASE=1; export DUALCASE # for MKS sh | |
26 | ||
27 | # Support unset when possible. | |
28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
48 | eval $as_var=C; export $as_var | |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
224 | test -d ./-p && rmdir ./-p | |
225 | as_mkdir_p=false | |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | # Sed expression to map a string onto a valid variable name. | |
234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
235 | ||
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
271 | PACKAGE_NAME='srvx' | |
272 | PACKAGE_TARNAME='srvx' | |
273 | PACKAGE_VERSION='1.3' | |
274 | PACKAGE_STRING='srvx 1.3' | |
275 | PACKAGE_BUGREPORT='srvx-bugs@lists.sourceforge.net' | |
276 | ||
277 | ac_unique_file="src/opserv.c" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
b2cf3d66 | 315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT AWK RANLIB ac_ct_RANLIB LN_S CPP EGREP ALLOCA MODULE_OBJS MY_SUBDIRS RX_INCLUDES RX_LIBS LIBOBJS LTLIBOBJS' |
b3076f16 AS |
316 | ac_subst_files='' |
317 | ||
318 | # Initialize some variables set by options. | |
319 | ac_init_help= | |
320 | ac_init_version=false | |
321 | # The variables have the same names as the options, with | |
322 | # dashes changed to underlines. | |
323 | cache_file=/dev/null | |
324 | exec_prefix=NONE | |
325 | no_create= | |
326 | no_recursion= | |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
334 | verbose= | |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
337 | ||
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
343 | bindir='${exec_prefix}/bin' | |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
356 | ac_prev= | |
357 | for ac_option | |
358 | do | |
359 | # If the previous option needs an argument, assign it. | |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
367 | ||
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
370 | case $ac_option in | |
371 | ||
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
375 | bindir=$ac_optarg ;; | |
376 | ||
377 | -build | --build | --buil | --bui | --bu) | |
378 | ac_prev=build_alias ;; | |
379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
380 | build_alias=$ac_optarg ;; | |
381 | ||
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
387 | cache_file=$ac_optarg ;; | |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
391 | ||
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
396 | datadir=$ac_optarg ;; | |
397 | ||
398 | -disable-* | --disable-*) | |
399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
400 | # Reject names that are not valid shell variable names. | |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
406 | ||
407 | -enable-* | --enable-*) | |
408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
409 | # Reject names that are not valid shell variable names. | |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
416 | *) ac_optarg=yes ;; | |
417 | esac | |
418 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
419 | ||
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
427 | exec_prefix=$ac_optarg ;; | |
428 | ||
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
433 | -help | --help | --hel | --he | -h) | |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
439 | ||
440 | -host | --host | --hos | --ho) | |
441 | ac_prev=host_alias ;; | |
442 | -host=* | --host=* | --hos=* | --ho=*) | |
443 | host_alias=$ac_optarg ;; | |
444 | ||
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
450 | includedir=$ac_optarg ;; | |
451 | ||
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
455 | infodir=$ac_optarg ;; | |
456 | ||
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
460 | libdir=$ac_optarg ;; | |
461 | ||
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
467 | libexecdir=$ac_optarg ;; | |
468 | ||
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
476 | localstatedir=$ac_optarg ;; | |
477 | ||
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
481 | mandir=$ac_optarg ;; | |
482 | ||
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
488 | | --no-cr | --no-c | -n) | |
489 | no_create=yes ;; | |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
502 | oldincludedir=$ac_optarg ;; | |
503 | ||
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
507 | prefix=$ac_optarg ;; | |
508 | ||
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
514 | program_prefix=$ac_optarg ;; | |
515 | ||
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
521 | program_suffix=$ac_optarg ;; | |
522 | ||
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
538 | program_transform_name=$ac_optarg ;; | |
539 | ||
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
548 | sbindir=$ac_optarg ;; | |
549 | ||
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
559 | sharedstatedir=$ac_optarg ;; | |
560 | ||
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
564 | site=$ac_optarg ;; | |
565 | ||
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
569 | srcdir=$ac_optarg ;; | |
570 | ||
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
576 | sysconfdir=$ac_optarg ;; | |
577 | ||
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
579 | ac_prev=target_alias ;; | |
580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
581 | target_alias=$ac_optarg ;; | |
582 | ||
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
586 | -version | --version | --versio | --versi | --vers | -V) | |
587 | ac_init_version=: ;; | |
588 | ||
589 | -with-* | --with-*) | |
590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
591 | # Reject names that are not valid shell variable names. | |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
595 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
596 | case $ac_option in | |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
598 | *) ac_optarg=yes ;; | |
599 | esac | |
600 | eval "with_$ac_package='$ac_optarg'" ;; | |
601 | ||
602 | -without-* | --without-*) | |
603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
604 | # Reject names that are not valid shell variable names. | |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
610 | ||
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
620 | x_includes=$ac_optarg ;; | |
621 | ||
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
627 | x_libraries=$ac_optarg ;; | |
628 | ||
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
632 | ;; | |
633 | ||
634 | *=*) | |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
644 | *) | |
645 | # FIXME: should be removed in autoconf 3.0. | |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
650 | ;; | |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
659 | fi | |
660 | ||
661 | # Be sure to have absolute paths. | |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
671 | ||
672 | # Be sure to have absolute paths. | |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 | localstatedir libdir includedir oldincludedir infodir mandir | |
675 | do | |
676 | eval ac_val=$`echo $ac_var` | |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
681 | esac | |
682 | done | |
683 | ||
684 | # There might be people who depend on the old broken behavior: `$host' | |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
701 | ||
702 | ac_tool_prefix= | |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
706 | ||
707 | ||
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 | X"$0" : 'X\(//\)[^/]' \| \ | |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
718 | echo X"$0" | | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
724 | srcdir=$ac_confdir | |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
734 | { (exit 1); exit 1; }; } | |
735 | else | |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
737 | { (exit 1); exit 1; }; } | |
738 | fi | |
739 | fi | |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
776 | ||
777 | # | |
778 | # Report the --help message. | |
779 | # | |
780 | if test "$ac_init_help" = "long"; then | |
781 | # Omit some internal or obsolete options to make the list less imposing. | |
782 | # This message is too long to be a string in the A/UX 3.1 sh. | |
783 | cat <<_ACEOF | |
784 | \`configure' configures srvx 1.3 to adapt to many kinds of systems. | |
785 | ||
786 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
787 | ||
788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
789 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
790 | ||
791 | Defaults for the options are specified in brackets. | |
792 | ||
793 | Configuration: | |
794 | -h, --help display this help and exit | |
795 | --help=short display options specific to this package | |
796 | --help=recursive display the short help of all the included packages | |
797 | -V, --version display version information and exit | |
798 | -q, --quiet, --silent do not print \`checking...' messages | |
799 | --cache-file=FILE cache test results in FILE [disabled] | |
800 | -C, --config-cache alias for \`--cache-file=config.cache' | |
801 | -n, --no-create do not create output files | |
802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
803 | ||
804 | _ACEOF | |
805 | ||
806 | cat <<_ACEOF | |
807 | Installation directories: | |
808 | --prefix=PREFIX install architecture-independent files in PREFIX | |
809 | [$ac_default_prefix] | |
810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
811 | [PREFIX] | |
812 | ||
813 | By default, \`make install' will install all the files in | |
814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
816 | for instance \`--prefix=\$HOME'. | |
817 | ||
818 | For better control, use the options below. | |
819 | ||
820 | Fine tuning of the installation directories: | |
821 | --bindir=DIR user executables [EPREFIX/bin] | |
822 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
823 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
828 | --libdir=DIR object code libraries [EPREFIX/lib] | |
829 | --includedir=DIR C header files [PREFIX/include] | |
830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
831 | --infodir=DIR info documentation [PREFIX/info] | |
832 | --mandir=DIR man documentation [PREFIX/man] | |
833 | _ACEOF | |
834 | ||
835 | cat <<\_ACEOF | |
836 | ||
837 | Program names: | |
838 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
839 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
840 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
841 | ||
842 | System types: | |
843 | --build=BUILD configure for building on BUILD [guessed] | |
844 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
845 | --target=TARGET configure for building compilers for TARGET [HOST] | |
846 | _ACEOF | |
847 | fi | |
848 | ||
849 | if test -n "$ac_init_help"; then | |
850 | case $ac_init_help in | |
851 | short | recursive ) echo "Configuration of srvx 1.3:";; | |
852 | esac | |
853 | cat <<\_ACEOF | |
854 | ||
855 | Optional Features: | |
856 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
857 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b2cf3d66 AS |
858 | --enable-maintainer-mode enable make rules and dependencies not useful |
859 | (and sometimes confusing) to the casual installer | |
b3076f16 AS |
860 | --disable-tokens Disables tokenization of P10 protocol output |
861 | (tokens required if linking to ircu 2.10.11) | |
862 | --enable-debug Enables debugging behaviors | |
863 | --enable-modules=list,of,modules Enable extra modules | |
864 | ||
865 | Optional Packages: | |
866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
868 | --with-malloc=type Enables use of a special malloc library; one of: | |
869 | system (the default), boehm-gc, dmalloc, mpatrol | |
870 | --with-protocol=name Choose IRC dialect to support; one of: | |
871 | p10 (the default), bahamut | |
872 | --without-getopt Disables building of the GNU getopt library | |
873 | ||
874 | Some influential environment variables: | |
875 | CC C compiler command | |
876 | CFLAGS C compiler flags | |
877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
878 | nonstandard directory <lib dir> | |
879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
880 | headers in a nonstandard directory <include dir> | |
881 | CPP C preprocessor | |
882 | ||
883 | Use these variables to override the choices made by `configure' or to help | |
884 | it to find libraries and programs with nonstandard names/locations. | |
885 | ||
886 | Report bugs to <srvx-bugs@lists.sourceforge.net>. | |
887 | _ACEOF | |
888 | fi | |
889 | ||
890 | if test "$ac_init_help" = "recursive"; then | |
891 | # If there are subdirs, report their specific --help. | |
892 | ac_popdir=`pwd` | |
893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
894 | test -d $ac_dir || continue | |
895 | ac_builddir=. | |
896 | ||
897 | if test "$ac_dir" != .; then | |
898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
899 | # A "../" for each directory in $ac_dir_suffix. | |
900 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
901 | else | |
902 | ac_dir_suffix= ac_top_builddir= | |
903 | fi | |
904 | ||
905 | case $srcdir in | |
906 | .) # No --srcdir option. We are building in place. | |
907 | ac_srcdir=. | |
908 | if test -z "$ac_top_builddir"; then | |
909 | ac_top_srcdir=. | |
910 | else | |
911 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
912 | fi ;; | |
913 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
914 | ac_srcdir=$srcdir$ac_dir_suffix; | |
915 | ac_top_srcdir=$srcdir ;; | |
916 | *) # Relative path. | |
917 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
918 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
919 | esac | |
920 | ||
921 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
922 | # the directories may not exist. | |
923 | case `pwd` in | |
924 | .) ac_abs_builddir="$ac_dir";; | |
925 | *) | |
926 | case "$ac_dir" in | |
927 | .) ac_abs_builddir=`pwd`;; | |
928 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
929 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
930 | esac;; | |
931 | esac | |
932 | case $ac_abs_builddir in | |
933 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
934 | *) | |
935 | case ${ac_top_builddir}. in | |
936 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
937 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
938 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
939 | esac;; | |
940 | esac | |
941 | case $ac_abs_builddir in | |
942 | .) ac_abs_srcdir=$ac_srcdir;; | |
943 | *) | |
944 | case $ac_srcdir in | |
945 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
946 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
947 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
948 | esac;; | |
949 | esac | |
950 | case $ac_abs_builddir in | |
951 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
952 | *) | |
953 | case $ac_top_srcdir in | |
954 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
956 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
957 | esac;; | |
958 | esac | |
959 | ||
960 | cd $ac_dir | |
961 | # Check for guested configure; otherwise get Cygnus style configure. | |
962 | if test -f $ac_srcdir/configure.gnu; then | |
963 | echo | |
964 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
965 | elif test -f $ac_srcdir/configure; then | |
966 | echo | |
967 | $SHELL $ac_srcdir/configure --help=recursive | |
968 | elif test -f $ac_srcdir/configure.ac || | |
969 | test -f $ac_srcdir/configure.in; then | |
970 | echo | |
971 | $ac_configure --help | |
972 | else | |
973 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
974 | fi | |
975 | cd "$ac_popdir" | |
976 | done | |
977 | fi | |
978 | ||
979 | test -n "$ac_init_help" && exit 0 | |
980 | if $ac_init_version; then | |
981 | cat <<\_ACEOF | |
982 | srvx configure 1.3 | |
983 | generated by GNU Autoconf 2.59 | |
984 | ||
985 | Copyright (C) 2003 Free Software Foundation, Inc. | |
986 | This configure script is free software; the Free Software Foundation | |
987 | gives unlimited permission to copy, distribute and modify it. | |
988 | _ACEOF | |
989 | exit 0 | |
990 | fi | |
991 | exec 5>config.log | |
992 | cat >&5 <<_ACEOF | |
993 | This file contains any messages produced by compilers while | |
994 | running configure, to aid debugging if configure makes a mistake. | |
995 | ||
996 | It was created by srvx $as_me 1.3, which was | |
997 | generated by GNU Autoconf 2.59. Invocation command line was | |
998 | ||
999 | $ $0 $@ | |
1000 | ||
1001 | _ACEOF | |
1002 | { | |
1003 | cat <<_ASUNAME | |
1004 | ## --------- ## | |
1005 | ## Platform. ## | |
1006 | ## --------- ## | |
1007 | ||
1008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1016 | ||
1017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1020 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1024 | ||
1025 | _ASUNAME | |
1026 | ||
1027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1028 | for as_dir in $PATH | |
1029 | do | |
1030 | IFS=$as_save_IFS | |
1031 | test -z "$as_dir" && as_dir=. | |
1032 | echo "PATH: $as_dir" | |
1033 | done | |
1034 | ||
1035 | } >&5 | |
1036 | ||
1037 | cat >&5 <<_ACEOF | |
1038 | ||
1039 | ||
1040 | ## ----------- ## | |
1041 | ## Core tests. ## | |
1042 | ## ----------- ## | |
1043 | ||
1044 | _ACEOF | |
1045 | ||
1046 | ||
1047 | # Keep a trace of the command line. | |
1048 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1049 | # Strip out --silent because we don't want to record it for future runs. | |
1050 | # Also quote any args containing shell meta-characters. | |
1051 | # Make two passes to allow for proper duplicate-argument suppression. | |
1052 | ac_configure_args= | |
1053 | ac_configure_args0= | |
1054 | ac_configure_args1= | |
1055 | ac_sep= | |
1056 | ac_must_keep_next=false | |
1057 | for ac_pass in 1 2 | |
1058 | do | |
1059 | for ac_arg | |
1060 | do | |
1061 | case $ac_arg in | |
1062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | continue ;; | |
1066 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1067 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1068 | esac | |
1069 | case $ac_pass in | |
1070 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1071 | 2) | |
1072 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1073 | if test $ac_must_keep_next = true; then | |
1074 | ac_must_keep_next=false # Got value, back to normal. | |
1075 | else | |
1076 | case $ac_arg in | |
1077 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1080 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1081 | case "$ac_configure_args0 " in | |
1082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1083 | esac | |
1084 | ;; | |
1085 | -* ) ac_must_keep_next=true ;; | |
1086 | esac | |
1087 | fi | |
1088 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1089 | # Get rid of the leading space. | |
1090 | ac_sep=" " | |
1091 | ;; | |
1092 | esac | |
1093 | done | |
1094 | done | |
1095 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1096 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1097 | ||
1098 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1099 | # config.log. We remove comments because anyway the quotes in there | |
1100 | # would cause problems or look ugly. | |
1101 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1102 | # such as our DU 5.0 friend, will then `close' the trap. | |
1103 | trap 'exit_status=$? | |
1104 | # Save into config.log some information that might help in debugging. | |
1105 | { | |
1106 | echo | |
1107 | ||
1108 | cat <<\_ASBOX | |
1109 | ## ---------------- ## | |
1110 | ## Cache variables. ## | |
1111 | ## ---------------- ## | |
1112 | _ASBOX | |
1113 | echo | |
1114 | # The following way of writing the cache mishandles newlines in values, | |
1115 | { | |
1116 | (set) 2>&1 | | |
1117 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1118 | *ac_space=\ *) | |
1119 | sed -n \ | |
1120 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1122 | ;; | |
1123 | *) | |
1124 | sed -n \ | |
1125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1126 | ;; | |
1127 | esac; | |
1128 | } | |
1129 | echo | |
1130 | ||
1131 | cat <<\_ASBOX | |
1132 | ## ----------------- ## | |
1133 | ## Output variables. ## | |
1134 | ## ----------------- ## | |
1135 | _ASBOX | |
1136 | echo | |
1137 | for ac_var in $ac_subst_vars | |
1138 | do | |
1139 | eval ac_val=$`echo $ac_var` | |
1140 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1141 | done | sort | |
1142 | echo | |
1143 | ||
1144 | if test -n "$ac_subst_files"; then | |
1145 | cat <<\_ASBOX | |
1146 | ## ------------- ## | |
1147 | ## Output files. ## | |
1148 | ## ------------- ## | |
1149 | _ASBOX | |
1150 | echo | |
1151 | for ac_var in $ac_subst_files | |
1152 | do | |
1153 | eval ac_val=$`echo $ac_var` | |
1154 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1155 | done | sort | |
1156 | echo | |
1157 | fi | |
1158 | ||
1159 | if test -s confdefs.h; then | |
1160 | cat <<\_ASBOX | |
1161 | ## ----------- ## | |
1162 | ## confdefs.h. ## | |
1163 | ## ----------- ## | |
1164 | _ASBOX | |
1165 | echo | |
1166 | sed "/^$/d" confdefs.h | sort | |
1167 | echo | |
1168 | fi | |
1169 | test "$ac_signal" != 0 && | |
1170 | echo "$as_me: caught signal $ac_signal" | |
1171 | echo "$as_me: exit $exit_status" | |
1172 | } >&5 | |
1173 | rm -f core *.core && | |
1174 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1175 | exit $exit_status | |
1176 | ' 0 | |
1177 | for ac_signal in 1 2 13 15; do | |
1178 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1179 | done | |
1180 | ac_signal=0 | |
1181 | ||
1182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1183 | rm -rf conftest* confdefs.h | |
1184 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1185 | echo >confdefs.h | |
1186 | ||
1187 | # Predefined preprocessor variables. | |
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | # Let the site file select an alternate cache file if it wants to. | |
1215 | # Prefer explicitly selected file to automatically selected ones. | |
1216 | if test -z "$CONFIG_SITE"; then | |
1217 | if test "x$prefix" != xNONE; then | |
1218 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1219 | else | |
1220 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1221 | fi | |
1222 | fi | |
1223 | for ac_site_file in $CONFIG_SITE; do | |
1224 | if test -r "$ac_site_file"; then | |
1225 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1226 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1227 | sed 's/^/| /' "$ac_site_file" >&5 | |
1228 | . "$ac_site_file" | |
1229 | fi | |
1230 | done | |
1231 | ||
1232 | if test -r "$cache_file"; then | |
1233 | # Some versions of bash will fail to source /dev/null (special | |
1234 | # files actually), so we avoid doing that. | |
1235 | if test -f "$cache_file"; then | |
1236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1237 | echo "$as_me: loading cache $cache_file" >&6;} | |
1238 | case $cache_file in | |
1239 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1240 | *) . ./$cache_file;; | |
1241 | esac | |
1242 | fi | |
1243 | else | |
1244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1245 | echo "$as_me: creating cache $cache_file" >&6;} | |
1246 | >$cache_file | |
1247 | fi | |
1248 | ||
1249 | # Check that the precious variables saved in the cache have kept the same | |
1250 | # value. | |
1251 | ac_cache_corrupted=false | |
1252 | for ac_var in `(set) 2>&1 | | |
1253 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1254 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1255 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1256 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1257 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1258 | case $ac_old_set,$ac_new_set in | |
1259 | set,) | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1262 | ac_cache_corrupted=: ;; | |
1263 | ,set) | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1266 | ac_cache_corrupted=: ;; | |
1267 | ,);; | |
1268 | *) | |
1269 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1271 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1272 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1273 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1274 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1275 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1276 | ac_cache_corrupted=: | |
1277 | fi;; | |
1278 | esac | |
1279 | # Pass precious variables to config.status. | |
1280 | if test "$ac_new_set" = set; then | |
1281 | case $ac_new_val in | |
1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1284 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1285 | esac | |
1286 | case " $ac_configure_args " in | |
1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1289 | esac | |
1290 | fi | |
1291 | done | |
1292 | if $ac_cache_corrupted; then | |
1293 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1294 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1295 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1296 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1297 | { (exit 1); exit 1; }; } | |
1298 | fi | |
1299 | ||
1300 | ac_ext=c | |
1301 | ac_cpp='$CPP $CPPFLAGS' | |
1302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | CODENAME=surge | |
1333 | ac_config_headers="$ac_config_headers src/config.h" | |
1334 | ||
1335 | ||
1336 | ac_aux_dir= | |
1337 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1338 | if test -f $ac_dir/install-sh; then | |
1339 | ac_aux_dir=$ac_dir | |
1340 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1341 | break | |
1342 | elif test -f $ac_dir/install.sh; then | |
1343 | ac_aux_dir=$ac_dir | |
1344 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1345 | break | |
1346 | elif test -f $ac_dir/shtool; then | |
1347 | ac_aux_dir=$ac_dir | |
1348 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1349 | break | |
1350 | fi | |
1351 | done | |
1352 | if test -z "$ac_aux_dir"; then | |
1353 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1354 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1355 | { (exit 1); exit 1; }; } | |
1356 | fi | |
1357 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1358 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1359 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1360 | ||
1361 | # Make sure we can run config.sub. | |
1362 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1363 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1364 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1365 | { (exit 1); exit 1; }; } | |
1366 | ||
1367 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1368 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1369 | if test "${ac_cv_build+set}" = set; then | |
1370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1371 | else | |
1372 | ac_cv_build_alias=$build_alias | |
1373 | test -z "$ac_cv_build_alias" && | |
1374 | ac_cv_build_alias=`$ac_config_guess` | |
1375 | test -z "$ac_cv_build_alias" && | |
1376 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1377 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1378 | { (exit 1); exit 1; }; } | |
1379 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1380 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1381 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1382 | { (exit 1); exit 1; }; } | |
1383 | ||
1384 | fi | |
1385 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1386 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1387 | build=$ac_cv_build | |
1388 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1389 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1390 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1391 | ||
1392 | ||
1393 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1394 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1395 | if test "${ac_cv_host+set}" = set; then | |
1396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1397 | else | |
1398 | ac_cv_host_alias=$host_alias | |
1399 | test -z "$ac_cv_host_alias" && | |
1400 | ac_cv_host_alias=$ac_cv_build_alias | |
1401 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1402 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1403 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1404 | { (exit 1); exit 1; }; } | |
1405 | ||
1406 | fi | |
1407 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1408 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1409 | host=$ac_cv_host | |
1410 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1411 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1412 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1413 | ||
1414 | ||
1415 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1416 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1417 | if test "${ac_cv_target+set}" = set; then | |
1418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1419 | else | |
1420 | ac_cv_target_alias=$target_alias | |
1421 | test "x$ac_cv_target_alias" = "x" && | |
1422 | ac_cv_target_alias=$ac_cv_host_alias | |
1423 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1424 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1425 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1426 | { (exit 1); exit 1; }; } | |
1427 | ||
1428 | fi | |
1429 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1430 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1431 | target=$ac_cv_target | |
1432 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1433 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1434 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1435 | ||
1436 | ||
1437 | # The aliases save the names the user supplied, while $host etc. | |
1438 | # will get canonicalized. | |
1439 | test -n "$target_alias" && | |
1440 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1441 | NONENONEs,x,x, && | |
1442 | program_prefix=${target_alias}- | |
b3076f16 AS |
1443 | # Find a good install program. We prefer a C program (faster), |
1444 | # so one script is as good as another. But avoid the broken or | |
1445 | # incompatible versions: | |
1446 | # SysV /etc/install, /usr/sbin/install | |
1447 | # SunOS /usr/etc/install | |
1448 | # IRIX /sbin/install | |
1449 | # AIX /bin/install | |
1450 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1451 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1452 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1453 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1454 | # OS/2's system install, which has a completely different semantic | |
1455 | # ./install, which can be erroneously created by make from ./install.sh. | |
1456 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1457 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1458 | if test -z "$INSTALL"; then | |
1459 | if test "${ac_cv_path_install+set}" = set; then | |
1460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1461 | else | |
1462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1463 | for as_dir in $PATH | |
1464 | do | |
1465 | IFS=$as_save_IFS | |
1466 | test -z "$as_dir" && as_dir=. | |
1467 | # Account for people who put trailing slashes in PATH elements. | |
1468 | case $as_dir/ in | |
1469 | ./ | .// | /cC/* | \ | |
1470 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1471 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1472 | /usr/ucb/* ) ;; | |
1473 | *) | |
1474 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1475 | # Don't use installbsd from OSF since it installs stuff as root | |
1476 | # by default. | |
1477 | for ac_prog in ginstall scoinst install; do | |
1478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1479 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1480 | if test $ac_prog = install && | |
1481 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1482 | # AIX install. It has an incompatible calling convention. | |
1483 | : | |
1484 | elif test $ac_prog = install && | |
1485 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1486 | # program-specific install script used by HP pwplus--don't use. | |
1487 | : | |
1488 | else | |
1489 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1490 | break 3 | |
1491 | fi | |
1492 | fi | |
1493 | done | |
1494 | done | |
1495 | ;; | |
1496 | esac | |
1497 | done | |
1498 | ||
1499 | ||
1500 | fi | |
1501 | if test "${ac_cv_path_install+set}" = set; then | |
1502 | INSTALL=$ac_cv_path_install | |
1503 | else | |
1504 | # As a last resort, use the slow shell script. We don't cache a | |
1505 | # path for INSTALL within a source directory, because that will | |
1506 | # break other packages using the cache if that directory is | |
1507 | # removed, or if the path is relative. | |
1508 | INSTALL=$ac_install_sh | |
1509 | fi | |
1510 | fi | |
1511 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1512 | echo "${ECHO_T}$INSTALL" >&6 | |
1513 | ||
1514 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1515 | # It thinks the first close brace ends the variable substitution. | |
1516 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1517 | ||
1518 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1519 | ||
1520 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1521 | ||
1522 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1523 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1524 | # Just in case | |
1525 | sleep 1 | |
b2cf3d66 | 1526 | echo timestamp > conftestfile |
b3076f16 AS |
1527 | # Do `set' in a subshell so we don't clobber the current shell's |
1528 | # arguments. Must try -L first in case configure is actually a | |
1529 | # symlink; some systems play weird games with the mod time of symlinks | |
1530 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1531 | # directory). | |
1532 | if ( | |
b2cf3d66 | 1533 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
b3076f16 AS |
1534 | if test "$*" = "X"; then |
1535 | # -L didn't work. | |
b2cf3d66 | 1536 | set X `ls -t $srcdir/configure conftestfile` |
b3076f16 | 1537 | fi |
b2cf3d66 AS |
1538 | if test "$*" != "X $srcdir/configure conftestfile" \ |
1539 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
b3076f16 AS |
1540 | |
1541 | # If neither matched, then we have a broken ls. This can happen | |
1542 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1543 | # broken ls alias from the environment. This has actually | |
1544 | # happened. Such a system could not be considered "sane". | |
1545 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1546 | alias in your environment" >&5 | |
1547 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1548 | alias in your environment" >&2;} | |
1549 | { (exit 1); exit 1; }; } | |
1550 | fi | |
1551 | ||
b2cf3d66 | 1552 | test "$2" = conftestfile |
b3076f16 AS |
1553 | ) |
1554 | then | |
1555 | # Ok. | |
1556 | : | |
1557 | else | |
1558 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1559 | Check your system clock" >&5 | |
1560 | echo "$as_me: error: newly created file is older than distributed files! | |
1561 | Check your system clock" >&2;} | |
1562 | { (exit 1); exit 1; }; } | |
1563 | fi | |
b2cf3d66 | 1564 | rm -f conftest* |
b3076f16 AS |
1565 | echo "$as_me:$LINENO: result: yes" >&5 |
1566 | echo "${ECHO_T}yes" >&6 | |
1567 | test "$program_prefix" != NONE && | |
1568 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1569 | # Use a double $ so make ignores it. | |
1570 | test "$program_suffix" != NONE && | |
1571 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1572 | # Double any \ or $. echo might interpret backslashes. | |
1573 | # By default was `s,x,x', remove it if useless. | |
1574 | cat <<\_ACEOF >conftest.sed | |
1575 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1576 | _ACEOF | |
1577 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1578 | rm conftest.sed | |
1579 | ||
b3076f16 AS |
1580 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1581 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1582 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1583 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1585 | else | |
1586 | cat >conftest.make <<\_ACEOF | |
1587 | all: | |
1588 | @echo 'ac_maketemp="$(MAKE)"' | |
1589 | _ACEOF | |
1590 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1591 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1592 | if test -n "$ac_maketemp"; then | |
1593 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1594 | else | |
1595 | eval ac_cv_prog_make_${ac_make}_set=no | |
1596 | fi | |
1597 | rm -f conftest.make | |
1598 | fi | |
1599 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1600 | echo "$as_me:$LINENO: result: yes" >&5 | |
1601 | echo "${ECHO_T}yes" >&6 | |
1602 | SET_MAKE= | |
1603 | else | |
1604 | echo "$as_me:$LINENO: result: no" >&5 | |
1605 | echo "${ECHO_T}no" >&6 | |
1606 | SET_MAKE="MAKE=${MAKE-make}" | |
1607 | fi | |
1608 | ||
b3076f16 | 1609 | |
b2cf3d66 AS |
1610 | PACKAGE=gnu 1.6 |
1611 | ||
1612 | VERSION= | |
1613 | ||
1614 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
b3076f16 AS |
1615 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1616 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1617 | { (exit 1); exit 1; }; } | |
1618 | fi | |
1619 | ||
b3076f16 AS |
1620 | cat >>confdefs.h <<_ACEOF |
1621 | #define PACKAGE "$PACKAGE" | |
1622 | _ACEOF | |
1623 | ||
1624 | ||
1625 | cat >>confdefs.h <<_ACEOF | |
1626 | #define VERSION "$VERSION" | |
1627 | _ACEOF | |
1628 | ||
b3076f16 | 1629 | |
b3076f16 | 1630 | |
b2cf3d66 AS |
1631 | missing_dir=`cd $ac_aux_dir && pwd` |
1632 | echo "$as_me:$LINENO: checking for working aclocal" >&5 | |
1633 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 | |
1634 | # Run test in a subshell; some versions of sh will print an error if | |
1635 | # an executable is not found, even if stderr is redirected. | |
1636 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1637 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1638 | ACLOCAL=aclocal | |
1639 | echo "$as_me:$LINENO: result: found" >&5 | |
1640 | echo "${ECHO_T}found" >&6 | |
b3076f16 | 1641 | else |
b2cf3d66 AS |
1642 | ACLOCAL="$missing_dir/missing aclocal" |
1643 | echo "$as_me:$LINENO: result: missing" >&5 | |
1644 | echo "${ECHO_T}missing" >&6 | |
b3076f16 AS |
1645 | fi |
1646 | ||
b2cf3d66 AS |
1647 | echo "$as_me:$LINENO: checking for working autoconf" >&5 |
1648 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 | |
1649 | # Run test in a subshell; some versions of sh will print an error if | |
1650 | # an executable is not found, even if stderr is redirected. | |
1651 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1652 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1653 | AUTOCONF=autoconf | |
1654 | echo "$as_me:$LINENO: result: found" >&5 | |
1655 | echo "${ECHO_T}found" >&6 | |
b3076f16 | 1656 | else |
b2cf3d66 AS |
1657 | AUTOCONF="$missing_dir/missing autoconf" |
1658 | echo "$as_me:$LINENO: result: missing" >&5 | |
1659 | echo "${ECHO_T}missing" >&6 | |
b3076f16 | 1660 | fi |
b2cf3d66 AS |
1661 | |
1662 | echo "$as_me:$LINENO: checking for working automake" >&5 | |
1663 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 | |
1664 | # Run test in a subshell; some versions of sh will print an error if | |
1665 | # an executable is not found, even if stderr is redirected. | |
1666 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1667 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1668 | AUTOMAKE=automake | |
1669 | echo "$as_me:$LINENO: result: found" >&5 | |
1670 | echo "${ECHO_T}found" >&6 | |
b3076f16 | 1671 | else |
b2cf3d66 AS |
1672 | AUTOMAKE="$missing_dir/missing automake" |
1673 | echo "$as_me:$LINENO: result: missing" >&5 | |
1674 | echo "${ECHO_T}missing" >&6 | |
b3076f16 AS |
1675 | fi |
1676 | ||
b2cf3d66 AS |
1677 | echo "$as_me:$LINENO: checking for working autoheader" >&5 |
1678 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 | |
1679 | # Run test in a subshell; some versions of sh will print an error if | |
1680 | # an executable is not found, even if stderr is redirected. | |
1681 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1682 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1683 | AUTOHEADER=autoheader | |
1684 | echo "$as_me:$LINENO: result: found" >&5 | |
1685 | echo "${ECHO_T}found" >&6 | |
b3076f16 | 1686 | else |
b2cf3d66 AS |
1687 | AUTOHEADER="$missing_dir/missing autoheader" |
1688 | echo "$as_me:$LINENO: result: missing" >&5 | |
1689 | echo "${ECHO_T}missing" >&6 | |
b3076f16 AS |
1690 | fi |
1691 | ||
b2cf3d66 AS |
1692 | echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
1693 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 | |
1694 | # Run test in a subshell; some versions of sh will print an error if | |
1695 | # an executable is not found, even if stderr is redirected. | |
1696 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1697 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1698 | MAKEINFO=makeinfo | |
1699 | echo "$as_me:$LINENO: result: found" >&5 | |
1700 | echo "${ECHO_T}found" >&6 | |
1701 | else | |
1702 | MAKEINFO="$missing_dir/missing makeinfo" | |
1703 | echo "$as_me:$LINENO: result: missing" >&5 | |
1704 | echo "${ECHO_T}missing" >&6 | |
b3076f16 | 1705 | fi |
b3076f16 AS |
1706 | |
1707 | ||
1708 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1709 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1710 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1711 | if test "${enable_maintainer_mode+set}" = set; then | |
1712 | enableval="$enable_maintainer_mode" | |
1713 | USE_MAINTAINER_MODE=$enableval | |
1714 | else | |
1715 | USE_MAINTAINER_MODE=no | |
1716 | fi; | |
1717 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1718 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1719 | ||
1720 | ||
1721 | if test $USE_MAINTAINER_MODE = yes; then | |
1722 | MAINTAINER_MODE_TRUE= | |
1723 | MAINTAINER_MODE_FALSE='#' | |
1724 | else | |
1725 | MAINTAINER_MODE_TRUE='#' | |
1726 | MAINTAINER_MODE_FALSE= | |
1727 | fi | |
b3076f16 AS |
1728 | MAINT=$MAINTAINER_MODE_TRUE |
1729 | ||
1730 | ||
1731 | ||
b3076f16 AS |
1732 | ac_ext=c |
1733 | ac_cpp='$CPP $CPPFLAGS' | |
1734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1737 | if test -n "$ac_tool_prefix"; then | |
1738 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1739 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1742 | if test "${ac_cv_prog_CC+set}" = set; then | |
1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1744 | else | |
1745 | if test -n "$CC"; then | |
1746 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1747 | else | |
1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1749 | for as_dir in $PATH | |
1750 | do | |
1751 | IFS=$as_save_IFS | |
1752 | test -z "$as_dir" && as_dir=. | |
1753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1755 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1757 | break 2 | |
1758 | fi | |
1759 | done | |
1760 | done | |
1761 | ||
1762 | fi | |
1763 | fi | |
1764 | CC=$ac_cv_prog_CC | |
1765 | if test -n "$CC"; then | |
1766 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1767 | echo "${ECHO_T}$CC" >&6 | |
1768 | else | |
1769 | echo "$as_me:$LINENO: result: no" >&5 | |
1770 | echo "${ECHO_T}no" >&6 | |
1771 | fi | |
1772 | ||
1773 | fi | |
1774 | if test -z "$ac_cv_prog_CC"; then | |
1775 | ac_ct_CC=$CC | |
1776 | # Extract the first word of "gcc", so it can be a program name with args. | |
1777 | set dummy gcc; ac_word=$2 | |
1778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1780 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1782 | else | |
1783 | if test -n "$ac_ct_CC"; then | |
1784 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1785 | else | |
1786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1787 | for as_dir in $PATH | |
1788 | do | |
1789 | IFS=$as_save_IFS | |
1790 | test -z "$as_dir" && as_dir=. | |
1791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1793 | ac_cv_prog_ac_ct_CC="gcc" | |
1794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1795 | break 2 | |
1796 | fi | |
1797 | done | |
1798 | done | |
1799 | ||
1800 | fi | |
1801 | fi | |
1802 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1803 | if test -n "$ac_ct_CC"; then | |
1804 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1805 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1806 | else | |
1807 | echo "$as_me:$LINENO: result: no" >&5 | |
1808 | echo "${ECHO_T}no" >&6 | |
1809 | fi | |
1810 | ||
1811 | CC=$ac_ct_CC | |
1812 | else | |
1813 | CC="$ac_cv_prog_CC" | |
1814 | fi | |
1815 | ||
1816 | if test -z "$CC"; then | |
1817 | if test -n "$ac_tool_prefix"; then | |
1818 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1819 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1822 | if test "${ac_cv_prog_CC+set}" = set; then | |
1823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1824 | else | |
1825 | if test -n "$CC"; then | |
1826 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1827 | else | |
1828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1829 | for as_dir in $PATH | |
1830 | do | |
1831 | IFS=$as_save_IFS | |
1832 | test -z "$as_dir" && as_dir=. | |
1833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1835 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1837 | break 2 | |
1838 | fi | |
1839 | done | |
1840 | done | |
1841 | ||
1842 | fi | |
1843 | fi | |
1844 | CC=$ac_cv_prog_CC | |
1845 | if test -n "$CC"; then | |
1846 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1847 | echo "${ECHO_T}$CC" >&6 | |
1848 | else | |
1849 | echo "$as_me:$LINENO: result: no" >&5 | |
1850 | echo "${ECHO_T}no" >&6 | |
1851 | fi | |
1852 | ||
1853 | fi | |
1854 | if test -z "$ac_cv_prog_CC"; then | |
1855 | ac_ct_CC=$CC | |
1856 | # Extract the first word of "cc", so it can be a program name with args. | |
1857 | set dummy cc; ac_word=$2 | |
1858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1860 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1862 | else | |
1863 | if test -n "$ac_ct_CC"; then | |
1864 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1865 | else | |
1866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1867 | for as_dir in $PATH | |
1868 | do | |
1869 | IFS=$as_save_IFS | |
1870 | test -z "$as_dir" && as_dir=. | |
1871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1873 | ac_cv_prog_ac_ct_CC="cc" | |
1874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1875 | break 2 | |
1876 | fi | |
1877 | done | |
1878 | done | |
1879 | ||
1880 | fi | |
1881 | fi | |
1882 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1883 | if test -n "$ac_ct_CC"; then | |
1884 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1885 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1886 | else | |
1887 | echo "$as_me:$LINENO: result: no" >&5 | |
1888 | echo "${ECHO_T}no" >&6 | |
1889 | fi | |
1890 | ||
1891 | CC=$ac_ct_CC | |
1892 | else | |
1893 | CC="$ac_cv_prog_CC" | |
1894 | fi | |
1895 | ||
1896 | fi | |
1897 | if test -z "$CC"; then | |
1898 | # Extract the first word of "cc", so it can be a program name with args. | |
1899 | set dummy cc; ac_word=$2 | |
1900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1902 | if test "${ac_cv_prog_CC+set}" = set; then | |
1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1904 | else | |
1905 | if test -n "$CC"; then | |
1906 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1907 | else | |
1908 | ac_prog_rejected=no | |
1909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1910 | for as_dir in $PATH | |
1911 | do | |
1912 | IFS=$as_save_IFS | |
1913 | test -z "$as_dir" && as_dir=. | |
1914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1916 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1917 | ac_prog_rejected=yes | |
1918 | continue | |
1919 | fi | |
1920 | ac_cv_prog_CC="cc" | |
1921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1922 | break 2 | |
1923 | fi | |
1924 | done | |
1925 | done | |
1926 | ||
1927 | if test $ac_prog_rejected = yes; then | |
1928 | # We found a bogon in the path, so make sure we never use it. | |
1929 | set dummy $ac_cv_prog_CC | |
1930 | shift | |
1931 | if test $# != 0; then | |
1932 | # We chose a different compiler from the bogus one. | |
1933 | # However, it has the same basename, so the bogon will be chosen | |
1934 | # first if we set CC to just the basename; use the full file name. | |
1935 | shift | |
1936 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1937 | fi | |
1938 | fi | |
1939 | fi | |
1940 | fi | |
1941 | CC=$ac_cv_prog_CC | |
1942 | if test -n "$CC"; then | |
1943 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1944 | echo "${ECHO_T}$CC" >&6 | |
1945 | else | |
1946 | echo "$as_me:$LINENO: result: no" >&5 | |
1947 | echo "${ECHO_T}no" >&6 | |
1948 | fi | |
1949 | ||
1950 | fi | |
1951 | if test -z "$CC"; then | |
1952 | if test -n "$ac_tool_prefix"; then | |
1953 | for ac_prog in cl | |
1954 | do | |
1955 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1956 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1959 | if test "${ac_cv_prog_CC+set}" = set; then | |
1960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1961 | else | |
1962 | if test -n "$CC"; then | |
1963 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1964 | else | |
1965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1966 | for as_dir in $PATH | |
1967 | do | |
1968 | IFS=$as_save_IFS | |
1969 | test -z "$as_dir" && as_dir=. | |
1970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1972 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1974 | break 2 | |
1975 | fi | |
1976 | done | |
1977 | done | |
1978 | ||
1979 | fi | |
1980 | fi | |
1981 | CC=$ac_cv_prog_CC | |
1982 | if test -n "$CC"; then | |
1983 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1984 | echo "${ECHO_T}$CC" >&6 | |
1985 | else | |
1986 | echo "$as_me:$LINENO: result: no" >&5 | |
1987 | echo "${ECHO_T}no" >&6 | |
1988 | fi | |
1989 | ||
1990 | test -n "$CC" && break | |
1991 | done | |
1992 | fi | |
1993 | if test -z "$CC"; then | |
1994 | ac_ct_CC=$CC | |
1995 | for ac_prog in cl | |
1996 | do | |
1997 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1998 | set dummy $ac_prog; ac_word=$2 | |
1999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2001 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2003 | else | |
2004 | if test -n "$ac_ct_CC"; then | |
2005 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2006 | else | |
2007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2008 | for as_dir in $PATH | |
2009 | do | |
2010 | IFS=$as_save_IFS | |
2011 | test -z "$as_dir" && as_dir=. | |
2012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2014 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2016 | break 2 | |
2017 | fi | |
2018 | done | |
2019 | done | |
2020 | ||
2021 | fi | |
2022 | fi | |
2023 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2024 | if test -n "$ac_ct_CC"; then | |
2025 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2026 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2027 | else | |
2028 | echo "$as_me:$LINENO: result: no" >&5 | |
2029 | echo "${ECHO_T}no" >&6 | |
2030 | fi | |
2031 | ||
2032 | test -n "$ac_ct_CC" && break | |
2033 | done | |
2034 | ||
2035 | CC=$ac_ct_CC | |
2036 | fi | |
2037 | ||
2038 | fi | |
2039 | ||
2040 | ||
2041 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2042 | See \`config.log' for more details." >&5 | |
2043 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2044 | See \`config.log' for more details." >&2;} | |
2045 | { (exit 1); exit 1; }; } | |
2046 | ||
2047 | # Provide some information about the compiler. | |
2048 | echo "$as_me:$LINENO:" \ | |
2049 | "checking for C compiler version" >&5 | |
2050 | ac_compiler=`set X $ac_compile; echo $2` | |
2051 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2052 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2053 | ac_status=$? | |
2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2055 | (exit $ac_status); } | |
2056 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2057 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2058 | ac_status=$? | |
2059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2060 | (exit $ac_status); } | |
2061 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2062 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2063 | ac_status=$? | |
2064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2065 | (exit $ac_status); } | |
2066 | ||
2067 | cat >conftest.$ac_ext <<_ACEOF | |
2068 | /* confdefs.h. */ | |
2069 | _ACEOF | |
2070 | cat confdefs.h >>conftest.$ac_ext | |
2071 | cat >>conftest.$ac_ext <<_ACEOF | |
2072 | /* end confdefs.h. */ | |
2073 | ||
2074 | int | |
2075 | main () | |
2076 | { | |
2077 | ||
2078 | ; | |
2079 | return 0; | |
2080 | } | |
2081 | _ACEOF | |
2082 | ac_clean_files_save=$ac_clean_files | |
2083 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2084 | # Try to create an executable without -o first, disregard a.out. | |
2085 | # It will help us diagnose broken compilers, and finding out an intuition | |
2086 | # of exeext. | |
2087 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2088 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2089 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2090 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2091 | (eval $ac_link_default) 2>&5 | |
2092 | ac_status=$? | |
2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2094 | (exit $ac_status); }; then | |
2095 | # Find the output, starting from the most likely. This scheme is | |
2096 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2097 | # resort. | |
2098 | ||
2099 | # Be careful to initialize this variable, since it used to be cached. | |
2100 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2101 | ac_cv_exeext= | |
2102 | # b.out is created by i960 compilers. | |
2103 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2104 | do | |
2105 | test -f "$ac_file" || continue | |
2106 | case $ac_file in | |
2107 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2108 | ;; | |
2109 | conftest.$ac_ext ) | |
2110 | # This is the source file. | |
2111 | ;; | |
2112 | [ab].out ) | |
2113 | # We found the default executable, but exeext='' is most | |
2114 | # certainly right. | |
2115 | break;; | |
2116 | *.* ) | |
2117 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2118 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2119 | # but it would be cool to find out if it's true. Does anybody | |
2120 | # maintain Libtool? --akim. | |
2121 | export ac_cv_exeext | |
2122 | break;; | |
2123 | * ) | |
2124 | break;; | |
2125 | esac | |
2126 | done | |
2127 | else | |
2128 | echo "$as_me: failed program was:" >&5 | |
2129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2130 | ||
2131 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2132 | See \`config.log' for more details." >&5 | |
2133 | echo "$as_me: error: C compiler cannot create executables | |
2134 | See \`config.log' for more details." >&2;} | |
2135 | { (exit 77); exit 77; }; } | |
2136 | fi | |
2137 | ||
2138 | ac_exeext=$ac_cv_exeext | |
2139 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2140 | echo "${ECHO_T}$ac_file" >&6 | |
2141 | ||
2142 | # Check the compiler produces executables we can run. If not, either | |
2143 | # the compiler is broken, or we cross compile. | |
2144 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2145 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2146 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2147 | # If not cross compiling, check that we can run a simple program. | |
2148 | if test "$cross_compiling" != yes; then | |
2149 | if { ac_try='./$ac_file' | |
2150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2151 | (eval $ac_try) 2>&5 | |
2152 | ac_status=$? | |
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2154 | (exit $ac_status); }; }; then | |
2155 | cross_compiling=no | |
2156 | else | |
2157 | if test "$cross_compiling" = maybe; then | |
2158 | cross_compiling=yes | |
2159 | else | |
2160 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2161 | If you meant to cross compile, use \`--host'. | |
2162 | See \`config.log' for more details." >&5 | |
2163 | echo "$as_me: error: cannot run C compiled programs. | |
2164 | If you meant to cross compile, use \`--host'. | |
2165 | See \`config.log' for more details." >&2;} | |
2166 | { (exit 1); exit 1; }; } | |
2167 | fi | |
2168 | fi | |
2169 | fi | |
2170 | echo "$as_me:$LINENO: result: yes" >&5 | |
2171 | echo "${ECHO_T}yes" >&6 | |
2172 | ||
2173 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2174 | ac_clean_files=$ac_clean_files_save | |
2175 | # Check the compiler produces executables we can run. If not, either | |
2176 | # the compiler is broken, or we cross compile. | |
2177 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2178 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2179 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2180 | echo "${ECHO_T}$cross_compiling" >&6 | |
2181 | ||
2182 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2183 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2185 | (eval $ac_link) 2>&5 | |
2186 | ac_status=$? | |
2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2188 | (exit $ac_status); }; then | |
2189 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2190 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2191 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2192 | # `rm'. | |
2193 | for ac_file in conftest.exe conftest conftest.*; do | |
2194 | test -f "$ac_file" || continue | |
2195 | case $ac_file in | |
2196 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2197 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2198 | export ac_cv_exeext | |
2199 | break;; | |
2200 | * ) break;; | |
2201 | esac | |
2202 | done | |
2203 | else | |
2204 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2205 | See \`config.log' for more details." >&5 | |
2206 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2207 | See \`config.log' for more details." >&2;} | |
2208 | { (exit 1); exit 1; }; } | |
2209 | fi | |
2210 | ||
2211 | rm -f conftest$ac_cv_exeext | |
2212 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2213 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2214 | ||
2215 | rm -f conftest.$ac_ext | |
2216 | EXEEXT=$ac_cv_exeext | |
2217 | ac_exeext=$EXEEXT | |
2218 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2219 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2220 | if test "${ac_cv_objext+set}" = set; then | |
2221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2222 | else | |
2223 | cat >conftest.$ac_ext <<_ACEOF | |
2224 | /* confdefs.h. */ | |
2225 | _ACEOF | |
2226 | cat confdefs.h >>conftest.$ac_ext | |
2227 | cat >>conftest.$ac_ext <<_ACEOF | |
2228 | /* end confdefs.h. */ | |
2229 | ||
2230 | int | |
2231 | main () | |
2232 | { | |
2233 | ||
2234 | ; | |
2235 | return 0; | |
2236 | } | |
2237 | _ACEOF | |
2238 | rm -f conftest.o conftest.obj | |
2239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2240 | (eval $ac_compile) 2>&5 | |
2241 | ac_status=$? | |
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2243 | (exit $ac_status); }; then | |
2244 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2245 | case $ac_file in | |
2246 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2247 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2248 | break;; | |
2249 | esac | |
2250 | done | |
2251 | else | |
2252 | echo "$as_me: failed program was:" >&5 | |
2253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2254 | ||
2255 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2256 | See \`config.log' for more details." >&5 | |
2257 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2258 | See \`config.log' for more details." >&2;} | |
2259 | { (exit 1); exit 1; }; } | |
2260 | fi | |
2261 | ||
2262 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2263 | fi | |
2264 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2265 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2266 | OBJEXT=$ac_cv_objext | |
2267 | ac_objext=$OBJEXT | |
2268 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2269 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2270 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2272 | else | |
2273 | cat >conftest.$ac_ext <<_ACEOF | |
2274 | /* confdefs.h. */ | |
2275 | _ACEOF | |
2276 | cat confdefs.h >>conftest.$ac_ext | |
2277 | cat >>conftest.$ac_ext <<_ACEOF | |
2278 | /* end confdefs.h. */ | |
2279 | ||
2280 | int | |
2281 | main () | |
2282 | { | |
2283 | #ifndef __GNUC__ | |
2284 | choke me | |
2285 | #endif | |
2286 | ||
2287 | ; | |
2288 | return 0; | |
2289 | } | |
2290 | _ACEOF | |
2291 | rm -f conftest.$ac_objext | |
2292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2293 | (eval $ac_compile) 2>conftest.er1 | |
2294 | ac_status=$? | |
2295 | grep -v '^ *+' conftest.er1 >conftest.err | |
2296 | rm -f conftest.er1 | |
2297 | cat conftest.err >&5 | |
2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2299 | (exit $ac_status); } && | |
2300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2302 | (eval $ac_try) 2>&5 | |
2303 | ac_status=$? | |
2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2305 | (exit $ac_status); }; } && | |
2306 | { ac_try='test -s conftest.$ac_objext' | |
2307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2308 | (eval $ac_try) 2>&5 | |
2309 | ac_status=$? | |
2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2311 | (exit $ac_status); }; }; then | |
2312 | ac_compiler_gnu=yes | |
2313 | else | |
2314 | echo "$as_me: failed program was:" >&5 | |
2315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2316 | ||
2317 | ac_compiler_gnu=no | |
2318 | fi | |
2319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2320 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2321 | ||
2322 | fi | |
2323 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2324 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2325 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2326 | ac_test_CFLAGS=${CFLAGS+set} | |
2327 | ac_save_CFLAGS=$CFLAGS | |
2328 | CFLAGS="-g" | |
2329 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2330 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2331 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2333 | else | |
2334 | cat >conftest.$ac_ext <<_ACEOF | |
2335 | /* confdefs.h. */ | |
2336 | _ACEOF | |
2337 | cat confdefs.h >>conftest.$ac_ext | |
2338 | cat >>conftest.$ac_ext <<_ACEOF | |
2339 | /* end confdefs.h. */ | |
2340 | ||
2341 | int | |
2342 | main () | |
2343 | { | |
2344 | ||
2345 | ; | |
2346 | return 0; | |
2347 | } | |
2348 | _ACEOF | |
2349 | rm -f conftest.$ac_objext | |
2350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2351 | (eval $ac_compile) 2>conftest.er1 | |
2352 | ac_status=$? | |
2353 | grep -v '^ *+' conftest.er1 >conftest.err | |
2354 | rm -f conftest.er1 | |
2355 | cat conftest.err >&5 | |
2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2357 | (exit $ac_status); } && | |
2358 | { ac_try='test -z "$ac_c_werror_flag" || 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_g=yes | |
2371 | else | |
2372 | echo "$as_me: failed program was:" >&5 | |
2373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2374 | ||
2375 | ac_cv_prog_cc_g=no | |
2376 | fi | |
2377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2378 | fi | |
2379 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2380 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2381 | if test "$ac_test_CFLAGS" = set; then | |
2382 | CFLAGS=$ac_save_CFLAGS | |
2383 | elif test $ac_cv_prog_cc_g = yes; then | |
2384 | if test "$GCC" = yes; then | |
2385 | CFLAGS="-g -O2" | |
2386 | else | |
2387 | CFLAGS="-g" | |
2388 | fi | |
2389 | else | |
2390 | if test "$GCC" = yes; then | |
2391 | CFLAGS="-O2" | |
2392 | else | |
2393 | CFLAGS= | |
2394 | fi | |
2395 | fi | |
2396 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2397 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2398 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2400 | else | |
2401 | ac_cv_prog_cc_stdc=no | |
2402 | ac_save_CC=$CC | |
2403 | cat >conftest.$ac_ext <<_ACEOF | |
2404 | /* confdefs.h. */ | |
2405 | _ACEOF | |
2406 | cat confdefs.h >>conftest.$ac_ext | |
2407 | cat >>conftest.$ac_ext <<_ACEOF | |
2408 | /* end confdefs.h. */ | |
2409 | #include <stdarg.h> | |
2410 | #include <stdio.h> | |
2411 | #include <sys/types.h> | |
2412 | #include <sys/stat.h> | |
2413 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2414 | struct buf { int x; }; | |
2415 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2416 | static char *e (p, i) | |
2417 | char **p; | |
2418 | int i; | |
2419 | { | |
2420 | return p[i]; | |
2421 | } | |
2422 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2423 | { | |
2424 | char *s; | |
2425 | va_list v; | |
2426 | va_start (v,p); | |
2427 | s = g (p, va_arg (v,int)); | |
2428 | va_end (v); | |
2429 | return s; | |
2430 | } | |
2431 | ||
2432 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2433 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2434 | These don't provoke an error unfortunately, instead are silently treated | |
2435 | as 'x'. The following induces an error, until -std1 is added to get | |
2436 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2437 | array size at least. It's necessary to write '\x00'==0 to get something | |
2438 | that's true only with -std1. */ | |
2439 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2440 | ||
2441 | int test (int i, double x); | |
2442 | struct s1 {int (*f) (int a);}; | |
2443 | struct s2 {int (*f) (double a);}; | |
2444 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2445 | int argc; | |
2446 | char **argv; | |
2447 | int | |
2448 | main () | |
2449 | { | |
2450 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2451 | ; | |
2452 | return 0; | |
2453 | } | |
2454 | _ACEOF | |
2455 | # Don't try gcc -ansi; that turns off useful extensions and | |
2456 | # breaks some systems' header files. | |
2457 | # AIX -qlanglvl=ansi | |
2458 | # Ultrix and OSF/1 -std1 | |
2459 | # HP-UX 10.20 and later -Ae | |
2460 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2461 | # SVR4 -Xc -D__EXTENSIONS__ | |
2462 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2463 | do | |
2464 | CC="$ac_save_CC $ac_arg" | |
2465 | rm -f conftest.$ac_objext | |
2466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2467 | (eval $ac_compile) 2>conftest.er1 | |
2468 | ac_status=$? | |
2469 | grep -v '^ *+' conftest.er1 >conftest.err | |
2470 | rm -f conftest.er1 | |
2471 | cat conftest.err >&5 | |
2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2473 | (exit $ac_status); } && | |
2474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2476 | (eval $ac_try) 2>&5 | |
2477 | ac_status=$? | |
2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2479 | (exit $ac_status); }; } && | |
2480 | { ac_try='test -s conftest.$ac_objext' | |
2481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2482 | (eval $ac_try) 2>&5 | |
2483 | ac_status=$? | |
2484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2485 | (exit $ac_status); }; }; then | |
2486 | ac_cv_prog_cc_stdc=$ac_arg | |
2487 | break | |
2488 | else | |
2489 | echo "$as_me: failed program was:" >&5 | |
2490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2491 | ||
2492 | fi | |
2493 | rm -f conftest.err conftest.$ac_objext | |
2494 | done | |
2495 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2496 | CC=$ac_save_CC | |
2497 | ||
2498 | fi | |
2499 | ||
2500 | case "x$ac_cv_prog_cc_stdc" in | |
2501 | x|xno) | |
2502 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2503 | echo "${ECHO_T}none needed" >&6 ;; | |
2504 | *) | |
2505 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2506 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2507 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2508 | esac | |
2509 | ||
2510 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2511 | # in C++ we need to declare it. In case someone uses the same compiler | |
2512 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2513 | # the declaration of exit, since it's the most demanding environment. | |
2514 | cat >conftest.$ac_ext <<_ACEOF | |
2515 | #ifndef __cplusplus | |
2516 | choke me | |
2517 | #endif | |
2518 | _ACEOF | |
2519 | rm -f conftest.$ac_objext | |
2520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2521 | (eval $ac_compile) 2>conftest.er1 | |
2522 | ac_status=$? | |
2523 | grep -v '^ *+' conftest.er1 >conftest.err | |
2524 | rm -f conftest.er1 | |
2525 | cat conftest.err >&5 | |
2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2527 | (exit $ac_status); } && | |
2528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2530 | (eval $ac_try) 2>&5 | |
2531 | ac_status=$? | |
2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2533 | (exit $ac_status); }; } && | |
2534 | { ac_try='test -s conftest.$ac_objext' | |
2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2536 | (eval $ac_try) 2>&5 | |
2537 | ac_status=$? | |
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2539 | (exit $ac_status); }; }; then | |
2540 | for ac_declaration in \ | |
2541 | '' \ | |
2542 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2543 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2544 | 'extern "C" void exit (int) throw ();' \ | |
2545 | 'extern "C" void exit (int);' \ | |
2546 | 'void exit (int);' | |
2547 | do | |
2548 | cat >conftest.$ac_ext <<_ACEOF | |
2549 | /* confdefs.h. */ | |
2550 | _ACEOF | |
2551 | cat confdefs.h >>conftest.$ac_ext | |
2552 | cat >>conftest.$ac_ext <<_ACEOF | |
2553 | /* end confdefs.h. */ | |
2554 | $ac_declaration | |
2555 | #include <stdlib.h> | |
2556 | int | |
2557 | main () | |
2558 | { | |
2559 | exit (42); | |
2560 | ; | |
2561 | return 0; | |
2562 | } | |
2563 | _ACEOF | |
2564 | rm -f conftest.$ac_objext | |
2565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2566 | (eval $ac_compile) 2>conftest.er1 | |
2567 | ac_status=$? | |
2568 | grep -v '^ *+' conftest.er1 >conftest.err | |
2569 | rm -f conftest.er1 | |
2570 | cat conftest.err >&5 | |
2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2572 | (exit $ac_status); } && | |
2573 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2575 | (eval $ac_try) 2>&5 | |
2576 | ac_status=$? | |
2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2578 | (exit $ac_status); }; } && | |
2579 | { ac_try='test -s conftest.$ac_objext' | |
2580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2581 | (eval $ac_try) 2>&5 | |
2582 | ac_status=$? | |
2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2584 | (exit $ac_status); }; }; then | |
2585 | : | |
2586 | else | |
2587 | echo "$as_me: failed program was:" >&5 | |
2588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2589 | ||
2590 | continue | |
2591 | fi | |
2592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2593 | cat >conftest.$ac_ext <<_ACEOF | |
2594 | /* confdefs.h. */ | |
2595 | _ACEOF | |
2596 | cat confdefs.h >>conftest.$ac_ext | |
2597 | cat >>conftest.$ac_ext <<_ACEOF | |
2598 | /* end confdefs.h. */ | |
2599 | $ac_declaration | |
2600 | int | |
2601 | main () | |
2602 | { | |
2603 | exit (42); | |
2604 | ; | |
2605 | return 0; | |
2606 | } | |
2607 | _ACEOF | |
2608 | rm -f conftest.$ac_objext | |
2609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2610 | (eval $ac_compile) 2>conftest.er1 | |
2611 | ac_status=$? | |
2612 | grep -v '^ *+' conftest.er1 >conftest.err | |
2613 | rm -f conftest.er1 | |
2614 | cat conftest.err >&5 | |
2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2616 | (exit $ac_status); } && | |
2617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2619 | (eval $ac_try) 2>&5 | |
2620 | ac_status=$? | |
2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2622 | (exit $ac_status); }; } && | |
2623 | { ac_try='test -s conftest.$ac_objext' | |
2624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2625 | (eval $ac_try) 2>&5 | |
2626 | ac_status=$? | |
2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2628 | (exit $ac_status); }; }; then | |
2629 | break | |
2630 | else | |
2631 | echo "$as_me: failed program was:" >&5 | |
2632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2633 | ||
2634 | fi | |
2635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2636 | done | |
2637 | rm -f conftest* | |
2638 | if test -n "$ac_declaration"; then | |
2639 | echo '#ifdef __cplusplus' >>confdefs.h | |
2640 | echo $ac_declaration >>confdefs.h | |
2641 | echo '#endif' >>confdefs.h | |
2642 | fi | |
2643 | ||
2644 | else | |
2645 | echo "$as_me: failed program was:" >&5 | |
2646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2647 | ||
2648 | fi | |
2649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2650 | ac_ext=c | |
2651 | ac_cpp='$CPP $CPPFLAGS' | |
2652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2655 | ||
b3076f16 AS |
2656 | |
2657 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
2658 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
2659 | if test "${ac_cv_type_signal+set}" = set; then | |
2660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2661 | else | |
2662 | cat >conftest.$ac_ext <<_ACEOF | |
2663 | /* confdefs.h. */ | |
2664 | _ACEOF | |
2665 | cat confdefs.h >>conftest.$ac_ext | |
2666 | cat >>conftest.$ac_ext <<_ACEOF | |
2667 | /* end confdefs.h. */ | |
2668 | #include <sys/types.h> | |
2669 | #include <signal.h> | |
2670 | #ifdef signal | |
2671 | # undef signal | |
2672 | #endif | |
2673 | #ifdef __cplusplus | |
2674 | extern "C" void (*signal (int, void (*)(int)))(int); | |
2675 | #else | |
2676 | void (*signal ()) (); | |
2677 | #endif | |
2678 | ||
2679 | int | |
2680 | main () | |
2681 | { | |
2682 | int i; | |
2683 | ; | |
2684 | return 0; | |
2685 | } | |
2686 | _ACEOF | |
2687 | rm -f conftest.$ac_objext | |
2688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2689 | (eval $ac_compile) 2>conftest.er1 | |
2690 | ac_status=$? | |
2691 | grep -v '^ *+' conftest.er1 >conftest.err | |
2692 | rm -f conftest.er1 | |
2693 | cat conftest.err >&5 | |
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2695 | (exit $ac_status); } && | |
2696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2698 | (eval $ac_try) 2>&5 | |
2699 | ac_status=$? | |
2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2701 | (exit $ac_status); }; } && | |
2702 | { ac_try='test -s conftest.$ac_objext' | |
2703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2704 | (eval $ac_try) 2>&5 | |
2705 | ac_status=$? | |
2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2707 | (exit $ac_status); }; }; then | |
2708 | ac_cv_type_signal=void | |
2709 | else | |
2710 | echo "$as_me: failed program was:" >&5 | |
2711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2712 | ||
2713 | ac_cv_type_signal=int | |
2714 | fi | |
2715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2716 | fi | |
2717 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
2718 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
2719 | ||
2720 | cat >>confdefs.h <<_ACEOF | |
2721 | #define RETSIGTYPE $ac_cv_type_signal | |
2722 | _ACEOF | |
2723 | ||
2724 | ||
2725 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
2726 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
2727 | if test "${ac_cv_c_const+set}" = set; then | |
2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2729 | else | |
2730 | cat >conftest.$ac_ext <<_ACEOF | |
2731 | /* confdefs.h. */ | |
2732 | _ACEOF | |
2733 | cat confdefs.h >>conftest.$ac_ext | |
2734 | cat >>conftest.$ac_ext <<_ACEOF | |
2735 | /* end confdefs.h. */ | |
2736 | ||
2737 | int | |
2738 | main () | |
2739 | { | |
2740 | /* FIXME: Include the comments suggested by Paul. */ | |
2741 | #ifndef __cplusplus | |
2742 | /* Ultrix mips cc rejects this. */ | |
2743 | typedef int charset[2]; | |
2744 | const charset x; | |
2745 | /* SunOS 4.1.1 cc rejects this. */ | |
2746 | char const *const *ccp; | |
2747 | char **p; | |
2748 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
2749 | struct point {int x, y;}; | |
2750 | static struct point const zero = {0,0}; | |
2751 | /* AIX XL C 1.02.0.0 rejects this. | |
2752 | It does not let you subtract one const X* pointer from another in | |
2753 | an arm of an if-expression whose if-part is not a constant | |
2754 | expression */ | |
2755 | const char *g = "string"; | |
2756 | ccp = &g + (g ? g-g : 0); | |
2757 | /* HPUX 7.0 cc rejects these. */ | |
2758 | ++ccp; | |
2759 | p = (char**) ccp; | |
2760 | ccp = (char const *const *) p; | |
2761 | { /* SCO 3.2v4 cc rejects this. */ | |
2762 | char *t; | |
2763 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2764 | ||
2765 | *t++ = 0; | |
2766 | } | |
2767 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2768 | int x[] = {25, 17}; | |
2769 | const int *foo = &x[0]; | |
2770 | ++foo; | |
2771 | } | |
2772 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2773 | typedef const int *iptr; | |
2774 | iptr p = 0; | |
2775 | ++p; | |
2776 | } | |
2777 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2778 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2779 | struct s { int j; const int *ap[3]; }; | |
2780 | struct s *b; b->j = 5; | |
2781 | } | |
2782 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2783 | const int foo = 10; | |
2784 | } | |
2785 | #endif | |
2786 | ||
2787 | ; | |
2788 | return 0; | |
2789 | } | |
2790 | _ACEOF | |
2791 | rm -f conftest.$ac_objext | |
2792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2793 | (eval $ac_compile) 2>conftest.er1 | |
2794 | ac_status=$? | |
2795 | grep -v '^ *+' conftest.er1 >conftest.err | |
2796 | rm -f conftest.er1 | |
2797 | cat conftest.err >&5 | |
2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2799 | (exit $ac_status); } && | |
2800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2802 | (eval $ac_try) 2>&5 | |
2803 | ac_status=$? | |
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2805 | (exit $ac_status); }; } && | |
2806 | { ac_try='test -s conftest.$ac_objext' | |
2807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2808 | (eval $ac_try) 2>&5 | |
2809 | ac_status=$? | |
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2811 | (exit $ac_status); }; }; then | |
2812 | ac_cv_c_const=yes | |
2813 | else | |
2814 | echo "$as_me: failed program was:" >&5 | |
2815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2816 | ||
2817 | ac_cv_c_const=no | |
2818 | fi | |
2819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2820 | fi | |
2821 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
2822 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
2823 | if test $ac_cv_c_const = no; then | |
2824 | ||
2825 | cat >>confdefs.h <<\_ACEOF | |
2826 | #define const | |
2827 | _ACEOF | |
2828 | ||
2829 | fi | |
2830 | ||
2831 | echo "$as_me:$LINENO: checking for inline" >&5 | |
2832 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
2833 | if test "${ac_cv_c_inline+set}" = set; then | |
2834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2835 | else | |
2836 | ac_cv_c_inline=no | |
2837 | for ac_kw in inline __inline__ __inline; do | |
2838 | cat >conftest.$ac_ext <<_ACEOF | |
2839 | /* confdefs.h. */ | |
2840 | _ACEOF | |
2841 | cat confdefs.h >>conftest.$ac_ext | |
2842 | cat >>conftest.$ac_ext <<_ACEOF | |
2843 | /* end confdefs.h. */ | |
2844 | #ifndef __cplusplus | |
2845 | typedef int foo_t; | |
2846 | static $ac_kw foo_t static_foo () {return 0; } | |
2847 | $ac_kw foo_t foo () {return 0; } | |
2848 | #endif | |
2849 | ||
2850 | _ACEOF | |
2851 | rm -f conftest.$ac_objext | |
2852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2853 | (eval $ac_compile) 2>conftest.er1 | |
2854 | ac_status=$? | |
2855 | grep -v '^ *+' conftest.er1 >conftest.err | |
2856 | rm -f conftest.er1 | |
2857 | cat conftest.err >&5 | |
2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2859 | (exit $ac_status); } && | |
2860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2862 | (eval $ac_try) 2>&5 | |
2863 | ac_status=$? | |
2864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2865 | (exit $ac_status); }; } && | |
2866 | { ac_try='test -s conftest.$ac_objext' | |
2867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2868 | (eval $ac_try) 2>&5 | |
2869 | ac_status=$? | |
2870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2871 | (exit $ac_status); }; }; then | |
2872 | ac_cv_c_inline=$ac_kw; break | |
2873 | else | |
2874 | echo "$as_me: failed program was:" >&5 | |
2875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2876 | ||
2877 | fi | |
2878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2879 | done | |
2880 | ||
2881 | fi | |
2882 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
2883 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
2884 | ||
2885 | ||
2886 | case $ac_cv_c_inline in | |
2887 | inline | yes) ;; | |
2888 | *) | |
2889 | case $ac_cv_c_inline in | |
2890 | no) ac_val=;; | |
2891 | *) ac_val=$ac_cv_c_inline;; | |
2892 | esac | |
2893 | cat >>confdefs.h <<_ACEOF | |
2894 | #ifndef __cplusplus | |
2895 | #define inline $ac_val | |
2896 | #endif | |
2897 | _ACEOF | |
2898 | ;; | |
2899 | esac | |
2900 | ||
2901 | ||
2902 | for ac_prog in gawk mawk nawk awk | |
2903 | do | |
2904 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2905 | set dummy $ac_prog; ac_word=$2 | |
2906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2908 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2910 | else | |
2911 | if test -n "$AWK"; then | |
2912 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2913 | else | |
2914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2915 | for as_dir in $PATH | |
2916 | do | |
2917 | IFS=$as_save_IFS | |
2918 | test -z "$as_dir" && as_dir=. | |
2919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2921 | ac_cv_prog_AWK="$ac_prog" | |
2922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2923 | break 2 | |
2924 | fi | |
2925 | done | |
2926 | done | |
2927 | ||
2928 | fi | |
2929 | fi | |
2930 | AWK=$ac_cv_prog_AWK | |
2931 | if test -n "$AWK"; then | |
2932 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2933 | echo "${ECHO_T}$AWK" >&6 | |
2934 | else | |
2935 | echo "$as_me:$LINENO: result: no" >&5 | |
2936 | echo "${ECHO_T}no" >&6 | |
2937 | fi | |
2938 | ||
2939 | test -n "$AWK" && break | |
2940 | done | |
2941 | ||
2942 | ac_ext=c | |
2943 | ac_cpp='$CPP $CPPFLAGS' | |
2944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2947 | if test -n "$ac_tool_prefix"; then | |
2948 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2949 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2950 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2952 | if test "${ac_cv_prog_CC+set}" = set; then | |
2953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2954 | else | |
2955 | if test -n "$CC"; then | |
2956 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2957 | else | |
2958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2959 | for as_dir in $PATH | |
2960 | do | |
2961 | IFS=$as_save_IFS | |
2962 | test -z "$as_dir" && as_dir=. | |
2963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2965 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2967 | break 2 | |
2968 | fi | |
2969 | done | |
2970 | done | |
2971 | ||
2972 | fi | |
2973 | fi | |
2974 | CC=$ac_cv_prog_CC | |
2975 | if test -n "$CC"; then | |
2976 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2977 | echo "${ECHO_T}$CC" >&6 | |
2978 | else | |
2979 | echo "$as_me:$LINENO: result: no" >&5 | |
2980 | echo "${ECHO_T}no" >&6 | |
2981 | fi | |
2982 | ||
2983 | fi | |
2984 | if test -z "$ac_cv_prog_CC"; then | |
2985 | ac_ct_CC=$CC | |
2986 | # Extract the first word of "gcc", so it can be a program name with args. | |
2987 | set dummy gcc; ac_word=$2 | |
2988 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2990 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2992 | else | |
2993 | if test -n "$ac_ct_CC"; then | |
2994 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2995 | else | |
2996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2997 | for as_dir in $PATH | |
2998 | do | |
2999 | IFS=$as_save_IFS | |
3000 | test -z "$as_dir" && as_dir=. | |
3001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3002 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3003 | ac_cv_prog_ac_ct_CC="gcc" | |
3004 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3005 | break 2 | |
3006 | fi | |
3007 | done | |
3008 | done | |
3009 | ||
3010 | fi | |
3011 | fi | |
3012 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3013 | if test -n "$ac_ct_CC"; then | |
3014 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3015 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3016 | else | |
3017 | echo "$as_me:$LINENO: result: no" >&5 | |
3018 | echo "${ECHO_T}no" >&6 | |
3019 | fi | |
3020 | ||
3021 | CC=$ac_ct_CC | |
3022 | else | |
3023 | CC="$ac_cv_prog_CC" | |
3024 | fi | |
3025 | ||
3026 | if test -z "$CC"; then | |
3027 | if test -n "$ac_tool_prefix"; then | |
3028 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3029 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3030 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3032 | if test "${ac_cv_prog_CC+set}" = set; then | |
3033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3034 | else | |
3035 | if test -n "$CC"; then | |
3036 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3037 | else | |
3038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3039 | for as_dir in $PATH | |
3040 | do | |
3041 | IFS=$as_save_IFS | |
3042 | test -z "$as_dir" && as_dir=. | |
3043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3044 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3045 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3047 | break 2 | |
3048 | fi | |
3049 | done | |
3050 | done | |
3051 | ||
3052 | fi | |
3053 | fi | |
3054 | CC=$ac_cv_prog_CC | |
3055 | if test -n "$CC"; then | |
3056 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3057 | echo "${ECHO_T}$CC" >&6 | |
3058 | else | |
3059 | echo "$as_me:$LINENO: result: no" >&5 | |
3060 | echo "${ECHO_T}no" >&6 | |
3061 | fi | |
3062 | ||
3063 | fi | |
3064 | if test -z "$ac_cv_prog_CC"; then | |
3065 | ac_ct_CC=$CC | |
3066 | # Extract the first word of "cc", so it can be a program name with args. | |
3067 | set dummy cc; ac_word=$2 | |
3068 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3070 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3072 | else | |
3073 | if test -n "$ac_ct_CC"; then | |
3074 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3075 | else | |
3076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3077 | for as_dir in $PATH | |
3078 | do | |
3079 | IFS=$as_save_IFS | |
3080 | test -z "$as_dir" && as_dir=. | |
3081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3082 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3083 | ac_cv_prog_ac_ct_CC="cc" | |
3084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3085 | break 2 | |
3086 | fi | |
3087 | done | |
3088 | done | |
3089 | ||
3090 | fi | |
3091 | fi | |
3092 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3093 | if test -n "$ac_ct_CC"; then | |
3094 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3095 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3096 | else | |
3097 | echo "$as_me:$LINENO: result: no" >&5 | |
3098 | echo "${ECHO_T}no" >&6 | |
3099 | fi | |
3100 | ||
3101 | CC=$ac_ct_CC | |
3102 | else | |
3103 | CC="$ac_cv_prog_CC" | |
3104 | fi | |
3105 | ||
3106 | fi | |
3107 | if test -z "$CC"; then | |
3108 | # Extract the first word of "cc", so it can be a program name with args. | |
3109 | set dummy cc; ac_word=$2 | |
3110 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3112 | if test "${ac_cv_prog_CC+set}" = set; then | |
3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3114 | else | |
3115 | if test -n "$CC"; then | |
3116 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3117 | else | |
3118 | ac_prog_rejected=no | |
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3120 | for as_dir in $PATH | |
3121 | do | |
3122 | IFS=$as_save_IFS | |
3123 | test -z "$as_dir" && as_dir=. | |
3124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3125 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3126 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3127 | ac_prog_rejected=yes | |
3128 | continue | |
3129 | fi | |
3130 | ac_cv_prog_CC="cc" | |
3131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3132 | break 2 | |
3133 | fi | |
3134 | done | |
3135 | done | |
3136 | ||
3137 | if test $ac_prog_rejected = yes; then | |
3138 | # We found a bogon in the path, so make sure we never use it. | |
3139 | set dummy $ac_cv_prog_CC | |
3140 | shift | |
3141 | if test $# != 0; then | |
3142 | # We chose a different compiler from the bogus one. | |
3143 | # However, it has the same basename, so the bogon will be chosen | |
3144 | # first if we set CC to just the basename; use the full file name. | |
3145 | shift | |
3146 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3147 | fi | |
3148 | fi | |
3149 | fi | |
3150 | fi | |
3151 | CC=$ac_cv_prog_CC | |
3152 | if test -n "$CC"; then | |
3153 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3154 | echo "${ECHO_T}$CC" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | fi | |
3161 | if test -z "$CC"; then | |
3162 | if test -n "$ac_tool_prefix"; then | |
3163 | for ac_prog in cl | |
3164 | do | |
3165 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3166 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3169 | if test "${ac_cv_prog_CC+set}" = set; then | |
3170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3171 | else | |
3172 | if test -n "$CC"; then | |
3173 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3174 | else | |
3175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3176 | for as_dir in $PATH | |
3177 | do | |
3178 | IFS=$as_save_IFS | |
3179 | test -z "$as_dir" && as_dir=. | |
3180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3182 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3184 | break 2 | |
3185 | fi | |
3186 | done | |
3187 | done | |
3188 | ||
3189 | fi | |
3190 | fi | |
3191 | CC=$ac_cv_prog_CC | |
3192 | if test -n "$CC"; then | |
3193 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3194 | echo "${ECHO_T}$CC" >&6 | |
3195 | else | |
3196 | echo "$as_me:$LINENO: result: no" >&5 | |
3197 | echo "${ECHO_T}no" >&6 | |
3198 | fi | |
3199 | ||
3200 | test -n "$CC" && break | |
3201 | done | |
3202 | fi | |
3203 | if test -z "$CC"; then | |
3204 | ac_ct_CC=$CC | |
3205 | for ac_prog in cl | |
3206 | do | |
3207 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3208 | set dummy $ac_prog; ac_word=$2 | |
3209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3211 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3213 | else | |
3214 | if test -n "$ac_ct_CC"; then | |
3215 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3216 | else | |
3217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3218 | for as_dir in $PATH | |
3219 | do | |
3220 | IFS=$as_save_IFS | |
3221 | test -z "$as_dir" && as_dir=. | |
3222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3224 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3226 | break 2 | |
3227 | fi | |
3228 | done | |
3229 | done | |
3230 | ||
3231 | fi | |
3232 | fi | |
3233 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3234 | if test -n "$ac_ct_CC"; then | |
3235 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3236 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3237 | else | |
3238 | echo "$as_me:$LINENO: result: no" >&5 | |
3239 | echo "${ECHO_T}no" >&6 | |
3240 | fi | |
3241 | ||
3242 | test -n "$ac_ct_CC" && break | |
3243 | done | |
3244 | ||
3245 | CC=$ac_ct_CC | |
3246 | fi | |
3247 | ||
3248 | fi | |
3249 | ||
3250 | ||
3251 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3252 | See \`config.log' for more details." >&5 | |
3253 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3254 | See \`config.log' for more details." >&2;} | |
3255 | { (exit 1); exit 1; }; } | |
3256 | ||
3257 | # Provide some information about the compiler. | |
3258 | echo "$as_me:$LINENO:" \ | |
3259 | "checking for C compiler version" >&5 | |
3260 | ac_compiler=`set X $ac_compile; echo $2` | |
3261 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3262 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3263 | ac_status=$? | |
3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3265 | (exit $ac_status); } | |
3266 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3267 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3268 | ac_status=$? | |
3269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3270 | (exit $ac_status); } | |
3271 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3272 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3273 | ac_status=$? | |
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3275 | (exit $ac_status); } | |
3276 | ||
3277 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3278 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3279 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3281 | else | |
3282 | cat >conftest.$ac_ext <<_ACEOF | |
3283 | /* confdefs.h. */ | |
3284 | _ACEOF | |
3285 | cat confdefs.h >>conftest.$ac_ext | |
3286 | cat >>conftest.$ac_ext <<_ACEOF | |
3287 | /* end confdefs.h. */ | |
3288 | ||
3289 | int | |
3290 | main () | |
3291 | { | |
3292 | #ifndef __GNUC__ | |
3293 | choke me | |
3294 | #endif | |
3295 | ||
3296 | ; | |
3297 | return 0; | |
3298 | } | |
3299 | _ACEOF | |
3300 | rm -f conftest.$ac_objext | |
3301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3302 | (eval $ac_compile) 2>conftest.er1 | |
3303 | ac_status=$? | |
3304 | grep -v '^ *+' conftest.er1 >conftest.err | |
3305 | rm -f conftest.er1 | |
3306 | cat conftest.err >&5 | |
3307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3308 | (exit $ac_status); } && | |
3309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3311 | (eval $ac_try) 2>&5 | |
3312 | ac_status=$? | |
3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3314 | (exit $ac_status); }; } && | |
3315 | { ac_try='test -s conftest.$ac_objext' | |
3316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3317 | (eval $ac_try) 2>&5 | |
3318 | ac_status=$? | |
3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3320 | (exit $ac_status); }; }; then | |
3321 | ac_compiler_gnu=yes | |
3322 | else | |
3323 | echo "$as_me: failed program was:" >&5 | |
3324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3325 | ||
3326 | ac_compiler_gnu=no | |
3327 | fi | |
3328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3329 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3330 | ||
3331 | fi | |
3332 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3333 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3334 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3335 | ac_test_CFLAGS=${CFLAGS+set} | |
3336 | ac_save_CFLAGS=$CFLAGS | |
3337 | CFLAGS="-g" | |
3338 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3339 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3340 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3342 | else | |
3343 | cat >conftest.$ac_ext <<_ACEOF | |
3344 | /* confdefs.h. */ | |
3345 | _ACEOF | |
3346 | cat confdefs.h >>conftest.$ac_ext | |
3347 | cat >>conftest.$ac_ext <<_ACEOF | |
3348 | /* end confdefs.h. */ | |
3349 | ||
3350 | int | |
3351 | main () | |
3352 | { | |
3353 | ||
3354 | ; | |
3355 | return 0; | |
3356 | } | |
3357 | _ACEOF | |
3358 | rm -f conftest.$ac_objext | |
3359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3360 | (eval $ac_compile) 2>conftest.er1 | |
3361 | ac_status=$? | |
3362 | grep -v '^ *+' conftest.er1 >conftest.err | |
3363 | rm -f conftest.er1 | |
3364 | cat conftest.err >&5 | |
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3366 | (exit $ac_status); } && | |
3367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3369 | (eval $ac_try) 2>&5 | |
3370 | ac_status=$? | |
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3372 | (exit $ac_status); }; } && | |
3373 | { ac_try='test -s conftest.$ac_objext' | |
3374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3375 | (eval $ac_try) 2>&5 | |
3376 | ac_status=$? | |
3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3378 | (exit $ac_status); }; }; then | |
3379 | ac_cv_prog_cc_g=yes | |
3380 | else | |
3381 | echo "$as_me: failed program was:" >&5 | |
3382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3383 | ||
3384 | ac_cv_prog_cc_g=no | |
3385 | fi | |
3386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3387 | fi | |
3388 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3389 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3390 | if test "$ac_test_CFLAGS" = set; then | |
3391 | CFLAGS=$ac_save_CFLAGS | |
3392 | elif test $ac_cv_prog_cc_g = yes; then | |
3393 | if test "$GCC" = yes; then | |
3394 | CFLAGS="-g -O2" | |
3395 | else | |
3396 | CFLAGS="-g" | |
3397 | fi | |
3398 | else | |
3399 | if test "$GCC" = yes; then | |
3400 | CFLAGS="-O2" | |
3401 | else | |
3402 | CFLAGS= | |
3403 | fi | |
3404 | fi | |
3405 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
3406 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3407 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3409 | else | |
3410 | ac_cv_prog_cc_stdc=no | |
3411 | ac_save_CC=$CC | |
3412 | cat >conftest.$ac_ext <<_ACEOF | |
3413 | /* confdefs.h. */ | |
3414 | _ACEOF | |
3415 | cat confdefs.h >>conftest.$ac_ext | |
3416 | cat >>conftest.$ac_ext <<_ACEOF | |
3417 | /* end confdefs.h. */ | |
3418 | #include <stdarg.h> | |
3419 | #include <stdio.h> | |
3420 | #include <sys/types.h> | |
3421 | #include <sys/stat.h> | |
3422 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3423 | struct buf { int x; }; | |
3424 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3425 | static char *e (p, i) | |
3426 | char **p; | |
3427 | int i; | |
3428 | { | |
3429 | return p[i]; | |
3430 | } | |
3431 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3432 | { | |
3433 | char *s; | |
3434 | va_list v; | |
3435 | va_start (v,p); | |
3436 | s = g (p, va_arg (v,int)); | |
3437 | va_end (v); | |
3438 | return s; | |
3439 | } | |
3440 | ||
3441 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3442 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3443 | These don't provoke an error unfortunately, instead are silently treated | |
3444 | as 'x'. The following induces an error, until -std1 is added to get | |
3445 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3446 | array size at least. It's necessary to write '\x00'==0 to get something | |
3447 | that's true only with -std1. */ | |
3448 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3449 | ||
3450 | int test (int i, double x); | |
3451 | struct s1 {int (*f) (int a);}; | |
3452 | struct s2 {int (*f) (double a);}; | |
3453 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3454 | int argc; | |
3455 | char **argv; | |
3456 | int | |
3457 | main () | |
3458 | { | |
3459 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3460 | ; | |
3461 | return 0; | |
3462 | } | |
3463 | _ACEOF | |
3464 | # Don't try gcc -ansi; that turns off useful extensions and | |
3465 | # breaks some systems' header files. | |
3466 | # AIX -qlanglvl=ansi | |
3467 | # Ultrix and OSF/1 -std1 | |
3468 | # HP-UX 10.20 and later -Ae | |
3469 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3470 | # SVR4 -Xc -D__EXTENSIONS__ | |
3471 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3472 | do | |
3473 | CC="$ac_save_CC $ac_arg" | |
3474 | rm -f conftest.$ac_objext | |
3475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3476 | (eval $ac_compile) 2>conftest.er1 | |
3477 | ac_status=$? | |
3478 | grep -v '^ *+' conftest.er1 >conftest.err | |
3479 | rm -f conftest.er1 | |
3480 | cat conftest.err >&5 | |
3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3482 | (exit $ac_status); } && | |
3483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3485 | (eval $ac_try) 2>&5 | |
3486 | ac_status=$? | |
3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3488 | (exit $ac_status); }; } && | |
3489 | { ac_try='test -s conftest.$ac_objext' | |
3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3491 | (eval $ac_try) 2>&5 | |
3492 | ac_status=$? | |
3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3494 | (exit $ac_status); }; }; then | |
3495 | ac_cv_prog_cc_stdc=$ac_arg | |
3496 | break | |
3497 | else | |
3498 | echo "$as_me: failed program was:" >&5 | |
3499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3500 | ||
3501 | fi | |
3502 | rm -f conftest.err conftest.$ac_objext | |
3503 | done | |
3504 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3505 | CC=$ac_save_CC | |
3506 | ||
3507 | fi | |
3508 | ||
3509 | case "x$ac_cv_prog_cc_stdc" in | |
3510 | x|xno) | |
3511 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3512 | echo "${ECHO_T}none needed" >&6 ;; | |
3513 | *) | |
3514 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3515 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3516 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3517 | esac | |
3518 | ||
3519 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3520 | # in C++ we need to declare it. In case someone uses the same compiler | |
3521 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3522 | # the declaration of exit, since it's the most demanding environment. | |
3523 | cat >conftest.$ac_ext <<_ACEOF | |
3524 | #ifndef __cplusplus | |
3525 | choke me | |
3526 | #endif | |
3527 | _ACEOF | |
3528 | rm -f conftest.$ac_objext | |
3529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3530 | (eval $ac_compile) 2>conftest.er1 | |
3531 | ac_status=$? | |
3532 | grep -v '^ *+' conftest.er1 >conftest.err | |
3533 | rm -f conftest.er1 | |
3534 | cat conftest.err >&5 | |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3536 | (exit $ac_status); } && | |
3537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3539 | (eval $ac_try) 2>&5 | |
3540 | ac_status=$? | |
3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3542 | (exit $ac_status); }; } && | |
3543 | { ac_try='test -s conftest.$ac_objext' | |
3544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3545 | (eval $ac_try) 2>&5 | |
3546 | ac_status=$? | |
3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3548 | (exit $ac_status); }; }; then | |
3549 | for ac_declaration in \ | |
3550 | '' \ | |
3551 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3552 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3553 | 'extern "C" void exit (int) throw ();' \ | |
3554 | 'extern "C" void exit (int);' \ | |
3555 | 'void exit (int);' | |
3556 | do | |
3557 | cat >conftest.$ac_ext <<_ACEOF | |
3558 | /* confdefs.h. */ | |
3559 | _ACEOF | |
3560 | cat confdefs.h >>conftest.$ac_ext | |
3561 | cat >>conftest.$ac_ext <<_ACEOF | |
3562 | /* end confdefs.h. */ | |
3563 | $ac_declaration | |
3564 | #include <stdlib.h> | |
3565 | int | |
3566 | main () | |
3567 | { | |
3568 | exit (42); | |
3569 | ; | |
3570 | return 0; | |
3571 | } | |
3572 | _ACEOF | |
3573 | rm -f conftest.$ac_objext | |
3574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3575 | (eval $ac_compile) 2>conftest.er1 | |
3576 | ac_status=$? | |
3577 | grep -v '^ *+' conftest.er1 >conftest.err | |
3578 | rm -f conftest.er1 | |
3579 | cat conftest.err >&5 | |
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3581 | (exit $ac_status); } && | |
3582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3584 | (eval $ac_try) 2>&5 | |
3585 | ac_status=$? | |
3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3587 | (exit $ac_status); }; } && | |
3588 | { ac_try='test -s conftest.$ac_objext' | |
3589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3590 | (eval $ac_try) 2>&5 | |
3591 | ac_status=$? | |
3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3593 | (exit $ac_status); }; }; then | |
3594 | : | |
3595 | else | |
3596 | echo "$as_me: failed program was:" >&5 | |
3597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3598 | ||
3599 | continue | |
3600 | fi | |
3601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3602 | cat >conftest.$ac_ext <<_ACEOF | |
3603 | /* confdefs.h. */ | |
3604 | _ACEOF | |
3605 | cat confdefs.h >>conftest.$ac_ext | |
3606 | cat >>conftest.$ac_ext <<_ACEOF | |
3607 | /* end confdefs.h. */ | |
3608 | $ac_declaration | |
3609 | int | |
3610 | main () | |
3611 | { | |
3612 | exit (42); | |
3613 | ; | |
3614 | return 0; | |
3615 | } | |
3616 | _ACEOF | |
3617 | rm -f conftest.$ac_objext | |
3618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3619 | (eval $ac_compile) 2>conftest.er1 | |
3620 | ac_status=$? | |
3621 | grep -v '^ *+' conftest.er1 >conftest.err | |
3622 | rm -f conftest.er1 | |
3623 | cat conftest.err >&5 | |
3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3625 | (exit $ac_status); } && | |
3626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3628 | (eval $ac_try) 2>&5 | |
3629 | ac_status=$? | |
3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3631 | (exit $ac_status); }; } && | |
3632 | { ac_try='test -s conftest.$ac_objext' | |
3633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3634 | (eval $ac_try) 2>&5 | |
3635 | ac_status=$? | |
3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3637 | (exit $ac_status); }; }; then | |
3638 | break | |
3639 | else | |
3640 | echo "$as_me: failed program was:" >&5 | |
3641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3642 | ||
3643 | fi | |
3644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3645 | done | |
3646 | rm -f conftest* | |
3647 | if test -n "$ac_declaration"; then | |
3648 | echo '#ifdef __cplusplus' >>confdefs.h | |
3649 | echo $ac_declaration >>confdefs.h | |
3650 | echo '#endif' >>confdefs.h | |
3651 | fi | |
3652 | ||
3653 | else | |
3654 | echo "$as_me: failed program was:" >&5 | |
3655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3656 | ||
3657 | fi | |
3658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3659 | ac_ext=c | |
3660 | ac_cpp='$CPP $CPPFLAGS' | |
3661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3664 | ||
b3076f16 AS |
3665 | if test -n "$ac_tool_prefix"; then |
3666 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3667 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3668 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3670 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3672 | else | |
3673 | if test -n "$RANLIB"; then | |
3674 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3675 | else | |
3676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3677 | for as_dir in $PATH | |
3678 | do | |
3679 | IFS=$as_save_IFS | |
3680 | test -z "$as_dir" && as_dir=. | |
3681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3682 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3683 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3685 | break 2 | |
3686 | fi | |
3687 | done | |
3688 | done | |
3689 | ||
3690 | fi | |
3691 | fi | |
3692 | RANLIB=$ac_cv_prog_RANLIB | |
3693 | if test -n "$RANLIB"; then | |
3694 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3695 | echo "${ECHO_T}$RANLIB" >&6 | |
3696 | else | |
3697 | echo "$as_me:$LINENO: result: no" >&5 | |
3698 | echo "${ECHO_T}no" >&6 | |
3699 | fi | |
3700 | ||
3701 | fi | |
3702 | if test -z "$ac_cv_prog_RANLIB"; then | |
3703 | ac_ct_RANLIB=$RANLIB | |
3704 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3705 | set dummy ranlib; ac_word=$2 | |
3706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3708 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3710 | else | |
3711 | if test -n "$ac_ct_RANLIB"; then | |
3712 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3713 | else | |
3714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3715 | for as_dir in $PATH | |
3716 | do | |
3717 | IFS=$as_save_IFS | |
3718 | test -z "$as_dir" && as_dir=. | |
3719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3721 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3723 | break 2 | |
3724 | fi | |
3725 | done | |
3726 | done | |
3727 | ||
3728 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3729 | fi | |
3730 | fi | |
3731 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3732 | if test -n "$ac_ct_RANLIB"; then | |
3733 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3734 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3735 | else | |
3736 | echo "$as_me:$LINENO: result: no" >&5 | |
3737 | echo "${ECHO_T}no" >&6 | |
3738 | fi | |
3739 | ||
3740 | RANLIB=$ac_ct_RANLIB | |
3741 | else | |
3742 | RANLIB="$ac_cv_prog_RANLIB" | |
3743 | fi | |
3744 | ||
3745 | # Find a good install program. We prefer a C program (faster), | |
3746 | # so one script is as good as another. But avoid the broken or | |
3747 | # incompatible versions: | |
3748 | # SysV /etc/install, /usr/sbin/install | |
3749 | # SunOS /usr/etc/install | |
3750 | # IRIX /sbin/install | |
3751 | # AIX /bin/install | |
3752 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3753 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3754 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3755 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3756 | # OS/2's system install, which has a completely different semantic | |
3757 | # ./install, which can be erroneously created by make from ./install.sh. | |
3758 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3759 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3760 | if test -z "$INSTALL"; then | |
3761 | if test "${ac_cv_path_install+set}" = set; then | |
3762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3763 | else | |
3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3765 | for as_dir in $PATH | |
3766 | do | |
3767 | IFS=$as_save_IFS | |
3768 | test -z "$as_dir" && as_dir=. | |
3769 | # Account for people who put trailing slashes in PATH elements. | |
3770 | case $as_dir/ in | |
3771 | ./ | .// | /cC/* | \ | |
3772 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3773 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3774 | /usr/ucb/* ) ;; | |
3775 | *) | |
3776 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3777 | # Don't use installbsd from OSF since it installs stuff as root | |
3778 | # by default. | |
3779 | for ac_prog in ginstall scoinst install; do | |
3780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3781 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3782 | if test $ac_prog = install && | |
3783 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3784 | # AIX install. It has an incompatible calling convention. | |
3785 | : | |
3786 | elif test $ac_prog = install && | |
3787 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3788 | # program-specific install script used by HP pwplus--don't use. | |
3789 | : | |
3790 | else | |
3791 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3792 | break 3 | |
3793 | fi | |
3794 | fi | |
3795 | done | |
3796 | done | |
3797 | ;; | |
3798 | esac | |
3799 | done | |
3800 | ||
3801 | ||
3802 | fi | |
3803 | if test "${ac_cv_path_install+set}" = set; then | |
3804 | INSTALL=$ac_cv_path_install | |
3805 | else | |
3806 | # As a last resort, use the slow shell script. We don't cache a | |
3807 | # path for INSTALL within a source directory, because that will | |
3808 | # break other packages using the cache if that directory is | |
3809 | # removed, or if the path is relative. | |
3810 | INSTALL=$ac_install_sh | |
3811 | fi | |
3812 | fi | |
3813 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3814 | echo "${ECHO_T}$INSTALL" >&6 | |
3815 | ||
3816 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3817 | # It thinks the first close brace ends the variable substitution. | |
3818 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3819 | ||
3820 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3821 | ||
3822 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3823 | ||
3824 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3825 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3826 | LN_S=$as_ln_s | |
3827 | if test "$LN_S" = "ln -s"; then | |
3828 | echo "$as_me:$LINENO: result: yes" >&5 | |
3829 | echo "${ECHO_T}yes" >&6 | |
3830 | else | |
3831 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3832 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3833 | fi | |
3834 | ||
3835 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3836 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3837 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3838 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3840 | else | |
3841 | cat >conftest.make <<\_ACEOF | |
3842 | all: | |
3843 | @echo 'ac_maketemp="$(MAKE)"' | |
3844 | _ACEOF | |
3845 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3846 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3847 | if test -n "$ac_maketemp"; then | |
3848 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3849 | else | |
3850 | eval ac_cv_prog_make_${ac_make}_set=no | |
3851 | fi | |
3852 | rm -f conftest.make | |
3853 | fi | |
3854 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3855 | echo "$as_me:$LINENO: result: yes" >&5 | |
3856 | echo "${ECHO_T}yes" >&6 | |
3857 | SET_MAKE= | |
3858 | else | |
3859 | echo "$as_me:$LINENO: result: no" >&5 | |
3860 | echo "${ECHO_T}no" >&6 | |
3861 | SET_MAKE="MAKE=${MAKE-make}" | |
3862 | fi | |
3863 | ||
3864 | ac_ext=c | |
3865 | ac_cpp='$CPP $CPPFLAGS' | |
3866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3869 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3870 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3871 | # On Suns, sometimes $CPP names a directory. | |
3872 | if test -n "$CPP" && test -d "$CPP"; then | |
3873 | CPP= | |
3874 | fi | |
3875 | if test -z "$CPP"; then | |
3876 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3878 | else | |
3879 | # Double quotes because CPP needs to be expanded | |
3880 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3881 | do | |
3882 | ac_preproc_ok=false | |
3883 | for ac_c_preproc_warn_flag in '' yes | |
3884 | do | |
3885 | # Use a header file that comes with gcc, so configuring glibc | |
3886 | # with a fresh cross-compiler works. | |
3887 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3888 | # <limits.h> exists even on freestanding compilers. | |
3889 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3890 | # not just through cpp. "Syntax error" is here to catch this case. | |
3891 | cat >conftest.$ac_ext <<_ACEOF | |
3892 | /* confdefs.h. */ | |
3893 | _ACEOF | |
3894 | cat confdefs.h >>conftest.$ac_ext | |
3895 | cat >>conftest.$ac_ext <<_ACEOF | |
3896 | /* end confdefs.h. */ | |
3897 | #ifdef __STDC__ | |
3898 | # include <limits.h> | |
3899 | #else | |
3900 | # include <assert.h> | |
3901 | #endif | |
3902 | Syntax error | |
3903 | _ACEOF | |
3904 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3905 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3906 | ac_status=$? | |
3907 | grep -v '^ *+' conftest.er1 >conftest.err | |
3908 | rm -f conftest.er1 | |
3909 | cat conftest.err >&5 | |
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3911 | (exit $ac_status); } >/dev/null; then | |
3912 | if test -s conftest.err; then | |
3913 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3914 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3915 | else | |
3916 | ac_cpp_err= | |
3917 | fi | |
3918 | else | |
3919 | ac_cpp_err=yes | |
3920 | fi | |
3921 | if test -z "$ac_cpp_err"; then | |
3922 | : | |
3923 | else | |
3924 | echo "$as_me: failed program was:" >&5 | |
3925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3926 | ||
3927 | # Broken: fails on valid input. | |
3928 | continue | |
3929 | fi | |
3930 | rm -f conftest.err conftest.$ac_ext | |
3931 | ||
3932 | # OK, works on sane cases. Now check whether non-existent headers | |
3933 | # can be detected and how. | |
3934 | cat >conftest.$ac_ext <<_ACEOF | |
3935 | /* confdefs.h. */ | |
3936 | _ACEOF | |
3937 | cat confdefs.h >>conftest.$ac_ext | |
3938 | cat >>conftest.$ac_ext <<_ACEOF | |
3939 | /* end confdefs.h. */ | |
3940 | #include <ac_nonexistent.h> | |
3941 | _ACEOF | |
3942 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3943 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3944 | ac_status=$? | |
3945 | grep -v '^ *+' conftest.er1 >conftest.err | |
3946 | rm -f conftest.er1 | |
3947 | cat conftest.err >&5 | |
3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3949 | (exit $ac_status); } >/dev/null; then | |
3950 | if test -s conftest.err; then | |
3951 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3952 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3953 | else | |
3954 | ac_cpp_err= | |
3955 | fi | |
3956 | else | |
3957 | ac_cpp_err=yes | |
3958 | fi | |
3959 | if test -z "$ac_cpp_err"; then | |
3960 | # Broken: success on invalid input. | |
3961 | continue | |
3962 | else | |
3963 | echo "$as_me: failed program was:" >&5 | |
3964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3965 | ||
3966 | # Passes both tests. | |
3967 | ac_preproc_ok=: | |
3968 | break | |
3969 | fi | |
3970 | rm -f conftest.err conftest.$ac_ext | |
3971 | ||
3972 | done | |
3973 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3974 | rm -f conftest.err conftest.$ac_ext | |
3975 | if $ac_preproc_ok; then | |
3976 | break | |
3977 | fi | |
3978 | ||
3979 | done | |
3980 | ac_cv_prog_CPP=$CPP | |
3981 | ||
3982 | fi | |
3983 | CPP=$ac_cv_prog_CPP | |
3984 | else | |
3985 | ac_cv_prog_CPP=$CPP | |
3986 | fi | |
3987 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3988 | echo "${ECHO_T}$CPP" >&6 | |
3989 | ac_preproc_ok=false | |
3990 | for ac_c_preproc_warn_flag in '' yes | |
3991 | do | |
3992 | # Use a header file that comes with gcc, so configuring glibc | |
3993 | # with a fresh cross-compiler works. | |
3994 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3995 | # <limits.h> exists even on freestanding compilers. | |
3996 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3997 | # not just through cpp. "Syntax error" is here to catch this case. | |
3998 | cat >conftest.$ac_ext <<_ACEOF | |
3999 | /* confdefs.h. */ | |
4000 | _ACEOF | |
4001 | cat confdefs.h >>conftest.$ac_ext | |
4002 | cat >>conftest.$ac_ext <<_ACEOF | |
4003 | /* end confdefs.h. */ | |
4004 | #ifdef __STDC__ | |
4005 | # include <limits.h> | |
4006 | #else | |
4007 | # include <assert.h> | |
4008 | #endif | |
4009 | Syntax error | |
4010 | _ACEOF | |
4011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4013 | ac_status=$? | |
4014 | grep -v '^ *+' conftest.er1 >conftest.err | |
4015 | rm -f conftest.er1 | |
4016 | cat conftest.err >&5 | |
4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4018 | (exit $ac_status); } >/dev/null; then | |
4019 | if test -s conftest.err; then | |
4020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4022 | else | |
4023 | ac_cpp_err= | |
4024 | fi | |
4025 | else | |
4026 | ac_cpp_err=yes | |
4027 | fi | |
4028 | if test -z "$ac_cpp_err"; then | |
4029 | : | |
4030 | else | |
4031 | echo "$as_me: failed program was:" >&5 | |
4032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4033 | ||
4034 | # Broken: fails on valid input. | |
4035 | continue | |
4036 | fi | |
4037 | rm -f conftest.err conftest.$ac_ext | |
4038 | ||
4039 | # OK, works on sane cases. Now check whether non-existent headers | |
4040 | # can be detected and how. | |
4041 | cat >conftest.$ac_ext <<_ACEOF | |
4042 | /* confdefs.h. */ | |
4043 | _ACEOF | |
4044 | cat confdefs.h >>conftest.$ac_ext | |
4045 | cat >>conftest.$ac_ext <<_ACEOF | |
4046 | /* end confdefs.h. */ | |
4047 | #include <ac_nonexistent.h> | |
4048 | _ACEOF | |
4049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4051 | ac_status=$? | |
4052 | grep -v '^ *+' conftest.er1 >conftest.err | |
4053 | rm -f conftest.er1 | |
4054 | cat conftest.err >&5 | |
4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4056 | (exit $ac_status); } >/dev/null; then | |
4057 | if test -s conftest.err; then | |
4058 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4059 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4060 | else | |
4061 | ac_cpp_err= | |
4062 | fi | |
4063 | else | |
4064 | ac_cpp_err=yes | |
4065 | fi | |
4066 | if test -z "$ac_cpp_err"; then | |
4067 | # Broken: success on invalid input. | |
4068 | continue | |
4069 | else | |
4070 | echo "$as_me: failed program was:" >&5 | |
4071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4072 | ||
4073 | # Passes both tests. | |
4074 | ac_preproc_ok=: | |
4075 | break | |
4076 | fi | |
4077 | rm -f conftest.err conftest.$ac_ext | |
4078 | ||
4079 | done | |
4080 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4081 | rm -f conftest.err conftest.$ac_ext | |
4082 | if $ac_preproc_ok; then | |
4083 | : | |
4084 | else | |
4085 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4086 | See \`config.log' for more details." >&5 | |
4087 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4088 | See \`config.log' for more details." >&2;} | |
4089 | { (exit 1); exit 1; }; } | |
4090 | fi | |
4091 | ||
4092 | ac_ext=c | |
4093 | ac_cpp='$CPP $CPPFLAGS' | |
4094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4097 | ||
4098 | ||
4099 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4100 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4101 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4103 | else | |
4104 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4105 | then ac_cv_prog_egrep='grep -E' | |
4106 | else ac_cv_prog_egrep='egrep' | |
4107 | fi | |
4108 | fi | |
4109 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4110 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4111 | EGREP=$ac_cv_prog_egrep | |
4112 | ||
4113 | ||
4114 | if test $ac_cv_c_compiler_gnu = yes; then | |
4115 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
4116 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
4117 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
4118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4119 | else | |
4120 | ac_pattern="Autoconf.*'x'" | |
4121 | cat >conftest.$ac_ext <<_ACEOF | |
4122 | /* confdefs.h. */ | |
4123 | _ACEOF | |
4124 | cat confdefs.h >>conftest.$ac_ext | |
4125 | cat >>conftest.$ac_ext <<_ACEOF | |
4126 | /* end confdefs.h. */ | |
4127 | #include <sgtty.h> | |
4128 | Autoconf TIOCGETP | |
4129 | _ACEOF | |
4130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4131 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
4132 | ac_cv_prog_gcc_traditional=yes | |
4133 | else | |
4134 | ac_cv_prog_gcc_traditional=no | |
4135 | fi | |
4136 | rm -f conftest* | |
4137 | ||
4138 | ||
4139 | if test $ac_cv_prog_gcc_traditional = no; then | |
4140 | cat >conftest.$ac_ext <<_ACEOF | |
4141 | /* confdefs.h. */ | |
4142 | _ACEOF | |
4143 | cat confdefs.h >>conftest.$ac_ext | |
4144 | cat >>conftest.$ac_ext <<_ACEOF | |
4145 | /* end confdefs.h. */ | |
4146 | #include <termio.h> | |
4147 | Autoconf TCGETA | |
4148 | _ACEOF | |
4149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4150 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
4151 | ac_cv_prog_gcc_traditional=yes | |
4152 | fi | |
4153 | rm -f conftest* | |
4154 | ||
4155 | fi | |
4156 | fi | |
4157 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
4158 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
4159 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4160 | CC="$CC -traditional" | |
4161 | fi | |
4162 | fi | |
4163 | ||
4164 | ||
4165 | case $target in | |
4166 | *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*) | |
4167 | ANSI_SRC="" | |
4168 | ;; | |
4169 | *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*) | |
4170 | ANSI_SRC="" | |
4171 | ||
4172 | cat >>confdefs.h <<\_ACEOF | |
4173 | #define BROKEN_REGEX 1 | |
4174 | _ACEOF | |
4175 | ||
4176 | BROKEN_REGEX=yes | |
4177 | ;; | |
4178 | *-solaris*) | |
4179 | EXTRA_DEFINE="-D__SOLARIS__" | |
4180 | ANSI_SRC="-fno-builtin" | |
4181 | ;; | |
4182 | *-cygwin) | |
4183 | ANSI_SRC="-fno-builtin" | |
4184 | ;; | |
4185 | *-linux*) | |
4186 | EXTRA_DEFINE="-D_GNU_SOURCE" | |
4187 | ANSI_SRC="" | |
4188 | ;; | |
4189 | *) | |
4190 | ANSI_SRC="" | |
4191 | ;; | |
4192 | esac | |
4193 | CFLAGS="$CFLAGS $EXTRA_DEFINE" | |
4194 | ||
4195 | ||
4196 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
4197 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
4198 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4200 | else | |
4201 | ac_check_lib_save_LIBS=$LIBS | |
4202 | LIBS="-lsocket $LIBS" | |
4203 | cat >conftest.$ac_ext <<_ACEOF | |
4204 | /* confdefs.h. */ | |
4205 | _ACEOF | |
4206 | cat confdefs.h >>conftest.$ac_ext | |
4207 | cat >>conftest.$ac_ext <<_ACEOF | |
4208 | /* end confdefs.h. */ | |
4209 | ||
4210 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4211 | #ifdef __cplusplus | |
4212 | extern "C" | |
4213 | #endif | |
4214 | /* We use char because int might match the return type of a gcc2 | |
4215 | builtin and then its argument prototype would still apply. */ | |
4216 | char socket (); | |
4217 | int | |
4218 | main () | |
4219 | { | |
4220 | socket (); | |
4221 | ; | |
4222 | return 0; | |
4223 | } | |
4224 | _ACEOF | |
4225 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4227 | (eval $ac_link) 2>conftest.er1 | |
4228 | ac_status=$? | |
4229 | grep -v '^ *+' conftest.er1 >conftest.err | |
4230 | rm -f conftest.er1 | |
4231 | cat conftest.err >&5 | |
4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4233 | (exit $ac_status); } && | |
4234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4236 | (eval $ac_try) 2>&5 | |
4237 | ac_status=$? | |
4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4239 | (exit $ac_status); }; } && | |
4240 | { ac_try='test -s conftest$ac_exeext' | |
4241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4242 | (eval $ac_try) 2>&5 | |
4243 | ac_status=$? | |
4244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4245 | (exit $ac_status); }; }; then | |
4246 | ac_cv_lib_socket_socket=yes | |
4247 | else | |
4248 | echo "$as_me: failed program was:" >&5 | |
4249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4250 | ||
4251 | ac_cv_lib_socket_socket=no | |
4252 | fi | |
4253 | rm -f conftest.err conftest.$ac_objext \ | |
4254 | conftest$ac_exeext conftest.$ac_ext | |
4255 | LIBS=$ac_check_lib_save_LIBS | |
4256 | fi | |
4257 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
4258 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
4259 | if test $ac_cv_lib_socket_socket = yes; then | |
4260 | cat >>confdefs.h <<_ACEOF | |
4261 | #define HAVE_LIBSOCKET 1 | |
4262 | _ACEOF | |
4263 | ||
4264 | LIBS="-lsocket $LIBS" | |
4265 | ||
4266 | fi | |
4267 | ||
4268 | ||
4269 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
4270 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
4271 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
4272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4273 | else | |
4274 | ac_check_lib_save_LIBS=$LIBS | |
4275 | LIBS="-lnsl $LIBS" | |
4276 | cat >conftest.$ac_ext <<_ACEOF | |
4277 | /* confdefs.h. */ | |
4278 | _ACEOF | |
4279 | cat confdefs.h >>conftest.$ac_ext | |
4280 | cat >>conftest.$ac_ext <<_ACEOF | |
4281 | /* end confdefs.h. */ | |
4282 | ||
4283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4284 | #ifdef __cplusplus | |
4285 | extern "C" | |
4286 | #endif | |
4287 | /* We use char because int might match the return type of a gcc2 | |
4288 | builtin and then its argument prototype would still apply. */ | |
4289 | char gethostbyname (); | |
4290 | int | |
4291 | main () | |
4292 | { | |
4293 | gethostbyname (); | |
4294 | ; | |
4295 | return 0; | |
4296 | } | |
4297 | _ACEOF | |
4298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4300 | (eval $ac_link) 2>conftest.er1 | |
4301 | ac_status=$? | |
4302 | grep -v '^ *+' conftest.er1 >conftest.err | |
4303 | rm -f conftest.er1 | |
4304 | cat conftest.err >&5 | |
4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4306 | (exit $ac_status); } && | |
4307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4309 | (eval $ac_try) 2>&5 | |
4310 | ac_status=$? | |
4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4312 | (exit $ac_status); }; } && | |
4313 | { ac_try='test -s conftest$ac_exeext' | |
4314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4315 | (eval $ac_try) 2>&5 | |
4316 | ac_status=$? | |
4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4318 | (exit $ac_status); }; }; then | |
4319 | ac_cv_lib_nsl_gethostbyname=yes | |
4320 | else | |
4321 | echo "$as_me: failed program was:" >&5 | |
4322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4323 | ||
4324 | ac_cv_lib_nsl_gethostbyname=no | |
4325 | fi | |
4326 | rm -f conftest.err conftest.$ac_objext \ | |
4327 | conftest$ac_exeext conftest.$ac_ext | |
4328 | LIBS=$ac_check_lib_save_LIBS | |
4329 | fi | |
4330 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
4331 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
4332 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
4333 | cat >>confdefs.h <<_ACEOF | |
4334 | #define HAVE_LIBNSL 1 | |
4335 | _ACEOF | |
4336 | ||
4337 | LIBS="-lnsl $LIBS" | |
4338 | ||
4339 | fi | |
4340 | ||
4341 | ||
4342 | echo "$as_me:$LINENO: checking for main in -lm" >&5 | |
4343 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
4344 | if test "${ac_cv_lib_m_main+set}" = set; then | |
4345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4346 | else | |
4347 | ac_check_lib_save_LIBS=$LIBS | |
4348 | LIBS="-lm $LIBS" | |
4349 | cat >conftest.$ac_ext <<_ACEOF | |
4350 | /* confdefs.h. */ | |
4351 | _ACEOF | |
4352 | cat confdefs.h >>conftest.$ac_ext | |
4353 | cat >>conftest.$ac_ext <<_ACEOF | |
4354 | /* end confdefs.h. */ | |
4355 | ||
4356 | ||
4357 | int | |
4358 | main () | |
4359 | { | |
4360 | main (); | |
4361 | ; | |
4362 | return 0; | |
4363 | } | |
4364 | _ACEOF | |
4365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4367 | (eval $ac_link) 2>conftest.er1 | |
4368 | ac_status=$? | |
4369 | grep -v '^ *+' conftest.er1 >conftest.err | |
4370 | rm -f conftest.er1 | |
4371 | cat conftest.err >&5 | |
4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4373 | (exit $ac_status); } && | |
4374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4376 | (eval $ac_try) 2>&5 | |
4377 | ac_status=$? | |
4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4379 | (exit $ac_status); }; } && | |
4380 | { ac_try='test -s conftest$ac_exeext' | |
4381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4382 | (eval $ac_try) 2>&5 | |
4383 | ac_status=$? | |
4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4385 | (exit $ac_status); }; }; then | |
4386 | ac_cv_lib_m_main=yes | |
4387 | else | |
4388 | echo "$as_me: failed program was:" >&5 | |
4389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4390 | ||
4391 | ac_cv_lib_m_main=no | |
4392 | fi | |
4393 | rm -f conftest.err conftest.$ac_objext \ | |
4394 | conftest$ac_exeext conftest.$ac_ext | |
4395 | LIBS=$ac_check_lib_save_LIBS | |
4396 | fi | |
4397 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
4398 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
4399 | if test $ac_cv_lib_m_main = yes; then | |
4400 | cat >>confdefs.h <<_ACEOF | |
4401 | #define HAVE_LIBM 1 | |
4402 | _ACEOF | |
4403 | ||
4404 | LIBS="-lm $LIBS" | |
4405 | ||
4406 | fi | |
4407 | ||
4408 | ||
4409 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4410 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4411 | if test "${ac_cv_header_stdc+set}" = set; then | |
4412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4413 | else | |
4414 | cat >conftest.$ac_ext <<_ACEOF | |
4415 | /* confdefs.h. */ | |
4416 | _ACEOF | |
4417 | cat confdefs.h >>conftest.$ac_ext | |
4418 | cat >>conftest.$ac_ext <<_ACEOF | |
4419 | /* end confdefs.h. */ | |
4420 | #include <stdlib.h> | |
4421 | #include <stdarg.h> | |
4422 | #include <string.h> | |
4423 | #include <float.h> | |
4424 | ||
4425 | int | |
4426 | main () | |
4427 | { | |
4428 | ||
4429 | ; | |
4430 | return 0; | |
4431 | } | |
4432 | _ACEOF | |
4433 | rm -f conftest.$ac_objext | |
4434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4435 | (eval $ac_compile) 2>conftest.er1 | |
4436 | ac_status=$? | |
4437 | grep -v '^ *+' conftest.er1 >conftest.err | |
4438 | rm -f conftest.er1 | |
4439 | cat conftest.err >&5 | |
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4441 | (exit $ac_status); } && | |
4442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4444 | (eval $ac_try) 2>&5 | |
4445 | ac_status=$? | |
4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4447 | (exit $ac_status); }; } && | |
4448 | { ac_try='test -s conftest.$ac_objext' | |
4449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4450 | (eval $ac_try) 2>&5 | |
4451 | ac_status=$? | |
4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4453 | (exit $ac_status); }; }; then | |
4454 | ac_cv_header_stdc=yes | |
4455 | else | |
4456 | echo "$as_me: failed program was:" >&5 | |
4457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4458 | ||
4459 | ac_cv_header_stdc=no | |
4460 | fi | |
4461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4462 | ||
4463 | if test $ac_cv_header_stdc = yes; then | |
4464 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4465 | cat >conftest.$ac_ext <<_ACEOF | |
4466 | /* confdefs.h. */ | |
4467 | _ACEOF | |
4468 | cat confdefs.h >>conftest.$ac_ext | |
4469 | cat >>conftest.$ac_ext <<_ACEOF | |
4470 | /* end confdefs.h. */ | |
4471 | #include <string.h> | |
4472 | ||
4473 | _ACEOF | |
4474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4475 | $EGREP "memchr" >/dev/null 2>&1; then | |
4476 | : | |
4477 | else | |
4478 | ac_cv_header_stdc=no | |
4479 | fi | |
4480 | rm -f conftest* | |
4481 | ||
4482 | fi | |
4483 | ||
4484 | if test $ac_cv_header_stdc = yes; then | |
4485 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4486 | cat >conftest.$ac_ext <<_ACEOF | |
4487 | /* confdefs.h. */ | |
4488 | _ACEOF | |
4489 | cat confdefs.h >>conftest.$ac_ext | |
4490 | cat >>conftest.$ac_ext <<_ACEOF | |
4491 | /* end confdefs.h. */ | |
4492 | #include <stdlib.h> | |
4493 | ||
4494 | _ACEOF | |
4495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4496 | $EGREP "free" >/dev/null 2>&1; then | |
4497 | : | |
4498 | else | |
4499 | ac_cv_header_stdc=no | |
4500 | fi | |
4501 | rm -f conftest* | |
4502 | ||
4503 | fi | |
4504 | ||
4505 | if test $ac_cv_header_stdc = yes; then | |
4506 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4507 | if test "$cross_compiling" = yes; then | |
4508 | : | |
4509 | else | |
4510 | cat >conftest.$ac_ext <<_ACEOF | |
4511 | /* confdefs.h. */ | |
4512 | _ACEOF | |
4513 | cat confdefs.h >>conftest.$ac_ext | |
4514 | cat >>conftest.$ac_ext <<_ACEOF | |
4515 | /* end confdefs.h. */ | |
4516 | #include <ctype.h> | |
4517 | #if ((' ' & 0x0FF) == 0x020) | |
4518 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4519 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4520 | #else | |
4521 | # define ISLOWER(c) \ | |
4522 | (('a' <= (c) && (c) <= 'i') \ | |
4523 | || ('j' <= (c) && (c) <= 'r') \ | |
4524 | || ('s' <= (c) && (c) <= 'z')) | |
4525 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4526 | #endif | |
4527 | ||
4528 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4529 | int | |
4530 | main () | |
4531 | { | |
4532 | int i; | |
4533 | for (i = 0; i < 256; i++) | |
4534 | if (XOR (islower (i), ISLOWER (i)) | |
4535 | || toupper (i) != TOUPPER (i)) | |
4536 | exit(2); | |
4537 | exit (0); | |
4538 | } | |
4539 | _ACEOF | |
4540 | rm -f conftest$ac_exeext | |
4541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4542 | (eval $ac_link) 2>&5 | |
4543 | ac_status=$? | |
4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4547 | (eval $ac_try) 2>&5 | |
4548 | ac_status=$? | |
4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4550 | (exit $ac_status); }; }; then | |
4551 | : | |
4552 | else | |
4553 | echo "$as_me: program exited with status $ac_status" >&5 | |
4554 | echo "$as_me: failed program was:" >&5 | |
4555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4556 | ||
4557 | ( exit $ac_status ) | |
4558 | ac_cv_header_stdc=no | |
4559 | fi | |
4560 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4561 | fi | |
4562 | fi | |
4563 | fi | |
4564 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4565 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4566 | if test $ac_cv_header_stdc = yes; then | |
4567 | ||
4568 | cat >>confdefs.h <<\_ACEOF | |
4569 | #define STDC_HEADERS 1 | |
4570 | _ACEOF | |
4571 | ||
4572 | fi | |
4573 | ||
4574 | ||
4575 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
4576 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
4577 | if test "${ac_cv_header_time+set}" = set; then | |
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4579 | else | |
4580 | cat >conftest.$ac_ext <<_ACEOF | |
4581 | /* confdefs.h. */ | |
4582 | _ACEOF | |
4583 | cat confdefs.h >>conftest.$ac_ext | |
4584 | cat >>conftest.$ac_ext <<_ACEOF | |
4585 | /* end confdefs.h. */ | |
4586 | #include <sys/types.h> | |
4587 | #include <sys/time.h> | |
4588 | #include <time.h> | |
4589 | ||
4590 | int | |
4591 | main () | |
4592 | { | |
4593 | if ((struct tm *) 0) | |
4594 | return 0; | |
4595 | ; | |
4596 | return 0; | |
4597 | } | |
4598 | _ACEOF | |
4599 | rm -f conftest.$ac_objext | |
4600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4601 | (eval $ac_compile) 2>conftest.er1 | |
4602 | ac_status=$? | |
4603 | grep -v '^ *+' conftest.er1 >conftest.err | |
4604 | rm -f conftest.er1 | |
4605 | cat conftest.err >&5 | |
4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4607 | (exit $ac_status); } && | |
4608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4610 | (eval $ac_try) 2>&5 | |
4611 | ac_status=$? | |
4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4613 | (exit $ac_status); }; } && | |
4614 | { ac_try='test -s conftest.$ac_objext' | |
4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4616 | (eval $ac_try) 2>&5 | |
4617 | ac_status=$? | |
4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 | (exit $ac_status); }; }; then | |
4620 | ac_cv_header_time=yes | |
4621 | else | |
4622 | echo "$as_me: failed program was:" >&5 | |
4623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4624 | ||
4625 | ac_cv_header_time=no | |
4626 | fi | |
4627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4628 | fi | |
4629 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
4630 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
4631 | if test $ac_cv_header_time = yes; then | |
4632 | ||
4633 | cat >>confdefs.h <<\_ACEOF | |
4634 | #define TIME_WITH_SYS_TIME 1 | |
4635 | _ACEOF | |
4636 | ||
4637 | fi | |
4638 | ||
4639 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4640 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4641 | if test "${ac_cv_struct_tm+set}" = set; then | |
4642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4643 | else | |
4644 | cat >conftest.$ac_ext <<_ACEOF | |
4645 | /* confdefs.h. */ | |
4646 | _ACEOF | |
4647 | cat confdefs.h >>conftest.$ac_ext | |
4648 | cat >>conftest.$ac_ext <<_ACEOF | |
4649 | /* end confdefs.h. */ | |
4650 | #include <sys/types.h> | |
4651 | #include <time.h> | |
4652 | ||
4653 | int | |
4654 | main () | |
4655 | { | |
4656 | struct tm *tp; tp->tm_sec; | |
4657 | ; | |
4658 | return 0; | |
4659 | } | |
4660 | _ACEOF | |
4661 | rm -f conftest.$ac_objext | |
4662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4663 | (eval $ac_compile) 2>conftest.er1 | |
4664 | ac_status=$? | |
4665 | grep -v '^ *+' conftest.er1 >conftest.err | |
4666 | rm -f conftest.er1 | |
4667 | cat conftest.err >&5 | |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4669 | (exit $ac_status); } && | |
4670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4672 | (eval $ac_try) 2>&5 | |
4673 | ac_status=$? | |
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4675 | (exit $ac_status); }; } && | |
4676 | { ac_try='test -s conftest.$ac_objext' | |
4677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4678 | (eval $ac_try) 2>&5 | |
4679 | ac_status=$? | |
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4681 | (exit $ac_status); }; }; then | |
4682 | ac_cv_struct_tm=time.h | |
4683 | else | |
4684 | echo "$as_me: failed program was:" >&5 | |
4685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4686 | ||
4687 | ac_cv_struct_tm=sys/time.h | |
4688 | fi | |
4689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4690 | fi | |
4691 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
4692 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
4693 | if test $ac_cv_struct_tm = sys/time.h; then | |
4694 | ||
4695 | cat >>confdefs.h <<\_ACEOF | |
4696 | #define TM_IN_SYS_TIME 1 | |
4697 | _ACEOF | |
4698 | ||
4699 | fi | |
4700 | ||
4701 | ||
4702 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4703 | ||
4704 | ||
4705 | ||
4706 | ||
4707 | ||
4708 | ||
4709 | ||
4710 | ||
4711 | ||
4712 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4713 | inttypes.h stdint.h unistd.h | |
4714 | do | |
4715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4716 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4720 | else | |
4721 | cat >conftest.$ac_ext <<_ACEOF | |
4722 | /* confdefs.h. */ | |
4723 | _ACEOF | |
4724 | cat confdefs.h >>conftest.$ac_ext | |
4725 | cat >>conftest.$ac_ext <<_ACEOF | |
4726 | /* end confdefs.h. */ | |
4727 | $ac_includes_default | |
4728 | ||
4729 | #include <$ac_header> | |
4730 | _ACEOF | |
4731 | rm -f conftest.$ac_objext | |
4732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4733 | (eval $ac_compile) 2>conftest.er1 | |
4734 | ac_status=$? | |
4735 | grep -v '^ *+' conftest.er1 >conftest.err | |
4736 | rm -f conftest.er1 | |
4737 | cat conftest.err >&5 | |
4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4739 | (exit $ac_status); } && | |
4740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4742 | (eval $ac_try) 2>&5 | |
4743 | ac_status=$? | |
4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4745 | (exit $ac_status); }; } && | |
4746 | { ac_try='test -s conftest.$ac_objext' | |
4747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4748 | (eval $ac_try) 2>&5 | |
4749 | ac_status=$? | |
4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4751 | (exit $ac_status); }; }; then | |
4752 | eval "$as_ac_Header=yes" | |
4753 | else | |
4754 | echo "$as_me: failed program was:" >&5 | |
4755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4756 | ||
4757 | eval "$as_ac_Header=no" | |
4758 | fi | |
4759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4760 | fi | |
4761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4764 | cat >>confdefs.h <<_ACEOF | |
4765 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4766 | _ACEOF | |
4767 | ||
4768 | fi | |
4769 | ||
4770 | done | |
4771 | ||
4772 | ||
4773 | ||
4774 | ||
4775 | ||
4776 | ||
4777 | ||
4778 | ||
4779 | ||
4780 | ||
4781 | ||
4782 | ||
4783 | ||
4784 | ||
4785 | ||
4786 | ||
4787 | ||
4788 | ||
4789 | ||
4790 | ||
4791 | ||
4792 | ||
4793 | for ac_header in fcntl.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h regex.h arpa/inet.h sys/mman.h sys/stat.h dirent.h | |
4794 | do | |
4795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4801 | fi | |
4802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4804 | else | |
4805 | # Is the header compilable? | |
4806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4808 | cat >conftest.$ac_ext <<_ACEOF | |
4809 | /* confdefs.h. */ | |
4810 | _ACEOF | |
4811 | cat confdefs.h >>conftest.$ac_ext | |
4812 | cat >>conftest.$ac_ext <<_ACEOF | |
4813 | /* end confdefs.h. */ | |
4814 | $ac_includes_default | |
4815 | #include <$ac_header> | |
4816 | _ACEOF | |
4817 | rm -f conftest.$ac_objext | |
4818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4819 | (eval $ac_compile) 2>conftest.er1 | |
4820 | ac_status=$? | |
4821 | grep -v '^ *+' conftest.er1 >conftest.err | |
4822 | rm -f conftest.er1 | |
4823 | cat conftest.err >&5 | |
4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4825 | (exit $ac_status); } && | |
4826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4828 | (eval $ac_try) 2>&5 | |
4829 | ac_status=$? | |
4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4831 | (exit $ac_status); }; } && | |
4832 | { ac_try='test -s conftest.$ac_objext' | |
4833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4834 | (eval $ac_try) 2>&5 | |
4835 | ac_status=$? | |
4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4837 | (exit $ac_status); }; }; then | |
4838 | ac_header_compiler=yes | |
4839 | else | |
4840 | echo "$as_me: failed program was:" >&5 | |
4841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4842 | ||
4843 | ac_header_compiler=no | |
4844 | fi | |
4845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4846 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4847 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4848 | ||
4849 | # Is the header present? | |
4850 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4851 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4852 | cat >conftest.$ac_ext <<_ACEOF | |
4853 | /* confdefs.h. */ | |
4854 | _ACEOF | |
4855 | cat confdefs.h >>conftest.$ac_ext | |
4856 | cat >>conftest.$ac_ext <<_ACEOF | |
4857 | /* end confdefs.h. */ | |
4858 | #include <$ac_header> | |
4859 | _ACEOF | |
4860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4862 | ac_status=$? | |
4863 | grep -v '^ *+' conftest.er1 >conftest.err | |
4864 | rm -f conftest.er1 | |
4865 | cat conftest.err >&5 | |
4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4867 | (exit $ac_status); } >/dev/null; then | |
4868 | if test -s conftest.err; then | |
4869 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4870 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4871 | else | |
4872 | ac_cpp_err= | |
4873 | fi | |
4874 | else | |
4875 | ac_cpp_err=yes | |
4876 | fi | |
4877 | if test -z "$ac_cpp_err"; then | |
4878 | ac_header_preproc=yes | |
4879 | else | |
4880 | echo "$as_me: failed program was:" >&5 | |
4881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4882 | ||
4883 | ac_header_preproc=no | |
4884 | fi | |
4885 | rm -f conftest.err conftest.$ac_ext | |
4886 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4887 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4888 | ||
4889 | # So? What about this header? | |
4890 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4891 | yes:no: ) | |
4892 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4893 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4894 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4895 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4896 | ac_header_preproc=yes | |
4897 | ;; | |
4898 | no:yes:* ) | |
4899 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4900 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4901 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4902 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4903 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4904 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4905 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4906 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4907 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4908 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4909 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4910 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4911 | ( | |
4912 | cat <<\_ASBOX | |
4913 | ## ---------------------------------------------- ## | |
4914 | ## Report this to srvx-bugs@lists.sourceforge.net ## | |
4915 | ## ---------------------------------------------- ## | |
4916 | _ASBOX | |
4917 | ) | | |
4918 | sed "s/^/$as_me: WARNING: /" >&2 | |
4919 | ;; | |
4920 | esac | |
4921 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4925 | else | |
4926 | eval "$as_ac_Header=\$ac_header_preproc" | |
4927 | fi | |
4928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4929 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4930 | ||
4931 | fi | |
4932 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4933 | cat >>confdefs.h <<_ACEOF | |
4934 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4935 | _ACEOF | |
4936 | ||
4937 | fi | |
4938 | ||
4939 | done | |
4940 | ||
4941 | ||
4942 | echo "$as_me:$LINENO: checking for struct dirent.d_type" >&5 | |
4943 | echo $ECHO_N "checking for struct dirent.d_type... $ECHO_C" >&6 | |
4944 | if test "${ac_cv_member_struct_dirent_d_type+set}" = set; then | |
4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4946 | else | |
4947 | cat >conftest.$ac_ext <<_ACEOF | |
4948 | /* confdefs.h. */ | |
4949 | _ACEOF | |
4950 | cat confdefs.h >>conftest.$ac_ext | |
4951 | cat >>conftest.$ac_ext <<_ACEOF | |
4952 | /* end confdefs.h. */ | |
4953 | #include <dirent.h> | |
4954 | ||
4955 | int | |
4956 | main () | |
4957 | { | |
4958 | static struct dirent ac_aggr; | |
4959 | if (ac_aggr.d_type) | |
4960 | return 0; | |
4961 | ; | |
4962 | return 0; | |
4963 | } | |
4964 | _ACEOF | |
4965 | rm -f conftest.$ac_objext | |
4966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4967 | (eval $ac_compile) 2>conftest.er1 | |
4968 | ac_status=$? | |
4969 | grep -v '^ *+' conftest.er1 >conftest.err | |
4970 | rm -f conftest.er1 | |
4971 | cat conftest.err >&5 | |
4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4973 | (exit $ac_status); } && | |
4974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4976 | (eval $ac_try) 2>&5 | |
4977 | ac_status=$? | |
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4979 | (exit $ac_status); }; } && | |
4980 | { ac_try='test -s conftest.$ac_objext' | |
4981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4982 | (eval $ac_try) 2>&5 | |
4983 | ac_status=$? | |
4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4985 | (exit $ac_status); }; }; then | |
4986 | ac_cv_member_struct_dirent_d_type=yes | |
4987 | else | |
4988 | echo "$as_me: failed program was:" >&5 | |
4989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4990 | ||
4991 | cat >conftest.$ac_ext <<_ACEOF | |
4992 | /* confdefs.h. */ | |
4993 | _ACEOF | |
4994 | cat confdefs.h >>conftest.$ac_ext | |
4995 | cat >>conftest.$ac_ext <<_ACEOF | |
4996 | /* end confdefs.h. */ | |
4997 | #include <dirent.h> | |
4998 | ||
4999 | int | |
5000 | main () | |
5001 | { | |
5002 | static struct dirent ac_aggr; | |
5003 | if (sizeof ac_aggr.d_type) | |
5004 | return 0; | |
5005 | ; | |
5006 | return 0; | |
5007 | } | |
5008 | _ACEOF | |
5009 | rm -f conftest.$ac_objext | |
5010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5011 | (eval $ac_compile) 2>conftest.er1 | |
5012 | ac_status=$? | |
5013 | grep -v '^ *+' conftest.er1 >conftest.err | |
5014 | rm -f conftest.er1 | |
5015 | cat conftest.err >&5 | |
5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5017 | (exit $ac_status); } && | |
5018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5020 | (eval $ac_try) 2>&5 | |
5021 | ac_status=$? | |
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5023 | (exit $ac_status); }; } && | |
5024 | { ac_try='test -s conftest.$ac_objext' | |
5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5026 | (eval $ac_try) 2>&5 | |
5027 | ac_status=$? | |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5029 | (exit $ac_status); }; }; then | |
5030 | ac_cv_member_struct_dirent_d_type=yes | |
5031 | else | |
5032 | echo "$as_me: failed program was:" >&5 | |
5033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5034 | ||
5035 | ac_cv_member_struct_dirent_d_type=no | |
5036 | fi | |
5037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5038 | fi | |
5039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5040 | fi | |
5041 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_type" >&5 | |
5042 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6 | |
5043 | if test $ac_cv_member_struct_dirent_d_type = yes; then | |
5044 | ||
5045 | cat >>confdefs.h <<\_ACEOF | |
5046 | #define HAVE_DIRENT_D_TYPE 1 | |
5047 | _ACEOF | |
5048 | ||
5049 | fi | |
5050 | ||
5051 | ||
5052 | ||
5053 | for ac_func in gettimeofday | |
5054 | do | |
5055 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5056 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5057 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5058 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5060 | else | |
5061 | cat >conftest.$ac_ext <<_ACEOF | |
5062 | /* confdefs.h. */ | |
5063 | _ACEOF | |
5064 | cat confdefs.h >>conftest.$ac_ext | |
5065 | cat >>conftest.$ac_ext <<_ACEOF | |
5066 | /* end confdefs.h. */ | |
5067 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5068 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5069 | #define $ac_func innocuous_$ac_func | |
5070 | ||
5071 | /* System header to define __stub macros and hopefully few prototypes, | |
5072 | which can conflict with char $ac_func (); below. | |
5073 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5074 | <limits.h> exists even on freestanding compilers. */ | |
5075 | ||
5076 | #ifdef __STDC__ | |
5077 | # include <limits.h> | |
5078 | #else | |
5079 | # include <assert.h> | |
5080 | #endif | |
5081 | ||
5082 | #undef $ac_func | |
5083 | ||
5084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5085 | #ifdef __cplusplus | |
5086 | extern "C" | |
5087 | { | |
5088 | #endif | |
5089 | /* We use char because int might match the return type of a gcc2 | |
5090 | builtin and then its argument prototype would still apply. */ | |
5091 | char $ac_func (); | |
5092 | /* The GNU C library defines this for functions which it implements | |
5093 | to always fail with ENOSYS. Some functions are actually named | |
5094 | something starting with __ and the normal name is an alias. */ | |
5095 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5096 | choke me | |
5097 | #else | |
5098 | char (*f) () = $ac_func; | |
5099 | #endif | |
5100 | #ifdef __cplusplus | |
5101 | } | |
5102 | #endif | |
5103 | ||
5104 | int | |
5105 | main () | |
5106 | { | |
5107 | return f != $ac_func; | |
5108 | ; | |
5109 | return 0; | |
5110 | } | |
5111 | _ACEOF | |
5112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5114 | (eval $ac_link) 2>conftest.er1 | |
5115 | ac_status=$? | |
5116 | grep -v '^ *+' conftest.er1 >conftest.err | |
5117 | rm -f conftest.er1 | |
5118 | cat conftest.err >&5 | |
5119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5120 | (exit $ac_status); } && | |
5121 | { ac_try='test -z "$ac_c_werror_flag" || 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 | eval "$as_ac_var=yes" | |
5134 | else | |
5135 | echo "$as_me: failed program was:" >&5 | |
5136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5137 | ||
5138 | eval "$as_ac_var=no" | |
5139 | fi | |
5140 | rm -f conftest.err conftest.$ac_objext \ | |
5141 | conftest$ac_exeext conftest.$ac_ext | |
5142 | fi | |
5143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5144 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5145 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5146 | cat >>confdefs.h <<_ACEOF | |
5147 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5148 | _ACEOF | |
5149 | ||
5150 | fi | |
5151 | done | |
5152 | ||
5153 | if test $ac_cv_func_gettimeofday = no; then | |
5154 | ||
5155 | for ac_func in ftime | |
5156 | do | |
5157 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5158 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5159 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5160 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5162 | else | |
5163 | cat >conftest.$ac_ext <<_ACEOF | |
5164 | /* confdefs.h. */ | |
5165 | _ACEOF | |
5166 | cat confdefs.h >>conftest.$ac_ext | |
5167 | cat >>conftest.$ac_ext <<_ACEOF | |
5168 | /* end confdefs.h. */ | |
5169 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5171 | #define $ac_func innocuous_$ac_func | |
5172 | ||
5173 | /* System header to define __stub macros and hopefully few prototypes, | |
5174 | which can conflict with char $ac_func (); below. | |
5175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5176 | <limits.h> exists even on freestanding compilers. */ | |
5177 | ||
5178 | #ifdef __STDC__ | |
5179 | # include <limits.h> | |
5180 | #else | |
5181 | # include <assert.h> | |
5182 | #endif | |
5183 | ||
5184 | #undef $ac_func | |
5185 | ||
5186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5187 | #ifdef __cplusplus | |
5188 | extern "C" | |
5189 | { | |
5190 | #endif | |
5191 | /* We use char because int might match the return type of a gcc2 | |
5192 | builtin and then its argument prototype would still apply. */ | |
5193 | char $ac_func (); | |
5194 | /* The GNU C library defines this for functions which it implements | |
5195 | to always fail with ENOSYS. Some functions are actually named | |
5196 | something starting with __ and the normal name is an alias. */ | |
5197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5198 | choke me | |
5199 | #else | |
5200 | char (*f) () = $ac_func; | |
5201 | #endif | |
5202 | #ifdef __cplusplus | |
5203 | } | |
5204 | #endif | |
5205 | ||
5206 | int | |
5207 | main () | |
5208 | { | |
5209 | return f != $ac_func; | |
5210 | ; | |
5211 | return 0; | |
5212 | } | |
5213 | _ACEOF | |
5214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5216 | (eval $ac_link) 2>conftest.er1 | |
5217 | ac_status=$? | |
5218 | grep -v '^ *+' conftest.er1 >conftest.err | |
5219 | rm -f conftest.er1 | |
5220 | cat conftest.err >&5 | |
5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5222 | (exit $ac_status); } && | |
5223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5225 | (eval $ac_try) 2>&5 | |
5226 | ac_status=$? | |
5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5228 | (exit $ac_status); }; } && | |
5229 | { ac_try='test -s conftest$ac_exeext' | |
5230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5231 | (eval $ac_try) 2>&5 | |
5232 | ac_status=$? | |
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5234 | (exit $ac_status); }; }; then | |
5235 | eval "$as_ac_var=yes" | |
5236 | else | |
5237 | echo "$as_me: failed program was:" >&5 | |
5238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5239 | ||
5240 | eval "$as_ac_var=no" | |
5241 | fi | |
5242 | rm -f conftest.err conftest.$ac_objext \ | |
5243 | conftest$ac_exeext conftest.$ac_ext | |
5244 | fi | |
5245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5246 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5247 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5248 | cat >>confdefs.h <<_ACEOF | |
5249 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5250 | _ACEOF | |
5251 | ||
5252 | else | |
5253 | { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. srvx build will fail." >&5 | |
5254 | echo "$as_me: error: ftime or gettimeofday required. srvx build will fail." >&2;} | |
5255 | { (exit 1); exit 1; }; } | |
5256 | fi | |
5257 | done | |
5258 | ||
5259 | fi | |
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | for ac_func in bcopy memcpy memset strdup strerror strsignal localtime_r setrlimit inet_ntoa getopt getopt_long regcomp regexec regfree sysconf | |
5277 | do | |
5278 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5279 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5280 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5281 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5283 | else | |
5284 | cat >conftest.$ac_ext <<_ACEOF | |
5285 | /* confdefs.h. */ | |
5286 | _ACEOF | |
5287 | cat confdefs.h >>conftest.$ac_ext | |
5288 | cat >>conftest.$ac_ext <<_ACEOF | |
5289 | /* end confdefs.h. */ | |
5290 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5291 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5292 | #define $ac_func innocuous_$ac_func | |
5293 | ||
5294 | /* System header to define __stub macros and hopefully few prototypes, | |
5295 | which can conflict with char $ac_func (); below. | |
5296 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5297 | <limits.h> exists even on freestanding compilers. */ | |
5298 | ||
5299 | #ifdef __STDC__ | |
5300 | # include <limits.h> | |
5301 | #else | |
5302 | # include <assert.h> | |
5303 | #endif | |
5304 | ||
5305 | #undef $ac_func | |
5306 | ||
5307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5308 | #ifdef __cplusplus | |
5309 | extern "C" | |
5310 | { | |
5311 | #endif | |
5312 | /* We use char because int might match the return type of a gcc2 | |
5313 | builtin and then its argument prototype would still apply. */ | |
5314 | char $ac_func (); | |
5315 | /* The GNU C library defines this for functions which it implements | |
5316 | to always fail with ENOSYS. Some functions are actually named | |
5317 | something starting with __ and the normal name is an alias. */ | |
5318 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5319 | choke me | |
5320 | #else | |
5321 | char (*f) () = $ac_func; | |
5322 | #endif | |
5323 | #ifdef __cplusplus | |
5324 | } | |
5325 | #endif | |
5326 | ||
5327 | int | |
5328 | main () | |
5329 | { | |
5330 | return f != $ac_func; | |
5331 | ; | |
5332 | return 0; | |
5333 | } | |
5334 | _ACEOF | |
5335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5337 | (eval $ac_link) 2>conftest.er1 | |
5338 | ac_status=$? | |
5339 | grep -v '^ *+' conftest.er1 >conftest.err | |
5340 | rm -f conftest.er1 | |
5341 | cat conftest.err >&5 | |
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5343 | (exit $ac_status); } && | |
5344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5346 | (eval $ac_try) 2>&5 | |
5347 | ac_status=$? | |
5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5349 | (exit $ac_status); }; } && | |
5350 | { ac_try='test -s conftest$ac_exeext' | |
5351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5352 | (eval $ac_try) 2>&5 | |
5353 | ac_status=$? | |
5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5355 | (exit $ac_status); }; }; then | |
5356 | eval "$as_ac_var=yes" | |
5357 | else | |
5358 | echo "$as_me: failed program was:" >&5 | |
5359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5360 | ||
5361 | eval "$as_ac_var=no" | |
5362 | fi | |
5363 | rm -f conftest.err conftest.$ac_objext \ | |
5364 | conftest$ac_exeext conftest.$ac_ext | |
5365 | fi | |
5366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5367 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5368 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5369 | cat >>confdefs.h <<_ACEOF | |
5370 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5371 | _ACEOF | |
5372 | ||
5373 | fi | |
5374 | done | |
5375 | ||
5376 | ||
5377 | ||
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | for ac_func in select socket strcspn strspn strtod strtoul | |
5384 | do | |
5385 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5386 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5387 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5388 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5390 | else | |
5391 | cat >conftest.$ac_ext <<_ACEOF | |
5392 | /* confdefs.h. */ | |
5393 | _ACEOF | |
5394 | cat confdefs.h >>conftest.$ac_ext | |
5395 | cat >>conftest.$ac_ext <<_ACEOF | |
5396 | /* end confdefs.h. */ | |
5397 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5398 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5399 | #define $ac_func innocuous_$ac_func | |
5400 | ||
5401 | /* System header to define __stub macros and hopefully few prototypes, | |
5402 | which can conflict with char $ac_func (); below. | |
5403 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5404 | <limits.h> exists even on freestanding compilers. */ | |
5405 | ||
5406 | #ifdef __STDC__ | |
5407 | # include <limits.h> | |
5408 | #else | |
5409 | # include <assert.h> | |
5410 | #endif | |
5411 | ||
5412 | #undef $ac_func | |
5413 | ||
5414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5415 | #ifdef __cplusplus | |
5416 | extern "C" | |
5417 | { | |
5418 | #endif | |
5419 | /* We use char because int might match the return type of a gcc2 | |
5420 | builtin and then its argument prototype would still apply. */ | |
5421 | char $ac_func (); | |
5422 | /* The GNU C library defines this for functions which it implements | |
5423 | to always fail with ENOSYS. Some functions are actually named | |
5424 | something starting with __ and the normal name is an alias. */ | |
5425 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5426 | choke me | |
5427 | #else | |
5428 | char (*f) () = $ac_func; | |
5429 | #endif | |
5430 | #ifdef __cplusplus | |
5431 | } | |
5432 | #endif | |
5433 | ||
5434 | int | |
5435 | main () | |
5436 | { | |
5437 | return f != $ac_func; | |
5438 | ; | |
5439 | return 0; | |
5440 | } | |
5441 | _ACEOF | |
5442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5444 | (eval $ac_link) 2>conftest.er1 | |
5445 | ac_status=$? | |
5446 | grep -v '^ *+' conftest.er1 >conftest.err | |
5447 | rm -f conftest.er1 | |
5448 | cat conftest.err >&5 | |
5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5450 | (exit $ac_status); } && | |
5451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5453 | (eval $ac_try) 2>&5 | |
5454 | ac_status=$? | |
5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5456 | (exit $ac_status); }; } && | |
5457 | { ac_try='test -s conftest$ac_exeext' | |
5458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5459 | (eval $ac_try) 2>&5 | |
5460 | ac_status=$? | |
5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5462 | (exit $ac_status); }; }; then | |
5463 | eval "$as_ac_var=yes" | |
5464 | else | |
5465 | echo "$as_me: failed program was:" >&5 | |
5466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5467 | ||
5468 | eval "$as_ac_var=no" | |
5469 | fi | |
5470 | rm -f conftest.err conftest.$ac_objext \ | |
5471 | conftest$ac_exeext conftest.$ac_ext | |
5472 | fi | |
5473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5474 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5475 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5476 | cat >>confdefs.h <<_ACEOF | |
5477 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5478 | _ACEOF | |
5479 | ||
5480 | else | |
5481 | { { echo "$as_me:$LINENO: error: a required function was not found. srvx build will fail." >&5 | |
5482 | echo "$as_me: error: a required function was not found. srvx build will fail." >&2;} | |
5483 | { (exit 1); exit 1; }; } | |
5484 | fi | |
5485 | done | |
5486 | ||
5487 | ||
5488 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5489 | # for constant arguments. Useless! | |
5490 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
5491 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
5492 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
5493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5494 | else | |
5495 | cat >conftest.$ac_ext <<_ACEOF | |
5496 | /* confdefs.h. */ | |
5497 | _ACEOF | |
5498 | cat confdefs.h >>conftest.$ac_ext | |
5499 | cat >>conftest.$ac_ext <<_ACEOF | |
5500 | /* end confdefs.h. */ | |
5501 | #include <alloca.h> | |
5502 | int | |
5503 | main () | |
5504 | { | |
5505 | char *p = (char *) alloca (2 * sizeof (int)); | |
5506 | ; | |
5507 | return 0; | |
5508 | } | |
5509 | _ACEOF | |
5510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5512 | (eval $ac_link) 2>conftest.er1 | |
5513 | ac_status=$? | |
5514 | grep -v '^ *+' conftest.er1 >conftest.err | |
5515 | rm -f conftest.er1 | |
5516 | cat conftest.err >&5 | |
5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5518 | (exit $ac_status); } && | |
5519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5521 | (eval $ac_try) 2>&5 | |
5522 | ac_status=$? | |
5523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5524 | (exit $ac_status); }; } && | |
5525 | { ac_try='test -s conftest$ac_exeext' | |
5526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5527 | (eval $ac_try) 2>&5 | |
5528 | ac_status=$? | |
5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5530 | (exit $ac_status); }; }; then | |
5531 | ac_cv_working_alloca_h=yes | |
5532 | else | |
5533 | echo "$as_me: failed program was:" >&5 | |
5534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5535 | ||
5536 | ac_cv_working_alloca_h=no | |
5537 | fi | |
5538 | rm -f conftest.err conftest.$ac_objext \ | |
5539 | conftest$ac_exeext conftest.$ac_ext | |
5540 | fi | |
5541 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5542 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5543 | if test $ac_cv_working_alloca_h = yes; then | |
5544 | ||
5545 | cat >>confdefs.h <<\_ACEOF | |
5546 | #define HAVE_ALLOCA_H 1 | |
5547 | _ACEOF | |
5548 | ||
5549 | fi | |
5550 | ||
5551 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
5552 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5553 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5555 | else | |
5556 | cat >conftest.$ac_ext <<_ACEOF | |
5557 | /* confdefs.h. */ | |
5558 | _ACEOF | |
5559 | cat confdefs.h >>conftest.$ac_ext | |
5560 | cat >>conftest.$ac_ext <<_ACEOF | |
5561 | /* end confdefs.h. */ | |
5562 | #ifdef __GNUC__ | |
5563 | # define alloca __builtin_alloca | |
5564 | #else | |
5565 | # ifdef _MSC_VER | |
5566 | # include <malloc.h> | |
5567 | # define alloca _alloca | |
5568 | # else | |
5569 | # if HAVE_ALLOCA_H | |
5570 | # include <alloca.h> | |
5571 | # else | |
5572 | # ifdef _AIX | |
5573 | #pragma alloca | |
5574 | # else | |
5575 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5576 | char *alloca (); | |
5577 | # endif | |
5578 | # endif | |
5579 | # endif | |
5580 | # endif | |
5581 | #endif | |
5582 | ||
5583 | int | |
5584 | main () | |
5585 | { | |
5586 | char *p = (char *) alloca (1); | |
5587 | ; | |
5588 | return 0; | |
5589 | } | |
5590 | _ACEOF | |
5591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5593 | (eval $ac_link) 2>conftest.er1 | |
5594 | ac_status=$? | |
5595 | grep -v '^ *+' conftest.er1 >conftest.err | |
5596 | rm -f conftest.er1 | |
5597 | cat conftest.err >&5 | |
5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5599 | (exit $ac_status); } && | |
5600 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5602 | (eval $ac_try) 2>&5 | |
5603 | ac_status=$? | |
5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5605 | (exit $ac_status); }; } && | |
5606 | { ac_try='test -s conftest$ac_exeext' | |
5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5608 | (eval $ac_try) 2>&5 | |
5609 | ac_status=$? | |
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5611 | (exit $ac_status); }; }; then | |
5612 | ac_cv_func_alloca_works=yes | |
5613 | else | |
5614 | echo "$as_me: failed program was:" >&5 | |
5615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5616 | ||
5617 | ac_cv_func_alloca_works=no | |
5618 | fi | |
5619 | rm -f conftest.err conftest.$ac_objext \ | |
5620 | conftest$ac_exeext conftest.$ac_ext | |
5621 | fi | |
5622 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
5623 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
5624 | ||
5625 | if test $ac_cv_func_alloca_works = yes; then | |
5626 | ||
5627 | cat >>confdefs.h <<\_ACEOF | |
5628 | #define HAVE_ALLOCA 1 | |
5629 | _ACEOF | |
5630 | ||
5631 | else | |
5632 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5633 | # that cause trouble. Some versions do not even contain alloca or | |
5634 | # contain a buggy version. If you still want to use their alloca, | |
5635 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5636 | ||
5637 | ALLOCA=alloca.$ac_objext | |
5638 | ||
5639 | cat >>confdefs.h <<\_ACEOF | |
5640 | #define C_ALLOCA 1 | |
5641 | _ACEOF | |
5642 | ||
5643 | ||
5644 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
5645 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5646 | if test "${ac_cv_os_cray+set}" = set; then | |
5647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5648 | else | |
5649 | cat >conftest.$ac_ext <<_ACEOF | |
5650 | /* confdefs.h. */ | |
5651 | _ACEOF | |
5652 | cat confdefs.h >>conftest.$ac_ext | |
5653 | cat >>conftest.$ac_ext <<_ACEOF | |
5654 | /* end confdefs.h. */ | |
5655 | #if defined(CRAY) && ! defined(CRAY2) | |
5656 | webecray | |
5657 | #else | |
5658 | wenotbecray | |
5659 | #endif | |
5660 | ||
5661 | _ACEOF | |
5662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5663 | $EGREP "webecray" >/dev/null 2>&1; then | |
5664 | ac_cv_os_cray=yes | |
5665 | else | |
5666 | ac_cv_os_cray=no | |
5667 | fi | |
5668 | rm -f conftest* | |
5669 | ||
5670 | fi | |
5671 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
5672 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
5673 | if test $ac_cv_os_cray = yes; then | |
5674 | for ac_func in _getb67 GETB67 getb67; do | |
5675 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5676 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5677 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5678 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5680 | else | |
5681 | cat >conftest.$ac_ext <<_ACEOF | |
5682 | /* confdefs.h. */ | |
5683 | _ACEOF | |
5684 | cat confdefs.h >>conftest.$ac_ext | |
5685 | cat >>conftest.$ac_ext <<_ACEOF | |
5686 | /* end confdefs.h. */ | |
5687 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5688 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5689 | #define $ac_func innocuous_$ac_func | |
5690 | ||
5691 | /* System header to define __stub macros and hopefully few prototypes, | |
5692 | which can conflict with char $ac_func (); below. | |
5693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5694 | <limits.h> exists even on freestanding compilers. */ | |
5695 | ||
5696 | #ifdef __STDC__ | |
5697 | # include <limits.h> | |
5698 | #else | |
5699 | # include <assert.h> | |
5700 | #endif | |
5701 | ||
5702 | #undef $ac_func | |
5703 | ||
5704 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5705 | #ifdef __cplusplus | |
5706 | extern "C" | |
5707 | { | |
5708 | #endif | |
5709 | /* We use char because int might match the return type of a gcc2 | |
5710 | builtin and then its argument prototype would still apply. */ | |
5711 | char $ac_func (); | |
5712 | /* The GNU C library defines this for functions which it implements | |
5713 | to always fail with ENOSYS. Some functions are actually named | |
5714 | something starting with __ and the normal name is an alias. */ | |
5715 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5716 | choke me | |
5717 | #else | |
5718 | char (*f) () = $ac_func; | |
5719 | #endif | |
5720 | #ifdef __cplusplus | |
5721 | } | |
5722 | #endif | |
5723 | ||
5724 | int | |
5725 | main () | |
5726 | { | |
5727 | return f != $ac_func; | |
5728 | ; | |
5729 | return 0; | |
5730 | } | |
5731 | _ACEOF | |
5732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5734 | (eval $ac_link) 2>conftest.er1 | |
5735 | ac_status=$? | |
5736 | grep -v '^ *+' conftest.er1 >conftest.err | |
5737 | rm -f conftest.er1 | |
5738 | cat conftest.err >&5 | |
5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5740 | (exit $ac_status); } && | |
5741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5743 | (eval $ac_try) 2>&5 | |
5744 | ac_status=$? | |
5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5746 | (exit $ac_status); }; } && | |
5747 | { ac_try='test -s conftest$ac_exeext' | |
5748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5749 | (eval $ac_try) 2>&5 | |
5750 | ac_status=$? | |
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5752 | (exit $ac_status); }; }; then | |
5753 | eval "$as_ac_var=yes" | |
5754 | else | |
5755 | echo "$as_me: failed program was:" >&5 | |
5756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5757 | ||
5758 | eval "$as_ac_var=no" | |
5759 | fi | |
5760 | rm -f conftest.err conftest.$ac_objext \ | |
5761 | conftest$ac_exeext conftest.$ac_ext | |
5762 | fi | |
5763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5764 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5765 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5766 | ||
5767 | cat >>confdefs.h <<_ACEOF | |
5768 | #define CRAY_STACKSEG_END $ac_func | |
5769 | _ACEOF | |
5770 | ||
5771 | break | |
5772 | fi | |
5773 | ||
5774 | done | |
5775 | fi | |
5776 | ||
5777 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
5778 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
5779 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
5780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5781 | else | |
5782 | if test "$cross_compiling" = yes; then | |
5783 | ac_cv_c_stack_direction=0 | |
5784 | else | |
5785 | cat >conftest.$ac_ext <<_ACEOF | |
5786 | /* confdefs.h. */ | |
5787 | _ACEOF | |
5788 | cat confdefs.h >>conftest.$ac_ext | |
5789 | cat >>conftest.$ac_ext <<_ACEOF | |
5790 | /* end confdefs.h. */ | |
5791 | int | |
5792 | find_stack_direction () | |
5793 | { | |
5794 | static char *addr = 0; | |
5795 | auto char dummy; | |
5796 | if (addr == 0) | |
5797 | { | |
5798 | addr = &dummy; | |
5799 | return find_stack_direction (); | |
5800 | } | |
5801 | else | |
5802 | return (&dummy > addr) ? 1 : -1; | |
5803 | } | |
5804 | ||
5805 | int | |
5806 | main () | |
5807 | { | |
5808 | exit (find_stack_direction () < 0); | |
5809 | } | |
5810 | _ACEOF | |
5811 | rm -f conftest$ac_exeext | |
5812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5813 | (eval $ac_link) 2>&5 | |
5814 | ac_status=$? | |
5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5818 | (eval $ac_try) 2>&5 | |
5819 | ac_status=$? | |
5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5821 | (exit $ac_status); }; }; then | |
5822 | ac_cv_c_stack_direction=1 | |
5823 | else | |
5824 | echo "$as_me: program exited with status $ac_status" >&5 | |
5825 | echo "$as_me: failed program was:" >&5 | |
5826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5827 | ||
5828 | ( exit $ac_status ) | |
5829 | ac_cv_c_stack_direction=-1 | |
5830 | fi | |
5831 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5832 | fi | |
5833 | fi | |
5834 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
5835 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
5836 | ||
5837 | cat >>confdefs.h <<_ACEOF | |
5838 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5839 | _ACEOF | |
5840 | ||
5841 | ||
5842 | fi | |
5843 | ||
5844 | ||
5845 | ||
5846 | for ac_header in stdlib.h unistd.h | |
5847 | do | |
5848 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5850 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5854 | fi | |
5855 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5856 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5857 | else | |
5858 | # Is the header compilable? | |
5859 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5860 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5861 | cat >conftest.$ac_ext <<_ACEOF | |
5862 | /* confdefs.h. */ | |
5863 | _ACEOF | |
5864 | cat confdefs.h >>conftest.$ac_ext | |
5865 | cat >>conftest.$ac_ext <<_ACEOF | |
5866 | /* end confdefs.h. */ | |
5867 | $ac_includes_default | |
5868 | #include <$ac_header> | |
5869 | _ACEOF | |
5870 | rm -f conftest.$ac_objext | |
5871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5872 | (eval $ac_compile) 2>conftest.er1 | |
5873 | ac_status=$? | |
5874 | grep -v '^ *+' conftest.er1 >conftest.err | |
5875 | rm -f conftest.er1 | |
5876 | cat conftest.err >&5 | |
5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5878 | (exit $ac_status); } && | |
5879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5881 | (eval $ac_try) 2>&5 | |
5882 | ac_status=$? | |
5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5884 | (exit $ac_status); }; } && | |
5885 | { ac_try='test -s conftest.$ac_objext' | |
5886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5887 | (eval $ac_try) 2>&5 | |
5888 | ac_status=$? | |
5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5890 | (exit $ac_status); }; }; then | |
5891 | ac_header_compiler=yes | |
5892 | else | |
5893 | echo "$as_me: failed program was:" >&5 | |
5894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5895 | ||
5896 | ac_header_compiler=no | |
5897 | fi | |
5898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5899 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5900 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5901 | ||
5902 | # Is the header present? | |
5903 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5904 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5905 | cat >conftest.$ac_ext <<_ACEOF | |
5906 | /* confdefs.h. */ | |
5907 | _ACEOF | |
5908 | cat confdefs.h >>conftest.$ac_ext | |
5909 | cat >>conftest.$ac_ext <<_ACEOF | |
5910 | /* end confdefs.h. */ | |
5911 | #include <$ac_header> | |
5912 | _ACEOF | |
5913 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5914 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5915 | ac_status=$? | |
5916 | grep -v '^ *+' conftest.er1 >conftest.err | |
5917 | rm -f conftest.er1 | |
5918 | cat conftest.err >&5 | |
5919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5920 | (exit $ac_status); } >/dev/null; then | |
5921 | if test -s conftest.err; then | |
5922 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5923 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5924 | else | |
5925 | ac_cpp_err= | |
5926 | fi | |
5927 | else | |
5928 | ac_cpp_err=yes | |
5929 | fi | |
5930 | if test -z "$ac_cpp_err"; then | |
5931 | ac_header_preproc=yes | |
5932 | else | |
5933 | echo "$as_me: failed program was:" >&5 | |
5934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5935 | ||
5936 | ac_header_preproc=no | |
5937 | fi | |
5938 | rm -f conftest.err conftest.$ac_ext | |
5939 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5940 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5941 | ||
5942 | # So? What about this header? | |
5943 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5944 | yes:no: ) | |
5945 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5946 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5948 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5949 | ac_header_preproc=yes | |
5950 | ;; | |
5951 | no:yes:* ) | |
5952 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5953 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5954 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5955 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5956 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5957 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5958 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5959 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5961 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5962 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5963 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5964 | ( | |
5965 | cat <<\_ASBOX | |
5966 | ## ---------------------------------------------- ## | |
5967 | ## Report this to srvx-bugs@lists.sourceforge.net ## | |
5968 | ## ---------------------------------------------- ## | |
5969 | _ASBOX | |
5970 | ) | | |
5971 | sed "s/^/$as_me: WARNING: /" >&2 | |
5972 | ;; | |
5973 | esac | |
5974 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5975 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5978 | else | |
5979 | eval "$as_ac_Header=\$ac_header_preproc" | |
5980 | fi | |
5981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5982 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5983 | ||
5984 | fi | |
5985 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5986 | cat >>confdefs.h <<_ACEOF | |
5987 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5988 | _ACEOF | |
5989 | ||
5990 | fi | |
5991 | ||
5992 | done | |
5993 | ||
5994 | ||
5995 | for ac_func in getpagesize | |
5996 | do | |
5997 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5998 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5999 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6000 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6002 | else | |
6003 | cat >conftest.$ac_ext <<_ACEOF | |
6004 | /* confdefs.h. */ | |
6005 | _ACEOF | |
6006 | cat confdefs.h >>conftest.$ac_ext | |
6007 | cat >>conftest.$ac_ext <<_ACEOF | |
6008 | /* end confdefs.h. */ | |
6009 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6011 | #define $ac_func innocuous_$ac_func | |
6012 | ||
6013 | /* System header to define __stub macros and hopefully few prototypes, | |
6014 | which can conflict with char $ac_func (); below. | |
6015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6016 | <limits.h> exists even on freestanding compilers. */ | |
6017 | ||
6018 | #ifdef __STDC__ | |
6019 | # include <limits.h> | |
6020 | #else | |
6021 | # include <assert.h> | |
6022 | #endif | |
6023 | ||
6024 | #undef $ac_func | |
6025 | ||
6026 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6027 | #ifdef __cplusplus | |
6028 | extern "C" | |
6029 | { | |
6030 | #endif | |
6031 | /* We use char because int might match the return type of a gcc2 | |
6032 | builtin and then its argument prototype would still apply. */ | |
6033 | char $ac_func (); | |
6034 | /* The GNU C library defines this for functions which it implements | |
6035 | to always fail with ENOSYS. Some functions are actually named | |
6036 | something starting with __ and the normal name is an alias. */ | |
6037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6038 | choke me | |
6039 | #else | |
6040 | char (*f) () = $ac_func; | |
6041 | #endif | |
6042 | #ifdef __cplusplus | |
6043 | } | |
6044 | #endif | |
6045 | ||
6046 | int | |
6047 | main () | |
6048 | { | |
6049 | return f != $ac_func; | |
6050 | ; | |
6051 | return 0; | |
6052 | } | |
6053 | _ACEOF | |
6054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6056 | (eval $ac_link) 2>conftest.er1 | |
6057 | ac_status=$? | |
6058 | grep -v '^ *+' conftest.er1 >conftest.err | |
6059 | rm -f conftest.er1 | |
6060 | cat conftest.err >&5 | |
6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6062 | (exit $ac_status); } && | |
6063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6065 | (eval $ac_try) 2>&5 | |
6066 | ac_status=$? | |
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6068 | (exit $ac_status); }; } && | |
6069 | { ac_try='test -s conftest$ac_exeext' | |
6070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6071 | (eval $ac_try) 2>&5 | |
6072 | ac_status=$? | |
6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6074 | (exit $ac_status); }; }; then | |
6075 | eval "$as_ac_var=yes" | |
6076 | else | |
6077 | echo "$as_me: failed program was:" >&5 | |
6078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6079 | ||
6080 | eval "$as_ac_var=no" | |
6081 | fi | |
6082 | rm -f conftest.err conftest.$ac_objext \ | |
6083 | conftest$ac_exeext conftest.$ac_ext | |
6084 | fi | |
6085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6086 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6087 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6088 | cat >>confdefs.h <<_ACEOF | |
6089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6090 | _ACEOF | |
6091 | ||
6092 | fi | |
6093 | done | |
6094 | ||
6095 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
6096 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6097 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6099 | else | |
6100 | if test "$cross_compiling" = yes; then | |
6101 | ac_cv_func_mmap_fixed_mapped=no | |
6102 | else | |
6103 | cat >conftest.$ac_ext <<_ACEOF | |
6104 | /* confdefs.h. */ | |
6105 | _ACEOF | |
6106 | cat confdefs.h >>conftest.$ac_ext | |
6107 | cat >>conftest.$ac_ext <<_ACEOF | |
6108 | /* end confdefs.h. */ | |
6109 | $ac_includes_default | |
6110 | /* malloc might have been renamed as rpl_malloc. */ | |
6111 | #undef malloc | |
6112 | ||
6113 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6114 | Here is a matrix of mmap possibilities: | |
6115 | mmap private not fixed | |
6116 | mmap private fixed at somewhere currently unmapped | |
6117 | mmap private fixed at somewhere already mapped | |
6118 | mmap shared not fixed | |
6119 | mmap shared fixed at somewhere currently unmapped | |
6120 | mmap shared fixed at somewhere already mapped | |
6121 | For private mappings, we should verify that changes cannot be read() | |
6122 | back from the file, nor mmap's back from the file at a different | |
6123 | address. (There have been systems where private was not correctly | |
6124 | implemented like the infamous i386 svr4.0, and systems where the | |
6125 | VM page cache was not coherent with the file system buffer cache | |
6126 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6127 | For shared mappings, we should conversely verify that changes get | |
6128 | propagated back to all the places they're supposed to be. | |
6129 | ||
6130 | Grep wants private fixed already mapped. | |
6131 | The main things grep needs to know about mmap are: | |
6132 | * does it exist and is it safe to write into the mmap'd area | |
6133 | * how to use it (BSD variants) */ | |
6134 | ||
6135 | #include <fcntl.h> | |
6136 | #include <sys/mman.h> | |
6137 | ||
6138 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
6139 | char *malloc (); | |
6140 | #endif | |
6141 | ||
6142 | /* This mess was copied from the GNU getpagesize.h. */ | |
6143 | #if !HAVE_GETPAGESIZE | |
6144 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6145 | # if !HAVE_SYS_PARAM_H | |
6146 | # define HAVE_SYS_PARAM_H 1 | |
6147 | # endif | |
6148 | ||
6149 | # ifdef _SC_PAGESIZE | |
6150 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6151 | # else /* no _SC_PAGESIZE */ | |
6152 | # if HAVE_SYS_PARAM_H | |
6153 | # include <sys/param.h> | |
6154 | # ifdef EXEC_PAGESIZE | |
6155 | # define getpagesize() EXEC_PAGESIZE | |
6156 | # else /* no EXEC_PAGESIZE */ | |
6157 | # ifdef NBPG | |
6158 | # define getpagesize() NBPG * CLSIZE | |
6159 | # ifndef CLSIZE | |
6160 | # define CLSIZE 1 | |
6161 | # endif /* no CLSIZE */ | |
6162 | # else /* no NBPG */ | |
6163 | # ifdef NBPC | |
6164 | # define getpagesize() NBPC | |
6165 | # else /* no NBPC */ | |
6166 | # ifdef PAGESIZE | |
6167 | # define getpagesize() PAGESIZE | |
6168 | # endif /* PAGESIZE */ | |
6169 | # endif /* no NBPC */ | |
6170 | # endif /* no NBPG */ | |
6171 | # endif /* no EXEC_PAGESIZE */ | |
6172 | # else /* no HAVE_SYS_PARAM_H */ | |
6173 | # define getpagesize() 8192 /* punt totally */ | |
6174 | # endif /* no HAVE_SYS_PARAM_H */ | |
6175 | # endif /* no _SC_PAGESIZE */ | |
6176 | ||
6177 | #endif /* no HAVE_GETPAGESIZE */ | |
6178 | ||
6179 | int | |
6180 | main () | |
6181 | { | |
6182 | char *data, *data2, *data3; | |
6183 | int i, pagesize; | |
6184 | int fd; | |
6185 | ||
6186 | pagesize = getpagesize (); | |
6187 | ||
6188 | /* First, make a file with some known garbage in it. */ | |
6189 | data = (char *) malloc (pagesize); | |
6190 | if (!data) | |
6191 | exit (1); | |
6192 | for (i = 0; i < pagesize; ++i) | |
6193 | *(data + i) = rand (); | |
6194 | umask (0); | |
6195 | fd = creat ("conftest.mmap", 0600); | |
6196 | if (fd < 0) | |
6197 | exit (1); | |
6198 | if (write (fd, data, pagesize) != pagesize) | |
6199 | exit (1); | |
6200 | close (fd); | |
6201 | ||
6202 | /* Next, try to mmap the file at a fixed address which already has | |
6203 | something else allocated at it. If we can, also make sure that | |
6204 | we see the same garbage. */ | |
6205 | fd = open ("conftest.mmap", O_RDWR); | |
6206 | if (fd < 0) | |
6207 | exit (1); | |
6208 | data2 = (char *) malloc (2 * pagesize); | |
6209 | if (!data2) | |
6210 | exit (1); | |
6211 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6212 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6213 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6214 | exit (1); | |
6215 | for (i = 0; i < pagesize; ++i) | |
6216 | if (*(data + i) != *(data2 + i)) | |
6217 | exit (1); | |
6218 | ||
6219 | /* Finally, make sure that changes to the mapped area do not | |
6220 | percolate back to the file as seen by read(). (This is a bug on | |
6221 | some variants of i386 svr4.0.) */ | |
6222 | for (i = 0; i < pagesize; ++i) | |
6223 | *(data2 + i) = *(data2 + i) + 1; | |
6224 | data3 = (char *) malloc (pagesize); | |
6225 | if (!data3) | |
6226 | exit (1); | |
6227 | if (read (fd, data3, pagesize) != pagesize) | |
6228 | exit (1); | |
6229 | for (i = 0; i < pagesize; ++i) | |
6230 | if (*(data + i) != *(data3 + i)) | |
6231 | exit (1); | |
6232 | close (fd); | |
6233 | exit (0); | |
6234 | } | |
6235 | _ACEOF | |
6236 | rm -f conftest$ac_exeext | |
6237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6238 | (eval $ac_link) 2>&5 | |
6239 | ac_status=$? | |
6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6243 | (eval $ac_try) 2>&5 | |
6244 | ac_status=$? | |
6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6246 | (exit $ac_status); }; }; then | |
6247 | ac_cv_func_mmap_fixed_mapped=yes | |
6248 | else | |
6249 | echo "$as_me: program exited with status $ac_status" >&5 | |
6250 | echo "$as_me: failed program was:" >&5 | |
6251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6252 | ||
6253 | ( exit $ac_status ) | |
6254 | ac_cv_func_mmap_fixed_mapped=no | |
6255 | fi | |
6256 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6257 | fi | |
6258 | fi | |
6259 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
6260 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6261 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6262 | ||
6263 | cat >>confdefs.h <<\_ACEOF | |
6264 | #define HAVE_MMAP 1 | |
6265 | _ACEOF | |
6266 | ||
6267 | fi | |
6268 | rm -f conftest.mmap | |
6269 | ||
6270 | ||
6271 | echo "$as_me:$LINENO: checking for sin_len" >&5 | |
6272 | echo $ECHO_N "checking for sin_len... $ECHO_C" >&6 | |
6273 | if test "${ac_cv_sin_len+set}" = set; then | |
6274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6275 | else | |
6276 | cat >conftest.$ac_ext <<_ACEOF | |
6277 | /* confdefs.h. */ | |
6278 | _ACEOF | |
6279 | cat confdefs.h >>conftest.$ac_ext | |
6280 | cat >>conftest.$ac_ext <<_ACEOF | |
6281 | /* end confdefs.h. */ | |
6282 | #include <sys/types.h> | |
6283 | #include <netinet/in.h> | |
6284 | int | |
6285 | main () | |
6286 | { | |
6287 | struct sockaddr_in *sin; sin->sin_len = 0; | |
6288 | ; | |
6289 | return 0; | |
6290 | } | |
6291 | _ACEOF | |
6292 | rm -f conftest.$ac_objext | |
6293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6294 | (eval $ac_compile) 2>conftest.er1 | |
6295 | ac_status=$? | |
6296 | grep -v '^ *+' conftest.er1 >conftest.err | |
6297 | rm -f conftest.er1 | |
6298 | cat conftest.err >&5 | |
6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6300 | (exit $ac_status); } && | |
6301 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6303 | (eval $ac_try) 2>&5 | |
6304 | ac_status=$? | |
6305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6306 | (exit $ac_status); }; } && | |
6307 | { ac_try='test -s conftest.$ac_objext' | |
6308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6309 | (eval $ac_try) 2>&5 | |
6310 | ac_status=$? | |
6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6312 | (exit $ac_status); }; }; then | |
6313 | ac_cv_sin_len="yes" | |
6314 | else | |
6315 | echo "$as_me: failed program was:" >&5 | |
6316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6317 | ||
6318 | ac_cv_sin_len="no" | |
6319 | fi | |
6320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6321 | fi | |
6322 | echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5 | |
6323 | echo "${ECHO_T}$ac_cv_sin_len" >&6 | |
6324 | if test $ac_cv_sin_len = yes ; then | |
6325 | ||
6326 | cat >>confdefs.h <<\_ACEOF | |
6327 | #define HAVE_SIN_LEN 1 | |
6328 | _ACEOF | |
6329 | ||
6330 | fi | |
6331 | ||
6332 | OLD_CFLAGS=$CFLAGS | |
6333 | CFLAGS="$CFLAGS -W -Wall -Werror" | |
6334 | ||
6335 | echo "$as_me:$LINENO: checking for time_t format" >&5 | |
6336 | echo $ECHO_N "checking for time_t format... $ECHO_C" >&6 | |
6337 | if test "${ac_cv_fmt_time_t+set}" = set; then | |
6338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6339 | else | |
6340 | ||
6341 | ac_cv_fmt_time_t=no | |
6342 | cat >conftest.$ac_ext <<_ACEOF | |
6343 | #include <sys/types.h> | |
6344 | #include <stdio.h> | |
6345 | void myfunc(void) { | |
6346 | time_t test=0; | |
6347 | printf("%li", test); | |
6348 | } | |
6349 | _ACEOF | |
6350 | rm -f conftest.$ac_objext | |
6351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6352 | (eval $ac_compile) 2>conftest.er1 | |
6353 | ac_status=$? | |
6354 | grep -v '^ *+' conftest.er1 >conftest.err | |
6355 | rm -f conftest.er1 | |
6356 | cat conftest.err >&5 | |
6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6358 | (exit $ac_status); } && | |
6359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6361 | (eval $ac_try) 2>&5 | |
6362 | ac_status=$? | |
6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6364 | (exit $ac_status); }; } && | |
6365 | { ac_try='test -s conftest.$ac_objext' | |
6366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6367 | (eval $ac_try) 2>&5 | |
6368 | ac_status=$? | |
6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6370 | (exit $ac_status); }; }; then | |
6371 | ac_cv_fmt_time_t="\"%li\"" | |
6372 | else | |
6373 | echo "$as_me: failed program was:" >&5 | |
6374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6375 | ||
6376 | fi | |
6377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6378 | if test $ac_cv_fmt_time_t = no; then | |
6379 | cat >conftest.$ac_ext <<_ACEOF | |
6380 | #include <sys/types.h> | |
6381 | #include <stdio.h> | |
6382 | void myfunc(void) { | |
6383 | time_t test=0; | |
6384 | printf("%i", test); | |
6385 | } | |
6386 | _ACEOF | |
6387 | rm -f conftest.$ac_objext | |
6388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6389 | (eval $ac_compile) 2>conftest.er1 | |
6390 | ac_status=$? | |
6391 | grep -v '^ *+' conftest.er1 >conftest.err | |
6392 | rm -f conftest.er1 | |
6393 | cat conftest.err >&5 | |
6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6395 | (exit $ac_status); } && | |
6396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6398 | (eval $ac_try) 2>&5 | |
6399 | ac_status=$? | |
6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6401 | (exit $ac_status); }; } && | |
6402 | { ac_try='test -s conftest.$ac_objext' | |
6403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6404 | (eval $ac_try) 2>&5 | |
6405 | ac_status=$? | |
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); }; }; then | |
6408 | ac_cv_fmt_time_t="\"%i\"" | |
6409 | else | |
6410 | echo "$as_me: failed program was:" >&5 | |
6411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6412 | ||
6413 | fi | |
6414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6415 | fi | |
6416 | if test $ac_cv_fmt_time_t = no; then | |
6417 | { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t | |
6418 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&5 | |
6419 | echo "$as_me: error: Cannot detect format string for time_t | |
6420 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;} | |
6421 | { (exit 1); exit 1; }; } | |
6422 | fi | |
6423 | ||
6424 | fi | |
6425 | ||
6426 | ||
6427 | cat >>confdefs.h <<_ACEOF | |
6428 | #define FMT_TIME_T $ac_cv_fmt_time_t | |
6429 | _ACEOF | |
6430 | ||
6431 | echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5 | |
6432 | echo "${ECHO_T}$ac_cv_fmt_time_t" >&6 | |
6433 | ||
6434 | echo "$as_me:$LINENO: checking for va_copy" >&5 | |
6435 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
6436 | if test "${ac_cv_c_va_copy+set}" = set; then | |
6437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6438 | else | |
6439 | cat >conftest.$ac_ext <<_ACEOF | |
6440 | /* confdefs.h. */ | |
6441 | _ACEOF | |
6442 | cat confdefs.h >>conftest.$ac_ext | |
6443 | cat >>conftest.$ac_ext <<_ACEOF | |
6444 | /* end confdefs.h. */ | |
6445 | #include <stdarg.h> | |
6446 | int | |
6447 | main () | |
6448 | { | |
6449 | va_list ap1, ap2; va_copy(ap1, ap2); | |
6450 | ; | |
6451 | return 0; | |
6452 | } | |
6453 | _ACEOF | |
6454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6456 | (eval $ac_link) 2>conftest.er1 | |
6457 | ac_status=$? | |
6458 | grep -v '^ *+' conftest.er1 >conftest.err | |
6459 | rm -f conftest.er1 | |
6460 | cat conftest.err >&5 | |
6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6462 | (exit $ac_status); } && | |
6463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6465 | (eval $ac_try) 2>&5 | |
6466 | ac_status=$? | |
6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6468 | (exit $ac_status); }; } && | |
6469 | { ac_try='test -s conftest$ac_exeext' | |
6470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6471 | (eval $ac_try) 2>&5 | |
6472 | ac_status=$? | |
6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6474 | (exit $ac_status); }; }; then | |
6475 | ac_cv_c_va_copy="yes" | |
6476 | else | |
6477 | echo "$as_me: failed program was:" >&5 | |
6478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6479 | ||
6480 | ac_cv_c_va_copy="no" | |
6481 | ||
6482 | fi | |
6483 | rm -f conftest.err conftest.$ac_objext \ | |
6484 | conftest$ac_exeext conftest.$ac_ext | |
6485 | fi | |
6486 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 | |
6487 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 | |
6488 | if test "$ac_cv_c_va_copy" = "yes" ; then | |
6489 | ||
6490 | cat >>confdefs.h <<\_ACEOF | |
6491 | #define HAVE_VA_COPY 1 | |
6492 | _ACEOF | |
6493 | ||
6494 | fi | |
6495 | ||
6496 | echo "$as_me:$LINENO: checking for __va_copy" >&5 | |
6497 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 | |
6498 | if test "${ac_cv_c___va_copy+set}" = set; then | |
6499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6500 | else | |
6501 | cat >conftest.$ac_ext <<_ACEOF | |
6502 | /* confdefs.h. */ | |
6503 | _ACEOF | |
6504 | cat confdefs.h >>conftest.$ac_ext | |
6505 | cat >>conftest.$ac_ext <<_ACEOF | |
6506 | /* end confdefs.h. */ | |
6507 | #include <stdarg.h> | |
6508 | int | |
6509 | main () | |
6510 | { | |
6511 | va_list ap1, ap2; __va_copy(ap1, ap2); | |
6512 | ; | |
6513 | return 0; | |
6514 | } | |
6515 | _ACEOF | |
6516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6518 | (eval $ac_link) 2>conftest.er1 | |
6519 | ac_status=$? | |
6520 | grep -v '^ *+' conftest.er1 >conftest.err | |
6521 | rm -f conftest.er1 | |
6522 | cat conftest.err >&5 | |
6523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6524 | (exit $ac_status); } && | |
6525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6527 | (eval $ac_try) 2>&5 | |
6528 | ac_status=$? | |
6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6530 | (exit $ac_status); }; } && | |
6531 | { ac_try='test -s conftest$ac_exeext' | |
6532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6533 | (eval $ac_try) 2>&5 | |
6534 | ac_status=$? | |
6535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6536 | (exit $ac_status); }; }; then | |
6537 | ac_cv_c___va_copy="yes" | |
6538 | else | |
6539 | echo "$as_me: failed program was:" >&5 | |
6540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6541 | ||
6542 | ac_cv_c___va_copy="no" | |
6543 | ||
6544 | fi | |
6545 | rm -f conftest.err conftest.$ac_objext \ | |
6546 | conftest$ac_exeext conftest.$ac_ext | |
6547 | fi | |
6548 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 | |
6549 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 | |
6550 | if test "$ac_cv_c___va_copy" = "yes" ; then | |
6551 | ||
6552 | cat >>confdefs.h <<\_ACEOF | |
6553 | #define HAVE___VA_COPY 1 | |
6554 | _ACEOF | |
6555 | ||
6556 | fi | |
6557 | ||
6558 | CFLAGS=$OLD_CFLAGS | |
6559 | ||
6560 | echo "$as_me:$LINENO: checking which malloc to use" >&5 | |
6561 | echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6 | |
6562 | ||
6563 | # Check whether --with-malloc or --without-malloc was given. | |
6564 | if test "${with_malloc+set}" = set; then | |
6565 | withval="$with_malloc" | |
6566 | ||
6567 | else | |
6568 | withval="system" | |
6569 | fi; | |
6570 | if test "x$withval" = "xsystem" ; then | |
6571 | echo "$as_me:$LINENO: result: system" >&5 | |
6572 | echo "${ECHO_T}system" >&6 | |
6573 | ||
6574 | cat >>confdefs.h <<\_ACEOF | |
6575 | #define WITH_MALLOC_SYSTEM 1 | |
6576 | _ACEOF | |
6577 | ||
6578 | elif test "x$withval" = "xdmalloc" ; then | |
6579 | echo "$as_me:$LINENO: result: dmalloc" >&5 | |
6580 | echo "${ECHO_T}dmalloc" >&6 | |
6581 | ||
6582 | for ac_header in dmalloc.h | |
6583 | do | |
6584 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6586 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6588 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6590 | fi | |
6591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6593 | else | |
6594 | # Is the header compilable? | |
6595 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6596 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6597 | cat >conftest.$ac_ext <<_ACEOF | |
6598 | /* confdefs.h. */ | |
6599 | _ACEOF | |
6600 | cat confdefs.h >>conftest.$ac_ext | |
6601 | cat >>conftest.$ac_ext <<_ACEOF | |
6602 | /* end confdefs.h. */ | |
6603 | $ac_includes_default | |
6604 | #include <$ac_header> | |
6605 | _ACEOF | |
6606 | rm -f conftest.$ac_objext | |
6607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6608 | (eval $ac_compile) 2>conftest.er1 | |
6609 | ac_status=$? | |
6610 | grep -v '^ *+' conftest.er1 >conftest.err | |
6611 | rm -f conftest.er1 | |
6612 | cat conftest.err >&5 | |
6613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6614 | (exit $ac_status); } && | |
6615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6617 | (eval $ac_try) 2>&5 | |
6618 | ac_status=$? | |
6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6620 | (exit $ac_status); }; } && | |
6621 | { ac_try='test -s conftest.$ac_objext' | |
6622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6623 | (eval $ac_try) 2>&5 | |
6624 | ac_status=$? | |
6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6626 | (exit $ac_status); }; }; then | |
6627 | ac_header_compiler=yes | |
6628 | else | |
6629 | echo "$as_me: failed program was:" >&5 | |
6630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6631 | ||
6632 | ac_header_compiler=no | |
6633 | fi | |
6634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6635 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6636 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6637 | ||
6638 | # Is the header present? | |
6639 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6640 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6641 | cat >conftest.$ac_ext <<_ACEOF | |
6642 | /* confdefs.h. */ | |
6643 | _ACEOF | |
6644 | cat confdefs.h >>conftest.$ac_ext | |
6645 | cat >>conftest.$ac_ext <<_ACEOF | |
6646 | /* end confdefs.h. */ | |
6647 | #include <$ac_header> | |
6648 | _ACEOF | |
6649 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6650 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6651 | ac_status=$? | |
6652 | grep -v '^ *+' conftest.er1 >conftest.err | |
6653 | rm -f conftest.er1 | |
6654 | cat conftest.err >&5 | |
6655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6656 | (exit $ac_status); } >/dev/null; then | |
6657 | if test -s conftest.err; then | |
6658 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6659 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6660 | else | |
6661 | ac_cpp_err= | |
6662 | fi | |
6663 | else | |
6664 | ac_cpp_err=yes | |
6665 | fi | |
6666 | if test -z "$ac_cpp_err"; then | |
6667 | ac_header_preproc=yes | |
6668 | else | |
6669 | echo "$as_me: failed program was:" >&5 | |
6670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6671 | ||
6672 | ac_header_preproc=no | |
6673 | fi | |
6674 | rm -f conftest.err conftest.$ac_ext | |
6675 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6676 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6677 | ||
6678 | # So? What about this header? | |
6679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6680 | yes:no: ) | |
6681 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6682 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6684 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6685 | ac_header_preproc=yes | |
6686 | ;; | |
6687 | no:yes:* ) | |
6688 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6689 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6690 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6691 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6692 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6693 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6694 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6695 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6697 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6698 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6699 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6700 | ( | |
6701 | cat <<\_ASBOX | |
6702 | ## ---------------------------------------------- ## | |
6703 | ## Report this to srvx-bugs@lists.sourceforge.net ## | |
6704 | ## ---------------------------------------------- ## | |
6705 | _ASBOX | |
6706 | ) | | |
6707 | sed "s/^/$as_me: WARNING: /" >&2 | |
6708 | ;; | |
6709 | esac | |
6710 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6714 | else | |
6715 | eval "$as_ac_Header=\$ac_header_preproc" | |
6716 | fi | |
6717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6718 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6719 | ||
6720 | fi | |
6721 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6722 | cat >>confdefs.h <<_ACEOF | |
6723 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6724 | _ACEOF | |
6725 | ||
6726 | else | |
6727 | { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5 | |
6728 | echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;} | |
6729 | { (exit 1); exit 1; }; } | |
6730 | fi | |
6731 | ||
6732 | done | |
6733 | ||
6734 | ||
6735 | echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5 | |
6736 | echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6 | |
6737 | if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then | |
6738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6739 | else | |
6740 | ac_check_lib_save_LIBS=$LIBS | |
6741 | LIBS="-ldmalloc $LIBS" | |
6742 | cat >conftest.$ac_ext <<_ACEOF | |
6743 | /* confdefs.h. */ | |
6744 | _ACEOF | |
6745 | cat confdefs.h >>conftest.$ac_ext | |
6746 | cat >>conftest.$ac_ext <<_ACEOF | |
6747 | /* end confdefs.h. */ | |
6748 | ||
6749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6750 | #ifdef __cplusplus | |
6751 | extern "C" | |
6752 | #endif | |
6753 | /* We use char because int might match the return type of a gcc2 | |
6754 | builtin and then its argument prototype would still apply. */ | |
6755 | char malloc (); | |
6756 | int | |
6757 | main () | |
6758 | { | |
6759 | malloc (); | |
6760 | ; | |
6761 | return 0; | |
6762 | } | |
6763 | _ACEOF | |
6764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6766 | (eval $ac_link) 2>conftest.er1 | |
6767 | ac_status=$? | |
6768 | grep -v '^ *+' conftest.er1 >conftest.err | |
6769 | rm -f conftest.er1 | |
6770 | cat conftest.err >&5 | |
6771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6772 | (exit $ac_status); } && | |
6773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6775 | (eval $ac_try) 2>&5 | |
6776 | ac_status=$? | |
6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6778 | (exit $ac_status); }; } && | |
6779 | { ac_try='test -s conftest$ac_exeext' | |
6780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6781 | (eval $ac_try) 2>&5 | |
6782 | ac_status=$? | |
6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6784 | (exit $ac_status); }; }; then | |
6785 | ac_cv_lib_dmalloc_malloc=yes | |
6786 | else | |
6787 | echo "$as_me: failed program was:" >&5 | |
6788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6789 | ||
6790 | ac_cv_lib_dmalloc_malloc=no | |
6791 | fi | |
6792 | rm -f conftest.err conftest.$ac_objext \ | |
6793 | conftest$ac_exeext conftest.$ac_ext | |
6794 | LIBS=$ac_check_lib_save_LIBS | |
6795 | fi | |
6796 | echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5 | |
6797 | echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6 | |
6798 | if test $ac_cv_lib_dmalloc_malloc = yes; then | |
6799 | cat >>confdefs.h <<_ACEOF | |
6800 | #define HAVE_LIBDMALLOC 1 | |
6801 | _ACEOF | |
6802 | ||
6803 | LIBS="-ldmalloc $LIBS" | |
6804 | ||
6805 | else | |
6806 | { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5 | |
6807 | echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;} | |
6808 | { (exit 1); exit 1; }; } | |
6809 | fi | |
6810 | ||
6811 | ||
6812 | cat >>confdefs.h <<\_ACEOF | |
6813 | #define WITH_MALLOC_DMALLOC 1 | |
6814 | _ACEOF | |
6815 | ||
6816 | elif test "x$withval" = "xmpatrol" ; then | |
6817 | echo "$as_me:$LINENO: result: mpatrol" >&5 | |
6818 | echo "${ECHO_T}mpatrol" >&6 | |
6819 | ||
6820 | for ac_header in mpatrol.h | |
6821 | do | |
6822 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6828 | fi | |
6829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6831 | else | |
6832 | # Is the header compilable? | |
6833 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6834 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6835 | cat >conftest.$ac_ext <<_ACEOF | |
6836 | /* confdefs.h. */ | |
6837 | _ACEOF | |
6838 | cat confdefs.h >>conftest.$ac_ext | |
6839 | cat >>conftest.$ac_ext <<_ACEOF | |
6840 | /* end confdefs.h. */ | |
6841 | $ac_includes_default | |
6842 | #include <$ac_header> | |
6843 | _ACEOF | |
6844 | rm -f conftest.$ac_objext | |
6845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6846 | (eval $ac_compile) 2>conftest.er1 | |
6847 | ac_status=$? | |
6848 | grep -v '^ *+' conftest.er1 >conftest.err | |
6849 | rm -f conftest.er1 | |
6850 | cat conftest.err >&5 | |
6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6852 | (exit $ac_status); } && | |
6853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6855 | (eval $ac_try) 2>&5 | |
6856 | ac_status=$? | |
6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6858 | (exit $ac_status); }; } && | |
6859 | { ac_try='test -s conftest.$ac_objext' | |
6860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6861 | (eval $ac_try) 2>&5 | |
6862 | ac_status=$? | |
6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6864 | (exit $ac_status); }; }; then | |
6865 | ac_header_compiler=yes | |
6866 | else | |
6867 | echo "$as_me: failed program was:" >&5 | |
6868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6869 | ||
6870 | ac_header_compiler=no | |
6871 | fi | |
6872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6873 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6874 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6875 | ||
6876 | # Is the header present? | |
6877 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6878 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6879 | cat >conftest.$ac_ext <<_ACEOF | |
6880 | /* confdefs.h. */ | |
6881 | _ACEOF | |
6882 | cat confdefs.h >>conftest.$ac_ext | |
6883 | cat >>conftest.$ac_ext <<_ACEOF | |
6884 | /* end confdefs.h. */ | |
6885 | #include <$ac_header> | |
6886 | _ACEOF | |
6887 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6889 | ac_status=$? | |
6890 | grep -v '^ *+' conftest.er1 >conftest.err | |
6891 | rm -f conftest.er1 | |
6892 | cat conftest.err >&5 | |
6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6894 | (exit $ac_status); } >/dev/null; then | |
6895 | if test -s conftest.err; then | |
6896 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6897 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6898 | else | |
6899 | ac_cpp_err= | |
6900 | fi | |
6901 | else | |
6902 | ac_cpp_err=yes | |
6903 | fi | |
6904 | if test -z "$ac_cpp_err"; then | |
6905 | ac_header_preproc=yes | |
6906 | else | |
6907 | echo "$as_me: failed program was:" >&5 | |
6908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6909 | ||
6910 | ac_header_preproc=no | |
6911 | fi | |
6912 | rm -f conftest.err conftest.$ac_ext | |
6913 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6914 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6915 | ||
6916 | # So? What about this header? | |
6917 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6918 | yes:no: ) | |
6919 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6920 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6922 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6923 | ac_header_preproc=yes | |
6924 | ;; | |
6925 | no:yes:* ) | |
6926 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6927 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6928 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6929 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6930 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6931 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6932 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6933 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6935 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6936 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6937 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6938 | ( | |
6939 | cat <<\_ASBOX | |
6940 | ## ---------------------------------------------- ## | |
6941 | ## Report this to srvx-bugs@lists.sourceforge.net ## | |
6942 | ## ---------------------------------------------- ## | |
6943 | _ASBOX | |
6944 | ) | | |
6945 | sed "s/^/$as_me: WARNING: /" >&2 | |
6946 | ;; | |
6947 | esac | |
6948 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6949 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6950 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6952 | else | |
6953 | eval "$as_ac_Header=\$ac_header_preproc" | |
6954 | fi | |
6955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6956 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6957 | ||
6958 | fi | |
6959 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6960 | cat >>confdefs.h <<_ACEOF | |
6961 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6962 | _ACEOF | |
6963 | ||
6964 | else | |
6965 | { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5 | |
6966 | echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;} | |
6967 | { (exit 1); exit 1; }; } | |
6968 | fi | |
6969 | ||
6970 | done | |
6971 | ||
6972 | ||
6973 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | |
6974 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | |
6975 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
6976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6977 | else | |
6978 | ac_check_lib_save_LIBS=$LIBS | |
6979 | LIBS="-lelf $LIBS" | |
6980 | cat >conftest.$ac_ext <<_ACEOF | |
6981 | /* confdefs.h. */ | |
6982 | _ACEOF | |
6983 | cat confdefs.h >>conftest.$ac_ext | |
6984 | cat >>conftest.$ac_ext <<_ACEOF | |
6985 | /* end confdefs.h. */ | |
6986 | ||
6987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6988 | #ifdef __cplusplus | |
6989 | extern "C" | |
6990 | #endif | |
6991 | /* We use char because int might match the return type of a gcc2 | |
6992 | builtin and then its argument prototype would still apply. */ | |
6993 | char elf_begin (); | |
6994 | int | |
6995 | main () | |
6996 | { | |
6997 | elf_begin (); | |
6998 | ; | |
6999 | return 0; | |
7000 | } | |
7001 | _ACEOF | |
7002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7004 | (eval $ac_link) 2>conftest.er1 | |
7005 | ac_status=$? | |
7006 | grep -v '^ *+' conftest.er1 >conftest.err | |
7007 | rm -f conftest.er1 | |
7008 | cat conftest.err >&5 | |
7009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7010 | (exit $ac_status); } && | |
7011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7013 | (eval $ac_try) 2>&5 | |
7014 | ac_status=$? | |
7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7016 | (exit $ac_status); }; } && | |
7017 | { ac_try='test -s conftest$ac_exeext' | |
7018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7019 | (eval $ac_try) 2>&5 | |
7020 | ac_status=$? | |
7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7022 | (exit $ac_status); }; }; then | |
7023 | ac_cv_lib_elf_elf_begin=yes | |
7024 | else | |
7025 | echo "$as_me: failed program was:" >&5 | |
7026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7027 | ||
7028 | ac_cv_lib_elf_elf_begin=no | |
7029 | fi | |
7030 | rm -f conftest.err conftest.$ac_objext \ | |
7031 | conftest$ac_exeext conftest.$ac_ext | |
7032 | LIBS=$ac_check_lib_save_LIBS | |
7033 | fi | |
7034 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | |
7035 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | |
7036 | if test $ac_cv_lib_elf_elf_begin = yes; then | |
7037 | cat >>confdefs.h <<_ACEOF | |
7038 | #define HAVE_LIBELF 1 | |
7039 | _ACEOF | |
7040 | ||
7041 | LIBS="-lelf $LIBS" | |
7042 | ||
7043 | fi | |
7044 | ||
7045 | ||
7046 | echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5 | |
7047 | echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6 | |
7048 | if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then | |
7049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7050 | else | |
7051 | ac_check_lib_save_LIBS=$LIBS | |
7052 | LIBS="-lmpatrol $LIBS" | |
7053 | cat >conftest.$ac_ext <<_ACEOF | |
7054 | /* confdefs.h. */ | |
7055 | _ACEOF | |
7056 | cat confdefs.h >>conftest.$ac_ext | |
7057 | cat >>conftest.$ac_ext <<_ACEOF | |
7058 | /* end confdefs.h. */ | |
7059 | ||
7060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7061 | #ifdef __cplusplus | |
7062 | extern "C" | |
7063 | #endif | |
7064 | /* We use char because int might match the return type of a gcc2 | |
7065 | builtin and then its argument prototype would still apply. */ | |
7066 | char __mp_atexit (); | |
7067 | int | |
7068 | main () | |
7069 | { | |
7070 | __mp_atexit (); | |
7071 | ; | |
7072 | return 0; | |
7073 | } | |
7074 | _ACEOF | |
7075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7077 | (eval $ac_link) 2>conftest.er1 | |
7078 | ac_status=$? | |
7079 | grep -v '^ *+' conftest.er1 >conftest.err | |
7080 | rm -f conftest.er1 | |
7081 | cat conftest.err >&5 | |
7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7083 | (exit $ac_status); } && | |
7084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7086 | (eval $ac_try) 2>&5 | |
7087 | ac_status=$? | |
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7089 | (exit $ac_status); }; } && | |
7090 | { ac_try='test -s conftest$ac_exeext' | |
7091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7092 | (eval $ac_try) 2>&5 | |
7093 | ac_status=$? | |
7094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7095 | (exit $ac_status); }; }; then | |
7096 | ac_cv_lib_mpatrol___mp_atexit=yes | |
7097 | else | |
7098 | echo "$as_me: failed program was:" >&5 | |
7099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7100 | ||
7101 | ac_cv_lib_mpatrol___mp_atexit=no | |
7102 | fi | |
7103 | rm -f conftest.err conftest.$ac_objext \ | |
7104 | conftest$ac_exeext conftest.$ac_ext | |
7105 | LIBS=$ac_check_lib_save_LIBS | |
7106 | fi | |
7107 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5 | |
7108 | echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6 | |
7109 | if test $ac_cv_lib_mpatrol___mp_atexit = yes; then | |
7110 | cat >>confdefs.h <<_ACEOF | |
7111 | #define HAVE_LIBMPATROL 1 | |
7112 | _ACEOF | |
7113 | ||
7114 | LIBS="-lmpatrol $LIBS" | |
7115 | ||
7116 | else | |
7117 | { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5 | |
7118 | echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;} | |
7119 | { (exit 1); exit 1; }; } | |
7120 | fi | |
7121 | ||
7122 | ||
7123 | cat >>confdefs.h <<\_ACEOF | |
7124 | #define WITH_MALLOC_MPATROL 1 | |
7125 | _ACEOF | |
7126 | ||
7127 | elif test "x$withval" = "xboehm-gc" ; then | |
7128 | echo "$as_me:$LINENO: result: boehm-gc" >&5 | |
7129 | echo "${ECHO_T}boehm-gc" >&6 | |
7130 | ||
7131 | for ac_header in gc/gc.h | |
7132 | do | |
7133 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7135 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7137 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7139 | fi | |
7140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7142 | else | |
7143 | # Is the header compilable? | |
7144 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7145 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7146 | cat >conftest.$ac_ext <<_ACEOF | |
7147 | /* confdefs.h. */ | |
7148 | _ACEOF | |
7149 | cat confdefs.h >>conftest.$ac_ext | |
7150 | cat >>conftest.$ac_ext <<_ACEOF | |
7151 | /* end confdefs.h. */ | |
7152 | $ac_includes_default | |
7153 | #include <$ac_header> | |
7154 | _ACEOF | |
7155 | rm -f conftest.$ac_objext | |
7156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7157 | (eval $ac_compile) 2>conftest.er1 | |
7158 | ac_status=$? | |
7159 | grep -v '^ *+' conftest.er1 >conftest.err | |
7160 | rm -f conftest.er1 | |
7161 | cat conftest.err >&5 | |
7162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7163 | (exit $ac_status); } && | |
7164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7166 | (eval $ac_try) 2>&5 | |
7167 | ac_status=$? | |
7168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7169 | (exit $ac_status); }; } && | |
7170 | { ac_try='test -s conftest.$ac_objext' | |
7171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7172 | (eval $ac_try) 2>&5 | |
7173 | ac_status=$? | |
7174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7175 | (exit $ac_status); }; }; then | |
7176 | ac_header_compiler=yes | |
7177 | else | |
7178 | echo "$as_me: failed program was:" >&5 | |
7179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7180 | ||
7181 | ac_header_compiler=no | |
7182 | fi | |
7183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7184 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7185 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7186 | ||
7187 | # Is the header present? | |
7188 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7189 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7190 | cat >conftest.$ac_ext <<_ACEOF | |
7191 | /* confdefs.h. */ | |
7192 | _ACEOF | |
7193 | cat confdefs.h >>conftest.$ac_ext | |
7194 | cat >>conftest.$ac_ext <<_ACEOF | |
7195 | /* end confdefs.h. */ | |
7196 | #include <$ac_header> | |
7197 | _ACEOF | |
7198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7200 | ac_status=$? | |
7201 | grep -v '^ *+' conftest.er1 >conftest.err | |
7202 | rm -f conftest.er1 | |
7203 | cat conftest.err >&5 | |
7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7205 | (exit $ac_status); } >/dev/null; then | |
7206 | if test -s conftest.err; then | |
7207 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7208 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7209 | else | |
7210 | ac_cpp_err= | |
7211 | fi | |
7212 | else | |
7213 | ac_cpp_err=yes | |
7214 | fi | |
7215 | if test -z "$ac_cpp_err"; then | |
7216 | ac_header_preproc=yes | |
7217 | else | |
7218 | echo "$as_me: failed program was:" >&5 | |
7219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7220 | ||
7221 | ac_header_preproc=no | |
7222 | fi | |
7223 | rm -f conftest.err conftest.$ac_ext | |
7224 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7225 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7226 | ||
7227 | # So? What about this header? | |
7228 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7229 | yes:no: ) | |
7230 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7231 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7232 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7233 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7234 | ac_header_preproc=yes | |
7235 | ;; | |
7236 | no:yes:* ) | |
7237 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7238 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7239 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7240 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7241 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7242 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7243 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7244 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7246 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7247 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7248 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7249 | ( | |
7250 | cat <<\_ASBOX | |
7251 | ## ---------------------------------------------- ## | |
7252 | ## Report this to srvx-bugs@lists.sourceforge.net ## | |
7253 | ## ---------------------------------------------- ## | |
7254 | _ASBOX | |
7255 | ) | | |
7256 | sed "s/^/$as_me: WARNING: /" >&2 | |
7257 | ;; | |
7258 | esac | |
7259 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7261 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7263 | else | |
7264 | eval "$as_ac_Header=\$ac_header_preproc" | |
7265 | fi | |
7266 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7267 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7268 | ||
7269 | fi | |
7270 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7271 | cat >>confdefs.h <<_ACEOF | |
7272 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7273 | _ACEOF | |
7274 | ||
7275 | else | |
7276 | { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5 | |
7277 | echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;} | |
7278 | { (exit 1); exit 1; }; } | |
7279 | fi | |
7280 | ||
7281 | done | |
7282 | ||
7283 | ||
7284 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
7285 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
7286 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
7287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7288 | else | |
7289 | ac_check_lib_save_LIBS=$LIBS | |
7290 | LIBS="-ldl $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 dlopen (); | |
7305 | int | |
7306 | main () | |
7307 | { | |
7308 | dlopen (); | |
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" || test ! -s conftest.err' | |
7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7324 | (eval $ac_try) 2>&5 | |
7325 | ac_status=$? | |
7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7327 | (exit $ac_status); }; } && | |
7328 | { ac_try='test -s conftest$ac_exeext' | |
7329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7330 | (eval $ac_try) 2>&5 | |
7331 | ac_status=$? | |
7332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7333 | (exit $ac_status); }; }; then | |
7334 | ac_cv_lib_dl_dlopen=yes | |
7335 | else | |
7336 | echo "$as_me: failed program was:" >&5 | |
7337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7338 | ||
7339 | ac_cv_lib_dl_dlopen=no | |
7340 | fi | |
7341 | rm -f conftest.err conftest.$ac_objext \ | |
7342 | conftest$ac_exeext conftest.$ac_ext | |
7343 | LIBS=$ac_check_lib_save_LIBS | |
7344 | fi | |
7345 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
7346 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
7347 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7348 | cat >>confdefs.h <<_ACEOF | |
7349 | #define HAVE_LIBDL 1 | |
7350 | _ACEOF | |
7351 | ||
7352 | LIBS="-ldl $LIBS" | |
7353 | ||
7354 | else | |
7355 | { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5 | |
7356 | echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;} | |
7357 | { (exit 1); exit 1; }; } | |
7358 | fi | |
7359 | ||
7360 | ||
7361 | echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5 | |
7362 | echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6 | |
7363 | if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then | |
7364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7365 | else | |
7366 | ac_check_lib_save_LIBS=$LIBS | |
7367 | LIBS="-lgc $LIBS" | |
7368 | cat >conftest.$ac_ext <<_ACEOF | |
7369 | /* confdefs.h. */ | |
7370 | _ACEOF | |
7371 | cat confdefs.h >>conftest.$ac_ext | |
7372 | cat >>conftest.$ac_ext <<_ACEOF | |
7373 | /* end confdefs.h. */ | |
7374 | ||
7375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7376 | #ifdef __cplusplus | |
7377 | extern "C" | |
7378 | #endif | |
7379 | /* We use char because int might match the return type of a gcc2 | |
7380 | builtin and then its argument prototype would still apply. */ | |
7381 | char GC_gcollect (); | |
7382 | int | |
7383 | main () | |
7384 | { | |
7385 | GC_gcollect (); | |
7386 | ; | |
7387 | return 0; | |
7388 | } | |
7389 | _ACEOF | |
7390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7392 | (eval $ac_link) 2>conftest.er1 | |
7393 | ac_status=$? | |
7394 | grep -v '^ *+' conftest.er1 >conftest.err | |
7395 | rm -f conftest.er1 | |
7396 | cat conftest.err >&5 | |
7397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7398 | (exit $ac_status); } && | |
7399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7401 | (eval $ac_try) 2>&5 | |
7402 | ac_status=$? | |
7403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7404 | (exit $ac_status); }; } && | |
7405 | { ac_try='test -s conftest$ac_exeext' | |
7406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7407 | (eval $ac_try) 2>&5 | |
7408 | ac_status=$? | |
7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7410 | (exit $ac_status); }; }; then | |
7411 | ac_cv_lib_gc_GC_gcollect=yes | |
7412 | else | |
7413 | echo "$as_me: failed program was:" >&5 | |
7414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7415 | ||
7416 | ac_cv_lib_gc_GC_gcollect=no | |
7417 | fi | |
7418 | rm -f conftest.err conftest.$ac_objext \ | |
7419 | conftest$ac_exeext conftest.$ac_ext | |
7420 | LIBS=$ac_check_lib_save_LIBS | |
7421 | fi | |
7422 | echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5 | |
7423 | echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6 | |
7424 | if test $ac_cv_lib_gc_GC_gcollect = yes; then | |
7425 | cat >>confdefs.h <<_ACEOF | |
7426 | #define HAVE_LIBGC 1 | |
7427 | _ACEOF | |
7428 | ||
7429 | LIBS="-lgc $LIBS" | |
7430 | ||
7431 | else | |
7432 | { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5 | |
7433 | echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;} | |
7434 | { (exit 1); exit 1; }; } | |
7435 | fi | |
7436 | ||
7437 | ||
7438 | cat >>confdefs.h <<\_ACEOF | |
7439 | #define WITH_MALLOC_BOEHM_GC 1 | |
7440 | _ACEOF | |
7441 | ||
7442 | else | |
7443 | { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5 | |
7444 | echo "$as_me: error: Unknown malloc type $withval" >&2;} | |
7445 | { (exit 1); exit 1; }; } | |
7446 | fi | |
7447 | ||
7448 | echo "$as_me:$LINENO: checking which protocol to use" >&5 | |
7449 | echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6 | |
7450 | ||
7451 | # Check whether --with-protocol or --without-protocol was given. | |
7452 | if test "${with_protocol+set}" = set; then | |
7453 | withval="$with_protocol" | |
7454 | ||
7455 | else | |
7456 | withval="p10" | |
7457 | fi; | |
7458 | if test "x$withval" = "xp10" ; then | |
7459 | echo "$as_me:$LINENO: result: P10" >&5 | |
7460 | echo "${ECHO_T}P10" >&6 | |
7461 | ||
7462 | cat >>confdefs.h <<\_ACEOF | |
7463 | #define WITH_PROTOCOL_P10 1 | |
7464 | _ACEOF | |
7465 | ||
b2cf3d66 | 7466 | MODULE_OBJS="$MODULE_OBJS proto-p10.o" |
b3076f16 AS |
7467 | PROTO_FILES=proto-p10.c |
7468 | elif test "x$withval" = "xbahamut" ; then | |
7469 | echo "$as_me:$LINENO: result: Bahamut" >&5 | |
7470 | echo "${ECHO_T}Bahamut" >&6 | |
7471 | ||
7472 | cat >>confdefs.h <<\_ACEOF | |
7473 | #define WITH_PROTOCOL_BAHAMUT 1 | |
7474 | _ACEOF | |
7475 | ||
7476 | MODULE_OBJS="$MODULE_OBJS proto-bahamut.\$(OBJEXT)" | |
7477 | else | |
7478 | { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5 | |
7479 | echo "$as_me: error: Unknown IRC dialect $withval" >&2;} | |
7480 | { (exit 1); exit 1; }; } | |
7481 | fi | |
7482 | ||
7483 | ||
7484 | # Check whether --with-getopt or --without-getopt was given. | |
7485 | if test "${with_getopt+set}" = set; then | |
7486 | withval="$with_getopt" | |
7487 | if test "$withval" = no; then | |
7488 | ||
7489 | cat >>confdefs.h <<\_ACEOF | |
7490 | #define IGNORE_GETOPT 1 | |
7491 | _ACEOF | |
7492 | ||
7493 | fi | |
7494 | fi; | |
7495 | ||
7496 | echo "$as_me:$LINENO: checking whether to enable tokenization" >&5 | |
7497 | echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6 | |
7498 | # Check whether --enable-tokens or --disable-tokens was given. | |
7499 | if test "${enable_tokens+set}" = set; then | |
7500 | enableval="$enable_tokens" | |
7501 | ||
7502 | else | |
7503 | enableval=yes | |
7504 | fi; | |
7505 | if test "z$enableval" = zno ; then | |
7506 | echo "$as_me:$LINENO: result: no" >&5 | |
7507 | echo "${ECHO_T}no" >&6 | |
7508 | else | |
7509 | ||
7510 | cat >>confdefs.h <<\_ACEOF | |
7511 | #define ENABLE_TOKENS 1 | |
7512 | _ACEOF | |
7513 | ||
7514 | echo "$as_me:$LINENO: result: yes" >&5 | |
7515 | echo "${ECHO_T}yes" >&6 | |
7516 | fi | |
7517 | ||
7518 | echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5 | |
7519 | echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6 | |
7520 | # Check whether --enable-debug or --disable-debug was given. | |
7521 | if test "${enable_debug+set}" = set; then | |
7522 | enableval="$enable_debug" | |
7523 | ||
7524 | CPPFLAGS="$CPPFLAGS" | |
7525 | echo "$as_me:$LINENO: result: yes" >&5 | |
7526 | echo "${ECHO_T}yes" >&6 | |
7527 | ||
7528 | else | |
7529 | ||
7530 | CPPFLAGS="$CPPFLAGS -DNDEBUG" | |
7531 | echo "$as_me:$LINENO: result: no" >&5 | |
7532 | echo "${ECHO_T}no" >&6 | |
7533 | ||
7534 | fi; | |
7535 | ||
7536 | if test -e src ; then | |
7537 | if test ! -d src ; then | |
7538 | { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5 | |
7539 | echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;} | |
7540 | { (exit 1); exit 1; }; } | |
7541 | fi | |
7542 | else | |
7543 | mkdir src | |
7544 | fi | |
7545 | echo "$as_me:$LINENO: checking for extra module files" >&5 | |
7546 | echo $ECHO_N "checking for extra module files... $ECHO_C" >&6 | |
7547 | MODULE_DEFINES="src/modules-list.h" | |
7548 | echo > $MODULE_DEFINES | |
7549 | touch $MODULE_DEFINES | |
7550 | # Check whether --enable-modules or --disable-modules was given. | |
7551 | if test "${enable_modules+set}" = set; then | |
7552 | enableval="$enable_modules" | |
7553 | ||
7554 | OIFS="$IFS" | |
7555 | IFS=',' | |
7556 | EXTRA_MODULE_OBJS="" | |
7557 | module_list="" | |
7558 | for module in $enableval ; do | |
7559 | module=`echo $module | sed -e s/^mod-// -e s/\.c\$//` | |
7560 | EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)" | |
7561 | module_list="$module_list $module" | |
7562 | echo "WITH_MODULE($module)" >> $MODULE_DEFINES | |
7563 | done | |
7564 | IFS="$OIFS" | |
7565 | MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS" | |
7566 | echo "$as_me:$LINENO: result: $module_list" >&5 | |
7567 | echo "${ECHO_T}$module_list" >&6 | |
7568 | ||
7569 | else | |
7570 | ||
7571 | echo "$as_me:$LINENO: result: none" >&5 | |
7572 | echo "${ECHO_T}none" >&6 | |
7573 | ||
7574 | fi; | |
7575 | ||
7576 | MY_SUBDIRS="" | |
7577 | RX_INCLUDES="" | |
7578 | RX_LIBS="" | |
7579 | if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then | |
7580 | MY_SUBDIRS="rx $MY_SUBDIRS" | |
7581 | RX_INCLUDES="-I../rx" | |
7582 | RX_LIBS="../rx/librx.a" | |
7583 | fi | |
7584 | MY_SUBDIRS="$MY_SUBDIRS src" | |
7585 | CFLAGS="$CFLAGS $ANSI_SRC -W -Wall" | |
7586 | if test "z$USE_MAINTAINER_MODE" = zyes ; then | |
7587 | CFLAGS="$CFLAGS -Werror" | |
7588 | fi | |
7589 | ||
7590 | ||
7591 | cat >>confdefs.h <<_ACEOF | |
7592 | #define CODENAME "${CODENAME}" | |
7593 | _ACEOF | |
7594 | ||
7595 | ||
7596 | ||
7597 | ||
7598 | ||
7599 | ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile" | |
7600 | ||
7601 | cat >confcache <<\_ACEOF | |
7602 | # This file is a shell script that caches the results of configure | |
7603 | # tests run on this system so they can be shared between configure | |
7604 | # scripts and configure runs, see configure's option --config-cache. | |
7605 | # It is not useful on other systems. If it contains results you don't | |
7606 | # want to keep, you may remove or edit it. | |
7607 | # | |
7608 | # config.status only pays attention to the cache file if you give it | |
7609 | # the --recheck option to rerun configure. | |
7610 | # | |
7611 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7612 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7613 | # following values. | |
7614 | ||
7615 | _ACEOF | |
7616 | ||
7617 | # The following way of writing the cache mishandles newlines in values, | |
7618 | # but we know of no workaround that is simple, portable, and efficient. | |
7619 | # So, don't put newlines in cache variables' values. | |
7620 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7621 | # and sets the high bit in the cache file unless we assign to the vars. | |
7622 | { | |
7623 | (set) 2>&1 | | |
7624 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7625 | *ac_space=\ *) | |
7626 | # `set' does not quote correctly, so add quotes (double-quote | |
7627 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7628 | sed -n \ | |
7629 | "s/'/'\\\\''/g; | |
7630 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7631 | ;; | |
7632 | *) | |
7633 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7634 | sed -n \ | |
7635 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7636 | ;; | |
7637 | esac; | |
7638 | } | | |
7639 | sed ' | |
7640 | t clear | |
7641 | : clear | |
7642 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7643 | t end | |
7644 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7645 | : end' >>confcache | |
7646 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
7647 | if test -w $cache_file; then | |
7648 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
7649 | cat confcache >$cache_file | |
7650 | else | |
7651 | echo "not updating unwritable cache $cache_file" | |
7652 | fi | |
7653 | fi | |
7654 | rm -f confcache | |
7655 | ||
7656 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7657 | # Let make expand exec_prefix. | |
7658 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7659 | ||
7660 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7661 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7662 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7663 | # (actually we leave an empty line to preserve line numbers). | |
7664 | if test "x$srcdir" = x.; then | |
7665 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7666 | s/:*\$(srcdir):*/:/; | |
7667 | s/:*\${srcdir}:*/:/; | |
7668 | s/:*@srcdir@:*/:/; | |
7669 | s/^\([^=]*=[ ]*\):*/\1/; | |
7670 | s/:*$//; | |
7671 | s/^[^=]*=[ ]*$//; | |
7672 | }' | |
7673 | fi | |
7674 | ||
7675 | DEFS=-DHAVE_CONFIG_H | |
7676 | ||
7677 | ac_libobjs= | |
7678 | ac_ltlibobjs= | |
7679 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7680 | # 1. Remove the extension, and $U if already installed. | |
7681 | ac_i=`echo "$ac_i" | | |
7682 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
7683 | # 2. Add them. | |
7684 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7685 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7686 | done | |
7687 | LIBOBJS=$ac_libobjs | |
7688 | ||
7689 | LTLIBOBJS=$ac_ltlibobjs | |
7690 | ||
7691 | ||
b3076f16 AS |
7692 | |
7693 | : ${CONFIG_STATUS=./config.status} | |
7694 | ac_clean_files_save=$ac_clean_files | |
7695 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7696 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7697 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7698 | cat >$CONFIG_STATUS <<_ACEOF | |
7699 | #! $SHELL | |
7700 | # Generated by $as_me. | |
7701 | # Run this file to recreate the current configuration. | |
7702 | # Compiler output produced by configure, useful for debugging | |
7703 | # configure, is in config.log if it exists. | |
7704 | ||
7705 | debug=false | |
7706 | ac_cs_recheck=false | |
7707 | ac_cs_silent=false | |
7708 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7709 | _ACEOF | |
7710 | ||
7711 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7712 | ## --------------------- ## | |
7713 | ## M4sh Initialization. ## | |
7714 | ## --------------------- ## | |
7715 | ||
7716 | # Be Bourne compatible | |
7717 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7718 | emulate sh | |
7719 | NULLCMD=: | |
7720 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
7721 | # is contrary to our usage. Disable this feature. | |
7722 | alias -g '${1+"$@"}'='"$@"' | |
7723 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7724 | set -o posix | |
7725 | fi | |
7726 | DUALCASE=1; export DUALCASE # for MKS sh | |
7727 | ||
7728 | # Support unset when possible. | |
7729 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7730 | as_unset=unset | |
7731 | else | |
7732 | as_unset=false | |
7733 | fi | |
7734 | ||
7735 | ||
7736 | # Work around bugs in pre-3.0 UWIN ksh. | |
7737 | $as_unset ENV MAIL MAILPATH | |
7738 | PS1='$ ' | |
7739 | PS2='> ' | |
7740 | PS4='+ ' | |
7741 | ||
7742 | # NLS nuisances. | |
7743 | for as_var in \ | |
7744 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7745 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7746 | LC_TELEPHONE LC_TIME | |
7747 | do | |
7748 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
7749 | eval $as_var=C; export $as_var | |
7750 | else | |
7751 | $as_unset $as_var | |
7752 | fi | |
7753 | done | |
7754 | ||
7755 | # Required to use basename. | |
7756 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7757 | as_expr=expr | |
7758 | else | |
7759 | as_expr=false | |
7760 | fi | |
7761 | ||
7762 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7763 | as_basename=basename | |
7764 | else | |
7765 | as_basename=false | |
7766 | fi | |
7767 | ||
7768 | ||
7769 | # Name of the executable. | |
7770 | as_me=`$as_basename "$0" || | |
7771 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7772 | X"$0" : 'X\(//\)$' \| \ | |
7773 | X"$0" : 'X\(/\)$' \| \ | |
7774 | . : '\(.\)' 2>/dev/null || | |
7775 | echo X/"$0" | | |
7776 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7777 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7778 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7779 | s/.*/./; q'` | |
7780 | ||
7781 | ||
7782 | # PATH needs CR, and LINENO needs CR and PATH. | |
7783 | # Avoid depending upon Character Ranges. | |
7784 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7785 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7786 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7787 | as_cr_digits='0123456789' | |
7788 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7789 | ||
7790 | # The user is always right. | |
7791 | if test "${PATH_SEPARATOR+set}" != set; then | |
7792 | echo "#! /bin/sh" >conf$$.sh | |
7793 | echo "exit 0" >>conf$$.sh | |
7794 | chmod +x conf$$.sh | |
7795 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7796 | PATH_SEPARATOR=';' | |
7797 | else | |
7798 | PATH_SEPARATOR=: | |
7799 | fi | |
7800 | rm -f conf$$.sh | |
7801 | fi | |
7802 | ||
7803 | ||
7804 | as_lineno_1=$LINENO | |
7805 | as_lineno_2=$LINENO | |
7806 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7807 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7808 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7809 | # Find who we are. Look in the path if we contain no path at all | |
7810 | # relative or not. | |
7811 | case $0 in | |
7812 | *[\\/]* ) as_myself=$0 ;; | |
7813 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7814 | for as_dir in $PATH | |
7815 | do | |
7816 | IFS=$as_save_IFS | |
7817 | test -z "$as_dir" && as_dir=. | |
7818 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7819 | done | |
7820 | ||
7821 | ;; | |
7822 | esac | |
7823 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7824 | # in which case we are not to be found in the path. | |
7825 | if test "x$as_myself" = x; then | |
7826 | as_myself=$0 | |
7827 | fi | |
7828 | if test ! -f "$as_myself"; then | |
7829 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7830 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7831 | { (exit 1); exit 1; }; } | |
7832 | fi | |
7833 | case $CONFIG_SHELL in | |
7834 | '') | |
7835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7836 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7837 | do | |
7838 | IFS=$as_save_IFS | |
7839 | test -z "$as_dir" && as_dir=. | |
7840 | for as_base in sh bash ksh sh5; do | |
7841 | case $as_dir in | |
7842 | /*) | |
7843 | if ("$as_dir/$as_base" -c ' | |
7844 | as_lineno_1=$LINENO | |
7845 | as_lineno_2=$LINENO | |
7846 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7847 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7848 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7849 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7850 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7851 | CONFIG_SHELL=$as_dir/$as_base | |
7852 | export CONFIG_SHELL | |
7853 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7854 | fi;; | |
7855 | esac | |
7856 | done | |
7857 | done | |
7858 | ;; | |
7859 | esac | |
7860 | ||
7861 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7862 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7863 | # line-number line before each line; the second 'sed' does the real | |
7864 | # work. The second script uses 'N' to pair each line-number line | |
7865 | # with the numbered line, and appends trailing '-' during | |
7866 | # substitution so that $LINENO is not a special case at line end. | |
7867 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7868 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7869 | sed '=' <$as_myself | | |
7870 | sed ' | |
7871 | N | |
7872 | s,$,-, | |
7873 | : loop | |
7874 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7875 | t loop | |
7876 | s,-$,, | |
7877 | s,^['$as_cr_digits']*\n,, | |
7878 | ' >$as_me.lineno && | |
7879 | chmod +x $as_me.lineno || | |
7880 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7881 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7882 | { (exit 1); exit 1; }; } | |
7883 | ||
7884 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7885 | # (the dirname of $[0] is not the place where we might find the | |
7886 | # original and so on. Autoconf is especially sensible to this). | |
7887 | . ./$as_me.lineno | |
7888 | # Exit status is that of the last command. | |
7889 | exit | |
7890 | } | |
7891 | ||
7892 | ||
7893 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7894 | *c*,-n*) ECHO_N= ECHO_C=' | |
7895 | ' ECHO_T=' ' ;; | |
7896 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7897 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7898 | esac | |
7899 | ||
7900 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7901 | as_expr=expr | |
7902 | else | |
7903 | as_expr=false | |
7904 | fi | |
7905 | ||
7906 | rm -f conf$$ conf$$.exe conf$$.file | |
7907 | echo >conf$$.file | |
7908 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7909 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7910 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7911 | if test -f conf$$.exe; then | |
7912 | # Don't use ln at all; we don't have any links | |
7913 | as_ln_s='cp -p' | |
7914 | else | |
7915 | as_ln_s='ln -s' | |
7916 | fi | |
7917 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7918 | as_ln_s=ln | |
7919 | else | |
7920 | as_ln_s='cp -p' | |
7921 | fi | |
7922 | rm -f conf$$ conf$$.exe conf$$.file | |
7923 | ||
7924 | if mkdir -p . 2>/dev/null; then | |
7925 | as_mkdir_p=: | |
7926 | else | |
7927 | test -d ./-p && rmdir ./-p | |
7928 | as_mkdir_p=false | |
7929 | fi | |
7930 | ||
7931 | as_executable_p="test -f" | |
7932 | ||
7933 | # Sed expression to map a string onto a valid CPP name. | |
7934 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7935 | ||
7936 | # Sed expression to map a string onto a valid variable name. | |
7937 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7938 | ||
7939 | ||
7940 | # IFS | |
7941 | # We need space, tab and new line, in precisely that order. | |
7942 | as_nl=' | |
7943 | ' | |
7944 | IFS=" $as_nl" | |
7945 | ||
7946 | # CDPATH. | |
7947 | $as_unset CDPATH | |
7948 | ||
7949 | exec 6>&1 | |
7950 | ||
7951 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
7952 | # report actual input values of CONFIG_FILES etc. instead of their | |
7953 | # values after options handling. Logging --version etc. is OK. | |
7954 | exec 5>>config.log | |
7955 | { | |
7956 | echo | |
7957 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7958 | ## Running $as_me. ## | |
7959 | _ASBOX | |
7960 | } >&5 | |
7961 | cat >&5 <<_CSEOF | |
7962 | ||
7963 | This file was extended by srvx $as_me 1.3, which was | |
7964 | generated by GNU Autoconf 2.59. Invocation command line was | |
7965 | ||
7966 | CONFIG_FILES = $CONFIG_FILES | |
7967 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7968 | CONFIG_LINKS = $CONFIG_LINKS | |
7969 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7970 | $ $0 $@ | |
7971 | ||
7972 | _CSEOF | |
7973 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7974 | echo >&5 | |
7975 | _ACEOF | |
7976 | ||
7977 | # Files that config.status was made for. | |
7978 | if test -n "$ac_config_files"; then | |
7979 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7980 | fi | |
7981 | ||
7982 | if test -n "$ac_config_headers"; then | |
7983 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7984 | fi | |
7985 | ||
7986 | if test -n "$ac_config_links"; then | |
7987 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7988 | fi | |
7989 | ||
7990 | if test -n "$ac_config_commands"; then | |
7991 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7992 | fi | |
7993 | ||
7994 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7995 | ||
7996 | ac_cs_usage="\ | |
7997 | \`$as_me' instantiates files from templates according to the | |
7998 | current configuration. | |
7999 | ||
8000 | Usage: $0 [OPTIONS] [FILE]... | |
8001 | ||
8002 | -h, --help print this help, then exit | |
8003 | -V, --version print version number, then exit | |
8004 | -q, --quiet do not print progress messages | |
8005 | -d, --debug don't remove temporary files | |
8006 | --recheck update $as_me by reconfiguring in the same conditions | |
8007 | --file=FILE[:TEMPLATE] | |
8008 | instantiate the configuration file FILE | |
8009 | --header=FILE[:TEMPLATE] | |
8010 | instantiate the configuration header FILE | |
8011 | ||
8012 | Configuration files: | |
8013 | $config_files | |
8014 | ||
8015 | Configuration headers: | |
8016 | $config_headers | |
8017 | ||
b3076f16 AS |
8018 | Report bugs to <bug-autoconf@gnu.org>." |
8019 | _ACEOF | |
8020 | ||
8021 | cat >>$CONFIG_STATUS <<_ACEOF | |
8022 | ac_cs_version="\\ | |
8023 | srvx config.status 1.3 | |
8024 | configured by $0, generated by GNU Autoconf 2.59, | |
8025 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8026 | ||
8027 | Copyright (C) 2003 Free Software Foundation, Inc. | |
8028 | This config.status script is free software; the Free Software Foundation | |
8029 | gives unlimited permission to copy, distribute and modify it." | |
8030 | srcdir=$srcdir | |
8031 | INSTALL="$INSTALL" | |
8032 | _ACEOF | |
8033 | ||
8034 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8035 | # If no file are specified by the user, then we need to provide default | |
8036 | # value. By we need to know if files were specified by the user. | |
8037 | ac_need_defaults=: | |
8038 | while test $# != 0 | |
8039 | do | |
8040 | case $1 in | |
8041 | --*=*) | |
8042 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8043 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8044 | ac_shift=: | |
8045 | ;; | |
8046 | -*) | |
8047 | ac_option=$1 | |
8048 | ac_optarg=$2 | |
8049 | ac_shift=shift | |
8050 | ;; | |
8051 | *) # This is not an option, so the user has probably given explicit | |
8052 | # arguments. | |
8053 | ac_option=$1 | |
8054 | ac_need_defaults=false;; | |
8055 | esac | |
8056 | ||
8057 | case $ac_option in | |
8058 | # Handling of the options. | |
8059 | _ACEOF | |
8060 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8061 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8062 | ac_cs_recheck=: ;; | |
8063 | --version | --vers* | -V ) | |
8064 | echo "$ac_cs_version"; exit 0 ;; | |
8065 | --he | --h) | |
8066 | # Conflict between --help and --header | |
8067 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8068 | Try \`$0 --help' for more information." >&5 | |
8069 | echo "$as_me: error: ambiguous option: $1 | |
8070 | Try \`$0 --help' for more information." >&2;} | |
8071 | { (exit 1); exit 1; }; };; | |
8072 | --help | --hel | -h ) | |
8073 | echo "$ac_cs_usage"; exit 0 ;; | |
8074 | --debug | --d* | -d ) | |
8075 | debug=: ;; | |
8076 | --file | --fil | --fi | --f ) | |
8077 | $ac_shift | |
8078 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8079 | ac_need_defaults=false;; | |
8080 | --header | --heade | --head | --hea ) | |
8081 | $ac_shift | |
8082 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8083 | ac_need_defaults=false;; | |
8084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8085 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8086 | ac_cs_silent=: ;; | |
8087 | ||
8088 | # This is an error. | |
8089 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8090 | Try \`$0 --help' for more information." >&5 | |
8091 | echo "$as_me: error: unrecognized option: $1 | |
8092 | Try \`$0 --help' for more information." >&2;} | |
8093 | { (exit 1); exit 1; }; } ;; | |
8094 | ||
8095 | *) ac_config_targets="$ac_config_targets $1" ;; | |
8096 | ||
8097 | esac | |
8098 | shift | |
8099 | done | |
8100 | ||
8101 | ac_configure_extra_args= | |
8102 | ||
8103 | if $ac_cs_silent; then | |
8104 | exec 6>/dev/null | |
8105 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8106 | fi | |
8107 | ||
8108 | _ACEOF | |
8109 | cat >>$CONFIG_STATUS <<_ACEOF | |
8110 | if \$ac_cs_recheck; then | |
8111 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
8112 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
8113 | fi | |
8114 | ||
8115 | _ACEOF | |
8116 | ||
b3076f16 | 8117 | |
b3076f16 AS |
8118 | |
8119 | ||
8120 | ||
8121 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8122 | for ac_config_target in $ac_config_targets | |
8123 | do | |
8124 | case "$ac_config_target" in | |
8125 | # Handling of arguments. | |
8126 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8127 | "rx/Makefile" ) CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;; | |
8128 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
b3076f16 AS |
8129 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
8130 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
8131 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8132 | { (exit 1); exit 1; }; };; | |
8133 | esac | |
8134 | done | |
8135 | ||
8136 | # If the user did not use the arguments to specify the items to instantiate, | |
8137 | # then the envvar interface is used. Set only those that are not. | |
8138 | # We use the long form for the default assignment because of an extremely | |
8139 | # bizarre bug on SunOS 4.1.3. | |
8140 | if $ac_need_defaults; then | |
8141 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8142 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
b3076f16 AS |
8143 | fi |
8144 | ||
8145 | # Have a temporary directory for convenience. Make it in the build tree | |
8146 | # simply because there is no reason to put it here, and in addition, | |
8147 | # creating and moving files from /tmp can sometimes cause problems. | |
8148 | # Create a temporary directory, and hook for its removal unless debugging. | |
8149 | $debug || | |
8150 | { | |
8151 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8152 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
8153 | } | |
8154 | ||
8155 | # Create a (secure) tmp directory for tmp files. | |
8156 | ||
8157 | { | |
8158 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
8159 | test -n "$tmp" && test -d "$tmp" | |
8160 | } || | |
8161 | { | |
8162 | tmp=./confstat$$-$RANDOM | |
8163 | (umask 077 && mkdir $tmp) | |
8164 | } || | |
8165 | { | |
8166 | echo "$me: cannot create a temporary directory in ." >&2 | |
8167 | { (exit 1); exit 1; } | |
8168 | } | |
8169 | ||
8170 | _ACEOF | |
8171 | ||
8172 | cat >>$CONFIG_STATUS <<_ACEOF | |
8173 | ||
8174 | # | |
8175 | # CONFIG_FILES section. | |
8176 | # | |
8177 | ||
8178 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8179 | # This happens for instance when ./config.status config.h | |
8180 | if test -n "\$CONFIG_FILES"; then | |
8181 | # Protect against being on the right side of a sed subst in config.status. | |
8182 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8183 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8184 | s,@SHELL@,$SHELL,;t t | |
8185 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8186 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8187 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8188 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8189 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8190 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8191 | s,@exec_prefix@,$exec_prefix,;t t | |
8192 | s,@prefix@,$prefix,;t t | |
8193 | s,@program_transform_name@,$program_transform_name,;t t | |
8194 | s,@bindir@,$bindir,;t t | |
8195 | s,@sbindir@,$sbindir,;t t | |
8196 | s,@libexecdir@,$libexecdir,;t t | |
8197 | s,@datadir@,$datadir,;t t | |
8198 | s,@sysconfdir@,$sysconfdir,;t t | |
8199 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8200 | s,@localstatedir@,$localstatedir,;t t | |
8201 | s,@libdir@,$libdir,;t t | |
8202 | s,@includedir@,$includedir,;t t | |
8203 | s,@oldincludedir@,$oldincludedir,;t t | |
8204 | s,@infodir@,$infodir,;t t | |
8205 | s,@mandir@,$mandir,;t t | |
8206 | s,@build_alias@,$build_alias,;t t | |
8207 | s,@host_alias@,$host_alias,;t t | |
8208 | s,@target_alias@,$target_alias,;t t | |
8209 | s,@DEFS@,$DEFS,;t t | |
8210 | s,@ECHO_C@,$ECHO_C,;t t | |
8211 | s,@ECHO_N@,$ECHO_N,;t t | |
8212 | s,@ECHO_T@,$ECHO_T,;t t | |
8213 | s,@LIBS@,$LIBS,;t t | |
8214 | s,@build@,$build,;t t | |
8215 | s,@build_cpu@,$build_cpu,;t t | |
8216 | s,@build_vendor@,$build_vendor,;t t | |
8217 | s,@build_os@,$build_os,;t t | |
8218 | s,@host@,$host,;t t | |
8219 | s,@host_cpu@,$host_cpu,;t t | |
8220 | s,@host_vendor@,$host_vendor,;t t | |
8221 | s,@host_os@,$host_os,;t t | |
8222 | s,@target@,$target,;t t | |
8223 | s,@target_cpu@,$target_cpu,;t t | |
8224 | s,@target_vendor@,$target_vendor,;t t | |
8225 | s,@target_os@,$target_os,;t t | |
8226 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8227 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8228 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
b3076f16 AS |
8229 | s,@PACKAGE@,$PACKAGE,;t t |
8230 | s,@VERSION@,$VERSION,;t t | |
8231 | s,@ACLOCAL@,$ACLOCAL,;t t | |
8232 | s,@AUTOCONF@,$AUTOCONF,;t t | |
8233 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
8234 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
8235 | s,@MAKEINFO@,$MAKEINFO,;t t | |
b3076f16 | 8236 | s,@SET_MAKE@,$SET_MAKE,;t t |
b3076f16 AS |
8237 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
8238 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
8239 | s,@MAINT@,$MAINT,;t t | |
8240 | s,@CC@,$CC,;t t | |
8241 | s,@CFLAGS@,$CFLAGS,;t t | |
8242 | s,@LDFLAGS@,$LDFLAGS,;t t | |
8243 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
8244 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
8245 | s,@EXEEXT@,$EXEEXT,;t t | |
8246 | s,@OBJEXT@,$OBJEXT,;t t | |
b2cf3d66 | 8247 | s,@AWK@,$AWK,;t t |
b3076f16 AS |
8248 | s,@RANLIB@,$RANLIB,;t t |
8249 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8250 | s,@LN_S@,$LN_S,;t t | |
8251 | s,@CPP@,$CPP,;t t | |
8252 | s,@EGREP@,$EGREP,;t t | |
8253 | s,@ALLOCA@,$ALLOCA,;t t | |
8254 | s,@MODULE_OBJS@,$MODULE_OBJS,;t t | |
8255 | s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t | |
8256 | s,@RX_INCLUDES@,$RX_INCLUDES,;t t | |
8257 | s,@RX_LIBS@,$RX_LIBS,;t t | |
8258 | s,@LIBOBJS@,$LIBOBJS,;t t | |
8259 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
8260 | CEOF | |
8261 | ||
8262 | _ACEOF | |
8263 | ||
8264 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8265 | # Split the substitutions into bite-sized pieces for seds with | |
8266 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8267 | ac_max_sed_lines=48 | |
8268 | ac_sed_frag=1 # Number of current file. | |
8269 | ac_beg=1 # First line for current file. | |
8270 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8271 | ac_more_lines=: | |
8272 | ac_sed_cmds= | |
8273 | while $ac_more_lines; do | |
8274 | if test $ac_beg -gt 1; then | |
8275 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8276 | else | |
8277 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8278 | fi | |
8279 | if test ! -s $tmp/subs.frag; then | |
8280 | ac_more_lines=false | |
8281 | else | |
8282 | # The purpose of the label and of the branching condition is to | |
8283 | # speed up the sed processing (if there are no `@' at all, there | |
8284 | # is no need to browse any of the substitutions). | |
8285 | # These are the two extra sed commands mentioned above. | |
8286 | (echo ':t | |
8287 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8288 | if test -z "$ac_sed_cmds"; then | |
8289 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8290 | else | |
8291 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8292 | fi | |
8293 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8294 | ac_beg=$ac_end | |
8295 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
8296 | fi | |
8297 | done | |
8298 | if test -z "$ac_sed_cmds"; then | |
8299 | ac_sed_cmds=cat | |
8300 | fi | |
8301 | fi # test -n "$CONFIG_FILES" | |
8302 | ||
8303 | _ACEOF | |
8304 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8305 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
8306 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8307 | case $ac_file in | |
8308 | - | *:- | *:-:* ) # input from stdin | |
8309 | cat >$tmp/stdin | |
8310 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8311 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8312 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8313 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8314 | * ) ac_file_in=$ac_file.in ;; | |
8315 | esac | |
8316 | ||
8317 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
8318 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8319 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8320 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8321 | X"$ac_file" : 'X\(//\)$' \| \ | |
8322 | X"$ac_file" : 'X\(/\)' \| \ | |
8323 | . : '\(.\)' 2>/dev/null || | |
8324 | echo X"$ac_file" | | |
8325 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8326 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8327 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8328 | /^X\(\/\).*/{ s//\1/; q; } | |
8329 | s/.*/./; q'` | |
8330 | { if $as_mkdir_p; then | |
8331 | mkdir -p "$ac_dir" | |
8332 | else | |
8333 | as_dir="$ac_dir" | |
8334 | as_dirs= | |
8335 | while test ! -d "$as_dir"; do | |
8336 | as_dirs="$as_dir $as_dirs" | |
8337 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8340 | X"$as_dir" : 'X\(//\)$' \| \ | |
8341 | X"$as_dir" : 'X\(/\)' \| \ | |
8342 | . : '\(.\)' 2>/dev/null || | |
8343 | echo X"$as_dir" | | |
8344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8345 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8346 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8347 | /^X\(\/\).*/{ s//\1/; q; } | |
8348 | s/.*/./; q'` | |
8349 | done | |
8350 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8351 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8352 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8353 | { (exit 1); exit 1; }; }; } | |
8354 | ||
8355 | ac_builddir=. | |
8356 | ||
8357 | if test "$ac_dir" != .; then | |
8358 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8359 | # A "../" for each directory in $ac_dir_suffix. | |
8360 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8361 | else | |
8362 | ac_dir_suffix= ac_top_builddir= | |
8363 | fi | |
8364 | ||
8365 | case $srcdir in | |
8366 | .) # No --srcdir option. We are building in place. | |
8367 | ac_srcdir=. | |
8368 | if test -z "$ac_top_builddir"; then | |
8369 | ac_top_srcdir=. | |
8370 | else | |
8371 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8372 | fi ;; | |
8373 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8374 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8375 | ac_top_srcdir=$srcdir ;; | |
8376 | *) # Relative path. | |
8377 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8378 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8379 | esac | |
8380 | ||
8381 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8382 | # the directories may not exist. | |
8383 | case `pwd` in | |
8384 | .) ac_abs_builddir="$ac_dir";; | |
8385 | *) | |
8386 | case "$ac_dir" in | |
8387 | .) ac_abs_builddir=`pwd`;; | |
8388 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8389 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8390 | esac;; | |
8391 | esac | |
8392 | case $ac_abs_builddir in | |
8393 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8394 | *) | |
8395 | case ${ac_top_builddir}. in | |
8396 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8397 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8398 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8399 | esac;; | |
8400 | esac | |
8401 | case $ac_abs_builddir in | |
8402 | .) ac_abs_srcdir=$ac_srcdir;; | |
8403 | *) | |
8404 | case $ac_srcdir in | |
8405 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8406 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8407 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8408 | esac;; | |
8409 | esac | |
8410 | case $ac_abs_builddir in | |
8411 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8412 | *) | |
8413 | case $ac_top_srcdir in | |
8414 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8415 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8416 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8417 | esac;; | |
8418 | esac | |
8419 | ||
8420 | ||
8421 | case $INSTALL in | |
8422 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8423 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
8424 | esac | |
8425 | ||
8426 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8427 | # use $as_me), people would be surprised to read: | |
8428 | # /* config.h. Generated by config.status. */ | |
8429 | if test x"$ac_file" = x-; then | |
8430 | configure_input= | |
8431 | else | |
8432 | configure_input="$ac_file. " | |
8433 | fi | |
8434 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8435 | sed 's,.*/,,'` by configure." | |
8436 | ||
8437 | # First look for the input files in the build tree, otherwise in the | |
8438 | # src tree. | |
8439 | ac_file_inputs=`IFS=: | |
8440 | for f in $ac_file_in; do | |
8441 | case $f in | |
8442 | -) echo $tmp/stdin ;; | |
8443 | [\\/$]*) | |
8444 | # Absolute (can't be DOS-style, as IFS=:) | |
8445 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8446 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8447 | { (exit 1); exit 1; }; } | |
8448 | echo "$f";; | |
8449 | *) # Relative | |
8450 | if test -f "$f"; then | |
8451 | # Build tree | |
8452 | echo "$f" | |
8453 | elif test -f "$srcdir/$f"; then | |
8454 | # Source tree | |
8455 | echo "$srcdir/$f" | |
8456 | else | |
8457 | # /dev/null tree | |
8458 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8459 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8460 | { (exit 1); exit 1; }; } | |
8461 | fi;; | |
8462 | esac | |
8463 | done` || { (exit 1); exit 1; } | |
8464 | ||
8465 | if test x"$ac_file" != x-; then | |
8466 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8467 | echo "$as_me: creating $ac_file" >&6;} | |
8468 | rm -f "$ac_file" | |
8469 | fi | |
8470 | _ACEOF | |
8471 | cat >>$CONFIG_STATUS <<_ACEOF | |
8472 | sed "$ac_vpsub | |
8473 | $extrasub | |
8474 | _ACEOF | |
8475 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8476 | :t | |
8477 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8478 | s,@configure_input@,$configure_input,;t t | |
8479 | s,@srcdir@,$ac_srcdir,;t t | |
8480 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8481 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8482 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8483 | s,@builddir@,$ac_builddir,;t t | |
8484 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8485 | s,@top_builddir@,$ac_top_builddir,;t t | |
8486 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8487 | s,@INSTALL@,$ac_INSTALL,;t t | |
8488 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8489 | rm -f $tmp/stdin | |
8490 | if test x"$ac_file" != x-; then | |
8491 | mv $tmp/out $ac_file | |
8492 | else | |
8493 | cat $tmp/out | |
8494 | rm -f $tmp/out | |
8495 | fi | |
8496 | ||
8497 | done | |
8498 | _ACEOF | |
8499 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8500 | ||
8501 | # | |
8502 | # CONFIG_HEADER section. | |
8503 | # | |
8504 | ||
8505 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8506 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8507 | # | |
8508 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8509 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8510 | ac_dB='[ ].*$,\1#\2' | |
8511 | ac_dC=' ' | |
8512 | ac_dD=',;t' | |
8513 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8514 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8515 | ac_uB='$,\1#\2define\3' | |
8516 | ac_uC=' ' | |
8517 | ac_uD=',;t' | |
8518 | ||
8519 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
8520 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8521 | case $ac_file in | |
8522 | - | *:- | *:-:* ) # input from stdin | |
8523 | cat >$tmp/stdin | |
8524 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8525 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8526 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8527 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8528 | * ) ac_file_in=$ac_file.in ;; | |
8529 | esac | |
8530 | ||
8531 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8532 | echo "$as_me: creating $ac_file" >&6;} | |
8533 | ||
8534 | # First look for the input files in the build tree, otherwise in the | |
8535 | # src tree. | |
8536 | ac_file_inputs=`IFS=: | |
8537 | for f in $ac_file_in; do | |
8538 | case $f in | |
8539 | -) echo $tmp/stdin ;; | |
8540 | [\\/$]*) | |
8541 | # Absolute (can't be DOS-style, as IFS=:) | |
8542 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8543 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8544 | { (exit 1); exit 1; }; } | |
8545 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
8546 | echo "$f";; | |
8547 | *) # Relative | |
8548 | if test -f "$f"; then | |
8549 | # Build tree | |
8550 | echo "$f" | |
8551 | elif test -f "$srcdir/$f"; then | |
8552 | # Source tree | |
8553 | echo "$srcdir/$f" | |
8554 | else | |
8555 | # /dev/null tree | |
8556 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8557 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8558 | { (exit 1); exit 1; }; } | |
8559 | fi;; | |
8560 | esac | |
8561 | done` || { (exit 1); exit 1; } | |
8562 | # Remove the trailing spaces. | |
8563 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
8564 | ||
8565 | _ACEOF | |
8566 | ||
8567 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8568 | # `conftest.undefs', that substitutes the proper values into | |
8569 | # config.h.in to produce config.h. The first handles `#define' | |
8570 | # templates, and the second `#undef' templates. | |
8571 | # And first: Protect against being on the right side of a sed subst in | |
8572 | # config.status. Protect against being in an unquoted here document | |
8573 | # in config.status. | |
8574 | rm -f conftest.defines conftest.undefs | |
8575 | # Using a here document instead of a string reduces the quoting nightmare. | |
8576 | # Putting comments in sed scripts is not portable. | |
8577 | # | |
8578 | # `end' is used to avoid that the second main sed command (meant for | |
8579 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8580 | # See the Autoconf documentation for `clear'. | |
8581 | cat >confdef2sed.sed <<\_ACEOF | |
8582 | s/[\\&,]/\\&/g | |
8583 | s,[\\$`],\\&,g | |
8584 | t clear | |
8585 | : clear | |
8586 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
8587 | t end | |
8588 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
8589 | : end | |
8590 | _ACEOF | |
8591 | # If some macros were called several times there might be several times | |
8592 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8593 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8594 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8595 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8596 | rm -f confdef2sed.sed | |
8597 | ||
8598 | # This sed command replaces #undef with comments. This is necessary, for | |
8599 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8600 | # on some systems where configure will not decide to define it. | |
8601 | cat >>conftest.undefs <<\_ACEOF | |
8602 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
8603 | _ACEOF | |
8604 | ||
8605 | # Break up conftest.defines because some shells have a limit on the size | |
8606 | # of here documents, and old seds have small limits too (100 cmds). | |
8607 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8608 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
8609 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
8610 | echo ' :' >>$CONFIG_STATUS | |
8611 | rm -f conftest.tail | |
8612 | while grep . conftest.defines >/dev/null | |
8613 | do | |
8614 | # Write a limited-size here document to $tmp/defines.sed. | |
8615 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8616 | # Speed up: don't consider the non `#define' lines. | |
8617 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
8618 | # Work around the forget-to-reset-the-flag bug. | |
8619 | echo 't clr' >>$CONFIG_STATUS | |
8620 | echo ': clr' >>$CONFIG_STATUS | |
8621 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8622 | echo 'CEOF | |
8623 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8624 | rm -f $tmp/in | |
8625 | mv $tmp/out $tmp/in | |
8626 | ' >>$CONFIG_STATUS | |
8627 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8628 | rm -f conftest.defines | |
8629 | mv conftest.tail conftest.defines | |
8630 | done | |
8631 | rm -f conftest.defines | |
8632 | echo ' fi # grep' >>$CONFIG_STATUS | |
8633 | echo >>$CONFIG_STATUS | |
8634 | ||
8635 | # Break up conftest.undefs because some shells have a limit on the size | |
8636 | # of here documents, and old seds have small limits too (100 cmds). | |
8637 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
8638 | rm -f conftest.tail | |
8639 | while grep . conftest.undefs >/dev/null | |
8640 | do | |
8641 | # Write a limited-size here document to $tmp/undefs.sed. | |
8642 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8643 | # Speed up: don't consider the non `#undef' | |
8644 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
8645 | # Work around the forget-to-reset-the-flag bug. | |
8646 | echo 't clr' >>$CONFIG_STATUS | |
8647 | echo ': clr' >>$CONFIG_STATUS | |
8648 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
8649 | echo 'CEOF | |
8650 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
8651 | rm -f $tmp/in | |
8652 | mv $tmp/out $tmp/in | |
8653 | ' >>$CONFIG_STATUS | |
8654 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8655 | rm -f conftest.undefs | |
8656 | mv conftest.tail conftest.undefs | |
8657 | done | |
8658 | rm -f conftest.undefs | |
8659 | ||
8660 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8661 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8662 | # use $as_me), people would be surprised to read: | |
8663 | # /* config.h. Generated by config.status. */ | |
8664 | if test x"$ac_file" = x-; then | |
8665 | echo "/* Generated by configure. */" >$tmp/config.h | |
8666 | else | |
8667 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
8668 | fi | |
8669 | cat $tmp/in >>$tmp/config.h | |
8670 | rm -f $tmp/in | |
8671 | if test x"$ac_file" != x-; then | |
8672 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
8673 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
8674 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8675 | else | |
8676 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8677 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8678 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8679 | X"$ac_file" : 'X\(//\)$' \| \ | |
8680 | X"$ac_file" : 'X\(/\)' \| \ | |
8681 | . : '\(.\)' 2>/dev/null || | |
8682 | echo X"$ac_file" | | |
8683 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8684 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8685 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8686 | /^X\(\/\).*/{ s//\1/; q; } | |
8687 | s/.*/./; q'` | |
8688 | { if $as_mkdir_p; then | |
8689 | mkdir -p "$ac_dir" | |
8690 | else | |
8691 | as_dir="$ac_dir" | |
8692 | as_dirs= | |
8693 | while test ! -d "$as_dir"; do | |
8694 | as_dirs="$as_dir $as_dirs" | |
8695 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8696 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8697 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8698 | X"$as_dir" : 'X\(//\)$' \| \ | |
8699 | X"$as_dir" : 'X\(/\)' \| \ | |
8700 | . : '\(.\)' 2>/dev/null || | |
8701 | echo X"$as_dir" | | |
8702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8703 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8704 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8705 | /^X\(\/\).*/{ s//\1/; q; } | |
8706 | s/.*/./; q'` | |
8707 | done | |
8708 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8709 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8710 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8711 | { (exit 1); exit 1; }; }; } | |
8712 | ||
8713 | rm -f $ac_file | |
8714 | mv $tmp/config.h $ac_file | |
8715 | fi | |
8716 | else | |
8717 | cat $tmp/config.h | |
8718 | rm -f $tmp/config.h | |
8719 | fi | |
b3076f16 AS |
8720 | done |
8721 | _ACEOF | |
8722 | ||
8723 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8724 | ||
8725 | { (exit 0); exit 0; } | |
8726 | _ACEOF | |
8727 | chmod +x $CONFIG_STATUS | |
8728 | ac_clean_files=$ac_clean_files_save | |
8729 | ||
8730 | ||
8731 | # configure is writing to config.log, and then calls config.status. | |
8732 | # config.status does its own redirection, appending to config.log. | |
8733 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8734 | # by configure, so config.status won't be able to write to it; its | |
8735 | # output is simply discarded. So we exec the FD to /dev/null, | |
8736 | # effectively closing config.log, so it can be properly (re)opened and | |
8737 | # appended to by config.status. When coming back to configure, we | |
8738 | # need to make the FD available again. | |
8739 | if test "$no_create" != yes; then | |
8740 | ac_cs_success=: | |
8741 | ac_config_status_args= | |
8742 | test "$silent" = yes && | |
8743 | ac_config_status_args="$ac_config_status_args --quiet" | |
8744 | exec 5>/dev/null | |
8745 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8746 | exec 5>>config.log | |
8747 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8748 | # would make configure fail if this is the last instruction. | |
8749 | $ac_cs_success || { (exit 1); exit 1; } | |
8750 | fi | |
8751 |