]>
Commit | Line | Data |
---|---|---|
b3076f16 | 1 | #! /bin/sh |
8da89711 | 2 | # From configure.in Id: configure.in 1899 2007-02-05 07:02:17Z rubin . |
b3076f16 | 3 | # Guess values for system-dependent variables and create Makefiles. |
a8b2ad8d | 4 | # Generated by GNU Autoconf 2.60 for X3 1.5. |
b3076f16 | 5 | # |
63c95a47 | 6 | # Report bugs to <evilnet-devel@lists.sourceforge.net>. |
b3076f16 | 7 | # |
a8b2ad8d | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
b3076f16 | 10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
15 | ||
16 | # Be Bourne compatible | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
a8b2ad8d | 23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
b3076f16 | 26 | fi |
a8b2ad8d | 27 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
b3076f16 | 28 | DUALCASE=1; export DUALCASE # for MKS sh |
29 | ||
a8b2ad8d | 30 | |
31 | # PATH needs CR | |
32 | # Avoid depending upon Character Ranges. | |
33 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
34 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
35 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
36 | as_cr_digits='0123456789' | |
37 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
38 | ||
39 | # The user is always right. | |
40 | if test "${PATH_SEPARATOR+set}" != set; then | |
41 | echo "#! /bin/sh" >conf$$.sh | |
42 | echo "exit 0" >>conf$$.sh | |
43 | chmod +x conf$$.sh | |
44 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
45 | PATH_SEPARATOR=';' | |
46 | else | |
47 | PATH_SEPARATOR=: | |
48 | fi | |
49 | rm -f conf$$.sh | |
50 | fi | |
51 | ||
b3076f16 | 52 | # Support unset when possible. |
53 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
54 | as_unset=unset | |
55 | else | |
56 | as_unset=false | |
57 | fi | |
58 | ||
59 | ||
a8b2ad8d | 60 | # IFS |
61 | # We need space, tab and new line, in precisely that order. Quoting is | |
62 | # there to prevent editors from complaining about space-tab. | |
63 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
64 | # splitting by setting IFS to empty value.) | |
65 | as_nl=' | |
66 | ' | |
67 | IFS=" "" $as_nl" | |
68 | ||
69 | # Find who we are. Look in the path if we contain no directory separator. | |
70 | case $0 in | |
71 | *[\\/]* ) as_myself=$0 ;; | |
72 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
73 | for as_dir in $PATH | |
74 | do | |
75 | IFS=$as_save_IFS | |
76 | test -z "$as_dir" && as_dir=. | |
77 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
78 | done | |
79 | IFS=$as_save_IFS | |
80 | ||
81 | ;; | |
82 | esac | |
83 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
84 | # in which case we are not to be found in the path. | |
85 | if test "x$as_myself" = x; then | |
86 | as_myself=$0 | |
87 | fi | |
88 | if test ! -f "$as_myself"; then | |
89 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
90 | { (exit 1); exit 1; } | |
91 | fi | |
92 | ||
b3076f16 | 93 | # Work around bugs in pre-3.0 UWIN ksh. |
a8b2ad8d | 94 | for as_var in ENV MAIL MAILPATH |
95 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
96 | done | |
b3076f16 | 97 | PS1='$ ' |
98 | PS2='> ' | |
99 | PS4='+ ' | |
100 | ||
101 | # NLS nuisances. | |
102 | for as_var in \ | |
103 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
104 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
105 | LC_TELEPHONE LC_TIME | |
106 | do | |
107 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
108 | eval $as_var=C; export $as_var | |
109 | else | |
a8b2ad8d | 110 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
b3076f16 | 111 | fi |
112 | done | |
113 | ||
114 | # Required to use basename. | |
a8b2ad8d | 115 | if expr a : '\(a\)' >/dev/null 2>&1 && |
116 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 117 | as_expr=expr |
118 | else | |
119 | as_expr=false | |
120 | fi | |
121 | ||
a8b2ad8d | 122 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b3076f16 | 123 | as_basename=basename |
124 | else | |
125 | as_basename=false | |
126 | fi | |
127 | ||
128 | ||
129 | # Name of the executable. | |
a8b2ad8d | 130 | as_me=`$as_basename -- "$0" || |
b3076f16 | 131 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
132 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 133 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 134 | echo X/"$0" | |
a8b2ad8d | 135 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
136 | s//\1/ | |
137 | q | |
138 | } | |
139 | /^X\/\(\/\/\)$/{ | |
140 | s//\1/ | |
141 | q | |
142 | } | |
143 | /^X\/\(\/\).*/{ | |
144 | s//\1/ | |
145 | q | |
146 | } | |
147 | s/.*/./; q'` | |
b3076f16 | 148 | |
a8b2ad8d | 149 | # CDPATH. |
150 | $as_unset CDPATH | |
b3076f16 | 151 | |
b3076f16 | 152 | |
a8b2ad8d | 153 | if test "x$CONFIG_SHELL" = x; then |
154 | if (eval ":") 2>/dev/null; then | |
155 | as_have_required=yes | |
156 | else | |
157 | as_have_required=no | |
b3076f16 | 158 | fi |
159 | ||
a8b2ad8d | 160 | if test $as_have_required = yes && (eval ": |
161 | (as_func_return () { | |
162 | (exit \$1) | |
163 | } | |
164 | as_func_success () { | |
165 | as_func_return 0 | |
166 | } | |
167 | as_func_failure () { | |
168 | as_func_return 1 | |
169 | } | |
170 | as_func_ret_success () { | |
171 | return 0 | |
172 | } | |
173 | as_func_ret_failure () { | |
174 | return 1 | |
175 | } | |
b3076f16 | 176 | |
a8b2ad8d | 177 | exitcode=0 |
178 | if as_func_success; then | |
179 | : | |
180 | else | |
181 | exitcode=1 | |
182 | echo as_func_success failed. | |
183 | fi | |
b3076f16 | 184 | |
a8b2ad8d | 185 | if as_func_failure; then |
186 | exitcode=1 | |
187 | echo as_func_failure succeeded. | |
188 | fi | |
189 | ||
190 | if as_func_ret_success; then | |
191 | : | |
192 | else | |
193 | exitcode=1 | |
194 | echo as_func_ret_success failed. | |
195 | fi | |
196 | ||
197 | if as_func_ret_failure; then | |
198 | exitcode=1 | |
199 | echo as_func_ret_failure succeeded. | |
200 | fi | |
201 | ||
202 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
203 | : | |
204 | else | |
205 | exitcode=1 | |
206 | echo positional parameters were not saved. | |
207 | fi | |
208 | ||
209 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
210 | ||
211 | ( | |
212 | as_lineno_1=\$LINENO | |
213 | as_lineno_2=\$LINENO | |
214 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
215 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
216 | ") 2> /dev/null; then | |
217 | : | |
218 | else | |
219 | as_candidate_shells= | |
b3076f16 | 220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a8b2ad8d | 221 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
b3076f16 | 222 | do |
223 | IFS=$as_save_IFS | |
224 | test -z "$as_dir" && as_dir=. | |
a8b2ad8d | 225 | case $as_dir in |
b3076f16 | 226 | /*) |
a8b2ad8d | 227 | for as_base in sh bash ksh sh5; do |
228 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
229 | done;; | |
230 | esac | |
231 | done | |
232 | IFS=$as_save_IFS | |
233 | ||
234 | ||
235 | for as_shell in $as_candidate_shells $SHELL; do | |
236 | # Try only shells that exist, to save several forks. | |
237 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
238 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
239 | # Be Bourne compatible | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
248 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
249 | fi | |
250 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
251 | DUALCASE=1; export DUALCASE # for MKS sh | |
252 | ||
253 | : | |
254 | _ASEOF | |
255 | }; then | |
256 | CONFIG_SHELL=$as_shell | |
257 | as_have_required=yes | |
258 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
259 | # Be Bourne compatible | |
260 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
261 | emulate sh | |
262 | NULLCMD=: | |
263 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
264 | # is contrary to our usage. Disable this feature. | |
265 | alias -g '${1+"$@"}'='"$@"' | |
266 | setopt NO_GLOB_SUBST | |
267 | else | |
268 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
269 | fi | |
270 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
271 | DUALCASE=1; export DUALCASE # for MKS sh | |
272 | ||
273 | : | |
274 | (as_func_return () { | |
275 | (exit $1) | |
276 | } | |
277 | as_func_success () { | |
278 | as_func_return 0 | |
279 | } | |
280 | as_func_failure () { | |
281 | as_func_return 1 | |
282 | } | |
283 | as_func_ret_success () { | |
284 | return 0 | |
285 | } | |
286 | as_func_ret_failure () { | |
287 | return 1 | |
288 | } | |
289 | ||
290 | exitcode=0 | |
291 | if as_func_success; then | |
292 | : | |
293 | else | |
294 | exitcode=1 | |
295 | echo as_func_success failed. | |
296 | fi | |
297 | ||
298 | if as_func_failure; then | |
299 | exitcode=1 | |
300 | echo as_func_failure succeeded. | |
301 | fi | |
302 | ||
303 | if as_func_ret_success; then | |
304 | : | |
305 | else | |
306 | exitcode=1 | |
307 | echo as_func_ret_success failed. | |
308 | fi | |
309 | ||
310 | if as_func_ret_failure; then | |
311 | exitcode=1 | |
312 | echo as_func_ret_failure succeeded. | |
313 | fi | |
314 | ||
315 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
316 | : | |
317 | else | |
318 | exitcode=1 | |
319 | echo positional parameters were not saved. | |
320 | fi | |
321 | ||
322 | test $exitcode = 0) || { (exit 1); exit 1; } | |
323 | ||
324 | ( | |
b3076f16 | 325 | as_lineno_1=$LINENO |
326 | as_lineno_2=$LINENO | |
b3076f16 | 327 | test "x$as_lineno_1" != "x$as_lineno_2" && |
a8b2ad8d | 328 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
329 | ||
330 | _ASEOF | |
331 | }; then | |
332 | break | |
333 | fi | |
334 | ||
335 | fi | |
336 | ||
337 | done | |
338 | ||
339 | if test "x$CONFIG_SHELL" != x; then | |
340 | for as_var in BASH_ENV ENV | |
341 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
342 | done | |
343 | export CONFIG_SHELL | |
344 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
345 | fi | |
346 | ||
347 | ||
348 | if test $as_have_required = no; then | |
349 | echo This script requires a shell more modern than all the | |
350 | echo shells that I found on your system. Please install a | |
351 | echo modern shell, or manually run the script under such a | |
352 | echo shell if you do have one. | |
353 | { (exit 1); exit 1; } | |
354 | fi | |
355 | ||
356 | ||
357 | fi | |
358 | ||
359 | fi | |
360 | ||
361 | ||
362 | ||
363 | (eval "as_func_return () { | |
364 | (exit \$1) | |
365 | } | |
366 | as_func_success () { | |
367 | as_func_return 0 | |
368 | } | |
369 | as_func_failure () { | |
370 | as_func_return 1 | |
371 | } | |
372 | as_func_ret_success () { | |
373 | return 0 | |
374 | } | |
375 | as_func_ret_failure () { | |
376 | return 1 | |
377 | } | |
378 | ||
379 | exitcode=0 | |
380 | if as_func_success; then | |
381 | : | |
382 | else | |
383 | exitcode=1 | |
384 | echo as_func_success failed. | |
385 | fi | |
386 | ||
387 | if as_func_failure; then | |
388 | exitcode=1 | |
389 | echo as_func_failure succeeded. | |
390 | fi | |
391 | ||
392 | if as_func_ret_success; then | |
393 | : | |
394 | else | |
395 | exitcode=1 | |
396 | echo as_func_ret_success failed. | |
397 | fi | |
398 | ||
399 | if as_func_ret_failure; then | |
400 | exitcode=1 | |
401 | echo as_func_ret_failure succeeded. | |
402 | fi | |
403 | ||
404 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
405 | : | |
406 | else | |
407 | exitcode=1 | |
408 | echo positional parameters were not saved. | |
409 | fi | |
410 | ||
411 | test \$exitcode = 0") || { | |
412 | echo No shell found that supports shell functions. | |
413 | echo Please tell autoconf@gnu.org about your system, | |
414 | echo including any error possibly output before this | |
415 | echo message | |
416 | } | |
417 | ||
418 | ||
419 | ||
420 | as_lineno_1=$LINENO | |
421 | as_lineno_2=$LINENO | |
422 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
423 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
b3076f16 | 424 | |
425 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
426 | # uniformly replaced by the line number. The first 'sed' inserts a | |
a8b2ad8d | 427 | # line-number line after each line using $LINENO; the second 'sed' |
428 | # does the real work. The second script uses 'N' to pair each | |
429 | # line-number line with the line containing $LINENO, and appends | |
430 | # trailing '-' during substitution so that $LINENO is not a special | |
431 | # case at line end. | |
b3076f16 | 432 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
a8b2ad8d | 433 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
434 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
435 | sed -n ' | |
436 | p | |
437 | /[$]LINENO/= | |
438 | ' <$as_myself | | |
b3076f16 | 439 | sed ' |
a8b2ad8d | 440 | s/[$]LINENO.*/&-/ |
441 | t lineno | |
442 | b | |
443 | :lineno | |
b3076f16 | 444 | N |
a8b2ad8d | 445 | :loop |
446 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b3076f16 | 447 | t loop |
a8b2ad8d | 448 | s/-\n.*// |
b3076f16 | 449 | ' >$as_me.lineno && |
a8b2ad8d | 450 | chmod +x "$as_me.lineno" || |
b3076f16 | 451 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
452 | { (exit 1); exit 1; }; } | |
453 | ||
454 | # Don't try to exec as it changes $[0], causing all sort of problems | |
455 | # (the dirname of $[0] is not the place where we might find the | |
a8b2ad8d | 456 | # original and so on. Autoconf is especially sensitive to this). |
457 | . "./$as_me.lineno" | |
b3076f16 | 458 | # Exit status is that of the last command. |
459 | exit | |
460 | } | |
461 | ||
462 | ||
a8b2ad8d | 463 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
464 | as_dirname=dirname | |
465 | else | |
466 | as_dirname=false | |
467 | fi | |
468 | ||
469 | ECHO_C= ECHO_N= ECHO_T= | |
470 | case `echo -n x` in | |
471 | -n*) | |
472 | case `echo 'x\c'` in | |
473 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
474 | *) ECHO_C='\c';; | |
475 | esac;; | |
476 | *) | |
477 | ECHO_N='-n';; | |
b3076f16 | 478 | esac |
479 | ||
a8b2ad8d | 480 | if expr a : '\(a\)' >/dev/null 2>&1 && |
481 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 482 | as_expr=expr |
483 | else | |
484 | as_expr=false | |
485 | fi | |
486 | ||
487 | rm -f conf$$ conf$$.exe conf$$.file | |
a8b2ad8d | 488 | if test -d conf$$.dir; then |
489 | rm -f conf$$.dir/conf$$.file | |
490 | else | |
491 | rm -f conf$$.dir | |
492 | mkdir conf$$.dir | |
493 | fi | |
b3076f16 | 494 | echo >conf$$.file |
495 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a8b2ad8d | 496 | as_ln_s='ln -s' |
497 | # ... but there are two gotchas: | |
498 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
499 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
500 | # In both cases, we have to default to `cp -p'. | |
501 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
b3076f16 | 502 | as_ln_s='cp -p' |
b3076f16 | 503 | elif ln conf$$.file conf$$ 2>/dev/null; then |
504 | as_ln_s=ln | |
505 | else | |
506 | as_ln_s='cp -p' | |
507 | fi | |
a8b2ad8d | 508 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
509 | rmdir conf$$.dir 2>/dev/null | |
b3076f16 | 510 | |
511 | if mkdir -p . 2>/dev/null; then | |
512 | as_mkdir_p=: | |
513 | else | |
514 | test -d ./-p && rmdir ./-p | |
515 | as_mkdir_p=false | |
516 | fi | |
517 | ||
a8b2ad8d | 518 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
519 | # systems may use methods other than mode bits to determine executability. | |
520 | cat >conf$$.file <<_ASEOF | |
521 | #! /bin/sh | |
522 | exit 0 | |
523 | _ASEOF | |
524 | chmod +x conf$$.file | |
525 | if test -x conf$$.file >/dev/null 2>&1; then | |
526 | as_executable_p="test -x" | |
527 | else | |
528 | as_executable_p=: | |
529 | fi | |
530 | rm -f conf$$.file | |
b3076f16 | 531 | |
532 | # Sed expression to map a string onto a valid CPP name. | |
533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
534 | ||
535 | # Sed expression to map a string onto a valid variable name. | |
536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
537 | ||
538 | ||
b3076f16 | 539 | |
a8b2ad8d | 540 | exec 7<&0 </dev/null 6>&1 |
b3076f16 | 541 | |
542 | # Name of the host. | |
543 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
544 | # so uname gets run too. | |
545 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
546 | ||
b3076f16 | 547 | # |
548 | # Initializations. | |
549 | # | |
550 | ac_default_prefix=/usr/local | |
a8b2ad8d | 551 | ac_clean_files= |
b3076f16 | 552 | ac_config_libobj_dir=. |
a8b2ad8d | 553 | LIBOBJS= |
b3076f16 | 554 | cross_compiling=no |
555 | subdirs= | |
556 | MFLAGS= | |
557 | MAKEFLAGS= | |
558 | SHELL=${CONFIG_SHELL-/bin/sh} | |
559 | ||
b3076f16 | 560 | # Identity of this package. |
ceafd592 | 561 | PACKAGE_NAME='X3' |
562 | PACKAGE_TARNAME='x3' | |
63c95a47 | 563 | PACKAGE_VERSION='1.5' |
564 | PACKAGE_STRING='X3 1.5' | |
565 | PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net' | |
b3076f16 | 566 | |
567 | ac_unique_file="src/opserv.c" | |
568 | # Factoring default headers for most tests. | |
569 | ac_includes_default="\ | |
570 | #include <stdio.h> | |
571 | #if HAVE_SYS_TYPES_H | |
572 | # include <sys/types.h> | |
573 | #endif | |
574 | #if HAVE_SYS_STAT_H | |
575 | # include <sys/stat.h> | |
576 | #endif | |
577 | #if STDC_HEADERS | |
578 | # include <stdlib.h> | |
579 | # include <stddef.h> | |
580 | #else | |
581 | # if HAVE_STDLIB_H | |
582 | # include <stdlib.h> | |
583 | # endif | |
584 | #endif | |
585 | #if HAVE_STRING_H | |
586 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
587 | # include <memory.h> | |
588 | # endif | |
589 | # include <string.h> | |
590 | #endif | |
591 | #if HAVE_STRINGS_H | |
592 | # include <strings.h> | |
593 | #endif | |
594 | #if HAVE_INTTYPES_H | |
595 | # include <inttypes.h> | |
a8b2ad8d | 596 | #endif |
597 | #if HAVE_STDINT_H | |
598 | # include <stdint.h> | |
b3076f16 | 599 | #endif |
600 | #if HAVE_UNISTD_H | |
601 | # include <unistd.h> | |
602 | #endif" | |
603 | ||
a8b2ad8d | 604 | ac_subst_vars='SHELL |
605 | PATH_SEPARATOR | |
606 | PACKAGE_NAME | |
607 | PACKAGE_TARNAME | |
608 | PACKAGE_VERSION | |
609 | PACKAGE_STRING | |
610 | PACKAGE_BUGREPORT | |
611 | exec_prefix | |
612 | prefix | |
613 | program_transform_name | |
614 | bindir | |
615 | sbindir | |
616 | libexecdir | |
617 | datarootdir | |
618 | datadir | |
619 | sysconfdir | |
620 | sharedstatedir | |
621 | localstatedir | |
622 | includedir | |
623 | oldincludedir | |
624 | docdir | |
625 | infodir | |
626 | htmldir | |
627 | dvidir | |
628 | pdfdir | |
629 | psdir | |
630 | libdir | |
631 | localedir | |
632 | mandir | |
633 | DEFS | |
634 | ECHO_C | |
635 | ECHO_N | |
636 | ECHO_T | |
637 | LIBS | |
638 | build_alias | |
639 | host_alias | |
640 | target_alias | |
641 | build | |
642 | build_cpu | |
643 | build_vendor | |
644 | build_os | |
645 | host | |
646 | host_cpu | |
647 | host_vendor | |
648 | host_os | |
649 | target | |
650 | target_cpu | |
651 | target_vendor | |
652 | target_os | |
653 | INSTALL_PROGRAM | |
654 | INSTALL_SCRIPT | |
655 | INSTALL_DATA | |
656 | CYGPATH_W | |
657 | PACKAGE | |
658 | VERSION | |
659 | ACLOCAL | |
660 | AUTOCONF | |
661 | AUTOMAKE | |
662 | AUTOHEADER | |
663 | MAKEINFO | |
664 | install_sh | |
665 | STRIP | |
666 | INSTALL_STRIP_PROGRAM | |
667 | mkdir_p | |
668 | AWK | |
669 | SET_MAKE | |
670 | am__leading_dot | |
671 | AMTAR | |
672 | am__tar | |
673 | am__untar | |
674 | MAINTAINER_MODE_TRUE | |
675 | MAINTAINER_MODE_FALSE | |
676 | MAINT | |
677 | CC | |
678 | CFLAGS | |
679 | LDFLAGS | |
680 | CPPFLAGS | |
681 | ac_ct_CC | |
682 | EXEEXT | |
683 | OBJEXT | |
684 | DEPDIR | |
685 | am__include | |
686 | am__quote | |
687 | AMDEP_TRUE | |
688 | AMDEP_FALSE | |
689 | AMDEPBACKSLASH | |
690 | CCDEPMODE | |
691 | am__fastdepCC_TRUE | |
692 | am__fastdepCC_FALSE | |
693 | RANLIB | |
694 | LN_S | |
695 | CPP | |
696 | GREP | |
697 | EGREP | |
698 | MAKER | |
699 | ALLOCA | |
700 | MODULE_OBJS | |
701 | MY_SUBDIRS | |
702 | RX_INCLUDES | |
703 | RX_LIBS | |
704 | TRACK | |
705 | LIBOBJS | |
706 | LTLIBOBJS' | |
b3076f16 | 707 | ac_subst_files='' |
a8b2ad8d | 708 | ac_precious_vars='build_alias |
709 | host_alias | |
710 | target_alias | |
711 | CC | |
712 | CFLAGS | |
713 | LDFLAGS | |
714 | CPPFLAGS | |
715 | CPP' | |
716 | ||
b3076f16 | 717 | |
718 | # Initialize some variables set by options. | |
719 | ac_init_help= | |
720 | ac_init_version=false | |
721 | # The variables have the same names as the options, with | |
722 | # dashes changed to underlines. | |
723 | cache_file=/dev/null | |
724 | exec_prefix=NONE | |
725 | no_create= | |
726 | no_recursion= | |
727 | prefix=NONE | |
728 | program_prefix=NONE | |
729 | program_suffix=NONE | |
730 | program_transform_name=s,x,x, | |
731 | silent= | |
732 | site= | |
733 | srcdir= | |
734 | verbose= | |
735 | x_includes=NONE | |
736 | x_libraries=NONE | |
737 | ||
738 | # Installation directory options. | |
739 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
740 | # and all the variables that are supposed to be based on exec_prefix | |
741 | # by default will actually change. | |
742 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
a8b2ad8d | 743 | # (The list follows the same order as the GNU Coding Standards.) |
b3076f16 | 744 | bindir='${exec_prefix}/bin' |
745 | sbindir='${exec_prefix}/sbin' | |
746 | libexecdir='${exec_prefix}/libexec' | |
a8b2ad8d | 747 | datarootdir='${prefix}/share' |
748 | datadir='${datarootdir}' | |
b3076f16 | 749 | sysconfdir='${prefix}/etc' |
750 | sharedstatedir='${prefix}/com' | |
751 | localstatedir='${prefix}/var' | |
b3076f16 | 752 | includedir='${prefix}/include' |
753 | oldincludedir='/usr/include' | |
a8b2ad8d | 754 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
755 | infodir='${datarootdir}/info' | |
756 | htmldir='${docdir}' | |
757 | dvidir='${docdir}' | |
758 | pdfdir='${docdir}' | |
759 | psdir='${docdir}' | |
760 | libdir='${exec_prefix}/lib' | |
761 | localedir='${datarootdir}/locale' | |
762 | mandir='${datarootdir}/man' | |
b3076f16 | 763 | |
764 | ac_prev= | |
a8b2ad8d | 765 | ac_dashdash= |
b3076f16 | 766 | for ac_option |
767 | do | |
768 | # If the previous option needs an argument, assign it. | |
769 | if test -n "$ac_prev"; then | |
a8b2ad8d | 770 | eval $ac_prev=\$ac_option |
b3076f16 | 771 | ac_prev= |
772 | continue | |
773 | fi | |
774 | ||
a8b2ad8d | 775 | case $ac_option in |
776 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
777 | *) ac_optarg=yes ;; | |
778 | esac | |
b3076f16 | 779 | |
780 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
781 | ||
a8b2ad8d | 782 | case $ac_dashdash$ac_option in |
783 | --) | |
784 | ac_dashdash=yes ;; | |
b3076f16 | 785 | |
786 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
787 | ac_prev=bindir ;; | |
788 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
789 | bindir=$ac_optarg ;; | |
790 | ||
791 | -build | --build | --buil | --bui | --bu) | |
792 | ac_prev=build_alias ;; | |
793 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
794 | build_alias=$ac_optarg ;; | |
795 | ||
796 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
797 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
798 | ac_prev=cache_file ;; | |
799 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
800 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
801 | cache_file=$ac_optarg ;; | |
802 | ||
803 | --config-cache | -C) | |
804 | cache_file=config.cache ;; | |
805 | ||
a8b2ad8d | 806 | -datadir | --datadir | --datadi | --datad) |
b3076f16 | 807 | ac_prev=datadir ;; |
a8b2ad8d | 808 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b3076f16 | 809 | datadir=$ac_optarg ;; |
810 | ||
a8b2ad8d | 811 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
812 | | --dataroo | --dataro | --datar) | |
813 | ac_prev=datarootdir ;; | |
814 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
815 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
816 | datarootdir=$ac_optarg ;; | |
817 | ||
b3076f16 | 818 | -disable-* | --disable-*) |
819 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
820 | # Reject names that are not valid shell variable names. | |
821 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
822 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
823 | { (exit 1); exit 1; }; } | |
824 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
a8b2ad8d | 825 | eval enable_$ac_feature=no ;; |
826 | ||
827 | -docdir | --docdir | --docdi | --doc | --do) | |
828 | ac_prev=docdir ;; | |
829 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
830 | docdir=$ac_optarg ;; | |
831 | ||
832 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
833 | ac_prev=dvidir ;; | |
834 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
835 | dvidir=$ac_optarg ;; | |
b3076f16 | 836 | |
837 | -enable-* | --enable-*) | |
838 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
839 | # Reject names that are not valid shell variable names. | |
840 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
841 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
842 | { (exit 1); exit 1; }; } | |
843 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
a8b2ad8d | 844 | eval enable_$ac_feature=\$ac_optarg ;; |
b3076f16 | 845 | |
846 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
847 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
848 | | --exec | --exe | --ex) | |
849 | ac_prev=exec_prefix ;; | |
850 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
851 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
852 | | --exec=* | --exe=* | --ex=*) | |
853 | exec_prefix=$ac_optarg ;; | |
854 | ||
855 | -gas | --gas | --ga | --g) | |
856 | # Obsolete; use --with-gas. | |
857 | with_gas=yes ;; | |
858 | ||
859 | -help | --help | --hel | --he | -h) | |
860 | ac_init_help=long ;; | |
861 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
862 | ac_init_help=recursive ;; | |
863 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
864 | ac_init_help=short ;; | |
865 | ||
866 | -host | --host | --hos | --ho) | |
867 | ac_prev=host_alias ;; | |
868 | -host=* | --host=* | --hos=* | --ho=*) | |
869 | host_alias=$ac_optarg ;; | |
870 | ||
a8b2ad8d | 871 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
872 | ac_prev=htmldir ;; | |
873 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
874 | | --ht=*) | |
875 | htmldir=$ac_optarg ;; | |
876 | ||
b3076f16 | 877 | -includedir | --includedir | --includedi | --included | --include \ |
878 | | --includ | --inclu | --incl | --inc) | |
879 | ac_prev=includedir ;; | |
880 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
881 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
882 | includedir=$ac_optarg ;; | |
883 | ||
884 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
885 | ac_prev=infodir ;; | |
886 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
887 | infodir=$ac_optarg ;; | |
888 | ||
889 | -libdir | --libdir | --libdi | --libd) | |
890 | ac_prev=libdir ;; | |
891 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
892 | libdir=$ac_optarg ;; | |
893 | ||
894 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
895 | | --libexe | --libex | --libe) | |
896 | ac_prev=libexecdir ;; | |
897 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
898 | | --libexe=* | --libex=* | --libe=*) | |
899 | libexecdir=$ac_optarg ;; | |
900 | ||
a8b2ad8d | 901 | -localedir | --localedir | --localedi | --localed | --locale) |
902 | ac_prev=localedir ;; | |
903 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
904 | localedir=$ac_optarg ;; | |
905 | ||
b3076f16 | 906 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
a8b2ad8d | 907 | | --localstate | --localstat | --localsta | --localst | --locals) |
b3076f16 | 908 | ac_prev=localstatedir ;; |
909 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
a8b2ad8d | 910 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b3076f16 | 911 | localstatedir=$ac_optarg ;; |
912 | ||
913 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
914 | ac_prev=mandir ;; | |
915 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
916 | mandir=$ac_optarg ;; | |
917 | ||
918 | -nfp | --nfp | --nf) | |
919 | # Obsolete; use --without-fp. | |
920 | with_fp=no ;; | |
921 | ||
922 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
923 | | --no-cr | --no-c | -n) | |
924 | no_create=yes ;; | |
925 | ||
926 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
927 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
928 | no_recursion=yes ;; | |
929 | ||
930 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
931 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
932 | | --oldin | --oldi | --old | --ol | --o) | |
933 | ac_prev=oldincludedir ;; | |
934 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
935 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
936 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
937 | oldincludedir=$ac_optarg ;; | |
938 | ||
939 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
940 | ac_prev=prefix ;; | |
941 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
942 | prefix=$ac_optarg ;; | |
943 | ||
944 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
945 | | --program-pre | --program-pr | --program-p) | |
946 | ac_prev=program_prefix ;; | |
947 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
948 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
949 | program_prefix=$ac_optarg ;; | |
950 | ||
951 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
952 | | --program-suf | --program-su | --program-s) | |
953 | ac_prev=program_suffix ;; | |
954 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
955 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
956 | program_suffix=$ac_optarg ;; | |
957 | ||
958 | -program-transform-name | --program-transform-name \ | |
959 | | --program-transform-nam | --program-transform-na \ | |
960 | | --program-transform-n | --program-transform- \ | |
961 | | --program-transform | --program-transfor \ | |
962 | | --program-transfo | --program-transf \ | |
963 | | --program-trans | --program-tran \ | |
964 | | --progr-tra | --program-tr | --program-t) | |
965 | ac_prev=program_transform_name ;; | |
966 | -program-transform-name=* | --program-transform-name=* \ | |
967 | | --program-transform-nam=* | --program-transform-na=* \ | |
968 | | --program-transform-n=* | --program-transform-=* \ | |
969 | | --program-transform=* | --program-transfor=* \ | |
970 | | --program-transfo=* | --program-transf=* \ | |
971 | | --program-trans=* | --program-tran=* \ | |
972 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
973 | program_transform_name=$ac_optarg ;; | |
974 | ||
a8b2ad8d | 975 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
976 | ac_prev=pdfdir ;; | |
977 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
978 | pdfdir=$ac_optarg ;; | |
979 | ||
980 | -psdir | --psdir | --psdi | --psd | --ps) | |
981 | ac_prev=psdir ;; | |
982 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
983 | psdir=$ac_optarg ;; | |
984 | ||
b3076f16 | 985 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
986 | | -silent | --silent | --silen | --sile | --sil) | |
987 | silent=yes ;; | |
988 | ||
989 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
990 | ac_prev=sbindir ;; | |
991 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
992 | | --sbi=* | --sb=*) | |
993 | sbindir=$ac_optarg ;; | |
994 | ||
995 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
996 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
997 | | --sharedst | --shareds | --shared | --share | --shar \ | |
998 | | --sha | --sh) | |
999 | ac_prev=sharedstatedir ;; | |
1000 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1001 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1002 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1003 | | --sha=* | --sh=*) | |
1004 | sharedstatedir=$ac_optarg ;; | |
1005 | ||
1006 | -site | --site | --sit) | |
1007 | ac_prev=site ;; | |
1008 | -site=* | --site=* | --sit=*) | |
1009 | site=$ac_optarg ;; | |
1010 | ||
1011 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1012 | ac_prev=srcdir ;; | |
1013 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1014 | srcdir=$ac_optarg ;; | |
1015 | ||
1016 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1017 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1018 | ac_prev=sysconfdir ;; | |
1019 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1020 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1021 | sysconfdir=$ac_optarg ;; | |
1022 | ||
1023 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1024 | ac_prev=target_alias ;; | |
1025 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1026 | target_alias=$ac_optarg ;; | |
1027 | ||
1028 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1029 | verbose=yes ;; | |
1030 | ||
1031 | -version | --version | --versio | --versi | --vers | -V) | |
1032 | ac_init_version=: ;; | |
1033 | ||
1034 | -with-* | --with-*) | |
1035 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1036 | # Reject names that are not valid shell variable names. | |
1037 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
1038 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1039 | { (exit 1); exit 1; }; } | |
1040 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
a8b2ad8d | 1041 | eval with_$ac_package=\$ac_optarg ;; |
b3076f16 | 1042 | |
1043 | -without-* | --without-*) | |
1044 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1045 | # Reject names that are not valid shell variable names. | |
1046 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
1047 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1048 | { (exit 1); exit 1; }; } | |
1049 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
a8b2ad8d | 1050 | eval with_$ac_package=no ;; |
b3076f16 | 1051 | |
1052 | --x) | |
1053 | # Obsolete; use --with-x. | |
1054 | with_x=yes ;; | |
1055 | ||
1056 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1057 | | --x-incl | --x-inc | --x-in | --x-i) | |
1058 | ac_prev=x_includes ;; | |
1059 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1060 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1061 | x_includes=$ac_optarg ;; | |
1062 | ||
1063 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1064 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1065 | ac_prev=x_libraries ;; | |
1066 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1067 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1068 | x_libraries=$ac_optarg ;; | |
1069 | ||
1070 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1071 | Try \`$0 --help' for more information." >&2 | |
1072 | { (exit 1); exit 1; }; } | |
1073 | ;; | |
1074 | ||
1075 | *=*) | |
1076 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1077 | # Reject names that are not valid shell variable names. | |
1078 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1079 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1080 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 1081 | eval $ac_envvar=\$ac_optarg |
b3076f16 | 1082 | export $ac_envvar ;; |
1083 | ||
1084 | *) | |
1085 | # FIXME: should be removed in autoconf 3.0. | |
1086 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1087 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1088 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1089 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1090 | ;; | |
1091 | ||
1092 | esac | |
1093 | done | |
1094 | ||
1095 | if test -n "$ac_prev"; then | |
1096 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1097 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1098 | { (exit 1); exit 1; }; } | |
1099 | fi | |
1100 | ||
a8b2ad8d | 1101 | # Be sure to have absolute directory names. |
1102 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1103 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1104 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1105 | libdir localedir mandir | |
b3076f16 | 1106 | do |
a8b2ad8d | 1107 | eval ac_val=\$$ac_var |
b3076f16 | 1108 | case $ac_val in |
a8b2ad8d | 1109 | [\\/$]* | ?:[\\/]* ) continue;; |
1110 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
b3076f16 | 1111 | esac |
a8b2ad8d | 1112 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1113 | { (exit 1); exit 1; }; } | |
b3076f16 | 1114 | done |
1115 | ||
1116 | # There might be people who depend on the old broken behavior: `$host' | |
1117 | # used to hold the argument of --host etc. | |
1118 | # FIXME: To remove some day. | |
1119 | build=$build_alias | |
1120 | host=$host_alias | |
1121 | target=$target_alias | |
1122 | ||
1123 | # FIXME: To remove some day. | |
1124 | if test "x$host_alias" != x; then | |
1125 | if test "x$build_alias" = x; then | |
1126 | cross_compiling=maybe | |
1127 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1128 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1129 | elif test "x$build_alias" != "x$host_alias"; then | |
1130 | cross_compiling=yes | |
1131 | fi | |
1132 | fi | |
1133 | ||
1134 | ac_tool_prefix= | |
1135 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1136 | ||
1137 | test "$silent" = yes && exec 6>/dev/null | |
1138 | ||
1139 | ||
a8b2ad8d | 1140 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1141 | ac_ls_di=`ls -di .` && | |
1142 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1143 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1144 | { (exit 1); exit 1; }; } | |
1145 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1146 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1147 | { (exit 1); exit 1; }; } | |
1148 | ||
1149 | ||
b3076f16 | 1150 | # Find the source files, if location was not specified. |
1151 | if test -z "$srcdir"; then | |
1152 | ac_srcdir_defaulted=yes | |
a8b2ad8d | 1153 | # Try the directory containing this script, then the parent directory. |
1154 | ac_confdir=`$as_dirname -- "$0" || | |
b3076f16 | 1155 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1156 | X"$0" : 'X\(//\)[^/]' \| \ | |
1157 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 1158 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 1159 | echo X"$0" | |
a8b2ad8d | 1160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1161 | s//\1/ | |
1162 | q | |
1163 | } | |
1164 | /^X\(\/\/\)[^/].*/{ | |
1165 | s//\1/ | |
1166 | q | |
1167 | } | |
1168 | /^X\(\/\/\)$/{ | |
1169 | s//\1/ | |
1170 | q | |
1171 | } | |
1172 | /^X\(\/\).*/{ | |
1173 | s//\1/ | |
1174 | q | |
1175 | } | |
1176 | s/.*/./; q'` | |
b3076f16 | 1177 | srcdir=$ac_confdir |
a8b2ad8d | 1178 | if test ! -r "$srcdir/$ac_unique_file"; then |
b3076f16 | 1179 | srcdir=.. |
1180 | fi | |
1181 | else | |
1182 | ac_srcdir_defaulted=no | |
1183 | fi | |
a8b2ad8d | 1184 | if test ! -r "$srcdir/$ac_unique_file"; then |
1185 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1186 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
b3076f16 | 1187 | { (exit 1); exit 1; }; } |
b3076f16 | 1188 | fi |
a8b2ad8d | 1189 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1190 | ac_abs_confdir=`( | |
1191 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
b3076f16 | 1192 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1193 | pwd)` |
1194 | # When building in place, set srcdir=. | |
1195 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1196 | srcdir=. | |
1197 | fi | |
1198 | # Remove unnecessary trailing slashes from srcdir. | |
1199 | # Double slashes in file names in object file debugging info | |
1200 | # mess up M-x gdb in Emacs. | |
1201 | case $srcdir in | |
1202 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1203 | esac | |
1204 | for ac_var in $ac_precious_vars; do | |
1205 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1206 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1207 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1208 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1209 | done | |
b3076f16 | 1210 | |
1211 | # | |
1212 | # Report the --help message. | |
1213 | # | |
1214 | if test "$ac_init_help" = "long"; then | |
1215 | # Omit some internal or obsolete options to make the list less imposing. | |
1216 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1217 | cat <<_ACEOF | |
63c95a47 | 1218 | \`configure' configures X3 1.5 to adapt to many kinds of systems. |
b3076f16 | 1219 | |
1220 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1221 | ||
1222 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1223 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1224 | ||
1225 | Defaults for the options are specified in brackets. | |
1226 | ||
1227 | Configuration: | |
1228 | -h, --help display this help and exit | |
1229 | --help=short display options specific to this package | |
1230 | --help=recursive display the short help of all the included packages | |
1231 | -V, --version display version information and exit | |
1232 | -q, --quiet, --silent do not print \`checking...' messages | |
1233 | --cache-file=FILE cache test results in FILE [disabled] | |
1234 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1235 | -n, --no-create do not create output files | |
1236 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1237 | ||
b3076f16 | 1238 | Installation directories: |
1239 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1240 | [$ac_default_prefix] | |
1241 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1242 | [PREFIX] | |
1243 | ||
1244 | By default, \`make install' will install all the files in | |
1245 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1246 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1247 | for instance \`--prefix=\$HOME'. | |
1248 | ||
1249 | For better control, use the options below. | |
1250 | ||
1251 | Fine tuning of the installation directories: | |
1252 | --bindir=DIR user executables [EPREFIX/bin] | |
1253 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1254 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b3076f16 | 1255 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1256 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1257 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1258 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1259 | --includedir=DIR C header files [PREFIX/include] | |
1260 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
a8b2ad8d | 1261 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1262 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1263 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1264 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1265 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1266 | --docdir=DIR documentation root [DATAROOTDIR/doc/x3] | |
1267 | --htmldir=DIR html documentation [DOCDIR] | |
1268 | --dvidir=DIR dvi documentation [DOCDIR] | |
1269 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1270 | --psdir=DIR ps documentation [DOCDIR] | |
b3076f16 | 1271 | _ACEOF |
1272 | ||
1273 | cat <<\_ACEOF | |
1274 | ||
1275 | Program names: | |
1276 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1277 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1278 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1279 | ||
1280 | System types: | |
1281 | --build=BUILD configure for building on BUILD [guessed] | |
1282 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1283 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1284 | _ACEOF | |
1285 | fi | |
1286 | ||
1287 | if test -n "$ac_init_help"; then | |
1288 | case $ac_init_help in | |
63c95a47 | 1289 | short | recursive ) echo "Configuration of X3 1.5:";; |
b3076f16 | 1290 | esac |
1291 | cat <<\_ACEOF | |
1292 | ||
1293 | Optional Features: | |
1294 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1295 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ec1a68c8 | 1296 | --enable-maintainer-mode enable make rules and dependencies not useful |
1297 | (and sometimes confusing) to the casual installer | |
1298 | --disable-dependency-tracking speeds up one-time build | |
1299 | --enable-dependency-tracking do not reject slow dependency extractors | |
b3076f16 | 1300 | --disable-tokens Disables tokenization of P10 protocol output |
1301 | (tokens required if linking to ircu 2.10.11) | |
1302 | --enable-debug Enables debugging behaviors | |
1303 | --enable-modules=list,of,modules Enable extra modules | |
1304 | ||
1305 | Optional Packages: | |
1306 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1307 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1308 | --with-malloc=type Enables use of a special malloc library; one of: | |
b8cb2a14 | 1309 | system (the default), boehm-gc, dmalloc, mpatrol, x3, slab |
b3076f16 | 1310 | --with-protocol=name Choose IRC dialect to support; one of: |
7827220c | 1311 | p10 (the default) |
b3076f16 | 1312 | --without-getopt Disables building of the GNU getopt library |
a8b2ad8d | 1313 | --with-tre=PATH Base path to where libtre is installed, such that |
1314 | PATH/lib/libtre.so and PATH/include/tre/regex.h exist. | |
1315 | --with-coredumper=PATH Base path to where core dumper is installed, such | |
1316 | that PATH/lib/libcoredumper.so and | |
1317 | PATH/include/google/coredumper.h exist. | |
8da89711 | 1318 | --with-ldap=PATH Base path to where the ldap library and headers are installed, |
1319 | such that PATH/include/ldap.h and PATH/lib/libldap.so exist. | |
b3076f16 | 1320 | |
1321 | Some influential environment variables: | |
1322 | CC C compiler command | |
1323 | CFLAGS C compiler flags | |
1324 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1325 | nonstandard directory <lib dir> | |
a8b2ad8d | 1326 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1327 | you have headers in a nonstandard directory <include dir> | |
b3076f16 | 1328 | CPP C preprocessor |
1329 | ||
1330 | Use these variables to override the choices made by `configure' or to help | |
1331 | it to find libraries and programs with nonstandard names/locations. | |
1332 | ||
63c95a47 | 1333 | Report bugs to <evilnet-devel@lists.sourceforge.net>. |
b3076f16 | 1334 | _ACEOF |
a8b2ad8d | 1335 | ac_status=$? |
b3076f16 | 1336 | fi |
1337 | ||
1338 | if test "$ac_init_help" = "recursive"; then | |
1339 | # If there are subdirs, report their specific --help. | |
b3076f16 | 1340 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
a8b2ad8d | 1341 | test -d "$ac_dir" || continue |
b3076f16 | 1342 | ac_builddir=. |
1343 | ||
a8b2ad8d | 1344 | case "$ac_dir" in |
1345 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1346 | *) | |
b3076f16 | 1347 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a8b2ad8d | 1348 | # A ".." for each directory in $ac_dir_suffix. |
1349 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1350 | case $ac_top_builddir_sub in | |
1351 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1352 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1353 | esac ;; | |
1354 | esac | |
1355 | ac_abs_top_builddir=$ac_pwd | |
1356 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1357 | # for backward compatibility: | |
1358 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 1359 | |
1360 | case $srcdir in | |
a8b2ad8d | 1361 | .) # We are building in place. |
b3076f16 | 1362 | ac_srcdir=. |
a8b2ad8d | 1363 | ac_top_srcdir=$ac_top_builddir_sub |
1364 | ac_abs_top_srcdir=$ac_pwd ;; | |
1365 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 1366 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 1367 | ac_top_srcdir=$srcdir |
1368 | ac_abs_top_srcdir=$srcdir ;; | |
1369 | *) # Relative name. | |
1370 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1371 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1372 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 1373 | esac |
a8b2ad8d | 1374 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1375 | ||
1376 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1377 | # Check for guested configure. | |
1378 | if test -f "$ac_srcdir/configure.gnu"; then | |
1379 | echo && | |
1380 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1381 | elif test -f "$ac_srcdir/configure"; then | |
1382 | echo && | |
1383 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b3076f16 | 1384 | else |
1385 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
a8b2ad8d | 1386 | fi || ac_status=$? |
1387 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b3076f16 | 1388 | done |
1389 | fi | |
1390 | ||
a8b2ad8d | 1391 | test -n "$ac_init_help" && exit $ac_status |
b3076f16 | 1392 | if $ac_init_version; then |
1393 | cat <<\_ACEOF | |
63c95a47 | 1394 | X3 configure 1.5 |
a8b2ad8d | 1395 | generated by GNU Autoconf 2.60 |
b3076f16 | 1396 | |
a8b2ad8d | 1397 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1398 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
b3076f16 | 1399 | This configure script is free software; the Free Software Foundation |
1400 | gives unlimited permission to copy, distribute and modify it. | |
1401 | _ACEOF | |
a8b2ad8d | 1402 | exit |
b3076f16 | 1403 | fi |
a8b2ad8d | 1404 | cat >config.log <<_ACEOF |
b3076f16 | 1405 | This file contains any messages produced by compilers while |
1406 | running configure, to aid debugging if configure makes a mistake. | |
1407 | ||
63c95a47 | 1408 | It was created by X3 $as_me 1.5, which was |
a8b2ad8d | 1409 | generated by GNU Autoconf 2.60. Invocation command line was |
b3076f16 | 1410 | |
1411 | $ $0 $@ | |
1412 | ||
1413 | _ACEOF | |
a8b2ad8d | 1414 | exec 5>>config.log |
b3076f16 | 1415 | { |
1416 | cat <<_ASUNAME | |
1417 | ## --------- ## | |
1418 | ## Platform. ## | |
1419 | ## --------- ## | |
1420 | ||
1421 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1422 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1423 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1424 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1425 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1426 | ||
1427 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1428 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1429 | ||
1430 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1431 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1432 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
a8b2ad8d | 1433 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b3076f16 | 1434 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1435 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1436 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1437 | ||
1438 | _ASUNAME | |
1439 | ||
1440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1441 | for as_dir in $PATH | |
1442 | do | |
1443 | IFS=$as_save_IFS | |
1444 | test -z "$as_dir" && as_dir=. | |
1445 | echo "PATH: $as_dir" | |
1446 | done | |
a8b2ad8d | 1447 | IFS=$as_save_IFS |
b3076f16 | 1448 | |
1449 | } >&5 | |
1450 | ||
1451 | cat >&5 <<_ACEOF | |
1452 | ||
1453 | ||
1454 | ## ----------- ## | |
1455 | ## Core tests. ## | |
1456 | ## ----------- ## | |
1457 | ||
1458 | _ACEOF | |
1459 | ||
1460 | ||
1461 | # Keep a trace of the command line. | |
1462 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1463 | # Strip out --silent because we don't want to record it for future runs. | |
1464 | # Also quote any args containing shell meta-characters. | |
1465 | # Make two passes to allow for proper duplicate-argument suppression. | |
1466 | ac_configure_args= | |
1467 | ac_configure_args0= | |
1468 | ac_configure_args1= | |
b3076f16 | 1469 | ac_must_keep_next=false |
1470 | for ac_pass in 1 2 | |
1471 | do | |
1472 | for ac_arg | |
1473 | do | |
1474 | case $ac_arg in | |
1475 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1476 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1477 | | -silent | --silent | --silen | --sile | --sil) | |
1478 | continue ;; | |
a8b2ad8d | 1479 | *\'*) |
b3076f16 | 1480 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1481 | esac | |
1482 | case $ac_pass in | |
1483 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1484 | 2) | |
1485 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1486 | if test $ac_must_keep_next = true; then | |
1487 | ac_must_keep_next=false # Got value, back to normal. | |
1488 | else | |
1489 | case $ac_arg in | |
1490 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1491 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1492 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1493 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1494 | case "$ac_configure_args0 " in | |
1495 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1496 | esac | |
1497 | ;; | |
1498 | -* ) ac_must_keep_next=true ;; | |
1499 | esac | |
1500 | fi | |
a8b2ad8d | 1501 | ac_configure_args="$ac_configure_args '$ac_arg'" |
b3076f16 | 1502 | ;; |
1503 | esac | |
1504 | done | |
1505 | done | |
1506 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1507 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1508 | ||
1509 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1510 | # config.log. We remove comments because anyway the quotes in there | |
1511 | # would cause problems or look ugly. | |
a8b2ad8d | 1512 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1513 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b3076f16 | 1514 | trap 'exit_status=$? |
1515 | # Save into config.log some information that might help in debugging. | |
1516 | { | |
1517 | echo | |
1518 | ||
1519 | cat <<\_ASBOX | |
1520 | ## ---------------- ## | |
1521 | ## Cache variables. ## | |
1522 | ## ---------------- ## | |
1523 | _ASBOX | |
1524 | echo | |
1525 | # The following way of writing the cache mishandles newlines in values, | |
a8b2ad8d | 1526 | ( |
1527 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1528 | eval ac_val=\$$ac_var | |
1529 | case $ac_val in #( | |
1530 | *${as_nl}*) | |
1531 | case $ac_var in #( | |
1532 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1533 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1534 | esac | |
1535 | case $ac_var in #( | |
1536 | _ | IFS | as_nl) ;; #( | |
1537 | *) $as_unset $ac_var ;; | |
1538 | esac ;; | |
1539 | esac | |
1540 | done | |
b3076f16 | 1541 | (set) 2>&1 | |
a8b2ad8d | 1542 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1543 | *${as_nl}ac_space=\ *) | |
b3076f16 | 1544 | sed -n \ |
a8b2ad8d | 1545 | "s/'\''/'\''\\\\'\'''\''/g; |
1546 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1547 | ;; #( | |
b3076f16 | 1548 | *) |
a8b2ad8d | 1549 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 1550 | ;; |
a8b2ad8d | 1551 | esac | |
1552 | sort | |
1553 | ) | |
b3076f16 | 1554 | echo |
1555 | ||
1556 | cat <<\_ASBOX | |
1557 | ## ----------------- ## | |
1558 | ## Output variables. ## | |
1559 | ## ----------------- ## | |
1560 | _ASBOX | |
1561 | echo | |
1562 | for ac_var in $ac_subst_vars | |
1563 | do | |
a8b2ad8d | 1564 | eval ac_val=\$$ac_var |
1565 | case $ac_val in | |
1566 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1567 | esac | |
1568 | echo "$ac_var='\''$ac_val'\''" | |
b3076f16 | 1569 | done | sort |
1570 | echo | |
1571 | ||
1572 | if test -n "$ac_subst_files"; then | |
1573 | cat <<\_ASBOX | |
a8b2ad8d | 1574 | ## ------------------- ## |
1575 | ## File substitutions. ## | |
1576 | ## ------------------- ## | |
b3076f16 | 1577 | _ASBOX |
1578 | echo | |
1579 | for ac_var in $ac_subst_files | |
1580 | do | |
a8b2ad8d | 1581 | eval ac_val=\$$ac_var |
1582 | case $ac_val in | |
1583 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1584 | esac | |
1585 | echo "$ac_var='\''$ac_val'\''" | |
b3076f16 | 1586 | done | sort |
1587 | echo | |
1588 | fi | |
1589 | ||
1590 | if test -s confdefs.h; then | |
1591 | cat <<\_ASBOX | |
1592 | ## ----------- ## | |
1593 | ## confdefs.h. ## | |
1594 | ## ----------- ## | |
1595 | _ASBOX | |
1596 | echo | |
a8b2ad8d | 1597 | cat confdefs.h |
b3076f16 | 1598 | echo |
1599 | fi | |
1600 | test "$ac_signal" != 0 && | |
1601 | echo "$as_me: caught signal $ac_signal" | |
1602 | echo "$as_me: exit $exit_status" | |
1603 | } >&5 | |
a8b2ad8d | 1604 | rm -f core *.core core.conftest.* && |
1605 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b3076f16 | 1606 | exit $exit_status |
a8b2ad8d | 1607 | ' 0 |
b3076f16 | 1608 | for ac_signal in 1 2 13 15; do |
1609 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1610 | done | |
1611 | ac_signal=0 | |
1612 | ||
1613 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
a8b2ad8d | 1614 | rm -f -r conftest* confdefs.h |
b3076f16 | 1615 | |
1616 | # Predefined preprocessor variables. | |
1617 | ||
1618 | cat >>confdefs.h <<_ACEOF | |
1619 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1620 | _ACEOF | |
1621 | ||
1622 | ||
1623 | cat >>confdefs.h <<_ACEOF | |
1624 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1625 | _ACEOF | |
1626 | ||
1627 | ||
1628 | cat >>confdefs.h <<_ACEOF | |
1629 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1630 | _ACEOF | |
1631 | ||
1632 | ||
1633 | cat >>confdefs.h <<_ACEOF | |
1634 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1635 | _ACEOF | |
1636 | ||
1637 | ||
1638 | cat >>confdefs.h <<_ACEOF | |
1639 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1640 | _ACEOF | |
1641 | ||
1642 | ||
1643 | # Let the site file select an alternate cache file if it wants to. | |
1644 | # Prefer explicitly selected file to automatically selected ones. | |
a8b2ad8d | 1645 | if test -n "$CONFIG_SITE"; then |
1646 | set x "$CONFIG_SITE" | |
1647 | elif test "x$prefix" != xNONE; then | |
1648 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1649 | else | |
1650 | set x "$ac_default_prefix/share/config.site" \ | |
1651 | "$ac_default_prefix/etc/config.site" | |
b3076f16 | 1652 | fi |
a8b2ad8d | 1653 | shift |
1654 | for ac_site_file | |
1655 | do | |
b3076f16 | 1656 | if test -r "$ac_site_file"; then |
1657 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1658 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1659 | sed 's/^/| /' "$ac_site_file" >&5 | |
1660 | . "$ac_site_file" | |
1661 | fi | |
1662 | done | |
1663 | ||
1664 | if test -r "$cache_file"; then | |
1665 | # Some versions of bash will fail to source /dev/null (special | |
1666 | # files actually), so we avoid doing that. | |
1667 | if test -f "$cache_file"; then | |
1668 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1669 | echo "$as_me: loading cache $cache_file" >&6;} | |
1670 | case $cache_file in | |
a8b2ad8d | 1671 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1672 | *) . "./$cache_file";; | |
b3076f16 | 1673 | esac |
1674 | fi | |
1675 | else | |
1676 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1677 | echo "$as_me: creating cache $cache_file" >&6;} | |
1678 | >$cache_file | |
1679 | fi | |
1680 | ||
1681 | # Check that the precious variables saved in the cache have kept the same | |
1682 | # value. | |
1683 | ac_cache_corrupted=false | |
a8b2ad8d | 1684 | for ac_var in $ac_precious_vars; do |
b3076f16 | 1685 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1686 | eval ac_new_set=\$ac_env_${ac_var}_set | |
a8b2ad8d | 1687 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1688 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b3076f16 | 1689 | case $ac_old_set,$ac_new_set in |
1690 | set,) | |
1691 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1692 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1693 | ac_cache_corrupted=: ;; | |
1694 | ,set) | |
1695 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1696 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1697 | ac_cache_corrupted=: ;; | |
1698 | ,);; | |
1699 | *) | |
1700 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1701 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1702 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1703 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1704 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1705 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1706 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1707 | ac_cache_corrupted=: | |
1708 | fi;; | |
1709 | esac | |
1710 | # Pass precious variables to config.status. | |
1711 | if test "$ac_new_set" = set; then | |
1712 | case $ac_new_val in | |
a8b2ad8d | 1713 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b3076f16 | 1714 | *) ac_arg=$ac_var=$ac_new_val ;; |
1715 | esac | |
1716 | case " $ac_configure_args " in | |
1717 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1718 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1719 | esac | |
1720 | fi | |
1721 | done | |
1722 | if $ac_cache_corrupted; then | |
1723 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1724 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1725 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1726 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1727 | { (exit 1); exit 1; }; } | |
1728 | fi | |
1729 | ||
b3076f16 | 1730 | |
1731 | ||
1732 | ||
1733 | ||
1734 | ||
1735 | ||
1736 | ||
1737 | ||
1738 | ||
1739 | ||
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
a8b2ad8d | 1754 | ac_ext=c |
1755 | ac_cpp='$CPP $CPPFLAGS' | |
1756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3076f16 | 1759 | |
1760 | ||
ceafd592 | 1761 | CODENAME=X3 |
a8b2ad8d | 1762 | ac_config_headers="$ac_config_headers src/config.h" |
b3076f16 | 1763 | |
1764 | ||
1765 | ac_aux_dir= | |
a8b2ad8d | 1766 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1767 | if test -f "$ac_dir/install-sh"; then | |
b3076f16 | 1768 | ac_aux_dir=$ac_dir |
1769 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1770 | break | |
a8b2ad8d | 1771 | elif test -f "$ac_dir/install.sh"; then |
b3076f16 | 1772 | ac_aux_dir=$ac_dir |
1773 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1774 | break | |
a8b2ad8d | 1775 | elif test -f "$ac_dir/shtool"; then |
b3076f16 | 1776 | ac_aux_dir=$ac_dir |
1777 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1778 | break | |
1779 | fi | |
1780 | done | |
1781 | if test -z "$ac_aux_dir"; then | |
a8b2ad8d | 1782 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1783 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
b3076f16 | 1784 | { (exit 1); exit 1; }; } |
1785 | fi | |
a8b2ad8d | 1786 | |
1787 | # These three variables are undocumented and unsupported, | |
1788 | # and are intended to be withdrawn in a future Autoconf release. | |
1789 | # They can cause serious problems if a builder's source tree is in a directory | |
1790 | # whose full name contains unusual characters. | |
1791 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1792 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1793 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1794 | ||
b3076f16 | 1795 | |
1796 | # Make sure we can run config.sub. | |
a8b2ad8d | 1797 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1798 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1799 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
b3076f16 | 1800 | { (exit 1); exit 1; }; } |
1801 | ||
a8b2ad8d | 1802 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1803 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
b3076f16 | 1804 | if test "${ac_cv_build+set}" = set; then |
1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1806 | else | |
a8b2ad8d | 1807 | ac_build_alias=$build_alias |
1808 | test "x$ac_build_alias" = x && | |
1809 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1810 | test "x$ac_build_alias" = x && | |
b3076f16 | 1811 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1812 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1813 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 1814 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1815 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1816 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
b3076f16 | 1817 | { (exit 1); exit 1; }; } |
1818 | ||
1819 | fi | |
a8b2ad8d | 1820 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1821 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1822 | case $ac_cv_build in | |
1823 | *-*-*) ;; | |
1824 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1825 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1826 | { (exit 1); exit 1; }; };; | |
1827 | esac | |
b3076f16 | 1828 | build=$ac_cv_build |
a8b2ad8d | 1829 | ac_save_IFS=$IFS; IFS='-' |
1830 | set x $ac_cv_build | |
1831 | shift | |
1832 | build_cpu=$1 | |
1833 | build_vendor=$2 | |
1834 | shift; shift | |
1835 | # Remember, the first character of IFS is used to create $*, | |
1836 | # except with old shells: | |
1837 | build_os=$* | |
1838 | IFS=$ac_save_IFS | |
1839 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1840 | ||
1841 | ||
1842 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
1843 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
b3076f16 | 1844 | if test "${ac_cv_host+set}" = set; then |
1845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1846 | else | |
a8b2ad8d | 1847 | if test "x$host_alias" = x; then |
1848 | ac_cv_host=$ac_cv_build | |
1849 | else | |
1850 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1851 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1852 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
b3076f16 | 1853 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1854 | fi |
b3076f16 | 1855 | |
1856 | fi | |
a8b2ad8d | 1857 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1858 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1859 | case $ac_cv_host in | |
1860 | *-*-*) ;; | |
1861 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1862 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1863 | { (exit 1); exit 1; }; };; | |
1864 | esac | |
b3076f16 | 1865 | host=$ac_cv_host |
a8b2ad8d | 1866 | ac_save_IFS=$IFS; IFS='-' |
1867 | set x $ac_cv_host | |
1868 | shift | |
1869 | host_cpu=$1 | |
1870 | host_vendor=$2 | |
1871 | shift; shift | |
1872 | # Remember, the first character of IFS is used to create $*, | |
1873 | # except with old shells: | |
1874 | host_os=$* | |
1875 | IFS=$ac_save_IFS | |
1876 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
1877 | ||
1878 | ||
1879 | { echo "$as_me:$LINENO: checking target system type" >&5 | |
1880 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
b3076f16 | 1881 | if test "${ac_cv_target+set}" = set; then |
1882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1883 | else | |
a8b2ad8d | 1884 | if test "x$target_alias" = x; then |
1885 | ac_cv_target=$ac_cv_host | |
1886 | else | |
1887 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1888 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
1889 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
b3076f16 | 1890 | { (exit 1); exit 1; }; } |
a8b2ad8d | 1891 | fi |
b3076f16 | 1892 | |
1893 | fi | |
a8b2ad8d | 1894 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1895 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
1896 | case $ac_cv_target in | |
1897 | *-*-*) ;; | |
1898 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
1899 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
1900 | { (exit 1); exit 1; }; };; | |
1901 | esac | |
b3076f16 | 1902 | target=$ac_cv_target |
a8b2ad8d | 1903 | ac_save_IFS=$IFS; IFS='-' |
1904 | set x $ac_cv_target | |
1905 | shift | |
1906 | target_cpu=$1 | |
1907 | target_vendor=$2 | |
1908 | shift; shift | |
1909 | # Remember, the first character of IFS is used to create $*, | |
1910 | # except with old shells: | |
1911 | target_os=$* | |
1912 | IFS=$ac_save_IFS | |
1913 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b3076f16 | 1914 | |
1915 | ||
1916 | # The aliases save the names the user supplied, while $host etc. | |
1917 | # will get canonicalized. | |
1918 | test -n "$target_alias" && | |
1919 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1920 | NONENONEs,x,x, && | |
1921 | program_prefix=${target_alias}- | |
ec1a68c8 | 1922 | am__api_version="1.9" |
b3076f16 | 1923 | # Find a good install program. We prefer a C program (faster), |
1924 | # so one script is as good as another. But avoid the broken or | |
1925 | # incompatible versions: | |
1926 | # SysV /etc/install, /usr/sbin/install | |
1927 | # SunOS /usr/etc/install | |
1928 | # IRIX /sbin/install | |
1929 | # AIX /bin/install | |
1930 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1931 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1932 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1933 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1934 | # OS/2's system install, which has a completely different semantic | |
1935 | # ./install, which can be erroneously created by make from ./install.sh. | |
a8b2ad8d | 1936 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1937 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
b3076f16 | 1938 | if test -z "$INSTALL"; then |
1939 | if test "${ac_cv_path_install+set}" = set; then | |
1940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1941 | else | |
1942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1943 | for as_dir in $PATH | |
1944 | do | |
1945 | IFS=$as_save_IFS | |
1946 | test -z "$as_dir" && as_dir=. | |
1947 | # Account for people who put trailing slashes in PATH elements. | |
1948 | case $as_dir/ in | |
1949 | ./ | .// | /cC/* | \ | |
1950 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1951 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1952 | /usr/ucb/* ) ;; | |
1953 | *) | |
1954 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1955 | # Don't use installbsd from OSF since it installs stuff as root | |
1956 | # by default. | |
1957 | for ac_prog in ginstall scoinst install; do | |
1958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 1959 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
b3076f16 | 1960 | if test $ac_prog = install && |
1961 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1962 | # AIX install. It has an incompatible calling convention. | |
1963 | : | |
1964 | elif test $ac_prog = install && | |
1965 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1966 | # program-specific install script used by HP pwplus--don't use. | |
1967 | : | |
1968 | else | |
1969 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1970 | break 3 | |
1971 | fi | |
1972 | fi | |
1973 | done | |
1974 | done | |
1975 | ;; | |
1976 | esac | |
1977 | done | |
a8b2ad8d | 1978 | IFS=$as_save_IFS |
b3076f16 | 1979 | |
1980 | ||
1981 | fi | |
1982 | if test "${ac_cv_path_install+set}" = set; then | |
1983 | INSTALL=$ac_cv_path_install | |
1984 | else | |
a8b2ad8d | 1985 | # As a last resort, use the slow shell script. Don't cache a |
1986 | # value for INSTALL within a source directory, because that will | |
b3076f16 | 1987 | # break other packages using the cache if that directory is |
a8b2ad8d | 1988 | # removed, or if the value is a relative name. |
b3076f16 | 1989 | INSTALL=$ac_install_sh |
1990 | fi | |
1991 | fi | |
a8b2ad8d | 1992 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1993 | echo "${ECHO_T}$INSTALL" >&6; } | |
b3076f16 | 1994 | |
1995 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1996 | # It thinks the first close brace ends the variable substitution. | |
1997 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1998 | ||
1999 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2000 | ||
2001 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2002 | ||
a8b2ad8d | 2003 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2004 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
b3076f16 | 2005 | # Just in case |
2006 | sleep 1 | |
ec1a68c8 | 2007 | echo timestamp > conftest.file |
b3076f16 | 2008 | # Do `set' in a subshell so we don't clobber the current shell's |
2009 | # arguments. Must try -L first in case configure is actually a | |
2010 | # symlink; some systems play weird games with the mod time of symlinks | |
2011 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2012 | # directory). | |
2013 | if ( | |
ec1a68c8 | 2014 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
b3076f16 | 2015 | if test "$*" = "X"; then |
2016 | # -L didn't work. | |
ec1a68c8 | 2017 | set X `ls -t $srcdir/configure conftest.file` |
b3076f16 | 2018 | fi |
ec1a68c8 | 2019 | rm -f conftest.file |
2020 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2021 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b3076f16 | 2022 | |
2023 | # If neither matched, then we have a broken ls. This can happen | |
2024 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2025 | # broken ls alias from the environment. This has actually | |
2026 | # happened. Such a system could not be considered "sane". | |
2027 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2028 | alias in your environment" >&5 | |
2029 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2030 | alias in your environment" >&2;} | |
2031 | { (exit 1); exit 1; }; } | |
2032 | fi | |
2033 | ||
ec1a68c8 | 2034 | test "$2" = conftest.file |
b3076f16 | 2035 | ) |
2036 | then | |
2037 | # Ok. | |
2038 | : | |
2039 | else | |
2040 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2041 | Check your system clock" >&5 | |
2042 | echo "$as_me: error: newly created file is older than distributed files! | |
2043 | Check your system clock" >&2;} | |
2044 | { (exit 1); exit 1; }; } | |
2045 | fi | |
a8b2ad8d | 2046 | { echo "$as_me:$LINENO: result: yes" >&5 |
2047 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2048 | test "$program_prefix" != NONE && |
a8b2ad8d | 2049 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
b3076f16 | 2050 | # Use a double $ so make ignores it. |
2051 | test "$program_suffix" != NONE && | |
a8b2ad8d | 2052 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
b3076f16 | 2053 | # Double any \ or $. echo might interpret backslashes. |
2054 | # By default was `s,x,x', remove it if useless. | |
2055 | cat <<\_ACEOF >conftest.sed | |
2056 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2057 | _ACEOF | |
2058 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
a8b2ad8d | 2059 | rm -f conftest.sed |
b3076f16 | 2060 | |
ec1a68c8 | 2061 | # expand $ac_aux_dir to an absolute path |
2062 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2063 | ||
2064 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2065 | # Use eval to expand $SHELL | |
2066 | if eval "$MISSING --run true"; then | |
2067 | am_missing_run="$MISSING --run " | |
2068 | else | |
2069 | am_missing_run= | |
2070 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2071 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2072 | fi | |
2073 | ||
2074 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2075 | # We used to keeping the `.' as first argument, in order to | |
2076 | # allow $(mkdir_p) to be used without argument. As in | |
2077 | # $(mkdir_p) $(somedir) | |
2078 | # where $(somedir) is conditionally defined. However this is wrong | |
2079 | # for two reasons: | |
2080 | # 1. if the package is installed by a user who cannot write `.' | |
2081 | # make install will fail, | |
2082 | # 2. the above comment should most certainly read | |
2083 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2084 | # so it does not work when $(somedir) is undefined and | |
2085 | # $(DESTDIR) is not. | |
2086 | # To support the latter case, we have to write | |
2087 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2088 | # so the `.' trick is pointless. | |
2089 | mkdir_p='mkdir -p --' | |
2090 | else | |
2091 | # On NextStep and OpenStep, the `mkdir' command does not | |
2092 | # recognize any option. It will interpret all options as | |
2093 | # directories to create, and then abort because `.' already | |
2094 | # exists. | |
2095 | for d in ./-p ./--version; | |
2096 | do | |
2097 | test -d $d && rmdir $d | |
2098 | done | |
2099 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2100 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2101 | mkdir_p='$(mkinstalldirs)' | |
2102 | else | |
2103 | mkdir_p='$(install_sh) -d' | |
2104 | fi | |
2105 | fi | |
2106 | ||
2107 | for ac_prog in gawk mawk nawk awk | |
2108 | do | |
2109 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2110 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 2111 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2113 | if test "${ac_cv_prog_AWK+set}" = set; then |
2114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2115 | else | |
2116 | if test -n "$AWK"; then | |
2117 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2118 | else | |
2119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2120 | for as_dir in $PATH | |
2121 | do | |
2122 | IFS=$as_save_IFS | |
2123 | test -z "$as_dir" && as_dir=. | |
2124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2126 | ac_cv_prog_AWK="$ac_prog" |
2127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2128 | break 2 | |
2129 | fi | |
2130 | done | |
2131 | done | |
a8b2ad8d | 2132 | IFS=$as_save_IFS |
ec1a68c8 | 2133 | |
2134 | fi | |
2135 | fi | |
2136 | AWK=$ac_cv_prog_AWK | |
2137 | if test -n "$AWK"; then | |
a8b2ad8d | 2138 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2139 | echo "${ECHO_T}$AWK" >&6; } | |
ec1a68c8 | 2140 | else |
a8b2ad8d | 2141 | { echo "$as_me:$LINENO: result: no" >&5 |
2142 | echo "${ECHO_T}no" >&6; } | |
ec1a68c8 | 2143 | fi |
2144 | ||
a8b2ad8d | 2145 | |
ec1a68c8 | 2146 | test -n "$AWK" && break |
2147 | done | |
2148 | ||
a8b2ad8d | 2149 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2150 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2151 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2152 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 2153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2154 | else | |
2155 | cat >conftest.make <<\_ACEOF | |
a8b2ad8d | 2156 | SHELL = /bin/sh |
b3076f16 | 2157 | all: |
a8b2ad8d | 2158 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
b3076f16 | 2159 | _ACEOF |
2160 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
a8b2ad8d | 2161 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2162 | *@@@%%%=?*=@@@%%%*) | |
2163 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2164 | *) | |
2165 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2166 | esac | |
b3076f16 | 2167 | rm -f conftest.make |
2168 | fi | |
a8b2ad8d | 2169 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2170 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2171 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2172 | SET_MAKE= |
2173 | else | |
a8b2ad8d | 2174 | { echo "$as_me:$LINENO: result: no" >&5 |
2175 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2176 | SET_MAKE="MAKE=${MAKE-make}" |
2177 | fi | |
2178 | ||
ec1a68c8 | 2179 | rm -rf .tst 2>/dev/null |
2180 | mkdir .tst 2>/dev/null | |
2181 | if test -d .tst; then | |
2182 | am__leading_dot=. | |
2183 | else | |
2184 | am__leading_dot=_ | |
2185 | fi | |
2186 | rmdir .tst 2>/dev/null | |
b3076f16 | 2187 | |
ec1a68c8 | 2188 | # test to see if srcdir already configured |
2189 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2190 | test -f $srcdir/config.status; then | |
b3076f16 | 2191 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2192 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2193 | { (exit 1); exit 1; }; } | |
2194 | fi | |
2195 | ||
ec1a68c8 | 2196 | # test whether we have cygpath |
2197 | if test -z "$CYGPATH_W"; then | |
2198 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2199 | CYGPATH_W='cygpath -w' | |
2200 | else | |
2201 | CYGPATH_W=echo | |
2202 | fi | |
2203 | fi | |
2204 | ||
2205 | ||
2206 | # Define the identity of the package. | |
ceafd592 | 2207 | PACKAGE='x3' |
63c95a47 | 2208 | VERSION='1.5' |
ec1a68c8 | 2209 | |
2210 | ||
b3076f16 | 2211 | cat >>confdefs.h <<_ACEOF |
2212 | #define PACKAGE "$PACKAGE" | |
2213 | _ACEOF | |
2214 | ||
2215 | ||
2216 | cat >>confdefs.h <<_ACEOF | |
2217 | #define VERSION "$VERSION" | |
2218 | _ACEOF | |
2219 | ||
ec1a68c8 | 2220 | # Some tools Automake needs. |
b3076f16 | 2221 | |
ec1a68c8 | 2222 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
b3076f16 | 2223 | |
ec1a68c8 | 2224 | |
2225 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2226 | ||
2227 | ||
2228 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2229 | ||
2230 | ||
2231 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2232 | ||
2233 | ||
2234 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2235 | ||
2236 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2237 | ||
2238 | # Installed binaries are usually stripped using `strip' when the user | |
2239 | # run `make install-strip'. However `strip' might not be the right | |
2240 | # tool to use in cross-compilation environments, therefore Automake | |
2241 | # will honor the `STRIP' environment variable to overrule this program. | |
2242 | if test "$cross_compiling" != no; then | |
2243 | if test -n "$ac_tool_prefix"; then | |
2244 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2245 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a8b2ad8d | 2246 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2248 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3076f16 | 2250 | else |
ec1a68c8 | 2251 | if test -n "$STRIP"; then |
2252 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2253 | else | |
2254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2255 | for as_dir in $PATH | |
2256 | do | |
2257 | IFS=$as_save_IFS | |
2258 | test -z "$as_dir" && as_dir=. | |
2259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2261 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2263 | break 2 | |
2264 | fi | |
2265 | done | |
2266 | done | |
a8b2ad8d | 2267 | IFS=$as_save_IFS |
b3076f16 | 2268 | |
ec1a68c8 | 2269 | fi |
2270 | fi | |
2271 | STRIP=$ac_cv_prog_STRIP | |
2272 | if test -n "$STRIP"; then | |
a8b2ad8d | 2273 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2274 | echo "${ECHO_T}$STRIP" >&6; } | |
b3076f16 | 2275 | else |
a8b2ad8d | 2276 | { echo "$as_me:$LINENO: result: no" >&5 |
2277 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2278 | fi |
b2cf3d66 | 2279 | |
a8b2ad8d | 2280 | |
b3076f16 | 2281 | fi |
ec1a68c8 | 2282 | if test -z "$ac_cv_prog_STRIP"; then |
2283 | ac_ct_STRIP=$STRIP | |
2284 | # Extract the first word of "strip", so it can be a program name with args. | |
2285 | set dummy strip; ac_word=$2 | |
a8b2ad8d | 2286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ec1a68c8 | 2288 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2290 | else | |
2291 | if test -n "$ac_ct_STRIP"; then | |
2292 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2293 | else | |
2294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2295 | for as_dir in $PATH | |
2296 | do | |
2297 | IFS=$as_save_IFS | |
2298 | test -z "$as_dir" && as_dir=. | |
2299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ec1a68c8 | 2301 | ac_cv_prog_ac_ct_STRIP="strip" |
2302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2303 | break 2 | |
2304 | fi | |
2305 | done | |
2306 | done | |
a8b2ad8d | 2307 | IFS=$as_save_IFS |
b3076f16 | 2308 | |
ec1a68c8 | 2309 | fi |
2310 | fi | |
2311 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2312 | if test -n "$ac_ct_STRIP"; then | |
a8b2ad8d | 2313 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2314 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
b3076f16 | 2315 | else |
a8b2ad8d | 2316 | { echo "$as_me:$LINENO: result: no" >&5 |
2317 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2318 | fi |
2319 | ||
a8b2ad8d | 2320 | if test "x$ac_ct_STRIP" = x; then |
2321 | STRIP=":" | |
2322 | else | |
2323 | case $cross_compiling:$ac_tool_warned in | |
2324 | yes:) | |
2325 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2326 | whose name does not start with the host triplet. If you think this | |
2327 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2328 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2329 | whose name does not start with the host triplet. If you think this | |
2330 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2331 | ac_tool_warned=yes ;; | |
2332 | esac | |
2333 | STRIP=$ac_ct_STRIP | |
2334 | fi | |
b2cf3d66 | 2335 | else |
ec1a68c8 | 2336 | STRIP="$ac_cv_prog_STRIP" |
b3076f16 | 2337 | fi |
b3076f16 | 2338 | |
ec1a68c8 | 2339 | fi |
2340 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2341 | ||
2342 | # We need awk for the "check" target. The system "awk" is bad on | |
2343 | # some platforms. | |
2344 | # Always define AMTAR for backward compatibility. | |
2345 | ||
2346 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2347 | ||
2348 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2349 | ||
2350 | ||
2351 | ||
2352 | ||
b3076f16 | 2353 | |
a8b2ad8d | 2354 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2355 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
2356 | # Check whether --enable-maintainer-mode was given. | |
b3076f16 | 2357 | if test "${enable_maintainer_mode+set}" = set; then |
a8b2ad8d | 2358 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
b3076f16 | 2359 | else |
2360 | USE_MAINTAINER_MODE=no | |
a8b2ad8d | 2361 | fi |
2362 | ||
2363 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2364 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
b3076f16 | 2365 | |
2366 | ||
2367 | if test $USE_MAINTAINER_MODE = yes; then | |
2368 | MAINTAINER_MODE_TRUE= | |
2369 | MAINTAINER_MODE_FALSE='#' | |
2370 | else | |
2371 | MAINTAINER_MODE_TRUE='#' | |
2372 | MAINTAINER_MODE_FALSE= | |
2373 | fi | |
ec1a68c8 | 2374 | |
b3076f16 | 2375 | MAINT=$MAINTAINER_MODE_TRUE |
2376 | ||
2377 | ||
2378 | ||
ec1a68c8 | 2379 | DEPDIR="${am__leading_dot}deps" |
2380 | ||
a8b2ad8d | 2381 | ac_config_commands="$ac_config_commands depfiles" |
ec1a68c8 | 2382 | |
2383 | ||
2384 | am_make=${MAKE-make} | |
2385 | cat > confinc << 'END' | |
2386 | am__doit: | |
2387 | @echo done | |
2388 | .PHONY: am__doit | |
2389 | END | |
2390 | # If we don't find an include directive, just comment out the code. | |
a8b2ad8d | 2391 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2392 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
ec1a68c8 | 2393 | am__include="#" |
2394 | am__quote= | |
2395 | _am_result=none | |
2396 | # First try GNU make style include. | |
2397 | echo "include confinc" > confmf | |
2398 | # We grep out `Entering directory' and `Leaving directory' | |
2399 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2400 | # In particular we don't look at `^make:' because GNU make might | |
2401 | # be invoked under some other name (usually "gmake"), in which | |
2402 | # case it prints its new name instead of `make'. | |
2403 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2404 | am__include=include | |
2405 | am__quote= | |
2406 | _am_result=GNU | |
2407 | fi | |
2408 | # Now try BSD make style include. | |
2409 | if test "$am__include" = "#"; then | |
2410 | echo '.include "confinc"' > confmf | |
2411 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2412 | am__include=.include | |
2413 | am__quote="\"" | |
2414 | _am_result=BSD | |
2415 | fi | |
2416 | fi | |
2417 | ||
2418 | ||
a8b2ad8d | 2419 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
2420 | echo "${ECHO_T}$_am_result" >&6; } | |
ec1a68c8 | 2421 | rm -f confinc confmf |
2422 | ||
a8b2ad8d | 2423 | # Check whether --enable-dependency-tracking was given. |
ec1a68c8 | 2424 | if test "${enable_dependency_tracking+set}" = set; then |
a8b2ad8d | 2425 | enableval=$enable_dependency_tracking; |
2426 | fi | |
ec1a68c8 | 2427 | |
ec1a68c8 | 2428 | if test "x$enable_dependency_tracking" != xno; then |
2429 | am_depcomp="$ac_aux_dir/depcomp" | |
2430 | AMDEPBACKSLASH='\' | |
2431 | fi | |
2432 | ||
2433 | ||
2434 | if test "x$enable_dependency_tracking" != xno; then | |
2435 | AMDEP_TRUE= | |
2436 | AMDEP_FALSE='#' | |
2437 | else | |
2438 | AMDEP_TRUE='#' | |
2439 | AMDEP_FALSE= | |
2440 | fi | |
2441 | ||
2442 | ||
2443 | ||
b3076f16 | 2444 | ac_ext=c |
2445 | ac_cpp='$CPP $CPPFLAGS' | |
2446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2449 | if test -n "$ac_tool_prefix"; then | |
2450 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2451 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a8b2ad8d | 2452 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2454 | if test "${ac_cv_prog_CC+set}" = set; then |
2455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2456 | else | |
2457 | if test -n "$CC"; then | |
2458 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2459 | else | |
2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2461 | for as_dir in $PATH | |
2462 | do | |
2463 | IFS=$as_save_IFS | |
2464 | test -z "$as_dir" && as_dir=. | |
2465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2467 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2469 | break 2 | |
2470 | fi | |
2471 | done | |
2472 | done | |
a8b2ad8d | 2473 | IFS=$as_save_IFS |
b3076f16 | 2474 | |
2475 | fi | |
2476 | fi | |
2477 | CC=$ac_cv_prog_CC | |
2478 | if test -n "$CC"; then | |
a8b2ad8d | 2479 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2480 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2481 | else |
a8b2ad8d | 2482 | { echo "$as_me:$LINENO: result: no" >&5 |
2483 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2484 | fi |
2485 | ||
a8b2ad8d | 2486 | |
b3076f16 | 2487 | fi |
2488 | if test -z "$ac_cv_prog_CC"; then | |
2489 | ac_ct_CC=$CC | |
2490 | # Extract the first word of "gcc", so it can be a program name with args. | |
2491 | set dummy gcc; ac_word=$2 | |
a8b2ad8d | 2492 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2494 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2496 | else | |
2497 | if test -n "$ac_ct_CC"; then | |
2498 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2499 | else | |
2500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2501 | for as_dir in $PATH | |
2502 | do | |
2503 | IFS=$as_save_IFS | |
2504 | test -z "$as_dir" && as_dir=. | |
2505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2507 | ac_cv_prog_ac_ct_CC="gcc" |
2508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2509 | break 2 | |
2510 | fi | |
2511 | done | |
2512 | done | |
a8b2ad8d | 2513 | IFS=$as_save_IFS |
b3076f16 | 2514 | |
2515 | fi | |
2516 | fi | |
2517 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2518 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 2519 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2520 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 2521 | else |
a8b2ad8d | 2522 | { echo "$as_me:$LINENO: result: no" >&5 |
2523 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2524 | fi |
2525 | ||
a8b2ad8d | 2526 | if test "x$ac_ct_CC" = x; then |
2527 | CC="" | |
2528 | else | |
2529 | case $cross_compiling:$ac_tool_warned in | |
2530 | yes:) | |
2531 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2532 | whose name does not start with the host triplet. If you think this | |
2533 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2534 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2535 | whose name does not start with the host triplet. If you think this | |
2536 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2537 | ac_tool_warned=yes ;; | |
2538 | esac | |
2539 | CC=$ac_ct_CC | |
2540 | fi | |
b3076f16 | 2541 | else |
2542 | CC="$ac_cv_prog_CC" | |
2543 | fi | |
2544 | ||
2545 | if test -z "$CC"; then | |
a8b2ad8d | 2546 | if test -n "$ac_tool_prefix"; then |
2547 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 2548 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a8b2ad8d | 2549 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2551 | if test "${ac_cv_prog_CC+set}" = set; then |
2552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2553 | else | |
2554 | if test -n "$CC"; then | |
2555 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2556 | else | |
2557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2558 | for as_dir in $PATH | |
2559 | do | |
2560 | IFS=$as_save_IFS | |
2561 | test -z "$as_dir" && as_dir=. | |
2562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2564 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2566 | break 2 | |
2567 | fi | |
2568 | done | |
2569 | done | |
a8b2ad8d | 2570 | IFS=$as_save_IFS |
b3076f16 | 2571 | |
2572 | fi | |
2573 | fi | |
2574 | CC=$ac_cv_prog_CC | |
2575 | if test -n "$CC"; then | |
a8b2ad8d | 2576 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2577 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2578 | else |
a8b2ad8d | 2579 | { echo "$as_me:$LINENO: result: no" >&5 |
2580 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2581 | fi |
2582 | ||
b3076f16 | 2583 | |
a8b2ad8d | 2584 | fi |
b3076f16 | 2585 | fi |
2586 | if test -z "$CC"; then | |
2587 | # Extract the first word of "cc", so it can be a program name with args. | |
2588 | set dummy cc; ac_word=$2 | |
a8b2ad8d | 2589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2591 | if test "${ac_cv_prog_CC+set}" = set; then |
2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2593 | else | |
2594 | if test -n "$CC"; then | |
2595 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2596 | else | |
2597 | ac_prog_rejected=no | |
2598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2599 | for as_dir in $PATH | |
2600 | do | |
2601 | IFS=$as_save_IFS | |
2602 | test -z "$as_dir" && as_dir=. | |
2603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2605 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2606 | ac_prog_rejected=yes | |
2607 | continue | |
2608 | fi | |
2609 | ac_cv_prog_CC="cc" | |
2610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2611 | break 2 | |
2612 | fi | |
2613 | done | |
2614 | done | |
a8b2ad8d | 2615 | IFS=$as_save_IFS |
b3076f16 | 2616 | |
2617 | if test $ac_prog_rejected = yes; then | |
2618 | # We found a bogon in the path, so make sure we never use it. | |
2619 | set dummy $ac_cv_prog_CC | |
2620 | shift | |
2621 | if test $# != 0; then | |
2622 | # We chose a different compiler from the bogus one. | |
2623 | # However, it has the same basename, so the bogon will be chosen | |
2624 | # first if we set CC to just the basename; use the full file name. | |
2625 | shift | |
2626 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2627 | fi | |
2628 | fi | |
2629 | fi | |
2630 | fi | |
2631 | CC=$ac_cv_prog_CC | |
2632 | if test -n "$CC"; then | |
a8b2ad8d | 2633 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2634 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2635 | else |
a8b2ad8d | 2636 | { echo "$as_me:$LINENO: result: no" >&5 |
2637 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2638 | fi |
2639 | ||
a8b2ad8d | 2640 | |
b3076f16 | 2641 | fi |
2642 | if test -z "$CC"; then | |
2643 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 2644 | for ac_prog in cl.exe |
b3076f16 | 2645 | do |
2646 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2647 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a8b2ad8d | 2648 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2650 | if test "${ac_cv_prog_CC+set}" = set; then |
2651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2652 | else | |
2653 | if test -n "$CC"; then | |
2654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2655 | else | |
2656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2657 | for as_dir in $PATH | |
2658 | do | |
2659 | IFS=$as_save_IFS | |
2660 | test -z "$as_dir" && as_dir=. | |
2661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2663 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2665 | break 2 | |
2666 | fi | |
2667 | done | |
2668 | done | |
a8b2ad8d | 2669 | IFS=$as_save_IFS |
b3076f16 | 2670 | |
2671 | fi | |
2672 | fi | |
2673 | CC=$ac_cv_prog_CC | |
2674 | if test -n "$CC"; then | |
a8b2ad8d | 2675 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2676 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 2677 | else |
a8b2ad8d | 2678 | { echo "$as_me:$LINENO: result: no" >&5 |
2679 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2680 | fi |
2681 | ||
a8b2ad8d | 2682 | |
b3076f16 | 2683 | test -n "$CC" && break |
2684 | done | |
2685 | fi | |
2686 | if test -z "$CC"; then | |
2687 | ac_ct_CC=$CC | |
a8b2ad8d | 2688 | for ac_prog in cl.exe |
b3076f16 | 2689 | do |
2690 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2691 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 2692 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 2694 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2696 | else | |
2697 | if test -n "$ac_ct_CC"; then | |
2698 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2699 | else | |
2700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2701 | for as_dir in $PATH | |
2702 | do | |
2703 | IFS=$as_save_IFS | |
2704 | test -z "$as_dir" && as_dir=. | |
2705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 2706 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 2707 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2709 | break 2 | |
2710 | fi | |
2711 | done | |
2712 | done | |
a8b2ad8d | 2713 | IFS=$as_save_IFS |
b3076f16 | 2714 | |
2715 | fi | |
2716 | fi | |
2717 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2718 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 2719 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2720 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 2721 | else |
a8b2ad8d | 2722 | { echo "$as_me:$LINENO: result: no" >&5 |
2723 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 2724 | fi |
2725 | ||
a8b2ad8d | 2726 | |
b3076f16 | 2727 | test -n "$ac_ct_CC" && break |
2728 | done | |
2729 | ||
a8b2ad8d | 2730 | if test "x$ac_ct_CC" = x; then |
2731 | CC="" | |
2732 | else | |
2733 | case $cross_compiling:$ac_tool_warned in | |
2734 | yes:) | |
2735 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2736 | whose name does not start with the host triplet. If you think this | |
2737 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2738 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2739 | whose name does not start with the host triplet. If you think this | |
2740 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2741 | ac_tool_warned=yes ;; | |
2742 | esac | |
2743 | CC=$ac_ct_CC | |
2744 | fi | |
b3076f16 | 2745 | fi |
2746 | ||
2747 | fi | |
2748 | ||
2749 | ||
2750 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2751 | See \`config.log' for more details." >&5 | |
2752 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2753 | See \`config.log' for more details." >&2;} | |
2754 | { (exit 1); exit 1; }; } | |
2755 | ||
2756 | # Provide some information about the compiler. | |
a8b2ad8d | 2757 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
b3076f16 | 2758 | ac_compiler=`set X $ac_compile; echo $2` |
a8b2ad8d | 2759 | { (ac_try="$ac_compiler --version >&5" |
2760 | case "(($ac_try" in | |
2761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2762 | *) ac_try_echo=$ac_try;; | |
2763 | esac | |
2764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2765 | (eval "$ac_compiler --version >&5") 2>&5 | |
b3076f16 | 2766 | ac_status=$? |
2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2768 | (exit $ac_status); } | |
a8b2ad8d | 2769 | { (ac_try="$ac_compiler -v >&5" |
2770 | case "(($ac_try" in | |
2771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2772 | *) ac_try_echo=$ac_try;; | |
2773 | esac | |
2774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2775 | (eval "$ac_compiler -v >&5") 2>&5 | |
b3076f16 | 2776 | ac_status=$? |
2777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2778 | (exit $ac_status); } | |
a8b2ad8d | 2779 | { (ac_try="$ac_compiler -V >&5" |
2780 | case "(($ac_try" in | |
2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2782 | *) ac_try_echo=$ac_try;; | |
2783 | esac | |
2784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2785 | (eval "$ac_compiler -V >&5") 2>&5 | |
b3076f16 | 2786 | ac_status=$? |
2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2788 | (exit $ac_status); } | |
2789 | ||
2790 | cat >conftest.$ac_ext <<_ACEOF | |
2791 | /* confdefs.h. */ | |
2792 | _ACEOF | |
2793 | cat confdefs.h >>conftest.$ac_ext | |
2794 | cat >>conftest.$ac_ext <<_ACEOF | |
2795 | /* end confdefs.h. */ | |
2796 | ||
2797 | int | |
2798 | main () | |
2799 | { | |
2800 | ||
2801 | ; | |
2802 | return 0; | |
2803 | } | |
2804 | _ACEOF | |
2805 | ac_clean_files_save=$ac_clean_files | |
2806 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2807 | # Try to create an executable without -o first, disregard a.out. | |
2808 | # It will help us diagnose broken compilers, and finding out an intuition | |
2809 | # of exeext. | |
a8b2ad8d | 2810 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2811 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
b3076f16 | 2812 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a8b2ad8d | 2813 | # |
2814 | # List of possible output files, starting from the most likely. | |
2815 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2816 | # only as a last resort. b.out is created by i960 compilers. | |
2817 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2818 | # | |
2819 | # The IRIX 6 linker writes into existing files which may not be | |
2820 | # executable, retaining their permissions. Remove them first so a | |
2821 | # subsequent execution test works. | |
2822 | ac_rmfiles= | |
2823 | for ac_file in $ac_files | |
2824 | do | |
2825 | case $ac_file in | |
2826 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2827 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2828 | esac | |
2829 | done | |
2830 | rm -f $ac_rmfiles | |
2831 | ||
2832 | if { (ac_try="$ac_link_default" | |
2833 | case "(($ac_try" in | |
2834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2835 | *) ac_try_echo=$ac_try;; | |
2836 | esac | |
2837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2838 | (eval "$ac_link_default") 2>&5 | |
b3076f16 | 2839 | ac_status=$? |
2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2841 | (exit $ac_status); }; then | |
a8b2ad8d | 2842 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2843 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2844 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2845 | # so that the user can short-circuit this test for compilers unknown to | |
2846 | # Autoconf. | |
2847 | for ac_file in $ac_files | |
b3076f16 | 2848 | do |
2849 | test -f "$ac_file" || continue | |
2850 | case $ac_file in | |
a8b2ad8d | 2851 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
b3076f16 | 2852 | ;; |
2853 | [ab].out ) | |
2854 | # We found the default executable, but exeext='' is most | |
2855 | # certainly right. | |
2856 | break;; | |
2857 | *.* ) | |
a8b2ad8d | 2858 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2859 | then :; else | |
2860 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2861 | fi | |
2862 | # We set ac_cv_exeext here because the later test for it is not | |
2863 | # safe: cross compilers may not add the suffix if given an `-o' | |
2864 | # argument, so we may need to know it at that point already. | |
2865 | # Even if this section looks crufty: it has the advantage of | |
2866 | # actually working. | |
b3076f16 | 2867 | break;; |
2868 | * ) | |
2869 | break;; | |
2870 | esac | |
2871 | done | |
a8b2ad8d | 2872 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2873 | ||
b3076f16 | 2874 | else |
2875 | echo "$as_me: failed program was:" >&5 | |
2876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2877 | ||
2878 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2879 | See \`config.log' for more details." >&5 | |
2880 | echo "$as_me: error: C compiler cannot create executables | |
2881 | See \`config.log' for more details." >&2;} | |
2882 | { (exit 77); exit 77; }; } | |
2883 | fi | |
2884 | ||
2885 | ac_exeext=$ac_cv_exeext | |
a8b2ad8d | 2886 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2887 | echo "${ECHO_T}$ac_file" >&6; } | |
b3076f16 | 2888 | |
a8b2ad8d | 2889 | # Check that the compiler produces executables we can run. If not, either |
b3076f16 | 2890 | # the compiler is broken, or we cross compile. |
a8b2ad8d | 2891 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2892 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
b3076f16 | 2893 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2894 | # If not cross compiling, check that we can run a simple program. | |
2895 | if test "$cross_compiling" != yes; then | |
2896 | if { ac_try='./$ac_file' | |
a8b2ad8d | 2897 | { (case "(($ac_try" in |
2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2899 | *) ac_try_echo=$ac_try;; | |
2900 | esac | |
2901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2902 | (eval "$ac_try") 2>&5 | |
b3076f16 | 2903 | ac_status=$? |
2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2905 | (exit $ac_status); }; }; then | |
2906 | cross_compiling=no | |
2907 | else | |
2908 | if test "$cross_compiling" = maybe; then | |
2909 | cross_compiling=yes | |
2910 | else | |
2911 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2912 | If you meant to cross compile, use \`--host'. | |
2913 | See \`config.log' for more details." >&5 | |
2914 | echo "$as_me: error: cannot run C compiled programs. | |
2915 | If you meant to cross compile, use \`--host'. | |
2916 | See \`config.log' for more details." >&2;} | |
2917 | { (exit 1); exit 1; }; } | |
2918 | fi | |
2919 | fi | |
2920 | fi | |
a8b2ad8d | 2921 | { echo "$as_me:$LINENO: result: yes" >&5 |
2922 | echo "${ECHO_T}yes" >&6; } | |
b3076f16 | 2923 | |
2924 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2925 | ac_clean_files=$ac_clean_files_save | |
a8b2ad8d | 2926 | # Check that the compiler produces executables we can run. If not, either |
b3076f16 | 2927 | # the compiler is broken, or we cross compile. |
a8b2ad8d | 2928 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2929 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2930 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2931 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2932 | ||
2933 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2934 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2935 | if { (ac_try="$ac_link" | |
2936 | case "(($ac_try" in | |
2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2938 | *) ac_try_echo=$ac_try;; | |
2939 | esac | |
2940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2941 | (eval "$ac_link") 2>&5 | |
b3076f16 | 2942 | ac_status=$? |
2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2944 | (exit $ac_status); }; then | |
2945 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2946 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2947 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2948 | # `rm'. | |
2949 | for ac_file in conftest.exe conftest conftest.*; do | |
2950 | test -f "$ac_file" || continue | |
2951 | case $ac_file in | |
a8b2ad8d | 2952 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
b3076f16 | 2953 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b3076f16 | 2954 | break;; |
2955 | * ) break;; | |
2956 | esac | |
2957 | done | |
2958 | else | |
2959 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2960 | See \`config.log' for more details." >&5 | |
2961 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2962 | See \`config.log' for more details." >&2;} | |
2963 | { (exit 1); exit 1; }; } | |
2964 | fi | |
2965 | ||
2966 | rm -f conftest$ac_cv_exeext | |
a8b2ad8d | 2967 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2968 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
b3076f16 | 2969 | |
2970 | rm -f conftest.$ac_ext | |
2971 | EXEEXT=$ac_cv_exeext | |
2972 | ac_exeext=$EXEEXT | |
a8b2ad8d | 2973 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2974 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
b3076f16 | 2975 | if test "${ac_cv_objext+set}" = set; then |
2976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2977 | else | |
2978 | cat >conftest.$ac_ext <<_ACEOF | |
2979 | /* confdefs.h. */ | |
2980 | _ACEOF | |
2981 | cat confdefs.h >>conftest.$ac_ext | |
2982 | cat >>conftest.$ac_ext <<_ACEOF | |
2983 | /* end confdefs.h. */ | |
2984 | ||
2985 | int | |
2986 | main () | |
2987 | { | |
2988 | ||
2989 | ; | |
2990 | return 0; | |
2991 | } | |
2992 | _ACEOF | |
2993 | rm -f conftest.o conftest.obj | |
a8b2ad8d | 2994 | if { (ac_try="$ac_compile" |
2995 | case "(($ac_try" in | |
2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2997 | *) ac_try_echo=$ac_try;; | |
2998 | esac | |
2999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3000 | (eval "$ac_compile") 2>&5 | |
b3076f16 | 3001 | ac_status=$? |
3002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3003 | (exit $ac_status); }; then | |
a8b2ad8d | 3004 | for ac_file in conftest.o conftest.obj conftest.*; do |
3005 | test -f "$ac_file" || continue; | |
b3076f16 | 3006 | case $ac_file in |
a8b2ad8d | 3007 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
b3076f16 | 3008 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3009 | break;; | |
3010 | esac | |
3011 | done | |
3012 | else | |
3013 | echo "$as_me: failed program was:" >&5 | |
3014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3015 | ||
3016 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3017 | See \`config.log' for more details." >&5 | |
3018 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3019 | See \`config.log' for more details." >&2;} | |
3020 | { (exit 1); exit 1; }; } | |
3021 | fi | |
3022 | ||
3023 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3024 | fi | |
a8b2ad8d | 3025 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3026 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
b3076f16 | 3027 | OBJEXT=$ac_cv_objext |
3028 | ac_objext=$OBJEXT | |
a8b2ad8d | 3029 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3030 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
b3076f16 | 3031 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3033 | else | |
3034 | cat >conftest.$ac_ext <<_ACEOF | |
3035 | /* confdefs.h. */ | |
3036 | _ACEOF | |
3037 | cat confdefs.h >>conftest.$ac_ext | |
3038 | cat >>conftest.$ac_ext <<_ACEOF | |
3039 | /* end confdefs.h. */ | |
3040 | ||
3041 | int | |
3042 | main () | |
3043 | { | |
3044 | #ifndef __GNUC__ | |
3045 | choke me | |
3046 | #endif | |
3047 | ||
3048 | ; | |
3049 | return 0; | |
3050 | } | |
3051 | _ACEOF | |
3052 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3053 | if { (ac_try="$ac_compile" |
3054 | case "(($ac_try" in | |
3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3056 | *) ac_try_echo=$ac_try;; | |
3057 | esac | |
3058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3059 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3060 | ac_status=$? |
3061 | grep -v '^ *+' conftest.er1 >conftest.err | |
3062 | rm -f conftest.er1 | |
3063 | cat conftest.err >&5 | |
3064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3065 | (exit $ac_status); } && | |
a8b2ad8d | 3066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3067 | { (case "(($ac_try" in | |
3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3069 | *) ac_try_echo=$ac_try;; | |
3070 | esac | |
3071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3072 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3073 | ac_status=$? |
3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3075 | (exit $ac_status); }; } && | |
3076 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 3077 | { (case "(($ac_try" in |
3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3079 | *) ac_try_echo=$ac_try;; | |
3080 | esac | |
3081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3082 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3083 | ac_status=$? |
3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3085 | (exit $ac_status); }; }; then | |
3086 | ac_compiler_gnu=yes | |
3087 | else | |
3088 | echo "$as_me: failed program was:" >&5 | |
3089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3090 | ||
a8b2ad8d | 3091 | ac_compiler_gnu=no |
b3076f16 | 3092 | fi |
a8b2ad8d | 3093 | |
3094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3095 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3096 | ||
3097 | fi | |
a8b2ad8d | 3098 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3099 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
b3076f16 | 3100 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3101 | ac_test_CFLAGS=${CFLAGS+set} | |
3102 | ac_save_CFLAGS=$CFLAGS | |
a8b2ad8d | 3103 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3104 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
b3076f16 | 3105 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3107 | else | |
a8b2ad8d | 3108 | ac_save_c_werror_flag=$ac_c_werror_flag |
3109 | ac_c_werror_flag=yes | |
3110 | ac_cv_prog_cc_g=no | |
3111 | CFLAGS="-g" | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
3113 | /* confdefs.h. */ | |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | ||
3119 | int | |
3120 | main () | |
3121 | { | |
3122 | ||
3123 | ; | |
3124 | return 0; | |
3125 | } | |
3126 | _ACEOF | |
3127 | rm -f conftest.$ac_objext | |
3128 | if { (ac_try="$ac_compile" | |
3129 | case "(($ac_try" in | |
3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3131 | *) ac_try_echo=$ac_try;; | |
3132 | esac | |
3133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3134 | (eval "$ac_compile") 2>conftest.er1 | |
3135 | ac_status=$? | |
3136 | grep -v '^ *+' conftest.er1 >conftest.err | |
3137 | rm -f conftest.er1 | |
3138 | cat conftest.err >&5 | |
3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3140 | (exit $ac_status); } && | |
3141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3142 | { (case "(($ac_try" in | |
3143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3144 | *) ac_try_echo=$ac_try;; | |
3145 | esac | |
3146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3147 | (eval "$ac_try") 2>&5 | |
3148 | ac_status=$? | |
3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3150 | (exit $ac_status); }; } && | |
3151 | { ac_try='test -s conftest.$ac_objext' | |
3152 | { (case "(($ac_try" in | |
3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3154 | *) ac_try_echo=$ac_try;; | |
3155 | esac | |
3156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3157 | (eval "$ac_try") 2>&5 | |
3158 | ac_status=$? | |
3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3160 | (exit $ac_status); }; }; then | |
3161 | ac_cv_prog_cc_g=yes | |
3162 | else | |
3163 | echo "$as_me: failed program was:" >&5 | |
3164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3165 | ||
3166 | CFLAGS="" | |
3167 | cat >conftest.$ac_ext <<_ACEOF | |
3168 | /* confdefs.h. */ | |
3169 | _ACEOF | |
3170 | cat confdefs.h >>conftest.$ac_ext | |
3171 | cat >>conftest.$ac_ext <<_ACEOF | |
3172 | /* end confdefs.h. */ | |
3173 | ||
3174 | int | |
3175 | main () | |
3176 | { | |
3177 | ||
3178 | ; | |
3179 | return 0; | |
3180 | } | |
3181 | _ACEOF | |
3182 | rm -f conftest.$ac_objext | |
3183 | if { (ac_try="$ac_compile" | |
3184 | case "(($ac_try" in | |
3185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3186 | *) ac_try_echo=$ac_try;; | |
3187 | esac | |
3188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3189 | (eval "$ac_compile") 2>conftest.er1 | |
3190 | ac_status=$? | |
3191 | grep -v '^ *+' conftest.er1 >conftest.err | |
3192 | rm -f conftest.er1 | |
3193 | cat conftest.err >&5 | |
3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3195 | (exit $ac_status); } && | |
3196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3197 | { (case "(($ac_try" in | |
3198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3199 | *) ac_try_echo=$ac_try;; | |
3200 | esac | |
3201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3202 | (eval "$ac_try") 2>&5 | |
3203 | ac_status=$? | |
3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3205 | (exit $ac_status); }; } && | |
3206 | { ac_try='test -s conftest.$ac_objext' | |
3207 | { (case "(($ac_try" in | |
3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3209 | *) ac_try_echo=$ac_try;; | |
3210 | esac | |
3211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3212 | (eval "$ac_try") 2>&5 | |
3213 | ac_status=$? | |
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3215 | (exit $ac_status); }; }; then | |
3216 | : | |
3217 | else | |
3218 | echo "$as_me: failed program was:" >&5 | |
3219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3220 | ||
3221 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3222 | CFLAGS="-g" | |
3223 | cat >conftest.$ac_ext <<_ACEOF | |
b3076f16 | 3224 | /* confdefs.h. */ |
3225 | _ACEOF | |
3226 | cat confdefs.h >>conftest.$ac_ext | |
3227 | cat >>conftest.$ac_ext <<_ACEOF | |
3228 | /* end confdefs.h. */ | |
3229 | ||
3230 | int | |
3231 | main () | |
3232 | { | |
3233 | ||
3234 | ; | |
3235 | return 0; | |
3236 | } | |
3237 | _ACEOF | |
3238 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3239 | if { (ac_try="$ac_compile" |
3240 | case "(($ac_try" in | |
3241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3242 | *) ac_try_echo=$ac_try;; | |
3243 | esac | |
3244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3245 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3246 | ac_status=$? |
3247 | grep -v '^ *+' conftest.er1 >conftest.err | |
3248 | rm -f conftest.er1 | |
3249 | cat conftest.err >&5 | |
3250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3251 | (exit $ac_status); } && | |
a8b2ad8d | 3252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3253 | { (case "(($ac_try" in | |
3254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3255 | *) ac_try_echo=$ac_try;; | |
3256 | esac | |
3257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3258 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3259 | ac_status=$? |
3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3261 | (exit $ac_status); }; } && | |
3262 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 3263 | { (case "(($ac_try" in |
3264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3265 | *) ac_try_echo=$ac_try;; | |
3266 | esac | |
3267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3268 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3269 | ac_status=$? |
3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3271 | (exit $ac_status); }; }; then | |
3272 | ac_cv_prog_cc_g=yes | |
3273 | else | |
3274 | echo "$as_me: failed program was:" >&5 | |
3275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3276 | ||
a8b2ad8d | 3277 | |
3278 | fi | |
3279 | ||
3280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3281 | fi | |
3282 | ||
3283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3284 | fi |
a8b2ad8d | 3285 | |
3286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3287 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 3288 | fi |
a8b2ad8d | 3289 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3290 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 3291 | if test "$ac_test_CFLAGS" = set; then |
3292 | CFLAGS=$ac_save_CFLAGS | |
3293 | elif test $ac_cv_prog_cc_g = yes; then | |
3294 | if test "$GCC" = yes; then | |
3295 | CFLAGS="-g -O2" | |
3296 | else | |
3297 | CFLAGS="-g" | |
3298 | fi | |
3299 | else | |
3300 | if test "$GCC" = yes; then | |
3301 | CFLAGS="-O2" | |
3302 | else | |
3303 | CFLAGS= | |
3304 | fi | |
3305 | fi | |
a8b2ad8d | 3306 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3307 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3308 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
b3076f16 | 3309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3310 | else | |
a8b2ad8d | 3311 | ac_cv_prog_cc_c89=no |
b3076f16 | 3312 | ac_save_CC=$CC |
3313 | cat >conftest.$ac_ext <<_ACEOF | |
3314 | /* confdefs.h. */ | |
3315 | _ACEOF | |
3316 | cat confdefs.h >>conftest.$ac_ext | |
3317 | cat >>conftest.$ac_ext <<_ACEOF | |
3318 | /* end confdefs.h. */ | |
3319 | #include <stdarg.h> | |
3320 | #include <stdio.h> | |
3321 | #include <sys/types.h> | |
3322 | #include <sys/stat.h> | |
3323 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3324 | struct buf { int x; }; | |
3325 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3326 | static char *e (p, i) | |
3327 | char **p; | |
3328 | int i; | |
3329 | { | |
3330 | return p[i]; | |
3331 | } | |
3332 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3333 | { | |
3334 | char *s; | |
3335 | va_list v; | |
3336 | va_start (v,p); | |
3337 | s = g (p, va_arg (v,int)); | |
3338 | va_end (v); | |
3339 | return s; | |
3340 | } | |
3341 | ||
3342 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3343 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3344 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 3345 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 3346 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3347 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 3348 | that's true only with -std. */ |
b3076f16 | 3349 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3350 | ||
a8b2ad8d | 3351 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3352 | inside strings and character constants. */ | |
3353 | #define FOO(x) 'x' | |
3354 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3355 | ||
b3076f16 | 3356 | int test (int i, double x); |
3357 | struct s1 {int (*f) (int a);}; | |
3358 | struct s2 {int (*f) (double a);}; | |
3359 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3360 | int argc; | |
3361 | char **argv; | |
3362 | int | |
3363 | main () | |
3364 | { | |
3365 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3366 | ; | |
3367 | return 0; | |
3368 | } | |
3369 | _ACEOF | |
a8b2ad8d | 3370 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3371 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 3372 | do |
3373 | CC="$ac_save_CC $ac_arg" | |
3374 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3375 | if { (ac_try="$ac_compile" |
3376 | case "(($ac_try" in | |
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3378 | *) ac_try_echo=$ac_try;; | |
3379 | esac | |
3380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3381 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3382 | ac_status=$? |
3383 | grep -v '^ *+' conftest.er1 >conftest.err | |
3384 | rm -f conftest.er1 | |
3385 | cat conftest.err >&5 | |
3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3387 | (exit $ac_status); } && | |
a8b2ad8d | 3388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3389 | { (case "(($ac_try" in | |
3390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3391 | *) ac_try_echo=$ac_try;; | |
3392 | esac | |
3393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3394 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3395 | ac_status=$? |
3396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3397 | (exit $ac_status); }; } && | |
3398 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 3399 | { (case "(($ac_try" in |
3400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3401 | *) ac_try_echo=$ac_try;; | |
3402 | esac | |
3403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3404 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3405 | ac_status=$? |
3406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3407 | (exit $ac_status); }; }; then | |
a8b2ad8d | 3408 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 3409 | else |
3410 | echo "$as_me: failed program was:" >&5 | |
3411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3412 | ||
a8b2ad8d | 3413 | |
b3076f16 | 3414 | fi |
a8b2ad8d | 3415 | |
3416 | rm -f core conftest.err conftest.$ac_objext | |
3417 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 3418 | done |
a8b2ad8d | 3419 | rm -f conftest.$ac_ext |
b3076f16 | 3420 | CC=$ac_save_CC |
3421 | ||
3422 | fi | |
a8b2ad8d | 3423 | # AC_CACHE_VAL |
3424 | case "x$ac_cv_prog_cc_c89" in | |
3425 | x) | |
3426 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3427 | echo "${ECHO_T}none needed" >&6; } ;; | |
3428 | xno) | |
3429 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3430 | echo "${ECHO_T}unsupported" >&6; } ;; | |
b3076f16 | 3431 | *) |
a8b2ad8d | 3432 | CC="$CC $ac_cv_prog_cc_c89" |
3433 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3434 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 3435 | esac |
3436 | ||
b3076f16 | 3437 | |
b3076f16 | 3438 | ac_ext=c |
3439 | ac_cpp='$CPP $CPPFLAGS' | |
3440 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3441 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3442 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3443 | ||
ec1a68c8 | 3444 | depcc="$CC" am_compiler_list= |
3445 | ||
a8b2ad8d | 3446 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3447 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
ec1a68c8 | 3448 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3450 | else | |
3451 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3452 | # We make a subdir and do the tests there. Otherwise we can end up | |
3453 | # making bogus files that we don't know about and never remove. For | |
3454 | # instance it was reported that on HP-UX the gcc test will end up | |
3455 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3456 | # in D'. | |
3457 | mkdir conftest.dir | |
3458 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3459 | # using a relative directory. | |
3460 | cp "$am_depcomp" conftest.dir | |
3461 | cd conftest.dir | |
3462 | # We will build objects and dependencies in a subdirectory because | |
3463 | # it helps to detect inapplicable dependency modes. For instance | |
3464 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3465 | # side effect of compilation, but ICC will put the dependencies in | |
3466 | # the current directory while Tru64 will put them in the object | |
3467 | # directory. | |
3468 | mkdir sub | |
3469 | ||
3470 | am_cv_CC_dependencies_compiler_type=none | |
3471 | if test "$am_compiler_list" = ""; then | |
3472 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3473 | fi | |
3474 | for depmode in $am_compiler_list; do | |
3475 | # Setup a source with many dependencies, because some compilers | |
3476 | # like to wrap large dependency lists on column 80 (with \), and | |
3477 | # we should not choose a depcomp mode which is confused by this. | |
3478 | # | |
3479 | # We need to recreate these files for each test, as the compiler may | |
3480 | # overwrite some of them when testing with obscure command lines. | |
3481 | # This happens at least with the AIX C compiler. | |
3482 | : > sub/conftest.c | |
3483 | for i in 1 2 3 4 5 6; do | |
3484 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3485 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3486 | # Solaris 8's {/usr,}/bin/sh. | |
3487 | touch sub/conftst$i.h | |
3488 | done | |
3489 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3490 | ||
3491 | case $depmode in | |
3492 | nosideeffect) | |
3493 | # after this tag, mechanisms are not by side-effect, so they'll | |
3494 | # only be used when explicitly requested | |
3495 | if test "x$enable_dependency_tracking" = xyes; then | |
3496 | continue | |
3497 | else | |
3498 | break | |
3499 | fi | |
3500 | ;; | |
3501 | none) break ;; | |
3502 | esac | |
3503 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3504 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3505 | # handle `-M -o', and we need to detect this. | |
3506 | if depmode=$depmode \ | |
3507 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3508 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3509 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3510 | >/dev/null 2>conftest.err && | |
3511 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3512 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3513 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3514 | # icc doesn't choke on unknown options, it will just issue warnings | |
3515 | # or remarks (even with -Werror). So we grep stderr for any message | |
3516 | # that says an option was ignored or not supported. | |
3517 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3518 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3519 | # The diagnosis changed in icc 8.0: | |
3520 | # icc: Command line remark: option '-MP' not supported | |
3521 | if (grep 'ignoring option' conftest.err || | |
3522 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3523 | am_cv_CC_dependencies_compiler_type=$depmode | |
3524 | break | |
3525 | fi | |
3526 | fi | |
3527 | done | |
3528 | ||
3529 | cd .. | |
3530 | rm -rf conftest.dir | |
3531 | else | |
3532 | am_cv_CC_dependencies_compiler_type=none | |
3533 | fi | |
3534 | ||
3535 | fi | |
a8b2ad8d | 3536 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3537 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 3538 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3539 | ||
3540 | ||
3541 | ||
3542 | if | |
3543 | test "x$enable_dependency_tracking" != xno \ | |
3544 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3545 | am__fastdepCC_TRUE= | |
3546 | am__fastdepCC_FALSE='#' | |
3547 | else | |
3548 | am__fastdepCC_TRUE='#' | |
3549 | am__fastdepCC_FALSE= | |
3550 | fi | |
3551 | ||
3552 | ||
b3076f16 | 3553 | |
a8b2ad8d | 3554 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
3555 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
b3076f16 | 3556 | if test "${ac_cv_type_signal+set}" = set; then |
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3558 | else | |
3559 | cat >conftest.$ac_ext <<_ACEOF | |
3560 | /* confdefs.h. */ | |
3561 | _ACEOF | |
3562 | cat confdefs.h >>conftest.$ac_ext | |
3563 | cat >>conftest.$ac_ext <<_ACEOF | |
3564 | /* end confdefs.h. */ | |
3565 | #include <sys/types.h> | |
3566 | #include <signal.h> | |
b3076f16 | 3567 | |
3568 | int | |
3569 | main () | |
3570 | { | |
a8b2ad8d | 3571 | return *(signal (0, 0)) (0) == 1; |
b3076f16 | 3572 | ; |
3573 | return 0; | |
3574 | } | |
3575 | _ACEOF | |
3576 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3577 | if { (ac_try="$ac_compile" |
3578 | case "(($ac_try" in | |
3579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3580 | *) ac_try_echo=$ac_try;; | |
3581 | esac | |
3582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3583 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3584 | ac_status=$? |
3585 | grep -v '^ *+' conftest.er1 >conftest.err | |
3586 | rm -f conftest.er1 | |
3587 | cat conftest.err >&5 | |
3588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3589 | (exit $ac_status); } && | |
a8b2ad8d | 3590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3591 | { (case "(($ac_try" in | |
3592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3593 | *) ac_try_echo=$ac_try;; | |
3594 | esac | |
3595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3596 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3597 | ac_status=$? |
3598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3599 | (exit $ac_status); }; } && | |
3600 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 3601 | { (case "(($ac_try" in |
3602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3603 | *) ac_try_echo=$ac_try;; | |
3604 | esac | |
3605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3606 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3607 | ac_status=$? |
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3609 | (exit $ac_status); }; }; then | |
a8b2ad8d | 3610 | ac_cv_type_signal=int |
b3076f16 | 3611 | else |
3612 | echo "$as_me: failed program was:" >&5 | |
3613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3614 | ||
a8b2ad8d | 3615 | ac_cv_type_signal=void |
b3076f16 | 3616 | fi |
a8b2ad8d | 3617 | |
3618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3619 | fi |
a8b2ad8d | 3620 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
3621 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
b3076f16 | 3622 | |
3623 | cat >>confdefs.h <<_ACEOF | |
3624 | #define RETSIGTYPE $ac_cv_type_signal | |
3625 | _ACEOF | |
3626 | ||
3627 | ||
a8b2ad8d | 3628 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3629 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
b3076f16 | 3630 | if test "${ac_cv_c_const+set}" = set; then |
3631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3632 | else | |
3633 | cat >conftest.$ac_ext <<_ACEOF | |
3634 | /* confdefs.h. */ | |
3635 | _ACEOF | |
3636 | cat confdefs.h >>conftest.$ac_ext | |
3637 | cat >>conftest.$ac_ext <<_ACEOF | |
3638 | /* end confdefs.h. */ | |
3639 | ||
3640 | int | |
3641 | main () | |
3642 | { | |
3643 | /* FIXME: Include the comments suggested by Paul. */ | |
3644 | #ifndef __cplusplus | |
3645 | /* Ultrix mips cc rejects this. */ | |
3646 | typedef int charset[2]; | |
3647 | const charset x; | |
3648 | /* SunOS 4.1.1 cc rejects this. */ | |
3649 | char const *const *ccp; | |
3650 | char **p; | |
3651 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3652 | struct point {int x, y;}; | |
3653 | static struct point const zero = {0,0}; | |
3654 | /* AIX XL C 1.02.0.0 rejects this. | |
3655 | It does not let you subtract one const X* pointer from another in | |
3656 | an arm of an if-expression whose if-part is not a constant | |
3657 | expression */ | |
3658 | const char *g = "string"; | |
3659 | ccp = &g + (g ? g-g : 0); | |
3660 | /* HPUX 7.0 cc rejects these. */ | |
3661 | ++ccp; | |
3662 | p = (char**) ccp; | |
3663 | ccp = (char const *const *) p; | |
3664 | { /* SCO 3.2v4 cc rejects this. */ | |
3665 | char *t; | |
3666 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3667 | ||
3668 | *t++ = 0; | |
a8b2ad8d | 3669 | if (s) return 0; |
b3076f16 | 3670 | } |
3671 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3672 | int x[] = {25, 17}; | |
3673 | const int *foo = &x[0]; | |
3674 | ++foo; | |
3675 | } | |
3676 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3677 | typedef const int *iptr; | |
3678 | iptr p = 0; | |
3679 | ++p; | |
3680 | } | |
3681 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3682 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3683 | struct s { int j; const int *ap[3]; }; | |
3684 | struct s *b; b->j = 5; | |
3685 | } | |
3686 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3687 | const int foo = 10; | |
a8b2ad8d | 3688 | if (!foo) return 0; |
b3076f16 | 3689 | } |
a8b2ad8d | 3690 | return !x[0] && !zero.x; |
b3076f16 | 3691 | #endif |
3692 | ||
3693 | ; | |
3694 | return 0; | |
3695 | } | |
3696 | _ACEOF | |
3697 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3698 | if { (ac_try="$ac_compile" |
3699 | case "(($ac_try" in | |
3700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3701 | *) ac_try_echo=$ac_try;; | |
3702 | esac | |
3703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3704 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3705 | ac_status=$? |
3706 | grep -v '^ *+' conftest.er1 >conftest.err | |
3707 | rm -f conftest.er1 | |
3708 | cat conftest.err >&5 | |
3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3710 | (exit $ac_status); } && | |
a8b2ad8d | 3711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3712 | { (case "(($ac_try" in | |
3713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3714 | *) ac_try_echo=$ac_try;; | |
3715 | esac | |
3716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3717 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3718 | ac_status=$? |
3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3720 | (exit $ac_status); }; } && | |
3721 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 3722 | { (case "(($ac_try" in |
3723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3724 | *) ac_try_echo=$ac_try;; | |
3725 | esac | |
3726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3727 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3728 | ac_status=$? |
3729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3730 | (exit $ac_status); }; }; then | |
3731 | ac_cv_c_const=yes | |
3732 | else | |
3733 | echo "$as_me: failed program was:" >&5 | |
3734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3735 | ||
a8b2ad8d | 3736 | ac_cv_c_const=no |
b3076f16 | 3737 | fi |
a8b2ad8d | 3738 | |
3739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 3740 | fi |
a8b2ad8d | 3741 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3742 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
b3076f16 | 3743 | if test $ac_cv_c_const = no; then |
3744 | ||
3745 | cat >>confdefs.h <<\_ACEOF | |
3746 | #define const | |
3747 | _ACEOF | |
3748 | ||
3749 | fi | |
3750 | ||
a8b2ad8d | 3751 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3752 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
b3076f16 | 3753 | if test "${ac_cv_c_inline+set}" = set; then |
3754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3755 | else | |
3756 | ac_cv_c_inline=no | |
3757 | for ac_kw in inline __inline__ __inline; do | |
3758 | cat >conftest.$ac_ext <<_ACEOF | |
3759 | /* confdefs.h. */ | |
3760 | _ACEOF | |
3761 | cat confdefs.h >>conftest.$ac_ext | |
3762 | cat >>conftest.$ac_ext <<_ACEOF | |
3763 | /* end confdefs.h. */ | |
3764 | #ifndef __cplusplus | |
3765 | typedef int foo_t; | |
3766 | static $ac_kw foo_t static_foo () {return 0; } | |
3767 | $ac_kw foo_t foo () {return 0; } | |
3768 | #endif | |
3769 | ||
3770 | _ACEOF | |
3771 | rm -f conftest.$ac_objext | |
a8b2ad8d | 3772 | if { (ac_try="$ac_compile" |
3773 | case "(($ac_try" in | |
3774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3775 | *) ac_try_echo=$ac_try;; | |
3776 | esac | |
3777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3778 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 3779 | ac_status=$? |
3780 | grep -v '^ *+' conftest.er1 >conftest.err | |
3781 | rm -f conftest.er1 | |
3782 | cat conftest.err >&5 | |
3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3784 | (exit $ac_status); } && | |
a8b2ad8d | 3785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3786 | { (case "(($ac_try" in | |
3787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3788 | *) ac_try_echo=$ac_try;; | |
3789 | esac | |
3790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3791 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3792 | ac_status=$? |
3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3794 | (exit $ac_status); }; } && | |
3795 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 3796 | { (case "(($ac_try" in |
3797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3798 | *) ac_try_echo=$ac_try;; | |
3799 | esac | |
3800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3801 | (eval "$ac_try") 2>&5 | |
b3076f16 | 3802 | ac_status=$? |
3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3804 | (exit $ac_status); }; }; then | |
a8b2ad8d | 3805 | ac_cv_c_inline=$ac_kw |
b3076f16 | 3806 | else |
3807 | echo "$as_me: failed program was:" >&5 | |
3808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3809 | ||
a8b2ad8d | 3810 | |
b3076f16 | 3811 | fi |
a8b2ad8d | 3812 | |
3813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3814 | test "$ac_cv_c_inline" != no && break | |
b3076f16 | 3815 | done |
3816 | ||
3817 | fi | |
a8b2ad8d | 3818 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3819 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
b3076f16 | 3820 | |
3821 | ||
3822 | case $ac_cv_c_inline in | |
3823 | inline | yes) ;; | |
3824 | *) | |
3825 | case $ac_cv_c_inline in | |
3826 | no) ac_val=;; | |
3827 | *) ac_val=$ac_cv_c_inline;; | |
3828 | esac | |
3829 | cat >>confdefs.h <<_ACEOF | |
3830 | #ifndef __cplusplus | |
3831 | #define inline $ac_val | |
3832 | #endif | |
3833 | _ACEOF | |
3834 | ;; | |
3835 | esac | |
3836 | ||
3837 | ||
3838 | for ac_prog in gawk mawk nawk awk | |
3839 | do | |
3840 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3841 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 3842 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3844 | if test "${ac_cv_prog_AWK+set}" = set; then |
3845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3846 | else | |
3847 | if test -n "$AWK"; then | |
3848 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3849 | else | |
3850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3851 | for as_dir in $PATH | |
3852 | do | |
3853 | IFS=$as_save_IFS | |
3854 | test -z "$as_dir" && as_dir=. | |
3855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 3856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3857 | ac_cv_prog_AWK="$ac_prog" |
3858 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3859 | break 2 | |
3860 | fi | |
3861 | done | |
3862 | done | |
a8b2ad8d | 3863 | IFS=$as_save_IFS |
b3076f16 | 3864 | |
3865 | fi | |
3866 | fi | |
3867 | AWK=$ac_cv_prog_AWK | |
3868 | if test -n "$AWK"; then | |
a8b2ad8d | 3869 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
3870 | echo "${ECHO_T}$AWK" >&6; } | |
b3076f16 | 3871 | else |
a8b2ad8d | 3872 | { echo "$as_me:$LINENO: result: no" >&5 |
3873 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3874 | fi |
3875 | ||
a8b2ad8d | 3876 | |
b3076f16 | 3877 | test -n "$AWK" && break |
3878 | done | |
3879 | ||
3880 | ac_ext=c | |
3881 | ac_cpp='$CPP $CPPFLAGS' | |
3882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3885 | if test -n "$ac_tool_prefix"; then | |
3886 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3887 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
a8b2ad8d | 3888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3890 | if test "${ac_cv_prog_CC+set}" = set; then |
3891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3892 | else | |
3893 | if test -n "$CC"; then | |
3894 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3895 | else | |
3896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3897 | for as_dir in $PATH | |
3898 | do | |
3899 | IFS=$as_save_IFS | |
3900 | test -z "$as_dir" && as_dir=. | |
3901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 3902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3903 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3905 | break 2 | |
3906 | fi | |
3907 | done | |
3908 | done | |
a8b2ad8d | 3909 | IFS=$as_save_IFS |
b3076f16 | 3910 | |
3911 | fi | |
3912 | fi | |
3913 | CC=$ac_cv_prog_CC | |
3914 | if test -n "$CC"; then | |
a8b2ad8d | 3915 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3916 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 3917 | else |
a8b2ad8d | 3918 | { echo "$as_me:$LINENO: result: no" >&5 |
3919 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3920 | fi |
3921 | ||
a8b2ad8d | 3922 | |
b3076f16 | 3923 | fi |
3924 | if test -z "$ac_cv_prog_CC"; then | |
3925 | ac_ct_CC=$CC | |
3926 | # Extract the first word of "gcc", so it can be a program name with args. | |
3927 | set dummy gcc; ac_word=$2 | |
a8b2ad8d | 3928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3930 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3932 | else | |
3933 | if test -n "$ac_ct_CC"; then | |
3934 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3935 | else | |
3936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3937 | for as_dir in $PATH | |
3938 | do | |
3939 | IFS=$as_save_IFS | |
3940 | test -z "$as_dir" && as_dir=. | |
3941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 3942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 3943 | ac_cv_prog_ac_ct_CC="gcc" |
3944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3945 | break 2 | |
3946 | fi | |
3947 | done | |
3948 | done | |
a8b2ad8d | 3949 | IFS=$as_save_IFS |
b3076f16 | 3950 | |
3951 | fi | |
3952 | fi | |
3953 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3954 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 3955 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3956 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 3957 | else |
a8b2ad8d | 3958 | { echo "$as_me:$LINENO: result: no" >&5 |
3959 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 3960 | fi |
3961 | ||
a8b2ad8d | 3962 | if test "x$ac_ct_CC" = x; then |
3963 | CC="" | |
3964 | else | |
3965 | case $cross_compiling:$ac_tool_warned in | |
3966 | yes:) | |
3967 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3968 | whose name does not start with the host triplet. If you think this | |
3969 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3970 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3971 | whose name does not start with the host triplet. If you think this | |
3972 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3973 | ac_tool_warned=yes ;; | |
3974 | esac | |
3975 | CC=$ac_ct_CC | |
3976 | fi | |
b3076f16 | 3977 | else |
3978 | CC="$ac_cv_prog_CC" | |
3979 | fi | |
3980 | ||
3981 | if test -z "$CC"; then | |
a8b2ad8d | 3982 | if test -n "$ac_tool_prefix"; then |
3983 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b3076f16 | 3984 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a8b2ad8d | 3985 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 3987 | if test "${ac_cv_prog_CC+set}" = set; then |
3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3989 | else | |
3990 | if test -n "$CC"; then | |
3991 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3992 | else | |
3993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3994 | for as_dir in $PATH | |
3995 | do | |
3996 | IFS=$as_save_IFS | |
3997 | test -z "$as_dir" && as_dir=. | |
3998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 3999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4000 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
4001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4002 | break 2 | |
4003 | fi | |
4004 | done | |
4005 | done | |
a8b2ad8d | 4006 | IFS=$as_save_IFS |
b3076f16 | 4007 | |
4008 | fi | |
4009 | fi | |
4010 | CC=$ac_cv_prog_CC | |
4011 | if test -n "$CC"; then | |
a8b2ad8d | 4012 | { echo "$as_me:$LINENO: result: $CC" >&5 |
4013 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 4014 | else |
a8b2ad8d | 4015 | { echo "$as_me:$LINENO: result: no" >&5 |
4016 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4017 | fi |
4018 | ||
b3076f16 | 4019 | |
a8b2ad8d | 4020 | fi |
b3076f16 | 4021 | fi |
4022 | if test -z "$CC"; then | |
4023 | # Extract the first word of "cc", so it can be a program name with args. | |
4024 | set dummy cc; ac_word=$2 | |
a8b2ad8d | 4025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 4027 | if test "${ac_cv_prog_CC+set}" = set; then |
4028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4029 | else | |
4030 | if test -n "$CC"; then | |
4031 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4032 | else | |
4033 | ac_prog_rejected=no | |
4034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4035 | for as_dir in $PATH | |
4036 | do | |
4037 | IFS=$as_save_IFS | |
4038 | test -z "$as_dir" && as_dir=. | |
4039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 4040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4041 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4042 | ac_prog_rejected=yes | |
4043 | continue | |
4044 | fi | |
4045 | ac_cv_prog_CC="cc" | |
4046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4047 | break 2 | |
4048 | fi | |
4049 | done | |
4050 | done | |
a8b2ad8d | 4051 | IFS=$as_save_IFS |
b3076f16 | 4052 | |
4053 | if test $ac_prog_rejected = yes; then | |
4054 | # We found a bogon in the path, so make sure we never use it. | |
4055 | set dummy $ac_cv_prog_CC | |
4056 | shift | |
4057 | if test $# != 0; then | |
4058 | # We chose a different compiler from the bogus one. | |
4059 | # However, it has the same basename, so the bogon will be chosen | |
4060 | # first if we set CC to just the basename; use the full file name. | |
4061 | shift | |
4062 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4063 | fi | |
4064 | fi | |
4065 | fi | |
4066 | fi | |
4067 | CC=$ac_cv_prog_CC | |
4068 | if test -n "$CC"; then | |
a8b2ad8d | 4069 | { echo "$as_me:$LINENO: result: $CC" >&5 |
4070 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 4071 | else |
a8b2ad8d | 4072 | { echo "$as_me:$LINENO: result: no" >&5 |
4073 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4074 | fi |
4075 | ||
a8b2ad8d | 4076 | |
b3076f16 | 4077 | fi |
4078 | if test -z "$CC"; then | |
4079 | if test -n "$ac_tool_prefix"; then | |
a8b2ad8d | 4080 | for ac_prog in cl.exe |
b3076f16 | 4081 | do |
4082 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4083 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
a8b2ad8d | 4084 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 4086 | if test "${ac_cv_prog_CC+set}" = set; then |
4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4088 | else | |
4089 | if test -n "$CC"; then | |
4090 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4091 | else | |
4092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4093 | for as_dir in $PATH | |
4094 | do | |
4095 | IFS=$as_save_IFS | |
4096 | test -z "$as_dir" && as_dir=. | |
4097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 4098 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4099 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4101 | break 2 | |
4102 | fi | |
4103 | done | |
4104 | done | |
a8b2ad8d | 4105 | IFS=$as_save_IFS |
b3076f16 | 4106 | |
4107 | fi | |
4108 | fi | |
4109 | CC=$ac_cv_prog_CC | |
4110 | if test -n "$CC"; then | |
a8b2ad8d | 4111 | { echo "$as_me:$LINENO: result: $CC" >&5 |
4112 | echo "${ECHO_T}$CC" >&6; } | |
b3076f16 | 4113 | else |
a8b2ad8d | 4114 | { echo "$as_me:$LINENO: result: no" >&5 |
4115 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4116 | fi |
4117 | ||
a8b2ad8d | 4118 | |
b3076f16 | 4119 | test -n "$CC" && break |
4120 | done | |
4121 | fi | |
4122 | if test -z "$CC"; then | |
4123 | ac_ct_CC=$CC | |
a8b2ad8d | 4124 | for ac_prog in cl.exe |
b3076f16 | 4125 | do |
4126 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4127 | set dummy $ac_prog; ac_word=$2 | |
a8b2ad8d | 4128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
b3076f16 | 4130 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4132 | else | |
4133 | if test -n "$ac_ct_CC"; then | |
4134 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4135 | else | |
4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4137 | for as_dir in $PATH | |
4138 | do | |
4139 | IFS=$as_save_IFS | |
4140 | test -z "$as_dir" && as_dir=. | |
4141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 4142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
b3076f16 | 4143 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4145 | break 2 | |
4146 | fi | |
4147 | done | |
4148 | done | |
a8b2ad8d | 4149 | IFS=$as_save_IFS |
b3076f16 | 4150 | |
4151 | fi | |
4152 | fi | |
4153 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4154 | if test -n "$ac_ct_CC"; then | |
a8b2ad8d | 4155 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
4156 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
b3076f16 | 4157 | else |
a8b2ad8d | 4158 | { echo "$as_me:$LINENO: result: no" >&5 |
4159 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4160 | fi |
4161 | ||
a8b2ad8d | 4162 | |
b3076f16 | 4163 | test -n "$ac_ct_CC" && break |
4164 | done | |
4165 | ||
a8b2ad8d | 4166 | if test "x$ac_ct_CC" = x; then |
4167 | CC="" | |
4168 | else | |
4169 | case $cross_compiling:$ac_tool_warned in | |
4170 | yes:) | |
4171 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4172 | whose name does not start with the host triplet. If you think this | |
4173 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4174 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4175 | whose name does not start with the host triplet. If you think this | |
4176 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4177 | ac_tool_warned=yes ;; | |
4178 | esac | |
4179 | CC=$ac_ct_CC | |
4180 | fi | |
b3076f16 | 4181 | fi |
4182 | ||
4183 | fi | |
4184 | ||
4185 | ||
4186 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4187 | See \`config.log' for more details." >&5 | |
4188 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4189 | See \`config.log' for more details." >&2;} | |
4190 | { (exit 1); exit 1; }; } | |
4191 | ||
4192 | # Provide some information about the compiler. | |
a8b2ad8d | 4193 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
b3076f16 | 4194 | ac_compiler=`set X $ac_compile; echo $2` |
a8b2ad8d | 4195 | { (ac_try="$ac_compiler --version >&5" |
4196 | case "(($ac_try" in | |
4197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4198 | *) ac_try_echo=$ac_try;; | |
4199 | esac | |
4200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4201 | (eval "$ac_compiler --version >&5") 2>&5 | |
b3076f16 | 4202 | ac_status=$? |
4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4204 | (exit $ac_status); } | |
a8b2ad8d | 4205 | { (ac_try="$ac_compiler -v >&5" |
4206 | case "(($ac_try" in | |
4207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4208 | *) ac_try_echo=$ac_try;; | |
4209 | esac | |
4210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4211 | (eval "$ac_compiler -v >&5") 2>&5 | |
b3076f16 | 4212 | ac_status=$? |
4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4214 | (exit $ac_status); } | |
a8b2ad8d | 4215 | { (ac_try="$ac_compiler -V >&5" |
4216 | case "(($ac_try" in | |
4217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4218 | *) ac_try_echo=$ac_try;; | |
4219 | esac | |
4220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4221 | (eval "$ac_compiler -V >&5") 2>&5 | |
b3076f16 | 4222 | ac_status=$? |
4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4224 | (exit $ac_status); } | |
4225 | ||
a8b2ad8d | 4226 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4227 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
b3076f16 | 4228 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
4229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4230 | else | |
4231 | cat >conftest.$ac_ext <<_ACEOF | |
4232 | /* confdefs.h. */ | |
4233 | _ACEOF | |
4234 | cat confdefs.h >>conftest.$ac_ext | |
4235 | cat >>conftest.$ac_ext <<_ACEOF | |
4236 | /* end confdefs.h. */ | |
4237 | ||
4238 | int | |
4239 | main () | |
4240 | { | |
4241 | #ifndef __GNUC__ | |
4242 | choke me | |
4243 | #endif | |
4244 | ||
4245 | ; | |
4246 | return 0; | |
4247 | } | |
4248 | _ACEOF | |
4249 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4250 | if { (ac_try="$ac_compile" |
4251 | case "(($ac_try" in | |
4252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4253 | *) ac_try_echo=$ac_try;; | |
4254 | esac | |
4255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4256 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4257 | ac_status=$? |
4258 | grep -v '^ *+' conftest.er1 >conftest.err | |
4259 | rm -f conftest.er1 | |
4260 | cat conftest.err >&5 | |
4261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4262 | (exit $ac_status); } && | |
a8b2ad8d | 4263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4264 | { (case "(($ac_try" in | |
4265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4266 | *) ac_try_echo=$ac_try;; | |
4267 | esac | |
4268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4269 | (eval "$ac_try") 2>&5 | |
b3076f16 | 4270 | ac_status=$? |
4271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4272 | (exit $ac_status); }; } && | |
4273 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 4274 | { (case "(($ac_try" in |
4275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4276 | *) ac_try_echo=$ac_try;; | |
4277 | esac | |
4278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4279 | (eval "$ac_try") 2>&5 | |
b3076f16 | 4280 | ac_status=$? |
4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4282 | (exit $ac_status); }; }; then | |
4283 | ac_compiler_gnu=yes | |
4284 | else | |
4285 | echo "$as_me: failed program was:" >&5 | |
4286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4287 | ||
a8b2ad8d | 4288 | ac_compiler_gnu=no |
b3076f16 | 4289 | fi |
a8b2ad8d | 4290 | |
4291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 4292 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4293 | ||
4294 | fi | |
a8b2ad8d | 4295 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4296 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
b3076f16 | 4297 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
4298 | ac_test_CFLAGS=${CFLAGS+set} | |
4299 | ac_save_CFLAGS=$CFLAGS | |
a8b2ad8d | 4300 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4301 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
b3076f16 | 4302 | if test "${ac_cv_prog_cc_g+set}" = set; then |
4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4304 | else | |
a8b2ad8d | 4305 | ac_save_c_werror_flag=$ac_c_werror_flag |
4306 | ac_c_werror_flag=yes | |
4307 | ac_cv_prog_cc_g=no | |
4308 | CFLAGS="-g" | |
4309 | cat >conftest.$ac_ext <<_ACEOF | |
4310 | /* confdefs.h. */ | |
4311 | _ACEOF | |
4312 | cat confdefs.h >>conftest.$ac_ext | |
4313 | cat >>conftest.$ac_ext <<_ACEOF | |
4314 | /* end confdefs.h. */ | |
4315 | ||
4316 | int | |
4317 | main () | |
4318 | { | |
4319 | ||
4320 | ; | |
4321 | return 0; | |
4322 | } | |
4323 | _ACEOF | |
4324 | rm -f conftest.$ac_objext | |
4325 | if { (ac_try="$ac_compile" | |
4326 | case "(($ac_try" in | |
4327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4328 | *) ac_try_echo=$ac_try;; | |
4329 | esac | |
4330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4331 | (eval "$ac_compile") 2>conftest.er1 | |
4332 | ac_status=$? | |
4333 | grep -v '^ *+' conftest.er1 >conftest.err | |
4334 | rm -f conftest.er1 | |
4335 | cat conftest.err >&5 | |
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4337 | (exit $ac_status); } && | |
4338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4339 | { (case "(($ac_try" in | |
4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4341 | *) ac_try_echo=$ac_try;; | |
4342 | esac | |
4343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4344 | (eval "$ac_try") 2>&5 | |
4345 | ac_status=$? | |
4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4347 | (exit $ac_status); }; } && | |
4348 | { ac_try='test -s conftest.$ac_objext' | |
4349 | { (case "(($ac_try" in | |
4350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4351 | *) ac_try_echo=$ac_try;; | |
4352 | esac | |
4353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4354 | (eval "$ac_try") 2>&5 | |
4355 | ac_status=$? | |
4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4357 | (exit $ac_status); }; }; then | |
4358 | ac_cv_prog_cc_g=yes | |
4359 | else | |
4360 | echo "$as_me: failed program was:" >&5 | |
4361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4362 | ||
4363 | CFLAGS="" | |
4364 | cat >conftest.$ac_ext <<_ACEOF | |
4365 | /* confdefs.h. */ | |
4366 | _ACEOF | |
4367 | cat confdefs.h >>conftest.$ac_ext | |
4368 | cat >>conftest.$ac_ext <<_ACEOF | |
4369 | /* end confdefs.h. */ | |
4370 | ||
4371 | int | |
4372 | main () | |
4373 | { | |
4374 | ||
4375 | ; | |
4376 | return 0; | |
4377 | } | |
4378 | _ACEOF | |
4379 | rm -f conftest.$ac_objext | |
4380 | if { (ac_try="$ac_compile" | |
4381 | case "(($ac_try" in | |
4382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4383 | *) ac_try_echo=$ac_try;; | |
4384 | esac | |
4385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4386 | (eval "$ac_compile") 2>conftest.er1 | |
4387 | ac_status=$? | |
4388 | grep -v '^ *+' conftest.er1 >conftest.err | |
4389 | rm -f conftest.er1 | |
4390 | cat conftest.err >&5 | |
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4392 | (exit $ac_status); } && | |
4393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4394 | { (case "(($ac_try" in | |
4395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4396 | *) ac_try_echo=$ac_try;; | |
4397 | esac | |
4398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4399 | (eval "$ac_try") 2>&5 | |
4400 | ac_status=$? | |
4401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4402 | (exit $ac_status); }; } && | |
4403 | { ac_try='test -s conftest.$ac_objext' | |
4404 | { (case "(($ac_try" in | |
4405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4406 | *) ac_try_echo=$ac_try;; | |
4407 | esac | |
4408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4409 | (eval "$ac_try") 2>&5 | |
4410 | ac_status=$? | |
4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4412 | (exit $ac_status); }; }; then | |
4413 | : | |
4414 | else | |
4415 | echo "$as_me: failed program was:" >&5 | |
4416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4417 | ||
4418 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4419 | CFLAGS="-g" | |
4420 | cat >conftest.$ac_ext <<_ACEOF | |
b3076f16 | 4421 | /* confdefs.h. */ |
4422 | _ACEOF | |
4423 | cat confdefs.h >>conftest.$ac_ext | |
4424 | cat >>conftest.$ac_ext <<_ACEOF | |
4425 | /* end confdefs.h. */ | |
4426 | ||
4427 | int | |
4428 | main () | |
4429 | { | |
4430 | ||
4431 | ; | |
4432 | return 0; | |
4433 | } | |
4434 | _ACEOF | |
4435 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4436 | if { (ac_try="$ac_compile" |
4437 | case "(($ac_try" in | |
4438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4439 | *) ac_try_echo=$ac_try;; | |
4440 | esac | |
4441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4442 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4443 | ac_status=$? |
4444 | grep -v '^ *+' conftest.er1 >conftest.err | |
4445 | rm -f conftest.er1 | |
4446 | cat conftest.err >&5 | |
4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4448 | (exit $ac_status); } && | |
a8b2ad8d | 4449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4450 | { (case "(($ac_try" in | |
4451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4452 | *) ac_try_echo=$ac_try;; | |
4453 | esac | |
4454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4455 | (eval "$ac_try") 2>&5 | |
b3076f16 | 4456 | ac_status=$? |
4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4458 | (exit $ac_status); }; } && | |
4459 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 4460 | { (case "(($ac_try" in |
4461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4462 | *) ac_try_echo=$ac_try;; | |
4463 | esac | |
4464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4465 | (eval "$ac_try") 2>&5 | |
b3076f16 | 4466 | ac_status=$? |
4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4468 | (exit $ac_status); }; }; then | |
4469 | ac_cv_prog_cc_g=yes | |
4470 | else | |
4471 | echo "$as_me: failed program was:" >&5 | |
4472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4473 | ||
a8b2ad8d | 4474 | |
4475 | fi | |
4476 | ||
4477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4478 | fi | |
4479 | ||
4480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 4481 | fi |
a8b2ad8d | 4482 | |
4483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4484 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b3076f16 | 4485 | fi |
a8b2ad8d | 4486 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4487 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
b3076f16 | 4488 | if test "$ac_test_CFLAGS" = set; then |
4489 | CFLAGS=$ac_save_CFLAGS | |
4490 | elif test $ac_cv_prog_cc_g = yes; then | |
4491 | if test "$GCC" = yes; then | |
4492 | CFLAGS="-g -O2" | |
4493 | else | |
4494 | CFLAGS="-g" | |
4495 | fi | |
4496 | else | |
4497 | if test "$GCC" = yes; then | |
4498 | CFLAGS="-O2" | |
4499 | else | |
4500 | CFLAGS= | |
4501 | fi | |
4502 | fi | |
a8b2ad8d | 4503 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4504 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4505 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
b3076f16 | 4506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4507 | else | |
a8b2ad8d | 4508 | ac_cv_prog_cc_c89=no |
b3076f16 | 4509 | ac_save_CC=$CC |
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 <stdarg.h> | |
4517 | #include <stdio.h> | |
4518 | #include <sys/types.h> | |
4519 | #include <sys/stat.h> | |
4520 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4521 | struct buf { int x; }; | |
4522 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4523 | static char *e (p, i) | |
4524 | char **p; | |
4525 | int i; | |
4526 | { | |
4527 | return p[i]; | |
4528 | } | |
4529 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4530 | { | |
4531 | char *s; | |
4532 | va_list v; | |
4533 | va_start (v,p); | |
4534 | s = g (p, va_arg (v,int)); | |
4535 | va_end (v); | |
4536 | return s; | |
4537 | } | |
4538 | ||
4539 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4540 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4541 | These don't provoke an error unfortunately, instead are silently treated | |
a8b2ad8d | 4542 | as 'x'. The following induces an error, until -std is added to get |
b3076f16 | 4543 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4544 | array size at least. It's necessary to write '\x00'==0 to get something | |
a8b2ad8d | 4545 | that's true only with -std. */ |
b3076f16 | 4546 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4547 | ||
a8b2ad8d | 4548 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4549 | inside strings and character constants. */ | |
4550 | #define FOO(x) 'x' | |
4551 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4552 | ||
b3076f16 | 4553 | int test (int i, double x); |
4554 | struct s1 {int (*f) (int a);}; | |
4555 | struct s2 {int (*f) (double a);}; | |
4556 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4557 | int argc; | |
4558 | char **argv; | |
4559 | int | |
4560 | main () | |
4561 | { | |
4562 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4563 | ; | |
4564 | return 0; | |
4565 | } | |
4566 | _ACEOF | |
a8b2ad8d | 4567 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4568 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b3076f16 | 4569 | do |
4570 | CC="$ac_save_CC $ac_arg" | |
4571 | rm -f conftest.$ac_objext | |
a8b2ad8d | 4572 | if { (ac_try="$ac_compile" |
4573 | case "(($ac_try" in | |
4574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4575 | *) ac_try_echo=$ac_try;; | |
4576 | esac | |
4577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4578 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 4579 | ac_status=$? |
4580 | grep -v '^ *+' conftest.er1 >conftest.err | |
4581 | rm -f conftest.er1 | |
4582 | cat conftest.err >&5 | |
4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4584 | (exit $ac_status); } && | |
a8b2ad8d | 4585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4586 | { (case "(($ac_try" in | |
4587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4588 | *) ac_try_echo=$ac_try;; | |
4589 | esac | |
4590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4591 | (eval "$ac_try") 2>&5 | |
b3076f16 | 4592 | ac_status=$? |
4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4594 | (exit $ac_status); }; } && | |
4595 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 4596 | { (case "(($ac_try" in |
4597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4598 | *) ac_try_echo=$ac_try;; | |
4599 | esac | |
4600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4601 | (eval "$ac_try") 2>&5 | |
b3076f16 | 4602 | ac_status=$? |
4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4604 | (exit $ac_status); }; }; then | |
a8b2ad8d | 4605 | ac_cv_prog_cc_c89=$ac_arg |
b3076f16 | 4606 | else |
4607 | echo "$as_me: failed program was:" >&5 | |
4608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4609 | ||
a8b2ad8d | 4610 | |
b3076f16 | 4611 | fi |
a8b2ad8d | 4612 | |
4613 | rm -f core conftest.err conftest.$ac_objext | |
4614 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b3076f16 | 4615 | done |
a8b2ad8d | 4616 | rm -f conftest.$ac_ext |
b3076f16 | 4617 | CC=$ac_save_CC |
4618 | ||
4619 | fi | |
a8b2ad8d | 4620 | # AC_CACHE_VAL |
4621 | case "x$ac_cv_prog_cc_c89" in | |
4622 | x) | |
4623 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4624 | echo "${ECHO_T}none needed" >&6; } ;; | |
4625 | xno) | |
4626 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4627 | echo "${ECHO_T}unsupported" >&6; } ;; | |
b3076f16 | 4628 | *) |
a8b2ad8d | 4629 | CC="$CC $ac_cv_prog_cc_c89" |
4630 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4631 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
b3076f16 | 4632 | esac |
4633 | ||
b3076f16 | 4634 | |
b3076f16 | 4635 | ac_ext=c |
4636 | ac_cpp='$CPP $CPPFLAGS' | |
4637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4640 | ||
ec1a68c8 | 4641 | depcc="$CC" am_compiler_list= |
4642 | ||
a8b2ad8d | 4643 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4644 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
ec1a68c8 | 4645 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
4646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4647 | else | |
4648 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4649 | # We make a subdir and do the tests there. Otherwise we can end up | |
4650 | # making bogus files that we don't know about and never remove. For | |
4651 | # instance it was reported that on HP-UX the gcc test will end up | |
4652 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4653 | # in D'. | |
4654 | mkdir conftest.dir | |
4655 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4656 | # using a relative directory. | |
4657 | cp "$am_depcomp" conftest.dir | |
4658 | cd conftest.dir | |
4659 | # We will build objects and dependencies in a subdirectory because | |
4660 | # it helps to detect inapplicable dependency modes. For instance | |
4661 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4662 | # side effect of compilation, but ICC will put the dependencies in | |
4663 | # the current directory while Tru64 will put them in the object | |
4664 | # directory. | |
4665 | mkdir sub | |
4666 | ||
4667 | am_cv_CC_dependencies_compiler_type=none | |
4668 | if test "$am_compiler_list" = ""; then | |
4669 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4670 | fi | |
4671 | for depmode in $am_compiler_list; do | |
4672 | # Setup a source with many dependencies, because some compilers | |
4673 | # like to wrap large dependency lists on column 80 (with \), and | |
4674 | # we should not choose a depcomp mode which is confused by this. | |
4675 | # | |
4676 | # We need to recreate these files for each test, as the compiler may | |
4677 | # overwrite some of them when testing with obscure command lines. | |
4678 | # This happens at least with the AIX C compiler. | |
4679 | : > sub/conftest.c | |
4680 | for i in 1 2 3 4 5 6; do | |
4681 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4682 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4683 | # Solaris 8's {/usr,}/bin/sh. | |
4684 | touch sub/conftst$i.h | |
4685 | done | |
4686 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4687 | ||
4688 | case $depmode in | |
4689 | nosideeffect) | |
4690 | # after this tag, mechanisms are not by side-effect, so they'll | |
4691 | # only be used when explicitly requested | |
4692 | if test "x$enable_dependency_tracking" = xyes; then | |
4693 | continue | |
4694 | else | |
4695 | break | |
4696 | fi | |
4697 | ;; | |
4698 | none) break ;; | |
4699 | esac | |
4700 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4701 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4702 | # handle `-M -o', and we need to detect this. | |
4703 | if depmode=$depmode \ | |
4704 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4705 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4706 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
4707 | >/dev/null 2>conftest.err && | |
4708 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4709 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4710 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4711 | # icc doesn't choke on unknown options, it will just issue warnings | |
4712 | # or remarks (even with -Werror). So we grep stderr for any message | |
4713 | # that says an option was ignored or not supported. | |
4714 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4715 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4716 | # The diagnosis changed in icc 8.0: | |
4717 | # icc: Command line remark: option '-MP' not supported | |
4718 | if (grep 'ignoring option' conftest.err || | |
4719 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4720 | am_cv_CC_dependencies_compiler_type=$depmode | |
4721 | break | |
4722 | fi | |
4723 | fi | |
4724 | done | |
4725 | ||
4726 | cd .. | |
4727 | rm -rf conftest.dir | |
4728 | else | |
4729 | am_cv_CC_dependencies_compiler_type=none | |
4730 | fi | |
4731 | ||
4732 | fi | |
a8b2ad8d | 4733 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4734 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
ec1a68c8 | 4735 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4736 | ||
4737 | ||
4738 | ||
4739 | if | |
4740 | test "x$enable_dependency_tracking" != xno \ | |
4741 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4742 | am__fastdepCC_TRUE= | |
4743 | am__fastdepCC_FALSE='#' | |
4744 | else | |
4745 | am__fastdepCC_TRUE='#' | |
4746 | am__fastdepCC_FALSE= | |
4747 | fi | |
4748 | ||
4749 | ||
b3076f16 | 4750 | # Find a good install program. We prefer a C program (faster), |
4751 | # so one script is as good as another. But avoid the broken or | |
4752 | # incompatible versions: | |
4753 | # SysV /etc/install, /usr/sbin/install | |
4754 | # SunOS /usr/etc/install | |
4755 | # IRIX /sbin/install | |
4756 | # AIX /bin/install | |
4757 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4758 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4759 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4760 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4761 | # OS/2's system install, which has a completely different semantic | |
4762 | # ./install, which can be erroneously created by make from ./install.sh. | |
a8b2ad8d | 4763 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4764 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
b3076f16 | 4765 | if test -z "$INSTALL"; then |
4766 | if test "${ac_cv_path_install+set}" = set; then | |
4767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4768 | else | |
4769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4770 | for as_dir in $PATH | |
4771 | do | |
4772 | IFS=$as_save_IFS | |
4773 | test -z "$as_dir" && as_dir=. | |
4774 | # Account for people who put trailing slashes in PATH elements. | |
4775 | case $as_dir/ in | |
4776 | ./ | .// | /cC/* | \ | |
4777 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4778 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4779 | /usr/ucb/* ) ;; | |
4780 | *) | |
4781 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4782 | # Don't use installbsd from OSF since it installs stuff as root | |
4783 | # by default. | |
4784 | for ac_prog in ginstall scoinst install; do | |
4785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 4786 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
b3076f16 | 4787 | if test $ac_prog = install && |
4788 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4789 | # AIX install. It has an incompatible calling convention. | |
4790 | : | |
4791 | elif test $ac_prog = install && | |
4792 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4793 | # program-specific install script used by HP pwplus--don't use. | |
4794 | : | |
4795 | else | |
4796 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4797 | break 3 | |
4798 | fi | |
4799 | fi | |
4800 | done | |
4801 | done | |
4802 | ;; | |
4803 | esac | |
4804 | done | |
a8b2ad8d | 4805 | IFS=$as_save_IFS |
b3076f16 | 4806 | |
4807 | ||
4808 | fi | |
4809 | if test "${ac_cv_path_install+set}" = set; then | |
4810 | INSTALL=$ac_cv_path_install | |
4811 | else | |
a8b2ad8d | 4812 | # As a last resort, use the slow shell script. Don't cache a |
4813 | # value for INSTALL within a source directory, because that will | |
b3076f16 | 4814 | # break other packages using the cache if that directory is |
a8b2ad8d | 4815 | # removed, or if the value is a relative name. |
b3076f16 | 4816 | INSTALL=$ac_install_sh |
4817 | fi | |
4818 | fi | |
a8b2ad8d | 4819 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4820 | echo "${ECHO_T}$INSTALL" >&6; } | |
b3076f16 | 4821 | |
4822 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4823 | # It thinks the first close brace ends the variable substitution. | |
4824 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4825 | ||
4826 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4827 | ||
4828 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4829 | ||
2f61d1d7 | 4830 | |
35305a49 | 4831 | if test -n "$ac_tool_prefix"; then |
4832 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4833 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
a8b2ad8d | 4834 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
35305a49 | 4836 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
2f61d1d7 | 4837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4838 | else | |
35305a49 | 4839 | if test -n "$RANLIB"; then |
4840 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4841 | else | |
2f61d1d7 | 4842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4843 | for as_dir in $PATH | |
4844 | do | |
4845 | IFS=$as_save_IFS | |
4846 | test -z "$as_dir" && as_dir=. | |
35305a49 | 4847 | for ac_exec_ext in '' $ac_executable_extensions; do |
a8b2ad8d | 4848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4849 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4851 | break 2 | |
2f61d1d7 | 4852 | fi |
35305a49 | 4853 | done |
2f61d1d7 | 4854 | done |
a8b2ad8d | 4855 | IFS=$as_save_IFS |
2f61d1d7 | 4856 | |
b3076f16 | 4857 | fi |
35305a49 | 4858 | fi |
4859 | RANLIB=$ac_cv_prog_RANLIB | |
4860 | if test -n "$RANLIB"; then | |
a8b2ad8d | 4861 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4862 | echo "${ECHO_T}$RANLIB" >&6; } | |
b3076f16 | 4863 | else |
a8b2ad8d | 4864 | { echo "$as_me:$LINENO: result: no" >&5 |
4865 | echo "${ECHO_T}no" >&6; } | |
2f61d1d7 | 4866 | fi |
2f61d1d7 | 4867 | |
a8b2ad8d | 4868 | |
b3076f16 | 4869 | fi |
35305a49 | 4870 | if test -z "$ac_cv_prog_RANLIB"; then |
4871 | ac_ct_RANLIB=$RANLIB | |
4872 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4873 | set dummy ranlib; ac_word=$2 | |
a8b2ad8d | 4874 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
35305a49 | 4876 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
2f61d1d7 | 4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4878 | else | |
35305a49 | 4879 | if test -n "$ac_ct_RANLIB"; then |
4880 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f61d1d7 | 4881 | else |
35305a49 | 4882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4883 | for as_dir in $PATH | |
4884 | do | |
4885 | IFS=$as_save_IFS | |
4886 | test -z "$as_dir" && as_dir=. | |
4887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 4888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
35305a49 | 4889 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4891 | break 2 | |
4892 | fi | |
4893 | done | |
4894 | done | |
a8b2ad8d | 4895 | IFS=$as_save_IFS |
35305a49 | 4896 | |
b3076f16 | 4897 | fi |
2f61d1d7 | 4898 | fi |
35305a49 | 4899 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4900 | if test -n "$ac_ct_RANLIB"; then | |
a8b2ad8d | 4901 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4902 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
b3076f16 | 4903 | else |
a8b2ad8d | 4904 | { echo "$as_me:$LINENO: result: no" >&5 |
4905 | echo "${ECHO_T}no" >&6; } | |
b3076f16 | 4906 | fi |
4907 | ||
a8b2ad8d | 4908 | if test "x$ac_ct_RANLIB" = x; then |
4909 | RANLIB=":" | |
4910 | else | |
4911 | case $cross_compiling:$ac_tool_warned in | |
4912 | yes:) | |
4913 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4914 | whose name does not start with the host triplet. If you think this | |
4915 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4916 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4917 | whose name does not start with the host triplet. If you think this | |
4918 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4919 | ac_tool_warned=yes ;; | |
4920 | esac | |
4921 | RANLIB=$ac_ct_RANLIB | |
4922 | fi | |
2f61d1d7 | 4923 | else |
35305a49 | 4924 | RANLIB="$ac_cv_prog_RANLIB" |
b3076f16 | 4925 | fi |
2f61d1d7 | 4926 | |
2f61d1d7 | 4927 | |
a8b2ad8d | 4928 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4929 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
2f61d1d7 | 4930 | LN_S=$as_ln_s |
4931 | if test "$LN_S" = "ln -s"; then | |
a8b2ad8d | 4932 | { echo "$as_me:$LINENO: result: yes" >&5 |
4933 | echo "${ECHO_T}yes" >&6; } | |
2f61d1d7 | 4934 | else |
a8b2ad8d | 4935 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4936 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
2f61d1d7 | 4937 | fi |
4938 | ||
a8b2ad8d | 4939 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4940 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
4941 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4942 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2f61d1d7 | 4943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4944 | else | |
35305a49 | 4945 | cat >conftest.make <<\_ACEOF |
a8b2ad8d | 4946 | SHELL = /bin/sh |
35305a49 | 4947 | all: |
a8b2ad8d | 4948 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
35305a49 | 4949 | _ACEOF |
4950 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
a8b2ad8d | 4951 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4952 | *@@@%%%=?*=@@@%%%*) | |
4953 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4954 | *) | |
4955 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4956 | esac | |
35305a49 | 4957 | rm -f conftest.make |
4958 | fi | |
a8b2ad8d | 4959 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4960 | { echo "$as_me:$LINENO: result: yes" >&5 | |
4961 | echo "${ECHO_T}yes" >&6; } | |
35305a49 | 4962 | SET_MAKE= |
4963 | else | |
a8b2ad8d | 4964 | { echo "$as_me:$LINENO: result: no" >&5 |
4965 | echo "${ECHO_T}no" >&6; } | |
35305a49 | 4966 | SET_MAKE="MAKE=${MAKE-make}" |
2f61d1d7 | 4967 | fi |
2f61d1d7 | 4968 | |
4969 | ac_ext=c | |
4970 | ac_cpp='$CPP $CPPFLAGS' | |
4971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a8b2ad8d | 4974 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4975 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
2f61d1d7 | 4976 | # On Suns, sometimes $CPP names a directory. |
4977 | if test -n "$CPP" && test -d "$CPP"; then | |
4978 | CPP= | |
4979 | fi | |
4980 | if test -z "$CPP"; then | |
4981 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4983 | else | |
4984 | # Double quotes because CPP needs to be expanded | |
4985 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4986 | do | |
4987 | ac_preproc_ok=false | |
4988 | for ac_c_preproc_warn_flag in '' yes | |
4989 | do | |
4990 | # Use a header file that comes with gcc, so configuring glibc | |
b3076f16 | 4991 | # with a fresh cross-compiler works. |
4992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4993 | # <limits.h> exists even on freestanding compilers. | |
4994 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4995 | # not just through cpp. "Syntax error" is here to catch this case. | |
4996 | cat >conftest.$ac_ext <<_ACEOF | |
4997 | /* confdefs.h. */ | |
4998 | _ACEOF | |
4999 | cat confdefs.h >>conftest.$ac_ext | |
5000 | cat >>conftest.$ac_ext <<_ACEOF | |
5001 | /* end confdefs.h. */ | |
5002 | #ifdef __STDC__ | |
5003 | # include <limits.h> | |
5004 | #else | |
5005 | # include <assert.h> | |
5006 | #endif | |
5007 | Syntax error | |
5008 | _ACEOF | |
a8b2ad8d | 5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5010 | case "(($ac_try" in | |
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5012 | *) ac_try_echo=$ac_try;; | |
5013 | esac | |
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 5016 | ac_status=$? |
5017 | grep -v '^ *+' conftest.er1 >conftest.err | |
5018 | rm -f conftest.er1 | |
5019 | cat conftest.err >&5 | |
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5021 | (exit $ac_status); } >/dev/null; then | |
5022 | if test -s conftest.err; then | |
5023 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5025 | else | |
5026 | ac_cpp_err= | |
5027 | fi | |
5028 | else | |
5029 | ac_cpp_err=yes | |
5030 | fi | |
5031 | if test -z "$ac_cpp_err"; then | |
5032 | : | |
5033 | else | |
5034 | echo "$as_me: failed program was:" >&5 | |
5035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5036 | ||
5037 | # Broken: fails on valid input. | |
5038 | continue | |
5039 | fi | |
a8b2ad8d | 5040 | |
b3076f16 | 5041 | rm -f conftest.err conftest.$ac_ext |
5042 | ||
a8b2ad8d | 5043 | # OK, works on sane cases. Now check whether nonexistent headers |
b3076f16 | 5044 | # can be detected and how. |
5045 | cat >conftest.$ac_ext <<_ACEOF | |
5046 | /* confdefs.h. */ | |
5047 | _ACEOF | |
5048 | cat confdefs.h >>conftest.$ac_ext | |
5049 | cat >>conftest.$ac_ext <<_ACEOF | |
5050 | /* end confdefs.h. */ | |
5051 | #include <ac_nonexistent.h> | |
5052 | _ACEOF | |
a8b2ad8d | 5053 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5054 | case "(($ac_try" in | |
5055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5056 | *) ac_try_echo=$ac_try;; | |
5057 | esac | |
5058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5059 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 5060 | ac_status=$? |
5061 | grep -v '^ *+' conftest.er1 >conftest.err | |
5062 | rm -f conftest.er1 | |
5063 | cat conftest.err >&5 | |
5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5065 | (exit $ac_status); } >/dev/null; then | |
5066 | if test -s conftest.err; then | |
5067 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5068 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5069 | else | |
5070 | ac_cpp_err= | |
5071 | fi | |
5072 | else | |
5073 | ac_cpp_err=yes | |
5074 | fi | |
5075 | if test -z "$ac_cpp_err"; then | |
5076 | # Broken: success on invalid input. | |
5077 | continue | |
5078 | else | |
5079 | echo "$as_me: failed program was:" >&5 | |
5080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5081 | ||
5082 | # Passes both tests. | |
5083 | ac_preproc_ok=: | |
5084 | break | |
5085 | fi | |
a8b2ad8d | 5086 | |
b3076f16 | 5087 | rm -f conftest.err conftest.$ac_ext |
5088 | ||
5089 | done | |
5090 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5091 | rm -f conftest.err conftest.$ac_ext | |
5092 | if $ac_preproc_ok; then | |
5093 | break | |
5094 | fi | |
5095 | ||
5096 | done | |
5097 | ac_cv_prog_CPP=$CPP | |
5098 | ||
5099 | fi | |
5100 | CPP=$ac_cv_prog_CPP | |
5101 | else | |
5102 | ac_cv_prog_CPP=$CPP | |
5103 | fi | |
a8b2ad8d | 5104 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
5105 | echo "${ECHO_T}$CPP" >&6; } | |
b3076f16 | 5106 | ac_preproc_ok=false |
5107 | for ac_c_preproc_warn_flag in '' yes | |
5108 | do | |
5109 | # Use a header file that comes with gcc, so configuring glibc | |
5110 | # with a fresh cross-compiler works. | |
5111 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5112 | # <limits.h> exists even on freestanding compilers. | |
5113 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5114 | # not just through cpp. "Syntax error" is here to catch this case. | |
5115 | cat >conftest.$ac_ext <<_ACEOF | |
5116 | /* confdefs.h. */ | |
5117 | _ACEOF | |
5118 | cat confdefs.h >>conftest.$ac_ext | |
5119 | cat >>conftest.$ac_ext <<_ACEOF | |
5120 | /* end confdefs.h. */ | |
5121 | #ifdef __STDC__ | |
5122 | # include <limits.h> | |
5123 | #else | |
5124 | # include <assert.h> | |
5125 | #endif | |
5126 | Syntax error | |
5127 | _ACEOF | |
a8b2ad8d | 5128 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5129 | case "(($ac_try" in | |
5130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5131 | *) ac_try_echo=$ac_try;; | |
5132 | esac | |
5133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 5135 | ac_status=$? |
5136 | grep -v '^ *+' conftest.er1 >conftest.err | |
5137 | rm -f conftest.er1 | |
5138 | cat conftest.err >&5 | |
5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5140 | (exit $ac_status); } >/dev/null; then | |
5141 | if test -s conftest.err; then | |
5142 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5143 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5144 | else | |
5145 | ac_cpp_err= | |
5146 | fi | |
5147 | else | |
5148 | ac_cpp_err=yes | |
5149 | fi | |
5150 | if test -z "$ac_cpp_err"; then | |
5151 | : | |
5152 | else | |
5153 | echo "$as_me: failed program was:" >&5 | |
5154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5155 | ||
5156 | # Broken: fails on valid input. | |
5157 | continue | |
5158 | fi | |
a8b2ad8d | 5159 | |
b3076f16 | 5160 | rm -f conftest.err conftest.$ac_ext |
5161 | ||
a8b2ad8d | 5162 | # OK, works on sane cases. Now check whether nonexistent headers |
b3076f16 | 5163 | # can be detected and how. |
5164 | cat >conftest.$ac_ext <<_ACEOF | |
5165 | /* confdefs.h. */ | |
5166 | _ACEOF | |
5167 | cat confdefs.h >>conftest.$ac_ext | |
5168 | cat >>conftest.$ac_ext <<_ACEOF | |
5169 | /* end confdefs.h. */ | |
5170 | #include <ac_nonexistent.h> | |
5171 | _ACEOF | |
a8b2ad8d | 5172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5173 | case "(($ac_try" in | |
5174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5175 | *) ac_try_echo=$ac_try;; | |
5176 | esac | |
5177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5178 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 5179 | ac_status=$? |
5180 | grep -v '^ *+' conftest.er1 >conftest.err | |
5181 | rm -f conftest.er1 | |
5182 | cat conftest.err >&5 | |
5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5184 | (exit $ac_status); } >/dev/null; then | |
5185 | if test -s conftest.err; then | |
5186 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5187 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5188 | else | |
5189 | ac_cpp_err= | |
5190 | fi | |
5191 | else | |
5192 | ac_cpp_err=yes | |
5193 | fi | |
5194 | if test -z "$ac_cpp_err"; then | |
5195 | # Broken: success on invalid input. | |
5196 | continue | |
5197 | else | |
5198 | echo "$as_me: failed program was:" >&5 | |
5199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5200 | ||
5201 | # Passes both tests. | |
5202 | ac_preproc_ok=: | |
5203 | break | |
5204 | fi | |
a8b2ad8d | 5205 | |
b3076f16 | 5206 | rm -f conftest.err conftest.$ac_ext |
5207 | ||
5208 | done | |
5209 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5210 | rm -f conftest.err conftest.$ac_ext | |
5211 | if $ac_preproc_ok; then | |
5212 | : | |
5213 | else | |
5214 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5215 | See \`config.log' for more details." >&5 | |
5216 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5217 | See \`config.log' for more details." >&2;} | |
5218 | { (exit 1); exit 1; }; } | |
5219 | fi | |
5220 | ||
2f61d1d7 | 5221 | ac_ext=c |
5222 | ac_cpp='$CPP $CPPFLAGS' | |
5223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5226 | ||
5227 | ||
a8b2ad8d | 5228 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
5229 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
5230 | if test "${ac_cv_path_GREP+set}" = set; then | |
5231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5232 | else | |
5233 | # Extract the first word of "grep ggrep" to use in msg output | |
5234 | if test -z "$GREP"; then | |
5235 | set dummy grep ggrep; ac_prog_name=$2 | |
5236 | if test "${ac_cv_path_GREP+set}" = set; then | |
5237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5238 | else | |
5239 | ac_path_GREP_found=false | |
5240 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5242 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5243 | do | |
5244 | IFS=$as_save_IFS | |
5245 | test -z "$as_dir" && as_dir=. | |
5246 | for ac_prog in grep ggrep; do | |
5247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5248 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5249 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | |
5250 | # Check for GNU ac_path_GREP and select it if it is found. | |
5251 | # Check for GNU $ac_path_GREP | |
5252 | case `"$ac_path_GREP" --version 2>&1` in | |
5253 | *GNU*) | |
5254 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5255 | *) | |
5256 | ac_count=0 | |
5257 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5258 | while : | |
5259 | do | |
5260 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5261 | mv "conftest.tmp" "conftest.in" | |
5262 | cp "conftest.in" "conftest.nl" | |
5263 | echo 'GREP' >> "conftest.nl" | |
5264 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5265 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5266 | ac_count=`expr $ac_count + 1` | |
5267 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5268 | # Best one so far, save it but keep looking for a better one | |
5269 | ac_cv_path_GREP="$ac_path_GREP" | |
5270 | ac_path_GREP_max=$ac_count | |
5271 | fi | |
5272 | # 10*(2^10) chars as input seems more than enough | |
5273 | test $ac_count -gt 10 && break | |
5274 | done | |
5275 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5276 | esac | |
5277 | ||
5278 | ||
5279 | $ac_path_GREP_found && break 3 | |
5280 | done | |
5281 | done | |
5282 | ||
5283 | done | |
5284 | IFS=$as_save_IFS | |
5285 | ||
5286 | ||
5287 | fi | |
5288 | ||
5289 | GREP="$ac_cv_path_GREP" | |
5290 | if test -z "$GREP"; then | |
5291 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5292 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5293 | { (exit 1); exit 1; }; } | |
5294 | fi | |
5295 | ||
5296 | else | |
5297 | ac_cv_path_GREP=$GREP | |
5298 | fi | |
5299 | ||
5300 | ||
5301 | fi | |
5302 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
5303 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
5304 | GREP="$ac_cv_path_GREP" | |
5305 | ||
5306 | ||
5307 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
5308 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
5309 | if test "${ac_cv_path_EGREP+set}" = set; then | |
5310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5311 | else | |
5312 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5313 | then ac_cv_path_EGREP="$GREP -E" | |
5314 | else | |
5315 | # Extract the first word of "egrep" to use in msg output | |
5316 | if test -z "$EGREP"; then | |
5317 | set dummy egrep; ac_prog_name=$2 | |
5318 | if test "${ac_cv_path_EGREP+set}" = set; then | |
2f61d1d7 | 5319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5320 | else | |
a8b2ad8d | 5321 | ac_path_EGREP_found=false |
5322 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5324 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5325 | do | |
5326 | IFS=$as_save_IFS | |
5327 | test -z "$as_dir" && as_dir=. | |
5328 | for ac_prog in egrep; do | |
5329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5330 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5331 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | |
5332 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5333 | # Check for GNU $ac_path_EGREP | |
5334 | case `"$ac_path_EGREP" --version 2>&1` in | |
5335 | *GNU*) | |
5336 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5337 | *) | |
5338 | ac_count=0 | |
5339 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
5340 | while : | |
5341 | do | |
5342 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5343 | mv "conftest.tmp" "conftest.in" | |
5344 | cp "conftest.in" "conftest.nl" | |
5345 | echo 'EGREP' >> "conftest.nl" | |
5346 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5347 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5348 | ac_count=`expr $ac_count + 1` | |
5349 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5350 | # Best one so far, save it but keep looking for a better one | |
5351 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5352 | ac_path_EGREP_max=$ac_count | |
35305a49 | 5353 | fi |
a8b2ad8d | 5354 | # 10*(2^10) chars as input seems more than enough |
5355 | test $ac_count -gt 10 && break | |
5356 | done | |
5357 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5358 | esac | |
5359 | ||
5360 | ||
5361 | $ac_path_EGREP_found && break 3 | |
5362 | done | |
5363 | done | |
5364 | ||
5365 | done | |
5366 | IFS=$as_save_IFS | |
5367 | ||
5368 | ||
5369 | fi | |
5370 | ||
5371 | EGREP="$ac_cv_path_EGREP" | |
5372 | if test -z "$EGREP"; then | |
5373 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
5374 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
5375 | { (exit 1); exit 1; }; } | |
5376 | fi | |
5377 | ||
5378 | else | |
5379 | ac_cv_path_EGREP=$EGREP | |
5380 | fi | |
5381 | ||
5382 | ||
5383 | fi | |
2f61d1d7 | 5384 | fi |
a8b2ad8d | 5385 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
5386 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
5387 | EGREP="$ac_cv_path_EGREP" | |
35305a49 | 5388 | |
b3076f16 | 5389 | |
5390 | if test $ac_cv_c_compiler_gnu = yes; then | |
a8b2ad8d | 5391 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
5392 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
b3076f16 | 5393 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
5394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5395 | else | |
5396 | ac_pattern="Autoconf.*'x'" | |
5397 | cat >conftest.$ac_ext <<_ACEOF | |
5398 | /* confdefs.h. */ | |
5399 | _ACEOF | |
5400 | cat confdefs.h >>conftest.$ac_ext | |
5401 | cat >>conftest.$ac_ext <<_ACEOF | |
5402 | /* end confdefs.h. */ | |
5403 | #include <sgtty.h> | |
5404 | Autoconf TIOCGETP | |
5405 | _ACEOF | |
5406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5407 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5408 | ac_cv_prog_gcc_traditional=yes | |
5409 | else | |
5410 | ac_cv_prog_gcc_traditional=no | |
5411 | fi | |
5412 | rm -f conftest* | |
5413 | ||
5414 | ||
5415 | if test $ac_cv_prog_gcc_traditional = no; then | |
5416 | cat >conftest.$ac_ext <<_ACEOF | |
5417 | /* confdefs.h. */ | |
5418 | _ACEOF | |
5419 | cat confdefs.h >>conftest.$ac_ext | |
5420 | cat >>conftest.$ac_ext <<_ACEOF | |
5421 | /* end confdefs.h. */ | |
5422 | #include <termio.h> | |
5423 | Autoconf TCGETA | |
5424 | _ACEOF | |
5425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5426 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
5427 | ac_cv_prog_gcc_traditional=yes | |
5428 | fi | |
5429 | rm -f conftest* | |
5430 | ||
5431 | fi | |
5432 | fi | |
a8b2ad8d | 5433 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
5434 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
b3076f16 | 5435 | if test $ac_cv_prog_gcc_traditional = yes; then |
5436 | CC="$CC -traditional" | |
5437 | fi | |
5438 | fi | |
5439 | ||
5b1166fd | 5440 | # Extract the first word of "gmake", so it can be a program name with args. |
5441 | set dummy gmake; ac_word=$2 | |
a8b2ad8d | 5442 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5b1166fd | 5444 | if test "${ac_cv_prog_MAKER+set}" = set; then |
5445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5446 | else | |
5447 | if test -n "$MAKER"; then | |
5448 | ac_cv_prog_MAKER="$MAKER" # Let the user override the test. | |
5449 | else | |
5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5451 | for as_dir in $PATH | |
5452 | do | |
5453 | IFS=$as_save_IFS | |
5454 | test -z "$as_dir" && as_dir=. | |
5455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
a8b2ad8d | 5456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5b1166fd | 5457 | ac_cv_prog_MAKER="gmake" |
5458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5459 | break 2 | |
5460 | fi | |
5461 | done | |
5462 | done | |
a8b2ad8d | 5463 | IFS=$as_save_IFS |
5b1166fd | 5464 | |
5465 | test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make" | |
5466 | fi | |
5467 | fi | |
5468 | MAKER=$ac_cv_prog_MAKER | |
5469 | if test -n "$MAKER"; then | |
a8b2ad8d | 5470 | { echo "$as_me:$LINENO: result: $MAKER" >&5 |
5471 | echo "${ECHO_T}$MAKER" >&6; } | |
5b1166fd | 5472 | else |
a8b2ad8d | 5473 | { echo "$as_me:$LINENO: result: no" >&5 |
5474 | echo "${ECHO_T}no" >&6; } | |
5b1166fd | 5475 | fi |
5476 | ||
b3076f16 | 5477 | |
a8b2ad8d | 5478 | |
b3076f16 | 5479 | case $target in |
5480 | *-freebsd2* | *-freebsdelf2* | *-freebsd*out3*) | |
5481 | ANSI_SRC="" | |
5482 | ;; | |
5483 | *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*) | |
5484 | ANSI_SRC="" | |
b3076f16 | 5485 | ;; |
5486 | *-solaris*) | |
5487 | EXTRA_DEFINE="-D__SOLARIS__" | |
5488 | ANSI_SRC="-fno-builtin" | |
5489 | ;; | |
5490 | *-cygwin) | |
5491 | ANSI_SRC="-fno-builtin" | |
5492 | ;; | |
5493 | *-linux*) | |
5494 | EXTRA_DEFINE="-D_GNU_SOURCE" | |
5495 | ANSI_SRC="" | |
5496 | ;; | |
5497 | *) | |
5498 | ANSI_SRC="" | |
5499 | ;; | |
5500 | esac | |
5501 | CFLAGS="$CFLAGS $EXTRA_DEFINE" | |
5502 | ||
5503 | ||
a8b2ad8d | 5504 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
5505 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } | |
b3076f16 | 5506 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5508 | else | |
5509 | ac_check_lib_save_LIBS=$LIBS | |
5510 | LIBS="-lsocket $LIBS" | |
5511 | cat >conftest.$ac_ext <<_ACEOF | |
5512 | /* confdefs.h. */ | |
5513 | _ACEOF | |
5514 | cat confdefs.h >>conftest.$ac_ext | |
5515 | cat >>conftest.$ac_ext <<_ACEOF | |
5516 | /* end confdefs.h. */ | |
5517 | ||
a8b2ad8d | 5518 | /* Override any GCC internal prototype to avoid an error. |
5519 | Use char because int might match the return type of a GCC | |
5520 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 5521 | #ifdef __cplusplus |
5522 | extern "C" | |
5523 | #endif | |
b3076f16 | 5524 | char socket (); |
5525 | int | |
5526 | main () | |
5527 | { | |
a8b2ad8d | 5528 | return socket (); |
b3076f16 | 5529 | ; |
5530 | return 0; | |
5531 | } | |
5532 | _ACEOF | |
5533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5534 | if { (ac_try="$ac_link" |
5535 | case "(($ac_try" in | |
5536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5537 | *) ac_try_echo=$ac_try;; | |
5538 | esac | |
5539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5540 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5541 | ac_status=$? |
5542 | grep -v '^ *+' conftest.er1 >conftest.err | |
5543 | rm -f conftest.er1 | |
5544 | cat conftest.err >&5 | |
5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5546 | (exit $ac_status); } && | |
a8b2ad8d | 5547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5548 | { (case "(($ac_try" in | |
5549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5550 | *) ac_try_echo=$ac_try;; | |
5551 | esac | |
5552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5553 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5554 | ac_status=$? |
5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5556 | (exit $ac_status); }; } && | |
5557 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 5558 | { (case "(($ac_try" in |
5559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5560 | *) ac_try_echo=$ac_try;; | |
5561 | esac | |
5562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5563 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5564 | ac_status=$? |
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5566 | (exit $ac_status); }; }; then | |
5567 | ac_cv_lib_socket_socket=yes | |
5568 | else | |
5569 | echo "$as_me: failed program was:" >&5 | |
5570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5571 | ||
a8b2ad8d | 5572 | ac_cv_lib_socket_socket=no |
b3076f16 | 5573 | fi |
a8b2ad8d | 5574 | |
5575 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 5576 | conftest$ac_exeext conftest.$ac_ext |
5577 | LIBS=$ac_check_lib_save_LIBS | |
5578 | fi | |
a8b2ad8d | 5579 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
5580 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } | |
b3076f16 | 5581 | if test $ac_cv_lib_socket_socket = yes; then |
5582 | cat >>confdefs.h <<_ACEOF | |
5583 | #define HAVE_LIBSOCKET 1 | |
5584 | _ACEOF | |
5585 | ||
5586 | LIBS="-lsocket $LIBS" | |
5587 | ||
5588 | fi | |
5589 | ||
5590 | ||
a8b2ad8d | 5591 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
5592 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
b3076f16 | 5593 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
5594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5595 | else | |
5596 | ac_check_lib_save_LIBS=$LIBS | |
5597 | LIBS="-lnsl $LIBS" | |
5598 | cat >conftest.$ac_ext <<_ACEOF | |
5599 | /* confdefs.h. */ | |
5600 | _ACEOF | |
5601 | cat confdefs.h >>conftest.$ac_ext | |
5602 | cat >>conftest.$ac_ext <<_ACEOF | |
5603 | /* end confdefs.h. */ | |
5604 | ||
a8b2ad8d | 5605 | /* Override any GCC internal prototype to avoid an error. |
5606 | Use char because int might match the return type of a GCC | |
5607 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 5608 | #ifdef __cplusplus |
5609 | extern "C" | |
5610 | #endif | |
b3076f16 | 5611 | char gethostbyname (); |
5612 | int | |
5613 | main () | |
5614 | { | |
a8b2ad8d | 5615 | return gethostbyname (); |
b3076f16 | 5616 | ; |
5617 | return 0; | |
5618 | } | |
5619 | _ACEOF | |
5620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5621 | if { (ac_try="$ac_link" |
5622 | case "(($ac_try" in | |
5623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5624 | *) ac_try_echo=$ac_try;; | |
5625 | esac | |
5626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5627 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5628 | ac_status=$? |
5629 | grep -v '^ *+' conftest.er1 >conftest.err | |
5630 | rm -f conftest.er1 | |
5631 | cat conftest.err >&5 | |
5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5633 | (exit $ac_status); } && | |
a8b2ad8d | 5634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5635 | { (case "(($ac_try" in | |
5636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5637 | *) ac_try_echo=$ac_try;; | |
5638 | esac | |
5639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5640 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5641 | ac_status=$? |
5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5643 | (exit $ac_status); }; } && | |
5644 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 5645 | { (case "(($ac_try" in |
5646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5647 | *) ac_try_echo=$ac_try;; | |
5648 | esac | |
5649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5650 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5651 | ac_status=$? |
5652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5653 | (exit $ac_status); }; }; then | |
5654 | ac_cv_lib_nsl_gethostbyname=yes | |
5655 | else | |
5656 | echo "$as_me: failed program was:" >&5 | |
5657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5658 | ||
a8b2ad8d | 5659 | ac_cv_lib_nsl_gethostbyname=no |
b3076f16 | 5660 | fi |
a8b2ad8d | 5661 | |
5662 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 5663 | conftest$ac_exeext conftest.$ac_ext |
5664 | LIBS=$ac_check_lib_save_LIBS | |
5665 | fi | |
a8b2ad8d | 5666 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
5667 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
b3076f16 | 5668 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
5669 | cat >>confdefs.h <<_ACEOF | |
5670 | #define HAVE_LIBNSL 1 | |
5671 | _ACEOF | |
5672 | ||
5673 | LIBS="-lnsl $LIBS" | |
5674 | ||
5675 | fi | |
5676 | ||
5677 | ||
a8b2ad8d | 5678 | { echo "$as_me:$LINENO: checking for main in -lm" >&5 |
5679 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; } | |
b3076f16 | 5680 | if test "${ac_cv_lib_m_main+set}" = set; then |
5681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5682 | else | |
5683 | ac_check_lib_save_LIBS=$LIBS | |
5684 | LIBS="-lm $LIBS" | |
5685 | cat >conftest.$ac_ext <<_ACEOF | |
5686 | /* confdefs.h. */ | |
5687 | _ACEOF | |
5688 | cat confdefs.h >>conftest.$ac_ext | |
5689 | cat >>conftest.$ac_ext <<_ACEOF | |
5690 | /* end confdefs.h. */ | |
5691 | ||
5692 | ||
5693 | int | |
5694 | main () | |
5695 | { | |
a8b2ad8d | 5696 | return main (); |
b3076f16 | 5697 | ; |
5698 | return 0; | |
5699 | } | |
5700 | _ACEOF | |
5701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5702 | if { (ac_try="$ac_link" |
5703 | case "(($ac_try" in | |
5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5705 | *) ac_try_echo=$ac_try;; | |
5706 | esac | |
5707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5708 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 5709 | ac_status=$? |
5710 | grep -v '^ *+' conftest.er1 >conftest.err | |
5711 | rm -f conftest.er1 | |
5712 | cat conftest.err >&5 | |
5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5714 | (exit $ac_status); } && | |
a8b2ad8d | 5715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5716 | { (case "(($ac_try" in | |
5717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5718 | *) ac_try_echo=$ac_try;; | |
5719 | esac | |
5720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5721 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5722 | ac_status=$? |
5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5724 | (exit $ac_status); }; } && | |
5725 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 5726 | { (case "(($ac_try" in |
5727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5728 | *) ac_try_echo=$ac_try;; | |
5729 | esac | |
5730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5731 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5732 | ac_status=$? |
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5734 | (exit $ac_status); }; }; then | |
5735 | ac_cv_lib_m_main=yes | |
5736 | else | |
5737 | echo "$as_me: failed program was:" >&5 | |
5738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5739 | ||
a8b2ad8d | 5740 | ac_cv_lib_m_main=no |
b3076f16 | 5741 | fi |
a8b2ad8d | 5742 | |
5743 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 5744 | conftest$ac_exeext conftest.$ac_ext |
5745 | LIBS=$ac_check_lib_save_LIBS | |
5746 | fi | |
a8b2ad8d | 5747 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
5748 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; } | |
b3076f16 | 5749 | if test $ac_cv_lib_m_main = yes; then |
5750 | cat >>confdefs.h <<_ACEOF | |
5751 | #define HAVE_LIBM 1 | |
5752 | _ACEOF | |
5753 | ||
5754 | LIBS="-lm $LIBS" | |
5755 | ||
5756 | fi | |
5757 | ||
5758 | ||
a8b2ad8d | 5759 | { echo "$as_me:$LINENO: checking for GeoIP_open in -lGeoIP" >&5 |
5760 | echo $ECHO_N "checking for GeoIP_open in -lGeoIP... $ECHO_C" >&6; } | |
21f6caee | 5761 | if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then |
5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5763 | else | |
5764 | ac_check_lib_save_LIBS=$LIBS | |
5765 | LIBS="-lGeoIP $LIBS" | |
5766 | cat >conftest.$ac_ext <<_ACEOF | |
5767 | /* confdefs.h. */ | |
5768 | _ACEOF | |
5769 | cat confdefs.h >>conftest.$ac_ext | |
5770 | cat >>conftest.$ac_ext <<_ACEOF | |
5771 | /* end confdefs.h. */ | |
5772 | ||
a8b2ad8d | 5773 | /* Override any GCC internal prototype to avoid an error. |
5774 | Use char because int might match the return type of a GCC | |
5775 | builtin and then its argument prototype would still apply. */ | |
21f6caee | 5776 | #ifdef __cplusplus |
5777 | extern "C" | |
5778 | #endif | |
21f6caee | 5779 | char GeoIP_open (); |
5780 | int | |
5781 | main () | |
5782 | { | |
a8b2ad8d | 5783 | return GeoIP_open (); |
21f6caee | 5784 | ; |
5785 | return 0; | |
5786 | } | |
5787 | _ACEOF | |
5788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 5789 | if { (ac_try="$ac_link" |
5790 | case "(($ac_try" in | |
5791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5792 | *) ac_try_echo=$ac_try;; | |
5793 | esac | |
5794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5795 | (eval "$ac_link") 2>conftest.er1 | |
21f6caee | 5796 | ac_status=$? |
5797 | grep -v '^ *+' conftest.er1 >conftest.err | |
5798 | rm -f conftest.er1 | |
5799 | cat conftest.err >&5 | |
5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5801 | (exit $ac_status); } && | |
a8b2ad8d | 5802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5803 | { (case "(($ac_try" in | |
5804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5805 | *) ac_try_echo=$ac_try;; | |
5806 | esac | |
5807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5808 | (eval "$ac_try") 2>&5 | |
21f6caee | 5809 | ac_status=$? |
5810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5811 | (exit $ac_status); }; } && | |
5812 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 5813 | { (case "(($ac_try" in |
5814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5815 | *) ac_try_echo=$ac_try;; | |
5816 | esac | |
5817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5818 | (eval "$ac_try") 2>&5 | |
21f6caee | 5819 | ac_status=$? |
5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5821 | (exit $ac_status); }; }; then | |
5822 | ac_cv_lib_GeoIP_GeoIP_open=yes | |
5823 | else | |
5824 | echo "$as_me: failed program was:" >&5 | |
5825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5826 | ||
a8b2ad8d | 5827 | ac_cv_lib_GeoIP_GeoIP_open=no |
21f6caee | 5828 | fi |
a8b2ad8d | 5829 | |
5830 | rm -f core conftest.err conftest.$ac_objext \ | |
21f6caee | 5831 | conftest$ac_exeext conftest.$ac_ext |
5832 | LIBS=$ac_check_lib_save_LIBS | |
5833 | fi | |
a8b2ad8d | 5834 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5 |
5835 | echo "${ECHO_T}$ac_cv_lib_GeoIP_GeoIP_open" >&6; } | |
21f6caee | 5836 | if test $ac_cv_lib_GeoIP_GeoIP_open = yes; then |
5837 | cat >>confdefs.h <<_ACEOF | |
5838 | #define HAVE_LIBGEOIP 1 | |
5839 | _ACEOF | |
5840 | ||
5841 | LIBS="-lGeoIP $LIBS" | |
5842 | ||
5843 | fi | |
5844 | ||
5845 | ||
a8b2ad8d | 5846 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5847 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
b3076f16 | 5848 | if test "${ac_cv_header_stdc+set}" = set; then |
5849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5850 | else | |
5851 | cat >conftest.$ac_ext <<_ACEOF | |
5852 | /* confdefs.h. */ | |
5853 | _ACEOF | |
5854 | cat confdefs.h >>conftest.$ac_ext | |
5855 | cat >>conftest.$ac_ext <<_ACEOF | |
5856 | /* end confdefs.h. */ | |
5857 | #include <stdlib.h> | |
5858 | #include <stdarg.h> | |
5859 | #include <string.h> | |
5860 | #include <float.h> | |
5861 | ||
5862 | int | |
5863 | main () | |
5864 | { | |
5865 | ||
5866 | ; | |
5867 | return 0; | |
5868 | } | |
5869 | _ACEOF | |
5870 | rm -f conftest.$ac_objext | |
a8b2ad8d | 5871 | if { (ac_try="$ac_compile" |
5872 | case "(($ac_try" in | |
5873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5874 | *) ac_try_echo=$ac_try;; | |
5875 | esac | |
5876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5877 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 5878 | ac_status=$? |
5879 | grep -v '^ *+' conftest.er1 >conftest.err | |
5880 | rm -f conftest.er1 | |
5881 | cat conftest.err >&5 | |
5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5883 | (exit $ac_status); } && | |
a8b2ad8d | 5884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5885 | { (case "(($ac_try" in | |
5886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5887 | *) ac_try_echo=$ac_try;; | |
5888 | esac | |
5889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5890 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5891 | ac_status=$? |
5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5893 | (exit $ac_status); }; } && | |
5894 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 5895 | { (case "(($ac_try" in |
5896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5897 | *) ac_try_echo=$ac_try;; | |
5898 | esac | |
5899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5900 | (eval "$ac_try") 2>&5 | |
b3076f16 | 5901 | ac_status=$? |
5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5903 | (exit $ac_status); }; }; then | |
5904 | ac_cv_header_stdc=yes | |
5905 | else | |
5906 | echo "$as_me: failed program was:" >&5 | |
5907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5908 | ||
a8b2ad8d | 5909 | ac_cv_header_stdc=no |
b3076f16 | 5910 | fi |
a8b2ad8d | 5911 | |
5912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 5913 | |
5914 | if test $ac_cv_header_stdc = yes; then | |
5915 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5916 | cat >conftest.$ac_ext <<_ACEOF | |
5917 | /* confdefs.h. */ | |
5918 | _ACEOF | |
5919 | cat confdefs.h >>conftest.$ac_ext | |
5920 | cat >>conftest.$ac_ext <<_ACEOF | |
5921 | /* end confdefs.h. */ | |
5922 | #include <string.h> | |
5923 | ||
5924 | _ACEOF | |
5925 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5926 | $EGREP "memchr" >/dev/null 2>&1; then | |
5927 | : | |
5928 | else | |
5929 | ac_cv_header_stdc=no | |
5930 | fi | |
5931 | rm -f conftest* | |
5932 | ||
5933 | fi | |
5934 | ||
5935 | if test $ac_cv_header_stdc = yes; then | |
5936 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5937 | cat >conftest.$ac_ext <<_ACEOF | |
5938 | /* confdefs.h. */ | |
5939 | _ACEOF | |
5940 | cat confdefs.h >>conftest.$ac_ext | |
5941 | cat >>conftest.$ac_ext <<_ACEOF | |
5942 | /* end confdefs.h. */ | |
5943 | #include <stdlib.h> | |
5944 | ||
5945 | _ACEOF | |
5946 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5947 | $EGREP "free" >/dev/null 2>&1; then | |
5948 | : | |
5949 | else | |
5950 | ac_cv_header_stdc=no | |
5951 | fi | |
5952 | rm -f conftest* | |
5953 | ||
5954 | fi | |
5955 | ||
5956 | if test $ac_cv_header_stdc = yes; then | |
5957 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5958 | if test "$cross_compiling" = yes; then | |
5959 | : | |
5960 | else | |
5961 | cat >conftest.$ac_ext <<_ACEOF | |
5962 | /* confdefs.h. */ | |
5963 | _ACEOF | |
5964 | cat confdefs.h >>conftest.$ac_ext | |
5965 | cat >>conftest.$ac_ext <<_ACEOF | |
5966 | /* end confdefs.h. */ | |
5967 | #include <ctype.h> | |
a8b2ad8d | 5968 | #include <stdlib.h> |
b3076f16 | 5969 | #if ((' ' & 0x0FF) == 0x020) |
5970 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5971 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5972 | #else | |
5973 | # define ISLOWER(c) \ | |
5974 | (('a' <= (c) && (c) <= 'i') \ | |
5975 | || ('j' <= (c) && (c) <= 'r') \ | |
5976 | || ('s' <= (c) && (c) <= 'z')) | |
5977 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5978 | #endif | |
5979 | ||
5980 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5981 | int | |
5982 | main () | |
5983 | { | |
5984 | int i; | |
5985 | for (i = 0; i < 256; i++) | |
5986 | if (XOR (islower (i), ISLOWER (i)) | |
5987 | || toupper (i) != TOUPPER (i)) | |
a8b2ad8d | 5988 | return 2; |
5989 | return 0; | |
b3076f16 | 5990 | } |
5991 | _ACEOF | |
5992 | rm -f conftest$ac_exeext | |
a8b2ad8d | 5993 | if { (ac_try="$ac_link" |
5994 | case "(($ac_try" in | |
5995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5996 | *) ac_try_echo=$ac_try;; | |
5997 | esac | |
5998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5999 | (eval "$ac_link") 2>&5 | |
b3076f16 | 6000 | ac_status=$? |
6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6002 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 6003 | { (case "(($ac_try" in |
6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6005 | *) ac_try_echo=$ac_try;; | |
6006 | esac | |
6007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6008 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6009 | ac_status=$? |
6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6011 | (exit $ac_status); }; }; then | |
6012 | : | |
6013 | else | |
6014 | echo "$as_me: program exited with status $ac_status" >&5 | |
6015 | echo "$as_me: failed program was:" >&5 | |
6016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6017 | ||
6018 | ( exit $ac_status ) | |
6019 | ac_cv_header_stdc=no | |
6020 | fi | |
a8b2ad8d | 6021 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 6022 | fi |
a8b2ad8d | 6023 | |
6024 | ||
b3076f16 | 6025 | fi |
6026 | fi | |
a8b2ad8d | 6027 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6028 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
b3076f16 | 6029 | if test $ac_cv_header_stdc = yes; then |
6030 | ||
6031 | cat >>confdefs.h <<\_ACEOF | |
6032 | #define STDC_HEADERS 1 | |
6033 | _ACEOF | |
6034 | ||
6035 | fi | |
6036 | ||
6037 | ||
a8b2ad8d | 6038 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
6039 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
b3076f16 | 6040 | if test "${ac_cv_header_time+set}" = set; then |
6041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6042 | else | |
6043 | cat >conftest.$ac_ext <<_ACEOF | |
6044 | /* confdefs.h. */ | |
6045 | _ACEOF | |
6046 | cat confdefs.h >>conftest.$ac_ext | |
6047 | cat >>conftest.$ac_ext <<_ACEOF | |
6048 | /* end confdefs.h. */ | |
6049 | #include <sys/types.h> | |
6050 | #include <sys/time.h> | |
6051 | #include <time.h> | |
6052 | ||
6053 | int | |
6054 | main () | |
6055 | { | |
6056 | if ((struct tm *) 0) | |
6057 | return 0; | |
6058 | ; | |
6059 | return 0; | |
6060 | } | |
6061 | _ACEOF | |
6062 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6063 | if { (ac_try="$ac_compile" |
6064 | case "(($ac_try" in | |
6065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6066 | *) ac_try_echo=$ac_try;; | |
6067 | esac | |
6068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6069 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6070 | ac_status=$? |
6071 | grep -v '^ *+' conftest.er1 >conftest.err | |
6072 | rm -f conftest.er1 | |
6073 | cat conftest.err >&5 | |
6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6075 | (exit $ac_status); } && | |
a8b2ad8d | 6076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6077 | { (case "(($ac_try" in | |
6078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6079 | *) ac_try_echo=$ac_try;; | |
6080 | esac | |
6081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6082 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6083 | ac_status=$? |
6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6085 | (exit $ac_status); }; } && | |
6086 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6087 | { (case "(($ac_try" in |
6088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6089 | *) ac_try_echo=$ac_try;; | |
6090 | esac | |
6091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6092 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6093 | ac_status=$? |
6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6095 | (exit $ac_status); }; }; then | |
6096 | ac_cv_header_time=yes | |
6097 | else | |
6098 | echo "$as_me: failed program was:" >&5 | |
6099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6100 | ||
a8b2ad8d | 6101 | ac_cv_header_time=no |
b3076f16 | 6102 | fi |
a8b2ad8d | 6103 | |
6104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6105 | fi |
a8b2ad8d | 6106 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
6107 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
b3076f16 | 6108 | if test $ac_cv_header_time = yes; then |
6109 | ||
6110 | cat >>confdefs.h <<\_ACEOF | |
6111 | #define TIME_WITH_SYS_TIME 1 | |
6112 | _ACEOF | |
6113 | ||
6114 | fi | |
6115 | ||
a8b2ad8d | 6116 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6117 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
b3076f16 | 6118 | if test "${ac_cv_struct_tm+set}" = set; then |
6119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6120 | else | |
6121 | cat >conftest.$ac_ext <<_ACEOF | |
6122 | /* confdefs.h. */ | |
6123 | _ACEOF | |
6124 | cat confdefs.h >>conftest.$ac_ext | |
6125 | cat >>conftest.$ac_ext <<_ACEOF | |
6126 | /* end confdefs.h. */ | |
6127 | #include <sys/types.h> | |
6128 | #include <time.h> | |
6129 | ||
6130 | int | |
6131 | main () | |
6132 | { | |
6133 | struct tm *tp; tp->tm_sec; | |
6134 | ; | |
6135 | return 0; | |
6136 | } | |
6137 | _ACEOF | |
6138 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6139 | if { (ac_try="$ac_compile" |
6140 | case "(($ac_try" in | |
6141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6142 | *) ac_try_echo=$ac_try;; | |
6143 | esac | |
6144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6145 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6146 | ac_status=$? |
6147 | grep -v '^ *+' conftest.er1 >conftest.err | |
6148 | rm -f conftest.er1 | |
6149 | cat conftest.err >&5 | |
6150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6151 | (exit $ac_status); } && | |
a8b2ad8d | 6152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6153 | { (case "(($ac_try" in | |
6154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6155 | *) ac_try_echo=$ac_try;; | |
6156 | esac | |
6157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6158 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6159 | ac_status=$? |
6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6161 | (exit $ac_status); }; } && | |
6162 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6163 | { (case "(($ac_try" in |
6164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6165 | *) ac_try_echo=$ac_try;; | |
6166 | esac | |
6167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6168 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6169 | ac_status=$? |
6170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6171 | (exit $ac_status); }; }; then | |
6172 | ac_cv_struct_tm=time.h | |
6173 | else | |
6174 | echo "$as_me: failed program was:" >&5 | |
6175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6176 | ||
a8b2ad8d | 6177 | ac_cv_struct_tm=sys/time.h |
b3076f16 | 6178 | fi |
a8b2ad8d | 6179 | |
6180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6181 | fi |
a8b2ad8d | 6182 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6183 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
b3076f16 | 6184 | if test $ac_cv_struct_tm = sys/time.h; then |
6185 | ||
6186 | cat >>confdefs.h <<\_ACEOF | |
6187 | #define TM_IN_SYS_TIME 1 | |
6188 | _ACEOF | |
6189 | ||
6190 | fi | |
6191 | ||
6192 | ||
35305a49 | 6193 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6194 | ||
6195 | ||
6196 | ||
6197 | ||
6198 | ||
6199 | ||
6200 | ||
6201 | ||
6202 | ||
6203 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6204 | inttypes.h stdint.h unistd.h | |
6205 | do | |
6206 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 6207 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
35305a49 | 6210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6211 | else | |
6212 | cat >conftest.$ac_ext <<_ACEOF | |
6213 | /* confdefs.h. */ | |
6214 | _ACEOF | |
6215 | cat confdefs.h >>conftest.$ac_ext | |
6216 | cat >>conftest.$ac_ext <<_ACEOF | |
6217 | /* end confdefs.h. */ | |
6218 | $ac_includes_default | |
6219 | ||
6220 | #include <$ac_header> | |
6221 | _ACEOF | |
6222 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6223 | if { (ac_try="$ac_compile" |
6224 | case "(($ac_try" in | |
6225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6226 | *) ac_try_echo=$ac_try;; | |
6227 | esac | |
6228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6229 | (eval "$ac_compile") 2>conftest.er1 | |
35305a49 | 6230 | ac_status=$? |
6231 | grep -v '^ *+' conftest.er1 >conftest.err | |
6232 | rm -f conftest.er1 | |
6233 | cat conftest.err >&5 | |
6234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6235 | (exit $ac_status); } && | |
a8b2ad8d | 6236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6237 | { (case "(($ac_try" in | |
6238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6239 | *) ac_try_echo=$ac_try;; | |
6240 | esac | |
6241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6242 | (eval "$ac_try") 2>&5 | |
35305a49 | 6243 | ac_status=$? |
6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6245 | (exit $ac_status); }; } && | |
6246 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6247 | { (case "(($ac_try" in |
6248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6249 | *) ac_try_echo=$ac_try;; | |
6250 | esac | |
6251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6252 | (eval "$ac_try") 2>&5 | |
35305a49 | 6253 | ac_status=$? |
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6255 | (exit $ac_status); }; }; then | |
6256 | eval "$as_ac_Header=yes" | |
6257 | else | |
6258 | echo "$as_me: failed program was:" >&5 | |
6259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6260 | ||
a8b2ad8d | 6261 | eval "$as_ac_Header=no" |
35305a49 | 6262 | fi |
a8b2ad8d | 6263 | |
6264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
35305a49 | 6265 | fi |
a8b2ad8d | 6266 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6267 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6268 | echo "${ECHO_T}$ac_res" >&6; } | |
35305a49 | 6269 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6270 | cat >>confdefs.h <<_ACEOF | |
6271 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6272 | _ACEOF | |
6273 | ||
6274 | fi | |
6275 | ||
6276 | done | |
6277 | ||
6278 | ||
b3076f16 | 6279 | |
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | ||
6285 | ||
6286 | ||
6287 | ||
6288 | ||
6289 | ||
6290 | ||
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | ||
6296 | ||
6297 | ||
6298 | ||
21f6caee | 6299 | |
6300 | ||
6301 | for ac_header in GeoIP.h GeoIPCity.h fcntl.h tgmath.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 arpa/inet.h sys/mman.h sys/stat.h dirent.h | |
b3076f16 | 6302 | do |
6303 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 6304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6305 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6309 | fi | |
a8b2ad8d | 6310 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6311 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6312 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6313 | else |
6314 | # Is the header compilable? | |
a8b2ad8d | 6315 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6316 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 6317 | cat >conftest.$ac_ext <<_ACEOF |
6318 | /* confdefs.h. */ | |
6319 | _ACEOF | |
6320 | cat confdefs.h >>conftest.$ac_ext | |
6321 | cat >>conftest.$ac_ext <<_ACEOF | |
6322 | /* end confdefs.h. */ | |
6323 | $ac_includes_default | |
6324 | #include <$ac_header> | |
6325 | _ACEOF | |
6326 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6327 | if { (ac_try="$ac_compile" |
6328 | case "(($ac_try" in | |
6329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6330 | *) ac_try_echo=$ac_try;; | |
6331 | esac | |
6332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6333 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6334 | ac_status=$? |
6335 | grep -v '^ *+' conftest.er1 >conftest.err | |
6336 | rm -f conftest.er1 | |
6337 | cat conftest.err >&5 | |
6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6339 | (exit $ac_status); } && | |
a8b2ad8d | 6340 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6341 | { (case "(($ac_try" in | |
6342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6343 | *) ac_try_echo=$ac_try;; | |
6344 | esac | |
6345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6346 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6347 | ac_status=$? |
6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6349 | (exit $ac_status); }; } && | |
6350 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6351 | { (case "(($ac_try" in |
6352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6353 | *) ac_try_echo=$ac_try;; | |
6354 | esac | |
6355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6356 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6357 | ac_status=$? |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6359 | (exit $ac_status); }; }; then | |
6360 | ac_header_compiler=yes | |
6361 | else | |
6362 | echo "$as_me: failed program was:" >&5 | |
6363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6364 | ||
a8b2ad8d | 6365 | ac_header_compiler=no |
b3076f16 | 6366 | fi |
a8b2ad8d | 6367 | |
6368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6369 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6370 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 6371 | |
6372 | # Is the header present? | |
a8b2ad8d | 6373 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6374 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 6375 | cat >conftest.$ac_ext <<_ACEOF |
6376 | /* confdefs.h. */ | |
6377 | _ACEOF | |
6378 | cat confdefs.h >>conftest.$ac_ext | |
6379 | cat >>conftest.$ac_ext <<_ACEOF | |
6380 | /* end confdefs.h. */ | |
6381 | #include <$ac_header> | |
6382 | _ACEOF | |
a8b2ad8d | 6383 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6384 | case "(($ac_try" in | |
6385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6386 | *) ac_try_echo=$ac_try;; | |
6387 | esac | |
6388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6389 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 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); } >/dev/null; then | |
6396 | if test -s conftest.err; then | |
6397 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6398 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6399 | else | |
6400 | ac_cpp_err= | |
6401 | fi | |
6402 | else | |
6403 | ac_cpp_err=yes | |
6404 | fi | |
6405 | if test -z "$ac_cpp_err"; then | |
6406 | ac_header_preproc=yes | |
6407 | else | |
6408 | echo "$as_me: failed program was:" >&5 | |
6409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6410 | ||
6411 | ac_header_preproc=no | |
6412 | fi | |
a8b2ad8d | 6413 | |
b3076f16 | 6414 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 6415 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6416 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 6417 | |
6418 | # So? What about this header? | |
6419 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6420 | yes:no: ) | |
6421 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6422 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6423 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6424 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6425 | ac_header_preproc=yes | |
6426 | ;; | |
6427 | no:yes:* ) | |
6428 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6429 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6430 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6431 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6432 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6433 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6434 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6435 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6437 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6438 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6439 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 6440 | ( cat <<\_ASBOX |
63c95a47 | 6441 | ## -------------------------------------------------- ## |
6442 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
6443 | ## -------------------------------------------------- ## | |
b3076f16 | 6444 | _ASBOX |
a8b2ad8d | 6445 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 6446 | ;; |
6447 | esac | |
a8b2ad8d | 6448 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6450 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6452 | else | |
6453 | eval "$as_ac_Header=\$ac_header_preproc" | |
6454 | fi | |
a8b2ad8d | 6455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6457 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6458 | |
6459 | fi | |
6460 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6461 | cat >>confdefs.h <<_ACEOF | |
6462 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6463 | _ACEOF | |
6464 | ||
6465 | fi | |
6466 | ||
6467 | done | |
6468 | ||
6469 | ||
a8b2ad8d | 6470 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
6471 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
2f61d1d7 | 6472 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
b3076f16 | 6473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6474 | else | |
6475 | cat >conftest.$ac_ext <<_ACEOF | |
6476 | /* confdefs.h. */ | |
6477 | _ACEOF | |
6478 | cat confdefs.h >>conftest.$ac_ext | |
6479 | cat >>conftest.$ac_ext <<_ACEOF | |
6480 | /* end confdefs.h. */ | |
2f61d1d7 | 6481 | #include <sys/types.h> |
6482 | #include <sys/socket.h> | |
b3076f16 | 6483 | |
6484 | int | |
6485 | main () | |
6486 | { | |
2f61d1d7 | 6487 | static struct sockaddr ac_aggr; |
6488 | if (ac_aggr.sa_len) | |
b3076f16 | 6489 | return 0; |
6490 | ; | |
6491 | return 0; | |
6492 | } | |
6493 | _ACEOF | |
6494 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6495 | if { (ac_try="$ac_compile" |
6496 | case "(($ac_try" in | |
6497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6498 | *) ac_try_echo=$ac_try;; | |
6499 | esac | |
6500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6501 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6502 | ac_status=$? |
6503 | grep -v '^ *+' conftest.er1 >conftest.err | |
6504 | rm -f conftest.er1 | |
6505 | cat conftest.err >&5 | |
6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6507 | (exit $ac_status); } && | |
a8b2ad8d | 6508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6509 | { (case "(($ac_try" in | |
6510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6511 | *) ac_try_echo=$ac_try;; | |
6512 | esac | |
6513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6514 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6515 | ac_status=$? |
6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6517 | (exit $ac_status); }; } && | |
6518 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6519 | { (case "(($ac_try" in |
6520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6521 | *) ac_try_echo=$ac_try;; | |
6522 | esac | |
6523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6524 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6525 | ac_status=$? |
6526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6527 | (exit $ac_status); }; }; then | |
2f61d1d7 | 6528 | ac_cv_member_struct_sockaddr_sa_len=yes |
b3076f16 | 6529 | else |
6530 | echo "$as_me: failed program was:" >&5 | |
6531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6532 | ||
a8b2ad8d | 6533 | cat >conftest.$ac_ext <<_ACEOF |
b3076f16 | 6534 | /* confdefs.h. */ |
6535 | _ACEOF | |
6536 | cat confdefs.h >>conftest.$ac_ext | |
6537 | cat >>conftest.$ac_ext <<_ACEOF | |
6538 | /* end confdefs.h. */ | |
2f61d1d7 | 6539 | #include <sys/types.h> |
6540 | #include <sys/socket.h> | |
b3076f16 | 6541 | |
6542 | int | |
6543 | main () | |
6544 | { | |
2f61d1d7 | 6545 | static struct sockaddr ac_aggr; |
6546 | if (sizeof ac_aggr.sa_len) | |
b3076f16 | 6547 | return 0; |
6548 | ; | |
6549 | return 0; | |
6550 | } | |
6551 | _ACEOF | |
6552 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6553 | if { (ac_try="$ac_compile" |
6554 | case "(($ac_try" in | |
6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6556 | *) ac_try_echo=$ac_try;; | |
6557 | esac | |
6558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6559 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 6560 | ac_status=$? |
6561 | grep -v '^ *+' conftest.er1 >conftest.err | |
6562 | rm -f conftest.er1 | |
6563 | cat conftest.err >&5 | |
6564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6565 | (exit $ac_status); } && | |
a8b2ad8d | 6566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6567 | { (case "(($ac_try" in | |
6568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6569 | *) ac_try_echo=$ac_try;; | |
6570 | esac | |
6571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6572 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6573 | ac_status=$? |
6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6575 | (exit $ac_status); }; } && | |
6576 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6577 | { (case "(($ac_try" in |
6578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6579 | *) ac_try_echo=$ac_try;; | |
6580 | esac | |
6581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6582 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6583 | ac_status=$? |
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6585 | (exit $ac_status); }; }; then | |
2f61d1d7 | 6586 | ac_cv_member_struct_sockaddr_sa_len=yes |
b3076f16 | 6587 | else |
6588 | echo "$as_me: failed program was:" >&5 | |
6589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6590 | ||
a8b2ad8d | 6591 | ac_cv_member_struct_sockaddr_sa_len=no |
b3076f16 | 6592 | fi |
a8b2ad8d | 6593 | |
6594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6595 | fi |
a8b2ad8d | 6596 | |
6597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6598 | fi |
a8b2ad8d | 6599 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
6600 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
2f61d1d7 | 6601 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
b3076f16 | 6602 | |
6603 | cat >>confdefs.h <<\_ACEOF | |
2f61d1d7 | 6604 | #define HAVE_SOCKADDR_SA_LEN |
6605 | _ACEOF | |
6606 | ||
6607 | fi | |
6608 | ||
a8b2ad8d | 6609 | { echo "$as_me:$LINENO: checking for struct addrinfo.ai_flags" >&5 |
6610 | echo $ECHO_N "checking for struct addrinfo.ai_flags... $ECHO_C" >&6; } | |
2f61d1d7 | 6611 | if test "${ac_cv_member_struct_addrinfo_ai_flags+set}" = set; then |
6612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6613 | else | |
6614 | cat >conftest.$ac_ext <<_ACEOF | |
6615 | /* confdefs.h. */ | |
6616 | _ACEOF | |
6617 | cat confdefs.h >>conftest.$ac_ext | |
6618 | cat >>conftest.$ac_ext <<_ACEOF | |
6619 | /* end confdefs.h. */ | |
6620 | #include <sys/types.h> | |
6621 | #include <sys/socket.h> | |
6622 | #include <netdb.h> | |
6623 | ||
6624 | int | |
6625 | main () | |
6626 | { | |
6627 | static struct addrinfo ac_aggr; | |
6628 | if (ac_aggr.ai_flags) | |
6629 | return 0; | |
6630 | ; | |
6631 | return 0; | |
6632 | } | |
6633 | _ACEOF | |
6634 | rm -f conftest.$ac_objext | |
a8b2ad8d | 6635 | if { (ac_try="$ac_compile" |
6636 | case "(($ac_try" in | |
6637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6638 | *) ac_try_echo=$ac_try;; | |
6639 | esac | |
6640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6641 | (eval "$ac_compile") 2>conftest.er1 | |
2f61d1d7 | 6642 | ac_status=$? |
6643 | grep -v '^ *+' conftest.er1 >conftest.err | |
6644 | rm -f conftest.er1 | |
6645 | cat conftest.err >&5 | |
6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6647 | (exit $ac_status); } && | |
a8b2ad8d | 6648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6649 | { (case "(($ac_try" in | |
6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6651 | *) ac_try_echo=$ac_try;; | |
6652 | esac | |
6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6654 | (eval "$ac_try") 2>&5 | |
2f61d1d7 | 6655 | ac_status=$? |
6656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6657 | (exit $ac_status); }; } && | |
6658 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6659 | { (case "(($ac_try" in |
6660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6661 | *) ac_try_echo=$ac_try;; | |
6662 | esac | |
6663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6664 | (eval "$ac_try") 2>&5 | |
2f61d1d7 | 6665 | ac_status=$? |
6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6667 | (exit $ac_status); }; }; then | |
6668 | ac_cv_member_struct_addrinfo_ai_flags=yes | |
6669 | else | |
6670 | echo "$as_me: failed program was:" >&5 | |
6671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6672 | ||
a8b2ad8d | 6673 | cat >conftest.$ac_ext <<_ACEOF |
2f61d1d7 | 6674 | /* confdefs.h. */ |
6675 | _ACEOF | |
6676 | cat confdefs.h >>conftest.$ac_ext | |
6677 | cat >>conftest.$ac_ext <<_ACEOF | |
6678 | /* end confdefs.h. */ | |
6679 | #include <sys/types.h> | |
6680 | #include <sys/socket.h> | |
6681 | #include <netdb.h> | |
6682 | ||
6683 | int | |
6684 | main () | |
6685 | { | |
6686 | static struct addrinfo ac_aggr; | |
6687 | if (sizeof ac_aggr.ai_flags) | |
6688 | return 0; | |
6689 | ; | |
6690 | return 0; | |
6691 | } | |
b3076f16 | 6692 | _ACEOF |
2f61d1d7 | 6693 | rm -f conftest.$ac_objext |
a8b2ad8d | 6694 | if { (ac_try="$ac_compile" |
6695 | case "(($ac_try" in | |
6696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6697 | *) ac_try_echo=$ac_try;; | |
6698 | esac | |
6699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6700 | (eval "$ac_compile") 2>conftest.er1 | |
2f61d1d7 | 6701 | ac_status=$? |
6702 | grep -v '^ *+' conftest.er1 >conftest.err | |
6703 | rm -f conftest.er1 | |
6704 | cat conftest.err >&5 | |
6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6706 | (exit $ac_status); } && | |
a8b2ad8d | 6707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6708 | { (case "(($ac_try" in | |
6709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6710 | *) ac_try_echo=$ac_try;; | |
6711 | esac | |
6712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6713 | (eval "$ac_try") 2>&5 | |
2f61d1d7 | 6714 | ac_status=$? |
6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6716 | (exit $ac_status); }; } && | |
6717 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 6718 | { (case "(($ac_try" in |
6719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6720 | *) ac_try_echo=$ac_try;; | |
6721 | esac | |
6722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6723 | (eval "$ac_try") 2>&5 | |
2f61d1d7 | 6724 | ac_status=$? |
6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6726 | (exit $ac_status); }; }; then | |
6727 | ac_cv_member_struct_addrinfo_ai_flags=yes | |
6728 | else | |
6729 | echo "$as_me: failed program was:" >&5 | |
6730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 6731 | |
a8b2ad8d | 6732 | ac_cv_member_struct_addrinfo_ai_flags=no |
2f61d1d7 | 6733 | fi |
a8b2ad8d | 6734 | |
6735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2f61d1d7 | 6736 | fi |
a8b2ad8d | 6737 | |
6738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 6739 | fi |
a8b2ad8d | 6740 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_addrinfo_ai_flags" >&5 |
6741 | echo "${ECHO_T}$ac_cv_member_struct_addrinfo_ai_flags" >&6; } | |
2f61d1d7 | 6742 | if test $ac_cv_member_struct_addrinfo_ai_flags = yes; then |
6743 | ||
6744 | cat >>confdefs.h <<\_ACEOF | |
6745 | #define HAVE_STRUCT_ADDRINFO | |
6746 | _ACEOF | |
b3076f16 | 6747 | |
2f61d1d7 | 6748 | fi |
b3076f16 | 6749 | |
6750 | ||
21f6caee | 6751 | |
b3076f16 | 6752 | for ac_func in gettimeofday |
6753 | do | |
6754 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6755 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6756 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6757 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6759 | else | |
6760 | cat >conftest.$ac_ext <<_ACEOF | |
6761 | /* confdefs.h. */ | |
6762 | _ACEOF | |
6763 | cat confdefs.h >>conftest.$ac_ext | |
6764 | cat >>conftest.$ac_ext <<_ACEOF | |
6765 | /* end confdefs.h. */ | |
6766 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6768 | #define $ac_func innocuous_$ac_func | |
6769 | ||
6770 | /* System header to define __stub macros and hopefully few prototypes, | |
6771 | which can conflict with char $ac_func (); below. | |
6772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6773 | <limits.h> exists even on freestanding compilers. */ | |
6774 | ||
6775 | #ifdef __STDC__ | |
6776 | # include <limits.h> | |
6777 | #else | |
6778 | # include <assert.h> | |
6779 | #endif | |
6780 | ||
6781 | #undef $ac_func | |
6782 | ||
a8b2ad8d | 6783 | /* Override any GCC internal prototype to avoid an error. |
6784 | Use char because int might match the return type of a GCC | |
6785 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6786 | #ifdef __cplusplus |
6787 | extern "C" | |
b3076f16 | 6788 | #endif |
b3076f16 | 6789 | char $ac_func (); |
6790 | /* The GNU C library defines this for functions which it implements | |
6791 | to always fail with ENOSYS. Some functions are actually named | |
6792 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6793 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6794 | choke me |
b3076f16 | 6795 | #endif |
6796 | ||
6797 | int | |
6798 | main () | |
6799 | { | |
a8b2ad8d | 6800 | return $ac_func (); |
b3076f16 | 6801 | ; |
6802 | return 0; | |
6803 | } | |
6804 | _ACEOF | |
6805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6806 | if { (ac_try="$ac_link" |
6807 | case "(($ac_try" in | |
6808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6809 | *) ac_try_echo=$ac_try;; | |
6810 | esac | |
6811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6812 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6813 | ac_status=$? |
6814 | grep -v '^ *+' conftest.er1 >conftest.err | |
6815 | rm -f conftest.er1 | |
6816 | cat conftest.err >&5 | |
6817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6818 | (exit $ac_status); } && | |
a8b2ad8d | 6819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6820 | { (case "(($ac_try" in | |
6821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6822 | *) ac_try_echo=$ac_try;; | |
6823 | esac | |
6824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6825 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6826 | ac_status=$? |
6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6828 | (exit $ac_status); }; } && | |
6829 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 6830 | { (case "(($ac_try" in |
6831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6832 | *) ac_try_echo=$ac_try;; | |
6833 | esac | |
6834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6835 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6836 | ac_status=$? |
6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6838 | (exit $ac_status); }; }; then | |
6839 | eval "$as_ac_var=yes" | |
6840 | else | |
6841 | echo "$as_me: failed program was:" >&5 | |
6842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6843 | ||
a8b2ad8d | 6844 | eval "$as_ac_var=no" |
b3076f16 | 6845 | fi |
a8b2ad8d | 6846 | |
6847 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 6848 | conftest$ac_exeext conftest.$ac_ext |
6849 | fi | |
a8b2ad8d | 6850 | ac_res=`eval echo '${'$as_ac_var'}'` |
6851 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6852 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6853 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6854 | cat >>confdefs.h <<_ACEOF | |
6855 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6856 | _ACEOF | |
6857 | ||
6858 | fi | |
6859 | done | |
6860 | ||
6861 | if test $ac_cv_func_gettimeofday = no; then | |
6862 | ||
6863 | for ac_func in ftime | |
6864 | do | |
6865 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6866 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6867 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6868 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6870 | else | |
6871 | cat >conftest.$ac_ext <<_ACEOF | |
6872 | /* confdefs.h. */ | |
6873 | _ACEOF | |
6874 | cat confdefs.h >>conftest.$ac_ext | |
6875 | cat >>conftest.$ac_ext <<_ACEOF | |
6876 | /* end confdefs.h. */ | |
6877 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6879 | #define $ac_func innocuous_$ac_func | |
6880 | ||
6881 | /* System header to define __stub macros and hopefully few prototypes, | |
6882 | which can conflict with char $ac_func (); below. | |
6883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6884 | <limits.h> exists even on freestanding compilers. */ | |
6885 | ||
6886 | #ifdef __STDC__ | |
6887 | # include <limits.h> | |
6888 | #else | |
6889 | # include <assert.h> | |
6890 | #endif | |
6891 | ||
6892 | #undef $ac_func | |
6893 | ||
a8b2ad8d | 6894 | /* Override any GCC internal prototype to avoid an error. |
6895 | Use char because int might match the return type of a GCC | |
6896 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 6897 | #ifdef __cplusplus |
6898 | extern "C" | |
b3076f16 | 6899 | #endif |
b3076f16 | 6900 | char $ac_func (); |
6901 | /* The GNU C library defines this for functions which it implements | |
6902 | to always fail with ENOSYS. Some functions are actually named | |
6903 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 6904 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 6905 | choke me |
b3076f16 | 6906 | #endif |
6907 | ||
6908 | int | |
6909 | main () | |
6910 | { | |
a8b2ad8d | 6911 | return $ac_func (); |
b3076f16 | 6912 | ; |
6913 | return 0; | |
6914 | } | |
6915 | _ACEOF | |
6916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 6917 | if { (ac_try="$ac_link" |
6918 | case "(($ac_try" in | |
6919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6920 | *) ac_try_echo=$ac_try;; | |
6921 | esac | |
6922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6923 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 6924 | ac_status=$? |
6925 | grep -v '^ *+' conftest.er1 >conftest.err | |
6926 | rm -f conftest.er1 | |
6927 | cat conftest.err >&5 | |
6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6929 | (exit $ac_status); } && | |
a8b2ad8d | 6930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6931 | { (case "(($ac_try" in | |
6932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6933 | *) ac_try_echo=$ac_try;; | |
6934 | esac | |
6935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6936 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6937 | ac_status=$? |
6938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6939 | (exit $ac_status); }; } && | |
6940 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 6941 | { (case "(($ac_try" in |
6942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6943 | *) ac_try_echo=$ac_try;; | |
6944 | esac | |
6945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6946 | (eval "$ac_try") 2>&5 | |
b3076f16 | 6947 | ac_status=$? |
6948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6949 | (exit $ac_status); }; }; then | |
6950 | eval "$as_ac_var=yes" | |
6951 | else | |
6952 | echo "$as_me: failed program was:" >&5 | |
6953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6954 | ||
a8b2ad8d | 6955 | eval "$as_ac_var=no" |
b3076f16 | 6956 | fi |
a8b2ad8d | 6957 | |
6958 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 6959 | conftest$ac_exeext conftest.$ac_ext |
6960 | fi | |
a8b2ad8d | 6961 | ac_res=`eval echo '${'$as_ac_var'}'` |
6962 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6963 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 6964 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6965 | cat >>confdefs.h <<_ACEOF | |
6966 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6967 | _ACEOF | |
6968 | ||
6969 | else | |
2f61d1d7 | 6970 | { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5 |
6971 | echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;} | |
b3076f16 | 6972 | { (exit 1); exit 1; }; } |
6973 | fi | |
6974 | done | |
6975 | ||
6976 | fi | |
6977 | ||
6978 | ||
6979 | ||
6980 | ||
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | ||
5b1166fd | 6992 | for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf |
b3076f16 | 6993 | do |
6994 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 6995 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6996 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6997 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 6998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6999 | else | |
7000 | cat >conftest.$ac_ext <<_ACEOF | |
7001 | /* confdefs.h. */ | |
7002 | _ACEOF | |
7003 | cat confdefs.h >>conftest.$ac_ext | |
7004 | cat >>conftest.$ac_ext <<_ACEOF | |
7005 | /* end confdefs.h. */ | |
7006 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7008 | #define $ac_func innocuous_$ac_func | |
7009 | ||
7010 | /* System header to define __stub macros and hopefully few prototypes, | |
7011 | which can conflict with char $ac_func (); below. | |
7012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7013 | <limits.h> exists even on freestanding compilers. */ | |
7014 | ||
7015 | #ifdef __STDC__ | |
7016 | # include <limits.h> | |
7017 | #else | |
7018 | # include <assert.h> | |
7019 | #endif | |
7020 | ||
7021 | #undef $ac_func | |
7022 | ||
a8b2ad8d | 7023 | /* Override any GCC internal prototype to avoid an error. |
7024 | Use char because int might match the return type of a GCC | |
7025 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 7026 | #ifdef __cplusplus |
7027 | extern "C" | |
b3076f16 | 7028 | #endif |
b3076f16 | 7029 | char $ac_func (); |
7030 | /* The GNU C library defines this for functions which it implements | |
7031 | to always fail with ENOSYS. Some functions are actually named | |
7032 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 7033 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 7034 | choke me |
b3076f16 | 7035 | #endif |
7036 | ||
7037 | int | |
7038 | main () | |
7039 | { | |
a8b2ad8d | 7040 | return $ac_func (); |
b3076f16 | 7041 | ; |
7042 | return 0; | |
7043 | } | |
7044 | _ACEOF | |
7045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7046 | if { (ac_try="$ac_link" |
7047 | case "(($ac_try" in | |
7048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7049 | *) ac_try_echo=$ac_try;; | |
7050 | esac | |
7051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7052 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7053 | ac_status=$? |
7054 | grep -v '^ *+' conftest.er1 >conftest.err | |
7055 | rm -f conftest.er1 | |
7056 | cat conftest.err >&5 | |
7057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7058 | (exit $ac_status); } && | |
a8b2ad8d | 7059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7060 | { (case "(($ac_try" in | |
7061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7062 | *) ac_try_echo=$ac_try;; | |
7063 | esac | |
7064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7065 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7066 | ac_status=$? |
7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7068 | (exit $ac_status); }; } && | |
7069 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 7070 | { (case "(($ac_try" in |
7071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7072 | *) ac_try_echo=$ac_try;; | |
7073 | esac | |
7074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7075 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7076 | ac_status=$? |
7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7078 | (exit $ac_status); }; }; then | |
7079 | eval "$as_ac_var=yes" | |
7080 | else | |
7081 | echo "$as_me: failed program was:" >&5 | |
7082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7083 | ||
a8b2ad8d | 7084 | eval "$as_ac_var=no" |
b3076f16 | 7085 | fi |
a8b2ad8d | 7086 | |
7087 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 7088 | conftest$ac_exeext conftest.$ac_ext |
7089 | fi | |
a8b2ad8d | 7090 | ac_res=`eval echo '${'$as_ac_var'}'` |
7091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7092 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7093 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7094 | cat >>confdefs.h <<_ACEOF | |
7095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7096 | _ACEOF | |
7097 | ||
7098 | fi | |
7099 | done | |
7100 | ||
7101 | ||
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | for ac_func in select socket strcspn strspn strtod strtoul | |
7109 | do | |
7110 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 7111 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7112 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7113 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7115 | else | |
7116 | cat >conftest.$ac_ext <<_ACEOF | |
7117 | /* confdefs.h. */ | |
7118 | _ACEOF | |
7119 | cat confdefs.h >>conftest.$ac_ext | |
7120 | cat >>conftest.$ac_ext <<_ACEOF | |
7121 | /* end confdefs.h. */ | |
7122 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7123 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7124 | #define $ac_func innocuous_$ac_func | |
7125 | ||
7126 | /* System header to define __stub macros and hopefully few prototypes, | |
7127 | which can conflict with char $ac_func (); below. | |
7128 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7129 | <limits.h> exists even on freestanding compilers. */ | |
7130 | ||
7131 | #ifdef __STDC__ | |
7132 | # include <limits.h> | |
7133 | #else | |
7134 | # include <assert.h> | |
7135 | #endif | |
7136 | ||
7137 | #undef $ac_func | |
7138 | ||
a8b2ad8d | 7139 | /* Override any GCC internal prototype to avoid an error. |
7140 | Use char because int might match the return type of a GCC | |
7141 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 7142 | #ifdef __cplusplus |
7143 | extern "C" | |
b3076f16 | 7144 | #endif |
b3076f16 | 7145 | char $ac_func (); |
7146 | /* The GNU C library defines this for functions which it implements | |
7147 | to always fail with ENOSYS. Some functions are actually named | |
7148 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 7149 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 7150 | choke me |
b3076f16 | 7151 | #endif |
7152 | ||
7153 | int | |
7154 | main () | |
7155 | { | |
a8b2ad8d | 7156 | return $ac_func (); |
b3076f16 | 7157 | ; |
7158 | return 0; | |
7159 | } | |
7160 | _ACEOF | |
7161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7162 | if { (ac_try="$ac_link" |
7163 | case "(($ac_try" in | |
7164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7165 | *) ac_try_echo=$ac_try;; | |
7166 | esac | |
7167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7168 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7169 | ac_status=$? |
7170 | grep -v '^ *+' conftest.er1 >conftest.err | |
7171 | rm -f conftest.er1 | |
7172 | cat conftest.err >&5 | |
7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7174 | (exit $ac_status); } && | |
a8b2ad8d | 7175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7176 | { (case "(($ac_try" in | |
7177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7178 | *) ac_try_echo=$ac_try;; | |
7179 | esac | |
7180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7181 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7182 | ac_status=$? |
7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7184 | (exit $ac_status); }; } && | |
7185 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 7186 | { (case "(($ac_try" in |
7187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7188 | *) ac_try_echo=$ac_try;; | |
7189 | esac | |
7190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7191 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7192 | ac_status=$? |
7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7194 | (exit $ac_status); }; }; then | |
7195 | eval "$as_ac_var=yes" | |
7196 | else | |
7197 | echo "$as_me: failed program was:" >&5 | |
7198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7199 | ||
a8b2ad8d | 7200 | eval "$as_ac_var=no" |
b3076f16 | 7201 | fi |
a8b2ad8d | 7202 | |
7203 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 7204 | conftest$ac_exeext conftest.$ac_ext |
7205 | fi | |
a8b2ad8d | 7206 | ac_res=`eval echo '${'$as_ac_var'}'` |
7207 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7208 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7209 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7210 | cat >>confdefs.h <<_ACEOF | |
7211 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7212 | _ACEOF | |
7213 | ||
7214 | else | |
2f61d1d7 | 7215 | { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5 |
7216 | echo "$as_me: error: a required function was not found. X3 build will fail." >&2;} | |
b3076f16 | 7217 | { (exit 1); exit 1; }; } |
7218 | fi | |
7219 | done | |
7220 | ||
7221 | ||
7222 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7223 | # for constant arguments. Useless! | |
a8b2ad8d | 7224 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
7225 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
b3076f16 | 7226 | if test "${ac_cv_working_alloca_h+set}" = set; then |
7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7228 | else | |
7229 | cat >conftest.$ac_ext <<_ACEOF | |
7230 | /* confdefs.h. */ | |
7231 | _ACEOF | |
7232 | cat confdefs.h >>conftest.$ac_ext | |
7233 | cat >>conftest.$ac_ext <<_ACEOF | |
7234 | /* end confdefs.h. */ | |
7235 | #include <alloca.h> | |
7236 | int | |
7237 | main () | |
7238 | { | |
7239 | char *p = (char *) alloca (2 * sizeof (int)); | |
a8b2ad8d | 7240 | if (p) return 0; |
b3076f16 | 7241 | ; |
7242 | return 0; | |
7243 | } | |
7244 | _ACEOF | |
7245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7246 | if { (ac_try="$ac_link" |
7247 | case "(($ac_try" in | |
7248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7249 | *) ac_try_echo=$ac_try;; | |
7250 | esac | |
7251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7252 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7253 | ac_status=$? |
7254 | grep -v '^ *+' conftest.er1 >conftest.err | |
7255 | rm -f conftest.er1 | |
7256 | cat conftest.err >&5 | |
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7258 | (exit $ac_status); } && | |
a8b2ad8d | 7259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7260 | { (case "(($ac_try" in | |
7261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7262 | *) ac_try_echo=$ac_try;; | |
7263 | esac | |
7264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7265 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7266 | ac_status=$? |
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7268 | (exit $ac_status); }; } && | |
7269 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 7270 | { (case "(($ac_try" in |
7271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7272 | *) ac_try_echo=$ac_try;; | |
7273 | esac | |
7274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7275 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7276 | ac_status=$? |
7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7278 | (exit $ac_status); }; }; then | |
7279 | ac_cv_working_alloca_h=yes | |
7280 | else | |
7281 | echo "$as_me: failed program was:" >&5 | |
7282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7283 | ||
a8b2ad8d | 7284 | ac_cv_working_alloca_h=no |
b3076f16 | 7285 | fi |
a8b2ad8d | 7286 | |
7287 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 7288 | conftest$ac_exeext conftest.$ac_ext |
7289 | fi | |
a8b2ad8d | 7290 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
7291 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
b3076f16 | 7292 | if test $ac_cv_working_alloca_h = yes; then |
7293 | ||
7294 | cat >>confdefs.h <<\_ACEOF | |
7295 | #define HAVE_ALLOCA_H 1 | |
7296 | _ACEOF | |
7297 | ||
7298 | fi | |
7299 | ||
a8b2ad8d | 7300 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
7301 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
b3076f16 | 7302 | if test "${ac_cv_func_alloca_works+set}" = set; then |
7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7304 | else | |
7305 | cat >conftest.$ac_ext <<_ACEOF | |
7306 | /* confdefs.h. */ | |
7307 | _ACEOF | |
7308 | cat confdefs.h >>conftest.$ac_ext | |
7309 | cat >>conftest.$ac_ext <<_ACEOF | |
7310 | /* end confdefs.h. */ | |
7311 | #ifdef __GNUC__ | |
7312 | # define alloca __builtin_alloca | |
7313 | #else | |
7314 | # ifdef _MSC_VER | |
7315 | # include <malloc.h> | |
7316 | # define alloca _alloca | |
7317 | # else | |
7318 | # if HAVE_ALLOCA_H | |
7319 | # include <alloca.h> | |
7320 | # else | |
7321 | # ifdef _AIX | |
7322 | #pragma alloca | |
7323 | # else | |
7324 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
7325 | char *alloca (); | |
7326 | # endif | |
7327 | # endif | |
7328 | # endif | |
7329 | # endif | |
7330 | #endif | |
7331 | ||
7332 | int | |
7333 | main () | |
7334 | { | |
7335 | char *p = (char *) alloca (1); | |
a8b2ad8d | 7336 | if (p) return 0; |
b3076f16 | 7337 | ; |
7338 | return 0; | |
7339 | } | |
7340 | _ACEOF | |
7341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7342 | if { (ac_try="$ac_link" |
7343 | case "(($ac_try" in | |
7344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7345 | *) ac_try_echo=$ac_try;; | |
7346 | esac | |
7347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7348 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7349 | ac_status=$? |
7350 | grep -v '^ *+' conftest.er1 >conftest.err | |
7351 | rm -f conftest.er1 | |
7352 | cat conftest.err >&5 | |
7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7354 | (exit $ac_status); } && | |
a8b2ad8d | 7355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7356 | { (case "(($ac_try" in | |
7357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7358 | *) ac_try_echo=$ac_try;; | |
7359 | esac | |
7360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7361 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7362 | ac_status=$? |
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7364 | (exit $ac_status); }; } && | |
7365 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 7366 | { (case "(($ac_try" in |
7367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7368 | *) ac_try_echo=$ac_try;; | |
7369 | esac | |
7370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7371 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7372 | ac_status=$? |
7373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7374 | (exit $ac_status); }; }; then | |
7375 | ac_cv_func_alloca_works=yes | |
7376 | else | |
7377 | echo "$as_me: failed program was:" >&5 | |
7378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7379 | ||
a8b2ad8d | 7380 | ac_cv_func_alloca_works=no |
b3076f16 | 7381 | fi |
a8b2ad8d | 7382 | |
7383 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 7384 | conftest$ac_exeext conftest.$ac_ext |
7385 | fi | |
a8b2ad8d | 7386 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
7387 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
b3076f16 | 7388 | |
7389 | if test $ac_cv_func_alloca_works = yes; then | |
7390 | ||
7391 | cat >>confdefs.h <<\_ACEOF | |
7392 | #define HAVE_ALLOCA 1 | |
7393 | _ACEOF | |
7394 | ||
7395 | else | |
7396 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
7397 | # that cause trouble. Some versions do not even contain alloca or | |
7398 | # contain a buggy version. If you still want to use their alloca, | |
7399 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7400 | ||
a8b2ad8d | 7401 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
b3076f16 | 7402 | |
7403 | cat >>confdefs.h <<\_ACEOF | |
7404 | #define C_ALLOCA 1 | |
7405 | _ACEOF | |
7406 | ||
7407 | ||
a8b2ad8d | 7408 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
7409 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
b3076f16 | 7410 | if test "${ac_cv_os_cray+set}" = set; then |
7411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7412 | else | |
7413 | cat >conftest.$ac_ext <<_ACEOF | |
7414 | /* confdefs.h. */ | |
7415 | _ACEOF | |
7416 | cat confdefs.h >>conftest.$ac_ext | |
7417 | cat >>conftest.$ac_ext <<_ACEOF | |
7418 | /* end confdefs.h. */ | |
a8b2ad8d | 7419 | #if defined CRAY && ! defined CRAY2 |
b3076f16 | 7420 | webecray |
7421 | #else | |
7422 | wenotbecray | |
7423 | #endif | |
7424 | ||
7425 | _ACEOF | |
7426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7427 | $EGREP "webecray" >/dev/null 2>&1; then | |
7428 | ac_cv_os_cray=yes | |
7429 | else | |
7430 | ac_cv_os_cray=no | |
7431 | fi | |
7432 | rm -f conftest* | |
7433 | ||
7434 | fi | |
a8b2ad8d | 7435 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
7436 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
b3076f16 | 7437 | if test $ac_cv_os_cray = yes; then |
7438 | for ac_func in _getb67 GETB67 getb67; do | |
7439 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 7440 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7441 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7442 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7444 | else | |
7445 | cat >conftest.$ac_ext <<_ACEOF | |
7446 | /* confdefs.h. */ | |
7447 | _ACEOF | |
7448 | cat confdefs.h >>conftest.$ac_ext | |
7449 | cat >>conftest.$ac_ext <<_ACEOF | |
7450 | /* end confdefs.h. */ | |
7451 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7452 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7453 | #define $ac_func innocuous_$ac_func | |
7454 | ||
7455 | /* System header to define __stub macros and hopefully few prototypes, | |
7456 | which can conflict with char $ac_func (); below. | |
7457 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7458 | <limits.h> exists even on freestanding compilers. */ | |
7459 | ||
7460 | #ifdef __STDC__ | |
7461 | # include <limits.h> | |
7462 | #else | |
7463 | # include <assert.h> | |
7464 | #endif | |
7465 | ||
7466 | #undef $ac_func | |
7467 | ||
a8b2ad8d | 7468 | /* Override any GCC internal prototype to avoid an error. |
7469 | Use char because int might match the return type of a GCC | |
7470 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 7471 | #ifdef __cplusplus |
7472 | extern "C" | |
b3076f16 | 7473 | #endif |
b3076f16 | 7474 | char $ac_func (); |
7475 | /* The GNU C library defines this for functions which it implements | |
7476 | to always fail with ENOSYS. Some functions are actually named | |
7477 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 7478 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 7479 | choke me |
b3076f16 | 7480 | #endif |
7481 | ||
7482 | int | |
7483 | main () | |
7484 | { | |
a8b2ad8d | 7485 | return $ac_func (); |
b3076f16 | 7486 | ; |
7487 | return 0; | |
7488 | } | |
7489 | _ACEOF | |
7490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7491 | if { (ac_try="$ac_link" |
7492 | case "(($ac_try" in | |
7493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7494 | *) ac_try_echo=$ac_try;; | |
7495 | esac | |
7496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7497 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7498 | ac_status=$? |
7499 | grep -v '^ *+' conftest.er1 >conftest.err | |
7500 | rm -f conftest.er1 | |
7501 | cat conftest.err >&5 | |
7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7503 | (exit $ac_status); } && | |
a8b2ad8d | 7504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7505 | { (case "(($ac_try" in | |
7506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7507 | *) ac_try_echo=$ac_try;; | |
7508 | esac | |
7509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7510 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7511 | ac_status=$? |
7512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7513 | (exit $ac_status); }; } && | |
7514 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 7515 | { (case "(($ac_try" in |
7516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7517 | *) ac_try_echo=$ac_try;; | |
7518 | esac | |
7519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7520 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7521 | ac_status=$? |
7522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7523 | (exit $ac_status); }; }; then | |
7524 | eval "$as_ac_var=yes" | |
7525 | else | |
7526 | echo "$as_me: failed program was:" >&5 | |
7527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7528 | ||
a8b2ad8d | 7529 | eval "$as_ac_var=no" |
b3076f16 | 7530 | fi |
a8b2ad8d | 7531 | |
7532 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 7533 | conftest$ac_exeext conftest.$ac_ext |
7534 | fi | |
a8b2ad8d | 7535 | ac_res=`eval echo '${'$as_ac_var'}'` |
7536 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7537 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7538 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7539 | ||
7540 | cat >>confdefs.h <<_ACEOF | |
7541 | #define CRAY_STACKSEG_END $ac_func | |
7542 | _ACEOF | |
7543 | ||
7544 | break | |
7545 | fi | |
7546 | ||
7547 | done | |
7548 | fi | |
7549 | ||
a8b2ad8d | 7550 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
7551 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
b3076f16 | 7552 | if test "${ac_cv_c_stack_direction+set}" = set; then |
7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7554 | else | |
7555 | if test "$cross_compiling" = yes; then | |
7556 | ac_cv_c_stack_direction=0 | |
7557 | else | |
7558 | cat >conftest.$ac_ext <<_ACEOF | |
7559 | /* confdefs.h. */ | |
7560 | _ACEOF | |
7561 | cat confdefs.h >>conftest.$ac_ext | |
7562 | cat >>conftest.$ac_ext <<_ACEOF | |
7563 | /* end confdefs.h. */ | |
a8b2ad8d | 7564 | $ac_includes_default |
b3076f16 | 7565 | int |
7566 | find_stack_direction () | |
7567 | { | |
7568 | static char *addr = 0; | |
7569 | auto char dummy; | |
7570 | if (addr == 0) | |
7571 | { | |
7572 | addr = &dummy; | |
7573 | return find_stack_direction (); | |
7574 | } | |
7575 | else | |
7576 | return (&dummy > addr) ? 1 : -1; | |
7577 | } | |
7578 | ||
7579 | int | |
7580 | main () | |
7581 | { | |
a8b2ad8d | 7582 | return find_stack_direction () < 0; |
b3076f16 | 7583 | } |
7584 | _ACEOF | |
7585 | rm -f conftest$ac_exeext | |
a8b2ad8d | 7586 | if { (ac_try="$ac_link" |
7587 | case "(($ac_try" in | |
7588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7589 | *) ac_try_echo=$ac_try;; | |
7590 | esac | |
7591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7592 | (eval "$ac_link") 2>&5 | |
b3076f16 | 7593 | ac_status=$? |
7594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7595 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 7596 | { (case "(($ac_try" in |
7597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7598 | *) ac_try_echo=$ac_try;; | |
7599 | esac | |
7600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7601 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7602 | ac_status=$? |
7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7604 | (exit $ac_status); }; }; then | |
7605 | ac_cv_c_stack_direction=1 | |
7606 | else | |
7607 | echo "$as_me: program exited with status $ac_status" >&5 | |
7608 | echo "$as_me: failed program was:" >&5 | |
7609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7610 | ||
7611 | ( exit $ac_status ) | |
7612 | ac_cv_c_stack_direction=-1 | |
7613 | fi | |
a8b2ad8d | 7614 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 7615 | fi |
a8b2ad8d | 7616 | |
7617 | ||
b3076f16 | 7618 | fi |
a8b2ad8d | 7619 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7620 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
b3076f16 | 7621 | |
7622 | cat >>confdefs.h <<_ACEOF | |
7623 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7624 | _ACEOF | |
7625 | ||
7626 | ||
7627 | fi | |
7628 | ||
7629 | ||
7630 | ||
7631 | for ac_header in stdlib.h unistd.h | |
7632 | do | |
7633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 7634 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7635 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7637 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7639 | fi | |
a8b2ad8d | 7640 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7641 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7642 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7643 | else |
7644 | # Is the header compilable? | |
a8b2ad8d | 7645 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7646 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 7647 | cat >conftest.$ac_ext <<_ACEOF |
7648 | /* confdefs.h. */ | |
7649 | _ACEOF | |
7650 | cat confdefs.h >>conftest.$ac_ext | |
7651 | cat >>conftest.$ac_ext <<_ACEOF | |
7652 | /* end confdefs.h. */ | |
7653 | $ac_includes_default | |
7654 | #include <$ac_header> | |
7655 | _ACEOF | |
7656 | rm -f conftest.$ac_objext | |
a8b2ad8d | 7657 | if { (ac_try="$ac_compile" |
7658 | case "(($ac_try" in | |
7659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7660 | *) ac_try_echo=$ac_try;; | |
7661 | esac | |
7662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7663 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 7664 | ac_status=$? |
7665 | grep -v '^ *+' conftest.er1 >conftest.err | |
7666 | rm -f conftest.er1 | |
7667 | cat conftest.err >&5 | |
7668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7669 | (exit $ac_status); } && | |
a8b2ad8d | 7670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7671 | { (case "(($ac_try" in | |
7672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7673 | *) ac_try_echo=$ac_try;; | |
7674 | esac | |
7675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7676 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7677 | ac_status=$? |
7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7679 | (exit $ac_status); }; } && | |
7680 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 7681 | { (case "(($ac_try" in |
7682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7683 | *) ac_try_echo=$ac_try;; | |
7684 | esac | |
7685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7686 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7687 | ac_status=$? |
7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7689 | (exit $ac_status); }; }; then | |
7690 | ac_header_compiler=yes | |
7691 | else | |
7692 | echo "$as_me: failed program was:" >&5 | |
7693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7694 | ||
a8b2ad8d | 7695 | ac_header_compiler=no |
b3076f16 | 7696 | fi |
a8b2ad8d | 7697 | |
7698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7699 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7700 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 7701 | |
7702 | # Is the header present? | |
a8b2ad8d | 7703 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7704 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 7705 | cat >conftest.$ac_ext <<_ACEOF |
7706 | /* confdefs.h. */ | |
7707 | _ACEOF | |
7708 | cat confdefs.h >>conftest.$ac_ext | |
7709 | cat >>conftest.$ac_ext <<_ACEOF | |
7710 | /* end confdefs.h. */ | |
7711 | #include <$ac_header> | |
7712 | _ACEOF | |
a8b2ad8d | 7713 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7714 | case "(($ac_try" in | |
7715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7716 | *) ac_try_echo=$ac_try;; | |
7717 | esac | |
7718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7719 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 7720 | ac_status=$? |
7721 | grep -v '^ *+' conftest.er1 >conftest.err | |
7722 | rm -f conftest.er1 | |
7723 | cat conftest.err >&5 | |
7724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7725 | (exit $ac_status); } >/dev/null; then | |
7726 | if test -s conftest.err; then | |
7727 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7728 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7729 | else | |
7730 | ac_cpp_err= | |
7731 | fi | |
7732 | else | |
7733 | ac_cpp_err=yes | |
7734 | fi | |
7735 | if test -z "$ac_cpp_err"; then | |
7736 | ac_header_preproc=yes | |
7737 | else | |
7738 | echo "$as_me: failed program was:" >&5 | |
7739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7740 | ||
7741 | ac_header_preproc=no | |
7742 | fi | |
a8b2ad8d | 7743 | |
b3076f16 | 7744 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 7745 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7746 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 7747 | |
7748 | # So? What about this header? | |
7749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7750 | yes:no: ) | |
7751 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7752 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7754 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7755 | ac_header_preproc=yes | |
7756 | ;; | |
7757 | no:yes:* ) | |
7758 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7759 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7760 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7761 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7762 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7763 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7764 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7765 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7767 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7768 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7769 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 7770 | ( cat <<\_ASBOX |
63c95a47 | 7771 | ## -------------------------------------------------- ## |
7772 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
7773 | ## -------------------------------------------------- ## | |
b3076f16 | 7774 | _ASBOX |
a8b2ad8d | 7775 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 7776 | ;; |
7777 | esac | |
a8b2ad8d | 7778 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7782 | else | |
7783 | eval "$as_ac_Header=\$ac_header_preproc" | |
7784 | fi | |
a8b2ad8d | 7785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7787 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7788 | |
7789 | fi | |
7790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7791 | cat >>confdefs.h <<_ACEOF | |
7792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7793 | _ACEOF | |
7794 | ||
7795 | fi | |
7796 | ||
7797 | done | |
7798 | ||
7799 | ||
7800 | for ac_func in getpagesize | |
7801 | do | |
7802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
a8b2ad8d | 7803 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7805 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 7806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7807 | else | |
7808 | cat >conftest.$ac_ext <<_ACEOF | |
7809 | /* confdefs.h. */ | |
7810 | _ACEOF | |
7811 | cat confdefs.h >>conftest.$ac_ext | |
7812 | cat >>conftest.$ac_ext <<_ACEOF | |
7813 | /* end confdefs.h. */ | |
7814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7816 | #define $ac_func innocuous_$ac_func | |
7817 | ||
7818 | /* System header to define __stub macros and hopefully few prototypes, | |
7819 | which can conflict with char $ac_func (); below. | |
7820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7821 | <limits.h> exists even on freestanding compilers. */ | |
7822 | ||
7823 | #ifdef __STDC__ | |
7824 | # include <limits.h> | |
7825 | #else | |
7826 | # include <assert.h> | |
7827 | #endif | |
7828 | ||
7829 | #undef $ac_func | |
7830 | ||
a8b2ad8d | 7831 | /* Override any GCC internal prototype to avoid an error. |
7832 | Use char because int might match the return type of a GCC | |
7833 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 7834 | #ifdef __cplusplus |
7835 | extern "C" | |
b3076f16 | 7836 | #endif |
b3076f16 | 7837 | char $ac_func (); |
7838 | /* The GNU C library defines this for functions which it implements | |
7839 | to always fail with ENOSYS. Some functions are actually named | |
7840 | something starting with __ and the normal name is an alias. */ | |
a8b2ad8d | 7841 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b3076f16 | 7842 | choke me |
b3076f16 | 7843 | #endif |
7844 | ||
7845 | int | |
7846 | main () | |
7847 | { | |
a8b2ad8d | 7848 | return $ac_func (); |
b3076f16 | 7849 | ; |
7850 | return 0; | |
7851 | } | |
7852 | _ACEOF | |
7853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 7854 | if { (ac_try="$ac_link" |
7855 | case "(($ac_try" in | |
7856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7857 | *) ac_try_echo=$ac_try;; | |
7858 | esac | |
7859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7860 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 7861 | ac_status=$? |
7862 | grep -v '^ *+' conftest.er1 >conftest.err | |
7863 | rm -f conftest.er1 | |
7864 | cat conftest.err >&5 | |
7865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7866 | (exit $ac_status); } && | |
a8b2ad8d | 7867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7868 | { (case "(($ac_try" in | |
7869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7870 | *) ac_try_echo=$ac_try;; | |
7871 | esac | |
7872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7873 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7874 | ac_status=$? |
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7876 | (exit $ac_status); }; } && | |
7877 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 7878 | { (case "(($ac_try" in |
7879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7880 | *) ac_try_echo=$ac_try;; | |
7881 | esac | |
7882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7883 | (eval "$ac_try") 2>&5 | |
b3076f16 | 7884 | ac_status=$? |
7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7886 | (exit $ac_status); }; }; then | |
7887 | eval "$as_ac_var=yes" | |
7888 | else | |
7889 | echo "$as_me: failed program was:" >&5 | |
7890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7891 | ||
a8b2ad8d | 7892 | eval "$as_ac_var=no" |
b3076f16 | 7893 | fi |
a8b2ad8d | 7894 | |
7895 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 7896 | conftest$ac_exeext conftest.$ac_ext |
7897 | fi | |
a8b2ad8d | 7898 | ac_res=`eval echo '${'$as_ac_var'}'` |
7899 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7900 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 7901 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7902 | cat >>confdefs.h <<_ACEOF | |
7903 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7904 | _ACEOF | |
7905 | ||
7906 | fi | |
7907 | done | |
7908 | ||
a8b2ad8d | 7909 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7910 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
b3076f16 | 7911 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
7912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7913 | else | |
7914 | if test "$cross_compiling" = yes; then | |
7915 | ac_cv_func_mmap_fixed_mapped=no | |
7916 | else | |
7917 | cat >conftest.$ac_ext <<_ACEOF | |
7918 | /* confdefs.h. */ | |
7919 | _ACEOF | |
7920 | cat confdefs.h >>conftest.$ac_ext | |
7921 | cat >>conftest.$ac_ext <<_ACEOF | |
7922 | /* end confdefs.h. */ | |
7923 | $ac_includes_default | |
7924 | /* malloc might have been renamed as rpl_malloc. */ | |
7925 | #undef malloc | |
7926 | ||
7927 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7928 | Here is a matrix of mmap possibilities: | |
7929 | mmap private not fixed | |
7930 | mmap private fixed at somewhere currently unmapped | |
7931 | mmap private fixed at somewhere already mapped | |
7932 | mmap shared not fixed | |
7933 | mmap shared fixed at somewhere currently unmapped | |
7934 | mmap shared fixed at somewhere already mapped | |
7935 | For private mappings, we should verify that changes cannot be read() | |
7936 | back from the file, nor mmap's back from the file at a different | |
7937 | address. (There have been systems where private was not correctly | |
7938 | implemented like the infamous i386 svr4.0, and systems where the | |
7939 | VM page cache was not coherent with the file system buffer cache | |
7940 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7941 | For shared mappings, we should conversely verify that changes get | |
7942 | propagated back to all the places they're supposed to be. | |
7943 | ||
7944 | Grep wants private fixed already mapped. | |
7945 | The main things grep needs to know about mmap are: | |
7946 | * does it exist and is it safe to write into the mmap'd area | |
7947 | * how to use it (BSD variants) */ | |
7948 | ||
7949 | #include <fcntl.h> | |
7950 | #include <sys/mman.h> | |
7951 | ||
7952 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
7953 | char *malloc (); | |
7954 | #endif | |
7955 | ||
7956 | /* This mess was copied from the GNU getpagesize.h. */ | |
7957 | #if !HAVE_GETPAGESIZE | |
7958 | /* Assume that all systems that can run configure have sys/param.h. */ | |
7959 | # if !HAVE_SYS_PARAM_H | |
7960 | # define HAVE_SYS_PARAM_H 1 | |
7961 | # endif | |
7962 | ||
7963 | # ifdef _SC_PAGESIZE | |
7964 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7965 | # else /* no _SC_PAGESIZE */ | |
7966 | # if HAVE_SYS_PARAM_H | |
7967 | # include <sys/param.h> | |
7968 | # ifdef EXEC_PAGESIZE | |
7969 | # define getpagesize() EXEC_PAGESIZE | |
7970 | # else /* no EXEC_PAGESIZE */ | |
7971 | # ifdef NBPG | |
7972 | # define getpagesize() NBPG * CLSIZE | |
7973 | # ifndef CLSIZE | |
7974 | # define CLSIZE 1 | |
7975 | # endif /* no CLSIZE */ | |
7976 | # else /* no NBPG */ | |
7977 | # ifdef NBPC | |
7978 | # define getpagesize() NBPC | |
7979 | # else /* no NBPC */ | |
7980 | # ifdef PAGESIZE | |
7981 | # define getpagesize() PAGESIZE | |
7982 | # endif /* PAGESIZE */ | |
7983 | # endif /* no NBPC */ | |
7984 | # endif /* no NBPG */ | |
7985 | # endif /* no EXEC_PAGESIZE */ | |
7986 | # else /* no HAVE_SYS_PARAM_H */ | |
7987 | # define getpagesize() 8192 /* punt totally */ | |
7988 | # endif /* no HAVE_SYS_PARAM_H */ | |
7989 | # endif /* no _SC_PAGESIZE */ | |
7990 | ||
7991 | #endif /* no HAVE_GETPAGESIZE */ | |
7992 | ||
7993 | int | |
7994 | main () | |
7995 | { | |
7996 | char *data, *data2, *data3; | |
7997 | int i, pagesize; | |
7998 | int fd; | |
7999 | ||
8000 | pagesize = getpagesize (); | |
8001 | ||
8002 | /* First, make a file with some known garbage in it. */ | |
8003 | data = (char *) malloc (pagesize); | |
8004 | if (!data) | |
a8b2ad8d | 8005 | return 1; |
b3076f16 | 8006 | for (i = 0; i < pagesize; ++i) |
8007 | *(data + i) = rand (); | |
8008 | umask (0); | |
8009 | fd = creat ("conftest.mmap", 0600); | |
8010 | if (fd < 0) | |
a8b2ad8d | 8011 | return 1; |
b3076f16 | 8012 | if (write (fd, data, pagesize) != pagesize) |
a8b2ad8d | 8013 | return 1; |
b3076f16 | 8014 | close (fd); |
8015 | ||
8016 | /* Next, try to mmap the file at a fixed address which already has | |
8017 | something else allocated at it. If we can, also make sure that | |
8018 | we see the same garbage. */ | |
8019 | fd = open ("conftest.mmap", O_RDWR); | |
8020 | if (fd < 0) | |
a8b2ad8d | 8021 | return 1; |
b3076f16 | 8022 | data2 = (char *) malloc (2 * pagesize); |
8023 | if (!data2) | |
a8b2ad8d | 8024 | return 1; |
8025 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
b3076f16 | 8026 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8027 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
a8b2ad8d | 8028 | return 1; |
b3076f16 | 8029 | for (i = 0; i < pagesize; ++i) |
8030 | if (*(data + i) != *(data2 + i)) | |
a8b2ad8d | 8031 | return 1; |
b3076f16 | 8032 | |
8033 | /* Finally, make sure that changes to the mapped area do not | |
8034 | percolate back to the file as seen by read(). (This is a bug on | |
8035 | some variants of i386 svr4.0.) */ | |
8036 | for (i = 0; i < pagesize; ++i) | |
8037 | *(data2 + i) = *(data2 + i) + 1; | |
8038 | data3 = (char *) malloc (pagesize); | |
8039 | if (!data3) | |
a8b2ad8d | 8040 | return 1; |
b3076f16 | 8041 | if (read (fd, data3, pagesize) != pagesize) |
a8b2ad8d | 8042 | return 1; |
b3076f16 | 8043 | for (i = 0; i < pagesize; ++i) |
8044 | if (*(data + i) != *(data3 + i)) | |
a8b2ad8d | 8045 | return 1; |
b3076f16 | 8046 | close (fd); |
a8b2ad8d | 8047 | return 0; |
b3076f16 | 8048 | } |
8049 | _ACEOF | |
8050 | rm -f conftest$ac_exeext | |
a8b2ad8d | 8051 | if { (ac_try="$ac_link" |
8052 | case "(($ac_try" in | |
8053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8054 | *) ac_try_echo=$ac_try;; | |
8055 | esac | |
8056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8057 | (eval "$ac_link") 2>&5 | |
b3076f16 | 8058 | ac_status=$? |
8059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
a8b2ad8d | 8061 | { (case "(($ac_try" in |
8062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8063 | *) ac_try_echo=$ac_try;; | |
8064 | esac | |
8065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8066 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8067 | ac_status=$? |
8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8069 | (exit $ac_status); }; }; then | |
8070 | ac_cv_func_mmap_fixed_mapped=yes | |
8071 | else | |
8072 | echo "$as_me: program exited with status $ac_status" >&5 | |
8073 | echo "$as_me: failed program was:" >&5 | |
8074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8075 | ||
8076 | ( exit $ac_status ) | |
8077 | ac_cv_func_mmap_fixed_mapped=no | |
8078 | fi | |
a8b2ad8d | 8079 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b3076f16 | 8080 | fi |
a8b2ad8d | 8081 | |
8082 | ||
b3076f16 | 8083 | fi |
a8b2ad8d | 8084 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8085 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
b3076f16 | 8086 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8087 | ||
8088 | cat >>confdefs.h <<\_ACEOF | |
8089 | #define HAVE_MMAP 1 | |
8090 | _ACEOF | |
8091 | ||
8092 | fi | |
8093 | rm -f conftest.mmap | |
8094 | ||
8095 | ||
a8b2ad8d | 8096 | { echo "$as_me:$LINENO: checking for sin_len" >&5 |
8097 | echo $ECHO_N "checking for sin_len... $ECHO_C" >&6; } | |
b3076f16 | 8098 | if test "${ac_cv_sin_len+set}" = set; then |
8099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8100 | else | |
8101 | cat >conftest.$ac_ext <<_ACEOF | |
8102 | /* confdefs.h. */ | |
8103 | _ACEOF | |
8104 | cat confdefs.h >>conftest.$ac_ext | |
8105 | cat >>conftest.$ac_ext <<_ACEOF | |
8106 | /* end confdefs.h. */ | |
8107 | #include <sys/types.h> | |
8108 | #include <netinet/in.h> | |
8109 | int | |
8110 | main () | |
8111 | { | |
8112 | struct sockaddr_in *sin; sin->sin_len = 0; | |
8113 | ; | |
8114 | return 0; | |
8115 | } | |
8116 | _ACEOF | |
8117 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8118 | if { (ac_try="$ac_compile" |
8119 | case "(($ac_try" in | |
8120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8121 | *) ac_try_echo=$ac_try;; | |
8122 | esac | |
8123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8124 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 8125 | ac_status=$? |
8126 | grep -v '^ *+' conftest.er1 >conftest.err | |
8127 | rm -f conftest.er1 | |
8128 | cat conftest.err >&5 | |
8129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8130 | (exit $ac_status); } && | |
a8b2ad8d | 8131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8132 | { (case "(($ac_try" in | |
8133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8134 | *) ac_try_echo=$ac_try;; | |
8135 | esac | |
8136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8137 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8138 | ac_status=$? |
8139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8140 | (exit $ac_status); }; } && | |
8141 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 8142 | { (case "(($ac_try" in |
8143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8144 | *) ac_try_echo=$ac_try;; | |
8145 | esac | |
8146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8147 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8148 | ac_status=$? |
8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8150 | (exit $ac_status); }; }; then | |
8151 | ac_cv_sin_len="yes" | |
8152 | else | |
8153 | echo "$as_me: failed program was:" >&5 | |
8154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8155 | ||
a8b2ad8d | 8156 | ac_cv_sin_len="no" |
b3076f16 | 8157 | fi |
a8b2ad8d | 8158 | |
8159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 8160 | fi |
a8b2ad8d | 8161 | { echo "$as_me:$LINENO: result: $ac_cv_sin_len" >&5 |
8162 | echo "${ECHO_T}$ac_cv_sin_len" >&6; } | |
b3076f16 | 8163 | if test $ac_cv_sin_len = yes ; then |
8164 | ||
8165 | cat >>confdefs.h <<\_ACEOF | |
8166 | #define HAVE_SIN_LEN 1 | |
8167 | _ACEOF | |
8168 | ||
8169 | fi | |
8170 | ||
a8b2ad8d | 8171 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
8172 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
79886419 | 8173 | if test "${ac_cv_type_socklen_t+set}" = set; then |
8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8175 | else | |
8176 | cat >conftest.$ac_ext <<_ACEOF | |
8177 | /* confdefs.h. */ | |
8178 | _ACEOF | |
8179 | cat confdefs.h >>conftest.$ac_ext | |
8180 | cat >>conftest.$ac_ext <<_ACEOF | |
8181 | /* end confdefs.h. */ | |
8182 | #include <sys/types.h> | |
8183 | #include<sys/socket.h> | |
8184 | ||
a8b2ad8d | 8185 | typedef socklen_t ac__type_new_; |
79886419 | 8186 | int |
8187 | main () | |
8188 | { | |
a8b2ad8d | 8189 | if ((ac__type_new_ *) 0) |
79886419 | 8190 | return 0; |
a8b2ad8d | 8191 | if (sizeof (ac__type_new_)) |
79886419 | 8192 | return 0; |
8193 | ; | |
8194 | return 0; | |
8195 | } | |
8196 | _ACEOF | |
8197 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8198 | if { (ac_try="$ac_compile" |
8199 | case "(($ac_try" in | |
8200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8201 | *) ac_try_echo=$ac_try;; | |
8202 | esac | |
8203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8204 | (eval "$ac_compile") 2>conftest.er1 | |
79886419 | 8205 | ac_status=$? |
8206 | grep -v '^ *+' conftest.er1 >conftest.err | |
8207 | rm -f conftest.er1 | |
8208 | cat conftest.err >&5 | |
8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8210 | (exit $ac_status); } && | |
a8b2ad8d | 8211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8212 | { (case "(($ac_try" in | |
8213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8214 | *) ac_try_echo=$ac_try;; | |
8215 | esac | |
8216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8217 | (eval "$ac_try") 2>&5 | |
79886419 | 8218 | ac_status=$? |
8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8220 | (exit $ac_status); }; } && | |
8221 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 8222 | { (case "(($ac_try" in |
8223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8224 | *) ac_try_echo=$ac_try;; | |
8225 | esac | |
8226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8227 | (eval "$ac_try") 2>&5 | |
79886419 | 8228 | ac_status=$? |
8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8230 | (exit $ac_status); }; }; then | |
8231 | ac_cv_type_socklen_t=yes | |
8232 | else | |
8233 | echo "$as_me: failed program was:" >&5 | |
8234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8235 | ||
a8b2ad8d | 8236 | ac_cv_type_socklen_t=no |
79886419 | 8237 | fi |
a8b2ad8d | 8238 | |
8239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
79886419 | 8240 | fi |
a8b2ad8d | 8241 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
8242 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
79886419 | 8243 | if test $ac_cv_type_socklen_t = yes; then |
8244 | : | |
8245 | else | |
8246 | ||
a8b2ad8d | 8247 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 |
8248 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } | |
79886419 | 8249 | if test "${curl_cv_socklen_t_equiv+set}" = set; then |
8250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8251 | else | |
8252 | ||
8253 | curl_cv_socklen_t_equiv= | |
8254 | for arg2 in "struct sockaddr" void ; do | |
8255 | for t in int size_t unsigned long "unsigned long" ; do | |
8256 | cat >conftest.$ac_ext <<_ACEOF | |
8257 | /* confdefs.h. */ | |
8258 | _ACEOF | |
8259 | cat confdefs.h >>conftest.$ac_ext | |
8260 | cat >>conftest.$ac_ext <<_ACEOF | |
8261 | /* end confdefs.h. */ | |
8262 | #include <sys/types.h> | |
8263 | #include <sys/socket.h> | |
8264 | int getpeername (int $arg2 *, $t *); | |
8265 | int | |
8266 | main () | |
8267 | { | |
8268 | $t len; | |
8269 | getpeername(0, 0, &len); | |
8270 | ; | |
8271 | return 0; | |
8272 | } | |
8273 | _ACEOF | |
8274 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8275 | if { (ac_try="$ac_compile" |
8276 | case "(($ac_try" in | |
8277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8278 | *) ac_try_echo=$ac_try;; | |
8279 | esac | |
8280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8281 | (eval "$ac_compile") 2>conftest.er1 | |
79886419 | 8282 | ac_status=$? |
8283 | grep -v '^ *+' conftest.er1 >conftest.err | |
8284 | rm -f conftest.er1 | |
8285 | cat conftest.err >&5 | |
8286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8287 | (exit $ac_status); } && | |
a8b2ad8d | 8288 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8289 | { (case "(($ac_try" in | |
8290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8291 | *) ac_try_echo=$ac_try;; | |
8292 | esac | |
8293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8294 | (eval "$ac_try") 2>&5 | |
79886419 | 8295 | ac_status=$? |
8296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8297 | (exit $ac_status); }; } && | |
8298 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 8299 | { (case "(($ac_try" in |
8300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8301 | *) ac_try_echo=$ac_try;; | |
8302 | esac | |
8303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8304 | (eval "$ac_try") 2>&5 | |
79886419 | 8305 | ac_status=$? |
8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8307 | (exit $ac_status); }; }; then | |
8308 | curl_cv_socklen_t_equiv="$t" | |
8309 | break | |
8310 | else | |
8311 | echo "$as_me: failed program was:" >&5 | |
8312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8313 | ||
a8b2ad8d | 8314 | |
79886419 | 8315 | fi |
a8b2ad8d | 8316 | |
8317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
79886419 | 8318 | done |
8319 | done | |
8320 | ||
8321 | fi | |
8322 | ||
a8b2ad8d | 8323 | { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 |
8324 | echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } | |
79886419 | 8325 | |
8326 | cat >>confdefs.h <<_ACEOF | |
8327 | #define socklen_t $curl_cv_socklen_t_equiv | |
8328 | _ACEOF | |
8329 | ||
8330 | fi | |
8331 | ||
8332 | ||
b3076f16 | 8333 | OLD_CFLAGS=$CFLAGS |
8334 | CFLAGS="$CFLAGS -W -Wall -Werror" | |
8335 | ||
a8b2ad8d | 8336 | { echo "$as_me:$LINENO: checking for time_t format" >&5 |
8337 | echo $ECHO_N "checking for time_t format... $ECHO_C" >&6; } | |
b3076f16 | 8338 | if test "${ac_cv_fmt_time_t+set}" = set; then |
8339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8340 | else | |
8341 | ||
8342 | ac_cv_fmt_time_t=no | |
8343 | cat >conftest.$ac_ext <<_ACEOF | |
8344 | #include <sys/types.h> | |
8345 | #include <stdio.h> | |
8346 | void myfunc(void) { | |
8347 | time_t test=0; | |
8348 | printf("%li", test); | |
8349 | } | |
8350 | _ACEOF | |
8351 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8352 | if { (ac_try="$ac_compile" |
8353 | case "(($ac_try" in | |
8354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8355 | *) ac_try_echo=$ac_try;; | |
8356 | esac | |
8357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8358 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 8359 | ac_status=$? |
8360 | grep -v '^ *+' conftest.er1 >conftest.err | |
8361 | rm -f conftest.er1 | |
8362 | cat conftest.err >&5 | |
8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8364 | (exit $ac_status); } && | |
a8b2ad8d | 8365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8366 | { (case "(($ac_try" in | |
8367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8368 | *) ac_try_echo=$ac_try;; | |
8369 | esac | |
8370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8371 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8372 | ac_status=$? |
8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8374 | (exit $ac_status); }; } && | |
8375 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 8376 | { (case "(($ac_try" in |
8377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8378 | *) ac_try_echo=$ac_try;; | |
8379 | esac | |
8380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8381 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8382 | ac_status=$? |
8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8384 | (exit $ac_status); }; }; then | |
8385 | ac_cv_fmt_time_t="\"%li\"" | |
8386 | else | |
8387 | echo "$as_me: failed program was:" >&5 | |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8389 | ||
a8b2ad8d | 8390 | |
b3076f16 | 8391 | fi |
a8b2ad8d | 8392 | |
8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 8394 | if test $ac_cv_fmt_time_t = no; then |
8395 | cat >conftest.$ac_ext <<_ACEOF | |
8396 | #include <sys/types.h> | |
8397 | #include <stdio.h> | |
8398 | void myfunc(void) { | |
8399 | time_t test=0; | |
8400 | printf("%i", test); | |
8401 | } | |
8402 | _ACEOF | |
8403 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8404 | if { (ac_try="$ac_compile" |
8405 | case "(($ac_try" in | |
8406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8407 | *) ac_try_echo=$ac_try;; | |
8408 | esac | |
8409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8410 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 8411 | ac_status=$? |
8412 | grep -v '^ *+' conftest.er1 >conftest.err | |
8413 | rm -f conftest.er1 | |
8414 | cat conftest.err >&5 | |
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8416 | (exit $ac_status); } && | |
a8b2ad8d | 8417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8418 | { (case "(($ac_try" in | |
8419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8420 | *) ac_try_echo=$ac_try;; | |
8421 | esac | |
8422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8423 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8424 | ac_status=$? |
8425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8426 | (exit $ac_status); }; } && | |
8427 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 8428 | { (case "(($ac_try" in |
8429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8430 | *) ac_try_echo=$ac_try;; | |
8431 | esac | |
8432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8433 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8434 | ac_status=$? |
8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8436 | (exit $ac_status); }; }; then | |
8437 | ac_cv_fmt_time_t="\"%i\"" | |
8438 | else | |
8439 | echo "$as_me: failed program was:" >&5 | |
8440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8441 | ||
a8b2ad8d | 8442 | |
b3076f16 | 8443 | fi |
a8b2ad8d | 8444 | |
8445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b3076f16 | 8446 | fi |
8447 | if test $ac_cv_fmt_time_t = no; then | |
8448 | { { echo "$as_me:$LINENO: error: Cannot detect format string for time_t | |
8449 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&5 | |
8450 | echo "$as_me: error: Cannot detect format string for time_t | |
8451 | Please check sys/types.h for the typedef of time_t and submit to a developer" >&2;} | |
8452 | { (exit 1); exit 1; }; } | |
8453 | fi | |
8454 | ||
8455 | fi | |
8456 | ||
8457 | ||
8458 | cat >>confdefs.h <<_ACEOF | |
8459 | #define FMT_TIME_T $ac_cv_fmt_time_t | |
8460 | _ACEOF | |
8461 | ||
a8b2ad8d | 8462 | { echo "$as_me:$LINENO: result: $ac_cv_fmt_time_t" >&5 |
8463 | echo "${ECHO_T}$ac_cv_fmt_time_t" >&6; } | |
b3076f16 | 8464 | |
a8b2ad8d | 8465 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
8466 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } | |
b3076f16 | 8467 | if test "${ac_cv_c_va_copy+set}" = set; then |
8468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8469 | else | |
8470 | cat >conftest.$ac_ext <<_ACEOF | |
8471 | /* confdefs.h. */ | |
8472 | _ACEOF | |
8473 | cat confdefs.h >>conftest.$ac_ext | |
8474 | cat >>conftest.$ac_ext <<_ACEOF | |
8475 | /* end confdefs.h. */ | |
8476 | #include <stdarg.h> | |
8477 | int | |
8478 | main () | |
8479 | { | |
8480 | va_list ap1, ap2; va_copy(ap1, ap2); | |
8481 | ; | |
8482 | return 0; | |
8483 | } | |
8484 | _ACEOF | |
8485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8486 | if { (ac_try="$ac_link" |
8487 | case "(($ac_try" in | |
8488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8489 | *) ac_try_echo=$ac_try;; | |
8490 | esac | |
8491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8492 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8493 | ac_status=$? |
8494 | grep -v '^ *+' conftest.er1 >conftest.err | |
8495 | rm -f conftest.er1 | |
8496 | cat conftest.err >&5 | |
8497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8498 | (exit $ac_status); } && | |
a8b2ad8d | 8499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8500 | { (case "(($ac_try" in | |
8501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8502 | *) ac_try_echo=$ac_try;; | |
8503 | esac | |
8504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8505 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8506 | ac_status=$? |
8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8508 | (exit $ac_status); }; } && | |
8509 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 8510 | { (case "(($ac_try" in |
8511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8512 | *) ac_try_echo=$ac_try;; | |
8513 | esac | |
8514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8515 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8516 | ac_status=$? |
8517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8518 | (exit $ac_status); }; }; then | |
8519 | ac_cv_c_va_copy="yes" | |
8520 | else | |
8521 | echo "$as_me: failed program was:" >&5 | |
8522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8523 | ||
a8b2ad8d | 8524 | ac_cv_c_va_copy="no" |
b3076f16 | 8525 | |
8526 | fi | |
a8b2ad8d | 8527 | |
8528 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 8529 | conftest$ac_exeext conftest.$ac_ext |
8530 | fi | |
a8b2ad8d | 8531 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
8532 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } | |
b3076f16 | 8533 | if test "$ac_cv_c_va_copy" = "yes" ; then |
8534 | ||
8535 | cat >>confdefs.h <<\_ACEOF | |
8536 | #define HAVE_VA_COPY 1 | |
8537 | _ACEOF | |
8538 | ||
8539 | fi | |
8540 | ||
a8b2ad8d | 8541 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
8542 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } | |
b3076f16 | 8543 | if test "${ac_cv_c___va_copy+set}" = set; then |
8544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8545 | else | |
8546 | cat >conftest.$ac_ext <<_ACEOF | |
8547 | /* confdefs.h. */ | |
8548 | _ACEOF | |
8549 | cat confdefs.h >>conftest.$ac_ext | |
8550 | cat >>conftest.$ac_ext <<_ACEOF | |
8551 | /* end confdefs.h. */ | |
8552 | #include <stdarg.h> | |
8553 | int | |
8554 | main () | |
8555 | { | |
8556 | va_list ap1, ap2; __va_copy(ap1, ap2); | |
8557 | ; | |
8558 | return 0; | |
8559 | } | |
8560 | _ACEOF | |
8561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8562 | if { (ac_try="$ac_link" |
8563 | case "(($ac_try" in | |
8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8565 | *) ac_try_echo=$ac_try;; | |
8566 | esac | |
8567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8568 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8569 | ac_status=$? |
8570 | grep -v '^ *+' conftest.er1 >conftest.err | |
8571 | rm -f conftest.er1 | |
8572 | cat conftest.err >&5 | |
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8574 | (exit $ac_status); } && | |
a8b2ad8d | 8575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8576 | { (case "(($ac_try" in | |
8577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8578 | *) ac_try_echo=$ac_try;; | |
8579 | esac | |
8580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8581 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8582 | ac_status=$? |
8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8584 | (exit $ac_status); }; } && | |
8585 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 8586 | { (case "(($ac_try" in |
8587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8588 | *) ac_try_echo=$ac_try;; | |
8589 | esac | |
8590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8591 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8592 | ac_status=$? |
8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8594 | (exit $ac_status); }; }; then | |
8595 | ac_cv_c___va_copy="yes" | |
8596 | else | |
8597 | echo "$as_me: failed program was:" >&5 | |
8598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8599 | ||
a8b2ad8d | 8600 | ac_cv_c___va_copy="no" |
b3076f16 | 8601 | |
8602 | fi | |
a8b2ad8d | 8603 | |
8604 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 8605 | conftest$ac_exeext conftest.$ac_ext |
8606 | fi | |
a8b2ad8d | 8607 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
8608 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } | |
b3076f16 | 8609 | if test "$ac_cv_c___va_copy" = "yes" ; then |
8610 | ||
8611 | cat >>confdefs.h <<\_ACEOF | |
8612 | #define HAVE___VA_COPY 1 | |
8613 | _ACEOF | |
8614 | ||
8615 | fi | |
8616 | ||
8617 | CFLAGS=$OLD_CFLAGS | |
8618 | ||
a8b2ad8d | 8619 | { echo "$as_me:$LINENO: checking which malloc to use" >&5 |
8620 | echo $ECHO_N "checking which malloc to use... $ECHO_C" >&6; } | |
b3076f16 | 8621 | |
a8b2ad8d | 8622 | # Check whether --with-malloc was given. |
b3076f16 | 8623 | if test "${with_malloc+set}" = set; then |
a8b2ad8d | 8624 | withval=$with_malloc; |
b3076f16 | 8625 | else |
8626 | withval="system" | |
a8b2ad8d | 8627 | fi |
8628 | ||
b3076f16 | 8629 | if test "x$withval" = "xsystem" ; then |
a8b2ad8d | 8630 | { echo "$as_me:$LINENO: result: system" >&5 |
8631 | echo "${ECHO_T}system" >&6; } | |
b3076f16 | 8632 | |
8633 | cat >>confdefs.h <<\_ACEOF | |
8634 | #define WITH_MALLOC_SYSTEM 1 | |
8635 | _ACEOF | |
8636 | ||
5b1166fd | 8637 | x3_malloc="System" |
b3076f16 | 8638 | elif test "x$withval" = "xdmalloc" ; then |
a8b2ad8d | 8639 | { echo "$as_me:$LINENO: result: dmalloc" >&5 |
8640 | echo "${ECHO_T}dmalloc" >&6; } | |
b3076f16 | 8641 | |
8642 | for ac_header in dmalloc.h | |
8643 | do | |
8644 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 8645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8646 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8650 | fi | |
a8b2ad8d | 8651 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8652 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8653 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8654 | else |
8655 | # Is the header compilable? | |
a8b2ad8d | 8656 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8657 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 8658 | cat >conftest.$ac_ext <<_ACEOF |
8659 | /* confdefs.h. */ | |
8660 | _ACEOF | |
8661 | cat confdefs.h >>conftest.$ac_ext | |
8662 | cat >>conftest.$ac_ext <<_ACEOF | |
8663 | /* end confdefs.h. */ | |
8664 | $ac_includes_default | |
8665 | #include <$ac_header> | |
8666 | _ACEOF | |
8667 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8668 | if { (ac_try="$ac_compile" |
8669 | case "(($ac_try" in | |
8670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8671 | *) ac_try_echo=$ac_try;; | |
8672 | esac | |
8673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8674 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 8675 | ac_status=$? |
8676 | grep -v '^ *+' conftest.er1 >conftest.err | |
8677 | rm -f conftest.er1 | |
8678 | cat conftest.err >&5 | |
8679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8680 | (exit $ac_status); } && | |
a8b2ad8d | 8681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8682 | { (case "(($ac_try" in | |
8683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8684 | *) ac_try_echo=$ac_try;; | |
8685 | esac | |
8686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8687 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8688 | ac_status=$? |
8689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8690 | (exit $ac_status); }; } && | |
8691 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 8692 | { (case "(($ac_try" in |
8693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8694 | *) ac_try_echo=$ac_try;; | |
8695 | esac | |
8696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8697 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8698 | ac_status=$? |
8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8700 | (exit $ac_status); }; }; then | |
8701 | ac_header_compiler=yes | |
8702 | else | |
8703 | echo "$as_me: failed program was:" >&5 | |
8704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8705 | ||
a8b2ad8d | 8706 | ac_header_compiler=no |
b3076f16 | 8707 | fi |
a8b2ad8d | 8708 | |
8709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8710 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8711 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 8712 | |
8713 | # Is the header present? | |
a8b2ad8d | 8714 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8715 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 8716 | cat >conftest.$ac_ext <<_ACEOF |
8717 | /* confdefs.h. */ | |
8718 | _ACEOF | |
8719 | cat confdefs.h >>conftest.$ac_ext | |
8720 | cat >>conftest.$ac_ext <<_ACEOF | |
8721 | /* end confdefs.h. */ | |
8722 | #include <$ac_header> | |
8723 | _ACEOF | |
a8b2ad8d | 8724 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8725 | case "(($ac_try" in | |
8726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8727 | *) ac_try_echo=$ac_try;; | |
8728 | esac | |
8729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8730 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 8731 | ac_status=$? |
8732 | grep -v '^ *+' conftest.er1 >conftest.err | |
8733 | rm -f conftest.er1 | |
8734 | cat conftest.err >&5 | |
8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8736 | (exit $ac_status); } >/dev/null; then | |
8737 | if test -s conftest.err; then | |
8738 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8739 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8740 | else | |
8741 | ac_cpp_err= | |
8742 | fi | |
8743 | else | |
8744 | ac_cpp_err=yes | |
8745 | fi | |
8746 | if test -z "$ac_cpp_err"; then | |
8747 | ac_header_preproc=yes | |
8748 | else | |
8749 | echo "$as_me: failed program was:" >&5 | |
8750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8751 | ||
8752 | ac_header_preproc=no | |
8753 | fi | |
a8b2ad8d | 8754 | |
b3076f16 | 8755 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 8756 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8757 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 8758 | |
8759 | # So? What about this header? | |
8760 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8761 | yes:no: ) | |
8762 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8763 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8765 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8766 | ac_header_preproc=yes | |
8767 | ;; | |
8768 | no:yes:* ) | |
8769 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8770 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8771 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8772 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8773 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8774 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8775 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8776 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8777 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8778 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8779 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8780 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 8781 | ( cat <<\_ASBOX |
63c95a47 | 8782 | ## -------------------------------------------------- ## |
8783 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
8784 | ## -------------------------------------------------- ## | |
b3076f16 | 8785 | _ASBOX |
a8b2ad8d | 8786 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 8787 | ;; |
8788 | esac | |
a8b2ad8d | 8789 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8793 | else | |
8794 | eval "$as_ac_Header=\$ac_header_preproc" | |
8795 | fi | |
a8b2ad8d | 8796 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8798 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8799 | |
8800 | fi | |
8801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8802 | cat >>confdefs.h <<_ACEOF | |
8803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8804 | _ACEOF | |
8805 | ||
8806 | else | |
8807 | { { echo "$as_me:$LINENO: error: dmalloc header file missing. dmalloc build will fail." >&5 | |
8808 | echo "$as_me: error: dmalloc header file missing. dmalloc build will fail." >&2;} | |
8809 | { (exit 1); exit 1; }; } | |
8810 | fi | |
8811 | ||
8812 | done | |
8813 | ||
8814 | ||
a8b2ad8d | 8815 | { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5 |
8816 | echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; } | |
b3076f16 | 8817 | if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then |
8818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8819 | else | |
8820 | ac_check_lib_save_LIBS=$LIBS | |
8821 | LIBS="-ldmalloc $LIBS" | |
8822 | cat >conftest.$ac_ext <<_ACEOF | |
8823 | /* confdefs.h. */ | |
8824 | _ACEOF | |
8825 | cat confdefs.h >>conftest.$ac_ext | |
8826 | cat >>conftest.$ac_ext <<_ACEOF | |
8827 | /* end confdefs.h. */ | |
8828 | ||
a8b2ad8d | 8829 | /* Override any GCC internal prototype to avoid an error. |
8830 | Use char because int might match the return type of a GCC | |
8831 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 8832 | #ifdef __cplusplus |
8833 | extern "C" | |
8834 | #endif | |
b3076f16 | 8835 | char malloc (); |
8836 | int | |
8837 | main () | |
8838 | { | |
a8b2ad8d | 8839 | return malloc (); |
b3076f16 | 8840 | ; |
8841 | return 0; | |
8842 | } | |
8843 | _ACEOF | |
8844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 8845 | if { (ac_try="$ac_link" |
8846 | case "(($ac_try" in | |
8847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8848 | *) ac_try_echo=$ac_try;; | |
8849 | esac | |
8850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8851 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 8852 | ac_status=$? |
8853 | grep -v '^ *+' conftest.er1 >conftest.err | |
8854 | rm -f conftest.er1 | |
8855 | cat conftest.err >&5 | |
8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8857 | (exit $ac_status); } && | |
a8b2ad8d | 8858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8859 | { (case "(($ac_try" in | |
8860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8861 | *) ac_try_echo=$ac_try;; | |
8862 | esac | |
8863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8864 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8865 | ac_status=$? |
8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8867 | (exit $ac_status); }; } && | |
8868 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 8869 | { (case "(($ac_try" in |
8870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8871 | *) ac_try_echo=$ac_try;; | |
8872 | esac | |
8873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8874 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8875 | ac_status=$? |
8876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8877 | (exit $ac_status); }; }; then | |
8878 | ac_cv_lib_dmalloc_malloc=yes | |
8879 | else | |
8880 | echo "$as_me: failed program was:" >&5 | |
8881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8882 | ||
a8b2ad8d | 8883 | ac_cv_lib_dmalloc_malloc=no |
b3076f16 | 8884 | fi |
a8b2ad8d | 8885 | |
8886 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 8887 | conftest$ac_exeext conftest.$ac_ext |
8888 | LIBS=$ac_check_lib_save_LIBS | |
8889 | fi | |
a8b2ad8d | 8890 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5 |
8891 | echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; } | |
b3076f16 | 8892 | if test $ac_cv_lib_dmalloc_malloc = yes; then |
8893 | cat >>confdefs.h <<_ACEOF | |
8894 | #define HAVE_LIBDMALLOC 1 | |
8895 | _ACEOF | |
8896 | ||
8897 | LIBS="-ldmalloc $LIBS" | |
8898 | ||
8899 | else | |
8900 | { { echo "$as_me:$LINENO: error: dmalloc library is missing. dmalloc build will fail." >&5 | |
8901 | echo "$as_me: error: dmalloc library is missing. dmalloc build will fail." >&2;} | |
8902 | { (exit 1); exit 1; }; } | |
8903 | fi | |
8904 | ||
8905 | ||
8906 | cat >>confdefs.h <<\_ACEOF | |
8907 | #define WITH_MALLOC_DMALLOC 1 | |
8908 | _ACEOF | |
8909 | ||
5b1166fd | 8910 | x3_malloc="DMalloc" |
b3076f16 | 8911 | elif test "x$withval" = "xmpatrol" ; then |
a8b2ad8d | 8912 | { echo "$as_me:$LINENO: result: mpatrol" >&5 |
8913 | echo "${ECHO_T}mpatrol" >&6; } | |
b3076f16 | 8914 | |
8915 | for ac_header in mpatrol.h | |
8916 | do | |
8917 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 8918 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8919 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 8922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8923 | fi | |
a8b2ad8d | 8924 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8925 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8926 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 8927 | else |
8928 | # Is the header compilable? | |
a8b2ad8d | 8929 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8930 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 8931 | cat >conftest.$ac_ext <<_ACEOF |
8932 | /* confdefs.h. */ | |
8933 | _ACEOF | |
8934 | cat confdefs.h >>conftest.$ac_ext | |
8935 | cat >>conftest.$ac_ext <<_ACEOF | |
8936 | /* end confdefs.h. */ | |
8937 | $ac_includes_default | |
8938 | #include <$ac_header> | |
8939 | _ACEOF | |
8940 | rm -f conftest.$ac_objext | |
a8b2ad8d | 8941 | if { (ac_try="$ac_compile" |
8942 | case "(($ac_try" in | |
8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8944 | *) ac_try_echo=$ac_try;; | |
8945 | esac | |
8946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8947 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 8948 | ac_status=$? |
8949 | grep -v '^ *+' conftest.er1 >conftest.err | |
8950 | rm -f conftest.er1 | |
8951 | cat conftest.err >&5 | |
8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8953 | (exit $ac_status); } && | |
a8b2ad8d | 8954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8955 | { (case "(($ac_try" in | |
8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8957 | *) ac_try_echo=$ac_try;; | |
8958 | esac | |
8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8960 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8961 | ac_status=$? |
8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8963 | (exit $ac_status); }; } && | |
8964 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 8965 | { (case "(($ac_try" in |
8966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8967 | *) ac_try_echo=$ac_try;; | |
8968 | esac | |
8969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8970 | (eval "$ac_try") 2>&5 | |
b3076f16 | 8971 | ac_status=$? |
8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8973 | (exit $ac_status); }; }; then | |
8974 | ac_header_compiler=yes | |
8975 | else | |
8976 | echo "$as_me: failed program was:" >&5 | |
8977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8978 | ||
a8b2ad8d | 8979 | ac_header_compiler=no |
b3076f16 | 8980 | fi |
a8b2ad8d | 8981 | |
8982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8983 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8984 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 8985 | |
8986 | # Is the header present? | |
a8b2ad8d | 8987 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8988 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 8989 | cat >conftest.$ac_ext <<_ACEOF |
8990 | /* confdefs.h. */ | |
8991 | _ACEOF | |
8992 | cat confdefs.h >>conftest.$ac_ext | |
8993 | cat >>conftest.$ac_ext <<_ACEOF | |
8994 | /* end confdefs.h. */ | |
8995 | #include <$ac_header> | |
8996 | _ACEOF | |
a8b2ad8d | 8997 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8998 | case "(($ac_try" in | |
8999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9000 | *) ac_try_echo=$ac_try;; | |
9001 | esac | |
9002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 9004 | ac_status=$? |
9005 | grep -v '^ *+' conftest.er1 >conftest.err | |
9006 | rm -f conftest.er1 | |
9007 | cat conftest.err >&5 | |
9008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9009 | (exit $ac_status); } >/dev/null; then | |
9010 | if test -s conftest.err; then | |
9011 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9012 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9013 | else | |
9014 | ac_cpp_err= | |
9015 | fi | |
9016 | else | |
9017 | ac_cpp_err=yes | |
9018 | fi | |
9019 | if test -z "$ac_cpp_err"; then | |
9020 | ac_header_preproc=yes | |
9021 | else | |
9022 | echo "$as_me: failed program was:" >&5 | |
9023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9024 | ||
9025 | ac_header_preproc=no | |
9026 | fi | |
a8b2ad8d | 9027 | |
b3076f16 | 9028 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 9029 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9030 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 9031 | |
9032 | # So? What about this header? | |
9033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9034 | yes:no: ) | |
9035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9038 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9039 | ac_header_preproc=yes | |
9040 | ;; | |
9041 | no:yes:* ) | |
9042 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9043 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9044 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9045 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9046 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9047 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9048 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9049 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9052 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9053 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 9054 | ( cat <<\_ASBOX |
63c95a47 | 9055 | ## -------------------------------------------------- ## |
9056 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9057 | ## -------------------------------------------------- ## | |
b3076f16 | 9058 | _ASBOX |
a8b2ad8d | 9059 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 9060 | ;; |
9061 | esac | |
a8b2ad8d | 9062 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 9065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9066 | else | |
9067 | eval "$as_ac_Header=\$ac_header_preproc" | |
9068 | fi | |
a8b2ad8d | 9069 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9071 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 9072 | |
9073 | fi | |
9074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9075 | cat >>confdefs.h <<_ACEOF | |
9076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9077 | _ACEOF | |
9078 | ||
9079 | else | |
9080 | { { echo "$as_me:$LINENO: error: mpatrol header file missing. mpatrol build will fail." >&5 | |
9081 | echo "$as_me: error: mpatrol header file missing. mpatrol build will fail." >&2;} | |
9082 | { (exit 1); exit 1; }; } | |
9083 | fi | |
9084 | ||
9085 | done | |
9086 | ||
9087 | ||
a8b2ad8d | 9088 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
9089 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } | |
b3076f16 | 9090 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9092 | else | |
9093 | ac_check_lib_save_LIBS=$LIBS | |
9094 | LIBS="-lelf $LIBS" | |
9095 | cat >conftest.$ac_ext <<_ACEOF | |
9096 | /* confdefs.h. */ | |
9097 | _ACEOF | |
9098 | cat confdefs.h >>conftest.$ac_ext | |
9099 | cat >>conftest.$ac_ext <<_ACEOF | |
9100 | /* end confdefs.h. */ | |
9101 | ||
a8b2ad8d | 9102 | /* Override any GCC internal prototype to avoid an error. |
9103 | Use char because int might match the return type of a GCC | |
9104 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 9105 | #ifdef __cplusplus |
9106 | extern "C" | |
9107 | #endif | |
b3076f16 | 9108 | char elf_begin (); |
9109 | int | |
9110 | main () | |
9111 | { | |
a8b2ad8d | 9112 | return elf_begin (); |
b3076f16 | 9113 | ; |
9114 | return 0; | |
9115 | } | |
9116 | _ACEOF | |
9117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 9118 | if { (ac_try="$ac_link" |
9119 | case "(($ac_try" in | |
9120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9121 | *) ac_try_echo=$ac_try;; | |
9122 | esac | |
9123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9124 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 9125 | ac_status=$? |
9126 | grep -v '^ *+' conftest.er1 >conftest.err | |
9127 | rm -f conftest.er1 | |
9128 | cat conftest.err >&5 | |
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9130 | (exit $ac_status); } && | |
a8b2ad8d | 9131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9132 | { (case "(($ac_try" in | |
9133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9134 | *) ac_try_echo=$ac_try;; | |
9135 | esac | |
9136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9137 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9138 | ac_status=$? |
9139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9140 | (exit $ac_status); }; } && | |
9141 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 9142 | { (case "(($ac_try" in |
9143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9144 | *) ac_try_echo=$ac_try;; | |
9145 | esac | |
9146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9147 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9148 | ac_status=$? |
9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9150 | (exit $ac_status); }; }; then | |
9151 | ac_cv_lib_elf_elf_begin=yes | |
9152 | else | |
9153 | echo "$as_me: failed program was:" >&5 | |
9154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9155 | ||
a8b2ad8d | 9156 | ac_cv_lib_elf_elf_begin=no |
b3076f16 | 9157 | fi |
a8b2ad8d | 9158 | |
9159 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 9160 | conftest$ac_exeext conftest.$ac_ext |
9161 | LIBS=$ac_check_lib_save_LIBS | |
9162 | fi | |
a8b2ad8d | 9163 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
9164 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } | |
b3076f16 | 9165 | if test $ac_cv_lib_elf_elf_begin = yes; then |
9166 | cat >>confdefs.h <<_ACEOF | |
9167 | #define HAVE_LIBELF 1 | |
9168 | _ACEOF | |
9169 | ||
9170 | LIBS="-lelf $LIBS" | |
9171 | ||
9172 | fi | |
9173 | ||
9174 | ||
a8b2ad8d | 9175 | { echo "$as_me:$LINENO: checking for __mp_atexit in -lmpatrol" >&5 |
9176 | echo $ECHO_N "checking for __mp_atexit in -lmpatrol... $ECHO_C" >&6; } | |
b3076f16 | 9177 | if test "${ac_cv_lib_mpatrol___mp_atexit+set}" = set; then |
9178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9179 | else | |
9180 | ac_check_lib_save_LIBS=$LIBS | |
9181 | LIBS="-lmpatrol $LIBS" | |
9182 | cat >conftest.$ac_ext <<_ACEOF | |
9183 | /* confdefs.h. */ | |
9184 | _ACEOF | |
9185 | cat confdefs.h >>conftest.$ac_ext | |
9186 | cat >>conftest.$ac_ext <<_ACEOF | |
9187 | /* end confdefs.h. */ | |
9188 | ||
a8b2ad8d | 9189 | /* Override any GCC internal prototype to avoid an error. |
9190 | Use char because int might match the return type of a GCC | |
9191 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 9192 | #ifdef __cplusplus |
9193 | extern "C" | |
9194 | #endif | |
b3076f16 | 9195 | char __mp_atexit (); |
9196 | int | |
9197 | main () | |
9198 | { | |
a8b2ad8d | 9199 | return __mp_atexit (); |
b3076f16 | 9200 | ; |
9201 | return 0; | |
9202 | } | |
9203 | _ACEOF | |
9204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 9205 | if { (ac_try="$ac_link" |
9206 | case "(($ac_try" in | |
9207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9208 | *) ac_try_echo=$ac_try;; | |
9209 | esac | |
9210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9211 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 9212 | ac_status=$? |
9213 | grep -v '^ *+' conftest.er1 >conftest.err | |
9214 | rm -f conftest.er1 | |
9215 | cat conftest.err >&5 | |
9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9217 | (exit $ac_status); } && | |
a8b2ad8d | 9218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9219 | { (case "(($ac_try" in | |
9220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9221 | *) ac_try_echo=$ac_try;; | |
9222 | esac | |
9223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9224 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9225 | ac_status=$? |
9226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9227 | (exit $ac_status); }; } && | |
9228 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 9229 | { (case "(($ac_try" in |
9230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9231 | *) ac_try_echo=$ac_try;; | |
9232 | esac | |
9233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9234 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9235 | ac_status=$? |
9236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9237 | (exit $ac_status); }; }; then | |
9238 | ac_cv_lib_mpatrol___mp_atexit=yes | |
9239 | else | |
9240 | echo "$as_me: failed program was:" >&5 | |
9241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9242 | ||
a8b2ad8d | 9243 | ac_cv_lib_mpatrol___mp_atexit=no |
b3076f16 | 9244 | fi |
a8b2ad8d | 9245 | |
9246 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 9247 | conftest$ac_exeext conftest.$ac_ext |
9248 | LIBS=$ac_check_lib_save_LIBS | |
9249 | fi | |
a8b2ad8d | 9250 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mpatrol___mp_atexit" >&5 |
9251 | echo "${ECHO_T}$ac_cv_lib_mpatrol___mp_atexit" >&6; } | |
b3076f16 | 9252 | if test $ac_cv_lib_mpatrol___mp_atexit = yes; then |
9253 | cat >>confdefs.h <<_ACEOF | |
9254 | #define HAVE_LIBMPATROL 1 | |
9255 | _ACEOF | |
9256 | ||
9257 | LIBS="-lmpatrol $LIBS" | |
9258 | ||
9259 | else | |
9260 | { { echo "$as_me:$LINENO: error: mpatrol library is missing completely. mpatrol build will fail." >&5 | |
9261 | echo "$as_me: error: mpatrol library is missing completely. mpatrol build will fail." >&2;} | |
9262 | { (exit 1); exit 1; }; } | |
9263 | fi | |
9264 | ||
9265 | ||
9266 | cat >>confdefs.h <<\_ACEOF | |
9267 | #define WITH_MALLOC_MPATROL 1 | |
9268 | _ACEOF | |
9269 | ||
5b1166fd | 9270 | x3_malloc="MPatrol" |
b3076f16 | 9271 | elif test "x$withval" = "xboehm-gc" ; then |
a8b2ad8d | 9272 | { echo "$as_me:$LINENO: result: boehm-gc" >&5 |
9273 | echo "${ECHO_T}boehm-gc" >&6; } | |
b3076f16 | 9274 | |
9275 | for ac_header in gc/gc.h | |
9276 | do | |
9277 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
a8b2ad8d | 9278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9279 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 9282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9283 | fi | |
a8b2ad8d | 9284 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9285 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9286 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 9287 | else |
9288 | # Is the header compilable? | |
a8b2ad8d | 9289 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9290 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b3076f16 | 9291 | cat >conftest.$ac_ext <<_ACEOF |
9292 | /* confdefs.h. */ | |
9293 | _ACEOF | |
9294 | cat confdefs.h >>conftest.$ac_ext | |
9295 | cat >>conftest.$ac_ext <<_ACEOF | |
9296 | /* end confdefs.h. */ | |
9297 | $ac_includes_default | |
9298 | #include <$ac_header> | |
9299 | _ACEOF | |
9300 | rm -f conftest.$ac_objext | |
a8b2ad8d | 9301 | if { (ac_try="$ac_compile" |
9302 | case "(($ac_try" in | |
9303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9304 | *) ac_try_echo=$ac_try;; | |
9305 | esac | |
9306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9307 | (eval "$ac_compile") 2>conftest.er1 | |
b3076f16 | 9308 | ac_status=$? |
9309 | grep -v '^ *+' conftest.er1 >conftest.err | |
9310 | rm -f conftest.er1 | |
9311 | cat conftest.err >&5 | |
9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9313 | (exit $ac_status); } && | |
a8b2ad8d | 9314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9315 | { (case "(($ac_try" in | |
9316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9317 | *) ac_try_echo=$ac_try;; | |
9318 | esac | |
9319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9320 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9321 | ac_status=$? |
9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9323 | (exit $ac_status); }; } && | |
9324 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 9325 | { (case "(($ac_try" in |
9326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9327 | *) ac_try_echo=$ac_try;; | |
9328 | esac | |
9329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9330 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9331 | ac_status=$? |
9332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9333 | (exit $ac_status); }; }; then | |
9334 | ac_header_compiler=yes | |
9335 | else | |
9336 | echo "$as_me: failed program was:" >&5 | |
9337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9338 | ||
a8b2ad8d | 9339 | ac_header_compiler=no |
b3076f16 | 9340 | fi |
a8b2ad8d | 9341 | |
9342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9343 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9344 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 9345 | |
9346 | # Is the header present? | |
a8b2ad8d | 9347 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b3076f16 | 9349 | cat >conftest.$ac_ext <<_ACEOF |
9350 | /* confdefs.h. */ | |
9351 | _ACEOF | |
9352 | cat confdefs.h >>conftest.$ac_ext | |
9353 | cat >>conftest.$ac_ext <<_ACEOF | |
9354 | /* end confdefs.h. */ | |
9355 | #include <$ac_header> | |
9356 | _ACEOF | |
a8b2ad8d | 9357 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9358 | case "(($ac_try" in | |
9359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9360 | *) ac_try_echo=$ac_try;; | |
9361 | esac | |
9362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9363 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b3076f16 | 9364 | ac_status=$? |
9365 | grep -v '^ *+' conftest.er1 >conftest.err | |
9366 | rm -f conftest.er1 | |
9367 | cat conftest.err >&5 | |
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9369 | (exit $ac_status); } >/dev/null; then | |
9370 | if test -s conftest.err; then | |
9371 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9372 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9373 | else | |
9374 | ac_cpp_err= | |
9375 | fi | |
9376 | else | |
9377 | ac_cpp_err=yes | |
9378 | fi | |
9379 | if test -z "$ac_cpp_err"; then | |
9380 | ac_header_preproc=yes | |
9381 | else | |
9382 | echo "$as_me: failed program was:" >&5 | |
9383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9384 | ||
9385 | ac_header_preproc=no | |
9386 | fi | |
a8b2ad8d | 9387 | |
b3076f16 | 9388 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 9389 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9390 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 9391 | |
9392 | # So? What about this header? | |
9393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9394 | yes:no: ) | |
9395 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9396 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9398 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9399 | ac_header_preproc=yes | |
9400 | ;; | |
9401 | no:yes:* ) | |
9402 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9403 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9404 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9405 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9406 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9407 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9408 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9409 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9410 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9411 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9412 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9413 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 9414 | ( cat <<\_ASBOX |
63c95a47 | 9415 | ## -------------------------------------------------- ## |
9416 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9417 | ## -------------------------------------------------- ## | |
b3076f16 | 9418 | _ASBOX |
a8b2ad8d | 9419 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
b3076f16 | 9420 | ;; |
9421 | esac | |
a8b2ad8d | 9422 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9424 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b3076f16 | 9425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9426 | else | |
9427 | eval "$as_ac_Header=\$ac_header_preproc" | |
9428 | fi | |
a8b2ad8d | 9429 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9431 | echo "${ECHO_T}$ac_res" >&6; } | |
b3076f16 | 9432 | |
9433 | fi | |
9434 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9435 | cat >>confdefs.h <<_ACEOF | |
9436 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9437 | _ACEOF | |
9438 | ||
9439 | else | |
9440 | { { echo "$as_me:$LINENO: error: Boehm GC header file missing. boehm-gc build will fail." >&5 | |
9441 | echo "$as_me: error: Boehm GC header file missing. boehm-gc build will fail." >&2;} | |
9442 | { (exit 1); exit 1; }; } | |
9443 | fi | |
9444 | ||
9445 | done | |
9446 | ||
9447 | ||
a8b2ad8d | 9448 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9449 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
b3076f16 | 9450 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9452 | else | |
9453 | ac_check_lib_save_LIBS=$LIBS | |
9454 | LIBS="-ldl $LIBS" | |
9455 | cat >conftest.$ac_ext <<_ACEOF | |
9456 | /* confdefs.h. */ | |
9457 | _ACEOF | |
9458 | cat confdefs.h >>conftest.$ac_ext | |
9459 | cat >>conftest.$ac_ext <<_ACEOF | |
9460 | /* end confdefs.h. */ | |
9461 | ||
a8b2ad8d | 9462 | /* Override any GCC internal prototype to avoid an error. |
9463 | Use char because int might match the return type of a GCC | |
9464 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 9465 | #ifdef __cplusplus |
9466 | extern "C" | |
9467 | #endif | |
b3076f16 | 9468 | char dlopen (); |
9469 | int | |
9470 | main () | |
9471 | { | |
a8b2ad8d | 9472 | return dlopen (); |
b3076f16 | 9473 | ; |
9474 | return 0; | |
9475 | } | |
9476 | _ACEOF | |
9477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 9478 | if { (ac_try="$ac_link" |
9479 | case "(($ac_try" in | |
9480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9481 | *) ac_try_echo=$ac_try;; | |
9482 | esac | |
9483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9484 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 9485 | ac_status=$? |
9486 | grep -v '^ *+' conftest.er1 >conftest.err | |
9487 | rm -f conftest.er1 | |
9488 | cat conftest.err >&5 | |
9489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9490 | (exit $ac_status); } && | |
a8b2ad8d | 9491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9492 | { (case "(($ac_try" in | |
9493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9494 | *) ac_try_echo=$ac_try;; | |
9495 | esac | |
9496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9497 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9498 | ac_status=$? |
9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9500 | (exit $ac_status); }; } && | |
9501 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 9502 | { (case "(($ac_try" in |
9503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9504 | *) ac_try_echo=$ac_try;; | |
9505 | esac | |
9506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9507 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9508 | ac_status=$? |
9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9510 | (exit $ac_status); }; }; then | |
9511 | ac_cv_lib_dl_dlopen=yes | |
9512 | else | |
9513 | echo "$as_me: failed program was:" >&5 | |
9514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9515 | ||
a8b2ad8d | 9516 | ac_cv_lib_dl_dlopen=no |
b3076f16 | 9517 | fi |
a8b2ad8d | 9518 | |
9519 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 9520 | conftest$ac_exeext conftest.$ac_ext |
9521 | LIBS=$ac_check_lib_save_LIBS | |
9522 | fi | |
a8b2ad8d | 9523 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9524 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
b3076f16 | 9525 | if test $ac_cv_lib_dl_dlopen = yes; then |
9526 | cat >>confdefs.h <<_ACEOF | |
9527 | #define HAVE_LIBDL 1 | |
9528 | _ACEOF | |
9529 | ||
9530 | LIBS="-ldl $LIBS" | |
9531 | ||
9532 | else | |
9533 | { { echo "$as_me:$LINENO: error: libdl library is missing. boehm-gc build will fail." >&5 | |
9534 | echo "$as_me: error: libdl library is missing. boehm-gc build will fail." >&2;} | |
9535 | { (exit 1); exit 1; }; } | |
9536 | fi | |
9537 | ||
9538 | ||
a8b2ad8d | 9539 | { echo "$as_me:$LINENO: checking for GC_gcollect in -lgc" >&5 |
9540 | echo $ECHO_N "checking for GC_gcollect in -lgc... $ECHO_C" >&6; } | |
b3076f16 | 9541 | if test "${ac_cv_lib_gc_GC_gcollect+set}" = set; then |
9542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9543 | else | |
9544 | ac_check_lib_save_LIBS=$LIBS | |
9545 | LIBS="-lgc $LIBS" | |
9546 | cat >conftest.$ac_ext <<_ACEOF | |
9547 | /* confdefs.h. */ | |
9548 | _ACEOF | |
9549 | cat confdefs.h >>conftest.$ac_ext | |
9550 | cat >>conftest.$ac_ext <<_ACEOF | |
9551 | /* end confdefs.h. */ | |
9552 | ||
a8b2ad8d | 9553 | /* Override any GCC internal prototype to avoid an error. |
9554 | Use char because int might match the return type of a GCC | |
9555 | builtin and then its argument prototype would still apply. */ | |
b3076f16 | 9556 | #ifdef __cplusplus |
9557 | extern "C" | |
9558 | #endif | |
b3076f16 | 9559 | char GC_gcollect (); |
9560 | int | |
9561 | main () | |
9562 | { | |
a8b2ad8d | 9563 | return GC_gcollect (); |
b3076f16 | 9564 | ; |
9565 | return 0; | |
9566 | } | |
9567 | _ACEOF | |
9568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 9569 | if { (ac_try="$ac_link" |
9570 | case "(($ac_try" in | |
9571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9572 | *) ac_try_echo=$ac_try;; | |
9573 | esac | |
9574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9575 | (eval "$ac_link") 2>conftest.er1 | |
b3076f16 | 9576 | ac_status=$? |
9577 | grep -v '^ *+' conftest.er1 >conftest.err | |
9578 | rm -f conftest.er1 | |
9579 | cat conftest.err >&5 | |
9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9581 | (exit $ac_status); } && | |
a8b2ad8d | 9582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9583 | { (case "(($ac_try" in | |
9584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9585 | *) ac_try_echo=$ac_try;; | |
9586 | esac | |
9587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9588 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9589 | ac_status=$? |
9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9591 | (exit $ac_status); }; } && | |
9592 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 9593 | { (case "(($ac_try" in |
9594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9595 | *) ac_try_echo=$ac_try;; | |
9596 | esac | |
9597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9598 | (eval "$ac_try") 2>&5 | |
b3076f16 | 9599 | ac_status=$? |
9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9601 | (exit $ac_status); }; }; then | |
9602 | ac_cv_lib_gc_GC_gcollect=yes | |
9603 | else | |
9604 | echo "$as_me: failed program was:" >&5 | |
9605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9606 | ||
a8b2ad8d | 9607 | ac_cv_lib_gc_GC_gcollect=no |
b3076f16 | 9608 | fi |
a8b2ad8d | 9609 | |
9610 | rm -f core conftest.err conftest.$ac_objext \ | |
b3076f16 | 9611 | conftest$ac_exeext conftest.$ac_ext |
9612 | LIBS=$ac_check_lib_save_LIBS | |
9613 | fi | |
a8b2ad8d | 9614 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gc_GC_gcollect" >&5 |
9615 | echo "${ECHO_T}$ac_cv_lib_gc_GC_gcollect" >&6; } | |
b3076f16 | 9616 | if test $ac_cv_lib_gc_GC_gcollect = yes; then |
9617 | cat >>confdefs.h <<_ACEOF | |
9618 | #define HAVE_LIBGC 1 | |
9619 | _ACEOF | |
9620 | ||
9621 | LIBS="-lgc $LIBS" | |
9622 | ||
9623 | else | |
9624 | { { echo "$as_me:$LINENO: error: Boehm GC library is missing. boehm-gc build will fail." >&5 | |
9625 | echo "$as_me: error: Boehm GC library is missing. boehm-gc build will fail." >&2;} | |
9626 | { (exit 1); exit 1; }; } | |
9627 | fi | |
9628 | ||
9629 | ||
9630 | cat >>confdefs.h <<\_ACEOF | |
9631 | #define WITH_MALLOC_BOEHM_GC 1 | |
9632 | _ACEOF | |
9633 | ||
5b1166fd | 9634 | x3_malloc="Boehm" |
b8cb2a14 | 9635 | elif test "x$withval" = "xx3" ; then |
a8b2ad8d | 9636 | { echo "$as_me:$LINENO: result: x3" >&5 |
9637 | echo "${ECHO_T}x3" >&6; } | |
ec1a68c8 | 9638 | |
9639 | cat >>confdefs.h <<\_ACEOF | |
b8cb2a14 | 9640 | #define WITH_MALLOC_X3 1 |
ec1a68c8 | 9641 | _ACEOF |
9642 | ||
b8cb2a14 | 9643 | MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)" |
5b1166fd | 9644 | x3_malloc="X3" |
ceafd592 | 9645 | elif test "x$withval" = "xslab" ; then |
a8b2ad8d | 9646 | { echo "$as_me:$LINENO: result: slab" >&5 |
9647 | echo "${ECHO_T}slab" >&6; } | |
ceafd592 | 9648 | |
9649 | cat >>confdefs.h <<\_ACEOF | |
9650 | #define WITH_MALLOC_SLAB 1 | |
9651 | _ACEOF | |
9652 | ||
9653 | MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)" | |
5b1166fd | 9654 | x3_malloc="Slab" |
b3076f16 | 9655 | else |
9656 | { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5 | |
9657 | echo "$as_me: error: Unknown malloc type $withval" >&2;} | |
9658 | { (exit 1); exit 1; }; } | |
9659 | fi | |
9660 | ||
a8b2ad8d | 9661 | { echo "$as_me:$LINENO: checking which protocol to use" >&5 |
9662 | echo $ECHO_N "checking which protocol to use... $ECHO_C" >&6; } | |
b3076f16 | 9663 | |
a8b2ad8d | 9664 | # Check whether --with-protocol was given. |
b3076f16 | 9665 | if test "${with_protocol+set}" = set; then |
a8b2ad8d | 9666 | withval=$with_protocol; |
b3076f16 | 9667 | else |
9668 | withval="p10" | |
a8b2ad8d | 9669 | fi |
9670 | ||
b3076f16 | 9671 | if test "x$withval" = "xp10" ; then |
a8b2ad8d | 9672 | { echo "$as_me:$LINENO: result: P10" >&5 |
9673 | echo "${ECHO_T}P10" >&6; } | |
b3076f16 | 9674 | |
9675 | cat >>confdefs.h <<\_ACEOF | |
9676 | #define WITH_PROTOCOL_P10 1 | |
9677 | _ACEOF | |
9678 | ||
2f61d1d7 | 9679 | MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)" |
b3076f16 | 9680 | PROTO_FILES=proto-p10.c |
5b1166fd | 9681 | x3_ircd="P10" |
b3076f16 | 9682 | else |
9683 | { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5 | |
9684 | echo "$as_me: error: Unknown IRC dialect $withval" >&2;} | |
9685 | { (exit 1); exit 1; }; } | |
9686 | fi | |
9687 | ||
8da89711 | 9688 | |
9689 | # Check whether --with-getopt was given. | |
9690 | if test "${with_getopt+set}" = set; then | |
9691 | withval=$with_getopt; if test "$withval" = no; then | |
9692 | ||
9693 | cat >>confdefs.h <<\_ACEOF | |
9694 | #define IGNORE_GETOPT 1 | |
9695 | _ACEOF | |
9696 | ||
9697 | fi | |
9698 | fi | |
9699 | ||
9700 | ||
9701 | { echo "$as_me:$LINENO: checking whether to enable tokenization" >&5 | |
9702 | echo $ECHO_N "checking whether to enable tokenization... $ECHO_C" >&6; } | |
9703 | # Check whether --enable-tokens was given. | |
9704 | if test "${enable_tokens+set}" = set; then | |
9705 | enableval=$enable_tokens; | |
9706 | else | |
9707 | enableval=yes | |
9708 | fi | |
9709 | ||
9710 | if test "z$enableval" = zno ; then | |
9711 | { echo "$as_me:$LINENO: result: no" >&5 | |
9712 | echo "${ECHO_T}no" >&6; } | |
9713 | else | |
9714 | ||
9715 | cat >>confdefs.h <<\_ACEOF | |
9716 | #define ENABLE_TOKENS 1 | |
9717 | _ACEOF | |
9718 | ||
9719 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9720 | echo "${ECHO_T}yes" >&6; } | |
9721 | fi | |
9722 | ||
9723 | { echo "$as_me:$LINENO: checking whether to enable debug behaviors" >&5 | |
9724 | echo $ECHO_N "checking whether to enable debug behaviors... $ECHO_C" >&6; } | |
9725 | # Check whether --enable-debug was given. | |
9726 | if test "${enable_debug+set}" = set; then | |
9727 | enableval=$enable_debug; | |
9728 | CPPFLAGS="$CPPFLAGS" | |
e166c31b | 9729 | { echo "$as_me:$LINENO: result: yes" >&5 |
9730 | echo "${ECHO_T}yes" >&6; } | |
8da89711 | 9731 | x3_debug="Enabled" |
e166c31b | 9732 | |
9733 | else | |
9734 | ||
8da89711 | 9735 | CPPFLAGS="$CPPFLAGS -DNDEBUG" |
e166c31b | 9736 | { echo "$as_me:$LINENO: result: no" >&5 |
9737 | echo "${ECHO_T}no" >&6; } | |
8da89711 | 9738 | x3_debug="Disabled" |
e166c31b | 9739 | |
9740 | fi | |
9741 | ||
9742 | ||
8da89711 | 9743 | if test -e src ; then |
9744 | if test ! -d src ; then | |
9745 | { { echo "$as_me:$LINENO: error: src exists but is not a directory; please move it out of the way." >&5 | |
9746 | echo "$as_me: error: src exists but is not a directory; please move it out of the way." >&2;} | |
9747 | { (exit 1); exit 1; }; } | |
9748 | fi | |
9749 | else | |
9750 | mkdir src | |
9751 | fi | |
9752 | { echo "$as_me:$LINENO: checking for extra module files" >&5 | |
9753 | echo $ECHO_N "checking for extra module files... $ECHO_C" >&6; } | |
9754 | MODULE_DEFINES="src/modules-list.h" | |
9755 | echo > $MODULE_DEFINES | |
9756 | touch $MODULE_DEFINES | |
9757 | # Check whether --enable-modules was given. | |
9758 | if test "${enable_modules+set}" = set; then | |
9759 | enableval=$enable_modules; | |
9760 | OIFS="$IFS" | |
9761 | IFS=',' | |
9762 | EXTRA_MODULE_OBJS="" | |
9763 | module_list="" | |
9764 | for module in $enableval ; do | |
9765 | module=`echo $module | sed -e s/^mod-// -e s/\.c\$//` | |
9766 | EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)" | |
9767 | module_list="$module_list $module" | |
9768 | echo "WITH_MODULE($module)" >> $MODULE_DEFINES | |
9769 | if test "x$module" = "xtrack" ; then | |
9770 | TRACK="-D HAVE_TRACK" | |
e166c31b | 9771 | |
9772 | cat >>confdefs.h <<\_ACEOF | |
8da89711 | 9773 | #define HAVE_TRACK 1 |
e166c31b | 9774 | _ACEOF |
9775 | ||
8da89711 | 9776 | fi |
9777 | if test "x$module" = "xhelpserv" ; then | |
9778 | TRACK="-D HAVE_HELPSERV" | |
e166c31b | 9779 | |
8da89711 | 9780 | cat >>confdefs.h <<\_ACEOF |
9781 | #define HAVE_HELPSERV 1 | |
e166c31b | 9782 | _ACEOF |
e166c31b | 9783 | |
8da89711 | 9784 | fi |
9785 | done | |
9786 | IFS="$OIFS" | |
9787 | MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS" | |
9788 | { echo "$as_me:$LINENO: result: $module_list" >&5 | |
9789 | echo "${ECHO_T}$module_list" >&6; } | |
9790 | ||
e166c31b | 9791 | else |
e166c31b | 9792 | |
8da89711 | 9793 | { echo "$as_me:$LINENO: result: none" >&5 |
9794 | echo "${ECHO_T}none" >&6; } | |
e166c31b | 9795 | |
e166c31b | 9796 | fi |
e166c31b | 9797 | |
e166c31b | 9798 | |
8da89711 | 9799 | MY_SUBDIRS="" |
9800 | RX_INCLUDES="" | |
9801 | RX_LIBS="" | |
9802 | if test "${BROKEN_REGEX}" = yes -o "${ac_cv_func_regcomp}" = no; then | |
9803 | MY_SUBDIRS="rx $MY_SUBDIRS" | |
9804 | RX_INCLUDES="-I../rx" | |
9805 | RX_LIBS="../rx/librx.a" | |
9806 | fi | |
9807 | MY_SUBDIRS="$MY_SUBDIRS src" | |
9808 | CFLAGS="$CFLAGS $ANSI_SRC -W -Wall" | |
9809 | if test "z$USE_MAINTAINER_MODE" = zyes ; then | |
9810 | CFLAGS="$CFLAGS -Werror" | |
e166c31b | 9811 | fi |
9812 | ||
9813 | ||
8da89711 | 9814 | tre_version="0.7.5" |
9815 | withval='' | |
9816 | ||
9817 | # Check whether --with-tre was given. | |
9818 | if test "${with_tre+set}" = set; then | |
9819 | withval=$with_tre; | |
9820 | fi | |
9821 | ||
9822 | if test "x$withval" != "x"; then | |
9823 | { echo "$as_me:$LINENO: result: Using include dir $withval to find libtre" >&5 | |
9824 | echo "${ECHO_T}Using include dir $withval to find libtre" >&6; } | |
9825 | CPPFLAGS="-I$withval/include -L$withval/lib" | |
9826 | LIBS="$LIBS -L$withval/lib" | |
9827 | else | |
9828 | { echo "$as_me:$LINENO: result: Looking for tre in system and home dirs (${HOME})..." >&5 | |
9829 | echo "${ECHO_T}Looking for tre in system and home dirs (${HOME})..." >&6; } | |
9830 | CPPFLAGS="-I${HOME}/include -L${HOME}/lib" | |
9831 | LIBS="$LIBS -L${HOME}/lib" | |
9832 | fi | |
9833 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
9834 | { echo "$as_me:$LINENO: checking for tre/regex.h" >&5 | |
9835 | echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; } | |
9836 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
e166c31b | 9837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9838 | fi | |
8da89711 | 9839 | { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5 |
9840 | echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; } | |
e166c31b | 9841 | else |
9842 | # Is the header compilable? | |
8da89711 | 9843 | { echo "$as_me:$LINENO: checking tre/regex.h usability" >&5 |
9844 | echo $ECHO_N "checking tre/regex.h usability... $ECHO_C" >&6; } | |
e166c31b | 9845 | cat >conftest.$ac_ext <<_ACEOF |
9846 | /* confdefs.h. */ | |
9847 | _ACEOF | |
9848 | cat confdefs.h >>conftest.$ac_ext | |
9849 | cat >>conftest.$ac_ext <<_ACEOF | |
9850 | /* end confdefs.h. */ | |
9851 | $ac_includes_default | |
8da89711 | 9852 | #include <tre/regex.h> |
e166c31b | 9853 | _ACEOF |
9854 | rm -f conftest.$ac_objext | |
9855 | if { (ac_try="$ac_compile" | |
9856 | case "(($ac_try" in | |
9857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9858 | *) ac_try_echo=$ac_try;; | |
9859 | esac | |
9860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9861 | (eval "$ac_compile") 2>conftest.er1 | |
9862 | ac_status=$? | |
9863 | grep -v '^ *+' conftest.er1 >conftest.err | |
9864 | rm -f conftest.er1 | |
9865 | cat conftest.err >&5 | |
9866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9867 | (exit $ac_status); } && | |
9868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9869 | { (case "(($ac_try" in | |
9870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9871 | *) ac_try_echo=$ac_try;; | |
9872 | esac | |
9873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9874 | (eval "$ac_try") 2>&5 | |
9875 | ac_status=$? | |
9876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9877 | (exit $ac_status); }; } && | |
9878 | { ac_try='test -s conftest.$ac_objext' | |
9879 | { (case "(($ac_try" in | |
9880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9881 | *) ac_try_echo=$ac_try;; | |
9882 | esac | |
9883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9884 | (eval "$ac_try") 2>&5 | |
9885 | ac_status=$? | |
9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9887 | (exit $ac_status); }; }; then | |
9888 | ac_header_compiler=yes | |
9889 | else | |
9890 | echo "$as_me: failed program was:" >&5 | |
9891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9892 | ||
9893 | ac_header_compiler=no | |
9894 | fi | |
9895 | ||
9896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9897 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9898 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
9899 | ||
9900 | # Is the header present? | |
8da89711 | 9901 | { echo "$as_me:$LINENO: checking tre/regex.h presence" >&5 |
9902 | echo $ECHO_N "checking tre/regex.h presence... $ECHO_C" >&6; } | |
e166c31b | 9903 | cat >conftest.$ac_ext <<_ACEOF |
9904 | /* confdefs.h. */ | |
9905 | _ACEOF | |
9906 | cat confdefs.h >>conftest.$ac_ext | |
9907 | cat >>conftest.$ac_ext <<_ACEOF | |
9908 | /* end confdefs.h. */ | |
8da89711 | 9909 | #include <tre/regex.h> |
e166c31b | 9910 | _ACEOF |
9911 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9912 | case "(($ac_try" in | |
9913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9914 | *) ac_try_echo=$ac_try;; | |
9915 | esac | |
9916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9917 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9918 | ac_status=$? | |
9919 | grep -v '^ *+' conftest.er1 >conftest.err | |
9920 | rm -f conftest.er1 | |
9921 | cat conftest.err >&5 | |
9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9923 | (exit $ac_status); } >/dev/null; then | |
9924 | if test -s conftest.err; then | |
9925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9926 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9927 | else | |
9928 | ac_cpp_err= | |
9929 | fi | |
9930 | else | |
9931 | ac_cpp_err=yes | |
9932 | fi | |
9933 | if test -z "$ac_cpp_err"; then | |
9934 | ac_header_preproc=yes | |
9935 | else | |
9936 | echo "$as_me: failed program was:" >&5 | |
9937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9938 | ||
9939 | ac_header_preproc=no | |
9940 | fi | |
9941 | ||
9942 | rm -f conftest.err conftest.$ac_ext | |
9943 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9944 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9945 | ||
9946 | # So? What about this header? | |
9947 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9948 | yes:no: ) | |
8da89711 | 9949 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9950 | echo "$as_me: WARNING: tre/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9951 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the compiler's result" >&5 | |
9952 | echo "$as_me: WARNING: tre/regex.h: proceeding with the compiler's result" >&2;} | |
e166c31b | 9953 | ac_header_preproc=yes |
9954 | ;; | |
9955 | no:yes:* ) | |
8da89711 | 9956 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: present but cannot be compiled" >&5 |
9957 | echo "$as_me: WARNING: tre/regex.h: present but cannot be compiled" >&2;} | |
9958 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: check for missing prerequisite headers?" >&5 | |
9959 | echo "$as_me: WARNING: tre/regex.h: check for missing prerequisite headers?" >&2;} | |
9960 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: see the Autoconf documentation" >&5 | |
9961 | echo "$as_me: WARNING: tre/regex.h: see the Autoconf documentation" >&2;} | |
9962 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9963 | echo "$as_me: WARNING: tre/regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9964 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&5 | |
9965 | echo "$as_me: WARNING: tre/regex.h: proceeding with the preprocessor's result" >&2;} | |
9966 | { echo "$as_me:$LINENO: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&5 | |
9967 | echo "$as_me: WARNING: tre/regex.h: in the future, the compiler will take precedence" >&2;} | |
e166c31b | 9968 | ( cat <<\_ASBOX |
9969 | ## -------------------------------------------------- ## | |
9970 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
9971 | ## -------------------------------------------------- ## | |
9972 | _ASBOX | |
9973 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
9974 | ;; | |
9975 | esac | |
8da89711 | 9976 | { echo "$as_me:$LINENO: checking for tre/regex.h" >&5 |
9977 | echo $ECHO_N "checking for tre/regex.h... $ECHO_C" >&6; } | |
9978 | if test "${ac_cv_header_tre_regex_h+set}" = set; then | |
e166c31b | 9979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9980 | else | |
8da89711 | 9981 | ac_cv_header_tre_regex_h=$ac_header_preproc |
e166c31b | 9982 | fi |
8da89711 | 9983 | { echo "$as_me:$LINENO: result: $ac_cv_header_tre_regex_h" >&5 |
9984 | echo "${ECHO_T}$ac_cv_header_tre_regex_h" >&6; } | |
e166c31b | 9985 | |
9986 | fi | |
8da89711 | 9987 | if test $ac_cv_header_tre_regex_h = yes; then |
9988 | : | |
e166c31b | 9989 | else |
8da89711 | 9990 | { { echo "$as_me:$LINENO: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5 |
9991 | echo "$as_me: error: tre/regex.h, the TRE regex headers, were not found. Install tre or use --with-tre=PATH to tell me how to find it, where PATH/include/tre/regex.h exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;} | |
e166c31b | 9992 | { (exit 1); exit 1; }; } |
9993 | fi | |
9994 | ||
e166c31b | 9995 | |
b3076f16 | 9996 | |
8da89711 | 9997 | { echo "$as_me:$LINENO: checking for regexec in -ltre" >&5 |
9998 | echo $ECHO_N "checking for regexec in -ltre... $ECHO_C" >&6; } | |
9999 | if test "${ac_cv_lib_tre_regexec+set}" = set; then | |
10000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3076f16 | 10001 | else |
8da89711 | 10002 | ac_check_lib_save_LIBS=$LIBS |
10003 | LIBS="-ltre $LIBS" | |
10004 | cat >conftest.$ac_ext <<_ACEOF | |
10005 | /* confdefs.h. */ | |
b3076f16 | 10006 | _ACEOF |
8da89711 | 10007 | cat confdefs.h >>conftest.$ac_ext |
10008 | cat >>conftest.$ac_ext <<_ACEOF | |
10009 | /* end confdefs.h. */ | |
b3076f16 | 10010 | |
8da89711 | 10011 | /* Override any GCC internal prototype to avoid an error. |
10012 | Use char because int might match the return type of a GCC | |
10013 | builtin and then its argument prototype would still apply. */ | |
10014 | #ifdef __cplusplus | |
10015 | extern "C" | |
10016 | #endif | |
10017 | char regexec (); | |
10018 | int | |
10019 | main () | |
10020 | { | |
10021 | return regexec (); | |
10022 | ; | |
10023 | return 0; | |
10024 | } | |
10025 | _ACEOF | |
10026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10027 | if { (ac_try="$ac_link" | |
10028 | case "(($ac_try" in | |
10029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10030 | *) ac_try_echo=$ac_try;; | |
10031 | esac | |
10032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10033 | (eval "$ac_link") 2>conftest.er1 | |
10034 | ac_status=$? | |
10035 | grep -v '^ *+' conftest.er1 >conftest.err | |
10036 | rm -f conftest.er1 | |
10037 | cat conftest.err >&5 | |
10038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10039 | (exit $ac_status); } && | |
10040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10041 | { (case "(($ac_try" in | |
10042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10043 | *) ac_try_echo=$ac_try;; | |
10044 | esac | |
10045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10046 | (eval "$ac_try") 2>&5 | |
10047 | ac_status=$? | |
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10049 | (exit $ac_status); }; } && | |
10050 | { ac_try='test -s conftest$ac_exeext' | |
10051 | { (case "(($ac_try" in | |
10052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10053 | *) ac_try_echo=$ac_try;; | |
10054 | esac | |
10055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10056 | (eval "$ac_try") 2>&5 | |
10057 | ac_status=$? | |
10058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10059 | (exit $ac_status); }; }; then | |
10060 | ac_cv_lib_tre_regexec=yes | |
b3076f16 | 10061 | else |
8da89711 | 10062 | echo "$as_me: failed program was:" >&5 |
10063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 10064 | |
8da89711 | 10065 | ac_cv_lib_tre_regexec=no |
a8b2ad8d | 10066 | fi |
10067 | ||
8da89711 | 10068 | rm -f core conftest.err conftest.$ac_objext \ |
10069 | conftest$ac_exeext conftest.$ac_ext | |
10070 | LIBS=$ac_check_lib_save_LIBS | |
b3076f16 | 10071 | fi |
8da89711 | 10072 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tre_regexec" >&5 |
10073 | echo "${ECHO_T}$ac_cv_lib_tre_regexec" >&6; } | |
10074 | if test $ac_cv_lib_tre_regexec = yes; then | |
10075 | cat >>confdefs.h <<_ACEOF | |
10076 | #define HAVE_LIBTRE 1 | |
8de34abd | 10077 | _ACEOF |
10078 | ||
8da89711 | 10079 | LIBS="-ltre $LIBS" |
b3076f16 | 10080 | |
10081 | else | |
8da89711 | 10082 | { { echo "$as_me:$LINENO: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&5 |
10083 | echo "$as_me: error: TRE regex library not found. Install tre, or use --with-tre=PATH to tell me how to find it, where PATH/lib/libtre.so exists. For conveniance, just type 'tools/tre_install.sh' now, to install tre in your home directory." >&2;} | |
10084 | { (exit 1); exit 1; }; } | |
b3076f16 | 10085 | fi |
10086 | ||
35305a49 | 10087 | |
8da89711 | 10088 | core_version="0.2" |
35305a49 | 10089 | withval='' |
10090 | ||
8da89711 | 10091 | # Check whether --with-coredumper was given. |
10092 | if test "${with_coredumper+set}" = set; then | |
10093 | withval=$with_coredumper; | |
a8b2ad8d | 10094 | fi |
35305a49 | 10095 | |
35305a49 | 10096 | if test "x$withval" != "x"; then |
8da89711 | 10097 | { echo "$as_me:$LINENO: result: Using include dir $withval to find coredumper" >&5 |
10098 | echo "${ECHO_T}Using include dir $withval to find coredumper" >&6; } | |
35305a49 | 10099 | CPPFLAGS="-I$withval/include -L$withval/lib" |
0754f993 | 10100 | LIBS="$LIBS -L$withval/lib" |
35305a49 | 10101 | else |
8da89711 | 10102 | { echo "$as_me:$LINENO: result: Looking for coredumper in system and home dirs (${HOME})..." >&5 |
10103 | echo "${ECHO_T}Looking for coredumper in system and home dirs (${HOME})..." >&6; } | |
35305a49 | 10104 | CPPFLAGS="-I${HOME}/include -L${HOME}/lib" |
0754f993 | 10105 | LIBS="$LIBS -L${HOME}/lib" |
35305a49 | 10106 | fi |
8da89711 | 10107 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then |
10108 | { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5 | |
10109 | echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; } | |
10110 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then | |
35305a49 | 10111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10112 | fi | |
8da89711 | 10113 | { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5 |
10114 | echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; } | |
35305a49 | 10115 | else |
10116 | # Is the header compilable? | |
8da89711 | 10117 | { echo "$as_me:$LINENO: checking google/coredumper.h usability" >&5 |
10118 | echo $ECHO_N "checking google/coredumper.h usability... $ECHO_C" >&6; } | |
35305a49 | 10119 | cat >conftest.$ac_ext <<_ACEOF |
10120 | /* confdefs.h. */ | |
10121 | _ACEOF | |
10122 | cat confdefs.h >>conftest.$ac_ext | |
10123 | cat >>conftest.$ac_ext <<_ACEOF | |
10124 | /* end confdefs.h. */ | |
10125 | $ac_includes_default | |
8da89711 | 10126 | #include <google/coredumper.h> |
35305a49 | 10127 | _ACEOF |
10128 | rm -f conftest.$ac_objext | |
a8b2ad8d | 10129 | if { (ac_try="$ac_compile" |
10130 | case "(($ac_try" in | |
10131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10132 | *) ac_try_echo=$ac_try;; | |
10133 | esac | |
10134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10135 | (eval "$ac_compile") 2>conftest.er1 | |
35305a49 | 10136 | ac_status=$? |
10137 | grep -v '^ *+' conftest.er1 >conftest.err | |
10138 | rm -f conftest.er1 | |
10139 | cat conftest.err >&5 | |
10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10141 | (exit $ac_status); } && | |
a8b2ad8d | 10142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10143 | { (case "(($ac_try" in | |
10144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10145 | *) ac_try_echo=$ac_try;; | |
10146 | esac | |
10147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10148 | (eval "$ac_try") 2>&5 | |
35305a49 | 10149 | ac_status=$? |
10150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10151 | (exit $ac_status); }; } && | |
10152 | { ac_try='test -s conftest.$ac_objext' | |
a8b2ad8d | 10153 | { (case "(($ac_try" in |
10154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10155 | *) ac_try_echo=$ac_try;; | |
10156 | esac | |
10157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10158 | (eval "$ac_try") 2>&5 | |
35305a49 | 10159 | ac_status=$? |
10160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10161 | (exit $ac_status); }; }; then | |
10162 | ac_header_compiler=yes | |
10163 | else | |
10164 | echo "$as_me: failed program was:" >&5 | |
10165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10166 | ||
a8b2ad8d | 10167 | ac_header_compiler=no |
35305a49 | 10168 | fi |
a8b2ad8d | 10169 | |
10170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10171 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10172 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
35305a49 | 10173 | |
10174 | # Is the header present? | |
8da89711 | 10175 | { echo "$as_me:$LINENO: checking google/coredumper.h presence" >&5 |
10176 | echo $ECHO_N "checking google/coredumper.h presence... $ECHO_C" >&6; } | |
35305a49 | 10177 | cat >conftest.$ac_ext <<_ACEOF |
10178 | /* confdefs.h. */ | |
10179 | _ACEOF | |
10180 | cat confdefs.h >>conftest.$ac_ext | |
10181 | cat >>conftest.$ac_ext <<_ACEOF | |
10182 | /* end confdefs.h. */ | |
8da89711 | 10183 | #include <google/coredumper.h> |
35305a49 | 10184 | _ACEOF |
a8b2ad8d | 10185 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10186 | case "(($ac_try" in | |
10187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10188 | *) ac_try_echo=$ac_try;; | |
10189 | esac | |
10190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10191 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
35305a49 | 10192 | ac_status=$? |
10193 | grep -v '^ *+' conftest.er1 >conftest.err | |
10194 | rm -f conftest.er1 | |
10195 | cat conftest.err >&5 | |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10197 | (exit $ac_status); } >/dev/null; then | |
10198 | if test -s conftest.err; then | |
10199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10200 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10201 | else | |
10202 | ac_cpp_err= | |
10203 | fi | |
10204 | else | |
10205 | ac_cpp_err=yes | |
10206 | fi | |
10207 | if test -z "$ac_cpp_err"; then | |
10208 | ac_header_preproc=yes | |
10209 | else | |
10210 | echo "$as_me: failed program was:" >&5 | |
10211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10212 | ||
10213 | ac_header_preproc=no | |
10214 | fi | |
a8b2ad8d | 10215 | |
35305a49 | 10216 | rm -f conftest.err conftest.$ac_ext |
a8b2ad8d | 10217 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10218 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
35305a49 | 10219 | |
10220 | # So? What about this header? | |
10221 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10222 | yes:no: ) | |
8da89711 | 10223 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10224 | echo "$as_me: WARNING: google/coredumper.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10225 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the compiler's result" >&5 | |
10226 | echo "$as_me: WARNING: google/coredumper.h: proceeding with the compiler's result" >&2;} | |
35305a49 | 10227 | ac_header_preproc=yes |
10228 | ;; | |
10229 | no:yes:* ) | |
8da89711 | 10230 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: present but cannot be compiled" >&5 |
10231 | echo "$as_me: WARNING: google/coredumper.h: present but cannot be compiled" >&2;} | |
10232 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&5 | |
10233 | echo "$as_me: WARNING: google/coredumper.h: check for missing prerequisite headers?" >&2;} | |
10234 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: see the Autoconf documentation" >&5 | |
10235 | echo "$as_me: WARNING: google/coredumper.h: see the Autoconf documentation" >&2;} | |
10236 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&5 | |
10237 | echo "$as_me: WARNING: google/coredumper.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
10238 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&5 | |
10239 | echo "$as_me: WARNING: google/coredumper.h: proceeding with the preprocessor's result" >&2;} | |
10240 | { echo "$as_me:$LINENO: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&5 | |
10241 | echo "$as_me: WARNING: google/coredumper.h: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 10242 | ( cat <<\_ASBOX |
35305a49 | 10243 | ## -------------------------------------------------- ## |
10244 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
10245 | ## -------------------------------------------------- ## | |
10246 | _ASBOX | |
a8b2ad8d | 10247 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
35305a49 | 10248 | ;; |
10249 | esac | |
8da89711 | 10250 | { echo "$as_me:$LINENO: checking for google/coredumper.h" >&5 |
10251 | echo $ECHO_N "checking for google/coredumper.h... $ECHO_C" >&6; } | |
10252 | if test "${ac_cv_header_google_coredumper_h+set}" = set; then | |
35305a49 | 10253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10254 | else | |
8da89711 | 10255 | ac_cv_header_google_coredumper_h=$ac_header_preproc |
10256 | fi | |
10257 | { echo "$as_me:$LINENO: result: $ac_cv_header_google_coredumper_h" >&5 | |
10258 | echo "${ECHO_T}$ac_cv_header_google_coredumper_h" >&6; } | |
10259 | ||
10260 | fi | |
10261 | if test $ac_cv_header_google_coredumper_h = yes; then | |
10262 | : | |
10263 | else | |
10264 | { echo "$as_me:$LINENO: result: google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5 | |
10265 | echo "${ECHO_T}google/coredumper.h, the coredumper headers, were not found. Install coredumper or use --with-coredumper=PATH to tell me how to find it, where PATH/include/google/coredumper.h exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; } | |
10266 | fi | |
10267 | ||
10268 | ||
10269 | ||
10270 | { echo "$as_me:$LINENO: checking for WriteCoreDump in -lcoredumper" >&5 | |
10271 | echo $ECHO_N "checking for WriteCoreDump in -lcoredumper... $ECHO_C" >&6; } | |
10272 | if test "${ac_cv_lib_coredumper_WriteCoreDump+set}" = set; then | |
10273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10274 | else | |
10275 | ac_check_lib_save_LIBS=$LIBS | |
10276 | LIBS="-lcoredumper $LIBS" | |
10277 | cat >conftest.$ac_ext <<_ACEOF | |
10278 | /* confdefs.h. */ | |
10279 | _ACEOF | |
10280 | cat confdefs.h >>conftest.$ac_ext | |
10281 | cat >>conftest.$ac_ext <<_ACEOF | |
10282 | /* end confdefs.h. */ | |
10283 | ||
10284 | /* Override any GCC internal prototype to avoid an error. | |
10285 | Use char because int might match the return type of a GCC | |
10286 | builtin and then its argument prototype would still apply. */ | |
10287 | #ifdef __cplusplus | |
10288 | extern "C" | |
10289 | #endif | |
10290 | char WriteCoreDump (); | |
10291 | int | |
10292 | main () | |
10293 | { | |
10294 | return WriteCoreDump (); | |
10295 | ; | |
10296 | return 0; | |
10297 | } | |
10298 | _ACEOF | |
10299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10300 | if { (ac_try="$ac_link" | |
10301 | case "(($ac_try" in | |
10302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10303 | *) ac_try_echo=$ac_try;; | |
10304 | esac | |
10305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10306 | (eval "$ac_link") 2>conftest.er1 | |
10307 | ac_status=$? | |
10308 | grep -v '^ *+' conftest.er1 >conftest.err | |
10309 | rm -f conftest.er1 | |
10310 | cat conftest.err >&5 | |
10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10312 | (exit $ac_status); } && | |
10313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10314 | { (case "(($ac_try" in | |
10315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10316 | *) ac_try_echo=$ac_try;; | |
10317 | esac | |
10318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10319 | (eval "$ac_try") 2>&5 | |
10320 | ac_status=$? | |
10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10322 | (exit $ac_status); }; } && | |
10323 | { ac_try='test -s conftest$ac_exeext' | |
10324 | { (case "(($ac_try" in | |
10325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10326 | *) ac_try_echo=$ac_try;; | |
10327 | esac | |
10328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10329 | (eval "$ac_try") 2>&5 | |
10330 | ac_status=$? | |
10331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10332 | (exit $ac_status); }; }; then | |
10333 | ac_cv_lib_coredumper_WriteCoreDump=yes | |
10334 | else | |
10335 | echo "$as_me: failed program was:" >&5 | |
10336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10337 | ||
10338 | ac_cv_lib_coredumper_WriteCoreDump=no | |
35305a49 | 10339 | fi |
35305a49 | 10340 | |
8da89711 | 10341 | rm -f core conftest.err conftest.$ac_objext \ |
10342 | conftest$ac_exeext conftest.$ac_ext | |
10343 | LIBS=$ac_check_lib_save_LIBS | |
35305a49 | 10344 | fi |
8da89711 | 10345 | { echo "$as_me:$LINENO: result: $ac_cv_lib_coredumper_WriteCoreDump" >&5 |
10346 | echo "${ECHO_T}$ac_cv_lib_coredumper_WriteCoreDump" >&6; } | |
10347 | if test $ac_cv_lib_coredumper_WriteCoreDump = yes; then | |
10348 | cat >>confdefs.h <<_ACEOF | |
10349 | #define HAVE_LIBCOREDUMPER 1 | |
10350 | _ACEOF | |
10351 | ||
10352 | LIBS="-lcoredumper $LIBS" | |
10353 | ||
35305a49 | 10354 | else |
8da89711 | 10355 | { echo "$as_me:$LINENO: result: Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&5 |
10356 | echo "${ECHO_T}Coredumper library not found. Install coredumper, or use --with-coredumper=PATH to tell me how to find it, where PATH/lib/libcoredumper.so exists. For conveniance, just type 'tools/core_install.sh' now, to install coredumper in your home directory." >&6; } | |
35305a49 | 10357 | fi |
10358 | ||
10359 | ||
8da89711 | 10360 | withval='' |
35305a49 | 10361 | |
8da89711 | 10362 | # Check whether --with-ldap was given. |
10363 | if test "${with_ldap+set}" = set; then | |
10364 | withval=$with_ldap; | |
10365 | fi | |
10366 | ||
10367 | if test "x$withval" != "x"; then | |
10368 | { echo "$as_me:$LINENO: result: Using include dir $withval to find libldap" >&5 | |
10369 | echo "${ECHO_T}Using include dir $withval to find libldap" >&6; } | |
10370 | CPPFLAGS="$CPPFLAGS -I$withval/include -L$withval/lib" | |
10371 | LIBS="$LIBS -L$withval/lib" | |
10372 | else | |
10373 | { echo "$as_me:$LINENO: result: Looking for ldap in system " >&5 | |
10374 | echo "${ECHO_T}Looking for ldap in system " >&6; } | |
10375 | fi | |
10376 | ||
10377 | { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5 | |
10378 | echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; } | |
10379 | if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then | |
35305a49 | 10380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10381 | else | |
10382 | ac_check_lib_save_LIBS=$LIBS | |
8da89711 | 10383 | LIBS="-lldap $LIBS" |
35305a49 | 10384 | cat >conftest.$ac_ext <<_ACEOF |
10385 | /* confdefs.h. */ | |
10386 | _ACEOF | |
10387 | cat confdefs.h >>conftest.$ac_ext | |
10388 | cat >>conftest.$ac_ext <<_ACEOF | |
10389 | /* end confdefs.h. */ | |
10390 | ||
a8b2ad8d | 10391 | /* Override any GCC internal prototype to avoid an error. |
10392 | Use char because int might match the return type of a GCC | |
10393 | builtin and then its argument prototype would still apply. */ | |
35305a49 | 10394 | #ifdef __cplusplus |
10395 | extern "C" | |
10396 | #endif | |
8da89711 | 10397 | char ldap_init (); |
35305a49 | 10398 | int |
10399 | main () | |
10400 | { | |
8da89711 | 10401 | return ldap_init (); |
35305a49 | 10402 | ; |
10403 | return 0; | |
10404 | } | |
10405 | _ACEOF | |
10406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
a8b2ad8d | 10407 | if { (ac_try="$ac_link" |
10408 | case "(($ac_try" in | |
10409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10410 | *) ac_try_echo=$ac_try;; | |
10411 | esac | |
10412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10413 | (eval "$ac_link") 2>conftest.er1 | |
35305a49 | 10414 | ac_status=$? |
10415 | grep -v '^ *+' conftest.er1 >conftest.err | |
10416 | rm -f conftest.er1 | |
10417 | cat conftest.err >&5 | |
10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10419 | (exit $ac_status); } && | |
a8b2ad8d | 10420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10421 | { (case "(($ac_try" in | |
10422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10423 | *) ac_try_echo=$ac_try;; | |
10424 | esac | |
10425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10426 | (eval "$ac_try") 2>&5 | |
35305a49 | 10427 | ac_status=$? |
10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10429 | (exit $ac_status); }; } && | |
10430 | { ac_try='test -s conftest$ac_exeext' | |
a8b2ad8d | 10431 | { (case "(($ac_try" in |
10432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10433 | *) ac_try_echo=$ac_try;; | |
10434 | esac | |
10435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10436 | (eval "$ac_try") 2>&5 | |
35305a49 | 10437 | ac_status=$? |
10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10439 | (exit $ac_status); }; }; then | |
8da89711 | 10440 | ac_cv_lib_ldap_ldap_init=yes |
5b1166fd | 10441 | else |
35305a49 | 10442 | echo "$as_me: failed program was:" >&5 |
10443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10444 | ||
8da89711 | 10445 | ac_cv_lib_ldap_ldap_init=no |
35305a49 | 10446 | fi |
a8b2ad8d | 10447 | |
10448 | rm -f core conftest.err conftest.$ac_objext \ | |
35305a49 | 10449 | conftest$ac_exeext conftest.$ac_ext |
10450 | LIBS=$ac_check_lib_save_LIBS | |
5b1166fd | 10451 | fi |
8da89711 | 10452 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5 |
10453 | echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; } | |
10454 | if test $ac_cv_lib_ldap_ldap_init = yes; then | |
b3076f16 | 10455 | |
b3076f16 | 10456 | |
8da89711 | 10457 | for ac_header in ldap.h |
10458 | do | |
10459 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10460 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10461 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10463 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a8b2ad8d | 10464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10465 | fi | |
8da89711 | 10466 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10467 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10468 | echo "${ECHO_T}$ac_res" >&6; } | |
a8b2ad8d | 10469 | else |
10470 | # Is the header compilable? | |
8da89711 | 10471 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10472 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
a8b2ad8d | 10473 | cat >conftest.$ac_ext <<_ACEOF |
10474 | /* confdefs.h. */ | |
10475 | _ACEOF | |
10476 | cat confdefs.h >>conftest.$ac_ext | |
10477 | cat >>conftest.$ac_ext <<_ACEOF | |
10478 | /* end confdefs.h. */ | |
10479 | $ac_includes_default | |
8da89711 | 10480 | #include <$ac_header> |
a8b2ad8d | 10481 | _ACEOF |
10482 | rm -f conftest.$ac_objext | |
10483 | if { (ac_try="$ac_compile" | |
10484 | case "(($ac_try" in | |
10485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10486 | *) ac_try_echo=$ac_try;; | |
10487 | esac | |
10488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10489 | (eval "$ac_compile") 2>conftest.er1 | |
10490 | ac_status=$? | |
10491 | grep -v '^ *+' conftest.er1 >conftest.err | |
10492 | rm -f conftest.er1 | |
10493 | cat conftest.err >&5 | |
10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10495 | (exit $ac_status); } && | |
10496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10497 | { (case "(($ac_try" in | |
10498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10499 | *) ac_try_echo=$ac_try;; | |
10500 | esac | |
10501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10502 | (eval "$ac_try") 2>&5 | |
10503 | ac_status=$? | |
10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10505 | (exit $ac_status); }; } && | |
10506 | { ac_try='test -s conftest.$ac_objext' | |
10507 | { (case "(($ac_try" in | |
10508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10509 | *) ac_try_echo=$ac_try;; | |
10510 | esac | |
10511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10512 | (eval "$ac_try") 2>&5 | |
10513 | ac_status=$? | |
10514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10515 | (exit $ac_status); }; }; then | |
10516 | ac_header_compiler=yes | |
10517 | else | |
10518 | echo "$as_me: failed program was:" >&5 | |
10519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 10520 | |
a8b2ad8d | 10521 | ac_header_compiler=no |
10522 | fi | |
b3076f16 | 10523 | |
a8b2ad8d | 10524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10525 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10526 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b3076f16 | 10527 | |
a8b2ad8d | 10528 | # Is the header present? |
8da89711 | 10529 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10530 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
a8b2ad8d | 10531 | cat >conftest.$ac_ext <<_ACEOF |
10532 | /* confdefs.h. */ | |
10533 | _ACEOF | |
10534 | cat confdefs.h >>conftest.$ac_ext | |
10535 | cat >>conftest.$ac_ext <<_ACEOF | |
10536 | /* end confdefs.h. */ | |
8da89711 | 10537 | #include <$ac_header> |
a8b2ad8d | 10538 | _ACEOF |
10539 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10540 | case "(($ac_try" in | |
10541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10542 | *) ac_try_echo=$ac_try;; | |
10543 | esac | |
10544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10545 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10546 | ac_status=$? | |
10547 | grep -v '^ *+' conftest.er1 >conftest.err | |
10548 | rm -f conftest.er1 | |
10549 | cat conftest.err >&5 | |
10550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10551 | (exit $ac_status); } >/dev/null; then | |
10552 | if test -s conftest.err; then | |
10553 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10554 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10555 | else | |
10556 | ac_cpp_err= | |
10557 | fi | |
10558 | else | |
10559 | ac_cpp_err=yes | |
10560 | fi | |
10561 | if test -z "$ac_cpp_err"; then | |
10562 | ac_header_preproc=yes | |
10563 | else | |
10564 | echo "$as_me: failed program was:" >&5 | |
10565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3076f16 | 10566 | |
a8b2ad8d | 10567 | ac_header_preproc=no |
10568 | fi | |
ec311f39 | 10569 | |
a8b2ad8d | 10570 | rm -f conftest.err conftest.$ac_ext |
10571 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10572 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b3076f16 | 10573 | |
a8b2ad8d | 10574 | # So? What about this header? |
10575 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10576 | yes:no: ) | |
8da89711 | 10577 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10578 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10579 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10580 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
a8b2ad8d | 10581 | ac_header_preproc=yes |
10582 | ;; | |
10583 | no:yes:* ) | |
8da89711 | 10584 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10585 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10586 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10587 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10588 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10589 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10590 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10591 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10592 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10593 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10594 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10595 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a8b2ad8d | 10596 | ( cat <<\_ASBOX |
10597 | ## -------------------------------------------------- ## | |
10598 | ## Report this to evilnet-devel@lists.sourceforge.net ## | |
10599 | ## -------------------------------------------------- ## | |
10600 | _ASBOX | |
10601 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
10602 | ;; | |
10603 | esac | |
8da89711 | 10604 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10606 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a8b2ad8d | 10607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10608 | else | |
8da89711 | 10609 | eval "$as_ac_Header=\$ac_header_preproc" |
a8b2ad8d | 10610 | fi |
8da89711 | 10611 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10612 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10613 | echo "${ECHO_T}$ac_res" >&6; } | |
a8b2ad8d | 10614 | |
10615 | fi | |
8da89711 | 10616 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10617 | cat >>confdefs.h <<_ACEOF | |
10618 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10619 | _ACEOF | |
a8b2ad8d | 10620 | |
10621 | ||
8da89711 | 10622 | cat >>confdefs.h <<\_ACEOF |
10623 | #define WITH_LDAP 1 | |
a8b2ad8d | 10624 | _ACEOF |
a8b2ad8d | 10625 | |
8da89711 | 10626 | ldap_message="LDAP library: enabled" |
10627 | ||
a8b2ad8d | 10628 | else |
a8b2ad8d | 10629 | |
8da89711 | 10630 | if "x$withval" != "x"; then |
10631 | { { echo "$as_me:$LINENO: error: ldap.h not found" >&5 | |
10632 | echo "$as_me: error: ldap.h not found" >&2;} | |
10633 | { (exit 1); exit 1; }; } | |
a8b2ad8d | 10634 | fi |
10635 | ||
a8b2ad8d | 10636 | fi |
a8b2ad8d | 10637 | |
8da89711 | 10638 | done |
10639 | ||
a8b2ad8d | 10640 | |
10641 | else | |
8da89711 | 10642 | |
10643 | if "x$withval" != "x"; then | |
10644 | { { echo "$as_me:$LINENO: error: libldap not found or not valid" >&5 | |
10645 | echo "$as_me: error: libldap not found or not valid" >&2;} | |
10646 | { (exit 1); exit 1; }; } | |
10647 | fi | |
10648 | ||
10649 | ||
a8b2ad8d | 10650 | fi |
10651 | ||
10652 | ||
10653 | ||
10654 | cat >>confdefs.h <<_ACEOF | |
10655 | #define CODENAME "${CODENAME}" | |
10656 | _ACEOF | |
10657 | ||
10658 | ||
10659 | ||
10660 | ||
10661 | ||
10662 | ||
10663 | ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile" | |
10664 | ||
10665 | cat >confcache <<\_ACEOF | |
10666 | # This file is a shell script that caches the results of configure | |
10667 | # tests run on this system so they can be shared between configure | |
10668 | # scripts and configure runs, see configure's option --config-cache. | |
10669 | # It is not useful on other systems. If it contains results you don't | |
10670 | # want to keep, you may remove or edit it. | |
10671 | # | |
b3076f16 | 10672 | # config.status only pays attention to the cache file if you give it |
10673 | # the --recheck option to rerun configure. | |
10674 | # | |
10675 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10676 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10677 | # following values. | |
10678 | ||
10679 | _ACEOF | |
10680 | ||
10681 | # The following way of writing the cache mishandles newlines in values, | |
10682 | # but we know of no workaround that is simple, portable, and efficient. | |
a8b2ad8d | 10683 | # So, we kill variables containing newlines. |
b3076f16 | 10684 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10685 | # and sets the high bit in the cache file unless we assign to the vars. | |
a8b2ad8d | 10686 | ( |
10687 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10688 | eval ac_val=\$$ac_var | |
10689 | case $ac_val in #( | |
10690 | *${as_nl}*) | |
10691 | case $ac_var in #( | |
10692 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
10693 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
10694 | esac | |
10695 | case $ac_var in #( | |
10696 | _ | IFS | as_nl) ;; #( | |
10697 | *) $as_unset $ac_var ;; | |
10698 | esac ;; | |
10699 | esac | |
10700 | done | |
10701 | ||
b3076f16 | 10702 | (set) 2>&1 | |
a8b2ad8d | 10703 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10704 | *${as_nl}ac_space=\ *) | |
b3076f16 | 10705 | # `set' does not quote correctly, so add quotes (double-quote |
10706 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10707 | sed -n \ | |
10708 | "s/'/'\\\\''/g; | |
10709 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a8b2ad8d | 10710 | ;; #( |
b3076f16 | 10711 | *) |
10712 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
a8b2ad8d | 10713 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b3076f16 | 10714 | ;; |
a8b2ad8d | 10715 | esac | |
10716 | sort | |
10717 | ) | | |
b3076f16 | 10718 | sed ' |
a8b2ad8d | 10719 | /^ac_cv_env_/b end |
b3076f16 | 10720 | t clear |
a8b2ad8d | 10721 | :clear |
b3076f16 | 10722 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10723 | t end | |
a8b2ad8d | 10724 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10725 | :end' >>confcache | |
10726 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10727 | if test -w "$cache_file"; then | |
10728 | test "x$cache_file" != "x/dev/null" && | |
10729 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
10730 | echo "$as_me: updating cache $cache_file" >&6;} | |
b3076f16 | 10731 | cat confcache >$cache_file |
10732 | else | |
a8b2ad8d | 10733 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
10734 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b3076f16 | 10735 | fi |
10736 | fi | |
10737 | rm -f confcache | |
10738 | ||
10739 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10740 | # Let make expand exec_prefix. | |
10741 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10742 | ||
b3076f16 | 10743 | DEFS=-DHAVE_CONFIG_H |
10744 | ||
10745 | ac_libobjs= | |
10746 | ac_ltlibobjs= | |
10747 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10748 | # 1. Remove the extension, and $U if already installed. | |
a8b2ad8d | 10749 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
10750 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
10751 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10752 | # will be set to the directory where LIBOBJS objects are built. | |
10753 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10754 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
b3076f16 | 10755 | done |
10756 | LIBOBJS=$ac_libobjs | |
10757 | ||
10758 | LTLIBOBJS=$ac_ltlibobjs | |
10759 | ||
10760 | ||
ec1a68c8 | 10761 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
10762 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10763 | Usually this means the macro was only invoked conditionally." >&5 | |
10764 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10765 | Usually this means the macro was only invoked conditionally." >&2;} | |
10766 | { (exit 1); exit 1; }; } | |
10767 | fi | |
10768 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
10769 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
10770 | Usually this means the macro was only invoked conditionally." >&5 | |
10771 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
10772 | Usually this means the macro was only invoked conditionally." >&2;} | |
10773 | { (exit 1); exit 1; }; } | |
10774 | fi | |
10775 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10776 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10777 | Usually this means the macro was only invoked conditionally." >&5 | |
10778 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10779 | Usually this means the macro was only invoked conditionally." >&2;} | |
10780 | { (exit 1); exit 1; }; } | |
10781 | fi | |
10782 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10783 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10784 | Usually this means the macro was only invoked conditionally." >&5 | |
10785 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10786 | Usually this means the macro was only invoked conditionally." >&2;} | |
10787 | { (exit 1); exit 1; }; } | |
10788 | fi | |
b3076f16 | 10789 | |
10790 | : ${CONFIG_STATUS=./config.status} | |
10791 | ac_clean_files_save=$ac_clean_files | |
10792 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10793 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10794 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10795 | cat >$CONFIG_STATUS <<_ACEOF | |
10796 | #! $SHELL | |
10797 | # Generated by $as_me. | |
10798 | # Run this file to recreate the current configuration. | |
10799 | # Compiler output produced by configure, useful for debugging | |
10800 | # configure, is in config.log if it exists. | |
10801 | ||
10802 | debug=false | |
10803 | ac_cs_recheck=false | |
10804 | ac_cs_silent=false | |
10805 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10806 | _ACEOF | |
10807 | ||
10808 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10809 | ## --------------------- ## | |
10810 | ## M4sh Initialization. ## | |
10811 | ## --------------------- ## | |
10812 | ||
10813 | # Be Bourne compatible | |
10814 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
10815 | emulate sh | |
10816 | NULLCMD=: | |
10817 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
10818 | # is contrary to our usage. Disable this feature. | |
10819 | alias -g '${1+"$@"}'='"$@"' | |
a8b2ad8d | 10820 | setopt NO_GLOB_SUBST |
10821 | else | |
10822 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
b3076f16 | 10823 | fi |
a8b2ad8d | 10824 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
b3076f16 | 10825 | DUALCASE=1; export DUALCASE # for MKS sh |
10826 | ||
a8b2ad8d | 10827 | |
10828 | # PATH needs CR | |
10829 | # Avoid depending upon Character Ranges. | |
10830 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10831 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10832 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10833 | as_cr_digits='0123456789' | |
10834 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10835 | ||
10836 | # The user is always right. | |
10837 | if test "${PATH_SEPARATOR+set}" != set; then | |
10838 | echo "#! /bin/sh" >conf$$.sh | |
10839 | echo "exit 0" >>conf$$.sh | |
10840 | chmod +x conf$$.sh | |
10841 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10842 | PATH_SEPARATOR=';' | |
10843 | else | |
10844 | PATH_SEPARATOR=: | |
10845 | fi | |
10846 | rm -f conf$$.sh | |
10847 | fi | |
10848 | ||
b3076f16 | 10849 | # Support unset when possible. |
10850 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
10851 | as_unset=unset | |
10852 | else | |
10853 | as_unset=false | |
10854 | fi | |
10855 | ||
10856 | ||
a8b2ad8d | 10857 | # IFS |
10858 | # We need space, tab and new line, in precisely that order. Quoting is | |
10859 | # there to prevent editors from complaining about space-tab. | |
10860 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10861 | # splitting by setting IFS to empty value.) | |
10862 | as_nl=' | |
10863 | ' | |
10864 | IFS=" "" $as_nl" | |
10865 | ||
10866 | # Find who we are. Look in the path if we contain no directory separator. | |
10867 | case $0 in | |
10868 | *[\\/]* ) as_myself=$0 ;; | |
10869 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10870 | for as_dir in $PATH | |
10871 | do | |
10872 | IFS=$as_save_IFS | |
10873 | test -z "$as_dir" && as_dir=. | |
10874 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10875 | done | |
10876 | IFS=$as_save_IFS | |
10877 | ||
10878 | ;; | |
10879 | esac | |
10880 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10881 | # in which case we are not to be found in the path. | |
10882 | if test "x$as_myself" = x; then | |
10883 | as_myself=$0 | |
10884 | fi | |
10885 | if test ! -f "$as_myself"; then | |
10886 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10887 | { (exit 1); exit 1; } | |
10888 | fi | |
10889 | ||
b3076f16 | 10890 | # Work around bugs in pre-3.0 UWIN ksh. |
a8b2ad8d | 10891 | for as_var in ENV MAIL MAILPATH |
10892 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
10893 | done | |
b3076f16 | 10894 | PS1='$ ' |
10895 | PS2='> ' | |
10896 | PS4='+ ' | |
10897 | ||
10898 | # NLS nuisances. | |
10899 | for as_var in \ | |
10900 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10901 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10902 | LC_TELEPHONE LC_TIME | |
10903 | do | |
10904 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
10905 | eval $as_var=C; export $as_var | |
10906 | else | |
a8b2ad8d | 10907 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
b3076f16 | 10908 | fi |
10909 | done | |
10910 | ||
10911 | # Required to use basename. | |
a8b2ad8d | 10912 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10913 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 10914 | as_expr=expr |
10915 | else | |
10916 | as_expr=false | |
10917 | fi | |
10918 | ||
a8b2ad8d | 10919 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b3076f16 | 10920 | as_basename=basename |
10921 | else | |
10922 | as_basename=false | |
10923 | fi | |
10924 | ||
10925 | ||
10926 | # Name of the executable. | |
a8b2ad8d | 10927 | as_me=`$as_basename -- "$0" || |
b3076f16 | 10928 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10929 | X"$0" : 'X\(//\)$' \| \ | |
a8b2ad8d | 10930 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 10931 | echo X/"$0" | |
a8b2ad8d | 10932 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10933 | s//\1/ | |
10934 | q | |
10935 | } | |
10936 | /^X\/\(\/\/\)$/{ | |
10937 | s//\1/ | |
10938 | q | |
10939 | } | |
10940 | /^X\/\(\/\).*/{ | |
10941 | s//\1/ | |
10942 | q | |
10943 | } | |
10944 | s/.*/./; q'` | |
b3076f16 | 10945 | |
a8b2ad8d | 10946 | # CDPATH. |
10947 | $as_unset CDPATH | |
b3076f16 | 10948 | |
10949 | ||
b3076f16 | 10950 | |
b3076f16 | 10951 | as_lineno_1=$LINENO |
10952 | as_lineno_2=$LINENO | |
b3076f16 | 10953 | test "x$as_lineno_1" != "x$as_lineno_2" && |
a8b2ad8d | 10954 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
b3076f16 | 10955 | |
10956 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
10957 | # uniformly replaced by the line number. The first 'sed' inserts a | |
a8b2ad8d | 10958 | # line-number line after each line using $LINENO; the second 'sed' |
10959 | # does the real work. The second script uses 'N' to pair each | |
10960 | # line-number line with the line containing $LINENO, and appends | |
10961 | # trailing '-' during substitution so that $LINENO is not a special | |
10962 | # case at line end. | |
b3076f16 | 10963 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
a8b2ad8d | 10964 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
10965 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
10966 | sed -n ' | |
10967 | p | |
10968 | /[$]LINENO/= | |
10969 | ' <$as_myself | | |
b3076f16 | 10970 | sed ' |
a8b2ad8d | 10971 | s/[$]LINENO.*/&-/ |
10972 | t lineno | |
10973 | b | |
10974 | :lineno | |
b3076f16 | 10975 | N |
a8b2ad8d | 10976 | :loop |
10977 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b3076f16 | 10978 | t loop |
a8b2ad8d | 10979 | s/-\n.*// |
b3076f16 | 10980 | ' >$as_me.lineno && |
a8b2ad8d | 10981 | chmod +x "$as_me.lineno" || |
10982 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
b3076f16 | 10983 | { (exit 1); exit 1; }; } |
10984 | ||
10985 | # Don't try to exec as it changes $[0], causing all sort of problems | |
10986 | # (the dirname of $[0] is not the place where we might find the | |
a8b2ad8d | 10987 | # original and so on. Autoconf is especially sensitive to this). |
10988 | . "./$as_me.lineno" | |
b3076f16 | 10989 | # Exit status is that of the last command. |
10990 | exit | |
10991 | } | |
10992 | ||
10993 | ||
a8b2ad8d | 10994 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10995 | as_dirname=dirname | |
10996 | else | |
10997 | as_dirname=false | |
10998 | fi | |
10999 | ||
11000 | ECHO_C= ECHO_N= ECHO_T= | |
11001 | case `echo -n x` in | |
11002 | -n*) | |
11003 | case `echo 'x\c'` in | |
11004 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11005 | *) ECHO_C='\c';; | |
11006 | esac;; | |
11007 | *) | |
11008 | ECHO_N='-n';; | |
b3076f16 | 11009 | esac |
11010 | ||
a8b2ad8d | 11011 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11012 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b3076f16 | 11013 | as_expr=expr |
11014 | else | |
11015 | as_expr=false | |
11016 | fi | |
11017 | ||
11018 | rm -f conf$$ conf$$.exe conf$$.file | |
a8b2ad8d | 11019 | if test -d conf$$.dir; then |
11020 | rm -f conf$$.dir/conf$$.file | |
11021 | else | |
11022 | rm -f conf$$.dir | |
11023 | mkdir conf$$.dir | |
11024 | fi | |
b3076f16 | 11025 | echo >conf$$.file |
11026 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
a8b2ad8d | 11027 | as_ln_s='ln -s' |
11028 | # ... but there are two gotchas: | |
11029 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11030 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11031 | # In both cases, we have to default to `cp -p'. | |
11032 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
b3076f16 | 11033 | as_ln_s='cp -p' |
b3076f16 | 11034 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11035 | as_ln_s=ln | |
11036 | else | |
11037 | as_ln_s='cp -p' | |
11038 | fi | |
a8b2ad8d | 11039 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11040 | rmdir conf$$.dir 2>/dev/null | |
b3076f16 | 11041 | |
11042 | if mkdir -p . 2>/dev/null; then | |
11043 | as_mkdir_p=: | |
11044 | else | |
11045 | test -d ./-p && rmdir ./-p | |
11046 | as_mkdir_p=false | |
11047 | fi | |
11048 | ||
a8b2ad8d | 11049 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
11050 | # systems may use methods other than mode bits to determine executability. | |
11051 | cat >conf$$.file <<_ASEOF | |
11052 | #! /bin/sh | |
11053 | exit 0 | |
11054 | _ASEOF | |
11055 | chmod +x conf$$.file | |
11056 | if test -x conf$$.file >/dev/null 2>&1; then | |
11057 | as_executable_p="test -x" | |
11058 | else | |
11059 | as_executable_p=: | |
11060 | fi | |
11061 | rm -f conf$$.file | |
b3076f16 | 11062 | |
11063 | # Sed expression to map a string onto a valid CPP name. | |
11064 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11065 | ||
11066 | # Sed expression to map a string onto a valid variable name. | |
11067 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
11068 | ||
11069 | ||
b3076f16 | 11070 | exec 6>&1 |
11071 | ||
a8b2ad8d | 11072 | # Save the log message, to keep $[0] and so on meaningful, and to |
b3076f16 | 11073 | # report actual input values of CONFIG_FILES etc. instead of their |
a8b2ad8d | 11074 | # values after options handling. |
11075 | ac_log=" | |
63c95a47 | 11076 | This file was extended by X3 $as_me 1.5, which was |
a8b2ad8d | 11077 | generated by GNU Autoconf 2.60. Invocation command line was |
b3076f16 | 11078 | |
11079 | CONFIG_FILES = $CONFIG_FILES | |
11080 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11081 | CONFIG_LINKS = $CONFIG_LINKS | |
11082 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11083 | $ $0 $@ | |
11084 | ||
a8b2ad8d | 11085 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11086 | " | |
11087 | ||
b3076f16 | 11088 | _ACEOF |
11089 | ||
a8b2ad8d | 11090 | cat >>$CONFIG_STATUS <<_ACEOF |
b3076f16 | 11091 | # Files that config.status was made for. |
a8b2ad8d | 11092 | config_files="$ac_config_files" |
11093 | config_headers="$ac_config_headers" | |
11094 | config_commands="$ac_config_commands" | |
b3076f16 | 11095 | |
a8b2ad8d | 11096 | _ACEOF |
b3076f16 | 11097 | |
11098 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b3076f16 | 11099 | ac_cs_usage="\ |
11100 | \`$as_me' instantiates files from templates according to the | |
11101 | current configuration. | |
11102 | ||
11103 | Usage: $0 [OPTIONS] [FILE]... | |
11104 | ||
11105 | -h, --help print this help, then exit | |
11106 | -V, --version print version number, then exit | |
11107 | -q, --quiet do not print progress messages | |
11108 | -d, --debug don't remove temporary files | |
11109 | --recheck update $as_me by reconfiguring in the same conditions | |
11110 | --file=FILE[:TEMPLATE] | |
11111 | instantiate the configuration file FILE | |
11112 | --header=FILE[:TEMPLATE] | |
11113 | instantiate the configuration header FILE | |
11114 | ||
11115 | Configuration files: | |
11116 | $config_files | |
11117 | ||
11118 | Configuration headers: | |
11119 | $config_headers | |
11120 | ||
ec1a68c8 | 11121 | Configuration commands: |
11122 | $config_commands | |
11123 | ||
b3076f16 | 11124 | Report bugs to <bug-autoconf@gnu.org>." |
b3076f16 | 11125 | |
a8b2ad8d | 11126 | _ACEOF |
b3076f16 | 11127 | cat >>$CONFIG_STATUS <<_ACEOF |
11128 | ac_cs_version="\\ | |
63c95a47 | 11129 | X3 config.status 1.5 |
a8b2ad8d | 11130 | configured by $0, generated by GNU Autoconf 2.60, |
11131 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b3076f16 | 11132 | |
a8b2ad8d | 11133 | Copyright (C) 2006 Free Software Foundation, Inc. |
b3076f16 | 11134 | This config.status script is free software; the Free Software Foundation |
11135 | gives unlimited permission to copy, distribute and modify it." | |
a8b2ad8d | 11136 | |
11137 | ac_pwd='$ac_pwd' | |
11138 | srcdir='$srcdir' | |
11139 | INSTALL='$INSTALL' | |
b3076f16 | 11140 | _ACEOF |
11141 | ||
11142 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11143 | # If no file are specified by the user, then we need to provide default | |
11144 | # value. By we need to know if files were specified by the user. | |
11145 | ac_need_defaults=: | |
11146 | while test $# != 0 | |
11147 | do | |
11148 | case $1 in | |
11149 | --*=*) | |
a8b2ad8d | 11150 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11151 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b3076f16 | 11152 | ac_shift=: |
11153 | ;; | |
a8b2ad8d | 11154 | *) |
b3076f16 | 11155 | ac_option=$1 |
11156 | ac_optarg=$2 | |
11157 | ac_shift=shift | |
11158 | ;; | |
b3076f16 | 11159 | esac |
11160 | ||
11161 | case $ac_option in | |
11162 | # Handling of the options. | |
b3076f16 | 11163 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11164 | ac_cs_recheck=: ;; | |
a8b2ad8d | 11165 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
11166 | echo "$ac_cs_version"; exit ;; | |
11167 | --debug | --debu | --deb | --de | --d | -d ) | |
b3076f16 | 11168 | debug=: ;; |
11169 | --file | --fil | --fi | --f ) | |
11170 | $ac_shift | |
11171 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11172 | ac_need_defaults=false;; | |
11173 | --header | --heade | --head | --hea ) | |
11174 | $ac_shift | |
11175 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11176 | ac_need_defaults=false;; | |
a8b2ad8d | 11177 | --he | --h) |
11178 | # Conflict between --help and --header | |
11179 | { echo "$as_me: error: ambiguous option: $1 | |
11180 | Try \`$0 --help' for more information." >&2 | |
11181 | { (exit 1); exit 1; }; };; | |
11182 | --help | --hel | -h ) | |
11183 | echo "$ac_cs_usage"; exit ;; | |
b3076f16 | 11184 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11185 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11186 | ac_cs_silent=: ;; | |
11187 | ||
11188 | # This is an error. | |
a8b2ad8d | 11189 | -*) { echo "$as_me: error: unrecognized option: $1 |
11190 | Try \`$0 --help' for more information." >&2 | |
b3076f16 | 11191 | { (exit 1); exit 1; }; } ;; |
11192 | ||
a8b2ad8d | 11193 | *) ac_config_targets="$ac_config_targets $1" |
11194 | ac_need_defaults=false ;; | |
b3076f16 | 11195 | |
11196 | esac | |
11197 | shift | |
11198 | done | |
11199 | ||
11200 | ac_configure_extra_args= | |
11201 | ||
11202 | if $ac_cs_silent; then | |
11203 | exec 6>/dev/null | |
11204 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11205 | fi | |
11206 | ||
11207 | _ACEOF | |
11208 | cat >>$CONFIG_STATUS <<_ACEOF | |
11209 | if \$ac_cs_recheck; then | |
a8b2ad8d | 11210 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11211 | CONFIG_SHELL=$SHELL | |
11212 | export CONFIG_SHELL | |
11213 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
b3076f16 | 11214 | fi |
11215 | ||
11216 | _ACEOF | |
a8b2ad8d | 11217 | cat >>$CONFIG_STATUS <<\_ACEOF |
11218 | exec 5>>config.log | |
11219 | { | |
11220 | echo | |
11221 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11222 | ## Running $as_me. ## | |
11223 | _ASBOX | |
11224 | echo "$ac_log" | |
11225 | } >&5 | |
b3076f16 | 11226 | |
a8b2ad8d | 11227 | _ACEOF |
ec1a68c8 | 11228 | cat >>$CONFIG_STATUS <<_ACEOF |
11229 | # | |
a8b2ad8d | 11230 | # INIT-COMMANDS |
ec1a68c8 | 11231 | # |
ec1a68c8 | 11232 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
11233 | ||
11234 | _ACEOF | |
b3076f16 | 11235 | |
b3076f16 | 11236 | cat >>$CONFIG_STATUS <<\_ACEOF |
a8b2ad8d | 11237 | |
11238 | # Handling of arguments. | |
b3076f16 | 11239 | for ac_config_target in $ac_config_targets |
11240 | do | |
a8b2ad8d | 11241 | case $ac_config_target in |
11242 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
11243 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
11244 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11245 | "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;; | |
11246 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
11247 | ||
b3076f16 | 11248 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11249 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11250 | { (exit 1); exit 1; }; };; | |
11251 | esac | |
11252 | done | |
11253 | ||
a8b2ad8d | 11254 | |
b3076f16 | 11255 | # If the user did not use the arguments to specify the items to instantiate, |
11256 | # then the envvar interface is used. Set only those that are not. | |
11257 | # We use the long form for the default assignment because of an extremely | |
11258 | # bizarre bug on SunOS 4.1.3. | |
11259 | if $ac_need_defaults; then | |
11260 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11261 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
ec1a68c8 | 11262 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b3076f16 | 11263 | fi |
11264 | ||
11265 | # Have a temporary directory for convenience. Make it in the build tree | |
a8b2ad8d | 11266 | # simply because there is no reason against having it here, and in addition, |
b3076f16 | 11267 | # creating and moving files from /tmp can sometimes cause problems. |
a8b2ad8d | 11268 | # Hook for its removal unless debugging. |
11269 | # Note that there is a small window in which the directory will not be cleaned: | |
11270 | # after its creation but before its name has been assigned to `$tmp'. | |
b3076f16 | 11271 | $debug || |
11272 | { | |
a8b2ad8d | 11273 | tmp= |
11274 | trap 'exit_status=$? | |
11275 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11276 | ' 0 | |
b3076f16 | 11277 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
11278 | } | |
b3076f16 | 11279 | # Create a (secure) tmp directory for tmp files. |
11280 | ||
11281 | { | |
a8b2ad8d | 11282 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b3076f16 | 11283 | test -n "$tmp" && test -d "$tmp" |
11284 | } || | |
11285 | { | |
a8b2ad8d | 11286 | tmp=./conf$$-$RANDOM |
11287 | (umask 077 && mkdir "$tmp") | |
b3076f16 | 11288 | } || |
11289 | { | |
11290 | echo "$me: cannot create a temporary directory in ." >&2 | |
11291 | { (exit 1); exit 1; } | |
11292 | } | |
11293 | ||
b3076f16 | 11294 | # |
a8b2ad8d | 11295 | # Set up the sed scripts for CONFIG_FILES section. |
b3076f16 | 11296 | # |
11297 | ||
11298 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11299 | # This happens for instance when ./config.status config.h | |
a8b2ad8d | 11300 | if test -n "$CONFIG_FILES"; then |
11301 | ||
11302 | _ACEOF | |
11303 | ||
11304 | ||
11305 | ||
11306 | ac_delim='%!_!# ' | |
11307 | for ac_last_try in false false false false false :; do | |
11308 | cat >conf$$subs.sed <<_ACEOF | |
11309 | SHELL!$SHELL$ac_delim | |
11310 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
11311 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
11312 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
11313 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
11314 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
11315 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
11316 | exec_prefix!$exec_prefix$ac_delim | |
11317 | prefix!$prefix$ac_delim | |
11318 | program_transform_name!$program_transform_name$ac_delim | |
11319 | bindir!$bindir$ac_delim | |
11320 | sbindir!$sbindir$ac_delim | |
11321 | libexecdir!$libexecdir$ac_delim | |
11322 | datarootdir!$datarootdir$ac_delim | |
11323 | datadir!$datadir$ac_delim | |
11324 | sysconfdir!$sysconfdir$ac_delim | |
11325 | sharedstatedir!$sharedstatedir$ac_delim | |
11326 | localstatedir!$localstatedir$ac_delim | |
11327 | includedir!$includedir$ac_delim | |
11328 | oldincludedir!$oldincludedir$ac_delim | |
11329 | docdir!$docdir$ac_delim | |
11330 | infodir!$infodir$ac_delim | |
11331 | htmldir!$htmldir$ac_delim | |
11332 | dvidir!$dvidir$ac_delim | |
11333 | pdfdir!$pdfdir$ac_delim | |
11334 | psdir!$psdir$ac_delim | |
11335 | libdir!$libdir$ac_delim | |
11336 | localedir!$localedir$ac_delim | |
11337 | mandir!$mandir$ac_delim | |
11338 | DEFS!$DEFS$ac_delim | |
11339 | ECHO_C!$ECHO_C$ac_delim | |
11340 | ECHO_N!$ECHO_N$ac_delim | |
11341 | ECHO_T!$ECHO_T$ac_delim | |
11342 | LIBS!$LIBS$ac_delim | |
11343 | build_alias!$build_alias$ac_delim | |
11344 | host_alias!$host_alias$ac_delim | |
11345 | target_alias!$target_alias$ac_delim | |
11346 | build!$build$ac_delim | |
11347 | build_cpu!$build_cpu$ac_delim | |
11348 | build_vendor!$build_vendor$ac_delim | |
11349 | build_os!$build_os$ac_delim | |
11350 | host!$host$ac_delim | |
11351 | host_cpu!$host_cpu$ac_delim | |
11352 | host_vendor!$host_vendor$ac_delim | |
11353 | host_os!$host_os$ac_delim | |
11354 | target!$target$ac_delim | |
11355 | target_cpu!$target_cpu$ac_delim | |
11356 | target_vendor!$target_vendor$ac_delim | |
11357 | target_os!$target_os$ac_delim | |
11358 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
11359 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
11360 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
11361 | CYGPATH_W!$CYGPATH_W$ac_delim | |
11362 | PACKAGE!$PACKAGE$ac_delim | |
11363 | VERSION!$VERSION$ac_delim | |
11364 | ACLOCAL!$ACLOCAL$ac_delim | |
11365 | AUTOCONF!$AUTOCONF$ac_delim | |
11366 | AUTOMAKE!$AUTOMAKE$ac_delim | |
11367 | AUTOHEADER!$AUTOHEADER$ac_delim | |
11368 | MAKEINFO!$MAKEINFO$ac_delim | |
11369 | install_sh!$install_sh$ac_delim | |
11370 | STRIP!$STRIP$ac_delim | |
11371 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
11372 | mkdir_p!$mkdir_p$ac_delim | |
11373 | AWK!$AWK$ac_delim | |
11374 | SET_MAKE!$SET_MAKE$ac_delim | |
11375 | am__leading_dot!$am__leading_dot$ac_delim | |
11376 | AMTAR!$AMTAR$ac_delim | |
11377 | am__tar!$am__tar$ac_delim | |
11378 | am__untar!$am__untar$ac_delim | |
11379 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
11380 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
11381 | MAINT!$MAINT$ac_delim | |
11382 | CC!$CC$ac_delim | |
11383 | CFLAGS!$CFLAGS$ac_delim | |
11384 | LDFLAGS!$LDFLAGS$ac_delim | |
11385 | CPPFLAGS!$CPPFLAGS$ac_delim | |
11386 | ac_ct_CC!$ac_ct_CC$ac_delim | |
11387 | EXEEXT!$EXEEXT$ac_delim | |
11388 | OBJEXT!$OBJEXT$ac_delim | |
11389 | DEPDIR!$DEPDIR$ac_delim | |
11390 | am__include!$am__include$ac_delim | |
11391 | am__quote!$am__quote$ac_delim | |
11392 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
11393 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
11394 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
11395 | CCDEPMODE!$CCDEPMODE$ac_delim | |
11396 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
11397 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
11398 | RANLIB!$RANLIB$ac_delim | |
11399 | LN_S!$LN_S$ac_delim | |
11400 | CPP!$CPP$ac_delim | |
11401 | GREP!$GREP$ac_delim | |
11402 | EGREP!$EGREP$ac_delim | |
11403 | MAKER!$MAKER$ac_delim | |
11404 | ALLOCA!$ALLOCA$ac_delim | |
11405 | MODULE_OBJS!$MODULE_OBJS$ac_delim | |
11406 | _ACEOF | |
11407 | ||
11408 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
11409 | break | |
11410 | elif $ac_last_try; then | |
11411 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
11412 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
11413 | { (exit 1); exit 1; }; } | |
11414 | else | |
11415 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
b3076f16 | 11416 | fi |
a8b2ad8d | 11417 | done |
b3076f16 | 11418 | |
a8b2ad8d | 11419 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
11420 | if test -n "$ac_eof"; then | |
11421 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
11422 | ac_eof=`expr $ac_eof + 1` | |
11423 | fi | |
11424 | ||
11425 | cat >>$CONFIG_STATUS <<_ACEOF | |
11426 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
11427 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b3076f16 | 11428 | _ACEOF |
a8b2ad8d | 11429 | sed ' |
11430 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
11431 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
11432 | :n | |
11433 | t n | |
11434 | s/'"$ac_delim"'$/,g/; t | |
11435 | s/$/\\/; p | |
11436 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
11437 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
11438 | rm -f conf$$subs.sed | |
11439 | cat >>$CONFIG_STATUS <<_ACEOF | |
11440 | CEOF$ac_eof | |
11441 | _ACEOF | |
11442 | ||
11443 | ||
11444 | ac_delim='%!_!# ' | |
11445 | for ac_last_try in false false false false false :; do | |
11446 | cat >conf$$subs.sed <<_ACEOF | |
11447 | MY_SUBDIRS!$MY_SUBDIRS$ac_delim | |
11448 | RX_INCLUDES!$RX_INCLUDES$ac_delim | |
11449 | RX_LIBS!$RX_LIBS$ac_delim | |
11450 | TRACK!$TRACK$ac_delim | |
11451 | LIBOBJS!$LIBOBJS$ac_delim | |
11452 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
11453 | _ACEOF | |
11454 | ||
11455 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then | |
11456 | break | |
11457 | elif $ac_last_try; then | |
11458 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
11459 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
11460 | { (exit 1); exit 1; }; } | |
11461 | else | |
11462 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11463 | fi | |
11464 | done | |
11465 | ||
11466 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
11467 | if test -n "$ac_eof"; then | |
11468 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
11469 | ac_eof=`expr $ac_eof + 1` | |
11470 | fi | |
11471 | ||
11472 | cat >>$CONFIG_STATUS <<_ACEOF | |
11473 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
11474 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
11475 | _ACEOF | |
11476 | sed ' | |
11477 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
11478 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
11479 | :n | |
11480 | t n | |
11481 | s/'"$ac_delim"'$/,g/; t | |
11482 | s/$/\\/; p | |
11483 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
11484 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
11485 | rm -f conf$$subs.sed | |
11486 | cat >>$CONFIG_STATUS <<_ACEOF | |
11487 | :end | |
11488 | s/|#_!!_#|//g | |
11489 | CEOF$ac_eof | |
11490 | _ACEOF | |
11491 | ||
11492 | ||
11493 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
11494 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11495 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11496 | # (actually we leave an empty line to preserve line numbers). | |
11497 | if test "x$srcdir" = x.; then | |
11498 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
11499 | s/:*\$(srcdir):*/:/ | |
11500 | s/:*\${srcdir}:*/:/ | |
11501 | s/:*@srcdir@:*/:/ | |
11502 | s/^\([^=]*=[ ]*\):*/\1/ | |
11503 | s/:*$// | |
11504 | s/^[^=]*=[ ]*$// | |
11505 | }' | |
11506 | fi | |
11507 | ||
b3076f16 | 11508 | cat >>$CONFIG_STATUS <<\_ACEOF |
a8b2ad8d | 11509 | fi # test -n "$CONFIG_FILES" |
11510 | ||
11511 | ||
11512 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
11513 | do | |
11514 | case $ac_tag in | |
11515 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11516 | esac | |
11517 | case $ac_mode$ac_tag in | |
11518 | :[FHL]*:*);; | |
11519 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
11520 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
11521 | { (exit 1); exit 1; }; };; | |
11522 | :[FH]-) ac_tag=-:-;; | |
11523 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11524 | esac | |
11525 | ac_save_IFS=$IFS | |
11526 | IFS=: | |
11527 | set x $ac_tag | |
11528 | IFS=$ac_save_IFS | |
11529 | shift | |
11530 | ac_file=$1 | |
11531 | shift | |
11532 | ||
11533 | case $ac_mode in | |
11534 | :L) ac_source=$1;; | |
11535 | :[FH]) | |
11536 | ac_file_inputs= | |
11537 | for ac_f | |
11538 | do | |
11539 | case $ac_f in | |
11540 | -) ac_f="$tmp/stdin";; | |
11541 | *) # Look for the file first in the build tree, then in the source tree | |
11542 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11543 | # because $ac_f cannot contain `:'. | |
11544 | test -f "$ac_f" || | |
11545 | case $ac_f in | |
11546 | [\\/$]*) false;; | |
11547 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11548 | esac || | |
11549 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
11550 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
11551 | { (exit 1); exit 1; }; };; | |
11552 | esac | |
11553 | ac_file_inputs="$ac_file_inputs $ac_f" | |
11554 | done | |
11555 | ||
11556 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11557 | # use $as_me), people would be surprised to read: | |
11558 | # /* config.h. Generated by config.status. */ | |
11559 | configure_input="Generated from "`IFS=: | |
11560 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
11561 | if test x"$ac_file" != x-; then | |
11562 | configure_input="$ac_file. $configure_input" | |
11563 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11564 | echo "$as_me: creating $ac_file" >&6;} | |
11565 | fi | |
11566 | ||
11567 | case $ac_tag in | |
11568 | *:-:* | *:-) cat >"$tmp/stdin";; | |
11569 | esac | |
11570 | ;; | |
b3076f16 | 11571 | esac |
11572 | ||
a8b2ad8d | 11573 | ac_dir=`$as_dirname -- "$ac_file" || |
b3076f16 | 11574 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11575 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11576 | X"$ac_file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11577 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 11578 | echo X"$ac_file" | |
a8b2ad8d | 11579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11580 | s//\1/ | |
11581 | q | |
11582 | } | |
11583 | /^X\(\/\/\)[^/].*/{ | |
11584 | s//\1/ | |
11585 | q | |
11586 | } | |
11587 | /^X\(\/\/\)$/{ | |
11588 | s//\1/ | |
11589 | q | |
11590 | } | |
11591 | /^X\(\/\).*/{ | |
11592 | s//\1/ | |
11593 | q | |
11594 | } | |
11595 | s/.*/./; q'` | |
11596 | { as_dir="$ac_dir" | |
11597 | case $as_dir in #( | |
11598 | -*) as_dir=./$as_dir;; | |
11599 | esac | |
11600 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
b3076f16 | 11601 | as_dirs= |
a8b2ad8d | 11602 | while :; do |
11603 | case $as_dir in #( | |
11604 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
11605 | *) as_qdir=$as_dir;; | |
11606 | esac | |
11607 | as_dirs="'$as_qdir' $as_dirs" | |
11608 | as_dir=`$as_dirname -- "$as_dir" || | |
b3076f16 | 11609 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11610 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11611 | X"$as_dir" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11612 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
b3076f16 | 11613 | echo X"$as_dir" | |
a8b2ad8d | 11614 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11615 | s//\1/ | |
11616 | q | |
11617 | } | |
11618 | /^X\(\/\/\)[^/].*/{ | |
11619 | s//\1/ | |
11620 | q | |
11621 | } | |
11622 | /^X\(\/\/\)$/{ | |
11623 | s//\1/ | |
11624 | q | |
11625 | } | |
11626 | /^X\(\/\).*/{ | |
11627 | s//\1/ | |
11628 | q | |
11629 | } | |
11630 | s/.*/./; q'` | |
11631 | test -d "$as_dir" && break | |
b3076f16 | 11632 | done |
a8b2ad8d | 11633 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
11634 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
11635 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
b3076f16 | 11636 | { (exit 1); exit 1; }; }; } |
b3076f16 | 11637 | ac_builddir=. |
11638 | ||
a8b2ad8d | 11639 | case "$ac_dir" in |
11640 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11641 | *) | |
b3076f16 | 11642 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
a8b2ad8d | 11643 | # A ".." for each directory in $ac_dir_suffix. |
11644 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
11645 | case $ac_top_builddir_sub in | |
11646 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11647 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11648 | esac ;; | |
11649 | esac | |
11650 | ac_abs_top_builddir=$ac_pwd | |
11651 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11652 | # for backward compatibility: | |
11653 | ac_top_builddir=$ac_top_build_prefix | |
b3076f16 | 11654 | |
11655 | case $srcdir in | |
a8b2ad8d | 11656 | .) # We are building in place. |
b3076f16 | 11657 | ac_srcdir=. |
a8b2ad8d | 11658 | ac_top_srcdir=$ac_top_builddir_sub |
11659 | ac_abs_top_srcdir=$ac_pwd ;; | |
11660 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b3076f16 | 11661 | ac_srcdir=$srcdir$ac_dir_suffix; |
a8b2ad8d | 11662 | ac_top_srcdir=$srcdir |
11663 | ac_abs_top_srcdir=$srcdir ;; | |
11664 | *) # Relative name. | |
11665 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11666 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11667 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b3076f16 | 11668 | esac |
a8b2ad8d | 11669 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b3076f16 | 11670 | |
b3076f16 | 11671 | |
a8b2ad8d | 11672 | case $ac_mode in |
11673 | :F) | |
11674 | # | |
11675 | # CONFIG_FILE | |
11676 | # | |
b3076f16 | 11677 | |
11678 | case $INSTALL in | |
11679 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
a8b2ad8d | 11680 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
b3076f16 | 11681 | esac |
a8b2ad8d | 11682 | _ACEOF |
b3076f16 | 11683 | |
a8b2ad8d | 11684 | cat >>$CONFIG_STATUS <<\_ACEOF |
11685 | # If the template does not know about datarootdir, expand it. | |
11686 | # FIXME: This hack should be removed a few years after 2.60. | |
11687 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
b8cb2a14 | 11688 | |
a8b2ad8d | 11689 | case `sed -n '/datarootdir/ { |
11690 | p | |
11691 | q | |
11692 | } | |
11693 | /@datadir@/p | |
11694 | /@docdir@/p | |
11695 | /@infodir@/p | |
11696 | /@localedir@/p | |
11697 | /@mandir@/p | |
11698 | ' $ac_file_inputs` in | |
11699 | *datarootdir*) ac_datarootdir_seen=yes;; | |
11700 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
11701 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
11702 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11703 | _ACEOF | |
11704 | cat >>$CONFIG_STATUS <<_ACEOF | |
11705 | ac_datarootdir_hack=' | |
11706 | s&@datadir@&$datadir&g | |
11707 | s&@docdir@&$docdir&g | |
11708 | s&@infodir@&$infodir&g | |
11709 | s&@localedir@&$localedir&g | |
11710 | s&@mandir@&$mandir&g | |
11711 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
11712 | esac | |
b3076f16 | 11713 | _ACEOF |
a8b2ad8d | 11714 | |
11715 | # Neutralize VPATH when `$srcdir' = `.'. | |
11716 | # Shell code in configure.ac might set extrasub. | |
11717 | # FIXME: do we really want to maintain this feature? | |
b3076f16 | 11718 | cat >>$CONFIG_STATUS <<_ACEOF |
11719 | sed "$ac_vpsub | |
11720 | $extrasub | |
11721 | _ACEOF | |
11722 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11723 | :t | |
11724 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
a8b2ad8d | 11725 | s&@configure_input@&$configure_input&;t t |
11726 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11727 | s&@srcdir@&$ac_srcdir&;t t | |
11728 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11729 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11730 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11731 | s&@builddir@&$ac_builddir&;t t | |
11732 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11733 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11734 | s&@INSTALL@&$ac_INSTALL&;t t | |
11735 | $ac_datarootdir_hack | |
11736 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
11737 | ||
11738 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11739 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11740 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
11741 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11742 | which seems to be undefined. Please make sure it is defined." >&5 | |
11743 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11744 | which seems to be undefined. Please make sure it is defined." >&2;} | |
11745 | ||
11746 | rm -f "$tmp/stdin" | |
b3076f16 | 11747 | case $ac_file in |
a8b2ad8d | 11748 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
11749 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
b3076f16 | 11750 | esac |
a8b2ad8d | 11751 | ;; |
11752 | :H) | |
11753 | # | |
11754 | # CONFIG_HEADER | |
11755 | # | |
11756 | _ACEOF | |
11757 | ||
11758 | # Transform confdefs.h into a sed script `conftest.defines', that | |
11759 | # substitutes the proper values into config.h.in to produce config.h. | |
11760 | rm -f conftest.defines conftest.tail | |
11761 | # First, append a space to every undef/define line, to ease matching. | |
11762 | echo 's/$/ /' >conftest.defines | |
11763 | # Then, protect against being on the right side of a sed subst, or in | |
11764 | # an unquoted here document, in config.status. If some macros were | |
11765 | # called several times there might be several #defines for the same | |
11766 | # symbol, which is useless. But do not sort them, since the last | |
11767 | # AC_DEFINE must be honored. | |
11768 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11769 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
11770 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
11771 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
11772 | # just an empty string. | |
11773 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
11774 | ac_dB='\\)[ (].*,\\1define\\2' | |
11775 | ac_dC=' ' | |
11776 | ac_dD=' ,' | |
11777 | ||
11778 | uniq confdefs.h | | |
11779 | sed -n ' | |
11780 | t rset | |
11781 | :rset | |
11782 | s/^[ ]*#[ ]*define[ ][ ]*// | |
11783 | t ok | |
11784 | d | |
11785 | :ok | |
11786 | s/[\\&,]/\\&/g | |
11787 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
11788 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
11789 | ' >>conftest.defines | |
11790 | ||
11791 | # Remove the space that was appended to ease matching. | |
11792 | # Then replace #undef with comments. This is necessary, for | |
b3076f16 | 11793 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
11794 | # on some systems where configure will not decide to define it. | |
a8b2ad8d | 11795 | # (The regexp can be short, since the line contains either #define or #undef.) |
11796 | echo 's/ $// | |
11797 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
11798 | ||
11799 | # Break up conftest.defines: | |
11800 | ac_max_sed_lines=50 | |
11801 | ||
11802 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
11803 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
11804 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
11805 | # et cetera. | |
11806 | ac_in='$ac_file_inputs' | |
11807 | ac_out='"$tmp/out1"' | |
11808 | ac_nxt='"$tmp/out2"' | |
11809 | ||
11810 | while : | |
b3076f16 | 11811 | do |
a8b2ad8d | 11812 | # Write a here document: |
11813 | cat >>$CONFIG_STATUS <<_ACEOF | |
11814 | # First, check the format of the line: | |
11815 | cat >"\$tmp/defines.sed" <<\\CEOF | |
11816 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
11817 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
11818 | b | |
11819 | :def | |
11820 | _ACEOF | |
11821 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
b3076f16 | 11822 | echo 'CEOF |
a8b2ad8d | 11823 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
11824 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
11825 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
11826 | grep . conftest.tail >/dev/null || break | |
b3076f16 | 11827 | rm -f conftest.defines |
11828 | mv conftest.tail conftest.defines | |
11829 | done | |
a8b2ad8d | 11830 | rm -f conftest.defines conftest.tail |
b3076f16 | 11831 | |
a8b2ad8d | 11832 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
b3076f16 | 11833 | cat >>$CONFIG_STATUS <<\_ACEOF |
b3076f16 | 11834 | if test x"$ac_file" != x-; then |
a8b2ad8d | 11835 | echo "/* $configure_input */" >"$tmp/config.h" |
11836 | cat "$ac_result" >>"$tmp/config.h" | |
11837 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
b3076f16 | 11838 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
11839 | echo "$as_me: $ac_file is unchanged" >&6;} | |
11840 | else | |
b3076f16 | 11841 | rm -f $ac_file |
a8b2ad8d | 11842 | mv "$tmp/config.h" $ac_file |
b3076f16 | 11843 | fi |
11844 | else | |
a8b2ad8d | 11845 | echo "/* $configure_input */" |
11846 | cat "$ac_result" | |
b3076f16 | 11847 | fi |
a8b2ad8d | 11848 | rm -f "$tmp/out12" |
ec1a68c8 | 11849 | # Compute $ac_file's index in $config_headers. |
11850 | _am_stamp_count=1 | |
11851 | for _am_header in $config_headers :; do | |
11852 | case $_am_header in | |
11853 | $ac_file | $ac_file:* ) | |
11854 | break ;; | |
11855 | * ) | |
11856 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
11857 | esac | |
11858 | done | |
a8b2ad8d | 11859 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
ec1a68c8 | 11860 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11861 | X$ac_file : 'X\(//\)[^/]' \| \ | |
11862 | X$ac_file : 'X\(//\)$' \| \ | |
a8b2ad8d | 11863 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11864 | echo X$ac_file | |
a8b2ad8d | 11865 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11866 | s//\1/ | |
11867 | q | |
11868 | } | |
11869 | /^X\(\/\/\)[^/].*/{ | |
11870 | s//\1/ | |
11871 | q | |
11872 | } | |
11873 | /^X\(\/\/\)$/{ | |
11874 | s//\1/ | |
11875 | q | |
11876 | } | |
11877 | /^X\(\/\).*/{ | |
11878 | s//\1/ | |
11879 | q | |
11880 | } | |
11881 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
11882 | ;; | |
ec1a68c8 | 11883 | |
a8b2ad8d | 11884 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
11885 | echo "$as_me: executing $ac_file commands" >&6;} | |
11886 | ;; | |
11887 | esac | |
ec1a68c8 | 11888 | |
11889 | ||
a8b2ad8d | 11890 | case $ac_file$ac_mode in |
11891 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
ec1a68c8 | 11892 | # Strip MF so we end up with the name of the file. |
11893 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
11894 | # Check whether this is an Automake generated Makefile or not. | |
11895 | # We used to match only the files named `Makefile.in', but | |
11896 | # some people rename them; so instead we look at the file content. | |
11897 | # Grep'ing the first line is not enough: some people post-process | |
11898 | # each Makefile.in and add a new line on top of each file to say so. | |
11899 | # So let's grep whole file. | |
11900 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
a8b2ad8d | 11901 | dirpart=`$as_dirname -- "$mf" || |
ec1a68c8 | 11902 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11903 | X"$mf" : 'X\(//\)[^/]' \| \ | |
11904 | X"$mf" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11905 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11906 | echo X"$mf" | |
a8b2ad8d | 11907 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11908 | s//\1/ | |
11909 | q | |
11910 | } | |
11911 | /^X\(\/\/\)[^/].*/{ | |
11912 | s//\1/ | |
11913 | q | |
11914 | } | |
11915 | /^X\(\/\/\)$/{ | |
11916 | s//\1/ | |
11917 | q | |
11918 | } | |
11919 | /^X\(\/\).*/{ | |
11920 | s//\1/ | |
11921 | q | |
11922 | } | |
11923 | s/.*/./; q'` | |
ec1a68c8 | 11924 | else |
11925 | continue | |
11926 | fi | |
11927 | # Extract the definition of DEPDIR, am__include, and am__quote | |
11928 | # from the Makefile without running `make'. | |
11929 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
11930 | test -z "$DEPDIR" && continue | |
11931 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
11932 | test -z "am__include" && continue | |
11933 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
11934 | # When using ansi2knr, U may be empty or an underscore; expand it | |
11935 | U=`sed -n 's/^U = //p' < "$mf"` | |
11936 | # Find all dependency output files, they are included files with | |
11937 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
11938 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
11939 | # expansion. | |
11940 | for file in `sed -n " | |
11941 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
11942 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
11943 | # Make sure the directory exists. | |
11944 | test -f "$dirpart/$file" && continue | |
a8b2ad8d | 11945 | fdir=`$as_dirname -- "$file" || |
ec1a68c8 | 11946 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11947 | X"$file" : 'X\(//\)[^/]' \| \ | |
11948 | X"$file" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11949 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11950 | echo X"$file" | |
a8b2ad8d | 11951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11952 | s//\1/ | |
11953 | q | |
11954 | } | |
11955 | /^X\(\/\/\)[^/].*/{ | |
11956 | s//\1/ | |
11957 | q | |
11958 | } | |
11959 | /^X\(\/\/\)$/{ | |
11960 | s//\1/ | |
11961 | q | |
11962 | } | |
11963 | /^X\(\/\).*/{ | |
11964 | s//\1/ | |
11965 | q | |
11966 | } | |
11967 | s/.*/./; q'` | |
11968 | { as_dir=$dirpart/$fdir | |
11969 | case $as_dir in #( | |
11970 | -*) as_dir=./$as_dir;; | |
11971 | esac | |
11972 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ec1a68c8 | 11973 | as_dirs= |
a8b2ad8d | 11974 | while :; do |
11975 | case $as_dir in #( | |
11976 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
11977 | *) as_qdir=$as_dir;; | |
11978 | esac | |
11979 | as_dirs="'$as_qdir' $as_dirs" | |
11980 | as_dir=`$as_dirname -- "$as_dir" || | |
ec1a68c8 | 11981 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11982 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11983 | X"$as_dir" : 'X\(//\)$' \| \ | |
a8b2ad8d | 11984 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec1a68c8 | 11985 | echo X"$as_dir" | |
a8b2ad8d | 11986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11987 | s//\1/ | |
11988 | q | |
11989 | } | |
11990 | /^X\(\/\/\)[^/].*/{ | |
11991 | s//\1/ | |
11992 | q | |
11993 | } | |
11994 | /^X\(\/\/\)$/{ | |
11995 | s//\1/ | |
11996 | q | |
11997 | } | |
11998 | /^X\(\/\).*/{ | |
11999 | s//\1/ | |
12000 | q | |
12001 | } | |
12002 | s/.*/./; q'` | |
12003 | test -d "$as_dir" && break | |
ec1a68c8 | 12004 | done |
a8b2ad8d | 12005 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
12006 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
12007 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ec1a68c8 | 12008 | { (exit 1); exit 1; }; }; } |
ec1a68c8 | 12009 | # echo "creating $dirpart/$file" |
12010 | echo '# dummy' > "$dirpart/$file" | |
12011 | done | |
12012 | done | |
12013 | ;; | |
a8b2ad8d | 12014 | |
ec1a68c8 | 12015 | esac |
a8b2ad8d | 12016 | done # for ac_tag |
b3076f16 | 12017 | |
b3076f16 | 12018 | |
12019 | { (exit 0); exit 0; } | |
12020 | _ACEOF | |
12021 | chmod +x $CONFIG_STATUS | |
12022 | ac_clean_files=$ac_clean_files_save | |
12023 | ||
12024 | ||
12025 | # configure is writing to config.log, and then calls config.status. | |
12026 | # config.status does its own redirection, appending to config.log. | |
12027 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12028 | # by configure, so config.status won't be able to write to it; its | |
12029 | # output is simply discarded. So we exec the FD to /dev/null, | |
12030 | # effectively closing config.log, so it can be properly (re)opened and | |
12031 | # appended to by config.status. When coming back to configure, we | |
12032 | # need to make the FD available again. | |
12033 | if test "$no_create" != yes; then | |
12034 | ac_cs_success=: | |
12035 | ac_config_status_args= | |
12036 | test "$silent" = yes && | |
12037 | ac_config_status_args="$ac_config_status_args --quiet" | |
12038 | exec 5>/dev/null | |
12039 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12040 | exec 5>>config.log | |
12041 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12042 | # would make configure fail if this is the last instruction. | |
12043 | $ac_cs_success || { (exit 1); exit 1; } | |
12044 | fi | |
12045 | ||
5b1166fd | 12046 | |
12047 | ||
12048 | ||
12049 | cat <<EOF | |
12050 | ||
12051 | Configuration summary | |
12052 | ===================== | |
12053 | ||
12054 | X3 is now configured as follows: | |
12055 | ||
12056 | * Compilation environment | |
12057 | ||
12058 | CC = $CC | |
12059 | CFLAGS = $CFLAGS | |
12060 | CPP = $CPP | |
12061 | CPPFLAGS = $CPPFLAGS | |
12062 | LD = $LD | |
12063 | LDFLAGS = $LDFLAGS | |
12064 | LIBS = $LIBS | |
12065 | ||
12066 | * X3 options | |
12067 | ||
a8b2ad8d | 12068 | Debug: $x3_debug |
12069 | Extra Modules: $module_list | |
12070 | Malloc: $x3_malloc | |
12071 | Protocol: $x3_ircd | |
12072 | Regexp Library TRE $tre_version | |
12073 | Coredumper Library Coredumper $core_version | |
8da89711 | 12074 | $ldap_message |
5b1166fd | 12075 | |
a8b2ad8d | 12076 | Install to: $prefix |
35305a49 | 12077 | |
5b1166fd | 12078 | Now you can proceed with compiling X3 |
12079 | ||
12080 | EOF | |
12081 |