]>
Commit | Line | Data |
---|---|---|
fe5b0fdd DH |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
76c944da | 3 | # Generated by GNU Autoconf 2.61 for DHCP 4.0.0a1. |
fe5b0fdd DH |
4 | # |
5 | # Report bugs to <dhcp-users@isc.org>. | |
6 | # | |
76c944da SK |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
fe5b0fdd DH |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
8c816ebb | 14 | |
76c944da SK |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
fe5b0fdd DH |
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+"$@"}'='"$@"' | |
76c944da SK |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
fe5b0fdd | 53 | fi |
fe5b0fdd | 54 | |
fe5b0fdd DH |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
76c944da SK |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
fe5b0fdd | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
76c944da SK |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
fe5b0fdd DH |
100 | PS1='$ ' |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
76c944da | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
fe5b0fdd DH |
114 | fi |
115 | done | |
116 | ||
117 | # Required to use basename. | |
76c944da SK |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
120 | as_expr=expr |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
76c944da | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
126 | as_basename=basename |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
76c944da | 133 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ | |
76c944da | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 137 | echo X/"$0" | |
76c944da SK |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
fe5b0fdd | 151 | |
76c944da SK |
152 | # CDPATH. |
153 | $as_unset CDPATH | |
fe5b0fdd | 154 | |
273bfdc3 | 155 | |
76c944da SK |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
273bfdc3 DH |
161 | fi |
162 | ||
76c944da SK |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
273bfdc3 | 179 | |
76c944da SK |
180 | exitcode=0 |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
273bfdc3 | 187 | |
76c944da SK |
188 | if as_func_failure; then |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
fe5b0fdd | 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
e62b1eb3 | 224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
fe5b0fdd DH |
225 | do |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
76c944da | 228 | case $as_dir in |
fe5b0fdd | 229 | /*) |
76c944da SK |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
273bfdc3 DH |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO | |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
76c944da SK |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
fe5b0fdd DH |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
76c944da SK |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
fe5b0fdd | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
76c944da SK |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
fe5b0fdd | 444 | sed ' |
76c944da SK |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
fe5b0fdd | 449 | N |
76c944da SK |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
fe5b0fdd | 452 | t loop |
76c944da | 453 | s/-\n.*// |
fe5b0fdd | 454 | ' >$as_me.lineno && |
76c944da | 455 | chmod +x "$as_me.lineno" || |
fe5b0fdd DH |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
76c944da SK |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
fe5b0fdd DH |
463 | # Exit status is that of the last command. |
464 | exit | |
465 | } | |
466 | ||
467 | ||
76c944da SK |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
fe5b0fdd DH |
483 | esac |
484 | ||
76c944da SK |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
487 | as_expr=expr |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
76c944da SK |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
fe5b0fdd DH |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
76c944da SK |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
fe5b0fdd DH |
507 | as_ln_s='cp -p' |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
76c944da SK |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
fe5b0fdd DH |
515 | |
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
76c944da SK |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
fe5b0fdd DH |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
553 | ||
76c944da | 554 | exec 7<&0 </dev/null 6>&1 |
fe5b0fdd DH |
555 | |
556 | # Name of the host. | |
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
558 | # so uname gets run too. | |
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
560 | ||
561 | # | |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
76c944da | 565 | ac_clean_files= |
fe5b0fdd | 566 | ac_config_libobj_dir=. |
76c944da | 567 | LIBOBJS= |
fe5b0fdd DH |
568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
574 | # Identity of this package. | |
575 | PACKAGE_NAME='DHCP' | |
576 | PACKAGE_TARNAME='dhcp' | |
e62b1eb3 DH |
577 | PACKAGE_VERSION='4.0.0a1' |
578 | PACKAGE_STRING='DHCP 4.0.0a1' | |
fe5b0fdd DH |
579 | PACKAGE_BUGREPORT='dhcp-users@isc.org' |
580 | ||
581 | # Factoring default headers for most tests. | |
582 | ac_includes_default="\ | |
583 | #include <stdio.h> | |
76c944da | 584 | #ifdef HAVE_SYS_TYPES_H |
fe5b0fdd DH |
585 | # include <sys/types.h> |
586 | #endif | |
76c944da | 587 | #ifdef HAVE_SYS_STAT_H |
fe5b0fdd DH |
588 | # include <sys/stat.h> |
589 | #endif | |
76c944da | 590 | #ifdef STDC_HEADERS |
fe5b0fdd DH |
591 | # include <stdlib.h> |
592 | # include <stddef.h> | |
593 | #else | |
76c944da | 594 | # ifdef HAVE_STDLIB_H |
fe5b0fdd DH |
595 | # include <stdlib.h> |
596 | # endif | |
597 | #endif | |
76c944da SK |
598 | #ifdef HAVE_STRING_H |
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
fe5b0fdd DH |
600 | # include <memory.h> |
601 | # endif | |
602 | # include <string.h> | |
603 | #endif | |
76c944da | 604 | #ifdef HAVE_STRINGS_H |
fe5b0fdd DH |
605 | # include <strings.h> |
606 | #endif | |
76c944da | 607 | #ifdef HAVE_INTTYPES_H |
fe5b0fdd | 608 | # include <inttypes.h> |
fe5b0fdd | 609 | #endif |
76c944da SK |
610 | #ifdef HAVE_STDINT_H |
611 | # include <stdint.h> | |
612 | #endif | |
613 | #ifdef HAVE_UNISTD_H | |
fe5b0fdd DH |
614 | # include <unistd.h> |
615 | #endif" | |
616 | ||
76c944da SK |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | INSTALL_PROGRAM | |
655 | INSTALL_SCRIPT | |
656 | INSTALL_DATA | |
657 | CYGPATH_W | |
658 | PACKAGE | |
659 | VERSION | |
660 | ACLOCAL | |
661 | AUTOCONF | |
662 | AUTOMAKE | |
663 | AUTOHEADER | |
664 | MAKEINFO | |
665 | install_sh | |
666 | STRIP | |
667 | INSTALL_STRIP_PROGRAM | |
668 | mkdir_p | |
669 | AWK | |
670 | SET_MAKE | |
671 | am__leading_dot | |
672 | AMTAR | |
673 | am__tar | |
674 | am__untar | |
675 | CC | |
676 | CFLAGS | |
677 | LDFLAGS | |
678 | CPPFLAGS | |
679 | ac_ct_CC | |
680 | EXEEXT | |
681 | OBJEXT | |
682 | DEPDIR | |
683 | am__include | |
684 | am__quote | |
685 | AMDEP_TRUE | |
686 | AMDEP_FALSE | |
687 | AMDEPBACKSLASH | |
688 | CCDEPMODE | |
689 | am__fastdepCC_TRUE | |
690 | am__fastdepCC_FALSE | |
691 | RANLIB | |
692 | byte_order | |
693 | CPP | |
694 | GREP | |
695 | EGREP | |
696 | LIBOBJS | |
697 | LTLIBOBJS' | |
fe5b0fdd | 698 | ac_subst_files='' |
76c944da SK |
699 | ac_precious_vars='build_alias |
700 | host_alias | |
701 | target_alias | |
702 | CC | |
703 | CFLAGS | |
704 | LDFLAGS | |
705 | LIBS | |
706 | CPPFLAGS | |
707 | CPP' | |
708 | ||
fe5b0fdd DH |
709 | |
710 | # Initialize some variables set by options. | |
711 | ac_init_help= | |
712 | ac_init_version=false | |
713 | # The variables have the same names as the options, with | |
714 | # dashes changed to underlines. | |
715 | cache_file=/dev/null | |
716 | exec_prefix=NONE | |
717 | no_create= | |
718 | no_recursion= | |
719 | prefix=NONE | |
720 | program_prefix=NONE | |
721 | program_suffix=NONE | |
722 | program_transform_name=s,x,x, | |
723 | silent= | |
724 | site= | |
725 | srcdir= | |
726 | verbose= | |
727 | x_includes=NONE | |
728 | x_libraries=NONE | |
729 | ||
730 | # Installation directory options. | |
731 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
732 | # and all the variables that are supposed to be based on exec_prefix | |
733 | # by default will actually change. | |
734 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
76c944da | 735 | # (The list follows the same order as the GNU Coding Standards.) |
fe5b0fdd DH |
736 | bindir='${exec_prefix}/bin' |
737 | sbindir='${exec_prefix}/sbin' | |
738 | libexecdir='${exec_prefix}/libexec' | |
76c944da SK |
739 | datarootdir='${prefix}/share' |
740 | datadir='${datarootdir}' | |
fe5b0fdd DH |
741 | sysconfdir='${prefix}/etc' |
742 | sharedstatedir='${prefix}/com' | |
743 | localstatedir='${prefix}/var' | |
744 | includedir='${prefix}/include' | |
745 | oldincludedir='/usr/include' | |
76c944da SK |
746 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
747 | infodir='${datarootdir}/info' | |
748 | htmldir='${docdir}' | |
749 | dvidir='${docdir}' | |
750 | pdfdir='${docdir}' | |
751 | psdir='${docdir}' | |
752 | libdir='${exec_prefix}/lib' | |
753 | localedir='${datarootdir}/locale' | |
754 | mandir='${datarootdir}/man' | |
fe5b0fdd DH |
755 | |
756 | ac_prev= | |
76c944da | 757 | ac_dashdash= |
fe5b0fdd DH |
758 | for ac_option |
759 | do | |
760 | # If the previous option needs an argument, assign it. | |
761 | if test -n "$ac_prev"; then | |
76c944da | 762 | eval $ac_prev=\$ac_option |
fe5b0fdd DH |
763 | ac_prev= |
764 | continue | |
765 | fi | |
766 | ||
76c944da SK |
767 | case $ac_option in |
768 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
769 | *) ac_optarg=yes ;; | |
770 | esac | |
fe5b0fdd DH |
771 | |
772 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
773 | ||
76c944da SK |
774 | case $ac_dashdash$ac_option in |
775 | --) | |
776 | ac_dashdash=yes ;; | |
fe5b0fdd DH |
777 | |
778 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
779 | ac_prev=bindir ;; | |
780 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
781 | bindir=$ac_optarg ;; | |
782 | ||
783 | -build | --build | --buil | --bui | --bu) | |
784 | ac_prev=build_alias ;; | |
785 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
786 | build_alias=$ac_optarg ;; | |
787 | ||
788 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
789 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
790 | ac_prev=cache_file ;; | |
791 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
792 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
793 | cache_file=$ac_optarg ;; | |
794 | ||
795 | --config-cache | -C) | |
796 | cache_file=config.cache ;; | |
797 | ||
76c944da | 798 | -datadir | --datadir | --datadi | --datad) |
fe5b0fdd | 799 | ac_prev=datadir ;; |
76c944da | 800 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
fe5b0fdd DH |
801 | datadir=$ac_optarg ;; |
802 | ||
76c944da SK |
803 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
804 | | --dataroo | --dataro | --datar) | |
805 | ac_prev=datarootdir ;; | |
806 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
807 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
808 | datarootdir=$ac_optarg ;; | |
809 | ||
fe5b0fdd DH |
810 | -disable-* | --disable-*) |
811 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
812 | # Reject names that are not valid shell variable names. | |
76c944da | 813 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
814 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
815 | { (exit 1); exit 1; }; } | |
76c944da SK |
816 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
817 | eval enable_$ac_feature=no ;; | |
818 | ||
819 | -docdir | --docdir | --docdi | --doc | --do) | |
820 | ac_prev=docdir ;; | |
821 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
822 | docdir=$ac_optarg ;; | |
823 | ||
824 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
825 | ac_prev=dvidir ;; | |
826 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
827 | dvidir=$ac_optarg ;; | |
fe5b0fdd DH |
828 | |
829 | -enable-* | --enable-*) | |
830 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
831 | # Reject names that are not valid shell variable names. | |
76c944da | 832 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
833 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
834 | { (exit 1); exit 1; }; } | |
76c944da SK |
835 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
836 | eval enable_$ac_feature=\$ac_optarg ;; | |
fe5b0fdd DH |
837 | |
838 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
839 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
840 | | --exec | --exe | --ex) | |
841 | ac_prev=exec_prefix ;; | |
842 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
843 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
844 | | --exec=* | --exe=* | --ex=*) | |
845 | exec_prefix=$ac_optarg ;; | |
846 | ||
847 | -gas | --gas | --ga | --g) | |
848 | # Obsolete; use --with-gas. | |
849 | with_gas=yes ;; | |
850 | ||
851 | -help | --help | --hel | --he | -h) | |
852 | ac_init_help=long ;; | |
853 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
854 | ac_init_help=recursive ;; | |
855 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
856 | ac_init_help=short ;; | |
857 | ||
858 | -host | --host | --hos | --ho) | |
859 | ac_prev=host_alias ;; | |
860 | -host=* | --host=* | --hos=* | --ho=*) | |
861 | host_alias=$ac_optarg ;; | |
862 | ||
76c944da SK |
863 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
864 | ac_prev=htmldir ;; | |
865 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
866 | | --ht=*) | |
867 | htmldir=$ac_optarg ;; | |
868 | ||
fe5b0fdd DH |
869 | -includedir | --includedir | --includedi | --included | --include \ |
870 | | --includ | --inclu | --incl | --inc) | |
871 | ac_prev=includedir ;; | |
872 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
873 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
874 | includedir=$ac_optarg ;; | |
875 | ||
876 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
877 | ac_prev=infodir ;; | |
878 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
879 | infodir=$ac_optarg ;; | |
880 | ||
881 | -libdir | --libdir | --libdi | --libd) | |
882 | ac_prev=libdir ;; | |
883 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
884 | libdir=$ac_optarg ;; | |
885 | ||
886 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
887 | | --libexe | --libex | --libe) | |
888 | ac_prev=libexecdir ;; | |
889 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
890 | | --libexe=* | --libex=* | --libe=*) | |
891 | libexecdir=$ac_optarg ;; | |
892 | ||
76c944da SK |
893 | -localedir | --localedir | --localedi | --localed | --locale) |
894 | ac_prev=localedir ;; | |
895 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
896 | localedir=$ac_optarg ;; | |
897 | ||
fe5b0fdd | 898 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
76c944da | 899 | | --localstate | --localstat | --localsta | --localst | --locals) |
fe5b0fdd DH |
900 | ac_prev=localstatedir ;; |
901 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
76c944da | 902 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
fe5b0fdd DH |
903 | localstatedir=$ac_optarg ;; |
904 | ||
905 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
906 | ac_prev=mandir ;; | |
907 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
908 | mandir=$ac_optarg ;; | |
909 | ||
910 | -nfp | --nfp | --nf) | |
911 | # Obsolete; use --without-fp. | |
912 | with_fp=no ;; | |
913 | ||
914 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
915 | | --no-cr | --no-c | -n) | |
916 | no_create=yes ;; | |
917 | ||
918 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
919 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
920 | no_recursion=yes ;; | |
921 | ||
922 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
923 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
924 | | --oldin | --oldi | --old | --ol | --o) | |
925 | ac_prev=oldincludedir ;; | |
926 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
927 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
928 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
929 | oldincludedir=$ac_optarg ;; | |
930 | ||
931 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
932 | ac_prev=prefix ;; | |
933 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
934 | prefix=$ac_optarg ;; | |
935 | ||
936 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
937 | | --program-pre | --program-pr | --program-p) | |
938 | ac_prev=program_prefix ;; | |
939 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
940 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
941 | program_prefix=$ac_optarg ;; | |
942 | ||
943 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
944 | | --program-suf | --program-su | --program-s) | |
945 | ac_prev=program_suffix ;; | |
946 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
947 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
948 | program_suffix=$ac_optarg ;; | |
949 | ||
950 | -program-transform-name | --program-transform-name \ | |
951 | | --program-transform-nam | --program-transform-na \ | |
952 | | --program-transform-n | --program-transform- \ | |
953 | | --program-transform | --program-transfor \ | |
954 | | --program-transfo | --program-transf \ | |
955 | | --program-trans | --program-tran \ | |
956 | | --progr-tra | --program-tr | --program-t) | |
957 | ac_prev=program_transform_name ;; | |
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 | program_transform_name=$ac_optarg ;; | |
966 | ||
76c944da SK |
967 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
968 | ac_prev=pdfdir ;; | |
969 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
970 | pdfdir=$ac_optarg ;; | |
971 | ||
972 | -psdir | --psdir | --psdi | --psd | --ps) | |
973 | ac_prev=psdir ;; | |
974 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
975 | psdir=$ac_optarg ;; | |
976 | ||
fe5b0fdd DH |
977 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
978 | | -silent | --silent | --silen | --sile | --sil) | |
979 | silent=yes ;; | |
980 | ||
981 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
982 | ac_prev=sbindir ;; | |
983 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
984 | | --sbi=* | --sb=*) | |
985 | sbindir=$ac_optarg ;; | |
986 | ||
987 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
988 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
989 | | --sharedst | --shareds | --shared | --share | --shar \ | |
990 | | --sha | --sh) | |
991 | ac_prev=sharedstatedir ;; | |
992 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
993 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
994 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
995 | | --sha=* | --sh=*) | |
996 | sharedstatedir=$ac_optarg ;; | |
997 | ||
998 | -site | --site | --sit) | |
999 | ac_prev=site ;; | |
1000 | -site=* | --site=* | --sit=*) | |
1001 | site=$ac_optarg ;; | |
1002 | ||
1003 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1004 | ac_prev=srcdir ;; | |
1005 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1006 | srcdir=$ac_optarg ;; | |
1007 | ||
1008 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1009 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1010 | ac_prev=sysconfdir ;; | |
1011 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1012 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1013 | sysconfdir=$ac_optarg ;; | |
1014 | ||
1015 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1016 | ac_prev=target_alias ;; | |
1017 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1018 | target_alias=$ac_optarg ;; | |
1019 | ||
1020 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1021 | verbose=yes ;; | |
1022 | ||
1023 | -version | --version | --versio | --versi | --vers | -V) | |
1024 | ac_init_version=: ;; | |
1025 | ||
1026 | -with-* | --with-*) | |
1027 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1028 | # Reject names that are not valid shell variable names. | |
76c944da | 1029 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
1030 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1031 | { (exit 1); exit 1; }; } | |
76c944da SK |
1032 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1033 | eval with_$ac_package=\$ac_optarg ;; | |
fe5b0fdd DH |
1034 | |
1035 | -without-* | --without-*) | |
1036 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1037 | # Reject names that are not valid shell variable names. | |
76c944da | 1038 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
fe5b0fdd DH |
1039 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1040 | { (exit 1); exit 1; }; } | |
76c944da SK |
1041 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1042 | eval with_$ac_package=no ;; | |
fe5b0fdd DH |
1043 | |
1044 | --x) | |
1045 | # Obsolete; use --with-x. | |
1046 | with_x=yes ;; | |
1047 | ||
1048 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1049 | | --x-incl | --x-inc | --x-in | --x-i) | |
1050 | ac_prev=x_includes ;; | |
1051 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1052 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1053 | x_includes=$ac_optarg ;; | |
1054 | ||
1055 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1056 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1057 | ac_prev=x_libraries ;; | |
1058 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1059 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1060 | x_libraries=$ac_optarg ;; | |
1061 | ||
1062 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1063 | Try \`$0 --help' for more information." >&2 | |
1064 | { (exit 1); exit 1; }; } | |
1065 | ;; | |
1066 | ||
1067 | *=*) | |
1068 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1069 | # Reject names that are not valid shell variable names. | |
1070 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1071 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1072 | { (exit 1); exit 1; }; } | |
76c944da | 1073 | eval $ac_envvar=\$ac_optarg |
fe5b0fdd DH |
1074 | export $ac_envvar ;; |
1075 | ||
1076 | *) | |
1077 | # FIXME: should be removed in autoconf 3.0. | |
1078 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1079 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1080 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1081 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1082 | ;; | |
1083 | ||
1084 | esac | |
1085 | done | |
1086 | ||
1087 | if test -n "$ac_prev"; then | |
1088 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1089 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1090 | { (exit 1); exit 1; }; } | |
1091 | fi | |
1092 | ||
76c944da SK |
1093 | # Be sure to have absolute directory names. |
1094 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1095 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1096 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1097 | libdir localedir mandir | |
c9a1db5e | 1098 | do |
76c944da | 1099 | eval ac_val=\$$ac_var |
c9a1db5e | 1100 | case $ac_val in |
76c944da SK |
1101 | [\\/$]* | ?:[\\/]* ) continue;; |
1102 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
fe5b0fdd | 1103 | esac |
76c944da SK |
1104 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1105 | { (exit 1); exit 1; }; } | |
fe5b0fdd DH |
1106 | done |
1107 | ||
1108 | # There might be people who depend on the old broken behavior: `$host' | |
1109 | # used to hold the argument of --host etc. | |
1110 | # FIXME: To remove some day. | |
1111 | build=$build_alias | |
1112 | host=$host_alias | |
1113 | target=$target_alias | |
1114 | ||
1115 | # FIXME: To remove some day. | |
1116 | if test "x$host_alias" != x; then | |
1117 | if test "x$build_alias" = x; then | |
1118 | cross_compiling=maybe | |
1119 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1120 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1121 | elif test "x$build_alias" != "x$host_alias"; then | |
1122 | cross_compiling=yes | |
1123 | fi | |
1124 | fi | |
1125 | ||
1126 | ac_tool_prefix= | |
1127 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1128 | ||
1129 | test "$silent" = yes && exec 6>/dev/null | |
1130 | ||
1131 | ||
76c944da SK |
1132 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1133 | ac_ls_di=`ls -di .` && | |
1134 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1135 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1136 | { (exit 1); exit 1; }; } | |
1137 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1138 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1139 | { (exit 1); exit 1; }; } | |
1140 | ||
1141 | ||
fe5b0fdd DH |
1142 | # Find the source files, if location was not specified. |
1143 | if test -z "$srcdir"; then | |
1144 | ac_srcdir_defaulted=yes | |
76c944da SK |
1145 | # Try the directory containing this script, then the parent directory. |
1146 | ac_confdir=`$as_dirname -- "$0" || | |
fe5b0fdd DH |
1147 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1148 | X"$0" : 'X\(//\)[^/]' \| \ | |
1149 | X"$0" : 'X\(//\)$' \| \ | |
76c944da | 1150 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 1151 | echo X"$0" | |
76c944da SK |
1152 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1153 | s//\1/ | |
1154 | q | |
1155 | } | |
1156 | /^X\(\/\/\)[^/].*/{ | |
1157 | s//\1/ | |
1158 | q | |
1159 | } | |
1160 | /^X\(\/\/\)$/{ | |
1161 | s//\1/ | |
1162 | q | |
1163 | } | |
1164 | /^X\(\/\).*/{ | |
1165 | s//\1/ | |
1166 | q | |
1167 | } | |
1168 | s/.*/./; q'` | |
fe5b0fdd | 1169 | srcdir=$ac_confdir |
76c944da | 1170 | if test ! -r "$srcdir/$ac_unique_file"; then |
fe5b0fdd DH |
1171 | srcdir=.. |
1172 | fi | |
1173 | else | |
1174 | ac_srcdir_defaulted=no | |
1175 | fi | |
76c944da SK |
1176 | if test ! -r "$srcdir/$ac_unique_file"; then |
1177 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1178 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
e62b1eb3 | 1179 | { (exit 1); exit 1; }; } |
c9a1db5e | 1180 | fi |
76c944da SK |
1181 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1182 | ac_abs_confdir=`( | |
1183 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
c9a1db5e | 1184 | { (exit 1); exit 1; }; } |
76c944da SK |
1185 | pwd)` |
1186 | # When building in place, set srcdir=. | |
1187 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1188 | srcdir=. | |
1189 | fi | |
1190 | # Remove unnecessary trailing slashes from srcdir. | |
1191 | # Double slashes in file names in object file debugging info | |
1192 | # mess up M-x gdb in Emacs. | |
1193 | case $srcdir in | |
1194 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1195 | esac | |
1196 | for ac_var in $ac_precious_vars; do | |
1197 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1198 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1199 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1200 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1201 | done | |
fe5b0fdd DH |
1202 | |
1203 | # | |
1204 | # Report the --help message. | |
1205 | # | |
1206 | if test "$ac_init_help" = "long"; then | |
1207 | # Omit some internal or obsolete options to make the list less imposing. | |
1208 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1209 | cat <<_ACEOF | |
e62b1eb3 | 1210 | \`configure' configures DHCP 4.0.0a1 to adapt to many kinds of systems. |
fe5b0fdd DH |
1211 | |
1212 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1213 | ||
1214 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1215 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1216 | ||
1217 | Defaults for the options are specified in brackets. | |
1218 | ||
1219 | Configuration: | |
1220 | -h, --help display this help and exit | |
1221 | --help=short display options specific to this package | |
1222 | --help=recursive display the short help of all the included packages | |
1223 | -V, --version display version information and exit | |
1224 | -q, --quiet, --silent do not print \`checking...' messages | |
1225 | --cache-file=FILE cache test results in FILE [disabled] | |
1226 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1227 | -n, --no-create do not create output files | |
1228 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1229 | ||
1230 | Installation directories: | |
1231 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1232 | [$ac_default_prefix] | |
1233 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1234 | [PREFIX] | |
1235 | ||
1236 | By default, \`make install' will install all the files in | |
1237 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1238 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1239 | for instance \`--prefix=\$HOME'. | |
1240 | ||
1241 | For better control, use the options below. | |
1242 | ||
1243 | Fine tuning of the installation directories: | |
1244 | --bindir=DIR user executables [EPREFIX/bin] | |
1245 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1246 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1247 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1248 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1249 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1250 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1251 | --includedir=DIR C header files [PREFIX/include] | |
1252 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
76c944da SK |
1253 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1254 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1255 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1256 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1257 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1258 | --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp] | |
1259 | --htmldir=DIR html documentation [DOCDIR] | |
1260 | --dvidir=DIR dvi documentation [DOCDIR] | |
1261 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1262 | --psdir=DIR ps documentation [DOCDIR] | |
fe5b0fdd DH |
1263 | _ACEOF |
1264 | ||
1265 | cat <<\_ACEOF | |
1266 | ||
1267 | Program names: | |
1268 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1269 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1270 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1271 | _ACEOF | |
1272 | fi | |
1273 | ||
1274 | if test -n "$ac_init_help"; then | |
1275 | case $ac_init_help in | |
e62b1eb3 | 1276 | short | recursive ) echo "Configuration of DHCP 4.0.0a1:";; |
fe5b0fdd DH |
1277 | esac |
1278 | cat <<\_ACEOF | |
1279 | ||
1280 | Optional Features: | |
1281 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1282 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1283 | --disable-dependency-tracking speeds up one-time build | |
1284 | --enable-dependency-tracking do not reject slow dependency extractors | |
1285 | --enable-dhcpv6 enable support for DHCPv6 (default is NO) | |
1286 | ||
1287 | Optional Packages: | |
1288 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1289 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1290 | --with-srv-lease-file=PATH | |
1291 | File for dhcpd leases (default is | |
1292 | LOCALSTATEDIR/db/dhcpd.leases) | |
1293 | --with-cli-lease-file=PATH | |
1294 | File for dhclient leases (default is | |
1295 | LOCALSTATEDIR/db/dhclient.leases) | |
1296 | --with-srv-pid-file=PATH | |
1297 | File for dhcpd process information (default is | |
1298 | LOCALSTATEDIR/run/dhcpd.pid) | |
1299 | --with-cli-pid-file=PATH | |
1300 | File for dhclient process information (default is | |
1301 | LOCALSTATEDIR/run/dhclient.pid) | |
1302 | --with-relay-pid-file=PATH | |
1303 | File for dhcrelay process information (default is | |
1304 | LOCALSTATEDIR/run/dhcrelay.pid) | |
1305 | ||
1306 | Some influential environment variables: | |
1307 | CC C compiler command | |
1308 | CFLAGS C compiler flags | |
1309 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1310 | nonstandard directory <lib dir> | |
76c944da SK |
1311 | LIBS libraries to pass to the linker, e.g. -l<library> |
1312 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1313 | you have headers in a nonstandard directory <include dir> | |
fe5b0fdd DH |
1314 | CPP C preprocessor |
1315 | ||
1316 | Use these variables to override the choices made by `configure' or to help | |
1317 | it to find libraries and programs with nonstandard names/locations. | |
1318 | ||
1319 | Report bugs to <dhcp-users@isc.org>. | |
1320 | _ACEOF | |
76c944da | 1321 | ac_status=$? |
fe5b0fdd DH |
1322 | fi |
1323 | ||
1324 | if test "$ac_init_help" = "recursive"; then | |
1325 | # If there are subdirs, report their specific --help. | |
1326 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
76c944da | 1327 | test -d "$ac_dir" || continue |
fe5b0fdd DH |
1328 | ac_builddir=. |
1329 | ||
76c944da SK |
1330 | case "$ac_dir" in |
1331 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1332 | *) | |
fe5b0fdd | 1333 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
76c944da SK |
1334 | # A ".." for each directory in $ac_dir_suffix. |
1335 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1336 | case $ac_top_builddir_sub in | |
1337 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1338 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1339 | esac ;; | |
1340 | esac | |
1341 | ac_abs_top_builddir=$ac_pwd | |
1342 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1343 | # for backward compatibility: | |
1344 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
1345 | |
1346 | case $srcdir in | |
76c944da | 1347 | .) # We are building in place. |
fe5b0fdd | 1348 | ac_srcdir=. |
76c944da SK |
1349 | ac_top_srcdir=$ac_top_builddir_sub |
1350 | ac_abs_top_srcdir=$ac_pwd ;; | |
1351 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 1352 | ac_srcdir=$srcdir$ac_dir_suffix; |
76c944da SK |
1353 | ac_top_srcdir=$srcdir |
1354 | ac_abs_top_srcdir=$srcdir ;; | |
1355 | *) # Relative name. | |
1356 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1357 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1358 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fe5b0fdd | 1359 | esac |
76c944da SK |
1360 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1361 | ||
1362 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1363 | # Check for guested configure. | |
1364 | if test -f "$ac_srcdir/configure.gnu"; then | |
1365 | echo && | |
1366 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1367 | elif test -f "$ac_srcdir/configure"; then | |
1368 | echo && | |
1369 | $SHELL "$ac_srcdir/configure" --help=recursive | |
fe5b0fdd DH |
1370 | else |
1371 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
76c944da SK |
1372 | fi || ac_status=$? |
1373 | cd "$ac_pwd" || { ac_status=$?; break; } | |
fe5b0fdd DH |
1374 | done |
1375 | fi | |
1376 | ||
76c944da | 1377 | test -n "$ac_init_help" && exit $ac_status |
fe5b0fdd DH |
1378 | if $ac_init_version; then |
1379 | cat <<\_ACEOF | |
e62b1eb3 | 1380 | DHCP configure 4.0.0a1 |
76c944da | 1381 | generated by GNU Autoconf 2.61 |
fe5b0fdd | 1382 | |
76c944da SK |
1383 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1384 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
fe5b0fdd DH |
1385 | This configure script is free software; the Free Software Foundation |
1386 | gives unlimited permission to copy, distribute and modify it. | |
1387 | _ACEOF | |
76c944da | 1388 | exit |
fe5b0fdd | 1389 | fi |
76c944da | 1390 | cat >config.log <<_ACEOF |
fe5b0fdd DH |
1391 | This file contains any messages produced by compilers while |
1392 | running configure, to aid debugging if configure makes a mistake. | |
1393 | ||
e62b1eb3 | 1394 | It was created by DHCP $as_me 4.0.0a1, which was |
76c944da | 1395 | generated by GNU Autoconf 2.61. Invocation command line was |
fe5b0fdd DH |
1396 | |
1397 | $ $0 $@ | |
1398 | ||
1399 | _ACEOF | |
76c944da | 1400 | exec 5>>config.log |
fe5b0fdd DH |
1401 | { |
1402 | cat <<_ASUNAME | |
1403 | ## --------- ## | |
1404 | ## Platform. ## | |
1405 | ## --------- ## | |
1406 | ||
1407 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1408 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1409 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1410 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1411 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1412 | ||
1413 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1414 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1415 | ||
1416 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1417 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1418 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
76c944da | 1419 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
fe5b0fdd DH |
1420 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1421 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1422 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1423 | ||
1424 | _ASUNAME | |
1425 | ||
1426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1427 | for as_dir in $PATH | |
1428 | do | |
1429 | IFS=$as_save_IFS | |
1430 | test -z "$as_dir" && as_dir=. | |
1431 | echo "PATH: $as_dir" | |
1432 | done | |
76c944da | 1433 | IFS=$as_save_IFS |
fe5b0fdd DH |
1434 | |
1435 | } >&5 | |
1436 | ||
1437 | cat >&5 <<_ACEOF | |
1438 | ||
1439 | ||
1440 | ## ----------- ## | |
1441 | ## Core tests. ## | |
1442 | ## ----------- ## | |
1443 | ||
1444 | _ACEOF | |
1445 | ||
1446 | ||
1447 | # Keep a trace of the command line. | |
1448 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1449 | # Strip out --silent because we don't want to record it for future runs. | |
1450 | # Also quote any args containing shell meta-characters. | |
1451 | # Make two passes to allow for proper duplicate-argument suppression. | |
1452 | ac_configure_args= | |
1453 | ac_configure_args0= | |
1454 | ac_configure_args1= | |
1455 | ac_must_keep_next=false | |
1456 | for ac_pass in 1 2 | |
1457 | do | |
1458 | for ac_arg | |
1459 | do | |
1460 | case $ac_arg in | |
1461 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1462 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1463 | | -silent | --silent | --silen | --sile | --sil) | |
1464 | continue ;; | |
76c944da | 1465 | *\'*) |
fe5b0fdd DH |
1466 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1467 | esac | |
1468 | case $ac_pass in | |
1469 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1470 | 2) | |
1471 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1472 | if test $ac_must_keep_next = true; then | |
1473 | ac_must_keep_next=false # Got value, back to normal. | |
1474 | else | |
1475 | case $ac_arg in | |
1476 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1477 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1478 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1479 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1480 | case "$ac_configure_args0 " in | |
1481 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1482 | esac | |
1483 | ;; | |
1484 | -* ) ac_must_keep_next=true ;; | |
1485 | esac | |
1486 | fi | |
76c944da | 1487 | ac_configure_args="$ac_configure_args '$ac_arg'" |
fe5b0fdd DH |
1488 | ;; |
1489 | esac | |
1490 | done | |
1491 | done | |
1492 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1493 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1494 | ||
1495 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1496 | # config.log. We remove comments because anyway the quotes in there | |
1497 | # would cause problems or look ugly. | |
76c944da SK |
1498 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1499 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
fe5b0fdd DH |
1500 | trap 'exit_status=$? |
1501 | # Save into config.log some information that might help in debugging. | |
1502 | { | |
1503 | echo | |
1504 | ||
1505 | cat <<\_ASBOX | |
1506 | ## ---------------- ## | |
1507 | ## Cache variables. ## | |
1508 | ## ---------------- ## | |
1509 | _ASBOX | |
1510 | echo | |
1511 | # The following way of writing the cache mishandles newlines in values, | |
76c944da SK |
1512 | ( |
1513 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1514 | eval ac_val=\$$ac_var | |
1515 | case $ac_val in #( | |
1516 | *${as_nl}*) | |
1517 | case $ac_var in #( | |
1518 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1519 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1520 | esac | |
1521 | case $ac_var in #( | |
1522 | _ | IFS | as_nl) ;; #( | |
1523 | *) $as_unset $ac_var ;; | |
1524 | esac ;; | |
1525 | esac | |
1526 | done | |
fe5b0fdd | 1527 | (set) 2>&1 | |
76c944da SK |
1528 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1529 | *${as_nl}ac_space=\ *) | |
fe5b0fdd | 1530 | sed -n \ |
76c944da SK |
1531 | "s/'\''/'\''\\\\'\'''\''/g; |
1532 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1533 | ;; #( | |
fe5b0fdd | 1534 | *) |
76c944da | 1535 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fe5b0fdd | 1536 | ;; |
76c944da SK |
1537 | esac | |
1538 | sort | |
1539 | ) | |
fe5b0fdd DH |
1540 | echo |
1541 | ||
1542 | cat <<\_ASBOX | |
1543 | ## ----------------- ## | |
1544 | ## Output variables. ## | |
1545 | ## ----------------- ## | |
1546 | _ASBOX | |
1547 | echo | |
1548 | for ac_var in $ac_subst_vars | |
1549 | do | |
76c944da SK |
1550 | eval ac_val=\$$ac_var |
1551 | case $ac_val in | |
1552 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1553 | esac | |
1554 | echo "$ac_var='\''$ac_val'\''" | |
fe5b0fdd DH |
1555 | done | sort |
1556 | echo | |
1557 | ||
1558 | if test -n "$ac_subst_files"; then | |
1559 | cat <<\_ASBOX | |
76c944da SK |
1560 | ## ------------------- ## |
1561 | ## File substitutions. ## | |
1562 | ## ------------------- ## | |
fe5b0fdd DH |
1563 | _ASBOX |
1564 | echo | |
1565 | for ac_var in $ac_subst_files | |
1566 | do | |
76c944da SK |
1567 | eval ac_val=\$$ac_var |
1568 | case $ac_val in | |
1569 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1570 | esac | |
1571 | echo "$ac_var='\''$ac_val'\''" | |
fe5b0fdd DH |
1572 | done | sort |
1573 | echo | |
1574 | fi | |
1575 | ||
1576 | if test -s confdefs.h; then | |
1577 | cat <<\_ASBOX | |
1578 | ## ----------- ## | |
1579 | ## confdefs.h. ## | |
1580 | ## ----------- ## | |
1581 | _ASBOX | |
1582 | echo | |
76c944da | 1583 | cat confdefs.h |
fe5b0fdd DH |
1584 | echo |
1585 | fi | |
1586 | test "$ac_signal" != 0 && | |
1587 | echo "$as_me: caught signal $ac_signal" | |
1588 | echo "$as_me: exit $exit_status" | |
1589 | } >&5 | |
76c944da SK |
1590 | rm -f core *.core core.conftest.* && |
1591 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
fe5b0fdd | 1592 | exit $exit_status |
76c944da | 1593 | ' 0 |
fe5b0fdd DH |
1594 | for ac_signal in 1 2 13 15; do |
1595 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1596 | done | |
1597 | ac_signal=0 | |
1598 | ||
1599 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
76c944da | 1600 | rm -f -r conftest* confdefs.h |
fe5b0fdd DH |
1601 | |
1602 | # Predefined preprocessor variables. | |
1603 | ||
1604 | cat >>confdefs.h <<_ACEOF | |
1605 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1606 | _ACEOF | |
1607 | ||
1608 | ||
1609 | cat >>confdefs.h <<_ACEOF | |
1610 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1611 | _ACEOF | |
1612 | ||
1613 | ||
1614 | cat >>confdefs.h <<_ACEOF | |
1615 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1616 | _ACEOF | |
1617 | ||
1618 | ||
1619 | cat >>confdefs.h <<_ACEOF | |
1620 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1621 | _ACEOF | |
1622 | ||
1623 | ||
1624 | cat >>confdefs.h <<_ACEOF | |
1625 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1626 | _ACEOF | |
1627 | ||
1628 | ||
1629 | # Let the site file select an alternate cache file if it wants to. | |
1630 | # Prefer explicitly selected file to automatically selected ones. | |
76c944da SK |
1631 | if test -n "$CONFIG_SITE"; then |
1632 | set x "$CONFIG_SITE" | |
1633 | elif test "x$prefix" != xNONE; then | |
1634 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1635 | else | |
1636 | set x "$ac_default_prefix/share/config.site" \ | |
1637 | "$ac_default_prefix/etc/config.site" | |
fe5b0fdd | 1638 | fi |
76c944da SK |
1639 | shift |
1640 | for ac_site_file | |
1641 | do | |
fe5b0fdd DH |
1642 | if test -r "$ac_site_file"; then |
1643 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1644 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1645 | sed 's/^/| /' "$ac_site_file" >&5 | |
1646 | . "$ac_site_file" | |
1647 | fi | |
1648 | done | |
1649 | ||
1650 | if test -r "$cache_file"; then | |
1651 | # Some versions of bash will fail to source /dev/null (special | |
1652 | # files actually), so we avoid doing that. | |
1653 | if test -f "$cache_file"; then | |
1654 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1655 | echo "$as_me: loading cache $cache_file" >&6;} | |
1656 | case $cache_file in | |
76c944da SK |
1657 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1658 | *) . "./$cache_file";; | |
fe5b0fdd DH |
1659 | esac |
1660 | fi | |
1661 | else | |
1662 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1663 | echo "$as_me: creating cache $cache_file" >&6;} | |
1664 | >$cache_file | |
1665 | fi | |
1666 | ||
1667 | # Check that the precious variables saved in the cache have kept the same | |
1668 | # value. | |
1669 | ac_cache_corrupted=false | |
76c944da | 1670 | for ac_var in $ac_precious_vars; do |
fe5b0fdd DH |
1671 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1672 | eval ac_new_set=\$ac_env_${ac_var}_set | |
76c944da SK |
1673 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1674 | eval ac_new_val=\$ac_env_${ac_var}_value | |
fe5b0fdd DH |
1675 | case $ac_old_set,$ac_new_set in |
1676 | set,) | |
1677 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1678 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1679 | ac_cache_corrupted=: ;; | |
1680 | ,set) | |
1681 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1682 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1683 | ac_cache_corrupted=: ;; | |
1684 | ,);; | |
1685 | *) | |
1686 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1687 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1688 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1689 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1690 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1691 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1692 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1693 | ac_cache_corrupted=: | |
1694 | fi;; | |
1695 | esac | |
1696 | # Pass precious variables to config.status. | |
1697 | if test "$ac_new_set" = set; then | |
1698 | case $ac_new_val in | |
76c944da | 1699 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
fe5b0fdd DH |
1700 | *) ac_arg=$ac_var=$ac_new_val ;; |
1701 | esac | |
1702 | case " $ac_configure_args " in | |
1703 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1704 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1705 | esac | |
1706 | fi | |
1707 | done | |
1708 | if $ac_cache_corrupted; then | |
1709 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1710 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1711 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1712 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1713 | { (exit 1); exit 1; }; } | |
1714 | fi | |
1715 | ||
1716 | ||
1717 | ||
1718 | ||
1719 | ||
1720 | ||
1721 | ||
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | ||
1727 | ||
1728 | ||
1729 | ||
1730 | ||
1731 | ||
1732 | ||
1733 | ||
1734 | ||
1735 | ||
1736 | ||
1737 | ||
1738 | ||
1739 | ||
76c944da SK |
1740 | ac_ext=c |
1741 | ac_cpp='$CPP $CPPFLAGS' | |
1742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
fe5b0fdd DH |
1745 | |
1746 | ||
1747 | ||
1748 | # we specify "foreign" to avoid having to have the GNU mandated files, | |
1749 | # like AUTHORS, COPYING, and such | |
1750 | am__api_version="1.9" | |
1751 | ac_aux_dir= | |
76c944da SK |
1752 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1753 | if test -f "$ac_dir/install-sh"; then | |
fe5b0fdd DH |
1754 | ac_aux_dir=$ac_dir |
1755 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1756 | break | |
76c944da | 1757 | elif test -f "$ac_dir/install.sh"; then |
fe5b0fdd DH |
1758 | ac_aux_dir=$ac_dir |
1759 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1760 | break | |
76c944da | 1761 | elif test -f "$ac_dir/shtool"; then |
fe5b0fdd DH |
1762 | ac_aux_dir=$ac_dir |
1763 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1764 | break | |
1765 | fi | |
1766 | done | |
1767 | if test -z "$ac_aux_dir"; then | |
76c944da SK |
1768 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1769 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
fe5b0fdd DH |
1770 | { (exit 1); exit 1; }; } |
1771 | fi | |
76c944da SK |
1772 | |
1773 | # These three variables are undocumented and unsupported, | |
1774 | # and are intended to be withdrawn in a future Autoconf release. | |
1775 | # They can cause serious problems if a builder's source tree is in a directory | |
1776 | # whose full name contains unusual characters. | |
1777 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1778 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1779 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1780 | ||
fe5b0fdd DH |
1781 | |
1782 | # Find a good install program. We prefer a C program (faster), | |
1783 | # so one script is as good as another. But avoid the broken or | |
1784 | # incompatible versions: | |
1785 | # SysV /etc/install, /usr/sbin/install | |
1786 | # SunOS /usr/etc/install | |
1787 | # IRIX /sbin/install | |
1788 | # AIX /bin/install | |
1789 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1790 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1791 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1792 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1793 | # OS/2's system install, which has a completely different semantic | |
1794 | # ./install, which can be erroneously created by make from ./install.sh. | |
76c944da SK |
1795 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1796 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
fe5b0fdd DH |
1797 | if test -z "$INSTALL"; then |
1798 | if test "${ac_cv_path_install+set}" = set; then | |
1799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1800 | else | |
1801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1802 | for as_dir in $PATH | |
1803 | do | |
1804 | IFS=$as_save_IFS | |
1805 | test -z "$as_dir" && as_dir=. | |
1806 | # Account for people who put trailing slashes in PATH elements. | |
1807 | case $as_dir/ in | |
1808 | ./ | .// | /cC/* | \ | |
1809 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1810 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1811 | /usr/ucb/* ) ;; | |
1812 | *) | |
1813 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1814 | # Don't use installbsd from OSF since it installs stuff as root | |
1815 | # by default. | |
1816 | for ac_prog in ginstall scoinst install; do | |
1817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 1818 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
fe5b0fdd DH |
1819 | if test $ac_prog = install && |
1820 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1821 | # AIX install. It has an incompatible calling convention. | |
1822 | : | |
1823 | elif test $ac_prog = install && | |
1824 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1825 | # program-specific install script used by HP pwplus--don't use. | |
1826 | : | |
1827 | else | |
1828 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1829 | break 3 | |
1830 | fi | |
1831 | fi | |
1832 | done | |
1833 | done | |
1834 | ;; | |
1835 | esac | |
1836 | done | |
76c944da | 1837 | IFS=$as_save_IFS |
fe5b0fdd DH |
1838 | |
1839 | ||
1840 | fi | |
1841 | if test "${ac_cv_path_install+set}" = set; then | |
1842 | INSTALL=$ac_cv_path_install | |
1843 | else | |
76c944da SK |
1844 | # As a last resort, use the slow shell script. Don't cache a |
1845 | # value for INSTALL within a source directory, because that will | |
fe5b0fdd | 1846 | # break other packages using the cache if that directory is |
76c944da | 1847 | # removed, or if the value is a relative name. |
fe5b0fdd DH |
1848 | INSTALL=$ac_install_sh |
1849 | fi | |
1850 | fi | |
76c944da SK |
1851 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1852 | echo "${ECHO_T}$INSTALL" >&6; } | |
fe5b0fdd DH |
1853 | |
1854 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1855 | # It thinks the first close brace ends the variable substitution. | |
1856 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1857 | ||
1858 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1859 | ||
1860 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1861 | ||
76c944da SK |
1862 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1863 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
fe5b0fdd DH |
1864 | # Just in case |
1865 | sleep 1 | |
1866 | echo timestamp > conftest.file | |
1867 | # Do `set' in a subshell so we don't clobber the current shell's | |
1868 | # arguments. Must try -L first in case configure is actually a | |
1869 | # symlink; some systems play weird games with the mod time of symlinks | |
1870 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1871 | # directory). | |
1872 | if ( | |
1873 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1874 | if test "$*" = "X"; then | |
1875 | # -L didn't work. | |
1876 | set X `ls -t $srcdir/configure conftest.file` | |
1877 | fi | |
1878 | rm -f conftest.file | |
1879 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1880 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1881 | ||
1882 | # If neither matched, then we have a broken ls. This can happen | |
1883 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1884 | # broken ls alias from the environment. This has actually | |
1885 | # happened. Such a system could not be considered "sane". | |
1886 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1887 | alias in your environment" >&5 | |
1888 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1889 | alias in your environment" >&2;} | |
1890 | { (exit 1); exit 1; }; } | |
1891 | fi | |
1892 | ||
1893 | test "$2" = conftest.file | |
1894 | ) | |
1895 | then | |
1896 | # Ok. | |
1897 | : | |
1898 | else | |
1899 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1900 | Check your system clock" >&5 | |
1901 | echo "$as_me: error: newly created file is older than distributed files! | |
1902 | Check your system clock" >&2;} | |
1903 | { (exit 1); exit 1; }; } | |
1904 | fi | |
76c944da SK |
1905 | { echo "$as_me:$LINENO: result: yes" >&5 |
1906 | echo "${ECHO_T}yes" >&6; } | |
fe5b0fdd | 1907 | test "$program_prefix" != NONE && |
76c944da | 1908 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
fe5b0fdd DH |
1909 | # Use a double $ so make ignores it. |
1910 | test "$program_suffix" != NONE && | |
76c944da | 1911 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
fe5b0fdd DH |
1912 | # Double any \ or $. echo might interpret backslashes. |
1913 | # By default was `s,x,x', remove it if useless. | |
1914 | cat <<\_ACEOF >conftest.sed | |
1915 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1916 | _ACEOF | |
1917 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
76c944da | 1918 | rm -f conftest.sed |
fe5b0fdd DH |
1919 | |
1920 | # expand $ac_aux_dir to an absolute path | |
1921 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1922 | ||
1923 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1924 | # Use eval to expand $SHELL | |
1925 | if eval "$MISSING --run true"; then | |
1926 | am_missing_run="$MISSING --run " | |
1927 | else | |
1928 | am_missing_run= | |
1929 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1930 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1931 | fi | |
1932 | ||
1933 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1934 | # We used to keeping the `.' as first argument, in order to | |
1935 | # allow $(mkdir_p) to be used without argument. As in | |
1936 | # $(mkdir_p) $(somedir) | |
1937 | # where $(somedir) is conditionally defined. However this is wrong | |
1938 | # for two reasons: | |
1939 | # 1. if the package is installed by a user who cannot write `.' | |
1940 | # make install will fail, | |
1941 | # 2. the above comment should most certainly read | |
1942 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1943 | # so it does not work when $(somedir) is undefined and | |
1944 | # $(DESTDIR) is not. | |
1945 | # To support the latter case, we have to write | |
1946 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1947 | # so the `.' trick is pointless. | |
1948 | mkdir_p='mkdir -p --' | |
1949 | else | |
1950 | # On NextStep and OpenStep, the `mkdir' command does not | |
1951 | # recognize any option. It will interpret all options as | |
1952 | # directories to create, and then abort because `.' already | |
1953 | # exists. | |
1954 | for d in ./-p ./--version; | |
1955 | do | |
1956 | test -d $d && rmdir $d | |
1957 | done | |
1958 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1959 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1960 | mkdir_p='$(mkinstalldirs)' | |
1961 | else | |
1962 | mkdir_p='$(install_sh) -d' | |
1963 | fi | |
1964 | fi | |
1965 | ||
1966 | for ac_prog in gawk mawk nawk awk | |
1967 | do | |
1968 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1969 | set dummy $ac_prog; ac_word=$2 | |
76c944da SK |
1970 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
1972 | if test "${ac_cv_prog_AWK+set}" = set; then |
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1974 | else | |
1975 | if test -n "$AWK"; then | |
1976 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1977 | else | |
1978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1979 | for as_dir in $PATH | |
1980 | do | |
1981 | IFS=$as_save_IFS | |
1982 | test -z "$as_dir" && as_dir=. | |
1983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 1984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
1985 | ac_cv_prog_AWK="$ac_prog" |
1986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1987 | break 2 | |
1988 | fi | |
1989 | done | |
1990 | done | |
76c944da | 1991 | IFS=$as_save_IFS |
fe5b0fdd DH |
1992 | |
1993 | fi | |
1994 | fi | |
1995 | AWK=$ac_cv_prog_AWK | |
1996 | if test -n "$AWK"; then | |
76c944da SK |
1997 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
1998 | echo "${ECHO_T}$AWK" >&6; } | |
fe5b0fdd | 1999 | else |
76c944da SK |
2000 | { echo "$as_me:$LINENO: result: no" >&5 |
2001 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2002 | fi |
2003 | ||
76c944da | 2004 | |
fe5b0fdd DH |
2005 | test -n "$AWK" && break |
2006 | done | |
2007 | ||
76c944da SK |
2008 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2009 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2010 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2011 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
fe5b0fdd DH |
2012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2013 | else | |
2014 | cat >conftest.make <<\_ACEOF | |
76c944da | 2015 | SHELL = /bin/sh |
fe5b0fdd | 2016 | all: |
76c944da | 2017 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
fe5b0fdd DH |
2018 | _ACEOF |
2019 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
76c944da SK |
2020 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2021 | *@@@%%%=?*=@@@%%%*) | |
2022 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2023 | *) | |
2024 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2025 | esac | |
fe5b0fdd DH |
2026 | rm -f conftest.make |
2027 | fi | |
76c944da SK |
2028 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2029 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2030 | echo "${ECHO_T}yes" >&6; } | |
fe5b0fdd DH |
2031 | SET_MAKE= |
2032 | else | |
76c944da SK |
2033 | { echo "$as_me:$LINENO: result: no" >&5 |
2034 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2035 | SET_MAKE="MAKE=${MAKE-make}" |
2036 | fi | |
2037 | ||
2038 | rm -rf .tst 2>/dev/null | |
2039 | mkdir .tst 2>/dev/null | |
2040 | if test -d .tst; then | |
2041 | am__leading_dot=. | |
2042 | else | |
2043 | am__leading_dot=_ | |
2044 | fi | |
2045 | rmdir .tst 2>/dev/null | |
2046 | ||
2047 | # test to see if srcdir already configured | |
2048 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2049 | test -f $srcdir/config.status; then | |
2050 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2051 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2052 | { (exit 1); exit 1; }; } | |
2053 | fi | |
2054 | ||
2055 | # test whether we have cygpath | |
2056 | if test -z "$CYGPATH_W"; then | |
2057 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2058 | CYGPATH_W='cygpath -w' | |
2059 | else | |
2060 | CYGPATH_W=echo | |
2061 | fi | |
2062 | fi | |
2063 | ||
2064 | ||
2065 | # Define the identity of the package. | |
2066 | PACKAGE='dhcp' | |
e62b1eb3 | 2067 | VERSION='4.0.0a1' |
fe5b0fdd DH |
2068 | |
2069 | ||
2070 | cat >>confdefs.h <<_ACEOF | |
2071 | #define PACKAGE "$PACKAGE" | |
2072 | _ACEOF | |
2073 | ||
2074 | ||
2075 | cat >>confdefs.h <<_ACEOF | |
2076 | #define VERSION "$VERSION" | |
2077 | _ACEOF | |
2078 | ||
2079 | # Some tools Automake needs. | |
2080 | ||
2081 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2082 | ||
2083 | ||
2084 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2085 | ||
2086 | ||
2087 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2088 | ||
2089 | ||
2090 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2091 | ||
2092 | ||
2093 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2094 | ||
2095 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2096 | ||
2097 | # Installed binaries are usually stripped using `strip' when the user | |
2098 | # run `make install-strip'. However `strip' might not be the right | |
2099 | # tool to use in cross-compilation environments, therefore Automake | |
2100 | # will honor the `STRIP' environment variable to overrule this program. | |
2101 | if test "$cross_compiling" != no; then | |
2102 | if test -n "$ac_tool_prefix"; then | |
2103 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2104 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
76c944da SK |
2105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2107 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2109 | else | |
2110 | if test -n "$STRIP"; then | |
2111 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2112 | else | |
2113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2114 | for as_dir in $PATH | |
2115 | do | |
2116 | IFS=$as_save_IFS | |
2117 | test -z "$as_dir" && as_dir=. | |
2118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2120 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2122 | break 2 | |
2123 | fi | |
2124 | done | |
2125 | done | |
76c944da | 2126 | IFS=$as_save_IFS |
fe5b0fdd DH |
2127 | |
2128 | fi | |
2129 | fi | |
2130 | STRIP=$ac_cv_prog_STRIP | |
2131 | if test -n "$STRIP"; then | |
76c944da SK |
2132 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2133 | echo "${ECHO_T}$STRIP" >&6; } | |
fe5b0fdd | 2134 | else |
76c944da SK |
2135 | { echo "$as_me:$LINENO: result: no" >&5 |
2136 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2137 | fi |
2138 | ||
76c944da | 2139 | |
fe5b0fdd DH |
2140 | fi |
2141 | if test -z "$ac_cv_prog_STRIP"; then | |
2142 | ac_ct_STRIP=$STRIP | |
2143 | # Extract the first word of "strip", so it can be a program name with args. | |
2144 | set dummy strip; ac_word=$2 | |
76c944da SK |
2145 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2147 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2149 | else | |
2150 | if test -n "$ac_ct_STRIP"; then | |
2151 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2152 | else | |
2153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2154 | for as_dir in $PATH | |
2155 | do | |
2156 | IFS=$as_save_IFS | |
2157 | test -z "$as_dir" && as_dir=. | |
2158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2160 | ac_cv_prog_ac_ct_STRIP="strip" |
2161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2162 | break 2 | |
2163 | fi | |
2164 | done | |
2165 | done | |
76c944da | 2166 | IFS=$as_save_IFS |
fe5b0fdd DH |
2167 | |
2168 | fi | |
2169 | fi | |
2170 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2171 | if test -n "$ac_ct_STRIP"; then | |
76c944da SK |
2172 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2173 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
fe5b0fdd | 2174 | else |
76c944da SK |
2175 | { echo "$as_me:$LINENO: result: no" >&5 |
2176 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2177 | fi |
2178 | ||
76c944da SK |
2179 | if test "x$ac_ct_STRIP" = x; then |
2180 | STRIP=":" | |
2181 | else | |
2182 | case $cross_compiling:$ac_tool_warned in | |
2183 | yes:) | |
2184 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2185 | whose name does not start with the host triplet. If you think this | |
2186 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2187 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2188 | whose name does not start with the host triplet. If you think this | |
2189 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2190 | ac_tool_warned=yes ;; | |
2191 | esac | |
2192 | STRIP=$ac_ct_STRIP | |
2193 | fi | |
fe5b0fdd DH |
2194 | else |
2195 | STRIP="$ac_cv_prog_STRIP" | |
2196 | fi | |
2197 | ||
2198 | fi | |
2199 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2200 | ||
2201 | # We need awk for the "check" target. The system "awk" is bad on | |
2202 | # some platforms. | |
2203 | # Always define AMTAR for backward compatibility. | |
2204 | ||
2205 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2206 | ||
2207 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2208 | ||
2209 | ||
2210 | ||
2211 | ||
2212 | ||
2213 | ||
2214 | ac_ext=c | |
2215 | ac_cpp='$CPP $CPPFLAGS' | |
2216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2219 | if test -n "$ac_tool_prefix"; then | |
2220 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2221 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
76c944da SK |
2222 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2224 | if test "${ac_cv_prog_CC+set}" = set; then |
2225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2226 | else | |
2227 | if test -n "$CC"; then | |
2228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2229 | else | |
2230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2231 | for as_dir in $PATH | |
2232 | do | |
2233 | IFS=$as_save_IFS | |
2234 | test -z "$as_dir" && as_dir=. | |
2235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2237 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2239 | break 2 | |
2240 | fi | |
2241 | done | |
2242 | done | |
76c944da | 2243 | IFS=$as_save_IFS |
fe5b0fdd DH |
2244 | |
2245 | fi | |
2246 | fi | |
2247 | CC=$ac_cv_prog_CC | |
2248 | if test -n "$CC"; then | |
76c944da SK |
2249 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2250 | echo "${ECHO_T}$CC" >&6; } | |
fe5b0fdd | 2251 | else |
76c944da SK |
2252 | { echo "$as_me:$LINENO: result: no" >&5 |
2253 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2254 | fi |
2255 | ||
76c944da | 2256 | |
fe5b0fdd DH |
2257 | fi |
2258 | if test -z "$ac_cv_prog_CC"; then | |
2259 | ac_ct_CC=$CC | |
2260 | # Extract the first word of "gcc", so it can be a program name with args. | |
2261 | set dummy gcc; ac_word=$2 | |
76c944da SK |
2262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2264 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2266 | else | |
2267 | if test -n "$ac_ct_CC"; then | |
2268 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2269 | else | |
2270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2271 | for as_dir in $PATH | |
2272 | do | |
2273 | IFS=$as_save_IFS | |
2274 | test -z "$as_dir" && as_dir=. | |
2275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2277 | ac_cv_prog_ac_ct_CC="gcc" |
2278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2279 | break 2 | |
2280 | fi | |
2281 | done | |
2282 | done | |
76c944da | 2283 | IFS=$as_save_IFS |
fe5b0fdd DH |
2284 | |
2285 | fi | |
2286 | fi | |
2287 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2288 | if test -n "$ac_ct_CC"; then | |
76c944da SK |
2289 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2290 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
fe5b0fdd | 2291 | else |
76c944da SK |
2292 | { echo "$as_me:$LINENO: result: no" >&5 |
2293 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2294 | fi |
2295 | ||
76c944da SK |
2296 | if test "x$ac_ct_CC" = x; then |
2297 | CC="" | |
2298 | else | |
2299 | case $cross_compiling:$ac_tool_warned in | |
2300 | yes:) | |
2301 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2302 | whose name does not start with the host triplet. If you think this | |
2303 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2304 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2305 | whose name does not start with the host triplet. If you think this | |
2306 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2307 | ac_tool_warned=yes ;; | |
2308 | esac | |
2309 | CC=$ac_ct_CC | |
2310 | fi | |
fe5b0fdd DH |
2311 | else |
2312 | CC="$ac_cv_prog_CC" | |
2313 | fi | |
2314 | ||
2315 | if test -z "$CC"; then | |
76c944da SK |
2316 | if test -n "$ac_tool_prefix"; then |
2317 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
fe5b0fdd | 2318 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
76c944da SK |
2319 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2321 | if test "${ac_cv_prog_CC+set}" = set; then |
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2323 | else | |
2324 | if test -n "$CC"; then | |
2325 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2326 | else | |
2327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2328 | for as_dir in $PATH | |
2329 | do | |
2330 | IFS=$as_save_IFS | |
2331 | test -z "$as_dir" && as_dir=. | |
2332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2333 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2334 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2336 | break 2 | |
2337 | fi | |
2338 | done | |
2339 | done | |
76c944da | 2340 | IFS=$as_save_IFS |
fe5b0fdd DH |
2341 | |
2342 | fi | |
2343 | fi | |
2344 | CC=$ac_cv_prog_CC | |
2345 | if test -n "$CC"; then | |
76c944da SK |
2346 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2347 | echo "${ECHO_T}$CC" >&6; } | |
c9a1db5e | 2348 | else |
76c944da SK |
2349 | { echo "$as_me:$LINENO: result: no" >&5 |
2350 | echo "${ECHO_T}no" >&6; } | |
c9a1db5e MA |
2351 | fi |
2352 | ||
c9a1db5e | 2353 | |
76c944da | 2354 | fi |
fe5b0fdd DH |
2355 | fi |
2356 | if test -z "$CC"; then | |
2357 | # Extract the first word of "cc", so it can be a program name with args. | |
2358 | set dummy cc; ac_word=$2 | |
76c944da SK |
2359 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2361 | if test "${ac_cv_prog_CC+set}" = set; then |
2362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2363 | else | |
2364 | if test -n "$CC"; then | |
2365 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2366 | else | |
2367 | ac_prog_rejected=no | |
2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2369 | for as_dir in $PATH | |
2370 | do | |
2371 | IFS=$as_save_IFS | |
2372 | test -z "$as_dir" && as_dir=. | |
2373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2375 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2376 | ac_prog_rejected=yes | |
2377 | continue | |
2378 | fi | |
2379 | ac_cv_prog_CC="cc" | |
2380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2381 | break 2 | |
2382 | fi | |
2383 | done | |
2384 | done | |
76c944da | 2385 | IFS=$as_save_IFS |
fe5b0fdd DH |
2386 | |
2387 | if test $ac_prog_rejected = yes; then | |
2388 | # We found a bogon in the path, so make sure we never use it. | |
2389 | set dummy $ac_cv_prog_CC | |
2390 | shift | |
2391 | if test $# != 0; then | |
2392 | # We chose a different compiler from the bogus one. | |
2393 | # However, it has the same basename, so the bogon will be chosen | |
2394 | # first if we set CC to just the basename; use the full file name. | |
2395 | shift | |
2396 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2397 | fi | |
2398 | fi | |
2399 | fi | |
2400 | fi | |
2401 | CC=$ac_cv_prog_CC | |
2402 | if test -n "$CC"; then | |
76c944da SK |
2403 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2404 | echo "${ECHO_T}$CC" >&6; } | |
fe5b0fdd | 2405 | else |
76c944da SK |
2406 | { echo "$as_me:$LINENO: result: no" >&5 |
2407 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2408 | fi |
2409 | ||
76c944da | 2410 | |
fe5b0fdd DH |
2411 | fi |
2412 | if test -z "$CC"; then | |
2413 | if test -n "$ac_tool_prefix"; then | |
76c944da | 2414 | for ac_prog in cl.exe |
fe5b0fdd DH |
2415 | do |
2416 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2417 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
76c944da SK |
2418 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2420 | if test "${ac_cv_prog_CC+set}" = set; then |
2421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2422 | else | |
2423 | if test -n "$CC"; then | |
2424 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2425 | else | |
2426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2427 | for as_dir in $PATH | |
2428 | do | |
2429 | IFS=$as_save_IFS | |
2430 | test -z "$as_dir" && as_dir=. | |
2431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2433 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2435 | break 2 | |
2436 | fi | |
2437 | done | |
2438 | done | |
76c944da | 2439 | IFS=$as_save_IFS |
fe5b0fdd DH |
2440 | |
2441 | fi | |
2442 | fi | |
2443 | CC=$ac_cv_prog_CC | |
2444 | if test -n "$CC"; then | |
76c944da SK |
2445 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2446 | echo "${ECHO_T}$CC" >&6; } | |
fe5b0fdd | 2447 | else |
76c944da SK |
2448 | { echo "$as_me:$LINENO: result: no" >&5 |
2449 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2450 | fi |
2451 | ||
76c944da | 2452 | |
fe5b0fdd DH |
2453 | test -n "$CC" && break |
2454 | done | |
2455 | fi | |
2456 | if test -z "$CC"; then | |
2457 | ac_ct_CC=$CC | |
76c944da | 2458 | for ac_prog in cl.exe |
fe5b0fdd DH |
2459 | do |
2460 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2461 | set dummy $ac_prog; ac_word=$2 | |
76c944da SK |
2462 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2464 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2466 | else | |
2467 | if test -n "$ac_ct_CC"; then | |
2468 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2469 | else | |
2470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2471 | for as_dir in $PATH | |
2472 | do | |
2473 | IFS=$as_save_IFS | |
2474 | test -z "$as_dir" && as_dir=. | |
2475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 2476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
2477 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2479 | break 2 | |
2480 | fi | |
2481 | done | |
2482 | done | |
76c944da | 2483 | IFS=$as_save_IFS |
fe5b0fdd DH |
2484 | |
2485 | fi | |
2486 | fi | |
2487 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2488 | if test -n "$ac_ct_CC"; then | |
76c944da SK |
2489 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2490 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
fe5b0fdd | 2491 | else |
76c944da SK |
2492 | { echo "$as_me:$LINENO: result: no" >&5 |
2493 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
2494 | fi |
2495 | ||
76c944da | 2496 | |
fe5b0fdd DH |
2497 | test -n "$ac_ct_CC" && break |
2498 | done | |
2499 | ||
76c944da SK |
2500 | if test "x$ac_ct_CC" = x; then |
2501 | CC="" | |
2502 | else | |
2503 | case $cross_compiling:$ac_tool_warned in | |
2504 | yes:) | |
2505 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2506 | whose name does not start with the host triplet. If you think this | |
2507 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2508 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2509 | whose name does not start with the host triplet. If you think this | |
2510 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2511 | ac_tool_warned=yes ;; | |
2512 | esac | |
2513 | CC=$ac_ct_CC | |
2514 | fi | |
fe5b0fdd DH |
2515 | fi |
2516 | ||
2517 | fi | |
2518 | ||
2519 | ||
2520 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2521 | See \`config.log' for more details." >&5 | |
2522 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2523 | See \`config.log' for more details." >&2;} | |
2524 | { (exit 1); exit 1; }; } | |
2525 | ||
2526 | # Provide some information about the compiler. | |
76c944da | 2527 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
fe5b0fdd | 2528 | ac_compiler=`set X $ac_compile; echo $2` |
76c944da SK |
2529 | { (ac_try="$ac_compiler --version >&5" |
2530 | case "(($ac_try" in | |
2531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2532 | *) ac_try_echo=$ac_try;; | |
2533 | esac | |
2534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2535 | (eval "$ac_compiler --version >&5") 2>&5 | |
fe5b0fdd DH |
2536 | ac_status=$? |
2537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2538 | (exit $ac_status); } | |
76c944da SK |
2539 | { (ac_try="$ac_compiler -v >&5" |
2540 | case "(($ac_try" in | |
2541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2542 | *) ac_try_echo=$ac_try;; | |
2543 | esac | |
2544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2545 | (eval "$ac_compiler -v >&5") 2>&5 | |
fe5b0fdd DH |
2546 | ac_status=$? |
2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2548 | (exit $ac_status); } | |
76c944da SK |
2549 | { (ac_try="$ac_compiler -V >&5" |
2550 | case "(($ac_try" in | |
2551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2552 | *) ac_try_echo=$ac_try;; | |
2553 | esac | |
2554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2555 | (eval "$ac_compiler -V >&5") 2>&5 | |
fe5b0fdd DH |
2556 | ac_status=$? |
2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2558 | (exit $ac_status); } | |
2559 | ||
2560 | cat >conftest.$ac_ext <<_ACEOF | |
2561 | /* confdefs.h. */ | |
2562 | _ACEOF | |
2563 | cat confdefs.h >>conftest.$ac_ext | |
2564 | cat >>conftest.$ac_ext <<_ACEOF | |
2565 | /* end confdefs.h. */ | |
2566 | ||
2567 | int | |
2568 | main () | |
2569 | { | |
2570 | ||
2571 | ; | |
2572 | return 0; | |
2573 | } | |
2574 | _ACEOF | |
2575 | ac_clean_files_save=$ac_clean_files | |
2576 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2577 | # Try to create an executable without -o first, disregard a.out. | |
2578 | # It will help us diagnose broken compilers, and finding out an intuition | |
2579 | # of exeext. | |
76c944da SK |
2580 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2581 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
fe5b0fdd | 2582 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
76c944da SK |
2583 | # |
2584 | # List of possible output files, starting from the most likely. | |
2585 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2586 | # only as a last resort. b.out is created by i960 compilers. | |
2587 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2588 | # | |
2589 | # The IRIX 6 linker writes into existing files which may not be | |
2590 | # executable, retaining their permissions. Remove them first so a | |
2591 | # subsequent execution test works. | |
2592 | ac_rmfiles= | |
2593 | for ac_file in $ac_files | |
2594 | do | |
2595 | case $ac_file in | |
2596 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2597 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2598 | esac | |
2599 | done | |
2600 | rm -f $ac_rmfiles | |
2601 | ||
2602 | if { (ac_try="$ac_link_default" | |
2603 | case "(($ac_try" in | |
2604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2605 | *) ac_try_echo=$ac_try;; | |
2606 | esac | |
2607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2608 | (eval "$ac_link_default") 2>&5 | |
fe5b0fdd DH |
2609 | ac_status=$? |
2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2611 | (exit $ac_status); }; then | |
76c944da SK |
2612 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2613 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2614 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2615 | # so that the user can short-circuit this test for compilers unknown to | |
2616 | # Autoconf. | |
2617 | for ac_file in $ac_files '' | |
fe5b0fdd DH |
2618 | do |
2619 | test -f "$ac_file" || continue | |
2620 | case $ac_file in | |
76c944da | 2621 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
fe5b0fdd DH |
2622 | ;; |
2623 | [ab].out ) | |
2624 | # We found the default executable, but exeext='' is most | |
2625 | # certainly right. | |
2626 | break;; | |
2627 | *.* ) | |
76c944da SK |
2628 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2629 | then :; else | |
2630 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2631 | fi | |
2632 | # We set ac_cv_exeext here because the later test for it is not | |
2633 | # safe: cross compilers may not add the suffix if given an `-o' | |
2634 | # argument, so we may need to know it at that point already. | |
2635 | # Even if this section looks crufty: it has the advantage of | |
2636 | # actually working. | |
fe5b0fdd DH |
2637 | break;; |
2638 | * ) | |
2639 | break;; | |
2640 | esac | |
2641 | done | |
76c944da SK |
2642 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2643 | ||
fe5b0fdd | 2644 | else |
76c944da SK |
2645 | ac_file='' |
2646 | fi | |
2647 | ||
2648 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2649 | echo "${ECHO_T}$ac_file" >&6; } | |
2650 | if test -z "$ac_file"; then | |
fe5b0fdd DH |
2651 | echo "$as_me: failed program was:" >&5 |
2652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2653 | ||
2654 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2655 | See \`config.log' for more details." >&5 | |
2656 | echo "$as_me: error: C compiler cannot create executables | |
2657 | See \`config.log' for more details." >&2;} | |
2658 | { (exit 77); exit 77; }; } | |
2659 | fi | |
2660 | ||
2661 | ac_exeext=$ac_cv_exeext | |
fe5b0fdd | 2662 | |
76c944da | 2663 | # Check that the compiler produces executables we can run. If not, either |
fe5b0fdd | 2664 | # the compiler is broken, or we cross compile. |
76c944da SK |
2665 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2666 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2667 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2668 | # If not cross compiling, check that we can run a simple program. | |
2669 | if test "$cross_compiling" != yes; then | |
2670 | if { ac_try='./$ac_file' | |
76c944da SK |
2671 | { (case "(($ac_try" in |
2672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2673 | *) ac_try_echo=$ac_try;; | |
2674 | esac | |
2675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2676 | (eval "$ac_try") 2>&5 | |
fe5b0fdd DH |
2677 | ac_status=$? |
2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2679 | (exit $ac_status); }; }; then | |
2680 | cross_compiling=no | |
2681 | else | |
2682 | if test "$cross_compiling" = maybe; then | |
2683 | cross_compiling=yes | |
2684 | else | |
2685 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2686 | If you meant to cross compile, use \`--host'. | |
2687 | See \`config.log' for more details." >&5 | |
2688 | echo "$as_me: error: cannot run C compiled programs. | |
2689 | If you meant to cross compile, use \`--host'. | |
2690 | See \`config.log' for more details." >&2;} | |
2691 | { (exit 1); exit 1; }; } | |
2692 | fi | |
2693 | fi | |
2694 | fi | |
76c944da SK |
2695 | { echo "$as_me:$LINENO: result: yes" >&5 |
2696 | echo "${ECHO_T}yes" >&6; } | |
fe5b0fdd DH |
2697 | |
2698 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2699 | ac_clean_files=$ac_clean_files_save | |
76c944da | 2700 | # Check that the compiler produces executables we can run. If not, either |
fe5b0fdd | 2701 | # the compiler is broken, or we cross compile. |
76c944da SK |
2702 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2703 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2704 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2705 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2706 | ||
2707 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2708 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2709 | if { (ac_try="$ac_link" | |
2710 | case "(($ac_try" in | |
2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2712 | *) ac_try_echo=$ac_try;; | |
2713 | esac | |
2714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2715 | (eval "$ac_link") 2>&5 | |
fe5b0fdd DH |
2716 | ac_status=$? |
2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2718 | (exit $ac_status); }; then | |
2719 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2720 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2721 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2722 | # `rm'. | |
2723 | for ac_file in conftest.exe conftest conftest.*; do | |
2724 | test -f "$ac_file" || continue | |
2725 | case $ac_file in | |
76c944da | 2726 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
fe5b0fdd DH |
2727 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2728 | break;; | |
2729 | * ) break;; | |
2730 | esac | |
2731 | done | |
2732 | else | |
2733 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2734 | See \`config.log' for more details." >&5 | |
2735 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2736 | See \`config.log' for more details." >&2;} | |
2737 | { (exit 1); exit 1; }; } | |
2738 | fi | |
2739 | ||
2740 | rm -f conftest$ac_cv_exeext | |
76c944da SK |
2741 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2742 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
fe5b0fdd DH |
2743 | |
2744 | rm -f conftest.$ac_ext | |
2745 | EXEEXT=$ac_cv_exeext | |
2746 | ac_exeext=$EXEEXT | |
76c944da SK |
2747 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2748 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2749 | if test "${ac_cv_objext+set}" = set; then |
2750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2751 | else | |
2752 | cat >conftest.$ac_ext <<_ACEOF | |
2753 | /* confdefs.h. */ | |
2754 | _ACEOF | |
2755 | cat confdefs.h >>conftest.$ac_ext | |
2756 | cat >>conftest.$ac_ext <<_ACEOF | |
2757 | /* end confdefs.h. */ | |
2758 | ||
2759 | int | |
2760 | main () | |
2761 | { | |
2762 | ||
2763 | ; | |
2764 | return 0; | |
2765 | } | |
2766 | _ACEOF | |
2767 | rm -f conftest.o conftest.obj | |
76c944da SK |
2768 | if { (ac_try="$ac_compile" |
2769 | case "(($ac_try" in | |
2770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2771 | *) ac_try_echo=$ac_try;; | |
2772 | esac | |
2773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2774 | (eval "$ac_compile") 2>&5 | |
fe5b0fdd DH |
2775 | ac_status=$? |
2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2777 | (exit $ac_status); }; then | |
76c944da SK |
2778 | for ac_file in conftest.o conftest.obj conftest.*; do |
2779 | test -f "$ac_file" || continue; | |
fe5b0fdd | 2780 | case $ac_file in |
76c944da | 2781 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
fe5b0fdd DH |
2782 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2783 | break;; | |
2784 | esac | |
2785 | done | |
2786 | else | |
2787 | echo "$as_me: failed program was:" >&5 | |
2788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2789 | ||
2790 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2791 | See \`config.log' for more details." >&5 | |
2792 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2793 | See \`config.log' for more details." >&2;} | |
2794 | { (exit 1); exit 1; }; } | |
2795 | fi | |
2796 | ||
2797 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2798 | fi | |
76c944da SK |
2799 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2800 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
fe5b0fdd DH |
2801 | OBJEXT=$ac_cv_objext |
2802 | ac_objext=$OBJEXT | |
76c944da SK |
2803 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2804 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2805 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2807 | else | |
2808 | cat >conftest.$ac_ext <<_ACEOF | |
2809 | /* confdefs.h. */ | |
2810 | _ACEOF | |
2811 | cat confdefs.h >>conftest.$ac_ext | |
2812 | cat >>conftest.$ac_ext <<_ACEOF | |
2813 | /* end confdefs.h. */ | |
2814 | ||
2815 | int | |
2816 | main () | |
2817 | { | |
2818 | #ifndef __GNUC__ | |
2819 | choke me | |
2820 | #endif | |
2821 | ||
2822 | ; | |
2823 | return 0; | |
2824 | } | |
2825 | _ACEOF | |
2826 | rm -f conftest.$ac_objext | |
76c944da SK |
2827 | if { (ac_try="$ac_compile" |
2828 | case "(($ac_try" in | |
2829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2830 | *) ac_try_echo=$ac_try;; | |
2831 | esac | |
2832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2833 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
2834 | ac_status=$? |
2835 | grep -v '^ *+' conftest.er1 >conftest.err | |
2836 | rm -f conftest.er1 | |
2837 | cat conftest.err >&5 | |
2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
2839 | (exit $ac_status); } && { |
2840 | test -z "$ac_c_werror_flag" || | |
2841 | test ! -s conftest.err | |
2842 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
2843 | ac_compiler_gnu=yes |
2844 | else | |
2845 | echo "$as_me: failed program was:" >&5 | |
2846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2847 | ||
76c944da | 2848 | ac_compiler_gnu=no |
fe5b0fdd | 2849 | fi |
76c944da SK |
2850 | |
2851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fe5b0fdd DH |
2852 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2853 | ||
2854 | fi | |
76c944da SK |
2855 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2856 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
fe5b0fdd DH |
2857 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2858 | ac_test_CFLAGS=${CFLAGS+set} | |
2859 | ac_save_CFLAGS=$CFLAGS | |
76c944da SK |
2860 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2861 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
fe5b0fdd DH |
2862 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2864 | else | |
76c944da SK |
2865 | ac_save_c_werror_flag=$ac_c_werror_flag |
2866 | ac_c_werror_flag=yes | |
2867 | ac_cv_prog_cc_g=no | |
2868 | CFLAGS="-g" | |
2869 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
2870 | /* confdefs.h. */ |
2871 | _ACEOF | |
2872 | cat confdefs.h >>conftest.$ac_ext | |
2873 | cat >>conftest.$ac_ext <<_ACEOF | |
2874 | /* end confdefs.h. */ | |
2875 | ||
2876 | int | |
2877 | main () | |
2878 | { | |
2879 | ||
2880 | ; | |
2881 | return 0; | |
2882 | } | |
2883 | _ACEOF | |
2884 | rm -f conftest.$ac_objext | |
76c944da SK |
2885 | if { (ac_try="$ac_compile" |
2886 | case "(($ac_try" in | |
2887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2888 | *) ac_try_echo=$ac_try;; | |
2889 | esac | |
2890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2891 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
2892 | ac_status=$? |
2893 | grep -v '^ *+' conftest.er1 >conftest.err | |
2894 | rm -f conftest.er1 | |
2895 | cat conftest.err >&5 | |
2896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
2897 | (exit $ac_status); } && { |
2898 | test -z "$ac_c_werror_flag" || | |
2899 | test ! -s conftest.err | |
2900 | } && test -s conftest.$ac_objext; then | |
2901 | ac_cv_prog_cc_g=yes | |
2902 | else | |
2903 | echo "$as_me: failed program was:" >&5 | |
2904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2905 | ||
2906 | CFLAGS="" | |
2907 | cat >conftest.$ac_ext <<_ACEOF | |
2908 | /* confdefs.h. */ | |
2909 | _ACEOF | |
2910 | cat confdefs.h >>conftest.$ac_ext | |
2911 | cat >>conftest.$ac_ext <<_ACEOF | |
2912 | /* end confdefs.h. */ | |
2913 | ||
2914 | int | |
2915 | main () | |
2916 | { | |
2917 | ||
2918 | ; | |
2919 | return 0; | |
2920 | } | |
2921 | _ACEOF | |
2922 | rm -f conftest.$ac_objext | |
2923 | if { (ac_try="$ac_compile" | |
2924 | case "(($ac_try" in | |
2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2926 | *) ac_try_echo=$ac_try;; | |
2927 | esac | |
2928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2929 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd | 2930 | ac_status=$? |
76c944da SK |
2931 | grep -v '^ *+' conftest.er1 >conftest.err |
2932 | rm -f conftest.er1 | |
2933 | cat conftest.err >&5 | |
fe5b0fdd | 2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
76c944da SK |
2935 | (exit $ac_status); } && { |
2936 | test -z "$ac_c_werror_flag" || | |
2937 | test ! -s conftest.err | |
2938 | } && test -s conftest.$ac_objext; then | |
2939 | : | |
2940 | else | |
2941 | echo "$as_me: failed program was:" >&5 | |
2942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2943 | ||
2944 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2945 | CFLAGS="-g" | |
2946 | cat >conftest.$ac_ext <<_ACEOF | |
2947 | /* confdefs.h. */ | |
2948 | _ACEOF | |
2949 | cat confdefs.h >>conftest.$ac_ext | |
2950 | cat >>conftest.$ac_ext <<_ACEOF | |
2951 | /* end confdefs.h. */ | |
2952 | ||
2953 | int | |
2954 | main () | |
2955 | { | |
2956 | ||
2957 | ; | |
2958 | return 0; | |
2959 | } | |
2960 | _ACEOF | |
2961 | rm -f conftest.$ac_objext | |
2962 | if { (ac_try="$ac_compile" | |
2963 | case "(($ac_try" in | |
2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2965 | *) ac_try_echo=$ac_try;; | |
2966 | esac | |
2967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2968 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd | 2969 | ac_status=$? |
76c944da SK |
2970 | grep -v '^ *+' conftest.er1 >conftest.err |
2971 | rm -f conftest.er1 | |
2972 | cat conftest.err >&5 | |
fe5b0fdd | 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
76c944da SK |
2974 | (exit $ac_status); } && { |
2975 | test -z "$ac_c_werror_flag" || | |
2976 | test ! -s conftest.err | |
2977 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
2978 | ac_cv_prog_cc_g=yes |
2979 | else | |
2980 | echo "$as_me: failed program was:" >&5 | |
2981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2982 | ||
76c944da | 2983 | |
273bfdc3 | 2984 | fi |
76c944da SK |
2985 | |
2986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2987 | fi | |
2988 | ||
2989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2990 | fi | |
2991 | ||
2992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2993 | ac_c_werror_flag=$ac_save_c_werror_flag | |
fe5b0fdd | 2994 | fi |
76c944da SK |
2995 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2996 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
fe5b0fdd DH |
2997 | if test "$ac_test_CFLAGS" = set; then |
2998 | CFLAGS=$ac_save_CFLAGS | |
2999 | elif test $ac_cv_prog_cc_g = yes; then | |
3000 | if test "$GCC" = yes; then | |
3001 | CFLAGS="-g -O2" | |
3002 | else | |
3003 | CFLAGS="-g" | |
3004 | fi | |
3005 | else | |
3006 | if test "$GCC" = yes; then | |
3007 | CFLAGS="-O2" | |
3008 | else | |
3009 | CFLAGS= | |
3010 | fi | |
3011 | fi | |
76c944da SK |
3012 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3013 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3014 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
fe5b0fdd DH |
3015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3016 | else | |
76c944da | 3017 | ac_cv_prog_cc_c89=no |
fe5b0fdd DH |
3018 | ac_save_CC=$CC |
3019 | cat >conftest.$ac_ext <<_ACEOF | |
3020 | /* confdefs.h. */ | |
3021 | _ACEOF | |
3022 | cat confdefs.h >>conftest.$ac_ext | |
3023 | cat >>conftest.$ac_ext <<_ACEOF | |
3024 | /* end confdefs.h. */ | |
3025 | #include <stdarg.h> | |
3026 | #include <stdio.h> | |
3027 | #include <sys/types.h> | |
3028 | #include <sys/stat.h> | |
3029 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3030 | struct buf { int x; }; | |
3031 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3032 | static char *e (p, i) | |
3033 | char **p; | |
3034 | int i; | |
3035 | { | |
3036 | return p[i]; | |
3037 | } | |
3038 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3039 | { | |
3040 | char *s; | |
3041 | va_list v; | |
3042 | va_start (v,p); | |
3043 | s = g (p, va_arg (v,int)); | |
3044 | va_end (v); | |
3045 | return s; | |
3046 | } | |
3047 | ||
3048 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3049 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3050 | These don't provoke an error unfortunately, instead are silently treated | |
76c944da | 3051 | as 'x'. The following induces an error, until -std is added to get |
fe5b0fdd DH |
3052 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3053 | array size at least. It's necessary to write '\x00'==0 to get something | |
76c944da | 3054 | that's true only with -std. */ |
fe5b0fdd DH |
3055 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3056 | ||
76c944da SK |
3057 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3058 | inside strings and character constants. */ | |
3059 | #define FOO(x) 'x' | |
3060 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3061 | ||
fe5b0fdd DH |
3062 | int test (int i, double x); |
3063 | struct s1 {int (*f) (int a);}; | |
3064 | struct s2 {int (*f) (double a);}; | |
3065 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3066 | int argc; | |
3067 | char **argv; | |
3068 | int | |
3069 | main () | |
3070 | { | |
3071 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3072 | ; | |
3073 | return 0; | |
3074 | } | |
3075 | _ACEOF | |
76c944da SK |
3076 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3077 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
fe5b0fdd DH |
3078 | do |
3079 | CC="$ac_save_CC $ac_arg" | |
3080 | rm -f conftest.$ac_objext | |
76c944da SK |
3081 | if { (ac_try="$ac_compile" |
3082 | case "(($ac_try" in | |
3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3084 | *) ac_try_echo=$ac_try;; | |
3085 | esac | |
3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3087 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
3088 | ac_status=$? |
3089 | grep -v '^ *+' conftest.er1 >conftest.err | |
3090 | rm -f conftest.er1 | |
3091 | cat conftest.err >&5 | |
3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
3093 | (exit $ac_status); } && { |
3094 | test -z "$ac_c_werror_flag" || | |
3095 | test ! -s conftest.err | |
3096 | } && test -s conftest.$ac_objext; then | |
3097 | ac_cv_prog_cc_c89=$ac_arg | |
fe5b0fdd DH |
3098 | else |
3099 | echo "$as_me: failed program was:" >&5 | |
3100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3101 | ||
76c944da | 3102 | |
fe5b0fdd | 3103 | fi |
76c944da SK |
3104 | |
3105 | rm -f core conftest.err conftest.$ac_objext | |
3106 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
fe5b0fdd | 3107 | done |
76c944da | 3108 | rm -f conftest.$ac_ext |
fe5b0fdd DH |
3109 | CC=$ac_save_CC |
3110 | ||
3111 | fi | |
76c944da SK |
3112 | # AC_CACHE_VAL |
3113 | case "x$ac_cv_prog_cc_c89" in | |
3114 | x) | |
3115 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3116 | echo "${ECHO_T}none needed" >&6; } ;; | |
3117 | xno) | |
3118 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3119 | echo "${ECHO_T}unsupported" >&6; } ;; | |
fe5b0fdd | 3120 | *) |
76c944da SK |
3121 | CC="$CC $ac_cv_prog_cc_c89" |
3122 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3123 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
fe5b0fdd DH |
3124 | esac |
3125 | ||
e62b1eb3 | 3126 | |
c9a1db5e | 3127 | ac_ext=c |
e62b1eb3 DH |
3128 | ac_cpp='$CPP $CPPFLAGS' |
3129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3132 | DEPDIR="${am__leading_dot}deps" | |
3133 | ||
76c944da | 3134 | ac_config_commands="$ac_config_commands depfiles" |
e62b1eb3 DH |
3135 | |
3136 | ||
3137 | am_make=${MAKE-make} | |
3138 | cat > confinc << 'END' | |
3139 | am__doit: | |
3140 | @echo done | |
3141 | .PHONY: am__doit | |
3142 | END | |
3143 | # If we don't find an include directive, just comment out the code. | |
76c944da SK |
3144 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3145 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
e62b1eb3 DH |
3146 | am__include="#" |
3147 | am__quote= | |
3148 | _am_result=none | |
3149 | # First try GNU make style include. | |
3150 | echo "include confinc" > confmf | |
3151 | # We grep out `Entering directory' and `Leaving directory' | |
3152 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3153 | # In particular we don't look at `^make:' because GNU make might | |
3154 | # be invoked under some other name (usually "gmake"), in which | |
3155 | # case it prints its new name instead of `make'. | |
3156 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3157 | am__include=include | |
3158 | am__quote= | |
3159 | _am_result=GNU | |
3160 | fi | |
3161 | # Now try BSD make style include. | |
3162 | if test "$am__include" = "#"; then | |
3163 | echo '.include "confinc"' > confmf | |
3164 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3165 | am__include=.include | |
3166 | am__quote="\"" | |
3167 | _am_result=BSD | |
3168 | fi | |
fe5b0fdd DH |
3169 | fi |
3170 | ||
3171 | ||
76c944da SK |
3172 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3173 | echo "${ECHO_T}$_am_result" >&6; } | |
fe5b0fdd DH |
3174 | rm -f confinc confmf |
3175 | ||
76c944da | 3176 | # Check whether --enable-dependency-tracking was given. |
fe5b0fdd | 3177 | if test "${enable_dependency_tracking+set}" = set; then |
76c944da SK |
3178 | enableval=$enable_dependency_tracking; |
3179 | fi | |
fe5b0fdd DH |
3180 | |
3181 | if test "x$enable_dependency_tracking" != xno; then | |
3182 | am_depcomp="$ac_aux_dir/depcomp" | |
3183 | AMDEPBACKSLASH='\' | |
3184 | fi | |
3185 | ||
3186 | ||
3187 | if test "x$enable_dependency_tracking" != xno; then | |
3188 | AMDEP_TRUE= | |
3189 | AMDEP_FALSE='#' | |
3190 | else | |
3191 | AMDEP_TRUE='#' | |
3192 | AMDEP_FALSE= | |
3193 | fi | |
3194 | ||
3195 | ||
3196 | ||
3197 | ||
3198 | depcc="$CC" am_compiler_list= | |
3199 | ||
76c944da SK |
3200 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3201 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
fe5b0fdd DH |
3202 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3204 | else | |
3205 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3206 | # We make a subdir and do the tests there. Otherwise we can end up | |
3207 | # making bogus files that we don't know about and never remove. For | |
3208 | # instance it was reported that on HP-UX the gcc test will end up | |
3209 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3210 | # in D'. | |
3211 | mkdir conftest.dir | |
3212 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3213 | # using a relative directory. | |
3214 | cp "$am_depcomp" conftest.dir | |
3215 | cd conftest.dir | |
3216 | # We will build objects and dependencies in a subdirectory because | |
3217 | # it helps to detect inapplicable dependency modes. For instance | |
3218 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3219 | # side effect of compilation, but ICC will put the dependencies in | |
3220 | # the current directory while Tru64 will put them in the object | |
3221 | # directory. | |
3222 | mkdir sub | |
3223 | ||
3224 | am_cv_CC_dependencies_compiler_type=none | |
3225 | if test "$am_compiler_list" = ""; then | |
3226 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3227 | fi | |
3228 | for depmode in $am_compiler_list; do | |
3229 | # Setup a source with many dependencies, because some compilers | |
3230 | # like to wrap large dependency lists on column 80 (with \), and | |
3231 | # we should not choose a depcomp mode which is confused by this. | |
3232 | # | |
3233 | # We need to recreate these files for each test, as the compiler may | |
3234 | # overwrite some of them when testing with obscure command lines. | |
3235 | # This happens at least with the AIX C compiler. | |
3236 | : > sub/conftest.c | |
3237 | for i in 1 2 3 4 5 6; do | |
3238 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3239 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3240 | # Solaris 8's {/usr,}/bin/sh. | |
3241 | touch sub/conftst$i.h | |
3242 | done | |
3243 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3244 | ||
3245 | case $depmode in | |
3246 | nosideeffect) | |
3247 | # after this tag, mechanisms are not by side-effect, so they'll | |
3248 | # only be used when explicitly requested | |
3249 | if test "x$enable_dependency_tracking" = xyes; then | |
3250 | continue | |
3251 | else | |
3252 | break | |
3253 | fi | |
3254 | ;; | |
3255 | none) break ;; | |
3256 | esac | |
3257 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3258 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3259 | # handle `-M -o', and we need to detect this. | |
3260 | if depmode=$depmode \ | |
3261 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3262 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3263 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3264 | >/dev/null 2>conftest.err && | |
3265 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3266 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3267 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3268 | # icc doesn't choke on unknown options, it will just issue warnings | |
3269 | # or remarks (even with -Werror). So we grep stderr for any message | |
3270 | # that says an option was ignored or not supported. | |
3271 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3272 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3273 | # The diagnosis changed in icc 8.0: | |
3274 | # icc: Command line remark: option '-MP' not supported | |
3275 | if (grep 'ignoring option' conftest.err || | |
3276 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3277 | am_cv_CC_dependencies_compiler_type=$depmode | |
3278 | break | |
3279 | fi | |
3280 | fi | |
3281 | done | |
3282 | ||
3283 | cd .. | |
3284 | rm -rf conftest.dir | |
3285 | else | |
3286 | am_cv_CC_dependencies_compiler_type=none | |
3287 | fi | |
3288 | ||
3289 | fi | |
76c944da SK |
3290 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3291 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
fe5b0fdd DH |
3292 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3293 | ||
3294 | ||
3295 | ||
3296 | if | |
3297 | test "x$enable_dependency_tracking" != xno \ | |
3298 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3299 | am__fastdepCC_TRUE= | |
3300 | am__fastdepCC_FALSE='#' | |
3301 | else | |
3302 | am__fastdepCC_TRUE='#' | |
3303 | am__fastdepCC_FALSE= | |
3304 | fi | |
3305 | ||
3306 | ||
3307 | if test -n "$ac_tool_prefix"; then | |
3308 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3309 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
76c944da SK |
3310 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
3312 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3314 | else | |
3315 | if test -n "$RANLIB"; then | |
3316 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3317 | else | |
3318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3319 | for as_dir in $PATH | |
3320 | do | |
3321 | IFS=$as_save_IFS | |
3322 | test -z "$as_dir" && as_dir=. | |
3323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 3324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
3325 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3327 | break 2 | |
3328 | fi | |
3329 | done | |
3330 | done | |
76c944da | 3331 | IFS=$as_save_IFS |
fe5b0fdd DH |
3332 | |
3333 | fi | |
3334 | fi | |
3335 | RANLIB=$ac_cv_prog_RANLIB | |
3336 | if test -n "$RANLIB"; then | |
76c944da SK |
3337 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3338 | echo "${ECHO_T}$RANLIB" >&6; } | |
fe5b0fdd | 3339 | else |
76c944da SK |
3340 | { echo "$as_me:$LINENO: result: no" >&5 |
3341 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
3342 | fi |
3343 | ||
76c944da | 3344 | |
fe5b0fdd DH |
3345 | fi |
3346 | if test -z "$ac_cv_prog_RANLIB"; then | |
3347 | ac_ct_RANLIB=$RANLIB | |
3348 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3349 | set dummy ranlib; ac_word=$2 | |
76c944da SK |
3350 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fe5b0fdd DH |
3352 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3354 | else | |
3355 | if test -n "$ac_ct_RANLIB"; then | |
3356 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3357 | else | |
3358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3359 | for as_dir in $PATH | |
3360 | do | |
3361 | IFS=$as_save_IFS | |
3362 | test -z "$as_dir" && as_dir=. | |
3363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
76c944da | 3364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
fe5b0fdd DH |
3365 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3367 | break 2 | |
3368 | fi | |
3369 | done | |
3370 | done | |
76c944da | 3371 | IFS=$as_save_IFS |
fe5b0fdd DH |
3372 | |
3373 | fi | |
3374 | fi | |
3375 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3376 | if test -n "$ac_ct_RANLIB"; then | |
76c944da SK |
3377 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3378 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
fe5b0fdd | 3379 | else |
76c944da SK |
3380 | { echo "$as_me:$LINENO: result: no" >&5 |
3381 | echo "${ECHO_T}no" >&6; } | |
fe5b0fdd DH |
3382 | fi |
3383 | ||
76c944da SK |
3384 | if test "x$ac_ct_RANLIB" = x; then |
3385 | RANLIB=":" | |
3386 | else | |
3387 | case $cross_compiling:$ac_tool_warned in | |
3388 | yes:) | |
3389 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3390 | whose name does not start with the host triplet. If you think this | |
3391 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3392 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3393 | whose name does not start with the host triplet. If you think this | |
3394 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3395 | ac_tool_warned=yes ;; | |
3396 | esac | |
3397 | RANLIB=$ac_ct_RANLIB | |
3398 | fi | |
fe5b0fdd DH |
3399 | else |
3400 | RANLIB="$ac_cv_prog_RANLIB" | |
3401 | fi | |
3402 | ||
76c944da | 3403 | ac_config_headers="$ac_config_headers includes/config.h" |
fe5b0fdd DH |
3404 | |
3405 | ||
3406 | # we sometimes need to know byte order for building packets | |
3407 | ||
76c944da SK |
3408 | ac_ext=c |
3409 | ac_cpp='$CPP $CPPFLAGS' | |
3410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3413 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3414 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
3415 | # On Suns, sometimes $CPP names a directory. | |
3416 | if test -n "$CPP" && test -d "$CPP"; then | |
3417 | CPP= | |
3418 | fi | |
3419 | if test -z "$CPP"; then | |
3420 | if test "${ac_cv_prog_CPP+set}" = set; then | |
fe5b0fdd DH |
3421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3422 | else | |
76c944da SK |
3423 | # Double quotes because CPP needs to be expanded |
3424 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3425 | do | |
3426 | ac_preproc_ok=false | |
3427 | for ac_c_preproc_warn_flag in '' yes | |
3428 | do | |
3429 | # Use a header file that comes with gcc, so configuring glibc | |
3430 | # with a fresh cross-compiler works. | |
3431 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3432 | # <limits.h> exists even on freestanding compilers. | |
3433 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3434 | # not just through cpp. "Syntax error" is here to catch this case. | |
3435 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
3436 | /* confdefs.h. */ |
3437 | _ACEOF | |
3438 | cat confdefs.h >>conftest.$ac_ext | |
3439 | cat >>conftest.$ac_ext <<_ACEOF | |
3440 | /* end confdefs.h. */ | |
76c944da SK |
3441 | #ifdef __STDC__ |
3442 | # include <limits.h> | |
3443 | #else | |
3444 | # include <assert.h> | |
fe5b0fdd | 3445 | #endif |
76c944da | 3446 | Syntax error |
fe5b0fdd | 3447 | _ACEOF |
76c944da SK |
3448 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3449 | case "(($ac_try" in | |
3450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3451 | *) ac_try_echo=$ac_try;; | |
3452 | esac | |
3453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
3455 | ac_status=$? |
3456 | grep -v '^ *+' conftest.er1 >conftest.err | |
3457 | rm -f conftest.er1 | |
3458 | cat conftest.err >&5 | |
3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
3460 | (exit $ac_status); } >/dev/null && { |
3461 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3462 | test ! -s conftest.err | |
3463 | }; then | |
3464 | : | |
3465 | else | |
3466 | echo "$as_me: failed program was:" >&5 | |
3467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3468 | ||
3469 | # Broken: fails on valid input. | |
3470 | continue | |
3471 | fi | |
3472 | ||
3473 | rm -f conftest.err conftest.$ac_ext | |
3474 | ||
3475 | # OK, works on sane cases. Now check whether nonexistent headers | |
3476 | # can be detected and how. | |
3477 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
3478 | /* confdefs.h. */ |
3479 | _ACEOF | |
3480 | cat confdefs.h >>conftest.$ac_ext | |
3481 | cat >>conftest.$ac_ext <<_ACEOF | |
3482 | /* end confdefs.h. */ | |
76c944da | 3483 | #include <ac_nonexistent.h> |
fe5b0fdd | 3484 | _ACEOF |
76c944da SK |
3485 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3486 | case "(($ac_try" in | |
3487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3488 | *) ac_try_echo=$ac_try;; | |
3489 | esac | |
3490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3491 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
3492 | ac_status=$? |
3493 | grep -v '^ *+' conftest.er1 >conftest.err | |
3494 | rm -f conftest.er1 | |
3495 | cat conftest.err >&5 | |
3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
3497 | (exit $ac_status); } >/dev/null && { |
3498 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3499 | test ! -s conftest.err | |
3500 | }; then | |
3501 | # Broken: success on invalid input. | |
3502 | continue | |
fe5b0fdd | 3503 | else |
e62b1eb3 DH |
3504 | echo "$as_me: failed program was:" >&5 |
3505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3506 | ||
76c944da SK |
3507 | # Passes both tests. |
3508 | ac_preproc_ok=: | |
3509 | break | |
273bfdc3 | 3510 | fi |
c9a1db5e | 3511 | |
76c944da SK |
3512 | rm -f conftest.err conftest.$ac_ext |
3513 | ||
3514 | done | |
3515 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3516 | rm -f conftest.err conftest.$ac_ext | |
3517 | if $ac_preproc_ok; then | |
3518 | break | |
3519 | fi | |
3520 | ||
3521 | done | |
3522 | ac_cv_prog_CPP=$CPP | |
3523 | ||
3524 | fi | |
3525 | CPP=$ac_cv_prog_CPP | |
3526 | else | |
3527 | ac_cv_prog_CPP=$CPP | |
3528 | fi | |
3529 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
3530 | echo "${ECHO_T}$CPP" >&6; } | |
3531 | ac_preproc_ok=false | |
3532 | for ac_c_preproc_warn_flag in '' yes | |
3533 | do | |
3534 | # Use a header file that comes with gcc, so configuring glibc | |
3535 | # with a fresh cross-compiler works. | |
3536 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3537 | # <limits.h> exists even on freestanding compilers. | |
3538 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3539 | # not just through cpp. "Syntax error" is here to catch this case. | |
e62b1eb3 DH |
3540 | cat >conftest.$ac_ext <<_ACEOF |
3541 | /* confdefs.h. */ | |
3542 | _ACEOF | |
3543 | cat confdefs.h >>conftest.$ac_ext | |
3544 | cat >>conftest.$ac_ext <<_ACEOF | |
3545 | /* end confdefs.h. */ | |
76c944da SK |
3546 | #ifdef __STDC__ |
3547 | # include <limits.h> | |
3548 | #else | |
3549 | # include <assert.h> | |
3550 | #endif | |
3551 | Syntax error | |
e62b1eb3 | 3552 | _ACEOF |
76c944da SK |
3553 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3554 | case "(($ac_try" in | |
3555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3556 | *) ac_try_echo=$ac_try;; | |
3557 | esac | |
3558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3559 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e62b1eb3 DH |
3560 | ac_status=$? |
3561 | grep -v '^ *+' conftest.er1 >conftest.err | |
3562 | rm -f conftest.er1 | |
3563 | cat conftest.err >&5 | |
3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
3565 | (exit $ac_status); } >/dev/null && { |
3566 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3567 | test ! -s conftest.err | |
3568 | }; then | |
3569 | : | |
e62b1eb3 DH |
3570 | else |
3571 | echo "$as_me: failed program was:" >&5 | |
3572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3573 | ||
76c944da SK |
3574 | # Broken: fails on valid input. |
3575 | continue | |
e62b1eb3 | 3576 | fi |
76c944da SK |
3577 | |
3578 | rm -f conftest.err conftest.$ac_ext | |
3579 | ||
3580 | # OK, works on sane cases. Now check whether nonexistent headers | |
3581 | # can be detected and how. | |
e62b1eb3 DH |
3582 | cat >conftest.$ac_ext <<_ACEOF |
3583 | /* confdefs.h. */ | |
3584 | _ACEOF | |
3585 | cat confdefs.h >>conftest.$ac_ext | |
3586 | cat >>conftest.$ac_ext <<_ACEOF | |
3587 | /* end confdefs.h. */ | |
76c944da | 3588 | #include <ac_nonexistent.h> |
e62b1eb3 | 3589 | _ACEOF |
76c944da SK |
3590 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 | |
c9a1db5e | 3597 | ac_status=$? |
76c944da SK |
3598 | grep -v '^ *+' conftest.er1 >conftest.err |
3599 | rm -f conftest.er1 | |
3600 | cat conftest.err >&5 | |
c9a1db5e | 3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
76c944da SK |
3602 | (exit $ac_status); } >/dev/null && { |
3603 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3604 | test ! -s conftest.err | |
3605 | }; then | |
3606 | # Broken: success on invalid input. | |
3607 | continue | |
e62b1eb3 | 3608 | else |
76c944da | 3609 | echo "$as_me: failed program was:" >&5 |
e62b1eb3 DH |
3610 | sed 's/^/| /' conftest.$ac_ext >&5 |
3611 | ||
76c944da SK |
3612 | # Passes both tests. |
3613 | ac_preproc_ok=: | |
3614 | break | |
c9a1db5e | 3615 | fi |
c9a1db5e | 3616 | |
76c944da | 3617 | rm -f conftest.err conftest.$ac_ext |
c9a1db5e | 3618 | |
76c944da SK |
3619 | done |
3620 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3621 | rm -f conftest.err conftest.$ac_ext | |
3622 | if $ac_preproc_ok; then | |
3623 | : | |
3624 | else | |
3625 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3626 | See \`config.log' for more details." >&5 | |
3627 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3628 | See \`config.log' for more details." >&2;} | |
3629 | { (exit 1); exit 1; }; } | |
3630 | fi | |
c9a1db5e | 3631 | |
76c944da SK |
3632 | ac_ext=c |
3633 | ac_cpp='$CPP $CPPFLAGS' | |
3634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c9a1db5e | 3637 | |
c9a1db5e | 3638 | |
76c944da SK |
3639 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3640 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3641 | if test "${ac_cv_path_GREP+set}" = set; then | |
3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3643 | else | |
3644 | # Extract the first word of "grep ggrep" to use in msg output | |
3645 | if test -z "$GREP"; then | |
3646 | set dummy grep ggrep; ac_prog_name=$2 | |
3647 | if test "${ac_cv_path_GREP+set}" = set; then | |
3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3649 | else | |
3650 | ac_path_GREP_found=false | |
3651 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3653 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3654 | do | |
3655 | IFS=$as_save_IFS | |
3656 | test -z "$as_dir" && as_dir=. | |
3657 | for ac_prog in grep ggrep; do | |
3658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3659 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3660 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3661 | # Check for GNU ac_path_GREP and select it if it is found. | |
3662 | # Check for GNU $ac_path_GREP | |
3663 | case `"$ac_path_GREP" --version 2>&1` in | |
3664 | *GNU*) | |
3665 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3666 | *) | |
3667 | ac_count=0 | |
3668 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3669 | while : | |
3670 | do | |
3671 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3672 | mv "conftest.tmp" "conftest.in" | |
3673 | cp "conftest.in" "conftest.nl" | |
3674 | echo 'GREP' >> "conftest.nl" | |
3675 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3676 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3677 | ac_count=`expr $ac_count + 1` | |
3678 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3679 | # Best one so far, save it but keep looking for a better one | |
3680 | ac_cv_path_GREP="$ac_path_GREP" | |
3681 | ac_path_GREP_max=$ac_count | |
3682 | fi | |
3683 | # 10*(2^10) chars as input seems more than enough | |
3684 | test $ac_count -gt 10 && break | |
3685 | done | |
3686 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3687 | esac | |
c9a1db5e | 3688 | |
c9a1db5e | 3689 | |
76c944da SK |
3690 | $ac_path_GREP_found && break 3 |
3691 | done | |
3692 | done | |
c9a1db5e | 3693 | |
76c944da SK |
3694 | done |
3695 | IFS=$as_save_IFS | |
e62b1eb3 | 3696 | |
c9a1db5e | 3697 | |
76c944da | 3698 | fi |
c9a1db5e | 3699 | |
76c944da SK |
3700 | GREP="$ac_cv_path_GREP" |
3701 | if test -z "$GREP"; then | |
3702 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3703 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3704 | { (exit 1); exit 1; }; } | |
3705 | fi | |
c9a1db5e | 3706 | |
76c944da SK |
3707 | else |
3708 | ac_cv_path_GREP=$GREP | |
3709 | fi | |
c9a1db5e | 3710 | |
c9a1db5e | 3711 | |
76c944da SK |
3712 | fi |
3713 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3714 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3715 | GREP="$ac_cv_path_GREP" | |
c9a1db5e | 3716 | |
c9a1db5e | 3717 | |
76c944da SK |
3718 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3719 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3720 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3722 | else | |
3723 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3724 | then ac_cv_path_EGREP="$GREP -E" | |
3725 | else | |
3726 | # Extract the first word of "egrep" to use in msg output | |
3727 | if test -z "$EGREP"; then | |
3728 | set dummy egrep; ac_prog_name=$2 | |
3729 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3731 | else | |
3732 | ac_path_EGREP_found=false | |
3733 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3735 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3736 | do | |
3737 | IFS=$as_save_IFS | |
3738 | test -z "$as_dir" && as_dir=. | |
3739 | for ac_prog in egrep; do | |
3740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3741 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3742 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3743 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3744 | # Check for GNU $ac_path_EGREP | |
3745 | case `"$ac_path_EGREP" --version 2>&1` in | |
3746 | *GNU*) | |
3747 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3748 | *) | |
3749 | ac_count=0 | |
3750 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3751 | while : | |
3752 | do | |
3753 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3754 | mv "conftest.tmp" "conftest.in" | |
3755 | cp "conftest.in" "conftest.nl" | |
3756 | echo 'EGREP' >> "conftest.nl" | |
3757 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3758 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3759 | ac_count=`expr $ac_count + 1` | |
3760 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3761 | # Best one so far, save it but keep looking for a better one | |
3762 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3763 | ac_path_EGREP_max=$ac_count | |
3764 | fi | |
3765 | # 10*(2^10) chars as input seems more than enough | |
3766 | test $ac_count -gt 10 && break | |
3767 | done | |
3768 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3769 | esac | |
c9a1db5e | 3770 | |
c9a1db5e | 3771 | |
76c944da SK |
3772 | $ac_path_EGREP_found && break 3 |
3773 | done | |
3774 | done | |
c9a1db5e | 3775 | |
76c944da SK |
3776 | done |
3777 | IFS=$as_save_IFS | |
c9a1db5e | 3778 | |
c9a1db5e | 3779 | |
76c944da | 3780 | fi |
c9a1db5e | 3781 | |
76c944da SK |
3782 | EGREP="$ac_cv_path_EGREP" |
3783 | if test -z "$EGREP"; then | |
3784 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3785 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3786 | { (exit 1); exit 1; }; } | |
3787 | fi | |
c9a1db5e | 3788 | |
76c944da SK |
3789 | else |
3790 | ac_cv_path_EGREP=$EGREP | |
c9a1db5e | 3791 | fi |
76c944da SK |
3792 | |
3793 | ||
3794 | fi | |
3795 | fi | |
3796 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3797 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3798 | EGREP="$ac_cv_path_EGREP" | |
3799 | ||
3800 | ||
3801 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3802 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
3803 | if test "${ac_cv_header_stdc+set}" = set; then | |
273bfdc3 | 3804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe5b0fdd | 3805 | else |
c9a1db5e MA |
3806 | cat >conftest.$ac_ext <<_ACEOF |
3807 | /* confdefs.h. */ | |
3808 | _ACEOF | |
3809 | cat confdefs.h >>conftest.$ac_ext | |
3810 | cat >>conftest.$ac_ext <<_ACEOF | |
3811 | /* end confdefs.h. */ | |
76c944da SK |
3812 | #include <stdlib.h> |
3813 | #include <stdarg.h> | |
3814 | #include <string.h> | |
3815 | #include <float.h> | |
3816 | ||
3817 | int | |
3818 | main () | |
3819 | { | |
3820 | ||
3821 | ; | |
3822 | return 0; | |
3823 | } | |
c9a1db5e | 3824 | _ACEOF |
76c944da SK |
3825 | rm -f conftest.$ac_objext |
3826 | if { (ac_try="$ac_compile" | |
3827 | case "(($ac_try" in | |
3828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3829 | *) ac_try_echo=$ac_try;; | |
3830 | esac | |
3831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3832 | (eval "$ac_compile") 2>conftest.er1 | |
c9a1db5e MA |
3833 | ac_status=$? |
3834 | grep -v '^ *+' conftest.er1 >conftest.err | |
3835 | rm -f conftest.er1 | |
3836 | cat conftest.err >&5 | |
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
3838 | (exit $ac_status); } && { |
3839 | test -z "$ac_c_werror_flag" || | |
3840 | test ! -s conftest.err | |
3841 | } && test -s conftest.$ac_objext; then | |
3842 | ac_cv_header_stdc=yes | |
c9a1db5e MA |
3843 | else |
3844 | echo "$as_me: failed program was:" >&5 | |
3845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
273bfdc3 | 3846 | |
76c944da | 3847 | ac_cv_header_stdc=no |
fe5b0fdd | 3848 | fi |
273bfdc3 | 3849 | |
76c944da SK |
3850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3851 | ||
3852 | if test $ac_cv_header_stdc = yes; then | |
3853 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
c9a1db5e MA |
3854 | cat >conftest.$ac_ext <<_ACEOF |
3855 | /* confdefs.h. */ | |
3856 | _ACEOF | |
3857 | cat confdefs.h >>conftest.$ac_ext | |
3858 | cat >>conftest.$ac_ext <<_ACEOF | |
3859 | /* end confdefs.h. */ | |
76c944da SK |
3860 | #include <string.h> |
3861 | ||
c9a1db5e | 3862 | _ACEOF |
76c944da SK |
3863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3864 | $EGREP "memchr" >/dev/null 2>&1; then | |
3865 | : | |
fe5b0fdd | 3866 | else |
76c944da | 3867 | ac_cv_header_stdc=no |
fe5b0fdd | 3868 | fi |
76c944da | 3869 | rm -f conftest* |
fe5b0fdd | 3870 | |
c9a1db5e | 3871 | fi |
273bfdc3 | 3872 | |
76c944da SK |
3873 | if test $ac_cv_header_stdc = yes; then |
3874 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3875 | cat >conftest.$ac_ext <<_ACEOF | |
3876 | /* confdefs.h. */ | |
3877 | _ACEOF | |
3878 | cat confdefs.h >>conftest.$ac_ext | |
3879 | cat >>conftest.$ac_ext <<_ACEOF | |
3880 | /* end confdefs.h. */ | |
3881 | #include <stdlib.h> | |
fe5b0fdd | 3882 | |
76c944da SK |
3883 | _ACEOF |
3884 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3885 | $EGREP "free" >/dev/null 2>&1; then | |
3886 | : | |
3887 | else | |
3888 | ac_cv_header_stdc=no | |
3889 | fi | |
3890 | rm -f conftest* | |
273bfdc3 | 3891 | |
c9a1db5e | 3892 | fi |
76c944da SK |
3893 | |
3894 | if test $ac_cv_header_stdc = yes; then | |
3895 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3896 | if test "$cross_compiling" = yes; then | |
3897 | : | |
fe5b0fdd | 3898 | else |
c9a1db5e MA |
3899 | cat >conftest.$ac_ext <<_ACEOF |
3900 | /* confdefs.h. */ | |
3901 | _ACEOF | |
3902 | cat confdefs.h >>conftest.$ac_ext | |
3903 | cat >>conftest.$ac_ext <<_ACEOF | |
3904 | /* end confdefs.h. */ | |
76c944da SK |
3905 | #include <ctype.h> |
3906 | #include <stdlib.h> | |
3907 | #if ((' ' & 0x0FF) == 0x020) | |
3908 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3909 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
c9a1db5e | 3910 | #else |
76c944da SK |
3911 | # define ISLOWER(c) \ |
3912 | (('a' <= (c) && (c) <= 'i') \ | |
3913 | || ('j' <= (c) && (c) <= 'r') \ | |
3914 | || ('s' <= (c) && (c) <= 'z')) | |
3915 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
c9a1db5e | 3916 | #endif |
76c944da SK |
3917 | |
3918 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3919 | int | |
3920 | main () | |
3921 | { | |
3922 | int i; | |
3923 | for (i = 0; i < 256; i++) | |
3924 | if (XOR (islower (i), ISLOWER (i)) | |
3925 | || toupper (i) != TOUPPER (i)) | |
3926 | return 2; | |
3927 | return 0; | |
3928 | } | |
c9a1db5e | 3929 | _ACEOF |
76c944da SK |
3930 | rm -f conftest$ac_exeext |
3931 | if { (ac_try="$ac_link" | |
3932 | case "(($ac_try" in | |
3933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3934 | *) ac_try_echo=$ac_try;; | |
3935 | esac | |
3936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3937 | (eval "$ac_link") 2>&5 | |
c9a1db5e | 3938 | ac_status=$? |
c9a1db5e | 3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
76c944da SK |
3940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3941 | { (case "(($ac_try" in | |
3942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3943 | *) ac_try_echo=$ac_try;; | |
3944 | esac | |
3945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3946 | (eval "$ac_try") 2>&5 | |
3947 | ac_status=$? | |
3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3949 | (exit $ac_status); }; }; then | |
c9a1db5e MA |
3950 | : |
3951 | else | |
76c944da SK |
3952 | echo "$as_me: program exited with status $ac_status" >&5 |
3953 | echo "$as_me: failed program was:" >&5 | |
c9a1db5e | 3954 | sed 's/^/| /' conftest.$ac_ext >&5 |
fe5b0fdd | 3955 | |
76c944da SK |
3956 | ( exit $ac_status ) |
3957 | ac_cv_header_stdc=no | |
3958 | fi | |
3959 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
c9a1db5e | 3960 | fi |
fe5b0fdd | 3961 | |
76c944da SK |
3962 | |
3963 | fi | |
3964 | fi | |
3965 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3966 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
3967 | if test $ac_cv_header_stdc = yes; then | |
3968 | ||
3969 | cat >>confdefs.h <<\_ACEOF | |
3970 | #define STDC_HEADERS 1 | |
3971 | _ACEOF | |
3972 | ||
3973 | fi | |
3974 | ||
3975 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3976 | ||
3977 | ||
3978 | ||
3979 | ||
3980 | ||
3981 | ||
3982 | ||
3983 | ||
3984 | ||
3985 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3986 | inttypes.h stdint.h unistd.h | |
3987 | do | |
3988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3989 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3993 | else | |
c9a1db5e MA |
3994 | cat >conftest.$ac_ext <<_ACEOF |
3995 | /* confdefs.h. */ | |
3996 | _ACEOF | |
3997 | cat confdefs.h >>conftest.$ac_ext | |
3998 | cat >>conftest.$ac_ext <<_ACEOF | |
3999 | /* end confdefs.h. */ | |
76c944da SK |
4000 | $ac_includes_default |
4001 | ||
4002 | #include <$ac_header> | |
c9a1db5e | 4003 | _ACEOF |
76c944da SK |
4004 | rm -f conftest.$ac_objext |
4005 | if { (ac_try="$ac_compile" | |
4006 | case "(($ac_try" in | |
4007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4008 | *) ac_try_echo=$ac_try;; | |
4009 | esac | |
4010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4011 | (eval "$ac_compile") 2>conftest.er1 | |
c9a1db5e MA |
4012 | ac_status=$? |
4013 | grep -v '^ *+' conftest.er1 >conftest.err | |
4014 | rm -f conftest.er1 | |
4015 | cat conftest.err >&5 | |
4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4017 | (exit $ac_status); } && { |
4018 | test -z "$ac_c_werror_flag" || | |
4019 | test ! -s conftest.err | |
4020 | } && test -s conftest.$ac_objext; then | |
4021 | eval "$as_ac_Header=yes" | |
c9a1db5e MA |
4022 | else |
4023 | echo "$as_me: failed program was:" >&5 | |
4024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
273bfdc3 | 4025 | |
76c944da | 4026 | eval "$as_ac_Header=no" |
273bfdc3 DH |
4027 | fi |
4028 | ||
76c944da | 4029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
273bfdc3 | 4030 | fi |
76c944da SK |
4031 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4033 | echo "${ECHO_T}$ac_res" >&6; } | |
4034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4035 | cat >>confdefs.h <<_ACEOF | |
4036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4037 | _ACEOF | |
273bfdc3 | 4038 | |
e62b1eb3 | 4039 | fi |
e62b1eb3 | 4040 | |
76c944da | 4041 | done |
e62b1eb3 | 4042 | |
76c944da SK |
4043 | |
4044 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
4045 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
4046 | if test "${ac_cv_c_bigendian+set}" = set; then | |
fe5b0fdd DH |
4047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4048 | else | |
76c944da SK |
4049 | # See if sys/param.h defines the BYTE_ORDER macro. |
4050 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
4051 | /* confdefs.h. */ |
4052 | _ACEOF | |
4053 | cat confdefs.h >>conftest.$ac_ext | |
4054 | cat >>conftest.$ac_ext <<_ACEOF | |
4055 | /* end confdefs.h. */ | |
76c944da SK |
4056 | #include <sys/types.h> |
4057 | #include <sys/param.h> | |
fe5b0fdd DH |
4058 | |
4059 | int | |
4060 | main () | |
4061 | { | |
76c944da SK |
4062 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
4063 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
4064 | bogus endian macros | |
4065 | #endif | |
fe5b0fdd DH |
4066 | |
4067 | ; | |
4068 | return 0; | |
4069 | } | |
4070 | _ACEOF | |
4071 | rm -f conftest.$ac_objext | |
76c944da SK |
4072 | if { (ac_try="$ac_compile" |
4073 | case "(($ac_try" in | |
4074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4075 | *) ac_try_echo=$ac_try;; | |
4076 | esac | |
4077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4078 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
4079 | ac_status=$? |
4080 | grep -v '^ *+' conftest.er1 >conftest.err | |
4081 | rm -f conftest.er1 | |
4082 | cat conftest.err >&5 | |
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4084 | (exit $ac_status); } && { |
4085 | test -z "$ac_c_werror_flag" || | |
4086 | test ! -s conftest.err | |
4087 | } && test -s conftest.$ac_objext; then | |
4088 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4089 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
4090 | /* confdefs.h. */ |
4091 | _ACEOF | |
4092 | cat confdefs.h >>conftest.$ac_ext | |
4093 | cat >>conftest.$ac_ext <<_ACEOF | |
4094 | /* end confdefs.h. */ | |
76c944da SK |
4095 | #include <sys/types.h> |
4096 | #include <sys/param.h> | |
fe5b0fdd | 4097 | |
76c944da SK |
4098 | int |
4099 | main () | |
4100 | { | |
4101 | #if BYTE_ORDER != BIG_ENDIAN | |
4102 | not big endian | |
4103 | #endif | |
4104 | ||
4105 | ; | |
4106 | return 0; | |
4107 | } | |
fe5b0fdd | 4108 | _ACEOF |
76c944da SK |
4109 | rm -f conftest.$ac_objext |
4110 | if { (ac_try="$ac_compile" | |
4111 | case "(($ac_try" in | |
4112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4113 | *) ac_try_echo=$ac_try;; | |
4114 | esac | |
4115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4116 | (eval "$ac_compile") 2>conftest.er1 | |
4117 | ac_status=$? | |
4118 | grep -v '^ *+' conftest.er1 >conftest.err | |
4119 | rm -f conftest.er1 | |
4120 | cat conftest.err >&5 | |
4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4122 | (exit $ac_status); } && { | |
4123 | test -z "$ac_c_werror_flag" || | |
4124 | test ! -s conftest.err | |
4125 | } && test -s conftest.$ac_objext; then | |
4126 | ac_cv_c_bigendian=yes | |
fe5b0fdd | 4127 | else |
76c944da SK |
4128 | echo "$as_me: failed program was:" >&5 |
4129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe5b0fdd | 4130 | |
76c944da | 4131 | ac_cv_c_bigendian=no |
fe5b0fdd DH |
4132 | fi |
4133 | ||
76c944da SK |
4134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4135 | else | |
4136 | echo "$as_me: failed program was:" >&5 | |
4137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4138 | ||
4139 | # It does not; compile a test program. | |
4140 | if test "$cross_compiling" = yes; then | |
4141 | # try to guess the endianness by grepping values into an object file | |
4142 | ac_cv_c_bigendian=unknown | |
fe5b0fdd DH |
4143 | cat >conftest.$ac_ext <<_ACEOF |
4144 | /* confdefs.h. */ | |
4145 | _ACEOF | |
4146 | cat confdefs.h >>conftest.$ac_ext | |
4147 | cat >>conftest.$ac_ext <<_ACEOF | |
4148 | /* end confdefs.h. */ | |
76c944da SK |
4149 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4150 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4151 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
4152 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4153 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4154 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
4155 | int | |
4156 | main () | |
4157 | { | |
4158 | _ascii (); _ebcdic (); | |
4159 | ; | |
4160 | return 0; | |
4161 | } | |
fe5b0fdd | 4162 | _ACEOF |
76c944da SK |
4163 | rm -f conftest.$ac_objext |
4164 | if { (ac_try="$ac_compile" | |
4165 | case "(($ac_try" in | |
4166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4167 | *) ac_try_echo=$ac_try;; | |
4168 | esac | |
4169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4170 | (eval "$ac_compile") 2>conftest.er1 | |
4171 | ac_status=$? | |
4172 | grep -v '^ *+' conftest.er1 >conftest.err | |
4173 | rm -f conftest.er1 | |
4174 | cat conftest.err >&5 | |
4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4176 | (exit $ac_status); } && { | |
4177 | test -z "$ac_c_werror_flag" || | |
4178 | test ! -s conftest.err | |
4179 | } && test -s conftest.$ac_objext; then | |
4180 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
4181 | ac_cv_c_bigendian=yes | |
fe5b0fdd | 4182 | fi |
76c944da SK |
4183 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
4184 | if test "$ac_cv_c_bigendian" = unknown; then | |
4185 | ac_cv_c_bigendian=no | |
4186 | else | |
4187 | # finding both strings is unlikely to happen, but who knows? | |
4188 | ac_cv_c_bigendian=unknown | |
4189 | fi | |
4190 | fi | |
4191 | else | |
4192 | echo "$as_me: failed program was:" >&5 | |
4193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4194 | ||
fe5b0fdd DH |
4195 | |
4196 | fi | |
4197 | ||
76c944da | 4198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fe5b0fdd DH |
4199 | else |
4200 | cat >conftest.$ac_ext <<_ACEOF | |
4201 | /* confdefs.h. */ | |
4202 | _ACEOF | |
4203 | cat confdefs.h >>conftest.$ac_ext | |
4204 | cat >>conftest.$ac_ext <<_ACEOF | |
4205 | /* end confdefs.h. */ | |
76c944da | 4206 | $ac_includes_default |
fe5b0fdd DH |
4207 | int |
4208 | main () | |
4209 | { | |
76c944da SK |
4210 | |
4211 | /* Are we little or big endian? From Harbison&Steele. */ | |
4212 | union | |
4213 | { | |
4214 | long int l; | |
4215 | char c[sizeof (long int)]; | |
4216 | } u; | |
4217 | u.l = 1; | |
4218 | return u.c[sizeof (long int) - 1] == 1; | |
4219 | ||
4220 | ; | |
4221 | return 0; | |
fe5b0fdd DH |
4222 | } |
4223 | _ACEOF | |
4224 | rm -f conftest$ac_exeext | |
76c944da SK |
4225 | if { (ac_try="$ac_link" |
4226 | case "(($ac_try" in | |
4227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4228 | *) ac_try_echo=$ac_try;; | |
4229 | esac | |
4230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4231 | (eval "$ac_link") 2>&5 | |
fe5b0fdd DH |
4232 | ac_status=$? |
4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
76c944da SK |
4235 | { (case "(($ac_try" in |
4236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4237 | *) ac_try_echo=$ac_try;; | |
4238 | esac | |
4239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4240 | (eval "$ac_try") 2>&5 | |
fe5b0fdd DH |
4241 | ac_status=$? |
4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4243 | (exit $ac_status); }; }; then | |
76c944da | 4244 | ac_cv_c_bigendian=no |
fe5b0fdd DH |
4245 | else |
4246 | echo "$as_me: program exited with status $ac_status" >&5 | |
4247 | echo "$as_me: failed program was:" >&5 | |
4248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4249 | ||
4250 | ( exit $ac_status ) | |
76c944da | 4251 | ac_cv_c_bigendian=yes |
fe5b0fdd | 4252 | fi |
76c944da | 4253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fe5b0fdd | 4254 | fi |
76c944da SK |
4255 | |
4256 | ||
fe5b0fdd | 4257 | fi |
76c944da SK |
4258 | |
4259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fe5b0fdd | 4260 | fi |
76c944da SK |
4261 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
4262 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
4263 | case $ac_cv_c_bigendian in | |
4264 | yes) | |
4265 | byte_order=BIG_ENDIAN | |
4266 | ;; | |
4267 | no) | |
4268 | byte_order=LITTLE_ENDIAN | |
4269 | ;; | |
4270 | *) | |
4271 | { { echo "$as_me:$LINENO: error: unknown endianness | |
4272 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
4273 | echo "$as_me: error: unknown endianness | |
4274 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
4275 | { (exit 1); exit 1; }; } ;; | |
4276 | esac | |
4277 | ||
4278 | ||
4279 | cat >>confdefs.h <<_ACEOF | |
4280 | #define DHCP_BYTE_ORDER $byte_order | |
4281 | _ACEOF | |
fe5b0fdd | 4282 | |
76c944da SK |
4283 | |
4284 | # DHCPv6 is off by default | |
4285 | # Check whether --enable-dhcpv6 was given. | |
4286 | if test "${enable_dhcpv6+set}" = set; then | |
4287 | enableval=$enable_dhcpv6; | |
fe5b0fdd | 4288 | cat >>confdefs.h <<\_ACEOF |
76c944da | 4289 | #define DHCPv6 1 |
fe5b0fdd DH |
4290 | _ACEOF |
4291 | ||
4292 | fi | |
4293 | ||
fe5b0fdd | 4294 | |
76c944da | 4295 | # Allow specification of alternate state files |
fe5b0fdd | 4296 | |
76c944da SK |
4297 | # Check whether --with-srv-lease-file was given. |
4298 | if test "${with_srv_lease_file+set}" = set; then | |
4299 | withval=$with_srv_lease_file; | |
4300 | cat >>confdefs.h <<_ACEOF | |
4301 | #define _PATH_DHCPD_DB "$withval" | |
4302 | _ACEOF | |
fe5b0fdd | 4303 | |
76c944da | 4304 | fi |
fe5b0fdd DH |
4305 | |
4306 | ||
76c944da SK |
4307 | # Check whether --with-cli-lease-file was given. |
4308 | if test "${with_cli_lease_file+set}" = set; then | |
4309 | withval=$with_cli_lease_file; | |
4310 | cat >>confdefs.h <<_ACEOF | |
4311 | #define _PATH_DHCLIENT_DB "$withval" | |
4312 | _ACEOF | |
fe5b0fdd | 4313 | |
76c944da | 4314 | fi |
fe5b0fdd DH |
4315 | |
4316 | ||
76c944da SK |
4317 | # Check whether --with-srv-pid-file was given. |
4318 | if test "${with_srv_pid_file+set}" = set; then | |
4319 | withval=$with_srv_pid_file; | |
4320 | cat >>confdefs.h <<_ACEOF | |
4321 | #define _PATH_DHCPD_PID "$withval" | |
fe5b0fdd | 4322 | _ACEOF |
fe5b0fdd | 4323 | |
76c944da SK |
4324 | fi |
4325 | ||
4326 | ||
4327 | # Check whether --with-cli-pid-file was given. | |
4328 | if test "${with_cli_pid_file+set}" = set; then | |
4329 | withval=$with_cli_pid_file; | |
4330 | cat >>confdefs.h <<_ACEOF | |
4331 | #define _PATH_DHCLIENT "$withval" | |
fe5b0fdd | 4332 | _ACEOF |
273bfdc3 | 4333 | |
273bfdc3 | 4334 | fi |
76c944da SK |
4335 | |
4336 | ||
4337 | # Check whether --with-relay-pid-file was given. | |
4338 | if test "${with_relay_pid_file+set}" = set; then | |
4339 | withval=$with_relay_pid_file; | |
4340 | cat >>confdefs.h <<_ACEOF | |
4341 | #define _PATH_DHCRELAY_PID "$withval" | |
273bfdc3 DH |
4342 | _ACEOF |
4343 | ||
4344 | fi | |
4345 | ||
fe5b0fdd | 4346 | |
76c944da | 4347 | # figure out what IPv4 interface code to use |
fe5b0fdd | 4348 | if test "${ac_cv_header_linux_filter_h+set}" = set; then |
76c944da SK |
4349 | { echo "$as_me:$LINENO: checking for linux/filter.h" >&5 |
4350 | echo $ECHO_N "checking for linux/filter.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4351 | if test "${ac_cv_header_linux_filter_h+set}" = set; then |
4352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4353 | fi | |
76c944da SK |
4354 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_filter_h" >&5 |
4355 | echo "${ECHO_T}$ac_cv_header_linux_filter_h" >&6; } | |
fe5b0fdd DH |
4356 | else |
4357 | # Is the header compilable? | |
76c944da SK |
4358 | { echo "$as_me:$LINENO: checking linux/filter.h usability" >&5 |
4359 | echo $ECHO_N "checking linux/filter.h usability... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4360 | cat >conftest.$ac_ext <<_ACEOF |
4361 | /* confdefs.h. */ | |
4362 | _ACEOF | |
4363 | cat confdefs.h >>conftest.$ac_ext | |
4364 | cat >>conftest.$ac_ext <<_ACEOF | |
4365 | /* end confdefs.h. */ | |
4366 | $ac_includes_default | |
4367 | #include <linux/filter.h> | |
4368 | _ACEOF | |
4369 | rm -f conftest.$ac_objext | |
76c944da SK |
4370 | if { (ac_try="$ac_compile" |
4371 | case "(($ac_try" in | |
4372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4373 | *) ac_try_echo=$ac_try;; | |
4374 | esac | |
4375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4376 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
4377 | ac_status=$? |
4378 | grep -v '^ *+' conftest.er1 >conftest.err | |
4379 | rm -f conftest.er1 | |
4380 | cat conftest.err >&5 | |
4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4382 | (exit $ac_status); } && { |
4383 | test -z "$ac_c_werror_flag" || | |
4384 | test ! -s conftest.err | |
4385 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
4386 | ac_header_compiler=yes |
4387 | else | |
4388 | echo "$as_me: failed program was:" >&5 | |
4389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4390 | ||
76c944da | 4391 | ac_header_compiler=no |
fe5b0fdd | 4392 | fi |
76c944da SK |
4393 | |
4394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4395 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4396 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
fe5b0fdd DH |
4397 | |
4398 | # Is the header present? | |
76c944da SK |
4399 | { echo "$as_me:$LINENO: checking linux/filter.h presence" >&5 |
4400 | echo $ECHO_N "checking linux/filter.h presence... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4401 | cat >conftest.$ac_ext <<_ACEOF |
4402 | /* confdefs.h. */ | |
4403 | _ACEOF | |
4404 | cat confdefs.h >>conftest.$ac_ext | |
4405 | cat >>conftest.$ac_ext <<_ACEOF | |
4406 | /* end confdefs.h. */ | |
4407 | #include <linux/filter.h> | |
4408 | _ACEOF | |
76c944da SK |
4409 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4410 | case "(($ac_try" in | |
4411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4412 | *) ac_try_echo=$ac_try;; | |
4413 | esac | |
4414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4415 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
4416 | ac_status=$? |
4417 | grep -v '^ *+' conftest.er1 >conftest.err | |
4418 | rm -f conftest.er1 | |
4419 | cat conftest.err >&5 | |
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4421 | (exit $ac_status); } >/dev/null && { |
4422 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4423 | test ! -s conftest.err | |
4424 | }; then | |
fe5b0fdd DH |
4425 | ac_header_preproc=yes |
4426 | else | |
4427 | echo "$as_me: failed program was:" >&5 | |
4428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4429 | ||
4430 | ac_header_preproc=no | |
4431 | fi | |
76c944da | 4432 | |
fe5b0fdd | 4433 | rm -f conftest.err conftest.$ac_ext |
76c944da SK |
4434 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4435 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
fe5b0fdd DH |
4436 | |
4437 | # So? What about this header? | |
4438 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4439 | yes:no: ) | |
4440 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4441 | echo "$as_me: WARNING: linux/filter.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4442 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: proceeding with the compiler's result" >&5 | |
4443 | echo "$as_me: WARNING: linux/filter.h: proceeding with the compiler's result" >&2;} | |
4444 | ac_header_preproc=yes | |
4445 | ;; | |
4446 | no:yes:* ) | |
4447 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: present but cannot be compiled" >&5 | |
4448 | echo "$as_me: WARNING: linux/filter.h: present but cannot be compiled" >&2;} | |
4449 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: check for missing prerequisite headers?" >&5 | |
4450 | echo "$as_me: WARNING: linux/filter.h: check for missing prerequisite headers?" >&2;} | |
4451 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: see the Autoconf documentation" >&5 | |
4452 | echo "$as_me: WARNING: linux/filter.h: see the Autoconf documentation" >&2;} | |
4453 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4454 | echo "$as_me: WARNING: linux/filter.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4455 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: proceeding with the preprocessor's result" >&5 | |
4456 | echo "$as_me: WARNING: linux/filter.h: proceeding with the preprocessor's result" >&2;} | |
4457 | { echo "$as_me:$LINENO: WARNING: linux/filter.h: in the future, the compiler will take precedence" >&5 | |
4458 | echo "$as_me: WARNING: linux/filter.h: in the future, the compiler will take precedence" >&2;} | |
76c944da | 4459 | ( cat <<\_ASBOX |
fe5b0fdd DH |
4460 | ## --------------------------------- ## |
4461 | ## Report this to dhcp-users@isc.org ## | |
4462 | ## --------------------------------- ## | |
4463 | _ASBOX | |
76c944da | 4464 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
fe5b0fdd DH |
4465 | ;; |
4466 | esac | |
76c944da SK |
4467 | { echo "$as_me:$LINENO: checking for linux/filter.h" >&5 |
4468 | echo $ECHO_N "checking for linux/filter.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4469 | if test "${ac_cv_header_linux_filter_h+set}" = set; then |
4470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4471 | else | |
4472 | ac_cv_header_linux_filter_h=$ac_header_preproc | |
4473 | fi | |
76c944da SK |
4474 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_filter_h" >&5 |
4475 | echo "${ECHO_T}$ac_cv_header_linux_filter_h" >&6; } | |
fe5b0fdd DH |
4476 | |
4477 | fi | |
4478 | if test $ac_cv_header_linux_filter_h = yes; then | |
4479 | ||
4480 | cat >>confdefs.h <<\_ACEOF | |
4481 | #define USE_LPF 1 | |
4482 | _ACEOF | |
4483 | ||
4484 | fi | |
4485 | ||
4486 | ||
4487 | if test "${ac_cv_header_sys_dlpi_h+set}" = set; then | |
76c944da SK |
4488 | { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5 |
4489 | echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4490 | if test "${ac_cv_header_sys_dlpi_h+set}" = set; then |
4491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4492 | fi | |
76c944da SK |
4493 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5 |
4494 | echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; } | |
fe5b0fdd DH |
4495 | else |
4496 | # Is the header compilable? | |
76c944da SK |
4497 | { echo "$as_me:$LINENO: checking sys/dlpi.h usability" >&5 |
4498 | echo $ECHO_N "checking sys/dlpi.h usability... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4499 | cat >conftest.$ac_ext <<_ACEOF |
4500 | /* confdefs.h. */ | |
4501 | _ACEOF | |
4502 | cat confdefs.h >>conftest.$ac_ext | |
4503 | cat >>conftest.$ac_ext <<_ACEOF | |
4504 | /* end confdefs.h. */ | |
4505 | $ac_includes_default | |
4506 | #include <sys/dlpi.h> | |
4507 | _ACEOF | |
4508 | rm -f conftest.$ac_objext | |
76c944da SK |
4509 | if { (ac_try="$ac_compile" |
4510 | case "(($ac_try" in | |
4511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4512 | *) ac_try_echo=$ac_try;; | |
4513 | esac | |
4514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4515 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
4516 | ac_status=$? |
4517 | grep -v '^ *+' conftest.er1 >conftest.err | |
4518 | rm -f conftest.er1 | |
4519 | cat conftest.err >&5 | |
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4521 | (exit $ac_status); } && { |
4522 | test -z "$ac_c_werror_flag" || | |
4523 | test ! -s conftest.err | |
4524 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
4525 | ac_header_compiler=yes |
4526 | else | |
4527 | echo "$as_me: failed program was:" >&5 | |
4528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4529 | ||
76c944da | 4530 | ac_header_compiler=no |
fe5b0fdd | 4531 | fi |
76c944da SK |
4532 | |
4533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4534 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4535 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
fe5b0fdd DH |
4536 | |
4537 | # Is the header present? | |
76c944da SK |
4538 | { echo "$as_me:$LINENO: checking sys/dlpi.h presence" >&5 |
4539 | echo $ECHO_N "checking sys/dlpi.h presence... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4540 | cat >conftest.$ac_ext <<_ACEOF |
4541 | /* confdefs.h. */ | |
4542 | _ACEOF | |
4543 | cat confdefs.h >>conftest.$ac_ext | |
4544 | cat >>conftest.$ac_ext <<_ACEOF | |
4545 | /* end confdefs.h. */ | |
4546 | #include <sys/dlpi.h> | |
4547 | _ACEOF | |
76c944da SK |
4548 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4549 | case "(($ac_try" in | |
4550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4551 | *) ac_try_echo=$ac_try;; | |
4552 | esac | |
4553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4554 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
4555 | ac_status=$? |
4556 | grep -v '^ *+' conftest.er1 >conftest.err | |
4557 | rm -f conftest.er1 | |
4558 | cat conftest.err >&5 | |
4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4560 | (exit $ac_status); } >/dev/null && { |
4561 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4562 | test ! -s conftest.err | |
4563 | }; then | |
fe5b0fdd DH |
4564 | ac_header_preproc=yes |
4565 | else | |
4566 | echo "$as_me: failed program was:" >&5 | |
4567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4568 | ||
4569 | ac_header_preproc=no | |
4570 | fi | |
76c944da | 4571 | |
fe5b0fdd | 4572 | rm -f conftest.err conftest.$ac_ext |
76c944da SK |
4573 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4574 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
fe5b0fdd DH |
4575 | |
4576 | # So? What about this header? | |
4577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4578 | yes:no: ) | |
4579 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4580 | echo "$as_me: WARNING: sys/dlpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4581 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&5 | |
4582 | echo "$as_me: WARNING: sys/dlpi.h: proceeding with the compiler's result" >&2;} | |
4583 | ac_header_preproc=yes | |
4584 | ;; | |
4585 | no:yes:* ) | |
4586 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: present but cannot be compiled" >&5 | |
4587 | echo "$as_me: WARNING: sys/dlpi.h: present but cannot be compiled" >&2;} | |
4588 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: check for missing prerequisite headers?" >&5 | |
4589 | echo "$as_me: WARNING: sys/dlpi.h: check for missing prerequisite headers?" >&2;} | |
4590 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: see the Autoconf documentation" >&5 | |
4591 | echo "$as_me: WARNING: sys/dlpi.h: see the Autoconf documentation" >&2;} | |
4592 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4593 | echo "$as_me: WARNING: sys/dlpi.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4594 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&5 | |
4595 | echo "$as_me: WARNING: sys/dlpi.h: proceeding with the preprocessor's result" >&2;} | |
4596 | { echo "$as_me:$LINENO: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&5 | |
4597 | echo "$as_me: WARNING: sys/dlpi.h: in the future, the compiler will take precedence" >&2;} | |
76c944da | 4598 | ( cat <<\_ASBOX |
fe5b0fdd DH |
4599 | ## --------------------------------- ## |
4600 | ## Report this to dhcp-users@isc.org ## | |
4601 | ## --------------------------------- ## | |
4602 | _ASBOX | |
76c944da | 4603 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
fe5b0fdd DH |
4604 | ;; |
4605 | esac | |
76c944da SK |
4606 | { echo "$as_me:$LINENO: checking for sys/dlpi.h" >&5 |
4607 | echo $ECHO_N "checking for sys/dlpi.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4608 | if test "${ac_cv_header_sys_dlpi_h+set}" = set; then |
4609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4610 | else | |
4611 | ac_cv_header_sys_dlpi_h=$ac_header_preproc | |
4612 | fi | |
76c944da SK |
4613 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dlpi_h" >&5 |
4614 | echo "${ECHO_T}$ac_cv_header_sys_dlpi_h" >&6; } | |
fe5b0fdd DH |
4615 | |
4616 | fi | |
4617 | if test $ac_cv_header_sys_dlpi_h = yes; then | |
4618 | ||
4619 | cat >>confdefs.h <<\_ACEOF | |
4620 | #define USE_DLPI 1 | |
4621 | _ACEOF | |
4622 | ||
4623 | fi | |
4624 | ||
4625 | ||
4626 | if test "${ac_cv_header_net_bpf_h+set}" = set; then | |
76c944da SK |
4627 | { echo "$as_me:$LINENO: checking for net/bpf.h" >&5 |
4628 | echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4629 | if test "${ac_cv_header_net_bpf_h+set}" = set; then |
4630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4631 | fi | |
76c944da SK |
4632 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5 |
4633 | echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; } | |
fe5b0fdd DH |
4634 | else |
4635 | # Is the header compilable? | |
76c944da SK |
4636 | { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5 |
4637 | echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4638 | cat >conftest.$ac_ext <<_ACEOF |
4639 | /* confdefs.h. */ | |
4640 | _ACEOF | |
4641 | cat confdefs.h >>conftest.$ac_ext | |
4642 | cat >>conftest.$ac_ext <<_ACEOF | |
4643 | /* end confdefs.h. */ | |
4644 | $ac_includes_default | |
4645 | #include <net/bpf.h> | |
4646 | _ACEOF | |
4647 | rm -f conftest.$ac_objext | |
76c944da SK |
4648 | if { (ac_try="$ac_compile" |
4649 | case "(($ac_try" in | |
4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4651 | *) ac_try_echo=$ac_try;; | |
4652 | esac | |
4653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4654 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
4655 | ac_status=$? |
4656 | grep -v '^ *+' conftest.er1 >conftest.err | |
4657 | rm -f conftest.er1 | |
4658 | cat conftest.err >&5 | |
4659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4660 | (exit $ac_status); } && { |
4661 | test -z "$ac_c_werror_flag" || | |
4662 | test ! -s conftest.err | |
4663 | } && test -s conftest.$ac_objext; then | |
fe5b0fdd DH |
4664 | ac_header_compiler=yes |
4665 | else | |
4666 | echo "$as_me: failed program was:" >&5 | |
4667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4668 | ||
76c944da | 4669 | ac_header_compiler=no |
fe5b0fdd | 4670 | fi |
76c944da SK |
4671 | |
4672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4673 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4674 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
fe5b0fdd DH |
4675 | |
4676 | # Is the header present? | |
76c944da SK |
4677 | { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5 |
4678 | echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4679 | cat >conftest.$ac_ext <<_ACEOF |
4680 | /* confdefs.h. */ | |
4681 | _ACEOF | |
4682 | cat confdefs.h >>conftest.$ac_ext | |
4683 | cat >>conftest.$ac_ext <<_ACEOF | |
4684 | /* end confdefs.h. */ | |
4685 | #include <net/bpf.h> | |
4686 | _ACEOF | |
76c944da SK |
4687 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4688 | case "(($ac_try" in | |
4689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4690 | *) ac_try_echo=$ac_try;; | |
4691 | esac | |
4692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4693 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
fe5b0fdd DH |
4694 | ac_status=$? |
4695 | grep -v '^ *+' conftest.er1 >conftest.err | |
4696 | rm -f conftest.er1 | |
4697 | cat conftest.err >&5 | |
4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4699 | (exit $ac_status); } >/dev/null && { |
4700 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4701 | test ! -s conftest.err | |
4702 | }; then | |
fe5b0fdd DH |
4703 | ac_header_preproc=yes |
4704 | else | |
4705 | echo "$as_me: failed program was:" >&5 | |
4706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4707 | ||
4708 | ac_header_preproc=no | |
4709 | fi | |
76c944da | 4710 | |
fe5b0fdd | 4711 | rm -f conftest.err conftest.$ac_ext |
76c944da SK |
4712 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4713 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
fe5b0fdd DH |
4714 | |
4715 | # So? What about this header? | |
4716 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4717 | yes:no: ) | |
4718 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4719 | echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4720 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5 | |
4721 | echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;} | |
4722 | ac_header_preproc=yes | |
4723 | ;; | |
4724 | no:yes:* ) | |
4725 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5 | |
4726 | echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;} | |
4727 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5 | |
4728 | echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;} | |
4729 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5 | |
4730 | echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;} | |
4731 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4732 | echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4733 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5 | |
4734 | echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;} | |
4735 | { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5 | |
4736 | echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;} | |
76c944da | 4737 | ( cat <<\_ASBOX |
fe5b0fdd DH |
4738 | ## --------------------------------- ## |
4739 | ## Report this to dhcp-users@isc.org ## | |
4740 | ## --------------------------------- ## | |
4741 | _ASBOX | |
76c944da | 4742 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
fe5b0fdd DH |
4743 | ;; |
4744 | esac | |
76c944da SK |
4745 | { echo "$as_me:$LINENO: checking for net/bpf.h" >&5 |
4746 | echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; } | |
fe5b0fdd DH |
4747 | if test "${ac_cv_header_net_bpf_h+set}" = set; then |
4748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4749 | else | |
e62b1eb3 DH |
4750 | ac_cv_header_net_bpf_h=$ac_header_preproc |
4751 | fi | |
76c944da SK |
4752 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5 |
4753 | echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; } | |
e62b1eb3 DH |
4754 | |
4755 | fi | |
4756 | if test $ac_cv_header_net_bpf_h = yes; then | |
4757 | ||
4758 | cat >>confdefs.h <<\_ACEOF | |
4759 | #define USE_BPF 1 | |
4760 | _ACEOF | |
4761 | ||
4762 | fi | |
4763 | ||
4764 | ||
4765 | ||
6dd7efa2 DH |
4766 | # Look for optional headers. |
4767 | if test "${ac_cv_header_net_if_dl_h+set}" = set; then | |
76c944da SK |
4768 | { echo "$as_me:$LINENO: checking for net/if_dl.h" >&5 |
4769 | echo $ECHO_N "checking for net/if_dl.h... $ECHO_C" >&6; } | |
6dd7efa2 DH |
4770 | if test "${ac_cv_header_net_if_dl_h+set}" = set; then |
4771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4772 | fi | |
76c944da SK |
4773 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_dl_h" >&5 |
4774 | echo "${ECHO_T}$ac_cv_header_net_if_dl_h" >&6; } | |
6dd7efa2 DH |
4775 | else |
4776 | # Is the header compilable? | |
76c944da SK |
4777 | { echo "$as_me:$LINENO: checking net/if_dl.h usability" >&5 |
4778 | echo $ECHO_N "checking net/if_dl.h usability... $ECHO_C" >&6; } | |
6dd7efa2 DH |
4779 | cat >conftest.$ac_ext <<_ACEOF |
4780 | /* confdefs.h. */ | |
4781 | _ACEOF | |
4782 | cat confdefs.h >>conftest.$ac_ext | |
4783 | cat >>conftest.$ac_ext <<_ACEOF | |
4784 | /* end confdefs.h. */ | |
4785 | $ac_includes_default | |
4786 | #include <net/if_dl.h> | |
4787 | _ACEOF | |
4788 | rm -f conftest.$ac_objext | |
76c944da SK |
4789 | if { (ac_try="$ac_compile" |
4790 | case "(($ac_try" in | |
4791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4792 | *) ac_try_echo=$ac_try;; | |
4793 | esac | |
4794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4795 | (eval "$ac_compile") 2>conftest.er1 | |
6dd7efa2 DH |
4796 | ac_status=$? |
4797 | grep -v '^ *+' conftest.er1 >conftest.err | |
4798 | rm -f conftest.er1 | |
4799 | cat conftest.err >&5 | |
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4801 | (exit $ac_status); } && { |
4802 | test -z "$ac_c_werror_flag" || | |
4803 | test ! -s conftest.err | |
4804 | } && test -s conftest.$ac_objext; then | |
6dd7efa2 DH |
4805 | ac_header_compiler=yes |
4806 | else | |
4807 | echo "$as_me: failed program was:" >&5 | |
4808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4809 | ||
76c944da | 4810 | ac_header_compiler=no |
6dd7efa2 | 4811 | fi |
76c944da SK |
4812 | |
4813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4814 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4815 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
6dd7efa2 DH |
4816 | |
4817 | # Is the header present? | |
76c944da SK |
4818 | { echo "$as_me:$LINENO: checking net/if_dl.h presence" >&5 |
4819 | echo $ECHO_N "checking net/if_dl.h presence... $ECHO_C" >&6; } | |
6dd7efa2 DH |
4820 | cat >conftest.$ac_ext <<_ACEOF |
4821 | /* confdefs.h. */ | |
4822 | _ACEOF | |
4823 | cat confdefs.h >>conftest.$ac_ext | |
4824 | cat >>conftest.$ac_ext <<_ACEOF | |
4825 | /* end confdefs.h. */ | |
4826 | #include <net/if_dl.h> | |
4827 | _ACEOF | |
76c944da SK |
4828 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4829 | case "(($ac_try" in | |
4830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4831 | *) ac_try_echo=$ac_try;; | |
4832 | esac | |
4833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4834 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6dd7efa2 DH |
4835 | ac_status=$? |
4836 | grep -v '^ *+' conftest.er1 >conftest.err | |
4837 | rm -f conftest.er1 | |
4838 | cat conftest.err >&5 | |
4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4840 | (exit $ac_status); } >/dev/null && { |
4841 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4842 | test ! -s conftest.err | |
4843 | }; then | |
6dd7efa2 DH |
4844 | ac_header_preproc=yes |
4845 | else | |
4846 | echo "$as_me: failed program was:" >&5 | |
4847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4848 | ||
4849 | ac_header_preproc=no | |
4850 | fi | |
76c944da | 4851 | |
6dd7efa2 | 4852 | rm -f conftest.err conftest.$ac_ext |
76c944da SK |
4853 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4854 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
6dd7efa2 DH |
4855 | |
4856 | # So? What about this header? | |
4857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4858 | yes:no: ) | |
4859 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4860 | echo "$as_me: WARNING: net/if_dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4861 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: proceeding with the compiler's result" >&5 | |
4862 | echo "$as_me: WARNING: net/if_dl.h: proceeding with the compiler's result" >&2;} | |
4863 | ac_header_preproc=yes | |
4864 | ;; | |
4865 | no:yes:* ) | |
4866 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: present but cannot be compiled" >&5 | |
4867 | echo "$as_me: WARNING: net/if_dl.h: present but cannot be compiled" >&2;} | |
4868 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: check for missing prerequisite headers?" >&5 | |
4869 | echo "$as_me: WARNING: net/if_dl.h: check for missing prerequisite headers?" >&2;} | |
4870 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: see the Autoconf documentation" >&5 | |
4871 | echo "$as_me: WARNING: net/if_dl.h: see the Autoconf documentation" >&2;} | |
4872 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4873 | echo "$as_me: WARNING: net/if_dl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4874 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: proceeding with the preprocessor's result" >&5 | |
4875 | echo "$as_me: WARNING: net/if_dl.h: proceeding with the preprocessor's result" >&2;} | |
4876 | { echo "$as_me:$LINENO: WARNING: net/if_dl.h: in the future, the compiler will take precedence" >&5 | |
4877 | echo "$as_me: WARNING: net/if_dl.h: in the future, the compiler will take precedence" >&2;} | |
76c944da | 4878 | ( cat <<\_ASBOX |
6dd7efa2 DH |
4879 | ## --------------------------------- ## |
4880 | ## Report this to dhcp-users@isc.org ## | |
4881 | ## --------------------------------- ## | |
4882 | _ASBOX | |
76c944da | 4883 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
6dd7efa2 DH |
4884 | ;; |
4885 | esac | |
76c944da SK |
4886 | { echo "$as_me:$LINENO: checking for net/if_dl.h" >&5 |
4887 | echo $ECHO_N "checking for net/if_dl.h... $ECHO_C" >&6; } | |
6dd7efa2 DH |
4888 | if test "${ac_cv_header_net_if_dl_h+set}" = set; then |
4889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4890 | else | |
4891 | ac_cv_header_net_if_dl_h=$ac_header_preproc | |
4892 | fi | |
76c944da SK |
4893 | { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_dl_h" >&5 |
4894 | echo "${ECHO_T}$ac_cv_header_net_if_dl_h" >&6; } | |
6dd7efa2 DH |
4895 | |
4896 | fi | |
4897 | if test $ac_cv_header_net_if_dl_h = yes; then | |
4898 | ||
4899 | cat >>confdefs.h <<\_ACEOF | |
4900 | #define HAVE_IF_DL 1 | |
4901 | _ACEOF | |
4902 | ||
4903 | fi | |
4904 | ||
4905 | ||
4906 | ||
e62b1eb3 | 4907 | # find an MD5 library |
76c944da SK |
4908 | { echo "$as_me:$LINENO: checking for library containing MD5_Init" >&5 |
4909 | echo $ECHO_N "checking for library containing MD5_Init... $ECHO_C" >&6; } | |
e62b1eb3 DH |
4910 | if test "${ac_cv_search_MD5_Init+set}" = set; then |
4911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4912 | else | |
4913 | ac_func_search_save_LIBS=$LIBS | |
e62b1eb3 DH |
4914 | cat >conftest.$ac_ext <<_ACEOF |
4915 | /* confdefs.h. */ | |
4916 | _ACEOF | |
4917 | cat confdefs.h >>conftest.$ac_ext | |
4918 | cat >>conftest.$ac_ext <<_ACEOF | |
4919 | /* end confdefs.h. */ | |
4920 | ||
76c944da SK |
4921 | /* Override any GCC internal prototype to avoid an error. |
4922 | Use char because int might match the return type of a GCC | |
4923 | builtin and then its argument prototype would still apply. */ | |
c9a1db5e MA |
4924 | #ifdef __cplusplus |
4925 | extern "C" | |
4926 | #endif | |
c9a1db5e MA |
4927 | char MD5_Init (); |
4928 | int | |
4929 | main () | |
4930 | { | |
76c944da | 4931 | return MD5_Init (); |
c9a1db5e MA |
4932 | ; |
4933 | return 0; | |
4934 | } | |
4935 | _ACEOF | |
76c944da SK |
4936 | for ac_lib in '' crypto; do |
4937 | if test -z "$ac_lib"; then | |
4938 | ac_res="none required" | |
4939 | else | |
4940 | ac_res=-l$ac_lib | |
4941 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4942 | fi | |
4943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4944 | if { (ac_try="$ac_link" | |
4945 | case "(($ac_try" in | |
4946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4947 | *) ac_try_echo=$ac_try;; | |
4948 | esac | |
4949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4950 | (eval "$ac_link") 2>conftest.er1 | |
c9a1db5e MA |
4951 | ac_status=$? |
4952 | grep -v '^ *+' conftest.er1 >conftest.err | |
4953 | rm -f conftest.er1 | |
4954 | cat conftest.err >&5 | |
4955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
4956 | (exit $ac_status); } && { |
4957 | test -z "$ac_c_werror_flag" || | |
4958 | test ! -s conftest.err | |
4959 | } && test -s conftest$ac_exeext && | |
4960 | $as_test_x conftest$ac_exeext; then | |
4961 | ac_cv_search_MD5_Init=$ac_res | |
4962 | else | |
4963 | echo "$as_me: failed program was:" >&5 | |
4964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4965 | ||
4966 | ||
4967 | fi | |
4968 | ||
4969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4970 | conftest$ac_exeext | |
4971 | if test "${ac_cv_search_MD5_Init+set}" = set; then | |
4972 | break | |
4973 | fi | |
4974 | done | |
4975 | if test "${ac_cv_search_MD5_Init+set}" = set; then | |
4976 | : | |
4977 | else | |
4978 | ac_cv_search_MD5_Init=no | |
4979 | fi | |
4980 | rm conftest.$ac_ext | |
4981 | LIBS=$ac_func_search_save_LIBS | |
4982 | fi | |
4983 | { echo "$as_me:$LINENO: result: $ac_cv_search_MD5_Init" >&5 | |
4984 | echo "${ECHO_T}$ac_cv_search_MD5_Init" >&6; } | |
4985 | ac_res=$ac_cv_search_MD5_Init | |
4986 | if test "$ac_res" != no; then | |
4987 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4988 | ||
4989 | fi | |
4990 | ||
4991 | { echo "$as_me:$LINENO: checking for library containing MD5Init" >&5 | |
4992 | echo $ECHO_N "checking for library containing MD5Init... $ECHO_C" >&6; } | |
4993 | if test "${ac_cv_search_MD5Init+set}" = set; then | |
4994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4995 | else | |
4996 | ac_func_search_save_LIBS=$LIBS | |
4997 | cat >conftest.$ac_ext <<_ACEOF | |
4998 | /* confdefs.h. */ | |
4999 | _ACEOF | |
5000 | cat confdefs.h >>conftest.$ac_ext | |
5001 | cat >>conftest.$ac_ext <<_ACEOF | |
5002 | /* end confdefs.h. */ | |
5003 | ||
5004 | /* Override any GCC internal prototype to avoid an error. | |
5005 | Use char because int might match the return type of a GCC | |
5006 | builtin and then its argument prototype would still apply. */ | |
5007 | #ifdef __cplusplus | |
5008 | extern "C" | |
5009 | #endif | |
5010 | char MD5Init (); | |
5011 | int | |
5012 | main () | |
5013 | { | |
5014 | return MD5Init (); | |
5015 | ; | |
5016 | return 0; | |
5017 | } | |
5018 | _ACEOF | |
5019 | for ac_lib in '' crypto; do | |
5020 | if test -z "$ac_lib"; then | |
5021 | ac_res="none required" | |
5022 | else | |
5023 | ac_res=-l$ac_lib | |
5024 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5025 | fi | |
5026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5027 | if { (ac_try="$ac_link" | |
5028 | case "(($ac_try" in | |
5029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5030 | *) ac_try_echo=$ac_try;; | |
5031 | esac | |
5032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5033 | (eval "$ac_link") 2>conftest.er1 | |
c9a1db5e | 5034 | ac_status=$? |
76c944da SK |
5035 | grep -v '^ *+' conftest.er1 >conftest.err |
5036 | rm -f conftest.er1 | |
5037 | cat conftest.err >&5 | |
c9a1db5e | 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
76c944da SK |
5039 | (exit $ac_status); } && { |
5040 | test -z "$ac_c_werror_flag" || | |
5041 | test ! -s conftest.err | |
5042 | } && test -s conftest$ac_exeext && | |
5043 | $as_test_x conftest$ac_exeext; then | |
5044 | ac_cv_search_MD5Init=$ac_res | |
c9a1db5e MA |
5045 | else |
5046 | echo "$as_me: failed program was:" >&5 | |
5047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5048 | ||
76c944da SK |
5049 | |
5050 | fi | |
5051 | ||
5052 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5053 | conftest$ac_exeext | |
5054 | if test "${ac_cv_search_MD5Init+set}" = set; then | |
5055 | break | |
5056 | fi | |
5057 | done | |
5058 | if test "${ac_cv_search_MD5Init+set}" = set; then | |
5059 | : | |
5060 | else | |
5061 | ac_cv_search_MD5Init=no | |
5062 | fi | |
5063 | rm conftest.$ac_ext | |
5064 | LIBS=$ac_func_search_save_LIBS | |
5065 | fi | |
5066 | { echo "$as_me:$LINENO: result: $ac_cv_search_MD5Init" >&5 | |
5067 | echo "${ECHO_T}$ac_cv_search_MD5Init" >&6; } | |
5068 | ac_res=$ac_cv_search_MD5Init | |
5069 | if test "$ac_res" != no; then | |
5070 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5071 | ||
c9a1db5e | 5072 | fi |
76c944da SK |
5073 | |
5074 | ||
5075 | # Solaris needs some libraries for functions | |
5076 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 | |
5077 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
5078 | if test "${ac_cv_search_socket+set}" = set; then | |
5079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5080 | else | |
5081 | ac_func_search_save_LIBS=$LIBS | |
5082 | cat >conftest.$ac_ext <<_ACEOF | |
c9a1db5e MA |
5083 | /* confdefs.h. */ |
5084 | _ACEOF | |
5085 | cat confdefs.h >>conftest.$ac_ext | |
5086 | cat >>conftest.$ac_ext <<_ACEOF | |
5087 | /* end confdefs.h. */ | |
5088 | ||
76c944da SK |
5089 | /* Override any GCC internal prototype to avoid an error. |
5090 | Use char because int might match the return type of a GCC | |
5091 | builtin and then its argument prototype would still apply. */ | |
e62b1eb3 DH |
5092 | #ifdef __cplusplus |
5093 | extern "C" | |
5094 | #endif | |
76c944da | 5095 | char socket (); |
e62b1eb3 DH |
5096 | int |
5097 | main () | |
5098 | { | |
76c944da | 5099 | return socket (); |
e62b1eb3 DH |
5100 | ; |
5101 | return 0; | |
5102 | } | |
5103 | _ACEOF | |
76c944da SK |
5104 | for ac_lib in '' socket; do |
5105 | if test -z "$ac_lib"; then | |
5106 | ac_res="none required" | |
5107 | else | |
5108 | ac_res=-l$ac_lib | |
5109 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5110 | fi | |
5111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5112 | if { (ac_try="$ac_link" | |
5113 | case "(($ac_try" in | |
5114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5115 | *) ac_try_echo=$ac_try;; | |
5116 | esac | |
5117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5118 | (eval "$ac_link") 2>conftest.er1 | |
c9a1db5e MA |
5119 | ac_status=$? |
5120 | grep -v '^ *+' conftest.er1 >conftest.err | |
5121 | rm -f conftest.er1 | |
5122 | cat conftest.err >&5 | |
5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5124 | (exit $ac_status); } && { |
5125 | test -z "$ac_c_werror_flag" || | |
5126 | test ! -s conftest.err | |
5127 | } && test -s conftest$ac_exeext && | |
5128 | $as_test_x conftest$ac_exeext; then | |
5129 | ac_cv_search_socket=$ac_res | |
c9a1db5e MA |
5130 | else |
5131 | echo "$as_me: failed program was:" >&5 | |
5132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5133 | ||
76c944da | 5134 | |
c9a1db5e | 5135 | fi |
76c944da SK |
5136 | |
5137 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5138 | conftest$ac_exeext | |
5139 | if test "${ac_cv_search_socket+set}" = set; then | |
5140 | break | |
5141 | fi | |
5142 | done | |
5143 | if test "${ac_cv_search_socket+set}" = set; then | |
5144 | : | |
5145 | else | |
5146 | ac_cv_search_socket=no | |
c9a1db5e | 5147 | fi |
76c944da | 5148 | rm conftest.$ac_ext |
c9a1db5e MA |
5149 | LIBS=$ac_func_search_save_LIBS |
5150 | fi | |
76c944da SK |
5151 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 |
5152 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
5153 | ac_res=$ac_cv_search_socket | |
5154 | if test "$ac_res" != no; then | |
5155 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
c9a1db5e MA |
5156 | |
5157 | fi | |
5158 | ||
76c944da SK |
5159 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 |
5160 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
5161 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
c9a1db5e MA |
5162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5163 | else | |
5164 | ac_func_search_save_LIBS=$LIBS | |
c9a1db5e MA |
5165 | cat >conftest.$ac_ext <<_ACEOF |
5166 | /* confdefs.h. */ | |
5167 | _ACEOF | |
5168 | cat confdefs.h >>conftest.$ac_ext | |
5169 | cat >>conftest.$ac_ext <<_ACEOF | |
5170 | /* end confdefs.h. */ | |
5171 | ||
76c944da SK |
5172 | /* Override any GCC internal prototype to avoid an error. |
5173 | Use char because int might match the return type of a GCC | |
5174 | builtin and then its argument prototype would still apply. */ | |
c9a1db5e MA |
5175 | #ifdef __cplusplus |
5176 | extern "C" | |
5177 | #endif | |
76c944da | 5178 | char inet_ntoa (); |
c9a1db5e MA |
5179 | int |
5180 | main () | |
5181 | { | |
76c944da | 5182 | return inet_ntoa (); |
c9a1db5e MA |
5183 | ; |
5184 | return 0; | |
5185 | } | |
5186 | _ACEOF | |
76c944da SK |
5187 | for ac_lib in '' nsl; do |
5188 | if test -z "$ac_lib"; then | |
5189 | ac_res="none required" | |
5190 | else | |
5191 | ac_res=-l$ac_lib | |
5192 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5193 | fi | |
5194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5195 | if { (ac_try="$ac_link" | |
5196 | case "(($ac_try" in | |
5197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5198 | *) ac_try_echo=$ac_try;; | |
5199 | esac | |
5200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5201 | (eval "$ac_link") 2>conftest.er1 | |
c9a1db5e MA |
5202 | ac_status=$? |
5203 | grep -v '^ *+' conftest.er1 >conftest.err | |
5204 | rm -f conftest.er1 | |
5205 | cat conftest.err >&5 | |
5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5207 | (exit $ac_status); } && { |
5208 | test -z "$ac_c_werror_flag" || | |
5209 | test ! -s conftest.err | |
5210 | } && test -s conftest$ac_exeext && | |
5211 | $as_test_x conftest$ac_exeext; then | |
5212 | ac_cv_search_inet_ntoa=$ac_res | |
c9a1db5e MA |
5213 | else |
5214 | echo "$as_me: failed program was:" >&5 | |
5215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5216 | ||
76c944da | 5217 | |
c9a1db5e | 5218 | fi |
76c944da SK |
5219 | |
5220 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5221 | conftest$ac_exeext | |
5222 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
5223 | break | |
5224 | fi | |
5225 | done | |
5226 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
5227 | : | |
5228 | else | |
5229 | ac_cv_search_inet_ntoa=no | |
5230 | fi | |
5231 | rm conftest.$ac_ext | |
5232 | LIBS=$ac_func_search_save_LIBS | |
5233 | fi | |
5234 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 | |
5235 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
5236 | ac_res=$ac_cv_search_inet_ntoa | |
5237 | if test "$ac_res" != no; then | |
5238 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5239 | ||
5240 | fi | |
5241 | ||
5242 | ||
5243 | { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 | |
5244 | echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; } | |
5245 | if test "${ac_cv_search_inet_aton+set}" = set; then | |
5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5247 | else | |
5248 | ac_func_search_save_LIBS=$LIBS | |
5249 | cat >conftest.$ac_ext <<_ACEOF | |
c9a1db5e MA |
5250 | /* confdefs.h. */ |
5251 | _ACEOF | |
5252 | cat confdefs.h >>conftest.$ac_ext | |
5253 | cat >>conftest.$ac_ext <<_ACEOF | |
5254 | /* end confdefs.h. */ | |
5255 | ||
76c944da SK |
5256 | /* Override any GCC internal prototype to avoid an error. |
5257 | Use char because int might match the return type of a GCC | |
5258 | builtin and then its argument prototype would still apply. */ | |
c9a1db5e MA |
5259 | #ifdef __cplusplus |
5260 | extern "C" | |
5261 | #endif | |
76c944da | 5262 | char inet_aton (); |
c9a1db5e MA |
5263 | int |
5264 | main () | |
5265 | { | |
76c944da | 5266 | return inet_aton (); |
c9a1db5e MA |
5267 | ; |
5268 | return 0; | |
5269 | } | |
5270 | _ACEOF | |
76c944da SK |
5271 | for ac_lib in '' socket nsl; do |
5272 | if test -z "$ac_lib"; then | |
5273 | ac_res="none required" | |
5274 | else | |
5275 | ac_res=-l$ac_lib | |
5276 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5277 | fi | |
5278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5279 | if { (ac_try="$ac_link" | |
5280 | case "(($ac_try" in | |
5281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5282 | *) ac_try_echo=$ac_try;; | |
5283 | esac | |
5284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5285 | (eval "$ac_link") 2>conftest.er1 | |
c9a1db5e MA |
5286 | ac_status=$? |
5287 | grep -v '^ *+' conftest.er1 >conftest.err | |
5288 | rm -f conftest.er1 | |
5289 | cat conftest.err >&5 | |
5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5291 | (exit $ac_status); } && { |
5292 | test -z "$ac_c_werror_flag" || | |
5293 | test ! -s conftest.err | |
5294 | } && test -s conftest$ac_exeext && | |
5295 | $as_test_x conftest$ac_exeext; then | |
5296 | ac_cv_search_inet_aton=$ac_res | |
c9a1db5e MA |
5297 | else |
5298 | echo "$as_me: failed program was:" >&5 | |
5299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5300 | ||
76c944da | 5301 | |
c9a1db5e | 5302 | fi |
76c944da SK |
5303 | |
5304 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5305 | conftest$ac_exeext | |
5306 | if test "${ac_cv_search_inet_aton+set}" = set; then | |
5307 | break | |
5308 | fi | |
5309 | done | |
5310 | if test "${ac_cv_search_inet_aton+set}" = set; then | |
5311 | : | |
5312 | else | |
5313 | ac_cv_search_inet_aton=no | |
c9a1db5e | 5314 | fi |
76c944da | 5315 | rm conftest.$ac_ext |
c9a1db5e MA |
5316 | LIBS=$ac_func_search_save_LIBS |
5317 | fi | |
76c944da SK |
5318 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 |
5319 | echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; } | |
5320 | ac_res=$ac_cv_search_inet_aton | |
5321 | if test "$ac_res" != no; then | |
5322 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5323 | ||
5324 | else | |
5325 | ||
5326 | cat >>confdefs.h <<\_ACEOF | |
5327 | #define NEED_INET_ATON 1 | |
5328 | _ACEOF | |
c9a1db5e MA |
5329 | |
5330 | fi | |
5331 | ||
5332 | ||
76c944da SK |
5333 | # check for /dev/random (declares HAVE_DEV_RANDOM) |
5334 | { echo "$as_me:$LINENO: checking for /dev/random" >&5 | |
5335 | echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6; } | |
5336 | if test "${ac_cv_file__dev_random+set}" = set; then | |
c9a1db5e MA |
5337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5338 | else | |
76c944da SK |
5339 | test "$cross_compiling" = yes && |
5340 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | |
5341 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | |
5342 | { (exit 1); exit 1; }; } | |
5343 | if test -r "/dev/random"; then | |
5344 | ac_cv_file__dev_random=yes | |
5345 | else | |
5346 | ac_cv_file__dev_random=no | |
5347 | fi | |
5348 | fi | |
5349 | { echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5 | |
5350 | echo "${ECHO_T}$ac_cv_file__dev_random" >&6; } | |
5351 | if test $ac_cv_file__dev_random = yes; then | |
5352 | ||
5353 | cat >>confdefs.h <<\_ACEOF | |
5354 | #define HAVE_DEV_RANDOM 1 | |
5355 | _ACEOF | |
5356 | ||
5357 | fi | |
5358 | ||
5359 | ||
5360 | # see if there is a "sa_len" field in our interface information structure | |
5361 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 | |
5362 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
5363 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then | |
5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5365 | else | |
5366 | cat >conftest.$ac_ext <<_ACEOF | |
c9a1db5e MA |
5367 | /* confdefs.h. */ |
5368 | _ACEOF | |
5369 | cat confdefs.h >>conftest.$ac_ext | |
5370 | cat >>conftest.$ac_ext <<_ACEOF | |
5371 | /* end confdefs.h. */ | |
76c944da | 5372 | #include <sys/socket.h> |
c9a1db5e | 5373 | |
c9a1db5e MA |
5374 | int |
5375 | main () | |
5376 | { | |
76c944da SK |
5377 | static struct sockaddr ac_aggr; |
5378 | if (ac_aggr.sa_len) | |
5379 | return 0; | |
c9a1db5e MA |
5380 | ; |
5381 | return 0; | |
5382 | } | |
5383 | _ACEOF | |
76c944da SK |
5384 | rm -f conftest.$ac_objext |
5385 | if { (ac_try="$ac_compile" | |
5386 | case "(($ac_try" in | |
5387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5388 | *) ac_try_echo=$ac_try;; | |
5389 | esac | |
5390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5391 | (eval "$ac_compile") 2>conftest.er1 | |
c9a1db5e MA |
5392 | ac_status=$? |
5393 | grep -v '^ *+' conftest.er1 >conftest.err | |
5394 | rm -f conftest.er1 | |
5395 | cat conftest.err >&5 | |
5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5397 | (exit $ac_status); } && { |
5398 | test -z "$ac_c_werror_flag" || | |
5399 | test ! -s conftest.err | |
5400 | } && test -s conftest.$ac_objext; then | |
5401 | ac_cv_member_struct_sockaddr_sa_len=yes | |
c9a1db5e MA |
5402 | else |
5403 | echo "$as_me: failed program was:" >&5 | |
5404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5405 | ||
76c944da | 5406 | cat >conftest.$ac_ext <<_ACEOF |
c9a1db5e MA |
5407 | /* confdefs.h. */ |
5408 | _ACEOF | |
5409 | cat confdefs.h >>conftest.$ac_ext | |
5410 | cat >>conftest.$ac_ext <<_ACEOF | |
5411 | /* end confdefs.h. */ | |
76c944da | 5412 | #include <sys/socket.h> |
c9a1db5e | 5413 | |
c9a1db5e MA |
5414 | int |
5415 | main () | |
5416 | { | |
76c944da SK |
5417 | static struct sockaddr ac_aggr; |
5418 | if (sizeof ac_aggr.sa_len) | |
5419 | return 0; | |
c9a1db5e MA |
5420 | ; |
5421 | return 0; | |
5422 | } | |
5423 | _ACEOF | |
76c944da SK |
5424 | rm -f conftest.$ac_objext |
5425 | if { (ac_try="$ac_compile" | |
5426 | case "(($ac_try" in | |
5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5428 | *) ac_try_echo=$ac_try;; | |
5429 | esac | |
5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5431 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
5432 | ac_status=$? |
5433 | grep -v '^ *+' conftest.er1 >conftest.err | |
5434 | rm -f conftest.er1 | |
5435 | cat conftest.err >&5 | |
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5437 | (exit $ac_status); } && { |
5438 | test -z "$ac_c_werror_flag" || | |
5439 | test ! -s conftest.err | |
5440 | } && test -s conftest.$ac_objext; then | |
5441 | ac_cv_member_struct_sockaddr_sa_len=yes | |
fe5b0fdd DH |
5442 | else |
5443 | echo "$as_me: failed program was:" >&5 | |
5444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5445 | ||
76c944da | 5446 | ac_cv_member_struct_sockaddr_sa_len=no |
273bfdc3 | 5447 | fi |
76c944da SK |
5448 | |
5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fe5b0fdd | 5450 | fi |
76c944da SK |
5451 | |
5452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fe5b0fdd | 5453 | fi |
76c944da SK |
5454 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
5455 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
5456 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then | |
5457 | ||
5458 | cat >>confdefs.h <<\_ACEOF | |
5459 | #define HAVE_SA_LEN | |
5460 | _ACEOF | |
fe5b0fdd DH |
5461 | |
5462 | fi | |
5463 | ||
76c944da SK |
5464 | |
5465 | # figure out pointer size | |
5466 | { echo "$as_me:$LINENO: checking for struct iaddr *" >&5 | |
5467 | echo $ECHO_N "checking for struct iaddr *... $ECHO_C" >&6; } | |
5468 | if test "${ac_cv_type_struct_iaddr_p+set}" = set; then | |
fe5b0fdd DH |
5469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5470 | else | |
76c944da | 5471 | cat >conftest.$ac_ext <<_ACEOF |
fe5b0fdd DH |
5472 | /* confdefs.h. */ |
5473 | _ACEOF | |
5474 | cat confdefs.h >>conftest.$ac_ext | |
5475 | cat >>conftest.$ac_ext <<_ACEOF | |
5476 | /* end confdefs.h. */ | |
5477 | ||
76c944da SK |
5478 | #include "includes/inet.h" |
5479 | #include <stdio.h> | |
5480 | ||
5481 | ||
5482 | typedef struct iaddr * ac__type_new_; | |
fe5b0fdd DH |
5483 | int |
5484 | main () | |
5485 | { | |
76c944da SK |
5486 | if ((ac__type_new_ *) 0) |
5487 | return 0; | |
5488 | if (sizeof (ac__type_new_)) | |
5489 | return 0; | |
fe5b0fdd DH |
5490 | ; |
5491 | return 0; | |
5492 | } | |
5493 | _ACEOF | |
76c944da SK |
5494 | rm -f conftest.$ac_objext |
5495 | if { (ac_try="$ac_compile" | |
5496 | case "(($ac_try" in | |
5497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5498 | *) ac_try_echo=$ac_try;; | |
5499 | esac | |
5500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5501 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
5502 | ac_status=$? |
5503 | grep -v '^ *+' conftest.er1 >conftest.err | |
5504 | rm -f conftest.er1 | |
5505 | cat conftest.err >&5 | |
5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5507 | (exit $ac_status); } && { |
5508 | test -z "$ac_c_werror_flag" || | |
5509 | test ! -s conftest.err | |
5510 | } && test -s conftest.$ac_objext; then | |
5511 | ac_cv_type_struct_iaddr_p=yes | |
fe5b0fdd DH |
5512 | else |
5513 | echo "$as_me: failed program was:" >&5 | |
5514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5515 | ||
76c944da | 5516 | ac_cv_type_struct_iaddr_p=no |
273bfdc3 | 5517 | fi |
76c944da SK |
5518 | |
5519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5520 | fi | |
5521 | { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iaddr_p" >&5 | |
5522 | echo "${ECHO_T}$ac_cv_type_struct_iaddr_p" >&6; } | |
5523 | ||
5524 | # The cast to long int works around a bug in the HP C Compiler | |
5525 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5526 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5527 | # This bug is HP SR number 8606223364. | |
5528 | { echo "$as_me:$LINENO: checking size of struct iaddr *" >&5 | |
5529 | echo $ECHO_N "checking size of struct iaddr *... $ECHO_C" >&6; } | |
5530 | if test "${ac_cv_sizeof_struct_iaddr_p+set}" = set; then | |
5531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5532 | else | |
5533 | if test "$cross_compiling" = yes; then | |
5534 | # Depending upon the size, compute the lo and hi bounds. | |
5535 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
5536 | /* confdefs.h. */ |
5537 | _ACEOF | |
5538 | cat confdefs.h >>conftest.$ac_ext | |
5539 | cat >>conftest.$ac_ext <<_ACEOF | |
5540 | /* end confdefs.h. */ | |
5541 | ||
76c944da SK |
5542 | #include "includes/inet.h" |
5543 | #include <stdio.h> | |
5544 | ||
5545 | ||
5546 | typedef struct iaddr * ac__type_sizeof_; | |
fe5b0fdd DH |
5547 | int |
5548 | main () | |
5549 | { | |
76c944da SK |
5550 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
5551 | test_array [0] = 0 | |
5552 | ||
fe5b0fdd DH |
5553 | ; |
5554 | return 0; | |
5555 | } | |
5556 | _ACEOF | |
76c944da SK |
5557 | rm -f conftest.$ac_objext |
5558 | if { (ac_try="$ac_compile" | |
5559 | case "(($ac_try" in | |
5560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5561 | *) ac_try_echo=$ac_try;; | |
5562 | esac | |
5563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5564 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
5565 | ac_status=$? |
5566 | grep -v '^ *+' conftest.er1 >conftest.err | |
5567 | rm -f conftest.er1 | |
5568 | cat conftest.err >&5 | |
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5570 | (exit $ac_status); } && { |
5571 | test -z "$ac_c_werror_flag" || | |
5572 | test ! -s conftest.err | |
5573 | } && test -s conftest.$ac_objext; then | |
5574 | ac_lo=0 ac_mid=0 | |
5575 | while :; do | |
5576 | cat >conftest.$ac_ext <<_ACEOF | |
5577 | /* confdefs.h. */ | |
5578 | _ACEOF | |
5579 | cat confdefs.h >>conftest.$ac_ext | |
5580 | cat >>conftest.$ac_ext <<_ACEOF | |
5581 | /* end confdefs.h. */ | |
5582 | ||
5583 | #include "includes/inet.h" | |
5584 | #include <stdio.h> | |
5585 | ||
5586 | ||
5587 | typedef struct iaddr * ac__type_sizeof_; | |
5588 | int | |
5589 | main () | |
5590 | { | |
5591 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5592 | test_array [0] = 0 | |
5593 | ||
5594 | ; | |
5595 | return 0; | |
5596 | } | |
5597 | _ACEOF | |
5598 | rm -f conftest.$ac_objext | |
5599 | if { (ac_try="$ac_compile" | |
5600 | case "(($ac_try" in | |
5601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5602 | *) ac_try_echo=$ac_try;; | |
5603 | esac | |
5604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5605 | (eval "$ac_compile") 2>conftest.er1 | |
c9a1db5e | 5606 | ac_status=$? |
76c944da SK |
5607 | grep -v '^ *+' conftest.er1 >conftest.err |
5608 | rm -f conftest.er1 | |
5609 | cat conftest.err >&5 | |
c9a1db5e | 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
76c944da SK |
5611 | (exit $ac_status); } && { |
5612 | test -z "$ac_c_werror_flag" || | |
5613 | test ! -s conftest.err | |
5614 | } && test -s conftest.$ac_objext; then | |
5615 | ac_hi=$ac_mid; break | |
5616 | else | |
5617 | echo "$as_me: failed program was:" >&5 | |
5618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe5b0fdd | 5619 | |
76c944da SK |
5620 | ac_lo=`expr $ac_mid + 1` |
5621 | if test $ac_lo -le $ac_mid; then | |
5622 | ac_lo= ac_hi= | |
5623 | break | |
5624 | fi | |
5625 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
8c816ebb TL |
5626 | fi |
5627 | ||
76c944da SK |
5628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5629 | done | |
fe5b0fdd | 5630 | else |
76c944da SK |
5631 | echo "$as_me: failed program was:" >&5 |
5632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5633 | ||
5634 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
5635 | /* confdefs.h. */ |
5636 | _ACEOF | |
5637 | cat confdefs.h >>conftest.$ac_ext | |
5638 | cat >>conftest.$ac_ext <<_ACEOF | |
5639 | /* end confdefs.h. */ | |
5640 | ||
76c944da SK |
5641 | #include "includes/inet.h" |
5642 | #include <stdio.h> | |
5643 | ||
5644 | ||
5645 | typedef struct iaddr * ac__type_sizeof_; | |
fe5b0fdd DH |
5646 | int |
5647 | main () | |
5648 | { | |
76c944da SK |
5649 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
5650 | test_array [0] = 0 | |
5651 | ||
fe5b0fdd DH |
5652 | ; |
5653 | return 0; | |
5654 | } | |
5655 | _ACEOF | |
76c944da SK |
5656 | rm -f conftest.$ac_objext |
5657 | if { (ac_try="$ac_compile" | |
5658 | case "(($ac_try" in | |
5659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5660 | *) ac_try_echo=$ac_try;; | |
5661 | esac | |
5662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5663 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
5664 | ac_status=$? |
5665 | grep -v '^ *+' conftest.er1 >conftest.err | |
5666 | rm -f conftest.er1 | |
5667 | cat conftest.err >&5 | |
5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5669 | (exit $ac_status); } && { |
5670 | test -z "$ac_c_werror_flag" || | |
5671 | test ! -s conftest.err | |
5672 | } && test -s conftest.$ac_objext; then | |
5673 | ac_hi=-1 ac_mid=-1 | |
5674 | while :; do | |
c9a1db5e | 5675 | cat >conftest.$ac_ext <<_ACEOF |
fe5b0fdd DH |
5676 | /* confdefs.h. */ |
5677 | _ACEOF | |
5678 | cat confdefs.h >>conftest.$ac_ext | |
5679 | cat >>conftest.$ac_ext <<_ACEOF | |
5680 | /* end confdefs.h. */ | |
5681 | ||
76c944da SK |
5682 | #include "includes/inet.h" |
5683 | #include <stdio.h> | |
5684 | ||
5685 | ||
5686 | typedef struct iaddr * ac__type_sizeof_; | |
fe5b0fdd DH |
5687 | int |
5688 | main () | |
5689 | { | |
76c944da SK |
5690 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
5691 | test_array [0] = 0 | |
5692 | ||
fe5b0fdd DH |
5693 | ; |
5694 | return 0; | |
5695 | } | |
5696 | _ACEOF | |
76c944da SK |
5697 | rm -f conftest.$ac_objext |
5698 | if { (ac_try="$ac_compile" | |
5699 | case "(($ac_try" in | |
5700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5701 | *) ac_try_echo=$ac_try;; | |
5702 | esac | |
5703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5704 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
5705 | ac_status=$? |
5706 | grep -v '^ *+' conftest.er1 >conftest.err | |
5707 | rm -f conftest.er1 | |
5708 | cat conftest.err >&5 | |
5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5710 | (exit $ac_status); } && { |
5711 | test -z "$ac_c_werror_flag" || | |
5712 | test ! -s conftest.err | |
5713 | } && test -s conftest.$ac_objext; then | |
5714 | ac_lo=$ac_mid; break | |
fe5b0fdd DH |
5715 | else |
5716 | echo "$as_me: failed program was:" >&5 | |
5717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5718 | ||
76c944da SK |
5719 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5720 | if test $ac_mid -le $ac_hi; then | |
5721 | ac_lo= ac_hi= | |
5722 | break | |
5723 | fi | |
5724 | ac_mid=`expr 2 '*' $ac_mid` | |
273bfdc3 | 5725 | fi |
fe5b0fdd | 5726 | |
76c944da SK |
5727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5728 | done | |
fe5b0fdd | 5729 | else |
76c944da SK |
5730 | echo "$as_me: failed program was:" >&5 |
5731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe5b0fdd | 5732 | |
76c944da | 5733 | ac_lo= ac_hi= |
fe5b0fdd | 5734 | fi |
fe5b0fdd | 5735 | |
76c944da | 5736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fe5b0fdd DH |
5737 | fi |
5738 | ||
76c944da SK |
5739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5740 | # Binary search between lo and hi bounds. | |
5741 | while test "x$ac_lo" != "x$ac_hi"; do | |
5742 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
fe5b0fdd DH |
5743 | cat >conftest.$ac_ext <<_ACEOF |
5744 | /* confdefs.h. */ | |
5745 | _ACEOF | |
5746 | cat confdefs.h >>conftest.$ac_ext | |
5747 | cat >>conftest.$ac_ext <<_ACEOF | |
5748 | /* end confdefs.h. */ | |
fe5b0fdd | 5749 | |
76c944da SK |
5750 | #include "includes/inet.h" |
5751 | #include <stdio.h> | |
5752 | ||
5753 | ||
5754 | typedef struct iaddr * ac__type_sizeof_; | |
fe5b0fdd DH |
5755 | int |
5756 | main () | |
5757 | { | |
76c944da SK |
5758 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
5759 | test_array [0] = 0 | |
5760 | ||
fe5b0fdd DH |
5761 | ; |
5762 | return 0; | |
5763 | } | |
5764 | _ACEOF | |
5765 | rm -f conftest.$ac_objext | |
76c944da SK |
5766 | if { (ac_try="$ac_compile" |
5767 | case "(($ac_try" in | |
5768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5769 | *) ac_try_echo=$ac_try;; | |
5770 | esac | |
5771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5772 | (eval "$ac_compile") 2>conftest.er1 | |
fe5b0fdd DH |
5773 | ac_status=$? |
5774 | grep -v '^ *+' conftest.er1 >conftest.err | |
5775 | rm -f conftest.er1 | |
5776 | cat conftest.err >&5 | |
5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5778 | (exit $ac_status); } && { |
5779 | test -z "$ac_c_werror_flag" || | |
5780 | test ! -s conftest.err | |
5781 | } && test -s conftest.$ac_objext; then | |
5782 | ac_hi=$ac_mid | |
fe5b0fdd DH |
5783 | else |
5784 | echo "$as_me: failed program was:" >&5 | |
5785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5786 | ||
76c944da SK |
5787 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5788 | fi | |
5789 | ||
5790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5791 | done | |
5792 | case $ac_lo in | |
5793 | ?*) ac_cv_sizeof_struct_iaddr_p=$ac_lo;; | |
5794 | '') if test "$ac_cv_type_struct_iaddr_p" = yes; then | |
5795 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *) | |
5796 | See \`config.log' for more details." >&5 | |
5797 | echo "$as_me: error: cannot compute sizeof (struct iaddr *) | |
5798 | See \`config.log' for more details." >&2;} | |
5799 | { (exit 77); exit 77; }; } | |
5800 | else | |
5801 | ac_cv_sizeof_struct_iaddr_p=0 | |
5802 | fi ;; | |
5803 | esac | |
5804 | else | |
5805 | cat >conftest.$ac_ext <<_ACEOF | |
fe5b0fdd DH |
5806 | /* confdefs.h. */ |
5807 | _ACEOF | |
5808 | cat confdefs.h >>conftest.$ac_ext | |
5809 | cat >>conftest.$ac_ext <<_ACEOF | |
5810 | /* end confdefs.h. */ | |
fe5b0fdd | 5811 | |
76c944da SK |
5812 | #include "includes/inet.h" |
5813 | #include <stdio.h> | |
5814 | ||
5815 | ||
5816 | typedef struct iaddr * ac__type_sizeof_; | |
5817 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5818 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5819 | #include <stdio.h> | |
5820 | #include <stdlib.h> | |
fe5b0fdd DH |
5821 | int |
5822 | main () | |
5823 | { | |
76c944da SK |
5824 | |
5825 | FILE *f = fopen ("conftest.val", "w"); | |
5826 | if (! f) | |
5827 | return 1; | |
5828 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
5829 | { | |
5830 | long int i = longval (); | |
5831 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5832 | return 1; | |
5833 | fprintf (f, "%ld\n", i); | |
5834 | } | |
5835 | else | |
5836 | { | |
5837 | unsigned long int i = ulongval (); | |
5838 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5839 | return 1; | |
5840 | fprintf (f, "%lu\n", i); | |
5841 | } | |
5842 | return ferror (f) || fclose (f) != 0; | |
5843 | ||
fe5b0fdd DH |
5844 | ; |
5845 | return 0; | |
5846 | } | |
5847 | _ACEOF | |
76c944da SK |
5848 | rm -f conftest$ac_exeext |
5849 | if { (ac_try="$ac_link" | |
5850 | case "(($ac_try" in | |
5851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5852 | *) ac_try_echo=$ac_try;; | |
5853 | esac | |
5854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5855 | (eval "$ac_link") 2>&5 | |
c9a1db5e MA |
5856 | ac_status=$? |
5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
76c944da SK |
5858 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5859 | { (case "(($ac_try" in | |
5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5861 | *) ac_try_echo=$ac_try;; | |
5862 | esac | |
5863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5864 | (eval "$ac_try") 2>&5 | |
c9a1db5e MA |
5865 | ac_status=$? |
5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5867 | (exit $ac_status); }; }; then | |
76c944da | 5868 | ac_cv_sizeof_struct_iaddr_p=`cat conftest.val` |
fe5b0fdd | 5869 | else |
76c944da SK |
5870 | echo "$as_me: program exited with status $ac_status" >&5 |
5871 | echo "$as_me: failed program was:" >&5 | |
fe5b0fdd DH |
5872 | sed 's/^/| /' conftest.$ac_ext >&5 |
5873 | ||
76c944da SK |
5874 | ( exit $ac_status ) |
5875 | if test "$ac_cv_type_struct_iaddr_p" = yes; then | |
5876 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (struct iaddr *) | |
5877 | See \`config.log' for more details." >&5 | |
5878 | echo "$as_me: error: cannot compute sizeof (struct iaddr *) | |
5879 | See \`config.log' for more details." >&2;} | |
5880 | { (exit 77); exit 77; }; } | |
5881 | else | |
5882 | ac_cv_sizeof_struct_iaddr_p=0 | |
5883 | fi | |
fe5b0fdd | 5884 | fi |
76c944da | 5885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fe5b0fdd | 5886 | fi |
76c944da | 5887 | rm -f conftest.val |
fe5b0fdd | 5888 | fi |
76c944da SK |
5889 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_struct_iaddr_p" >&5 |
5890 | echo "${ECHO_T}$ac_cv_sizeof_struct_iaddr_p" >&6; } | |
fe5b0fdd | 5891 | |
76c944da SK |
5892 | |
5893 | ||
5894 | cat >>confdefs.h <<_ACEOF | |
5895 | #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p | |
fe5b0fdd | 5896 | _ACEOF |
8c816ebb | 5897 | |
fe5b0fdd DH |
5898 | |
5899 | ||
76c944da SK |
5900 | ac_config_files="$ac_config_files Makefile client/Makefile common/Makefile dhcpctl/Makefile dst/Makefile includes/Makefile minires/Makefile omapip/Makefile relay/Makefile server/Makefile" |
5901 | ||
fe5b0fdd DH |
5902 | cat >confcache <<\_ACEOF |
5903 | # This file is a shell script that caches the results of configure | |
5904 | # tests run on this system so they can be shared between configure | |
5905 | # scripts and configure runs, see configure's option --config-cache. | |
5906 | # It is not useful on other systems. If it contains results you don't | |
5907 | # want to keep, you may remove or edit it. | |
5908 | # | |
5909 | # config.status only pays attention to the cache file if you give it | |
5910 | # the --recheck option to rerun configure. | |
5911 | # | |
5912 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
5913 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5914 | # following values. | |
5915 | ||
5916 | _ACEOF | |
5917 | ||
5918 | # The following way of writing the cache mishandles newlines in values, | |
5919 | # but we know of no workaround that is simple, portable, and efficient. | |
76c944da | 5920 | # So, we kill variables containing newlines. |
fe5b0fdd DH |
5921 | # Ultrix sh set writes to stderr and can't be redirected directly, |
5922 | # and sets the high bit in the cache file unless we assign to the vars. | |
76c944da SK |
5923 | ( |
5924 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5925 | eval ac_val=\$$ac_var | |
5926 | case $ac_val in #( | |
5927 | *${as_nl}*) | |
5928 | case $ac_var in #( | |
5929 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
5930 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
5931 | esac | |
5932 | case $ac_var in #( | |
5933 | _ | IFS | as_nl) ;; #( | |
5934 | *) $as_unset $ac_var ;; | |
5935 | esac ;; | |
5936 | esac | |
5937 | done | |
5938 | ||
fe5b0fdd | 5939 | (set) 2>&1 | |
76c944da SK |
5940 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5941 | *${as_nl}ac_space=\ *) | |
fe5b0fdd DH |
5942 | # `set' does not quote correctly, so add quotes (double-quote |
5943 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5944 | sed -n \ | |
5945 | "s/'/'\\\\''/g; | |
5946 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
76c944da | 5947 | ;; #( |
fe5b0fdd DH |
5948 | *) |
5949 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
76c944da | 5950 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fe5b0fdd | 5951 | ;; |
76c944da SK |
5952 | esac | |
5953 | sort | |
5954 | ) | | |
fe5b0fdd | 5955 | sed ' |
76c944da | 5956 | /^ac_cv_env_/b end |
fe5b0fdd | 5957 | t clear |
76c944da | 5958 | :clear |
fe5b0fdd DH |
5959 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5960 | t end | |
76c944da SK |
5961 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5962 | :end' >>confcache | |
5963 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
5964 | if test -w "$cache_file"; then | |
5965 | test "x$cache_file" != "x/dev/null" && | |
5966 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
5967 | echo "$as_me: updating cache $cache_file" >&6;} | |
fe5b0fdd | 5968 | cat confcache >$cache_file |
d758ad8c | 5969 | else |
76c944da SK |
5970 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
5971 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d758ad8c | 5972 | fi |
48ceb859 | 5973 | fi |
fe5b0fdd DH |
5974 | rm -f confcache |
5975 | ||
5976 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5977 | # Let make expand exec_prefix. | |
5978 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5979 | ||
5980 | DEFS=-DHAVE_CONFIG_H | |
5981 | ||
5982 | ac_libobjs= | |
5983 | ac_ltlibobjs= | |
5984 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5985 | # 1. Remove the extension, and $U if already installed. | |
76c944da SK |
5986 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5987 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
5988 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
5989 | # will be set to the directory where LIBOBJS objects are built. | |
5990 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5991 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
fe5b0fdd DH |
5992 | done |
5993 | LIBOBJS=$ac_libobjs | |
5994 | ||
5995 | LTLIBOBJS=$ac_ltlibobjs | |
5996 | ||
5997 | ||
5998 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5999 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
6000 | Usually this means the macro was only invoked conditionally." >&5 | |
6001 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
6002 | Usually this means the macro was only invoked conditionally." >&2;} | |
6003 | { (exit 1); exit 1; }; } | |
6004 | fi | |
6005 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6006 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
6007 | Usually this means the macro was only invoked conditionally." >&5 | |
6008 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
6009 | Usually this means the macro was only invoked conditionally." >&2;} | |
6010 | { (exit 1); exit 1; }; } | |
6011 | fi | |
48ceb859 | 6012 | |
fe5b0fdd DH |
6013 | : ${CONFIG_STATUS=./config.status} |
6014 | ac_clean_files_save=$ac_clean_files | |
6015 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6016 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6017 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6018 | cat >$CONFIG_STATUS <<_ACEOF | |
6019 | #! $SHELL | |
6020 | # Generated by $as_me. | |
6021 | # Run this file to recreate the current configuration. | |
6022 | # Compiler output produced by configure, useful for debugging | |
6023 | # configure, is in config.log if it exists. | |
343729b9 | 6024 | |
fe5b0fdd DH |
6025 | debug=false |
6026 | ac_cs_recheck=false | |
6027 | ac_cs_silent=false | |
6028 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6029 | _ACEOF | |
6030 | ||
6031 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6032 | ## --------------------- ## | |
6033 | ## M4sh Initialization. ## | |
6034 | ## --------------------- ## | |
6035 | ||
76c944da SK |
6036 | # Be more Bourne compatible |
6037 | DUALCASE=1; export DUALCASE # for MKS sh | |
fe5b0fdd DH |
6038 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
6039 | emulate sh | |
6040 | NULLCMD=: | |
6041 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6042 | # is contrary to our usage. Disable this feature. | |
6043 | alias -g '${1+"$@"}'='"$@"' | |
76c944da SK |
6044 | setopt NO_GLOB_SUBST |
6045 | else | |
6046 | case `(set -o) 2>/dev/null` in | |
6047 | *posix*) set -o posix ;; | |
6048 | esac | |
6049 | ||
6050 | fi | |
6051 | ||
6052 | ||
6053 | ||
6054 | ||
6055 | # PATH needs CR | |
6056 | # Avoid depending upon Character Ranges. | |
6057 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6058 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6059 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6060 | as_cr_digits='0123456789' | |
6061 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6062 | ||
6063 | # The user is always right. | |
6064 | if test "${PATH_SEPARATOR+set}" != set; then | |
6065 | echo "#! /bin/sh" >conf$$.sh | |
6066 | echo "exit 0" >>conf$$.sh | |
6067 | chmod +x conf$$.sh | |
6068 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6069 | PATH_SEPARATOR=';' | |
6070 | else | |
6071 | PATH_SEPARATOR=: | |
6072 | fi | |
6073 | rm -f conf$$.sh | |
6057415f | 6074 | fi |
fe5b0fdd | 6075 | |
fe5b0fdd DH |
6076 | # Support unset when possible. |
6077 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6078 | as_unset=unset | |
6079 | else | |
6080 | as_unset=false | |
d758ad8c TL |
6081 | fi |
6082 | ||
fe5b0fdd | 6083 | |
76c944da SK |
6084 | # IFS |
6085 | # We need space, tab and new line, in precisely that order. Quoting is | |
6086 | # there to prevent editors from complaining about space-tab. | |
6087 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6088 | # splitting by setting IFS to empty value.) | |
6089 | as_nl=' | |
6090 | ' | |
6091 | IFS=" "" $as_nl" | |
6092 | ||
6093 | # Find who we are. Look in the path if we contain no directory separator. | |
6094 | case $0 in | |
6095 | *[\\/]* ) as_myself=$0 ;; | |
6096 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6097 | for as_dir in $PATH | |
6098 | do | |
6099 | IFS=$as_save_IFS | |
6100 | test -z "$as_dir" && as_dir=. | |
6101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6102 | done | |
6103 | IFS=$as_save_IFS | |
6104 | ||
6105 | ;; | |
6106 | esac | |
6107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6108 | # in which case we are not to be found in the path. | |
6109 | if test "x$as_myself" = x; then | |
6110 | as_myself=$0 | |
6111 | fi | |
6112 | if test ! -f "$as_myself"; then | |
6113 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6114 | { (exit 1); exit 1; } | |
6115 | fi | |
6116 | ||
fe5b0fdd | 6117 | # Work around bugs in pre-3.0 UWIN ksh. |
76c944da SK |
6118 | for as_var in ENV MAIL MAILPATH |
6119 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
6120 | done | |
fe5b0fdd DH |
6121 | PS1='$ ' |
6122 | PS2='> ' | |
6123 | PS4='+ ' | |
6124 | ||
6125 | # NLS nuisances. | |
6126 | for as_var in \ | |
6127 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6128 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6129 | LC_TELEPHONE LC_TIME | |
6130 | do | |
6131 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6132 | eval $as_var=C; export $as_var | |
6133 | else | |
76c944da | 6134 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
fe5b0fdd | 6135 | fi |
7d3bc4e5 | 6136 | done |
8c816ebb | 6137 | |
fe5b0fdd | 6138 | # Required to use basename. |
76c944da SK |
6139 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6140 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
6141 | as_expr=expr |
6142 | else | |
6143 | as_expr=false | |
6144 | fi | |
6145 | ||
76c944da | 6146 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fe5b0fdd DH |
6147 | as_basename=basename |
6148 | else | |
6149 | as_basename=false | |
6150 | fi | |
6151 | ||
6152 | ||
6153 | # Name of the executable. | |
76c944da | 6154 | as_me=`$as_basename -- "$0" || |
fe5b0fdd DH |
6155 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6156 | X"$0" : 'X\(//\)$' \| \ | |
76c944da | 6157 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 6158 | echo X/"$0" | |
76c944da SK |
6159 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
6160 | s//\1/ | |
6161 | q | |
6162 | } | |
6163 | /^X\/\(\/\/\)$/{ | |
6164 | s//\1/ | |
6165 | q | |
6166 | } | |
6167 | /^X\/\(\/\).*/{ | |
6168 | s//\1/ | |
6169 | q | |
6170 | } | |
6171 | s/.*/./; q'` | |
6172 | ||
6173 | # CDPATH. | |
6174 | $as_unset CDPATH | |
6175 | ||
6176 | ||
fe5b0fdd DH |
6177 | |
6178 | as_lineno_1=$LINENO | |
6179 | as_lineno_2=$LINENO | |
6180 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
76c944da | 6181 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
fe5b0fdd DH |
6182 | |
6183 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6184 | # uniformly replaced by the line number. The first 'sed' inserts a | |
76c944da SK |
6185 | # line-number line after each line using $LINENO; the second 'sed' |
6186 | # does the real work. The second script uses 'N' to pair each | |
6187 | # line-number line with the line containing $LINENO, and appends | |
6188 | # trailing '-' during substitution so that $LINENO is not a special | |
6189 | # case at line end. | |
fe5b0fdd | 6190 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
76c944da SK |
6191 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
6192 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
6193 | sed -n ' | |
6194 | p | |
6195 | /[$]LINENO/= | |
6196 | ' <$as_myself | | |
fe5b0fdd | 6197 | sed ' |
76c944da SK |
6198 | s/[$]LINENO.*/&-/ |
6199 | t lineno | |
6200 | b | |
6201 | :lineno | |
fe5b0fdd | 6202 | N |
76c944da SK |
6203 | :loop |
6204 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
fe5b0fdd | 6205 | t loop |
76c944da | 6206 | s/-\n.*// |
fe5b0fdd | 6207 | ' >$as_me.lineno && |
76c944da SK |
6208 | chmod +x "$as_me.lineno" || |
6209 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
fe5b0fdd DH |
6210 | { (exit 1); exit 1; }; } |
6211 | ||
6212 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6213 | # (the dirname of $[0] is not the place where we might find the | |
76c944da SK |
6214 | # original and so on. Autoconf is especially sensitive to this). |
6215 | . "./$as_me.lineno" | |
fe5b0fdd DH |
6216 | # Exit status is that of the last command. |
6217 | exit | |
6218 | } | |
6219 | ||
6220 | ||
76c944da SK |
6221 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6222 | as_dirname=dirname | |
6223 | else | |
6224 | as_dirname=false | |
6225 | fi | |
6226 | ||
6227 | ECHO_C= ECHO_N= ECHO_T= | |
6228 | case `echo -n x` in | |
6229 | -n*) | |
6230 | case `echo 'x\c'` in | |
6231 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6232 | *) ECHO_C='\c';; | |
6233 | esac;; | |
6234 | *) | |
6235 | ECHO_N='-n';; | |
fe5b0fdd DH |
6236 | esac |
6237 | ||
76c944da SK |
6238 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6239 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fe5b0fdd DH |
6240 | as_expr=expr |
6241 | else | |
6242 | as_expr=false | |
6243 | fi | |
6244 | ||
6245 | rm -f conf$$ conf$$.exe conf$$.file | |
76c944da SK |
6246 | if test -d conf$$.dir; then |
6247 | rm -f conf$$.dir/conf$$.file | |
6248 | else | |
6249 | rm -f conf$$.dir | |
6250 | mkdir conf$$.dir | |
6251 | fi | |
fe5b0fdd DH |
6252 | echo >conf$$.file |
6253 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
76c944da SK |
6254 | as_ln_s='ln -s' |
6255 | # ... but there are two gotchas: | |
6256 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6257 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6258 | # In both cases, we have to default to `cp -p'. | |
6259 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
fe5b0fdd DH |
6260 | as_ln_s='cp -p' |
6261 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6262 | as_ln_s=ln | |
6263 | else | |
6264 | as_ln_s='cp -p' | |
6265 | fi | |
76c944da SK |
6266 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6267 | rmdir conf$$.dir 2>/dev/null | |
fe5b0fdd DH |
6268 | |
6269 | if mkdir -p . 2>/dev/null; then | |
6270 | as_mkdir_p=: | |
6271 | else | |
6272 | test -d ./-p && rmdir ./-p | |
6273 | as_mkdir_p=false | |
d758ad8c | 6274 | fi |
2ac5bde5 | 6275 | |
76c944da SK |
6276 | if test -x / >/dev/null 2>&1; then |
6277 | as_test_x='test -x' | |
6278 | else | |
6279 | if ls -dL / >/dev/null 2>&1; then | |
6280 | as_ls_L_option=L | |
6281 | else | |
6282 | as_ls_L_option= | |
6283 | fi | |
6284 | as_test_x=' | |
6285 | eval sh -c '\'' | |
6286 | if test -d "$1"; then | |
6287 | test -d "$1/."; | |
6288 | else | |
6289 | case $1 in | |
6290 | -*)set "./$1";; | |
6291 | esac; | |
6292 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
6293 | ???[sx]*):;;*)false;;esac;fi | |
6294 | '\'' sh | |
6295 | ' | |
6296 | fi | |
6297 | as_executable_p=$as_test_x | |
fe5b0fdd DH |
6298 | |
6299 | # Sed expression to map a string onto a valid CPP name. | |
6300 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6301 | ||
6302 | # Sed expression to map a string onto a valid variable name. | |
6303 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6304 | ||
6305 | ||
6306 | exec 6>&1 | |
6307 | ||
76c944da | 6308 | # Save the log message, to keep $[0] and so on meaningful, and to |
fe5b0fdd | 6309 | # report actual input values of CONFIG_FILES etc. instead of their |
76c944da SK |
6310 | # values after options handling. |
6311 | ac_log=" | |
e62b1eb3 | 6312 | This file was extended by DHCP $as_me 4.0.0a1, which was |
76c944da | 6313 | generated by GNU Autoconf 2.61. Invocation command line was |
fe5b0fdd DH |
6314 | |
6315 | CONFIG_FILES = $CONFIG_FILES | |
6316 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6317 | CONFIG_LINKS = $CONFIG_LINKS | |
6318 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6319 | $ $0 $@ | |
6320 | ||
76c944da SK |
6321 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6322 | " | |
6323 | ||
fe5b0fdd DH |
6324 | _ACEOF |
6325 | ||
76c944da | 6326 | cat >>$CONFIG_STATUS <<_ACEOF |
fe5b0fdd | 6327 | # Files that config.status was made for. |
76c944da SK |
6328 | config_files="$ac_config_files" |
6329 | config_headers="$ac_config_headers" | |
6330 | config_commands="$ac_config_commands" | |
c9a1db5e | 6331 | |
76c944da | 6332 | _ACEOF |
fe5b0fdd DH |
6333 | |
6334 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6335 | ac_cs_usage="\ | |
6336 | \`$as_me' instantiates files from templates according to the | |
6337 | current configuration. | |
6338 | ||
6339 | Usage: $0 [OPTIONS] [FILE]... | |
6340 | ||
6341 | -h, --help print this help, then exit | |
76c944da | 6342 | -V, --version print version number and configuration settings, then exit |
fe5b0fdd DH |
6343 | -q, --quiet do not print progress messages |
6344 | -d, --debug don't remove temporary files | |
6345 | --recheck update $as_me by reconfiguring in the same conditions | |
6346 | --file=FILE[:TEMPLATE] | |
6347 | instantiate the configuration file FILE | |
6348 | --header=FILE[:TEMPLATE] | |
6349 | instantiate the configuration header FILE | |
6350 | ||
6351 | Configuration files: | |
6352 | $config_files | |
6353 | ||
6354 | Configuration headers: | |
6355 | $config_headers | |
6356 | ||
6357 | Configuration commands: | |
6358 | $config_commands | |
6359 | ||
6360 | Report bugs to <bug-autoconf@gnu.org>." | |
c9a1db5e | 6361 | |
76c944da | 6362 | _ACEOF |
fe5b0fdd DH |
6363 | cat >>$CONFIG_STATUS <<_ACEOF |
6364 | ac_cs_version="\\ | |
e62b1eb3 | 6365 | DHCP config.status 4.0.0a1 |
76c944da SK |
6366 | configured by $0, generated by GNU Autoconf 2.61, |
6367 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
fe5b0fdd | 6368 | |
76c944da | 6369 | Copyright (C) 2006 Free Software Foundation, Inc. |
fe5b0fdd DH |
6370 | This config.status script is free software; the Free Software Foundation |
6371 | gives unlimited permission to copy, distribute and modify it." | |
76c944da SK |
6372 | |
6373 | ac_pwd='$ac_pwd' | |
6374 | srcdir='$srcdir' | |
6375 | INSTALL='$INSTALL' | |
fe5b0fdd DH |
6376 | _ACEOF |
6377 | ||
6378 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6379 | # If no file are specified by the user, then we need to provide default | |
6380 | # value. By we need to know if files were specified by the user. | |
6381 | ac_need_defaults=: | |
6382 | while test $# != 0 | |
6383 | do | |
6384 | case $1 in | |
6385 | --*=*) | |
76c944da SK |
6386 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6387 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
fe5b0fdd DH |
6388 | ac_shift=: |
6389 | ;; | |
76c944da | 6390 | *) |
fe5b0fdd DH |
6391 | ac_option=$1 |
6392 | ac_optarg=$2 | |
6393 | ac_shift=shift | |
6394 | ;; | |
6395 | esac | |
6396 | ||
6397 | case $ac_option in | |
6398 | # Handling of the options. | |
6399 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6400 | ac_cs_recheck=: ;; | |
76c944da SK |
6401 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6402 | echo "$ac_cs_version"; exit ;; | |
6403 | --debug | --debu | --deb | --de | --d | -d ) | |
fe5b0fdd DH |
6404 | debug=: ;; |
6405 | --file | --fil | --fi | --f ) | |
6406 | $ac_shift | |
6407 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6408 | ac_need_defaults=false;; | |
6409 | --header | --heade | --head | --hea ) | |
6410 | $ac_shift | |
6411 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
6412 | ac_need_defaults=false;; | |
76c944da SK |
6413 | --he | --h) |
6414 | # Conflict between --help and --header | |
6415 | { echo "$as_me: error: ambiguous option: $1 | |
6416 | Try \`$0 --help' for more information." >&2 | |
6417 | { (exit 1); exit 1; }; };; | |
6418 | --help | --hel | -h ) | |
6419 | echo "$ac_cs_usage"; exit ;; | |
fe5b0fdd DH |
6420 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6421 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6422 | ac_cs_silent=: ;; | |
6423 | ||
6424 | # This is an error. | |
76c944da SK |
6425 | -*) { echo "$as_me: error: unrecognized option: $1 |
6426 | Try \`$0 --help' for more information." >&2 | |
fe5b0fdd DH |
6427 | { (exit 1); exit 1; }; } ;; |
6428 | ||
76c944da SK |
6429 | *) ac_config_targets="$ac_config_targets $1" |
6430 | ac_need_defaults=false ;; | |
fe5b0fdd DH |
6431 | |
6432 | esac | |
6433 | shift | |
6434 | done | |
6435 | ||
6436 | ac_configure_extra_args= | |
6437 | ||
6438 | if $ac_cs_silent; then | |
6439 | exec 6>/dev/null | |
6440 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6441 | fi | |
6442 | ||
6443 | _ACEOF | |
6444 | cat >>$CONFIG_STATUS <<_ACEOF | |
6445 | if \$ac_cs_recheck; then | |
76c944da SK |
6446 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
6447 | CONFIG_SHELL=$SHELL | |
6448 | export CONFIG_SHELL | |
6449 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe5b0fdd DH |
6450 | fi |
6451 | ||
6452 | _ACEOF | |
76c944da SK |
6453 | cat >>$CONFIG_STATUS <<\_ACEOF |
6454 | exec 5>>config.log | |
6455 | { | |
6456 | echo | |
6457 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6458 | ## Running $as_me. ## | |
6459 | _ASBOX | |
6460 | echo "$ac_log" | |
6461 | } >&5 | |
fe5b0fdd | 6462 | |
76c944da | 6463 | _ACEOF |
fe5b0fdd DH |
6464 | cat >>$CONFIG_STATUS <<_ACEOF |
6465 | # | |
76c944da | 6466 | # INIT-COMMANDS |
fe5b0fdd DH |
6467 | # |
6468 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
6469 | ||
6470 | _ACEOF | |
6471 | ||
c9a1db5e | 6472 | cat >>$CONFIG_STATUS <<\_ACEOF |
76c944da SK |
6473 | |
6474 | # Handling of arguments. | |
fe5b0fdd DH |
6475 | for ac_config_target in $ac_config_targets |
6476 | do | |
76c944da SK |
6477 | case $ac_config_target in |
6478 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
6479 | "includes/config.h") CONFIG_HEADERS="$CONFIG_HEADERS includes/config.h" ;; | |
6480 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
6481 | "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;; | |
6482 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; | |
6483 | "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;; | |
6484 | "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;; | |
6485 | "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;; | |
6486 | "minires/Makefile") CONFIG_FILES="$CONFIG_FILES minires/Makefile" ;; | |
6487 | "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;; | |
6488 | "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;; | |
6489 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; | |
6490 | ||
fe5b0fdd DH |
6491 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
6492 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6493 | { (exit 1); exit 1; }; };; | |
6494 | esac | |
6495 | done | |
6496 | ||
76c944da | 6497 | |
fe5b0fdd DH |
6498 | # If the user did not use the arguments to specify the items to instantiate, |
6499 | # then the envvar interface is used. Set only those that are not. | |
6500 | # We use the long form for the default assignment because of an extremely | |
6501 | # bizarre bug on SunOS 4.1.3. | |
6502 | if $ac_need_defaults; then | |
6503 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6504 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6505 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6506 | fi | |
6507 | ||
6508 | # Have a temporary directory for convenience. Make it in the build tree | |
76c944da | 6509 | # simply because there is no reason against having it here, and in addition, |
fe5b0fdd | 6510 | # creating and moving files from /tmp can sometimes cause problems. |
76c944da SK |
6511 | # Hook for its removal unless debugging. |
6512 | # Note that there is a small window in which the directory will not be cleaned: | |
6513 | # after its creation but before its name has been assigned to `$tmp'. | |
fe5b0fdd DH |
6514 | $debug || |
6515 | { | |
76c944da SK |
6516 | tmp= |
6517 | trap 'exit_status=$? | |
6518 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6519 | ' 0 | |
fe5b0fdd DH |
6520 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
6521 | } | |
6522 | # Create a (secure) tmp directory for tmp files. | |
6523 | ||
6524 | { | |
76c944da | 6525 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
fe5b0fdd DH |
6526 | test -n "$tmp" && test -d "$tmp" |
6527 | } || | |
6528 | { | |
76c944da SK |
6529 | tmp=./conf$$-$RANDOM |
6530 | (umask 077 && mkdir "$tmp") | |
fe5b0fdd DH |
6531 | } || |
6532 | { | |
6533 | echo "$me: cannot create a temporary directory in ." >&2 | |
6534 | { (exit 1); exit 1; } | |
6535 | } | |
6536 | ||
6537 | # | |
76c944da | 6538 | # Set up the sed scripts for CONFIG_FILES section. |
fe5b0fdd DH |
6539 | # |
6540 | ||
6541 | # No need to generate the scripts if there are no CONFIG_FILES. | |
6542 | # This happens for instance when ./config.status config.h | |
76c944da SK |
6543 | if test -n "$CONFIG_FILES"; then |
6544 | ||
6545 | _ACEOF | |
6546 | ||
6547 | ||
6548 | ||
6549 | ac_delim='%!_!# ' | |
6550 | for ac_last_try in false false false false false :; do | |
6551 | cat >conf$$subs.sed <<_ACEOF | |
6552 | SHELL!$SHELL$ac_delim | |
6553 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
6554 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
6555 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
6556 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
6557 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
6558 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
6559 | exec_prefix!$exec_prefix$ac_delim | |
6560 | prefix!$prefix$ac_delim | |
6561 | program_transform_name!$program_transform_name$ac_delim | |
6562 | bindir!$bindir$ac_delim | |
6563 | sbindir!$sbindir$ac_delim | |
6564 | libexecdir!$libexecdir$ac_delim | |
6565 | datarootdir!$datarootdir$ac_delim | |
6566 | datadir!$datadir$ac_delim | |
6567 | sysconfdir!$sysconfdir$ac_delim | |
6568 | sharedstatedir!$sharedstatedir$ac_delim | |
6569 | localstatedir!$localstatedir$ac_delim | |
6570 | includedir!$includedir$ac_delim | |
6571 | oldincludedir!$oldincludedir$ac_delim | |
6572 | docdir!$docdir$ac_delim | |
6573 | infodir!$infodir$ac_delim | |
6574 | htmldir!$htmldir$ac_delim | |
6575 | dvidir!$dvidir$ac_delim | |
6576 | pdfdir!$pdfdir$ac_delim | |
6577 | psdir!$psdir$ac_delim | |
6578 | libdir!$libdir$ac_delim | |
6579 | localedir!$localedir$ac_delim | |
6580 | mandir!$mandir$ac_delim | |
6581 | DEFS!$DEFS$ac_delim | |
6582 | ECHO_C!$ECHO_C$ac_delim | |
6583 | ECHO_N!$ECHO_N$ac_delim | |
6584 | ECHO_T!$ECHO_T$ac_delim | |
6585 | LIBS!$LIBS$ac_delim | |
6586 | build_alias!$build_alias$ac_delim | |
6587 | host_alias!$host_alias$ac_delim | |
6588 | target_alias!$target_alias$ac_delim | |
6589 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
6590 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
6591 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
6592 | CYGPATH_W!$CYGPATH_W$ac_delim | |
6593 | PACKAGE!$PACKAGE$ac_delim | |
6594 | VERSION!$VERSION$ac_delim | |
6595 | ACLOCAL!$ACLOCAL$ac_delim | |
6596 | AUTOCONF!$AUTOCONF$ac_delim | |
6597 | AUTOMAKE!$AUTOMAKE$ac_delim | |
6598 | AUTOHEADER!$AUTOHEADER$ac_delim | |
6599 | MAKEINFO!$MAKEINFO$ac_delim | |
6600 | install_sh!$install_sh$ac_delim | |
6601 | STRIP!$STRIP$ac_delim | |
6602 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
6603 | mkdir_p!$mkdir_p$ac_delim | |
6604 | AWK!$AWK$ac_delim | |
6605 | SET_MAKE!$SET_MAKE$ac_delim | |
6606 | am__leading_dot!$am__leading_dot$ac_delim | |
6607 | AMTAR!$AMTAR$ac_delim | |
6608 | am__tar!$am__tar$ac_delim | |
6609 | am__untar!$am__untar$ac_delim | |
6610 | CC!$CC$ac_delim | |
6611 | CFLAGS!$CFLAGS$ac_delim | |
6612 | LDFLAGS!$LDFLAGS$ac_delim | |
6613 | CPPFLAGS!$CPPFLAGS$ac_delim | |
6614 | ac_ct_CC!$ac_ct_CC$ac_delim | |
6615 | EXEEXT!$EXEEXT$ac_delim | |
6616 | OBJEXT!$OBJEXT$ac_delim | |
6617 | DEPDIR!$DEPDIR$ac_delim | |
6618 | am__include!$am__include$ac_delim | |
6619 | am__quote!$am__quote$ac_delim | |
6620 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
6621 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
6622 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
6623 | CCDEPMODE!$CCDEPMODE$ac_delim | |
6624 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
6625 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
6626 | RANLIB!$RANLIB$ac_delim | |
6627 | byte_order!$byte_order$ac_delim | |
6628 | CPP!$CPP$ac_delim | |
6629 | GREP!$GREP$ac_delim | |
6630 | EGREP!$EGREP$ac_delim | |
6631 | LIBOBJS!$LIBOBJS$ac_delim | |
6632 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
6633 | _ACEOF | |
6634 | ||
6635 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then | |
6636 | break | |
6637 | elif $ac_last_try; then | |
6638 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
6639 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
6640 | { (exit 1); exit 1; }; } | |
6641 | else | |
6642 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c9a1db5e | 6643 | fi |
76c944da SK |
6644 | done |
6645 | ||
6646 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
6647 | if test -n "$ac_eof"; then | |
6648 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
6649 | ac_eof=`expr $ac_eof + 1` | |
6650 | fi | |
273bfdc3 | 6651 | |
76c944da SK |
6652 | cat >>$CONFIG_STATUS <<_ACEOF |
6653 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
6654 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
6655 | _ACEOF | |
6656 | sed ' | |
6657 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
6658 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
6659 | :n | |
6660 | t n | |
6661 | s/'"$ac_delim"'$/,g/; t | |
6662 | s/$/\\/; p | |
6663 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
6664 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
6665 | rm -f conf$$subs.sed | |
6666 | cat >>$CONFIG_STATUS <<_ACEOF | |
6667 | :end | |
6668 | s/|#_!!_#|//g | |
6669 | CEOF$ac_eof | |
c9a1db5e | 6670 | _ACEOF |
76c944da SK |
6671 | |
6672 | ||
6673 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6674 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6675 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6676 | # (actually we leave an empty line to preserve line numbers). | |
6677 | if test "x$srcdir" = x.; then | |
6678 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6679 | s/:*\$(srcdir):*/:/ | |
6680 | s/:*\${srcdir}:*/:/ | |
6681 | s/:*@srcdir@:*/:/ | |
6682 | s/^\([^=]*=[ ]*\):*/\1/ | |
6683 | s/:*$// | |
6684 | s/^[^=]*=[ ]*$// | |
6685 | }' | |
6686 | fi | |
6687 | ||
c9a1db5e | 6688 | cat >>$CONFIG_STATUS <<\_ACEOF |
76c944da SK |
6689 | fi # test -n "$CONFIG_FILES" |
6690 | ||
6691 | ||
6692 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
6693 | do | |
6694 | case $ac_tag in | |
6695 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
6696 | esac | |
6697 | case $ac_mode$ac_tag in | |
6698 | :[FHL]*:*);; | |
6699 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
6700 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
6701 | { (exit 1); exit 1; }; };; | |
6702 | :[FH]-) ac_tag=-:-;; | |
6703 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
6704 | esac | |
6705 | ac_save_IFS=$IFS | |
6706 | IFS=: | |
6707 | set x $ac_tag | |
6708 | IFS=$ac_save_IFS | |
6709 | shift | |
6710 | ac_file=$1 | |
6711 | shift | |
6712 | ||
6713 | case $ac_mode in | |
6714 | :L) ac_source=$1;; | |
6715 | :[FH]) | |
6716 | ac_file_inputs= | |
6717 | for ac_f | |
6718 | do | |
6719 | case $ac_f in | |
6720 | -) ac_f="$tmp/stdin";; | |
6721 | *) # Look for the file first in the build tree, then in the source tree | |
6722 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
6723 | # because $ac_f cannot contain `:'. | |
6724 | test -f "$ac_f" || | |
6725 | case $ac_f in | |
6726 | [\\/$]*) false;; | |
6727 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
6728 | esac || | |
6729 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
6730 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
6731 | { (exit 1); exit 1; }; };; | |
6732 | esac | |
6733 | ac_file_inputs="$ac_file_inputs $ac_f" | |
6734 | done | |
6735 | ||
6736 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6737 | # use $as_me), people would be surprised to read: | |
6738 | # /* config.h. Generated by config.status. */ | |
6739 | configure_input="Generated from "`IFS=: | |
6740 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
6741 | if test x"$ac_file" != x-; then | |
6742 | configure_input="$ac_file. $configure_input" | |
6743 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6744 | echo "$as_me: creating $ac_file" >&6;} | |
6745 | fi | |
6746 | ||
6747 | case $ac_tag in | |
6748 | *:-:* | *:-) cat >"$tmp/stdin";; | |
6749 | esac | |
6750 | ;; | |
fe5b0fdd DH |
6751 | esac |
6752 | ||
76c944da | 6753 | ac_dir=`$as_dirname -- "$ac_file" || |
fe5b0fdd DH |
6754 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6755 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6756 | X"$ac_file" : 'X\(//\)$' \| \ | |
76c944da | 6757 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 6758 | echo X"$ac_file" | |
76c944da SK |
6759 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
6760 | s//\1/ | |
6761 | q | |
6762 | } | |
6763 | /^X\(\/\/\)[^/].*/{ | |
6764 | s//\1/ | |
6765 | q | |
6766 | } | |
6767 | /^X\(\/\/\)$/{ | |
6768 | s//\1/ | |
6769 | q | |
6770 | } | |
6771 | /^X\(\/\).*/{ | |
6772 | s//\1/ | |
6773 | q | |
6774 | } | |
6775 | s/.*/./; q'` | |
6776 | { as_dir="$ac_dir" | |
6777 | case $as_dir in #( | |
6778 | -*) as_dir=./$as_dir;; | |
6779 | esac | |
6780 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
fe5b0fdd | 6781 | as_dirs= |
76c944da SK |
6782 | while :; do |
6783 | case $as_dir in #( | |
6784 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
6785 | *) as_qdir=$as_dir;; | |
6786 | esac | |
6787 | as_dirs="'$as_qdir' $as_dirs" | |
6788 | as_dir=`$as_dirname -- "$as_dir" || | |
fe5b0fdd DH |
6789 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6790 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6791 | X"$as_dir" : 'X\(//\)$' \| \ | |
76c944da | 6792 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 6793 | echo X"$as_dir" | |
76c944da SK |
6794 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
6795 | s//\1/ | |
6796 | q | |
6797 | } | |
6798 | /^X\(\/\/\)[^/].*/{ | |
6799 | s//\1/ | |
6800 | q | |
6801 | } | |
6802 | /^X\(\/\/\)$/{ | |
6803 | s//\1/ | |
6804 | q | |
6805 | } | |
6806 | /^X\(\/\).*/{ | |
6807 | s//\1/ | |
6808 | q | |
6809 | } | |
6810 | s/.*/./; q'` | |
6811 | test -d "$as_dir" && break | |
fe5b0fdd | 6812 | done |
76c944da SK |
6813 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
6814 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
6815 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
fe5b0fdd DH |
6816 | { (exit 1); exit 1; }; }; } |
6817 | ac_builddir=. | |
6818 | ||
76c944da SK |
6819 | case "$ac_dir" in |
6820 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6821 | *) | |
fe5b0fdd | 6822 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
76c944da SK |
6823 | # A ".." for each directory in $ac_dir_suffix. |
6824 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
6825 | case $ac_top_builddir_sub in | |
6826 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6827 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
6828 | esac ;; | |
6829 | esac | |
6830 | ac_abs_top_builddir=$ac_pwd | |
6831 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
6832 | # for backward compatibility: | |
6833 | ac_top_builddir=$ac_top_build_prefix | |
fe5b0fdd DH |
6834 | |
6835 | case $srcdir in | |
76c944da | 6836 | .) # We are building in place. |
fe5b0fdd | 6837 | ac_srcdir=. |
76c944da SK |
6838 | ac_top_srcdir=$ac_top_builddir_sub |
6839 | ac_abs_top_srcdir=$ac_pwd ;; | |
6840 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fe5b0fdd | 6841 | ac_srcdir=$srcdir$ac_dir_suffix; |
76c944da SK |
6842 | ac_top_srcdir=$srcdir |
6843 | ac_abs_top_srcdir=$srcdir ;; | |
6844 | *) # Relative name. | |
6845 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
6846 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
6847 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fe5b0fdd | 6848 | esac |
76c944da | 6849 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fe5b0fdd DH |
6850 | |
6851 | ||
76c944da SK |
6852 | case $ac_mode in |
6853 | :F) | |
6854 | # | |
6855 | # CONFIG_FILE | |
6856 | # | |
fe5b0fdd DH |
6857 | |
6858 | case $INSTALL in | |
6859 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
76c944da | 6860 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
fe5b0fdd | 6861 | esac |
76c944da | 6862 | _ACEOF |
273bfdc3 | 6863 | |
76c944da SK |
6864 | cat >>$CONFIG_STATUS <<\_ACEOF |
6865 | # If the template does not know about datarootdir, expand it. | |
6866 | # FIXME: This hack should be removed a few years after 2.60. | |
6867 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
6868 | ||
6869 | case `sed -n '/datarootdir/ { | |
6870 | p | |
6871 | q | |
6872 | } | |
6873 | /@datadir@/p | |
6874 | /@docdir@/p | |
6875 | /@infodir@/p | |
6876 | /@localedir@/p | |
6877 | /@mandir@/p | |
6878 | ' $ac_file_inputs` in | |
6879 | *datarootdir*) ac_datarootdir_seen=yes;; | |
6880 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
6881 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
6882 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
6883 | _ACEOF | |
6884 | cat >>$CONFIG_STATUS <<_ACEOF | |
6885 | ac_datarootdir_hack=' | |
6886 | s&@datadir@&$datadir&g | |
6887 | s&@docdir@&$docdir&g | |
6888 | s&@infodir@&$infodir&g | |
6889 | s&@localedir@&$localedir&g | |
6890 | s&@mandir@&$mandir&g | |
6891 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
6892 | esac | |
fe5b0fdd | 6893 | _ACEOF |
76c944da SK |
6894 | |
6895 | # Neutralize VPATH when `$srcdir' = `.'. | |
6896 | # Shell code in configure.ac might set extrasub. | |
6897 | # FIXME: do we really want to maintain this feature? | |
fe5b0fdd DH |
6898 | cat >>$CONFIG_STATUS <<_ACEOF |
6899 | sed "$ac_vpsub | |
6900 | $extrasub | |
6901 | _ACEOF | |
6902 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6903 | :t | |
6904 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
76c944da SK |
6905 | s&@configure_input@&$configure_input&;t t |
6906 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
6907 | s&@srcdir@&$ac_srcdir&;t t | |
6908 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
6909 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
6910 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
6911 | s&@builddir@&$ac_builddir&;t t | |
6912 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
6913 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
6914 | s&@INSTALL@&$ac_INSTALL&;t t | |
6915 | $ac_datarootdir_hack | |
6916 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
6917 | ||
6918 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
6919 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
6920 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
6921 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6922 | which seems to be undefined. Please make sure it is defined." >&5 | |
6923 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6924 | which seems to be undefined. Please make sure it is defined." >&2;} | |
6925 | ||
6926 | rm -f "$tmp/stdin" | |
fe5b0fdd | 6927 | case $ac_file in |
76c944da SK |
6928 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
6929 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
fe5b0fdd | 6930 | esac |
76c944da SK |
6931 | ;; |
6932 | :H) | |
6933 | # | |
6934 | # CONFIG_HEADER | |
6935 | # | |
6936 | _ACEOF | |
6937 | ||
6938 | # Transform confdefs.h into a sed script `conftest.defines', that | |
6939 | # substitutes the proper values into config.h.in to produce config.h. | |
6940 | rm -f conftest.defines conftest.tail | |
6941 | # First, append a space to every undef/define line, to ease matching. | |
6942 | echo 's/$/ /' >conftest.defines | |
6943 | # Then, protect against being on the right side of a sed subst, or in | |
6944 | # an unquoted here document, in config.status. If some macros were | |
6945 | # called several times there might be several #defines for the same | |
6946 | # symbol, which is useless. But do not sort them, since the last | |
6947 | # AC_DEFINE must be honored. | |
6948 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6949 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
6950 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
6951 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
6952 | # just an empty string. | |
6953 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
6954 | ac_dB='\\)[ (].*,\\1define\\2' | |
6955 | ac_dC=' ' | |
6956 | ac_dD=' ,' | |
6957 | ||
6958 | uniq confdefs.h | | |
6959 | sed -n ' | |
6960 | t rset | |
6961 | :rset | |
6962 | s/^[ ]*#[ ]*define[ ][ ]*// | |
6963 | t ok | |
6964 | d | |
6965 | :ok | |
6966 | s/[\\&,]/\\&/g | |
6967 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
6968 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
6969 | ' >>conftest.defines | |
6970 | ||
6971 | # Remove the space that was appended to ease matching. | |
6972 | # Then replace #undef with comments. This is necessary, for | |
fe5b0fdd DH |
6973 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
6974 | # on some systems where configure will not decide to define it. | |
76c944da SK |
6975 | # (The regexp can be short, since the line contains either #define or #undef.) |
6976 | echo 's/ $// | |
6977 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
6978 | ||
6979 | # Break up conftest.defines: | |
6980 | ac_max_sed_lines=50 | |
6981 | ||
6982 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
6983 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
6984 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
6985 | # et cetera. | |
6986 | ac_in='$ac_file_inputs' | |
6987 | ac_out='"$tmp/out1"' | |
6988 | ac_nxt='"$tmp/out2"' | |
6989 | ||
6990 | while : | |
fe5b0fdd | 6991 | do |
76c944da SK |
6992 | # Write a here document: |
6993 | cat >>$CONFIG_STATUS <<_ACEOF | |
6994 | # First, check the format of the line: | |
6995 | cat >"\$tmp/defines.sed" <<\\CEOF | |
6996 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
6997 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
6998 | b | |
6999 | :def | |
7000 | _ACEOF | |
7001 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
fe5b0fdd | 7002 | echo 'CEOF |
76c944da SK |
7003 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
7004 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
7005 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
7006 | grep . conftest.tail >/dev/null || break | |
fe5b0fdd DH |
7007 | rm -f conftest.defines |
7008 | mv conftest.tail conftest.defines | |
7009 | done | |
76c944da | 7010 | rm -f conftest.defines conftest.tail |
fe5b0fdd | 7011 | |
76c944da | 7012 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
fe5b0fdd DH |
7013 | cat >>$CONFIG_STATUS <<\_ACEOF |
7014 | if test x"$ac_file" != x-; then | |
76c944da SK |
7015 | echo "/* $configure_input */" >"$tmp/config.h" |
7016 | cat "$ac_result" >>"$tmp/config.h" | |
7017 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
fe5b0fdd DH |
7018 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
7019 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7020 | else | |
7021 | rm -f $ac_file | |
76c944da | 7022 | mv "$tmp/config.h" $ac_file |
fe5b0fdd DH |
7023 | fi |
7024 | else | |
76c944da SK |
7025 | echo "/* $configure_input */" |
7026 | cat "$ac_result" | |
fe5b0fdd | 7027 | fi |
76c944da | 7028 | rm -f "$tmp/out12" |
fe5b0fdd DH |
7029 | # Compute $ac_file's index in $config_headers. |
7030 | _am_stamp_count=1 | |
7031 | for _am_header in $config_headers :; do | |
7032 | case $_am_header in | |
7033 | $ac_file | $ac_file:* ) | |
7034 | break ;; | |
7035 | * ) | |
7036 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7037 | esac | |
7038 | done | |
76c944da | 7039 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
fe5b0fdd DH |
7040 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7041 | X$ac_file : 'X\(//\)[^/]' \| \ | |
7042 | X$ac_file : 'X\(//\)$' \| \ | |
76c944da | 7043 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 7044 | echo X$ac_file | |
76c944da SK |
7045 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7046 | s//\1/ | |
7047 | q | |
7048 | } | |
7049 | /^X\(\/\/\)[^/].*/{ | |
7050 | s//\1/ | |
7051 | q | |
7052 | } | |
7053 | /^X\(\/\/\)$/{ | |
7054 | s//\1/ | |
7055 | q | |
7056 | } | |
7057 | /^X\(\/\).*/{ | |
7058 | s//\1/ | |
7059 | q | |
7060 | } | |
7061 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
7062 | ;; | |
c9a1db5e | 7063 | |
76c944da SK |
7064 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
7065 | echo "$as_me: executing $ac_file commands" >&6;} | |
7066 | ;; | |
7067 | esac | |
fe5b0fdd DH |
7068 | |
7069 | ||
76c944da SK |
7070 | case $ac_file$ac_mode in |
7071 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
fe5b0fdd DH |
7072 | # Strip MF so we end up with the name of the file. |
7073 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
7074 | # Check whether this is an Automake generated Makefile or not. | |
7075 | # We used to match only the files named `Makefile.in', but | |
7076 | # some people rename them; so instead we look at the file content. | |
7077 | # Grep'ing the first line is not enough: some people post-process | |
7078 | # each Makefile.in and add a new line on top of each file to say so. | |
7079 | # So let's grep whole file. | |
7080 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
76c944da | 7081 | dirpart=`$as_dirname -- "$mf" || |
fe5b0fdd DH |
7082 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7083 | X"$mf" : 'X\(//\)[^/]' \| \ | |
7084 | X"$mf" : 'X\(//\)$' \| \ | |
76c944da | 7085 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 7086 | echo X"$mf" | |
76c944da SK |
7087 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7088 | s//\1/ | |
7089 | q | |
7090 | } | |
7091 | /^X\(\/\/\)[^/].*/{ | |
7092 | s//\1/ | |
7093 | q | |
7094 | } | |
7095 | /^X\(\/\/\)$/{ | |
7096 | s//\1/ | |
7097 | q | |
7098 | } | |
7099 | /^X\(\/\).*/{ | |
7100 | s//\1/ | |
7101 | q | |
7102 | } | |
7103 | s/.*/./; q'` | |
fe5b0fdd DH |
7104 | else |
7105 | continue | |
7106 | fi | |
7107 | # Extract the definition of DEPDIR, am__include, and am__quote | |
7108 | # from the Makefile without running `make'. | |
7109 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
7110 | test -z "$DEPDIR" && continue | |
7111 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
7112 | test -z "am__include" && continue | |
7113 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
7114 | # When using ansi2knr, U may be empty or an underscore; expand it | |
7115 | U=`sed -n 's/^U = //p' < "$mf"` | |
7116 | # Find all dependency output files, they are included files with | |
7117 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
7118 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
7119 | # expansion. | |
7120 | for file in `sed -n " | |
7121 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
7122 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
7123 | # Make sure the directory exists. | |
7124 | test -f "$dirpart/$file" && continue | |
76c944da | 7125 | fdir=`$as_dirname -- "$file" || |
fe5b0fdd DH |
7126 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7127 | X"$file" : 'X\(//\)[^/]' \| \ | |
7128 | X"$file" : 'X\(//\)$' \| \ | |
76c944da | 7129 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 7130 | echo X"$file" | |
76c944da SK |
7131 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7132 | s//\1/ | |
7133 | q | |
7134 | } | |
7135 | /^X\(\/\/\)[^/].*/{ | |
7136 | s//\1/ | |
7137 | q | |
7138 | } | |
7139 | /^X\(\/\/\)$/{ | |
7140 | s//\1/ | |
7141 | q | |
7142 | } | |
7143 | /^X\(\/\).*/{ | |
7144 | s//\1/ | |
7145 | q | |
7146 | } | |
7147 | s/.*/./; q'` | |
7148 | { as_dir=$dirpart/$fdir | |
7149 | case $as_dir in #( | |
7150 | -*) as_dir=./$as_dir;; | |
7151 | esac | |
7152 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
fe5b0fdd | 7153 | as_dirs= |
76c944da SK |
7154 | while :; do |
7155 | case $as_dir in #( | |
7156 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
7157 | *) as_qdir=$as_dir;; | |
7158 | esac | |
7159 | as_dirs="'$as_qdir' $as_dirs" | |
7160 | as_dir=`$as_dirname -- "$as_dir" || | |
fe5b0fdd DH |
7161 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7162 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7163 | X"$as_dir" : 'X\(//\)$' \| \ | |
76c944da | 7164 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
fe5b0fdd | 7165 | echo X"$as_dir" | |
76c944da SK |
7166 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7167 | s//\1/ | |
7168 | q | |
7169 | } | |
7170 | /^X\(\/\/\)[^/].*/{ | |
7171 | s//\1/ | |
7172 | q | |
7173 | } | |
7174 | /^X\(\/\/\)$/{ | |
7175 | s//\1/ | |
7176 | q | |
7177 | } | |
7178 | /^X\(\/\).*/{ | |
7179 | s//\1/ | |
7180 | q | |
7181 | } | |
7182 | s/.*/./; q'` | |
7183 | test -d "$as_dir" && break | |
fe5b0fdd | 7184 | done |
76c944da SK |
7185 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
7186 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
7187 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
fe5b0fdd DH |
7188 | { (exit 1); exit 1; }; }; } |
7189 | # echo "creating $dirpart/$file" | |
7190 | echo '# dummy' > "$dirpart/$file" | |
7191 | done | |
7192 | done | |
7193 | ;; | |
76c944da | 7194 | |
fe5b0fdd | 7195 | esac |
76c944da | 7196 | done # for ac_tag |
fe5b0fdd DH |
7197 | |
7198 | ||
7199 | { (exit 0); exit 0; } | |
7200 | _ACEOF | |
7201 | chmod +x $CONFIG_STATUS | |
7202 | ac_clean_files=$ac_clean_files_save | |
7203 | ||
7204 | ||
7205 | # configure is writing to config.log, and then calls config.status. | |
7206 | # config.status does its own redirection, appending to config.log. | |
7207 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7208 | # by configure, so config.status won't be able to write to it; its | |
7209 | # output is simply discarded. So we exec the FD to /dev/null, | |
7210 | # effectively closing config.log, so it can be properly (re)opened and | |
7211 | # appended to by config.status. When coming back to configure, we | |
7212 | # need to make the FD available again. | |
7213 | if test "$no_create" != yes; then | |
7214 | ac_cs_success=: | |
7215 | ac_config_status_args= | |
7216 | test "$silent" = yes && | |
7217 | ac_config_status_args="$ac_config_status_args --quiet" | |
7218 | exec 5>/dev/null | |
7219 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7220 | exec 5>>config.log | |
7221 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7222 | # would make configure fail if this is the last instruction. | |
7223 | $ac_cs_success || { (exit 1); exit 1; } | |
7224 | fi | |
7225 | ||
7226 |