|
1 #! /bin/sh |
|
2 # Guess values for system-dependent variables and create Makefiles. |
|
3 # Generated by GNU Autoconf 2.61. |
|
4 # |
|
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
7 # This configure script is free software; the Free Software Foundation |
|
8 # gives unlimited permission to copy, distribute and modify it. |
|
9 ## --------------------- ## |
|
10 ## M4sh Initialization. ## |
|
11 ## --------------------- ## |
|
12 |
|
13 # Be more Bourne compatible |
|
14 DUALCASE=1; export DUALCASE # for MKS sh |
|
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
16 emulate sh |
|
17 NULLCMD=: |
|
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
19 # is contrary to our usage. Disable this feature. |
|
20 alias -g '${1+"$@"}'='"$@"' |
|
21 setopt NO_GLOB_SUBST |
|
22 else |
|
23 case `(set -o) 2>/dev/null` in |
|
24 *posix*) set -o posix ;; |
|
25 esac |
|
26 |
|
27 fi |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 # PATH needs CR |
|
33 # Avoid depending upon Character Ranges. |
|
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
37 as_cr_digits='0123456789' |
|
38 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
39 |
|
40 # The user is always right. |
|
41 if test "${PATH_SEPARATOR+set}" != set; then |
|
42 echo "#! /bin/sh" >conf$$.sh |
|
43 echo "exit 0" >>conf$$.sh |
|
44 chmod +x conf$$.sh |
|
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
46 PATH_SEPARATOR=';' |
|
47 else |
|
48 PATH_SEPARATOR=: |
|
49 fi |
|
50 rm -f conf$$.sh |
|
51 fi |
|
52 |
|
53 # Support unset when possible. |
|
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
55 as_unset=unset |
|
56 else |
|
57 as_unset=false |
|
58 fi |
|
59 |
|
60 |
|
61 # IFS |
|
62 # We need space, tab and new line, in precisely that order. Quoting is |
|
63 # there to prevent editors from complaining about space-tab. |
|
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
65 # splitting by setting IFS to empty value.) |
|
66 as_nl=' |
|
67 ' |
|
68 IFS=" "" $as_nl" |
|
69 |
|
70 # Find who we are. Look in the path if we contain no directory separator. |
|
71 case $0 in |
|
72 *[\\/]* ) as_myself=$0 ;; |
|
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
74 for as_dir in $PATH |
|
75 do |
|
76 IFS=$as_save_IFS |
|
77 test -z "$as_dir" && as_dir=. |
|
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
79 done |
|
80 IFS=$as_save_IFS |
|
81 |
|
82 ;; |
|
83 esac |
|
84 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
85 # in which case we are not to be found in the path. |
|
86 if test "x$as_myself" = x; then |
|
87 as_myself=$0 |
|
88 fi |
|
89 if test ! -f "$as_myself"; then |
|
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
91 { (exit 1); exit 1; } |
|
92 fi |
|
93 |
|
94 # Work around bugs in pre-3.0 UWIN ksh. |
|
95 for as_var in ENV MAIL MAILPATH |
|
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
97 done |
|
98 PS1='$ ' |
|
99 PS2='> ' |
|
100 PS4='+ ' |
|
101 |
|
102 # NLS nuisances. |
|
103 for as_var in \ |
|
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
106 LC_TELEPHONE LC_TIME |
|
107 do |
|
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
109 eval $as_var=C; export $as_var |
|
110 else |
|
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
112 fi |
|
113 done |
|
114 |
|
115 # Required to use basename. |
|
116 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
118 as_expr=expr |
|
119 else |
|
120 as_expr=false |
|
121 fi |
|
122 |
|
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
124 as_basename=basename |
|
125 else |
|
126 as_basename=false |
|
127 fi |
|
128 |
|
129 |
|
130 # Name of the executable. |
|
131 as_me=`$as_basename -- "$0" || |
|
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
133 X"$0" : 'X\(//\)$' \| \ |
|
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
135 echo X/"$0" | |
|
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
137 s//\1/ |
|
138 q |
|
139 } |
|
140 /^X\/\(\/\/\)$/{ |
|
141 s//\1/ |
|
142 q |
|
143 } |
|
144 /^X\/\(\/\).*/{ |
|
145 s//\1/ |
|
146 q |
|
147 } |
|
148 s/.*/./; q'` |
|
149 |
|
150 # CDPATH. |
|
151 $as_unset CDPATH |
|
152 |
|
153 |
|
154 if test "x$CONFIG_SHELL" = x; then |
|
155 if (eval ":") 2>/dev/null; then |
|
156 as_have_required=yes |
|
157 else |
|
158 as_have_required=no |
|
159 fi |
|
160 |
|
161 if test $as_have_required = yes && (eval ": |
|
162 (as_func_return () { |
|
163 (exit \$1) |
|
164 } |
|
165 as_func_success () { |
|
166 as_func_return 0 |
|
167 } |
|
168 as_func_failure () { |
|
169 as_func_return 1 |
|
170 } |
|
171 as_func_ret_success () { |
|
172 return 0 |
|
173 } |
|
174 as_func_ret_failure () { |
|
175 return 1 |
|
176 } |
|
177 |
|
178 exitcode=0 |
|
179 if as_func_success; then |
|
180 : |
|
181 else |
|
182 exitcode=1 |
|
183 echo as_func_success failed. |
|
184 fi |
|
185 |
|
186 if as_func_failure; then |
|
187 exitcode=1 |
|
188 echo as_func_failure succeeded. |
|
189 fi |
|
190 |
|
191 if as_func_ret_success; then |
|
192 : |
|
193 else |
|
194 exitcode=1 |
|
195 echo as_func_ret_success failed. |
|
196 fi |
|
197 |
|
198 if as_func_ret_failure; then |
|
199 exitcode=1 |
|
200 echo as_func_ret_failure succeeded. |
|
201 fi |
|
202 |
|
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
204 : |
|
205 else |
|
206 exitcode=1 |
|
207 echo positional parameters were not saved. |
|
208 fi |
|
209 |
|
210 test \$exitcode = 0) || { (exit 1); exit 1; } |
|
211 |
|
212 ( |
|
213 as_lineno_1=\$LINENO |
|
214 as_lineno_2=\$LINENO |
|
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
|
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
|
217 ") 2> /dev/null; then |
|
218 : |
|
219 else |
|
220 as_candidate_shells= |
|
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
223 do |
|
224 IFS=$as_save_IFS |
|
225 test -z "$as_dir" && as_dir=. |
|
226 case $as_dir in |
|
227 /*) |
|
228 for as_base in sh bash ksh sh5; do |
|
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
|
230 done;; |
|
231 esac |
|
232 done |
|
233 IFS=$as_save_IFS |
|
234 |
|
235 |
|
236 for as_shell in $as_candidate_shells $SHELL; do |
|
237 # Try only shells that exist, to save several forks. |
|
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
239 { ("$as_shell") 2> /dev/null <<\_ASEOF |
|
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
241 emulate sh |
|
242 NULLCMD=: |
|
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
244 # is contrary to our usage. Disable this feature. |
|
245 alias -g '${1+"$@"}'='"$@"' |
|
246 setopt NO_GLOB_SUBST |
|
247 else |
|
248 case `(set -o) 2>/dev/null` in |
|
249 *posix*) set -o posix ;; |
|
250 esac |
|
251 |
|
252 fi |
|
253 |
|
254 |
|
255 : |
|
256 _ASEOF |
|
257 }; then |
|
258 CONFIG_SHELL=$as_shell |
|
259 as_have_required=yes |
|
260 if { "$as_shell" 2> /dev/null <<\_ASEOF |
|
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
262 emulate sh |
|
263 NULLCMD=: |
|
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
265 # is contrary to our usage. Disable this feature. |
|
266 alias -g '${1+"$@"}'='"$@"' |
|
267 setopt NO_GLOB_SUBST |
|
268 else |
|
269 case `(set -o) 2>/dev/null` in |
|
270 *posix*) set -o posix ;; |
|
271 esac |
|
272 |
|
273 fi |
|
274 |
|
275 |
|
276 : |
|
277 (as_func_return () { |
|
278 (exit $1) |
|
279 } |
|
280 as_func_success () { |
|
281 as_func_return 0 |
|
282 } |
|
283 as_func_failure () { |
|
284 as_func_return 1 |
|
285 } |
|
286 as_func_ret_success () { |
|
287 return 0 |
|
288 } |
|
289 as_func_ret_failure () { |
|
290 return 1 |
|
291 } |
|
292 |
|
293 exitcode=0 |
|
294 if as_func_success; then |
|
295 : |
|
296 else |
|
297 exitcode=1 |
|
298 echo as_func_success failed. |
|
299 fi |
|
300 |
|
301 if as_func_failure; then |
|
302 exitcode=1 |
|
303 echo as_func_failure succeeded. |
|
304 fi |
|
305 |
|
306 if as_func_ret_success; then |
|
307 : |
|
308 else |
|
309 exitcode=1 |
|
310 echo as_func_ret_success failed. |
|
311 fi |
|
312 |
|
313 if as_func_ret_failure; then |
|
314 exitcode=1 |
|
315 echo as_func_ret_failure succeeded. |
|
316 fi |
|
317 |
|
318 if ( set x; as_func_ret_success y && test x = "$1" ); then |
|
319 : |
|
320 else |
|
321 exitcode=1 |
|
322 echo positional parameters were not saved. |
|
323 fi |
|
324 |
|
325 test $exitcode = 0) || { (exit 1); exit 1; } |
|
326 |
|
327 ( |
|
328 as_lineno_1=$LINENO |
|
329 as_lineno_2=$LINENO |
|
330 test "x$as_lineno_1" != "x$as_lineno_2" && |
|
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
|
332 |
|
333 _ASEOF |
|
334 }; then |
|
335 break |
|
336 fi |
|
337 |
|
338 fi |
|
339 |
|
340 done |
|
341 |
|
342 if test "x$CONFIG_SHELL" != x; then |
|
343 for as_var in BASH_ENV ENV |
|
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
345 done |
|
346 export CONFIG_SHELL |
|
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
|
348 fi |
|
349 |
|
350 |
|
351 if test $as_have_required = no; then |
|
352 echo This script requires a shell more modern than all the |
|
353 echo shells that I found on your system. Please install a |
|
354 echo modern shell, or manually run the script under such a |
|
355 echo shell if you do have one. |
|
356 { (exit 1); exit 1; } |
|
357 fi |
|
358 |
|
359 |
|
360 fi |
|
361 |
|
362 fi |
|
363 |
|
364 |
|
365 |
|
366 (eval "as_func_return () { |
|
367 (exit \$1) |
|
368 } |
|
369 as_func_success () { |
|
370 as_func_return 0 |
|
371 } |
|
372 as_func_failure () { |
|
373 as_func_return 1 |
|
374 } |
|
375 as_func_ret_success () { |
|
376 return 0 |
|
377 } |
|
378 as_func_ret_failure () { |
|
379 return 1 |
|
380 } |
|
381 |
|
382 exitcode=0 |
|
383 if as_func_success; then |
|
384 : |
|
385 else |
|
386 exitcode=1 |
|
387 echo as_func_success failed. |
|
388 fi |
|
389 |
|
390 if as_func_failure; then |
|
391 exitcode=1 |
|
392 echo as_func_failure succeeded. |
|
393 fi |
|
394 |
|
395 if as_func_ret_success; then |
|
396 : |
|
397 else |
|
398 exitcode=1 |
|
399 echo as_func_ret_success failed. |
|
400 fi |
|
401 |
|
402 if as_func_ret_failure; then |
|
403 exitcode=1 |
|
404 echo as_func_ret_failure succeeded. |
|
405 fi |
|
406 |
|
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
408 : |
|
409 else |
|
410 exitcode=1 |
|
411 echo positional parameters were not saved. |
|
412 fi |
|
413 |
|
414 test \$exitcode = 0") || { |
|
415 echo No shell found that supports shell functions. |
|
416 echo Please tell autoconf@gnu.org about your system, |
|
417 echo including any error possibly output before this |
|
418 echo message |
|
419 } |
|
420 |
|
421 |
|
422 |
|
423 as_lineno_1=$LINENO |
|
424 as_lineno_2=$LINENO |
|
425 test "x$as_lineno_1" != "x$as_lineno_2" && |
|
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
427 |
|
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
429 # uniformly replaced by the line number. The first 'sed' inserts a |
|
430 # line-number line after each line using $LINENO; the second 'sed' |
|
431 # does the real work. The second script uses 'N' to pair each |
|
432 # line-number line with the line containing $LINENO, and appends |
|
433 # trailing '-' during substitution so that $LINENO is not a special |
|
434 # case at line end. |
|
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
436 # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
437 # E. McMahon (1931-1989) for sed's syntax. :-) |
|
438 sed -n ' |
|
439 p |
|
440 /[$]LINENO/= |
|
441 ' <$as_myself | |
|
442 sed ' |
|
443 s/[$]LINENO.*/&-/ |
|
444 t lineno |
|
445 b |
|
446 :lineno |
|
447 N |
|
448 :loop |
|
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
450 t loop |
|
451 s/-\n.*// |
|
452 ' >$as_me.lineno && |
|
453 chmod +x "$as_me.lineno" || |
|
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
455 { (exit 1); exit 1; }; } |
|
456 |
|
457 # Don't try to exec as it changes $[0], causing all sort of problems |
|
458 # (the dirname of $[0] is not the place where we might find the |
|
459 # original and so on. Autoconf is especially sensitive to this). |
|
460 . "./$as_me.lineno" |
|
461 # Exit status is that of the last command. |
|
462 exit |
|
463 } |
|
464 |
|
465 |
|
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
467 as_dirname=dirname |
|
468 else |
|
469 as_dirname=false |
|
470 fi |
|
471 |
|
472 ECHO_C= ECHO_N= ECHO_T= |
|
473 case `echo -n x` in |
|
474 -n*) |
|
475 case `echo 'x\c'` in |
|
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
477 *) ECHO_C='\c';; |
|
478 esac;; |
|
479 *) |
|
480 ECHO_N='-n';; |
|
481 esac |
|
482 |
|
483 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
485 as_expr=expr |
|
486 else |
|
487 as_expr=false |
|
488 fi |
|
489 |
|
490 rm -f conf$$ conf$$.exe conf$$.file |
|
491 if test -d conf$$.dir; then |
|
492 rm -f conf$$.dir/conf$$.file |
|
493 else |
|
494 rm -f conf$$.dir |
|
495 mkdir conf$$.dir |
|
496 fi |
|
497 echo >conf$$.file |
|
498 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
499 as_ln_s='ln -s' |
|
500 # ... but there are two gotchas: |
|
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
503 # In both cases, we have to default to `cp -p'. |
|
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
505 as_ln_s='cp -p' |
|
506 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
507 as_ln_s=ln |
|
508 else |
|
509 as_ln_s='cp -p' |
|
510 fi |
|
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
512 rmdir conf$$.dir 2>/dev/null |
|
513 |
|
514 if mkdir -p . 2>/dev/null; then |
|
515 as_mkdir_p=: |
|
516 else |
|
517 test -d ./-p && rmdir ./-p |
|
518 as_mkdir_p=false |
|
519 fi |
|
520 |
|
521 if test -x / >/dev/null 2>&1; then |
|
522 as_test_x='test -x' |
|
523 else |
|
524 if ls -dL / >/dev/null 2>&1; then |
|
525 as_ls_L_option=L |
|
526 else |
|
527 as_ls_L_option= |
|
528 fi |
|
529 as_test_x=' |
|
530 eval sh -c '\'' |
|
531 if test -d "$1"; then |
|
532 test -d "$1/."; |
|
533 else |
|
534 case $1 in |
|
535 -*)set "./$1";; |
|
536 esac; |
|
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
538 ???[sx]*):;;*)false;;esac;fi |
|
539 '\'' sh |
|
540 ' |
|
541 fi |
|
542 as_executable_p=$as_test_x |
|
543 |
|
544 # Sed expression to map a string onto a valid CPP name. |
|
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
546 |
|
547 # Sed expression to map a string onto a valid variable name. |
|
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
549 |
|
550 |
|
551 |
|
552 exec 7<&0 </dev/null 6>&1 |
|
553 |
|
554 # Name of the host. |
|
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|
556 # so uname gets run too. |
|
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
558 |
|
559 # |
|
560 # Initializations. |
|
561 # |
|
562 ac_default_prefix=/usr/local |
|
563 ac_clean_files= |
|
564 ac_config_libobj_dir=. |
|
565 LIBOBJS= |
|
566 cross_compiling=no |
|
567 subdirs= |
|
568 MFLAGS= |
|
569 MAKEFLAGS= |
|
570 SHELL=${CONFIG_SHELL-/bin/sh} |
|
571 |
|
572 # Identity of this package. |
|
573 PACKAGE_NAME= |
|
574 PACKAGE_TARNAME= |
|
575 PACKAGE_VERSION= |
|
576 PACKAGE_STRING= |
|
577 PACKAGE_BUGREPORT= |
|
578 |
|
579 ac_unique_file="havp" |
|
580 ac_default_prefix=/usr/local |
|
581 ac_subst_vars='SHELL |
|
582 PATH_SEPARATOR |
|
583 PACKAGE_NAME |
|
584 PACKAGE_TARNAME |
|
585 PACKAGE_VERSION |
|
586 PACKAGE_STRING |
|
587 PACKAGE_BUGREPORT |
|
588 exec_prefix |
|
589 prefix |
|
590 program_transform_name |
|
591 bindir |
|
592 sbindir |
|
593 libexecdir |
|
594 datarootdir |
|
595 datadir |
|
596 sysconfdir |
|
597 sharedstatedir |
|
598 localstatedir |
|
599 includedir |
|
600 oldincludedir |
|
601 docdir |
|
602 infodir |
|
603 htmldir |
|
604 dvidir |
|
605 pdfdir |
|
606 psdir |
|
607 libdir |
|
608 localedir |
|
609 mandir |
|
610 DEFS |
|
611 ECHO_C |
|
612 ECHO_N |
|
613 ECHO_T |
|
614 LIBS |
|
615 build_alias |
|
616 host_alias |
|
617 target_alias |
|
618 CXX |
|
619 CXXFLAGS |
|
620 LDFLAGS |
|
621 CPPFLAGS |
|
622 ac_ct_CXX |
|
623 EXEEXT |
|
624 OBJEXT |
|
625 AR |
|
626 PERL |
|
627 CC |
|
628 CFLAGS |
|
629 ac_ct_CC |
|
630 SCANNEROBJECTS |
|
631 LIBOBJS |
|
632 LTLIBOBJS' |
|
633 ac_subst_files='' |
|
634 ac_precious_vars='build_alias |
|
635 host_alias |
|
636 target_alias |
|
637 CXX |
|
638 CXXFLAGS |
|
639 LDFLAGS |
|
640 LIBS |
|
641 CPPFLAGS |
|
642 CCC |
|
643 CC |
|
644 CFLAGS' |
|
645 |
|
646 |
|
647 # Initialize some variables set by options. |
|
648 ac_init_help= |
|
649 ac_init_version=false |
|
650 # The variables have the same names as the options, with |
|
651 # dashes changed to underlines. |
|
652 cache_file=/dev/null |
|
653 exec_prefix=NONE |
|
654 no_create= |
|
655 no_recursion= |
|
656 prefix=NONE |
|
657 program_prefix=NONE |
|
658 program_suffix=NONE |
|
659 program_transform_name=s,x,x, |
|
660 silent= |
|
661 site= |
|
662 srcdir= |
|
663 verbose= |
|
664 x_includes=NONE |
|
665 x_libraries=NONE |
|
666 |
|
667 # Installation directory options. |
|
668 # These are left unexpanded so users can "make install exec_prefix=/foo" |
|
669 # and all the variables that are supposed to be based on exec_prefix |
|
670 # by default will actually change. |
|
671 # Use braces instead of parens because sh, perl, etc. also accept them. |
|
672 # (The list follows the same order as the GNU Coding Standards.) |
|
673 bindir='${exec_prefix}/bin' |
|
674 sbindir='${exec_prefix}/sbin' |
|
675 libexecdir='${exec_prefix}/libexec' |
|
676 datarootdir='${prefix}/share' |
|
677 datadir='${datarootdir}' |
|
678 sysconfdir='${prefix}/etc' |
|
679 sharedstatedir='${prefix}/com' |
|
680 localstatedir='${prefix}/var' |
|
681 includedir='${prefix}/include' |
|
682 oldincludedir='/usr/include' |
|
683 docdir='${datarootdir}/doc/${PACKAGE}' |
|
684 infodir='${datarootdir}/info' |
|
685 htmldir='${docdir}' |
|
686 dvidir='${docdir}' |
|
687 pdfdir='${docdir}' |
|
688 psdir='${docdir}' |
|
689 libdir='${exec_prefix}/lib' |
|
690 localedir='${datarootdir}/locale' |
|
691 mandir='${datarootdir}/man' |
|
692 |
|
693 ac_prev= |
|
694 ac_dashdash= |
|
695 for ac_option |
|
696 do |
|
697 # If the previous option needs an argument, assign it. |
|
698 if test -n "$ac_prev"; then |
|
699 eval $ac_prev=\$ac_option |
|
700 ac_prev= |
|
701 continue |
|
702 fi |
|
703 |
|
704 case $ac_option in |
|
705 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
706 *) ac_optarg=yes ;; |
|
707 esac |
|
708 |
|
709 # Accept the important Cygnus configure options, so we can diagnose typos. |
|
710 |
|
711 case $ac_dashdash$ac_option in |
|
712 --) |
|
713 ac_dashdash=yes ;; |
|
714 |
|
715 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
716 ac_prev=bindir ;; |
|
717 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
718 bindir=$ac_optarg ;; |
|
719 |
|
720 -build | --build | --buil | --bui | --bu) |
|
721 ac_prev=build_alias ;; |
|
722 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
723 build_alias=$ac_optarg ;; |
|
724 |
|
725 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
726 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
727 ac_prev=cache_file ;; |
|
728 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
729 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
730 cache_file=$ac_optarg ;; |
|
731 |
|
732 --config-cache | -C) |
|
733 cache_file=config.cache ;; |
|
734 |
|
735 -datadir | --datadir | --datadi | --datad) |
|
736 ac_prev=datadir ;; |
|
737 -datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
738 datadir=$ac_optarg ;; |
|
739 |
|
740 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
741 | --dataroo | --dataro | --datar) |
|
742 ac_prev=datarootdir ;; |
|
743 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
744 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
745 datarootdir=$ac_optarg ;; |
|
746 |
|
747 -disable-* | --disable-*) |
|
748 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
749 # Reject names that are not valid shell variable names. |
|
750 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
751 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
752 { (exit 1); exit 1; }; } |
|
753 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
|
754 eval enable_$ac_feature=no ;; |
|
755 |
|
756 -docdir | --docdir | --docdi | --doc | --do) |
|
757 ac_prev=docdir ;; |
|
758 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
759 docdir=$ac_optarg ;; |
|
760 |
|
761 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
762 ac_prev=dvidir ;; |
|
763 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
764 dvidir=$ac_optarg ;; |
|
765 |
|
766 -enable-* | --enable-*) |
|
767 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
768 # Reject names that are not valid shell variable names. |
|
769 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
770 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|
771 { (exit 1); exit 1; }; } |
|
772 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
|
773 eval enable_$ac_feature=\$ac_optarg ;; |
|
774 |
|
775 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
776 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
777 | --exec | --exe | --ex) |
|
778 ac_prev=exec_prefix ;; |
|
779 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
780 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
781 | --exec=* | --exe=* | --ex=*) |
|
782 exec_prefix=$ac_optarg ;; |
|
783 |
|
784 -gas | --gas | --ga | --g) |
|
785 # Obsolete; use --with-gas. |
|
786 with_gas=yes ;; |
|
787 |
|
788 -help | --help | --hel | --he | -h) |
|
789 ac_init_help=long ;; |
|
790 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
791 ac_init_help=recursive ;; |
|
792 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
793 ac_init_help=short ;; |
|
794 |
|
795 -host | --host | --hos | --ho) |
|
796 ac_prev=host_alias ;; |
|
797 -host=* | --host=* | --hos=* | --ho=*) |
|
798 host_alias=$ac_optarg ;; |
|
799 |
|
800 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
801 ac_prev=htmldir ;; |
|
802 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
803 | --ht=*) |
|
804 htmldir=$ac_optarg ;; |
|
805 |
|
806 -includedir | --includedir | --includedi | --included | --include \ |
|
807 | --includ | --inclu | --incl | --inc) |
|
808 ac_prev=includedir ;; |
|
809 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
810 | --includ=* | --inclu=* | --incl=* | --inc=*) |
|
811 includedir=$ac_optarg ;; |
|
812 |
|
813 -infodir | --infodir | --infodi | --infod | --info | --inf) |
|
814 ac_prev=infodir ;; |
|
815 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
816 infodir=$ac_optarg ;; |
|
817 |
|
818 -libdir | --libdir | --libdi | --libd) |
|
819 ac_prev=libdir ;; |
|
820 -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
821 libdir=$ac_optarg ;; |
|
822 |
|
823 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
824 | --libexe | --libex | --libe) |
|
825 ac_prev=libexecdir ;; |
|
826 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
827 | --libexe=* | --libex=* | --libe=*) |
|
828 libexecdir=$ac_optarg ;; |
|
829 |
|
830 -localedir | --localedir | --localedi | --localed | --locale) |
|
831 ac_prev=localedir ;; |
|
832 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
833 localedir=$ac_optarg ;; |
|
834 |
|
835 -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
836 | --localstate | --localstat | --localsta | --localst | --locals) |
|
837 ac_prev=localstatedir ;; |
|
838 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
839 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
840 localstatedir=$ac_optarg ;; |
|
841 |
|
842 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
843 ac_prev=mandir ;; |
|
844 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
845 mandir=$ac_optarg ;; |
|
846 |
|
847 -nfp | --nfp | --nf) |
|
848 # Obsolete; use --without-fp. |
|
849 with_fp=no ;; |
|
850 |
|
851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
852 | --no-cr | --no-c | -n) |
|
853 no_create=yes ;; |
|
854 |
|
855 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
856 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
857 no_recursion=yes ;; |
|
858 |
|
859 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
860 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
861 | --oldin | --oldi | --old | --ol | --o) |
|
862 ac_prev=oldincludedir ;; |
|
863 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
864 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
865 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
866 oldincludedir=$ac_optarg ;; |
|
867 |
|
868 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
869 ac_prev=prefix ;; |
|
870 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
871 prefix=$ac_optarg ;; |
|
872 |
|
873 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
874 | --program-pre | --program-pr | --program-p) |
|
875 ac_prev=program_prefix ;; |
|
876 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
877 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
878 program_prefix=$ac_optarg ;; |
|
879 |
|
880 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
881 | --program-suf | --program-su | --program-s) |
|
882 ac_prev=program_suffix ;; |
|
883 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
884 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
885 program_suffix=$ac_optarg ;; |
|
886 |
|
887 -program-transform-name | --program-transform-name \ |
|
888 | --program-transform-nam | --program-transform-na \ |
|
889 | --program-transform-n | --program-transform- \ |
|
890 | --program-transform | --program-transfor \ |
|
891 | --program-transfo | --program-transf \ |
|
892 | --program-trans | --program-tran \ |
|
893 | --progr-tra | --program-tr | --program-t) |
|
894 ac_prev=program_transform_name ;; |
|
895 -program-transform-name=* | --program-transform-name=* \ |
|
896 | --program-transform-nam=* | --program-transform-na=* \ |
|
897 | --program-transform-n=* | --program-transform-=* \ |
|
898 | --program-transform=* | --program-transfor=* \ |
|
899 | --program-transfo=* | --program-transf=* \ |
|
900 | --program-trans=* | --program-tran=* \ |
|
901 | --progr-tra=* | --program-tr=* | --program-t=*) |
|
902 program_transform_name=$ac_optarg ;; |
|
903 |
|
904 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
905 ac_prev=pdfdir ;; |
|
906 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
907 pdfdir=$ac_optarg ;; |
|
908 |
|
909 -psdir | --psdir | --psdi | --psd | --ps) |
|
910 ac_prev=psdir ;; |
|
911 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
912 psdir=$ac_optarg ;; |
|
913 |
|
914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
915 | -silent | --silent | --silen | --sile | --sil) |
|
916 silent=yes ;; |
|
917 |
|
918 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
919 ac_prev=sbindir ;; |
|
920 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
921 | --sbi=* | --sb=*) |
|
922 sbindir=$ac_optarg ;; |
|
923 |
|
924 -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
925 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
926 | --sharedst | --shareds | --shared | --share | --shar \ |
|
927 | --sha | --sh) |
|
928 ac_prev=sharedstatedir ;; |
|
929 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
930 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
931 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
932 | --sha=* | --sh=*) |
|
933 sharedstatedir=$ac_optarg ;; |
|
934 |
|
935 -site | --site | --sit) |
|
936 ac_prev=site ;; |
|
937 -site=* | --site=* | --sit=*) |
|
938 site=$ac_optarg ;; |
|
939 |
|
940 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
941 ac_prev=srcdir ;; |
|
942 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
943 srcdir=$ac_optarg ;; |
|
944 |
|
945 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
946 | --syscon | --sysco | --sysc | --sys | --sy) |
|
947 ac_prev=sysconfdir ;; |
|
948 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
949 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
950 sysconfdir=$ac_optarg ;; |
|
951 |
|
952 -target | --target | --targe | --targ | --tar | --ta | --t) |
|
953 ac_prev=target_alias ;; |
|
954 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
955 target_alias=$ac_optarg ;; |
|
956 |
|
957 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
958 verbose=yes ;; |
|
959 |
|
960 -version | --version | --versio | --versi | --vers | -V) |
|
961 ac_init_version=: ;; |
|
962 |
|
963 -with-* | --with-*) |
|
964 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
965 # Reject names that are not valid shell variable names. |
|
966 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
967 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
968 { (exit 1); exit 1; }; } |
|
969 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
|
970 eval with_$ac_package=\$ac_optarg ;; |
|
971 |
|
972 -without-* | --without-*) |
|
973 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
974 # Reject names that are not valid shell variable names. |
|
975 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
976 { echo "$as_me: error: invalid package name: $ac_package" >&2 |
|
977 { (exit 1); exit 1; }; } |
|
978 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
|
979 eval with_$ac_package=no ;; |
|
980 |
|
981 --x) |
|
982 # Obsolete; use --with-x. |
|
983 with_x=yes ;; |
|
984 |
|
985 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
986 | --x-incl | --x-inc | --x-in | --x-i) |
|
987 ac_prev=x_includes ;; |
|
988 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
989 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
990 x_includes=$ac_optarg ;; |
|
991 |
|
992 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
993 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
994 ac_prev=x_libraries ;; |
|
995 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
996 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
997 x_libraries=$ac_optarg ;; |
|
998 |
|
999 -*) { echo "$as_me: error: unrecognized option: $ac_option |
|
1000 Try \`$0 --help' for more information." >&2 |
|
1001 { (exit 1); exit 1; }; } |
|
1002 ;; |
|
1003 |
|
1004 *=*) |
|
1005 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1006 # Reject names that are not valid shell variable names. |
|
1007 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|
1008 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
|
1009 { (exit 1); exit 1; }; } |
|
1010 eval $ac_envvar=\$ac_optarg |
|
1011 export $ac_envvar ;; |
|
1012 |
|
1013 *) |
|
1014 # FIXME: should be removed in autoconf 3.0. |
|
1015 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1016 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1017 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1018 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
1019 ;; |
|
1020 |
|
1021 esac |
|
1022 done |
|
1023 |
|
1024 if test -n "$ac_prev"; then |
|
1025 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1026 { echo "$as_me: error: missing argument to $ac_option" >&2 |
|
1027 { (exit 1); exit 1; }; } |
|
1028 fi |
|
1029 |
|
1030 # Be sure to have absolute directory names. |
|
1031 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1032 datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1033 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1034 libdir localedir mandir |
|
1035 do |
|
1036 eval ac_val=\$$ac_var |
|
1037 case $ac_val in |
|
1038 [\\/$]* | ?:[\\/]* ) continue;; |
|
1039 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1040 esac |
|
1041 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
1042 { (exit 1); exit 1; }; } |
|
1043 done |
|
1044 |
|
1045 # There might be people who depend on the old broken behavior: `$host' |
|
1046 # used to hold the argument of --host etc. |
|
1047 # FIXME: To remove some day. |
|
1048 build=$build_alias |
|
1049 host=$host_alias |
|
1050 target=$target_alias |
|
1051 |
|
1052 # FIXME: To remove some day. |
|
1053 if test "x$host_alias" != x; then |
|
1054 if test "x$build_alias" = x; then |
|
1055 cross_compiling=maybe |
|
1056 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
1057 If a cross compiler is detected then cross compile mode will be used." >&2 |
|
1058 elif test "x$build_alias" != "x$host_alias"; then |
|
1059 cross_compiling=yes |
|
1060 fi |
|
1061 fi |
|
1062 |
|
1063 ac_tool_prefix= |
|
1064 test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1065 |
|
1066 test "$silent" = yes && exec 6>/dev/null |
|
1067 |
|
1068 |
|
1069 ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1070 ac_ls_di=`ls -di .` && |
|
1071 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1072 { echo "$as_me: error: Working directory cannot be determined" >&2 |
|
1073 { (exit 1); exit 1; }; } |
|
1074 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1075 { echo "$as_me: error: pwd does not report name of working directory" >&2 |
|
1076 { (exit 1); exit 1; }; } |
|
1077 |
|
1078 |
|
1079 # Find the source files, if location was not specified. |
|
1080 if test -z "$srcdir"; then |
|
1081 ac_srcdir_defaulted=yes |
|
1082 # Try the directory containing this script, then the parent directory. |
|
1083 ac_confdir=`$as_dirname -- "$0" || |
|
1084 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1085 X"$0" : 'X\(//\)[^/]' \| \ |
|
1086 X"$0" : 'X\(//\)$' \| \ |
|
1087 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
1088 echo X"$0" | |
|
1089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
1090 s//\1/ |
|
1091 q |
|
1092 } |
|
1093 /^X\(\/\/\)[^/].*/{ |
|
1094 s//\1/ |
|
1095 q |
|
1096 } |
|
1097 /^X\(\/\/\)$/{ |
|
1098 s//\1/ |
|
1099 q |
|
1100 } |
|
1101 /^X\(\/\).*/{ |
|
1102 s//\1/ |
|
1103 q |
|
1104 } |
|
1105 s/.*/./; q'` |
|
1106 srcdir=$ac_confdir |
|
1107 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1108 srcdir=.. |
|
1109 fi |
|
1110 else |
|
1111 ac_srcdir_defaulted=no |
|
1112 fi |
|
1113 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1114 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1115 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|
1116 { (exit 1); exit 1; }; } |
|
1117 fi |
|
1118 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1119 ac_abs_confdir=`( |
|
1120 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
|
1121 { (exit 1); exit 1; }; } |
|
1122 pwd)` |
|
1123 # When building in place, set srcdir=. |
|
1124 if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1125 srcdir=. |
|
1126 fi |
|
1127 # Remove unnecessary trailing slashes from srcdir. |
|
1128 # Double slashes in file names in object file debugging info |
|
1129 # mess up M-x gdb in Emacs. |
|
1130 case $srcdir in |
|
1131 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1132 esac |
|
1133 for ac_var in $ac_precious_vars; do |
|
1134 eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1135 eval ac_env_${ac_var}_value=\$${ac_var} |
|
1136 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1137 eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1138 done |
|
1139 |
|
1140 # |
|
1141 # Report the --help message. |
|
1142 # |
|
1143 if test "$ac_init_help" = "long"; then |
|
1144 # Omit some internal or obsolete options to make the list less imposing. |
|
1145 # This message is too long to be a string in the A/UX 3.1 sh. |
|
1146 cat <<_ACEOF |
|
1147 \`configure' configures this package to adapt to many kinds of systems. |
|
1148 |
|
1149 Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1150 |
|
1151 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1152 VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1153 |
|
1154 Defaults for the options are specified in brackets. |
|
1155 |
|
1156 Configuration: |
|
1157 -h, --help display this help and exit |
|
1158 --help=short display options specific to this package |
|
1159 --help=recursive display the short help of all the included packages |
|
1160 -V, --version display version information and exit |
|
1161 -q, --quiet, --silent do not print \`checking...' messages |
|
1162 --cache-file=FILE cache test results in FILE [disabled] |
|
1163 -C, --config-cache alias for \`--cache-file=config.cache' |
|
1164 -n, --no-create do not create output files |
|
1165 --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1166 |
|
1167 Installation directories: |
|
1168 --prefix=PREFIX install architecture-independent files in PREFIX |
|
1169 [$ac_default_prefix] |
|
1170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1171 [PREFIX] |
|
1172 |
|
1173 By default, \`make install' will install all the files in |
|
1174 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1175 an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1176 for instance \`--prefix=\$HOME'. |
|
1177 |
|
1178 For better control, use the options below. |
|
1179 |
|
1180 Fine tuning of the installation directories: |
|
1181 --bindir=DIR user executables [EPREFIX/bin] |
|
1182 --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1183 --libexecdir=DIR program executables [EPREFIX/libexec] |
|
1184 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1185 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1186 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1187 --libdir=DIR object code libraries [EPREFIX/lib] |
|
1188 --includedir=DIR C header files [PREFIX/include] |
|
1189 --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1190 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
1191 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1192 --infodir=DIR info documentation [DATAROOTDIR/info] |
|
1193 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1194 --mandir=DIR man documentation [DATAROOTDIR/man] |
|
1195 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|
1196 --htmldir=DIR html documentation [DOCDIR] |
|
1197 --dvidir=DIR dvi documentation [DOCDIR] |
|
1198 --pdfdir=DIR pdf documentation [DOCDIR] |
|
1199 --psdir=DIR ps documentation [DOCDIR] |
|
1200 _ACEOF |
|
1201 |
|
1202 cat <<\_ACEOF |
|
1203 _ACEOF |
|
1204 fi |
|
1205 |
|
1206 if test -n "$ac_init_help"; then |
|
1207 |
|
1208 cat <<\_ACEOF |
|
1209 |
|
1210 Optional Features: |
|
1211 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1212 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1213 --disable-locking Disable mandatory locking (not needed on Linux/Solaris system) |
|
1214 --enable-ssl-tunnel Enable SSL proxying (not scanned, only forwarded!) |
|
1215 --disable-clamav Disable ClamAV libclamav support (clamd is supported anyway) |
|
1216 --disable-trophie Disable Trend Micro Library (Trophie) support |
|
1217 |
|
1218 Some influential environment variables: |
|
1219 CXX C++ compiler command |
|
1220 CXXFLAGS C++ compiler flags |
|
1221 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1222 nonstandard directory <lib dir> |
|
1223 LIBS libraries to pass to the linker, e.g. -l<library> |
|
1224 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
|
1225 you have headers in a nonstandard directory <include dir> |
|
1226 CC C compiler command |
|
1227 CFLAGS C compiler flags |
|
1228 |
|
1229 Use these variables to override the choices made by `configure' or to help |
|
1230 it to find libraries and programs with nonstandard names/locations. |
|
1231 |
|
1232 _ACEOF |
|
1233 ac_status=$? |
|
1234 fi |
|
1235 |
|
1236 if test "$ac_init_help" = "recursive"; then |
|
1237 # If there are subdirs, report their specific --help. |
|
1238 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1239 test -d "$ac_dir" || continue |
|
1240 ac_builddir=. |
|
1241 |
|
1242 case "$ac_dir" in |
|
1243 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1244 *) |
|
1245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
1246 # A ".." for each directory in $ac_dir_suffix. |
|
1247 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
1248 case $ac_top_builddir_sub in |
|
1249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1251 esac ;; |
|
1252 esac |
|
1253 ac_abs_top_builddir=$ac_pwd |
|
1254 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1255 # for backward compatibility: |
|
1256 ac_top_builddir=$ac_top_build_prefix |
|
1257 |
|
1258 case $srcdir in |
|
1259 .) # We are building in place. |
|
1260 ac_srcdir=. |
|
1261 ac_top_srcdir=$ac_top_builddir_sub |
|
1262 ac_abs_top_srcdir=$ac_pwd ;; |
|
1263 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
1264 ac_srcdir=$srcdir$ac_dir_suffix; |
|
1265 ac_top_srcdir=$srcdir |
|
1266 ac_abs_top_srcdir=$srcdir ;; |
|
1267 *) # Relative name. |
|
1268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1269 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1271 esac |
|
1272 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1273 |
|
1274 cd "$ac_dir" || { ac_status=$?; continue; } |
|
1275 # Check for guested configure. |
|
1276 if test -f "$ac_srcdir/configure.gnu"; then |
|
1277 echo && |
|
1278 $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1279 elif test -f "$ac_srcdir/configure"; then |
|
1280 echo && |
|
1281 $SHELL "$ac_srcdir/configure" --help=recursive |
|
1282 else |
|
1283 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1284 fi || ac_status=$? |
|
1285 cd "$ac_pwd" || { ac_status=$?; break; } |
|
1286 done |
|
1287 fi |
|
1288 |
|
1289 test -n "$ac_init_help" && exit $ac_status |
|
1290 if $ac_init_version; then |
|
1291 cat <<\_ACEOF |
|
1292 configure |
|
1293 generated by GNU Autoconf 2.61 |
|
1294 |
|
1295 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
1296 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
1297 This configure script is free software; the Free Software Foundation |
|
1298 gives unlimited permission to copy, distribute and modify it. |
|
1299 _ACEOF |
|
1300 exit |
|
1301 fi |
|
1302 cat >config.log <<_ACEOF |
|
1303 This file contains any messages produced by compilers while |
|
1304 running configure, to aid debugging if configure makes a mistake. |
|
1305 |
|
1306 It was created by $as_me, which was |
|
1307 generated by GNU Autoconf 2.61. Invocation command line was |
|
1308 |
|
1309 $ $0 $@ |
|
1310 |
|
1311 _ACEOF |
|
1312 exec 5>>config.log |
|
1313 { |
|
1314 cat <<_ASUNAME |
|
1315 ## --------- ## |
|
1316 ## Platform. ## |
|
1317 ## --------- ## |
|
1318 |
|
1319 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
1320 uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
1321 uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
1322 uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
1323 uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
1324 |
|
1325 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
1326 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
1327 |
|
1328 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
1329 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
1330 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
1331 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
1332 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
1333 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
1334 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
1335 |
|
1336 _ASUNAME |
|
1337 |
|
1338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1339 for as_dir in $PATH |
|
1340 do |
|
1341 IFS=$as_save_IFS |
|
1342 test -z "$as_dir" && as_dir=. |
|
1343 echo "PATH: $as_dir" |
|
1344 done |
|
1345 IFS=$as_save_IFS |
|
1346 |
|
1347 } >&5 |
|
1348 |
|
1349 cat >&5 <<_ACEOF |
|
1350 |
|
1351 |
|
1352 ## ----------- ## |
|
1353 ## Core tests. ## |
|
1354 ## ----------- ## |
|
1355 |
|
1356 _ACEOF |
|
1357 |
|
1358 |
|
1359 # Keep a trace of the command line. |
|
1360 # Strip out --no-create and --no-recursion so they do not pile up. |
|
1361 # Strip out --silent because we don't want to record it for future runs. |
|
1362 # Also quote any args containing shell meta-characters. |
|
1363 # Make two passes to allow for proper duplicate-argument suppression. |
|
1364 ac_configure_args= |
|
1365 ac_configure_args0= |
|
1366 ac_configure_args1= |
|
1367 ac_must_keep_next=false |
|
1368 for ac_pass in 1 2 |
|
1369 do |
|
1370 for ac_arg |
|
1371 do |
|
1372 case $ac_arg in |
|
1373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
1374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1375 | -silent | --silent | --silen | --sile | --sil) |
|
1376 continue ;; |
|
1377 *\'*) |
|
1378 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1379 esac |
|
1380 case $ac_pass in |
|
1381 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
1382 2) |
|
1383 ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
1384 if test $ac_must_keep_next = true; then |
|
1385 ac_must_keep_next=false # Got value, back to normal. |
|
1386 else |
|
1387 case $ac_arg in |
|
1388 *=* | --config-cache | -C | -disable-* | --disable-* \ |
|
1389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
1390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
1391 | -with-* | --with-* | -without-* | --without-* | --x) |
|
1392 case "$ac_configure_args0 " in |
|
1393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
1394 esac |
|
1395 ;; |
|
1396 -* ) ac_must_keep_next=true ;; |
|
1397 esac |
|
1398 fi |
|
1399 ac_configure_args="$ac_configure_args '$ac_arg'" |
|
1400 ;; |
|
1401 esac |
|
1402 done |
|
1403 done |
|
1404 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
1405 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
1406 |
|
1407 # When interrupted or exit'd, cleanup temporary files, and complete |
|
1408 # config.log. We remove comments because anyway the quotes in there |
|
1409 # would cause problems or look ugly. |
|
1410 # WARNING: Use '\'' to represent an apostrophe within the trap. |
|
1411 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
1412 trap 'exit_status=$? |
|
1413 # Save into config.log some information that might help in debugging. |
|
1414 { |
|
1415 echo |
|
1416 |
|
1417 cat <<\_ASBOX |
|
1418 ## ---------------- ## |
|
1419 ## Cache variables. ## |
|
1420 ## ---------------- ## |
|
1421 _ASBOX |
|
1422 echo |
|
1423 # The following way of writing the cache mishandles newlines in values, |
|
1424 ( |
|
1425 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
1426 eval ac_val=\$$ac_var |
|
1427 case $ac_val in #( |
|
1428 *${as_nl}*) |
|
1429 case $ac_var in #( |
|
1430 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
1431 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
1432 esac |
|
1433 case $ac_var in #( |
|
1434 _ | IFS | as_nl) ;; #( |
|
1435 *) $as_unset $ac_var ;; |
|
1436 esac ;; |
|
1437 esac |
|
1438 done |
|
1439 (set) 2>&1 | |
|
1440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
1441 *${as_nl}ac_space=\ *) |
|
1442 sed -n \ |
|
1443 "s/'\''/'\''\\\\'\'''\''/g; |
|
1444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
1445 ;; #( |
|
1446 *) |
|
1447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
1448 ;; |
|
1449 esac | |
|
1450 sort |
|
1451 ) |
|
1452 echo |
|
1453 |
|
1454 cat <<\_ASBOX |
|
1455 ## ----------------- ## |
|
1456 ## Output variables. ## |
|
1457 ## ----------------- ## |
|
1458 _ASBOX |
|
1459 echo |
|
1460 for ac_var in $ac_subst_vars |
|
1461 do |
|
1462 eval ac_val=\$$ac_var |
|
1463 case $ac_val in |
|
1464 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1465 esac |
|
1466 echo "$ac_var='\''$ac_val'\''" |
|
1467 done | sort |
|
1468 echo |
|
1469 |
|
1470 if test -n "$ac_subst_files"; then |
|
1471 cat <<\_ASBOX |
|
1472 ## ------------------- ## |
|
1473 ## File substitutions. ## |
|
1474 ## ------------------- ## |
|
1475 _ASBOX |
|
1476 echo |
|
1477 for ac_var in $ac_subst_files |
|
1478 do |
|
1479 eval ac_val=\$$ac_var |
|
1480 case $ac_val in |
|
1481 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1482 esac |
|
1483 echo "$ac_var='\''$ac_val'\''" |
|
1484 done | sort |
|
1485 echo |
|
1486 fi |
|
1487 |
|
1488 if test -s confdefs.h; then |
|
1489 cat <<\_ASBOX |
|
1490 ## ----------- ## |
|
1491 ## confdefs.h. ## |
|
1492 ## ----------- ## |
|
1493 _ASBOX |
|
1494 echo |
|
1495 cat confdefs.h |
|
1496 echo |
|
1497 fi |
|
1498 test "$ac_signal" != 0 && |
|
1499 echo "$as_me: caught signal $ac_signal" |
|
1500 echo "$as_me: exit $exit_status" |
|
1501 } >&5 |
|
1502 rm -f core *.core core.conftest.* && |
|
1503 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
1504 exit $exit_status |
|
1505 ' 0 |
|
1506 for ac_signal in 1 2 13 15; do |
|
1507 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|
1508 done |
|
1509 ac_signal=0 |
|
1510 |
|
1511 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
1512 rm -f -r conftest* confdefs.h |
|
1513 |
|
1514 # Predefined preprocessor variables. |
|
1515 |
|
1516 cat >>confdefs.h <<_ACEOF |
|
1517 #define PACKAGE_NAME "$PACKAGE_NAME" |
|
1518 _ACEOF |
|
1519 |
|
1520 |
|
1521 cat >>confdefs.h <<_ACEOF |
|
1522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
1523 _ACEOF |
|
1524 |
|
1525 |
|
1526 cat >>confdefs.h <<_ACEOF |
|
1527 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
1528 _ACEOF |
|
1529 |
|
1530 |
|
1531 cat >>confdefs.h <<_ACEOF |
|
1532 #define PACKAGE_STRING "$PACKAGE_STRING" |
|
1533 _ACEOF |
|
1534 |
|
1535 |
|
1536 cat >>confdefs.h <<_ACEOF |
|
1537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
1538 _ACEOF |
|
1539 |
|
1540 |
|
1541 # Let the site file select an alternate cache file if it wants to. |
|
1542 # Prefer explicitly selected file to automatically selected ones. |
|
1543 if test -n "$CONFIG_SITE"; then |
|
1544 set x "$CONFIG_SITE" |
|
1545 elif test "x$prefix" != xNONE; then |
|
1546 set x "$prefix/share/config.site" "$prefix/etc/config.site" |
|
1547 else |
|
1548 set x "$ac_default_prefix/share/config.site" \ |
|
1549 "$ac_default_prefix/etc/config.site" |
|
1550 fi |
|
1551 shift |
|
1552 for ac_site_file |
|
1553 do |
|
1554 if test -r "$ac_site_file"; then |
|
1555 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|
1556 echo "$as_me: loading site script $ac_site_file" >&6;} |
|
1557 sed 's/^/| /' "$ac_site_file" >&5 |
|
1558 . "$ac_site_file" |
|
1559 fi |
|
1560 done |
|
1561 |
|
1562 if test -r "$cache_file"; then |
|
1563 # Some versions of bash will fail to source /dev/null (special |
|
1564 # files actually), so we avoid doing that. |
|
1565 if test -f "$cache_file"; then |
|
1566 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|
1567 echo "$as_me: loading cache $cache_file" >&6;} |
|
1568 case $cache_file in |
|
1569 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
1570 *) . "./$cache_file";; |
|
1571 esac |
|
1572 fi |
|
1573 else |
|
1574 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|
1575 echo "$as_me: creating cache $cache_file" >&6;} |
|
1576 >$cache_file |
|
1577 fi |
|
1578 |
|
1579 # Check that the precious variables saved in the cache have kept the same |
|
1580 # value. |
|
1581 ac_cache_corrupted=false |
|
1582 for ac_var in $ac_precious_vars; do |
|
1583 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
1584 eval ac_new_set=\$ac_env_${ac_var}_set |
|
1585 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
1586 eval ac_new_val=\$ac_env_${ac_var}_value |
|
1587 case $ac_old_set,$ac_new_set in |
|
1588 set,) |
|
1589 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
1590 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
1591 ac_cache_corrupted=: ;; |
|
1592 ,set) |
|
1593 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|
1594 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
1595 ac_cache_corrupted=: ;; |
|
1596 ,);; |
|
1597 *) |
|
1598 if test "x$ac_old_val" != "x$ac_new_val"; then |
|
1599 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|
1600 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
1601 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
1602 echo "$as_me: former value: $ac_old_val" >&2;} |
|
1603 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
1604 echo "$as_me: current value: $ac_new_val" >&2;} |
|
1605 ac_cache_corrupted=: |
|
1606 fi;; |
|
1607 esac |
|
1608 # Pass precious variables to config.status. |
|
1609 if test "$ac_new_set" = set; then |
|
1610 case $ac_new_val in |
|
1611 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1612 *) ac_arg=$ac_var=$ac_new_val ;; |
|
1613 esac |
|
1614 case " $ac_configure_args " in |
|
1615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
1616 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
1617 esac |
|
1618 fi |
|
1619 done |
|
1620 if $ac_cache_corrupted; then |
|
1621 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|
1622 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
1623 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|
1624 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
1625 { (exit 1); exit 1; }; } |
|
1626 fi |
|
1627 |
|
1628 |
|
1629 |
|
1630 |
|
1631 |
|
1632 |
|
1633 |
|
1634 |
|
1635 |
|
1636 |
|
1637 |
|
1638 |
|
1639 |
|
1640 |
|
1641 |
|
1642 |
|
1643 |
|
1644 ac_ext=c |
|
1645 ac_cpp='$CPP $CPPFLAGS' |
|
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
1649 |
|
1650 |
|
1651 |
|
1652 unset CDPATH |
|
1653 |
|
1654 ac_ext=cpp |
|
1655 ac_cpp='$CXXCPP $CPPFLAGS' |
|
1656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
1657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
1658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
1659 if test -z "$CXX"; then |
|
1660 if test -n "$CCC"; then |
|
1661 CXX=$CCC |
|
1662 else |
|
1663 if test -n "$ac_tool_prefix"; then |
|
1664 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
1665 do |
|
1666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
1667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
1668 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1670 if test "${ac_cv_prog_CXX+set}" = set; then |
|
1671 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1672 else |
|
1673 if test -n "$CXX"; then |
|
1674 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
1675 else |
|
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1677 for as_dir in $PATH |
|
1678 do |
|
1679 IFS=$as_save_IFS |
|
1680 test -z "$as_dir" && as_dir=. |
|
1681 for ac_exec_ext in '' $ac_executable_extensions; do |
|
1682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
1683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
1685 break 2 |
|
1686 fi |
|
1687 done |
|
1688 done |
|
1689 IFS=$as_save_IFS |
|
1690 |
|
1691 fi |
|
1692 fi |
|
1693 CXX=$ac_cv_prog_CXX |
|
1694 if test -n "$CXX"; then |
|
1695 { echo "$as_me:$LINENO: result: $CXX" >&5 |
|
1696 echo "${ECHO_T}$CXX" >&6; } |
|
1697 else |
|
1698 { echo "$as_me:$LINENO: result: no" >&5 |
|
1699 echo "${ECHO_T}no" >&6; } |
|
1700 fi |
|
1701 |
|
1702 |
|
1703 test -n "$CXX" && break |
|
1704 done |
|
1705 fi |
|
1706 if test -z "$CXX"; then |
|
1707 ac_ct_CXX=$CXX |
|
1708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
1709 do |
|
1710 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
1711 set dummy $ac_prog; ac_word=$2 |
|
1712 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
1714 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
|
1715 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1716 else |
|
1717 if test -n "$ac_ct_CXX"; then |
|
1718 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
1719 else |
|
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1721 for as_dir in $PATH |
|
1722 do |
|
1723 IFS=$as_save_IFS |
|
1724 test -z "$as_dir" && as_dir=. |
|
1725 for ac_exec_ext in '' $ac_executable_extensions; do |
|
1726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
1727 ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
1729 break 2 |
|
1730 fi |
|
1731 done |
|
1732 done |
|
1733 IFS=$as_save_IFS |
|
1734 |
|
1735 fi |
|
1736 fi |
|
1737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
1738 if test -n "$ac_ct_CXX"; then |
|
1739 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
|
1740 echo "${ECHO_T}$ac_ct_CXX" >&6; } |
|
1741 else |
|
1742 { echo "$as_me:$LINENO: result: no" >&5 |
|
1743 echo "${ECHO_T}no" >&6; } |
|
1744 fi |
|
1745 |
|
1746 |
|
1747 test -n "$ac_ct_CXX" && break |
|
1748 done |
|
1749 |
|
1750 if test "x$ac_ct_CXX" = x; then |
|
1751 CXX="g++" |
|
1752 else |
|
1753 case $cross_compiling:$ac_tool_warned in |
|
1754 yes:) |
|
1755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
1756 whose name does not start with the host triplet. If you think this |
|
1757 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
1758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
1759 whose name does not start with the host triplet. If you think this |
|
1760 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
1761 ac_tool_warned=yes ;; |
|
1762 esac |
|
1763 CXX=$ac_ct_CXX |
|
1764 fi |
|
1765 fi |
|
1766 |
|
1767 fi |
|
1768 fi |
|
1769 # Provide some information about the compiler. |
|
1770 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
|
1771 ac_compiler=`set X $ac_compile; echo $2` |
|
1772 { (ac_try="$ac_compiler --version >&5" |
|
1773 case "(($ac_try" in |
|
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1775 *) ac_try_echo=$ac_try;; |
|
1776 esac |
|
1777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
1778 (eval "$ac_compiler --version >&5") 2>&5 |
|
1779 ac_status=$? |
|
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1781 (exit $ac_status); } |
|
1782 { (ac_try="$ac_compiler -v >&5" |
|
1783 case "(($ac_try" in |
|
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1785 *) ac_try_echo=$ac_try;; |
|
1786 esac |
|
1787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
1788 (eval "$ac_compiler -v >&5") 2>&5 |
|
1789 ac_status=$? |
|
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1791 (exit $ac_status); } |
|
1792 { (ac_try="$ac_compiler -V >&5" |
|
1793 case "(($ac_try" in |
|
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1795 *) ac_try_echo=$ac_try;; |
|
1796 esac |
|
1797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
1798 (eval "$ac_compiler -V >&5") 2>&5 |
|
1799 ac_status=$? |
|
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1801 (exit $ac_status); } |
|
1802 |
|
1803 cat >conftest.$ac_ext <<_ACEOF |
|
1804 /* confdefs.h. */ |
|
1805 _ACEOF |
|
1806 cat confdefs.h >>conftest.$ac_ext |
|
1807 cat >>conftest.$ac_ext <<_ACEOF |
|
1808 /* end confdefs.h. */ |
|
1809 |
|
1810 int |
|
1811 main () |
|
1812 { |
|
1813 |
|
1814 ; |
|
1815 return 0; |
|
1816 } |
|
1817 _ACEOF |
|
1818 ac_clean_files_save=$ac_clean_files |
|
1819 ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
1820 # Try to create an executable without -o first, disregard a.out. |
|
1821 # It will help us diagnose broken compilers, and finding out an intuition |
|
1822 # of exeext. |
|
1823 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
|
1824 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } |
|
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
1826 # |
|
1827 # List of possible output files, starting from the most likely. |
|
1828 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
1829 # only as a last resort. b.out is created by i960 compilers. |
|
1830 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
1831 # |
|
1832 # The IRIX 6 linker writes into existing files which may not be |
|
1833 # executable, retaining their permissions. Remove them first so a |
|
1834 # subsequent execution test works. |
|
1835 ac_rmfiles= |
|
1836 for ac_file in $ac_files |
|
1837 do |
|
1838 case $ac_file in |
|
1839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
1840 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
1841 esac |
|
1842 done |
|
1843 rm -f $ac_rmfiles |
|
1844 |
|
1845 if { (ac_try="$ac_link_default" |
|
1846 case "(($ac_try" in |
|
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1848 *) ac_try_echo=$ac_try;; |
|
1849 esac |
|
1850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
1851 (eval "$ac_link_default") 2>&5 |
|
1852 ac_status=$? |
|
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1854 (exit $ac_status); }; then |
|
1855 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
1856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
1857 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
1858 # so that the user can short-circuit this test for compilers unknown to |
|
1859 # Autoconf. |
|
1860 for ac_file in $ac_files '' |
|
1861 do |
|
1862 test -f "$ac_file" || continue |
|
1863 case $ac_file in |
|
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
|
1865 ;; |
|
1866 [ab].out ) |
|
1867 # We found the default executable, but exeext='' is most |
|
1868 # certainly right. |
|
1869 break;; |
|
1870 *.* ) |
|
1871 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
1872 then :; else |
|
1873 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
1874 fi |
|
1875 # We set ac_cv_exeext here because the later test for it is not |
|
1876 # safe: cross compilers may not add the suffix if given an `-o' |
|
1877 # argument, so we may need to know it at that point already. |
|
1878 # Even if this section looks crufty: it has the advantage of |
|
1879 # actually working. |
|
1880 break;; |
|
1881 * ) |
|
1882 break;; |
|
1883 esac |
|
1884 done |
|
1885 test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
1886 |
|
1887 else |
|
1888 ac_file='' |
|
1889 fi |
|
1890 |
|
1891 { echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
1892 echo "${ECHO_T}$ac_file" >&6; } |
|
1893 if test -z "$ac_file"; then |
|
1894 echo "$as_me: failed program was:" >&5 |
|
1895 sed 's/^/| /' conftest.$ac_ext >&5 |
|
1896 |
|
1897 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
|
1898 See \`config.log' for more details." >&5 |
|
1899 echo "$as_me: error: C++ compiler cannot create executables |
|
1900 See \`config.log' for more details." >&2;} |
|
1901 { (exit 77); exit 77; }; } |
|
1902 fi |
|
1903 |
|
1904 ac_exeext=$ac_cv_exeext |
|
1905 |
|
1906 # Check that the compiler produces executables we can run. If not, either |
|
1907 # the compiler is broken, or we cross compile. |
|
1908 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
|
1909 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } |
|
1910 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
1911 # If not cross compiling, check that we can run a simple program. |
|
1912 if test "$cross_compiling" != yes; then |
|
1913 if { ac_try='./$ac_file' |
|
1914 { (case "(($ac_try" in |
|
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1916 *) ac_try_echo=$ac_try;; |
|
1917 esac |
|
1918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
1919 (eval "$ac_try") 2>&5 |
|
1920 ac_status=$? |
|
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1922 (exit $ac_status); }; }; then |
|
1923 cross_compiling=no |
|
1924 else |
|
1925 if test "$cross_compiling" = maybe; then |
|
1926 cross_compiling=yes |
|
1927 else |
|
1928 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
|
1929 If you meant to cross compile, use \`--host'. |
|
1930 See \`config.log' for more details." >&5 |
|
1931 echo "$as_me: error: cannot run C++ compiled programs. |
|
1932 If you meant to cross compile, use \`--host'. |
|
1933 See \`config.log' for more details." >&2;} |
|
1934 { (exit 1); exit 1; }; } |
|
1935 fi |
|
1936 fi |
|
1937 fi |
|
1938 { echo "$as_me:$LINENO: result: yes" >&5 |
|
1939 echo "${ECHO_T}yes" >&6; } |
|
1940 |
|
1941 rm -f a.out a.exe conftest$ac_cv_exeext b.out |
|
1942 ac_clean_files=$ac_clean_files_save |
|
1943 # Check that the compiler produces executables we can run. If not, either |
|
1944 # the compiler is broken, or we cross compile. |
|
1945 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
1946 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
|
1947 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
1948 echo "${ECHO_T}$cross_compiling" >&6; } |
|
1949 |
|
1950 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
1951 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
|
1952 if { (ac_try="$ac_link" |
|
1953 case "(($ac_try" in |
|
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1955 *) ac_try_echo=$ac_try;; |
|
1956 esac |
|
1957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
1958 (eval "$ac_link") 2>&5 |
|
1959 ac_status=$? |
|
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
1961 (exit $ac_status); }; then |
|
1962 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
1963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
1964 # work properly (i.e., refer to `conftest.exe'), while it won't with |
|
1965 # `rm'. |
|
1966 for ac_file in conftest.exe conftest conftest.*; do |
|
1967 test -f "$ac_file" || continue |
|
1968 case $ac_file in |
|
1969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
1970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
1971 break;; |
|
1972 * ) break;; |
|
1973 esac |
|
1974 done |
|
1975 else |
|
1976 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|
1977 See \`config.log' for more details." >&5 |
|
1978 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
1979 See \`config.log' for more details." >&2;} |
|
1980 { (exit 1); exit 1; }; } |
|
1981 fi |
|
1982 |
|
1983 rm -f conftest$ac_cv_exeext |
|
1984 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
1985 echo "${ECHO_T}$ac_cv_exeext" >&6; } |
|
1986 |
|
1987 rm -f conftest.$ac_ext |
|
1988 EXEEXT=$ac_cv_exeext |
|
1989 ac_exeext=$EXEEXT |
|
1990 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
1991 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
|
1992 if test "${ac_cv_objext+set}" = set; then |
|
1993 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
1994 else |
|
1995 cat >conftest.$ac_ext <<_ACEOF |
|
1996 /* confdefs.h. */ |
|
1997 _ACEOF |
|
1998 cat confdefs.h >>conftest.$ac_ext |
|
1999 cat >>conftest.$ac_ext <<_ACEOF |
|
2000 /* end confdefs.h. */ |
|
2001 |
|
2002 int |
|
2003 main () |
|
2004 { |
|
2005 |
|
2006 ; |
|
2007 return 0; |
|
2008 } |
|
2009 _ACEOF |
|
2010 rm -f conftest.o conftest.obj |
|
2011 if { (ac_try="$ac_compile" |
|
2012 case "(($ac_try" in |
|
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2014 *) ac_try_echo=$ac_try;; |
|
2015 esac |
|
2016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2017 (eval "$ac_compile") 2>&5 |
|
2018 ac_status=$? |
|
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2020 (exit $ac_status); }; then |
|
2021 for ac_file in conftest.o conftest.obj conftest.*; do |
|
2022 test -f "$ac_file" || continue; |
|
2023 case $ac_file in |
|
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
|
2025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
2026 break;; |
|
2027 esac |
|
2028 done |
|
2029 else |
|
2030 echo "$as_me: failed program was:" >&5 |
|
2031 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2032 |
|
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
2034 See \`config.log' for more details." >&5 |
|
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
2036 See \`config.log' for more details." >&2;} |
|
2037 { (exit 1); exit 1; }; } |
|
2038 fi |
|
2039 |
|
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
2041 fi |
|
2042 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
2043 echo "${ECHO_T}$ac_cv_objext" >&6; } |
|
2044 OBJEXT=$ac_cv_objext |
|
2045 ac_objext=$OBJEXT |
|
2046 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
|
2047 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
|
2048 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
|
2049 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2050 else |
|
2051 cat >conftest.$ac_ext <<_ACEOF |
|
2052 /* confdefs.h. */ |
|
2053 _ACEOF |
|
2054 cat confdefs.h >>conftest.$ac_ext |
|
2055 cat >>conftest.$ac_ext <<_ACEOF |
|
2056 /* end confdefs.h. */ |
|
2057 |
|
2058 int |
|
2059 main () |
|
2060 { |
|
2061 #ifndef __GNUC__ |
|
2062 choke me |
|
2063 #endif |
|
2064 |
|
2065 ; |
|
2066 return 0; |
|
2067 } |
|
2068 _ACEOF |
|
2069 rm -f conftest.$ac_objext |
|
2070 if { (ac_try="$ac_compile" |
|
2071 case "(($ac_try" in |
|
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2073 *) ac_try_echo=$ac_try;; |
|
2074 esac |
|
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2076 (eval "$ac_compile") 2>conftest.er1 |
|
2077 ac_status=$? |
|
2078 grep -v '^ *+' conftest.er1 >conftest.err |
|
2079 rm -f conftest.er1 |
|
2080 cat conftest.err >&5 |
|
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2082 (exit $ac_status); } && { |
|
2083 test -z "$ac_cxx_werror_flag" || |
|
2084 test ! -s conftest.err |
|
2085 } && test -s conftest.$ac_objext; then |
|
2086 ac_compiler_gnu=yes |
|
2087 else |
|
2088 echo "$as_me: failed program was:" >&5 |
|
2089 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2090 |
|
2091 ac_compiler_gnu=no |
|
2092 fi |
|
2093 |
|
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2095 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
2096 |
|
2097 fi |
|
2098 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
2099 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
|
2100 GXX=`test $ac_compiler_gnu = yes && echo yes` |
|
2101 ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
2102 ac_save_CXXFLAGS=$CXXFLAGS |
|
2103 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
|
2104 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
|
2105 if test "${ac_cv_prog_cxx_g+set}" = set; then |
|
2106 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2107 else |
|
2108 ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
2109 ac_cxx_werror_flag=yes |
|
2110 ac_cv_prog_cxx_g=no |
|
2111 CXXFLAGS="-g" |
|
2112 cat >conftest.$ac_ext <<_ACEOF |
|
2113 /* confdefs.h. */ |
|
2114 _ACEOF |
|
2115 cat confdefs.h >>conftest.$ac_ext |
|
2116 cat >>conftest.$ac_ext <<_ACEOF |
|
2117 /* end confdefs.h. */ |
|
2118 |
|
2119 int |
|
2120 main () |
|
2121 { |
|
2122 |
|
2123 ; |
|
2124 return 0; |
|
2125 } |
|
2126 _ACEOF |
|
2127 rm -f conftest.$ac_objext |
|
2128 if { (ac_try="$ac_compile" |
|
2129 case "(($ac_try" in |
|
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2131 *) ac_try_echo=$ac_try;; |
|
2132 esac |
|
2133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2134 (eval "$ac_compile") 2>conftest.er1 |
|
2135 ac_status=$? |
|
2136 grep -v '^ *+' conftest.er1 >conftest.err |
|
2137 rm -f conftest.er1 |
|
2138 cat conftest.err >&5 |
|
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2140 (exit $ac_status); } && { |
|
2141 test -z "$ac_cxx_werror_flag" || |
|
2142 test ! -s conftest.err |
|
2143 } && test -s conftest.$ac_objext; then |
|
2144 ac_cv_prog_cxx_g=yes |
|
2145 else |
|
2146 echo "$as_me: failed program was:" >&5 |
|
2147 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2148 |
|
2149 CXXFLAGS="" |
|
2150 cat >conftest.$ac_ext <<_ACEOF |
|
2151 /* confdefs.h. */ |
|
2152 _ACEOF |
|
2153 cat confdefs.h >>conftest.$ac_ext |
|
2154 cat >>conftest.$ac_ext <<_ACEOF |
|
2155 /* end confdefs.h. */ |
|
2156 |
|
2157 int |
|
2158 main () |
|
2159 { |
|
2160 |
|
2161 ; |
|
2162 return 0; |
|
2163 } |
|
2164 _ACEOF |
|
2165 rm -f conftest.$ac_objext |
|
2166 if { (ac_try="$ac_compile" |
|
2167 case "(($ac_try" in |
|
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2169 *) ac_try_echo=$ac_try;; |
|
2170 esac |
|
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2172 (eval "$ac_compile") 2>conftest.er1 |
|
2173 ac_status=$? |
|
2174 grep -v '^ *+' conftest.er1 >conftest.err |
|
2175 rm -f conftest.er1 |
|
2176 cat conftest.err >&5 |
|
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2178 (exit $ac_status); } && { |
|
2179 test -z "$ac_cxx_werror_flag" || |
|
2180 test ! -s conftest.err |
|
2181 } && test -s conftest.$ac_objext; then |
|
2182 : |
|
2183 else |
|
2184 echo "$as_me: failed program was:" >&5 |
|
2185 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2186 |
|
2187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
2188 CXXFLAGS="-g" |
|
2189 cat >conftest.$ac_ext <<_ACEOF |
|
2190 /* confdefs.h. */ |
|
2191 _ACEOF |
|
2192 cat confdefs.h >>conftest.$ac_ext |
|
2193 cat >>conftest.$ac_ext <<_ACEOF |
|
2194 /* end confdefs.h. */ |
|
2195 |
|
2196 int |
|
2197 main () |
|
2198 { |
|
2199 |
|
2200 ; |
|
2201 return 0; |
|
2202 } |
|
2203 _ACEOF |
|
2204 rm -f conftest.$ac_objext |
|
2205 if { (ac_try="$ac_compile" |
|
2206 case "(($ac_try" in |
|
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2208 *) ac_try_echo=$ac_try;; |
|
2209 esac |
|
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2211 (eval "$ac_compile") 2>conftest.er1 |
|
2212 ac_status=$? |
|
2213 grep -v '^ *+' conftest.er1 >conftest.err |
|
2214 rm -f conftest.er1 |
|
2215 cat conftest.err >&5 |
|
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2217 (exit $ac_status); } && { |
|
2218 test -z "$ac_cxx_werror_flag" || |
|
2219 test ! -s conftest.err |
|
2220 } && test -s conftest.$ac_objext; then |
|
2221 ac_cv_prog_cxx_g=yes |
|
2222 else |
|
2223 echo "$as_me: failed program was:" >&5 |
|
2224 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2225 |
|
2226 |
|
2227 fi |
|
2228 |
|
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2230 fi |
|
2231 |
|
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2233 fi |
|
2234 |
|
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2236 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
2237 fi |
|
2238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
|
2239 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
|
2240 if test "$ac_test_CXXFLAGS" = set; then |
|
2241 CXXFLAGS=$ac_save_CXXFLAGS |
|
2242 elif test $ac_cv_prog_cxx_g = yes; then |
|
2243 if test "$GXX" = yes; then |
|
2244 CXXFLAGS="-g -O2" |
|
2245 else |
|
2246 CXXFLAGS="-g" |
|
2247 fi |
|
2248 else |
|
2249 if test "$GXX" = yes; then |
|
2250 CXXFLAGS="-O2" |
|
2251 else |
|
2252 CXXFLAGS= |
|
2253 fi |
|
2254 fi |
|
2255 ac_ext=c |
|
2256 ac_cpp='$CPP $CPPFLAGS' |
|
2257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2259 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2260 |
|
2261 |
|
2262 |
|
2263 |
|
2264 ac_config_headers="$ac_config_headers havp/default.h" |
|
2265 |
|
2266 |
|
2267 # Check whether --enable-locking was given. |
|
2268 if test "${enable_locking+set}" = set; then |
|
2269 enableval=$enable_locking; enable_locking=$enableval |
|
2270 else |
|
2271 enable_locking=yes |
|
2272 fi |
|
2273 |
|
2274 # Check whether --enable-ssl-tunnel was given. |
|
2275 if test "${enable_ssl_tunnel+set}" = set; then |
|
2276 enableval=$enable_ssl_tunnel; enable_ssl_tunnel=$enableval |
|
2277 else |
|
2278 enable_ssl_tunnel=no |
|
2279 fi |
|
2280 |
|
2281 # Check whether --enable-clamav was given. |
|
2282 if test "${enable_clamav+set}" = set; then |
|
2283 enableval=$enable_clamav; enable_clamav=$enableval |
|
2284 else |
|
2285 enable_clamav=yes |
|
2286 fi |
|
2287 |
|
2288 # Check whether --enable-trophie was given. |
|
2289 if test "${enable_trophie+set}" = set; then |
|
2290 enableval=$enable_trophie; enable_trophie=$enableval |
|
2291 else |
|
2292 enable_trophie=yes |
|
2293 fi |
|
2294 |
|
2295 |
|
2296 # Extract the first word of "ar", so it can be a program name with args. |
|
2297 set dummy ar; ac_word=$2 |
|
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2300 if test "${ac_cv_prog_AR+set}" = set; then |
|
2301 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2302 else |
|
2303 if test -n "$AR"; then |
|
2304 ac_cv_prog_AR="$AR" # Let the user override the test. |
|
2305 else |
|
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2307 for as_dir in $PATH |
|
2308 do |
|
2309 IFS=$as_save_IFS |
|
2310 test -z "$as_dir" && as_dir=. |
|
2311 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2313 ac_cv_prog_AR="ar" |
|
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2315 break 2 |
|
2316 fi |
|
2317 done |
|
2318 done |
|
2319 IFS=$as_save_IFS |
|
2320 |
|
2321 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="no" |
|
2322 fi |
|
2323 fi |
|
2324 AR=$ac_cv_prog_AR |
|
2325 if test -n "$AR"; then |
|
2326 { echo "$as_me:$LINENO: result: $AR" >&5 |
|
2327 echo "${ECHO_T}$AR" >&6; } |
|
2328 else |
|
2329 { echo "$as_me:$LINENO: result: no" >&5 |
|
2330 echo "${ECHO_T}no" >&6; } |
|
2331 fi |
|
2332 |
|
2333 |
|
2334 |
|
2335 if test "$AR" = "no"; then |
|
2336 { { echo "$as_me:$LINENO: error: ar not found in PATH" >&5 |
|
2337 echo "$as_me: error: ar not found in PATH" >&2;} |
|
2338 { (exit 1); exit 1; }; } |
|
2339 fi |
|
2340 |
|
2341 # Extract the first word of "perl", so it can be a program name with args. |
|
2342 set dummy perl; ac_word=$2 |
|
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2345 if test "${ac_cv_prog_PERL+set}" = set; then |
|
2346 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2347 else |
|
2348 if test -n "$PERL"; then |
|
2349 ac_cv_prog_PERL="$PERL" # Let the user override the test. |
|
2350 else |
|
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2352 for as_dir in $PATH |
|
2353 do |
|
2354 IFS=$as_save_IFS |
|
2355 test -z "$as_dir" && as_dir=. |
|
2356 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2358 ac_cv_prog_PERL="perl" |
|
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2360 break 2 |
|
2361 fi |
|
2362 done |
|
2363 done |
|
2364 IFS=$as_save_IFS |
|
2365 |
|
2366 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no" |
|
2367 fi |
|
2368 fi |
|
2369 PERL=$ac_cv_prog_PERL |
|
2370 if test -n "$PERL"; then |
|
2371 { echo "$as_me:$LINENO: result: $PERL" >&5 |
|
2372 echo "${ECHO_T}$PERL" >&6; } |
|
2373 else |
|
2374 { echo "$as_me:$LINENO: result: no" >&5 |
|
2375 echo "${ECHO_T}no" >&6; } |
|
2376 fi |
|
2377 |
|
2378 |
|
2379 |
|
2380 ac_ext=c |
|
2381 ac_cpp='$CPP $CPPFLAGS' |
|
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2385 if test -n "$ac_tool_prefix"; then |
|
2386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
2387 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2390 if test "${ac_cv_prog_CC+set}" = set; then |
|
2391 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2392 else |
|
2393 if test -n "$CC"; then |
|
2394 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2395 else |
|
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2397 for as_dir in $PATH |
|
2398 do |
|
2399 IFS=$as_save_IFS |
|
2400 test -z "$as_dir" && as_dir=. |
|
2401 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2403 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2405 break 2 |
|
2406 fi |
|
2407 done |
|
2408 done |
|
2409 IFS=$as_save_IFS |
|
2410 |
|
2411 fi |
|
2412 fi |
|
2413 CC=$ac_cv_prog_CC |
|
2414 if test -n "$CC"; then |
|
2415 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2416 echo "${ECHO_T}$CC" >&6; } |
|
2417 else |
|
2418 { echo "$as_me:$LINENO: result: no" >&5 |
|
2419 echo "${ECHO_T}no" >&6; } |
|
2420 fi |
|
2421 |
|
2422 |
|
2423 fi |
|
2424 if test -z "$ac_cv_prog_CC"; then |
|
2425 ac_ct_CC=$CC |
|
2426 # Extract the first word of "gcc", so it can be a program name with args. |
|
2427 set dummy gcc; ac_word=$2 |
|
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2431 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2432 else |
|
2433 if test -n "$ac_ct_CC"; then |
|
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2435 else |
|
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2437 for as_dir in $PATH |
|
2438 do |
|
2439 IFS=$as_save_IFS |
|
2440 test -z "$as_dir" && as_dir=. |
|
2441 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2443 ac_cv_prog_ac_ct_CC="gcc" |
|
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2445 break 2 |
|
2446 fi |
|
2447 done |
|
2448 done |
|
2449 IFS=$as_save_IFS |
|
2450 |
|
2451 fi |
|
2452 fi |
|
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2454 if test -n "$ac_ct_CC"; then |
|
2455 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2456 echo "${ECHO_T}$ac_ct_CC" >&6; } |
|
2457 else |
|
2458 { echo "$as_me:$LINENO: result: no" >&5 |
|
2459 echo "${ECHO_T}no" >&6; } |
|
2460 fi |
|
2461 |
|
2462 if test "x$ac_ct_CC" = x; then |
|
2463 CC="" |
|
2464 else |
|
2465 case $cross_compiling:$ac_tool_warned in |
|
2466 yes:) |
|
2467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2468 whose name does not start with the host triplet. If you think this |
|
2469 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2471 whose name does not start with the host triplet. If you think this |
|
2472 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2473 ac_tool_warned=yes ;; |
|
2474 esac |
|
2475 CC=$ac_ct_CC |
|
2476 fi |
|
2477 else |
|
2478 CC="$ac_cv_prog_CC" |
|
2479 fi |
|
2480 |
|
2481 if test -z "$CC"; then |
|
2482 if test -n "$ac_tool_prefix"; then |
|
2483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
2484 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2487 if test "${ac_cv_prog_CC+set}" = set; then |
|
2488 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2489 else |
|
2490 if test -n "$CC"; then |
|
2491 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2492 else |
|
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2494 for as_dir in $PATH |
|
2495 do |
|
2496 IFS=$as_save_IFS |
|
2497 test -z "$as_dir" && as_dir=. |
|
2498 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2500 ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2502 break 2 |
|
2503 fi |
|
2504 done |
|
2505 done |
|
2506 IFS=$as_save_IFS |
|
2507 |
|
2508 fi |
|
2509 fi |
|
2510 CC=$ac_cv_prog_CC |
|
2511 if test -n "$CC"; then |
|
2512 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2513 echo "${ECHO_T}$CC" >&6; } |
|
2514 else |
|
2515 { echo "$as_me:$LINENO: result: no" >&5 |
|
2516 echo "${ECHO_T}no" >&6; } |
|
2517 fi |
|
2518 |
|
2519 |
|
2520 fi |
|
2521 fi |
|
2522 if test -z "$CC"; then |
|
2523 # Extract the first word of "cc", so it can be a program name with args. |
|
2524 set dummy cc; ac_word=$2 |
|
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2527 if test "${ac_cv_prog_CC+set}" = set; then |
|
2528 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2529 else |
|
2530 if test -n "$CC"; then |
|
2531 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2532 else |
|
2533 ac_prog_rejected=no |
|
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2535 for as_dir in $PATH |
|
2536 do |
|
2537 IFS=$as_save_IFS |
|
2538 test -z "$as_dir" && as_dir=. |
|
2539 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
2542 ac_prog_rejected=yes |
|
2543 continue |
|
2544 fi |
|
2545 ac_cv_prog_CC="cc" |
|
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2547 break 2 |
|
2548 fi |
|
2549 done |
|
2550 done |
|
2551 IFS=$as_save_IFS |
|
2552 |
|
2553 if test $ac_prog_rejected = yes; then |
|
2554 # We found a bogon in the path, so make sure we never use it. |
|
2555 set dummy $ac_cv_prog_CC |
|
2556 shift |
|
2557 if test $# != 0; then |
|
2558 # We chose a different compiler from the bogus one. |
|
2559 # However, it has the same basename, so the bogon will be chosen |
|
2560 # first if we set CC to just the basename; use the full file name. |
|
2561 shift |
|
2562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
2563 fi |
|
2564 fi |
|
2565 fi |
|
2566 fi |
|
2567 CC=$ac_cv_prog_CC |
|
2568 if test -n "$CC"; then |
|
2569 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2570 echo "${ECHO_T}$CC" >&6; } |
|
2571 else |
|
2572 { echo "$as_me:$LINENO: result: no" >&5 |
|
2573 echo "${ECHO_T}no" >&6; } |
|
2574 fi |
|
2575 |
|
2576 |
|
2577 fi |
|
2578 if test -z "$CC"; then |
|
2579 if test -n "$ac_tool_prefix"; then |
|
2580 for ac_prog in cl.exe |
|
2581 do |
|
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2586 if test "${ac_cv_prog_CC+set}" = set; then |
|
2587 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2588 else |
|
2589 if test -n "$CC"; then |
|
2590 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2591 else |
|
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2593 for as_dir in $PATH |
|
2594 do |
|
2595 IFS=$as_save_IFS |
|
2596 test -z "$as_dir" && as_dir=. |
|
2597 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2601 break 2 |
|
2602 fi |
|
2603 done |
|
2604 done |
|
2605 IFS=$as_save_IFS |
|
2606 |
|
2607 fi |
|
2608 fi |
|
2609 CC=$ac_cv_prog_CC |
|
2610 if test -n "$CC"; then |
|
2611 { echo "$as_me:$LINENO: result: $CC" >&5 |
|
2612 echo "${ECHO_T}$CC" >&6; } |
|
2613 else |
|
2614 { echo "$as_me:$LINENO: result: no" >&5 |
|
2615 echo "${ECHO_T}no" >&6; } |
|
2616 fi |
|
2617 |
|
2618 |
|
2619 test -n "$CC" && break |
|
2620 done |
|
2621 fi |
|
2622 if test -z "$CC"; then |
|
2623 ac_ct_CC=$CC |
|
2624 for ac_prog in cl.exe |
|
2625 do |
|
2626 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2627 set dummy $ac_prog; ac_word=$2 |
|
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
2630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2631 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2632 else |
|
2633 if test -n "$ac_ct_CC"; then |
|
2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2635 else |
|
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2637 for as_dir in $PATH |
|
2638 do |
|
2639 IFS=$as_save_IFS |
|
2640 test -z "$as_dir" && as_dir=. |
|
2641 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2643 ac_cv_prog_ac_ct_CC="$ac_prog" |
|
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2645 break 2 |
|
2646 fi |
|
2647 done |
|
2648 done |
|
2649 IFS=$as_save_IFS |
|
2650 |
|
2651 fi |
|
2652 fi |
|
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2654 if test -n "$ac_ct_CC"; then |
|
2655 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2656 echo "${ECHO_T}$ac_ct_CC" >&6; } |
|
2657 else |
|
2658 { echo "$as_me:$LINENO: result: no" >&5 |
|
2659 echo "${ECHO_T}no" >&6; } |
|
2660 fi |
|
2661 |
|
2662 |
|
2663 test -n "$ac_ct_CC" && break |
|
2664 done |
|
2665 |
|
2666 if test "x$ac_ct_CC" = x; then |
|
2667 CC="" |
|
2668 else |
|
2669 case $cross_compiling:$ac_tool_warned in |
|
2670 yes:) |
|
2671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
2672 whose name does not start with the host triplet. If you think this |
|
2673 configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
2674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
2675 whose name does not start with the host triplet. If you think this |
|
2676 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
2677 ac_tool_warned=yes ;; |
|
2678 esac |
|
2679 CC=$ac_ct_CC |
|
2680 fi |
|
2681 fi |
|
2682 |
|
2683 fi |
|
2684 |
|
2685 |
|
2686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
2687 See \`config.log' for more details." >&5 |
|
2688 echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
2689 See \`config.log' for more details." >&2;} |
|
2690 { (exit 1); exit 1; }; } |
|
2691 |
|
2692 # Provide some information about the compiler. |
|
2693 echo "$as_me:$LINENO: checking for C compiler version" >&5 |
|
2694 ac_compiler=`set X $ac_compile; echo $2` |
|
2695 { (ac_try="$ac_compiler --version >&5" |
|
2696 case "(($ac_try" in |
|
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2698 *) ac_try_echo=$ac_try;; |
|
2699 esac |
|
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2701 (eval "$ac_compiler --version >&5") 2>&5 |
|
2702 ac_status=$? |
|
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2704 (exit $ac_status); } |
|
2705 { (ac_try="$ac_compiler -v >&5" |
|
2706 case "(($ac_try" in |
|
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2708 *) ac_try_echo=$ac_try;; |
|
2709 esac |
|
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2711 (eval "$ac_compiler -v >&5") 2>&5 |
|
2712 ac_status=$? |
|
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2714 (exit $ac_status); } |
|
2715 { (ac_try="$ac_compiler -V >&5" |
|
2716 case "(($ac_try" in |
|
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2718 *) ac_try_echo=$ac_try;; |
|
2719 esac |
|
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2721 (eval "$ac_compiler -V >&5") 2>&5 |
|
2722 ac_status=$? |
|
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2724 (exit $ac_status); } |
|
2725 |
|
2726 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
2727 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
|
2728 if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
2729 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2730 else |
|
2731 cat >conftest.$ac_ext <<_ACEOF |
|
2732 /* confdefs.h. */ |
|
2733 _ACEOF |
|
2734 cat confdefs.h >>conftest.$ac_ext |
|
2735 cat >>conftest.$ac_ext <<_ACEOF |
|
2736 /* end confdefs.h. */ |
|
2737 |
|
2738 int |
|
2739 main () |
|
2740 { |
|
2741 #ifndef __GNUC__ |
|
2742 choke me |
|
2743 #endif |
|
2744 |
|
2745 ; |
|
2746 return 0; |
|
2747 } |
|
2748 _ACEOF |
|
2749 rm -f conftest.$ac_objext |
|
2750 if { (ac_try="$ac_compile" |
|
2751 case "(($ac_try" in |
|
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2753 *) ac_try_echo=$ac_try;; |
|
2754 esac |
|
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2756 (eval "$ac_compile") 2>conftest.er1 |
|
2757 ac_status=$? |
|
2758 grep -v '^ *+' conftest.er1 >conftest.err |
|
2759 rm -f conftest.er1 |
|
2760 cat conftest.err >&5 |
|
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2762 (exit $ac_status); } && { |
|
2763 test -z "$ac_c_werror_flag" || |
|
2764 test ! -s conftest.err |
|
2765 } && test -s conftest.$ac_objext; then |
|
2766 ac_compiler_gnu=yes |
|
2767 else |
|
2768 echo "$as_me: failed program was:" >&5 |
|
2769 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2770 |
|
2771 ac_compiler_gnu=no |
|
2772 fi |
|
2773 |
|
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2775 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
2776 |
|
2777 fi |
|
2778 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
2779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
|
2780 GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
2781 ac_test_CFLAGS=${CFLAGS+set} |
|
2782 ac_save_CFLAGS=$CFLAGS |
|
2783 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
|
2785 if test "${ac_cv_prog_cc_g+set}" = set; then |
|
2786 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2787 else |
|
2788 ac_save_c_werror_flag=$ac_c_werror_flag |
|
2789 ac_c_werror_flag=yes |
|
2790 ac_cv_prog_cc_g=no |
|
2791 CFLAGS="-g" |
|
2792 cat >conftest.$ac_ext <<_ACEOF |
|
2793 /* confdefs.h. */ |
|
2794 _ACEOF |
|
2795 cat confdefs.h >>conftest.$ac_ext |
|
2796 cat >>conftest.$ac_ext <<_ACEOF |
|
2797 /* end confdefs.h. */ |
|
2798 |
|
2799 int |
|
2800 main () |
|
2801 { |
|
2802 |
|
2803 ; |
|
2804 return 0; |
|
2805 } |
|
2806 _ACEOF |
|
2807 rm -f conftest.$ac_objext |
|
2808 if { (ac_try="$ac_compile" |
|
2809 case "(($ac_try" in |
|
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2811 *) ac_try_echo=$ac_try;; |
|
2812 esac |
|
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2814 (eval "$ac_compile") 2>conftest.er1 |
|
2815 ac_status=$? |
|
2816 grep -v '^ *+' conftest.er1 >conftest.err |
|
2817 rm -f conftest.er1 |
|
2818 cat conftest.err >&5 |
|
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2820 (exit $ac_status); } && { |
|
2821 test -z "$ac_c_werror_flag" || |
|
2822 test ! -s conftest.err |
|
2823 } && test -s conftest.$ac_objext; then |
|
2824 ac_cv_prog_cc_g=yes |
|
2825 else |
|
2826 echo "$as_me: failed program was:" >&5 |
|
2827 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2828 |
|
2829 CFLAGS="" |
|
2830 cat >conftest.$ac_ext <<_ACEOF |
|
2831 /* confdefs.h. */ |
|
2832 _ACEOF |
|
2833 cat confdefs.h >>conftest.$ac_ext |
|
2834 cat >>conftest.$ac_ext <<_ACEOF |
|
2835 /* end confdefs.h. */ |
|
2836 |
|
2837 int |
|
2838 main () |
|
2839 { |
|
2840 |
|
2841 ; |
|
2842 return 0; |
|
2843 } |
|
2844 _ACEOF |
|
2845 rm -f conftest.$ac_objext |
|
2846 if { (ac_try="$ac_compile" |
|
2847 case "(($ac_try" in |
|
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
2849 *) ac_try_echo=$ac_try;; |
|
2850 esac |
|
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
2852 (eval "$ac_compile") 2>conftest.er1 |
|
2853 ac_status=$? |
|
2854 grep -v '^ *+' conftest.er1 >conftest.err |
|
2855 rm -f conftest.er1 |
|
2856 cat conftest.err >&5 |
|
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
2858 (exit $ac_status); } && { |
|
2859 test -z "$ac_c_werror_flag" || |
|
2860 test ! -s conftest.err |
|
2861 } && test -s conftest.$ac_objext; then |
|
2862 : |
|
2863 else |
|
2864 echo "$as_me: failed program was:" >&5 |
|
2865 sed 's/^/| /' conftest.$ac_ext >&5 |
|
2866 |
|
2867 ac_c_werror_flag=$ac_save_c_werror_flag |
|
2868 CFLAGS="-g" |
|
2869 cat >conftest.$ac_ext <<_ACEOF |
|
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 |
|
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 |
|
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 |
|
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 |
|
2907 fi |
|
2908 |
|
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2910 fi |
|
2911 |
|
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2913 fi |
|
2914 |
|
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2916 ac_c_werror_flag=$ac_save_c_werror_flag |
|
2917 fi |
|
2918 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
2919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
|
2920 if test "$ac_test_CFLAGS" = set; then |
|
2921 CFLAGS=$ac_save_CFLAGS |
|
2922 elif test $ac_cv_prog_cc_g = yes; then |
|
2923 if test "$GCC" = yes; then |
|
2924 CFLAGS="-g -O2" |
|
2925 else |
|
2926 CFLAGS="-g" |
|
2927 fi |
|
2928 else |
|
2929 if test "$GCC" = yes; then |
|
2930 CFLAGS="-O2" |
|
2931 else |
|
2932 CFLAGS= |
|
2933 fi |
|
2934 fi |
|
2935 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
|
2936 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
|
2937 if test "${ac_cv_prog_cc_c89+set}" = set; then |
|
2938 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
2939 else |
|
2940 ac_cv_prog_cc_c89=no |
|
2941 ac_save_CC=$CC |
|
2942 cat >conftest.$ac_ext <<_ACEOF |
|
2943 /* confdefs.h. */ |
|
2944 _ACEOF |
|
2945 cat confdefs.h >>conftest.$ac_ext |
|
2946 cat >>conftest.$ac_ext <<_ACEOF |
|
2947 /* end confdefs.h. */ |
|
2948 #include <stdarg.h> |
|
2949 #include <stdio.h> |
|
2950 #include <sys/types.h> |
|
2951 #include <sys/stat.h> |
|
2952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
2953 struct buf { int x; }; |
|
2954 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
2955 static char *e (p, i) |
|
2956 char **p; |
|
2957 int i; |
|
2958 { |
|
2959 return p[i]; |
|
2960 } |
|
2961 static char *f (char * (*g) (char **, int), char **p, ...) |
|
2962 { |
|
2963 char *s; |
|
2964 va_list v; |
|
2965 va_start (v,p); |
|
2966 s = g (p, va_arg (v,int)); |
|
2967 va_end (v); |
|
2968 return s; |
|
2969 } |
|
2970 |
|
2971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
2972 function prototypes and stuff, but not '\xHH' hex character constants. |
|
2973 These don't provoke an error unfortunately, instead are silently treated |
|
2974 as 'x'. The following induces an error, until -std is added to get |
|
2975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
2976 array size at least. It's necessary to write '\x00'==0 to get something |
|
2977 that's true only with -std. */ |
|
2978 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
2979 |
|
2980 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
2981 inside strings and character constants. */ |
|
2982 #define FOO(x) 'x' |
|
2983 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
2984 |
|
2985 int test (int i, double x); |
|
2986 struct s1 {int (*f) (int a);}; |
|
2987 struct s2 {int (*f) (double a);}; |
|
2988 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
2989 int argc; |
|
2990 char **argv; |
|
2991 int |
|
2992 main () |
|
2993 { |
|
2994 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
2995 ; |
|
2996 return 0; |
|
2997 } |
|
2998 _ACEOF |
|
2999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3000 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3001 do |
|
3002 CC="$ac_save_CC $ac_arg" |
|
3003 rm -f conftest.$ac_objext |
|
3004 if { (ac_try="$ac_compile" |
|
3005 case "(($ac_try" in |
|
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3007 *) ac_try_echo=$ac_try;; |
|
3008 esac |
|
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3010 (eval "$ac_compile") 2>conftest.er1 |
|
3011 ac_status=$? |
|
3012 grep -v '^ *+' conftest.er1 >conftest.err |
|
3013 rm -f conftest.er1 |
|
3014 cat conftest.err >&5 |
|
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3016 (exit $ac_status); } && { |
|
3017 test -z "$ac_c_werror_flag" || |
|
3018 test ! -s conftest.err |
|
3019 } && test -s conftest.$ac_objext; then |
|
3020 ac_cv_prog_cc_c89=$ac_arg |
|
3021 else |
|
3022 echo "$as_me: failed program was:" >&5 |
|
3023 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3024 |
|
3025 |
|
3026 fi |
|
3027 |
|
3028 rm -f core conftest.err conftest.$ac_objext |
|
3029 test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3030 done |
|
3031 rm -f conftest.$ac_ext |
|
3032 CC=$ac_save_CC |
|
3033 |
|
3034 fi |
|
3035 # AC_CACHE_VAL |
|
3036 case "x$ac_cv_prog_cc_c89" in |
|
3037 x) |
|
3038 { echo "$as_me:$LINENO: result: none needed" >&5 |
|
3039 echo "${ECHO_T}none needed" >&6; } ;; |
|
3040 xno) |
|
3041 { echo "$as_me:$LINENO: result: unsupported" >&5 |
|
3042 echo "${ECHO_T}unsupported" >&6; } ;; |
|
3043 *) |
|
3044 CC="$CC $ac_cv_prog_cc_c89" |
|
3045 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
|
3046 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
|
3047 esac |
|
3048 |
|
3049 |
|
3050 ac_ext=c |
|
3051 ac_cpp='$CPP $CPPFLAGS' |
|
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3055 |
|
3056 |
|
3057 |
|
3058 |
|
3059 for ac_func in initgroups setgroups |
|
3060 do |
|
3061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
3062 { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
3063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
3064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
3065 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
3066 else |
|
3067 cat >conftest.$ac_ext <<_ACEOF |
|
3068 /* confdefs.h. */ |
|
3069 _ACEOF |
|
3070 cat confdefs.h >>conftest.$ac_ext |
|
3071 cat >>conftest.$ac_ext <<_ACEOF |
|
3072 /* end confdefs.h. */ |
|
3073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
3074 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
3075 #define $ac_func innocuous_$ac_func |
|
3076 |
|
3077 /* System header to define __stub macros and hopefully few prototypes, |
|
3078 which can conflict with char $ac_func (); below. |
|
3079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3080 <limits.h> exists even on freestanding compilers. */ |
|
3081 |
|
3082 #ifdef __STDC__ |
|
3083 # include <limits.h> |
|
3084 #else |
|
3085 # include <assert.h> |
|
3086 #endif |
|
3087 |
|
3088 #undef $ac_func |
|
3089 |
|
3090 /* Override any GCC internal prototype to avoid an error. |
|
3091 Use char because int might match the return type of a GCC |
|
3092 builtin and then its argument prototype would still apply. */ |
|
3093 #ifdef __cplusplus |
|
3094 extern "C" |
|
3095 #endif |
|
3096 char $ac_func (); |
|
3097 /* The GNU C library defines this for functions which it implements |
|
3098 to always fail with ENOSYS. Some functions are actually named |
|
3099 something starting with __ and the normal name is an alias. */ |
|
3100 #if defined __stub_$ac_func || defined __stub___$ac_func |
|
3101 choke me |
|
3102 #endif |
|
3103 |
|
3104 int |
|
3105 main () |
|
3106 { |
|
3107 return $ac_func (); |
|
3108 ; |
|
3109 return 0; |
|
3110 } |
|
3111 _ACEOF |
|
3112 rm -f conftest.$ac_objext conftest$ac_exeext |
|
3113 if { (ac_try="$ac_link" |
|
3114 case "(($ac_try" in |
|
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3116 *) ac_try_echo=$ac_try;; |
|
3117 esac |
|
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
3119 (eval "$ac_link") 2>conftest.er1 |
|
3120 ac_status=$? |
|
3121 grep -v '^ *+' conftest.er1 >conftest.err |
|
3122 rm -f conftest.er1 |
|
3123 cat conftest.err >&5 |
|
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3125 (exit $ac_status); } && { |
|
3126 test -z "$ac_c_werror_flag" || |
|
3127 test ! -s conftest.err |
|
3128 } && test -s conftest$ac_exeext && |
|
3129 $as_test_x conftest$ac_exeext; then |
|
3130 eval "$as_ac_var=yes" |
|
3131 else |
|
3132 echo "$as_me: failed program was:" >&5 |
|
3133 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3134 |
|
3135 eval "$as_ac_var=no" |
|
3136 fi |
|
3137 |
|
3138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
3139 conftest$ac_exeext conftest.$ac_ext |
|
3140 fi |
|
3141 ac_res=`eval echo '${'$as_ac_var'}'` |
|
3142 { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
3143 echo "${ECHO_T}$ac_res" >&6; } |
|
3144 if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
3145 cat >>confdefs.h <<_ACEOF |
|
3146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
3147 _ACEOF |
|
3148 |
|
3149 fi |
|
3150 done |
|
3151 |
|
3152 |
|
3153 if test "$PERL" = "no"; then |
|
3154 { { echo "$as_me:$LINENO: error: perl not found in PATH" >&5 |
|
3155 echo "$as_me: error: perl not found in PATH" >&2;} |
|
3156 { (exit 1); exit 1; }; } |
|
3157 fi |
|
3158 |
|
3159 { echo "$as_me:$LINENO: checking OS" >&5 |
|
3160 echo $ECHO_N "checking OS... $ECHO_C" >&6; } |
|
3161 |
|
3162 os="`uname`" |
|
3163 |
|
3164 case $os in |
|
3165 Linux*) |
|
3166 { echo "$as_me:$LINENO: result: Linux" >&5 |
|
3167 echo "${ECHO_T}Linux" >&6; } |
|
3168 mandatory=yes |
|
3169 ;; |
|
3170 SunOS*) |
|
3171 { echo "$as_me:$LINENO: result: Solaris" >&5 |
|
3172 echo "${ECHO_T}Solaris" >&6; } |
|
3173 mandatory=yes |
|
3174 OSLIBS="-lsocket -lresolv -lnsl" |
|
3175 ;; |
|
3176 *) |
|
3177 { echo "$as_me:$LINENO: result: $os" >&5 |
|
3178 echo "${ECHO_T}$os" >&6; } |
|
3179 mandatory=no |
|
3180 ;; |
|
3181 esac |
|
3182 |
|
3183 { echo "$as_me:$LINENO: checking for mandatory locking support" >&5 |
|
3184 echo $ECHO_N "checking for mandatory locking support... $ECHO_C" >&6; } |
|
3185 |
|
3186 if test "$enable_locking" = "no" |
|
3187 then |
|
3188 { echo "$as_me:$LINENO: result: disabled, no dynamic scanning!" >&5 |
|
3189 echo "${ECHO_T}disabled, no dynamic scanning!" >&6; } |
|
3190 |
|
3191 cat >>confdefs.h <<\_ACEOF |
|
3192 #define NOMAND 1 |
|
3193 _ACEOF |
|
3194 |
|
3195 else |
|
3196 if test "$mandatory" = "yes" |
|
3197 then |
|
3198 { echo "$as_me:$LINENO: result: OS supported" >&5 |
|
3199 echo "${ECHO_T}OS supported" >&6; } |
|
3200 else |
|
3201 { echo "$as_me:$LINENO: result: OS not supported" >&5 |
|
3202 echo "${ECHO_T}OS not supported" >&6; } |
|
3203 |
|
3204 echo "" |
|
3205 echo " Mandatory locking only works on Linux and Solaris." |
|
3206 echo "" |
|
3207 echo " You are running $os, so you must rerun configure" |
|
3208 echo " with --disable-locking option." |
|
3209 echo "" |
|
3210 echo " This means you cannot use dynamic scanning features" |
|
3211 echo " like KEEPBACKBUFFER. Everything is downloaded fully" |
|
3212 echo " and only then sent to client." |
|
3213 echo "" |
|
3214 |
|
3215 exit 1 |
|
3216 fi |
|
3217 fi |
|
3218 |
|
3219 if test "$enable_ssl_tunnel" = "yes" |
|
3220 then |
|
3221 cat >>confdefs.h <<\_ACEOF |
|
3222 #define SSLTUNNEL 1 |
|
3223 _ACEOF |
|
3224 |
|
3225 fi |
|
3226 |
|
3227 { echo "$as_me:$LINENO: checking for ClamAV scanner library" >&5 |
|
3228 echo $ECHO_N "checking for ClamAV scanner library... $ECHO_C" >&6; } |
|
3229 |
|
3230 if test "$enable_clamav" = "yes" |
|
3231 then |
|
3232 clamprefix="`clamav-config --prefix 2>/dev/null`" |
|
3233 clamversion="`clamav-config --version 2>/dev/null`" |
|
3234 |
|
3235 if test "x$clamprefix" = "x" |
|
3236 then |
|
3237 { echo "$as_me:$LINENO: result: clamav-config not found" >&5 |
|
3238 echo "${ECHO_T}clamav-config not found" >&6; } |
|
3239 |
|
3240 echo "" |
|
3241 echo " Error finding ClamAV installation!" |
|
3242 echo " Add ClamAV binaries path to PATH and run configure again." |
|
3243 echo "" |
|
3244 echo " To disable ClamAV library support, use --disable-clamav." |
|
3245 echo "" |
|
3246 |
|
3247 exit 1 |
|
3248 fi |
|
3249 |
|
3250 for cl in `clamav-config --cflags 2>/dev/null`; do |
|
3251 if test "x`echo $cl | perl -ne 'print if (/^-I/)' 2>/dev/null`" != "x" |
|
3252 then |
|
3253 CFLAGS="$CFLAGS $cl" |
|
3254 fi |
|
3255 done |
|
3256 |
|
3257 for cl in `clamav-config --libs 2>/dev/null`; do |
|
3258 if test "x`echo $cl | perl -ne 'print if (/(^-L|thread|c_r)/)' 2>/dev/null`" != "x" |
|
3259 then |
|
3260 LDFLAGS="$LDFLAGS $cl" |
|
3261 fi |
|
3262 done |
|
3263 LDFLAGS="$LDFLAGS -lclamav" |
|
3264 |
|
3265 SCANNEROBJECTS="clamlibscanner.o" |
|
3266 cat >>confdefs.h <<\_ACEOF |
|
3267 #define USECLAMLIB 1 |
|
3268 _ACEOF |
|
3269 |
|
3270 |
|
3271 { echo "$as_me:$LINENO: result: found $clamversion in $clamprefix" >&5 |
|
3272 echo "${ECHO_T}found $clamversion in $clamprefix" >&6; } |
|
3273 else |
|
3274 { echo "$as_me:$LINENO: result: disabled :-(" >&5 |
|
3275 echo "${ECHO_T}disabled :-(" >&6; } |
|
3276 fi |
|
3277 |
|
3278 { echo "$as_me:$LINENO: checking for Trend Micro scanner" >&5 |
|
3279 echo $ECHO_N "checking for Trend Micro scanner... $ECHO_C" >&6; } |
|
3280 |
|
3281 if test "$enable_trophie" = "yes" |
|
3282 then |
|
3283 if test -f "/etc/iscan/libvsapi.so" |
|
3284 then |
|
3285 { echo "$as_me:$LINENO: result: /etc/iscan/libvsapi.so found" >&5 |
|
3286 echo "${ECHO_T}/etc/iscan/libvsapi.so found" >&6; } |
|
3287 |
|
3288 SCANNEROBJECTS="$SCANNEROBJECTS trophiescanner.o" |
|
3289 LDFLAGS="-L/etc/iscan -lvsapi $LDFLAGS" |
|
3290 |
|
3291 cat >>confdefs.h <<\_ACEOF |
|
3292 #define USETROPHIE 1 |
|
3293 _ACEOF |
|
3294 |
|
3295 else |
|
3296 { echo "$as_me:$LINENO: result: /etc/iscan/libvsapi.so not found, disabled" >&5 |
|
3297 echo "${ECHO_T}/etc/iscan/libvsapi.so not found, disabled" >&6; } |
|
3298 fi |
|
3299 else |
|
3300 { echo "$as_me:$LINENO: result: disabled" >&5 |
|
3301 echo "${ECHO_T}disabled" >&6; } |
|
3302 fi |
|
3303 |
|
3304 LDFLAGS="$LDFLAGS $OSLIBS" |
|
3305 CFLAGS="$CFLAGS -Wall -g -O2" |
|
3306 |
|
3307 test "$prefix" = "NONE" && prefix=/usr/local |
|
3308 test "$localstatedir" = '${prefix}/var' && localstatedir=/var || localstatedir=$localstatedir |
|
3309 sysconfdir=`eval echo $sysconfdir | $PERL -pe 's#/havp/?$##'` |
|
3310 localstatedir=`eval echo $localstatedir` |
|
3311 cat >>confdefs.h <<_ACEOF |
|
3312 #define CONFIGFILE "$sysconfdir/havp/havp.config" |
|
3313 _ACEOF |
|
3314 |
|
3315 cat >>confdefs.h <<_ACEOF |
|
3316 #define WHITELISTFILE "$sysconfdir/havp/whitelist" |
|
3317 _ACEOF |
|
3318 |
|
3319 cat >>confdefs.h <<_ACEOF |
|
3320 #define BLACKLISTFILE "$sysconfdir/havp/blacklist" |
|
3321 _ACEOF |
|
3322 |
|
3323 cat >>confdefs.h <<_ACEOF |
|
3324 #define TEMPLATEPATH "$sysconfdir/havp/templates/en" |
|
3325 _ACEOF |
|
3326 |
|
3327 cat >>confdefs.h <<_ACEOF |
|
3328 #define ACCESSLOG "$localstatedir/log/havp/access.log" |
|
3329 _ACEOF |
|
3330 |
|
3331 cat >>confdefs.h <<_ACEOF |
|
3332 #define ERRORLOG "$localstatedir/log/havp/error.log" |
|
3333 _ACEOF |
|
3334 |
|
3335 cat >>confdefs.h <<_ACEOF |
|
3336 #define SCANTEMPFILE "$localstatedir/tmp/havp/havp-XXXXXX" |
|
3337 _ACEOF |
|
3338 |
|
3339 cat >>confdefs.h <<_ACEOF |
|
3340 #define PIDFILE "$localstatedir/run/havp/havp.pid" |
|
3341 _ACEOF |
|
3342 |
|
3343 |
|
3344 |
|
3345 |
|
3346 |
|
3347 ac_config_files="$ac_config_files Makefile havp/Makefile havp/scanners/Makefile etc/havp/havp.config" |
|
3348 |
|
3349 cat >confcache <<\_ACEOF |
|
3350 # This file is a shell script that caches the results of configure |
|
3351 # tests run on this system so they can be shared between configure |
|
3352 # scripts and configure runs, see configure's option --config-cache. |
|
3353 # It is not useful on other systems. If it contains results you don't |
|
3354 # want to keep, you may remove or edit it. |
|
3355 # |
|
3356 # config.status only pays attention to the cache file if you give it |
|
3357 # the --recheck option to rerun configure. |
|
3358 # |
|
3359 # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
3360 # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
3361 # following values. |
|
3362 |
|
3363 _ACEOF |
|
3364 |
|
3365 # The following way of writing the cache mishandles newlines in values, |
|
3366 # but we know of no workaround that is simple, portable, and efficient. |
|
3367 # So, we kill variables containing newlines. |
|
3368 # Ultrix sh set writes to stderr and can't be redirected directly, |
|
3369 # and sets the high bit in the cache file unless we assign to the vars. |
|
3370 ( |
|
3371 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
3372 eval ac_val=\$$ac_var |
|
3373 case $ac_val in #( |
|
3374 *${as_nl}*) |
|
3375 case $ac_var in #( |
|
3376 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
|
3377 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
|
3378 esac |
|
3379 case $ac_var in #( |
|
3380 _ | IFS | as_nl) ;; #( |
|
3381 *) $as_unset $ac_var ;; |
|
3382 esac ;; |
|
3383 esac |
|
3384 done |
|
3385 |
|
3386 (set) 2>&1 | |
|
3387 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
3388 *${as_nl}ac_space=\ *) |
|
3389 # `set' does not quote correctly, so add quotes (double-quote |
|
3390 # substitution turns \\\\ into \\, and sed turns \\ into \). |
|
3391 sed -n \ |
|
3392 "s/'/'\\\\''/g; |
|
3393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
3394 ;; #( |
|
3395 *) |
|
3396 # `set' quotes correctly as required by POSIX, so do not add quotes. |
|
3397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
3398 ;; |
|
3399 esac | |
|
3400 sort |
|
3401 ) | |
|
3402 sed ' |
|
3403 /^ac_cv_env_/b end |
|
3404 t clear |
|
3405 :clear |
|
3406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
3407 t end |
|
3408 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
3409 :end' >>confcache |
|
3410 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
3411 if test -w "$cache_file"; then |
|
3412 test "x$cache_file" != "x/dev/null" && |
|
3413 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
|
3414 echo "$as_me: updating cache $cache_file" >&6;} |
|
3415 cat confcache >$cache_file |
|
3416 else |
|
3417 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
|
3418 echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
3419 fi |
|
3420 fi |
|
3421 rm -f confcache |
|
3422 |
|
3423 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
3424 # Let make expand exec_prefix. |
|
3425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
3426 |
|
3427 DEFS=-DHAVE_CONFIG_H |
|
3428 |
|
3429 ac_libobjs= |
|
3430 ac_ltlibobjs= |
|
3431 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
3432 # 1. Remove the extension, and $U if already installed. |
|
3433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
3434 ac_i=`echo "$ac_i" | sed "$ac_script"` |
|
3435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
3436 # will be set to the directory where LIBOBJS objects are built. |
|
3437 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
3438 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
|
3439 done |
|
3440 LIBOBJS=$ac_libobjs |
|
3441 |
|
3442 LTLIBOBJS=$ac_ltlibobjs |
|
3443 |
|
3444 |
|
3445 |
|
3446 : ${CONFIG_STATUS=./config.status} |
|
3447 ac_clean_files_save=$ac_clean_files |
|
3448 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
3449 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
3450 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
3451 cat >$CONFIG_STATUS <<_ACEOF |
|
3452 #! $SHELL |
|
3453 # Generated by $as_me. |
|
3454 # Run this file to recreate the current configuration. |
|
3455 # Compiler output produced by configure, useful for debugging |
|
3456 # configure, is in config.log if it exists. |
|
3457 |
|
3458 debug=false |
|
3459 ac_cs_recheck=false |
|
3460 ac_cs_silent=false |
|
3461 SHELL=\${CONFIG_SHELL-$SHELL} |
|
3462 _ACEOF |
|
3463 |
|
3464 cat >>$CONFIG_STATUS <<\_ACEOF |
|
3465 ## --------------------- ## |
|
3466 ## M4sh Initialization. ## |
|
3467 ## --------------------- ## |
|
3468 |
|
3469 # Be more Bourne compatible |
|
3470 DUALCASE=1; export DUALCASE # for MKS sh |
|
3471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
3472 emulate sh |
|
3473 NULLCMD=: |
|
3474 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
3475 # is contrary to our usage. Disable this feature. |
|
3476 alias -g '${1+"$@"}'='"$@"' |
|
3477 setopt NO_GLOB_SUBST |
|
3478 else |
|
3479 case `(set -o) 2>/dev/null` in |
|
3480 *posix*) set -o posix ;; |
|
3481 esac |
|
3482 |
|
3483 fi |
|
3484 |
|
3485 |
|
3486 |
|
3487 |
|
3488 # PATH needs CR |
|
3489 # Avoid depending upon Character Ranges. |
|
3490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
3491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
3492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
3493 as_cr_digits='0123456789' |
|
3494 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
3495 |
|
3496 # The user is always right. |
|
3497 if test "${PATH_SEPARATOR+set}" != set; then |
|
3498 echo "#! /bin/sh" >conf$$.sh |
|
3499 echo "exit 0" >>conf$$.sh |
|
3500 chmod +x conf$$.sh |
|
3501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
3502 PATH_SEPARATOR=';' |
|
3503 else |
|
3504 PATH_SEPARATOR=: |
|
3505 fi |
|
3506 rm -f conf$$.sh |
|
3507 fi |
|
3508 |
|
3509 # Support unset when possible. |
|
3510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
3511 as_unset=unset |
|
3512 else |
|
3513 as_unset=false |
|
3514 fi |
|
3515 |
|
3516 |
|
3517 # IFS |
|
3518 # We need space, tab and new line, in precisely that order. Quoting is |
|
3519 # there to prevent editors from complaining about space-tab. |
|
3520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
3521 # splitting by setting IFS to empty value.) |
|
3522 as_nl=' |
|
3523 ' |
|
3524 IFS=" "" $as_nl" |
|
3525 |
|
3526 # Find who we are. Look in the path if we contain no directory separator. |
|
3527 case $0 in |
|
3528 *[\\/]* ) as_myself=$0 ;; |
|
3529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3530 for as_dir in $PATH |
|
3531 do |
|
3532 IFS=$as_save_IFS |
|
3533 test -z "$as_dir" && as_dir=. |
|
3534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
3535 done |
|
3536 IFS=$as_save_IFS |
|
3537 |
|
3538 ;; |
|
3539 esac |
|
3540 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
3541 # in which case we are not to be found in the path. |
|
3542 if test "x$as_myself" = x; then |
|
3543 as_myself=$0 |
|
3544 fi |
|
3545 if test ! -f "$as_myself"; then |
|
3546 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
3547 { (exit 1); exit 1; } |
|
3548 fi |
|
3549 |
|
3550 # Work around bugs in pre-3.0 UWIN ksh. |
|
3551 for as_var in ENV MAIL MAILPATH |
|
3552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
3553 done |
|
3554 PS1='$ ' |
|
3555 PS2='> ' |
|
3556 PS4='+ ' |
|
3557 |
|
3558 # NLS nuisances. |
|
3559 for as_var in \ |
|
3560 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
3561 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
3562 LC_TELEPHONE LC_TIME |
|
3563 do |
|
3564 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
3565 eval $as_var=C; export $as_var |
|
3566 else |
|
3567 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
3568 fi |
|
3569 done |
|
3570 |
|
3571 # Required to use basename. |
|
3572 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
3573 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
3574 as_expr=expr |
|
3575 else |
|
3576 as_expr=false |
|
3577 fi |
|
3578 |
|
3579 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
3580 as_basename=basename |
|
3581 else |
|
3582 as_basename=false |
|
3583 fi |
|
3584 |
|
3585 |
|
3586 # Name of the executable. |
|
3587 as_me=`$as_basename -- "$0" || |
|
3588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
3589 X"$0" : 'X\(//\)$' \| \ |
|
3590 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
3591 echo X/"$0" | |
|
3592 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
3593 s//\1/ |
|
3594 q |
|
3595 } |
|
3596 /^X\/\(\/\/\)$/{ |
|
3597 s//\1/ |
|
3598 q |
|
3599 } |
|
3600 /^X\/\(\/\).*/{ |
|
3601 s//\1/ |
|
3602 q |
|
3603 } |
|
3604 s/.*/./; q'` |
|
3605 |
|
3606 # CDPATH. |
|
3607 $as_unset CDPATH |
|
3608 |
|
3609 |
|
3610 |
|
3611 as_lineno_1=$LINENO |
|
3612 as_lineno_2=$LINENO |
|
3613 test "x$as_lineno_1" != "x$as_lineno_2" && |
|
3614 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
3615 |
|
3616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
3617 # uniformly replaced by the line number. The first 'sed' inserts a |
|
3618 # line-number line after each line using $LINENO; the second 'sed' |
|
3619 # does the real work. The second script uses 'N' to pair each |
|
3620 # line-number line with the line containing $LINENO, and appends |
|
3621 # trailing '-' during substitution so that $LINENO is not a special |
|
3622 # case at line end. |
|
3623 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
3624 # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
3625 # E. McMahon (1931-1989) for sed's syntax. :-) |
|
3626 sed -n ' |
|
3627 p |
|
3628 /[$]LINENO/= |
|
3629 ' <$as_myself | |
|
3630 sed ' |
|
3631 s/[$]LINENO.*/&-/ |
|
3632 t lineno |
|
3633 b |
|
3634 :lineno |
|
3635 N |
|
3636 :loop |
|
3637 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
3638 t loop |
|
3639 s/-\n.*// |
|
3640 ' >$as_me.lineno && |
|
3641 chmod +x "$as_me.lineno" || |
|
3642 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
3643 { (exit 1); exit 1; }; } |
|
3644 |
|
3645 # Don't try to exec as it changes $[0], causing all sort of problems |
|
3646 # (the dirname of $[0] is not the place where we might find the |
|
3647 # original and so on. Autoconf is especially sensitive to this). |
|
3648 . "./$as_me.lineno" |
|
3649 # Exit status is that of the last command. |
|
3650 exit |
|
3651 } |
|
3652 |
|
3653 |
|
3654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
3655 as_dirname=dirname |
|
3656 else |
|
3657 as_dirname=false |
|
3658 fi |
|
3659 |
|
3660 ECHO_C= ECHO_N= ECHO_T= |
|
3661 case `echo -n x` in |
|
3662 -n*) |
|
3663 case `echo 'x\c'` in |
|
3664 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
3665 *) ECHO_C='\c';; |
|
3666 esac;; |
|
3667 *) |
|
3668 ECHO_N='-n';; |
|
3669 esac |
|
3670 |
|
3671 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
3672 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
3673 as_expr=expr |
|
3674 else |
|
3675 as_expr=false |
|
3676 fi |
|
3677 |
|
3678 rm -f conf$$ conf$$.exe conf$$.file |
|
3679 if test -d conf$$.dir; then |
|
3680 rm -f conf$$.dir/conf$$.file |
|
3681 else |
|
3682 rm -f conf$$.dir |
|
3683 mkdir conf$$.dir |
|
3684 fi |
|
3685 echo >conf$$.file |
|
3686 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
3687 as_ln_s='ln -s' |
|
3688 # ... but there are two gotchas: |
|
3689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
3690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
3691 # In both cases, we have to default to `cp -p'. |
|
3692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
3693 as_ln_s='cp -p' |
|
3694 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
3695 as_ln_s=ln |
|
3696 else |
|
3697 as_ln_s='cp -p' |
|
3698 fi |
|
3699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
3700 rmdir conf$$.dir 2>/dev/null |
|
3701 |
|
3702 if mkdir -p . 2>/dev/null; then |
|
3703 as_mkdir_p=: |
|
3704 else |
|
3705 test -d ./-p && rmdir ./-p |
|
3706 as_mkdir_p=false |
|
3707 fi |
|
3708 |
|
3709 if test -x / >/dev/null 2>&1; then |
|
3710 as_test_x='test -x' |
|
3711 else |
|
3712 if ls -dL / >/dev/null 2>&1; then |
|
3713 as_ls_L_option=L |
|
3714 else |
|
3715 as_ls_L_option= |
|
3716 fi |
|
3717 as_test_x=' |
|
3718 eval sh -c '\'' |
|
3719 if test -d "$1"; then |
|
3720 test -d "$1/."; |
|
3721 else |
|
3722 case $1 in |
|
3723 -*)set "./$1";; |
|
3724 esac; |
|
3725 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
3726 ???[sx]*):;;*)false;;esac;fi |
|
3727 '\'' sh |
|
3728 ' |
|
3729 fi |
|
3730 as_executable_p=$as_test_x |
|
3731 |
|
3732 # Sed expression to map a string onto a valid CPP name. |
|
3733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
3734 |
|
3735 # Sed expression to map a string onto a valid variable name. |
|
3736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
3737 |
|
3738 |
|
3739 exec 6>&1 |
|
3740 |
|
3741 # Save the log message, to keep $[0] and so on meaningful, and to |
|
3742 # report actual input values of CONFIG_FILES etc. instead of their |
|
3743 # values after options handling. |
|
3744 ac_log=" |
|
3745 This file was extended by $as_me, which was |
|
3746 generated by GNU Autoconf 2.61. Invocation command line was |
|
3747 |
|
3748 CONFIG_FILES = $CONFIG_FILES |
|
3749 CONFIG_HEADERS = $CONFIG_HEADERS |
|
3750 CONFIG_LINKS = $CONFIG_LINKS |
|
3751 CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
3752 $ $0 $@ |
|
3753 |
|
3754 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
3755 " |
|
3756 |
|
3757 _ACEOF |
|
3758 |
|
3759 cat >>$CONFIG_STATUS <<_ACEOF |
|
3760 # Files that config.status was made for. |
|
3761 config_files="$ac_config_files" |
|
3762 config_headers="$ac_config_headers" |
|
3763 |
|
3764 _ACEOF |
|
3765 |
|
3766 cat >>$CONFIG_STATUS <<\_ACEOF |
|
3767 ac_cs_usage="\ |
|
3768 \`$as_me' instantiates files from templates according to the |
|
3769 current configuration. |
|
3770 |
|
3771 Usage: $0 [OPTIONS] [FILE]... |
|
3772 |
|
3773 -h, --help print this help, then exit |
|
3774 -V, --version print version number and configuration settings, then exit |
|
3775 -q, --quiet do not print progress messages |
|
3776 -d, --debug don't remove temporary files |
|
3777 --recheck update $as_me by reconfiguring in the same conditions |
|
3778 --file=FILE[:TEMPLATE] |
|
3779 instantiate the configuration file FILE |
|
3780 --header=FILE[:TEMPLATE] |
|
3781 instantiate the configuration header FILE |
|
3782 |
|
3783 Configuration files: |
|
3784 $config_files |
|
3785 |
|
3786 Configuration headers: |
|
3787 $config_headers |
|
3788 |
|
3789 Report bugs to <bug-autoconf@gnu.org>." |
|
3790 |
|
3791 _ACEOF |
|
3792 cat >>$CONFIG_STATUS <<_ACEOF |
|
3793 ac_cs_version="\\ |
|
3794 config.status |
|
3795 configured by $0, generated by GNU Autoconf 2.61, |
|
3796 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
|
3797 |
|
3798 Copyright (C) 2006 Free Software Foundation, Inc. |
|
3799 This config.status script is free software; the Free Software Foundation |
|
3800 gives unlimited permission to copy, distribute and modify it." |
|
3801 |
|
3802 ac_pwd='$ac_pwd' |
|
3803 srcdir='$srcdir' |
|
3804 _ACEOF |
|
3805 |
|
3806 cat >>$CONFIG_STATUS <<\_ACEOF |
|
3807 # If no file are specified by the user, then we need to provide default |
|
3808 # value. By we need to know if files were specified by the user. |
|
3809 ac_need_defaults=: |
|
3810 while test $# != 0 |
|
3811 do |
|
3812 case $1 in |
|
3813 --*=*) |
|
3814 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
3815 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
3816 ac_shift=: |
|
3817 ;; |
|
3818 *) |
|
3819 ac_option=$1 |
|
3820 ac_optarg=$2 |
|
3821 ac_shift=shift |
|
3822 ;; |
|
3823 esac |
|
3824 |
|
3825 case $ac_option in |
|
3826 # Handling of the options. |
|
3827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
3828 ac_cs_recheck=: ;; |
|
3829 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
3830 echo "$ac_cs_version"; exit ;; |
|
3831 --debug | --debu | --deb | --de | --d | -d ) |
|
3832 debug=: ;; |
|
3833 --file | --fil | --fi | --f ) |
|
3834 $ac_shift |
|
3835 CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
3836 ac_need_defaults=false;; |
|
3837 --header | --heade | --head | --hea ) |
|
3838 $ac_shift |
|
3839 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
3840 ac_need_defaults=false;; |
|
3841 --he | --h) |
|
3842 # Conflict between --help and --header |
|
3843 { echo "$as_me: error: ambiguous option: $1 |
|
3844 Try \`$0 --help' for more information." >&2 |
|
3845 { (exit 1); exit 1; }; };; |
|
3846 --help | --hel | -h ) |
|
3847 echo "$ac_cs_usage"; exit ;; |
|
3848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
3849 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
3850 ac_cs_silent=: ;; |
|
3851 |
|
3852 # This is an error. |
|
3853 -*) { echo "$as_me: error: unrecognized option: $1 |
|
3854 Try \`$0 --help' for more information." >&2 |
|
3855 { (exit 1); exit 1; }; } ;; |
|
3856 |
|
3857 *) ac_config_targets="$ac_config_targets $1" |
|
3858 ac_need_defaults=false ;; |
|
3859 |
|
3860 esac |
|
3861 shift |
|
3862 done |
|
3863 |
|
3864 ac_configure_extra_args= |
|
3865 |
|
3866 if $ac_cs_silent; then |
|
3867 exec 6>/dev/null |
|
3868 ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
3869 fi |
|
3870 |
|
3871 _ACEOF |
|
3872 cat >>$CONFIG_STATUS <<_ACEOF |
|
3873 if \$ac_cs_recheck; then |
|
3874 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
3875 CONFIG_SHELL=$SHELL |
|
3876 export CONFIG_SHELL |
|
3877 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
3878 fi |
|
3879 |
|
3880 _ACEOF |
|
3881 cat >>$CONFIG_STATUS <<\_ACEOF |
|
3882 exec 5>>config.log |
|
3883 { |
|
3884 echo |
|
3885 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
3886 ## Running $as_me. ## |
|
3887 _ASBOX |
|
3888 echo "$ac_log" |
|
3889 } >&5 |
|
3890 |
|
3891 _ACEOF |
|
3892 cat >>$CONFIG_STATUS <<_ACEOF |
|
3893 _ACEOF |
|
3894 |
|
3895 cat >>$CONFIG_STATUS <<\_ACEOF |
|
3896 |
|
3897 # Handling of arguments. |
|
3898 for ac_config_target in $ac_config_targets |
|
3899 do |
|
3900 case $ac_config_target in |
|
3901 "havp/default.h") CONFIG_HEADERS="$CONFIG_HEADERS havp/default.h" ;; |
|
3902 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
3903 "havp/Makefile") CONFIG_FILES="$CONFIG_FILES havp/Makefile" ;; |
|
3904 "havp/scanners/Makefile") CONFIG_FILES="$CONFIG_FILES havp/scanners/Makefile" ;; |
|
3905 "etc/havp/havp.config") CONFIG_FILES="$CONFIG_FILES etc/havp/havp.config" ;; |
|
3906 |
|
3907 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
3908 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
3909 { (exit 1); exit 1; }; };; |
|
3910 esac |
|
3911 done |
|
3912 |
|
3913 |
|
3914 # If the user did not use the arguments to specify the items to instantiate, |
|
3915 # then the envvar interface is used. Set only those that are not. |
|
3916 # We use the long form for the default assignment because of an extremely |
|
3917 # bizarre bug on SunOS 4.1.3. |
|
3918 if $ac_need_defaults; then |
|
3919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
3920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
3921 fi |
|
3922 |
|
3923 # Have a temporary directory for convenience. Make it in the build tree |
|
3924 # simply because there is no reason against having it here, and in addition, |
|
3925 # creating and moving files from /tmp can sometimes cause problems. |
|
3926 # Hook for its removal unless debugging. |
|
3927 # Note that there is a small window in which the directory will not be cleaned: |
|
3928 # after its creation but before its name has been assigned to `$tmp'. |
|
3929 $debug || |
|
3930 { |
|
3931 tmp= |
|
3932 trap 'exit_status=$? |
|
3933 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
3934 ' 0 |
|
3935 trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
3936 } |
|
3937 # Create a (secure) tmp directory for tmp files. |
|
3938 |
|
3939 { |
|
3940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
3941 test -n "$tmp" && test -d "$tmp" |
|
3942 } || |
|
3943 { |
|
3944 tmp=./conf$$-$RANDOM |
|
3945 (umask 077 && mkdir "$tmp") |
|
3946 } || |
|
3947 { |
|
3948 echo "$me: cannot create a temporary directory in ." >&2 |
|
3949 { (exit 1); exit 1; } |
|
3950 } |
|
3951 |
|
3952 # |
|
3953 # Set up the sed scripts for CONFIG_FILES section. |
|
3954 # |
|
3955 |
|
3956 # No need to generate the scripts if there are no CONFIG_FILES. |
|
3957 # This happens for instance when ./config.status config.h |
|
3958 if test -n "$CONFIG_FILES"; then |
|
3959 |
|
3960 _ACEOF |
|
3961 |
|
3962 |
|
3963 |
|
3964 ac_delim='%!_!# ' |
|
3965 for ac_last_try in false false false false false :; do |
|
3966 cat >conf$$subs.sed <<_ACEOF |
|
3967 SHELL!$SHELL$ac_delim |
|
3968 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
|
3969 PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
|
3970 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
|
3971 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
|
3972 PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
|
3973 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
|
3974 exec_prefix!$exec_prefix$ac_delim |
|
3975 prefix!$prefix$ac_delim |
|
3976 program_transform_name!$program_transform_name$ac_delim |
|
3977 bindir!$bindir$ac_delim |
|
3978 sbindir!$sbindir$ac_delim |
|
3979 libexecdir!$libexecdir$ac_delim |
|
3980 datarootdir!$datarootdir$ac_delim |
|
3981 datadir!$datadir$ac_delim |
|
3982 sysconfdir!$sysconfdir$ac_delim |
|
3983 sharedstatedir!$sharedstatedir$ac_delim |
|
3984 localstatedir!$localstatedir$ac_delim |
|
3985 includedir!$includedir$ac_delim |
|
3986 oldincludedir!$oldincludedir$ac_delim |
|
3987 docdir!$docdir$ac_delim |
|
3988 infodir!$infodir$ac_delim |
|
3989 htmldir!$htmldir$ac_delim |
|
3990 dvidir!$dvidir$ac_delim |
|
3991 pdfdir!$pdfdir$ac_delim |
|
3992 psdir!$psdir$ac_delim |
|
3993 libdir!$libdir$ac_delim |
|
3994 localedir!$localedir$ac_delim |
|
3995 mandir!$mandir$ac_delim |
|
3996 DEFS!$DEFS$ac_delim |
|
3997 ECHO_C!$ECHO_C$ac_delim |
|
3998 ECHO_N!$ECHO_N$ac_delim |
|
3999 ECHO_T!$ECHO_T$ac_delim |
|
4000 LIBS!$LIBS$ac_delim |
|
4001 build_alias!$build_alias$ac_delim |
|
4002 host_alias!$host_alias$ac_delim |
|
4003 target_alias!$target_alias$ac_delim |
|
4004 CXX!$CXX$ac_delim |
|
4005 CXXFLAGS!$CXXFLAGS$ac_delim |
|
4006 LDFLAGS!$LDFLAGS$ac_delim |
|
4007 CPPFLAGS!$CPPFLAGS$ac_delim |
|
4008 ac_ct_CXX!$ac_ct_CXX$ac_delim |
|
4009 EXEEXT!$EXEEXT$ac_delim |
|
4010 OBJEXT!$OBJEXT$ac_delim |
|
4011 AR!$AR$ac_delim |
|
4012 PERL!$PERL$ac_delim |
|
4013 CC!$CC$ac_delim |
|
4014 CFLAGS!$CFLAGS$ac_delim |
|
4015 ac_ct_CC!$ac_ct_CC$ac_delim |
|
4016 SCANNEROBJECTS!$SCANNEROBJECTS$ac_delim |
|
4017 LIBOBJS!$LIBOBJS$ac_delim |
|
4018 LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
4019 _ACEOF |
|
4020 |
|
4021 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then |
|
4022 break |
|
4023 elif $ac_last_try; then |
|
4024 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
4025 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
4026 { (exit 1); exit 1; }; } |
|
4027 else |
|
4028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
4029 fi |
|
4030 done |
|
4031 |
|
4032 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
4033 if test -n "$ac_eof"; then |
|
4034 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
4035 ac_eof=`expr $ac_eof + 1` |
|
4036 fi |
|
4037 |
|
4038 cat >>$CONFIG_STATUS <<_ACEOF |
|
4039 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
|
4040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
|
4041 _ACEOF |
|
4042 sed ' |
|
4043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
4044 s/^/s,@/; s/!/@,|#_!!_#|/ |
|
4045 :n |
|
4046 t n |
|
4047 s/'"$ac_delim"'$/,g/; t |
|
4048 s/$/\\/; p |
|
4049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
4050 ' >>$CONFIG_STATUS <conf$$subs.sed |
|
4051 rm -f conf$$subs.sed |
|
4052 cat >>$CONFIG_STATUS <<_ACEOF |
|
4053 :end |
|
4054 s/|#_!!_#|//g |
|
4055 CEOF$ac_eof |
|
4056 _ACEOF |
|
4057 |
|
4058 |
|
4059 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
4060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
4061 # trailing colons and then remove the whole line if VPATH becomes empty |
|
4062 # (actually we leave an empty line to preserve line numbers). |
|
4063 if test "x$srcdir" = x.; then |
|
4064 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
4065 s/:*\$(srcdir):*/:/ |
|
4066 s/:*\${srcdir}:*/:/ |
|
4067 s/:*@srcdir@:*/:/ |
|
4068 s/^\([^=]*=[ ]*\):*/\1/ |
|
4069 s/:*$// |
|
4070 s/^[^=]*=[ ]*$// |
|
4071 }' |
|
4072 fi |
|
4073 |
|
4074 cat >>$CONFIG_STATUS <<\_ACEOF |
|
4075 fi # test -n "$CONFIG_FILES" |
|
4076 |
|
4077 |
|
4078 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
|
4079 do |
|
4080 case $ac_tag in |
|
4081 :[FHLC]) ac_mode=$ac_tag; continue;; |
|
4082 esac |
|
4083 case $ac_mode$ac_tag in |
|
4084 :[FHL]*:*);; |
|
4085 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
|
4086 echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
|
4087 { (exit 1); exit 1; }; };; |
|
4088 :[FH]-) ac_tag=-:-;; |
|
4089 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
4090 esac |
|
4091 ac_save_IFS=$IFS |
|
4092 IFS=: |
|
4093 set x $ac_tag |
|
4094 IFS=$ac_save_IFS |
|
4095 shift |
|
4096 ac_file=$1 |
|
4097 shift |
|
4098 |
|
4099 case $ac_mode in |
|
4100 :L) ac_source=$1;; |
|
4101 :[FH]) |
|
4102 ac_file_inputs= |
|
4103 for ac_f |
|
4104 do |
|
4105 case $ac_f in |
|
4106 -) ac_f="$tmp/stdin";; |
|
4107 *) # Look for the file first in the build tree, then in the source tree |
|
4108 # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
4109 # because $ac_f cannot contain `:'. |
|
4110 test -f "$ac_f" || |
|
4111 case $ac_f in |
|
4112 [\\/$]*) false;; |
|
4113 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
4114 esac || |
|
4115 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
4116 echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
4117 { (exit 1); exit 1; }; };; |
|
4118 esac |
|
4119 ac_file_inputs="$ac_file_inputs $ac_f" |
|
4120 done |
|
4121 |
|
4122 # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
4123 # use $as_me), people would be surprised to read: |
|
4124 # /* config.h. Generated by config.status. */ |
|
4125 configure_input="Generated from "`IFS=: |
|
4126 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
4127 if test x"$ac_file" != x-; then |
|
4128 configure_input="$ac_file. $configure_input" |
|
4129 { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
4130 echo "$as_me: creating $ac_file" >&6;} |
|
4131 fi |
|
4132 |
|
4133 case $ac_tag in |
|
4134 *:-:* | *:-) cat >"$tmp/stdin";; |
|
4135 esac |
|
4136 ;; |
|
4137 esac |
|
4138 |
|
4139 ac_dir=`$as_dirname -- "$ac_file" || |
|
4140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
4141 X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
4142 X"$ac_file" : 'X\(//\)$' \| \ |
|
4143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
4144 echo X"$ac_file" | |
|
4145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
4146 s//\1/ |
|
4147 q |
|
4148 } |
|
4149 /^X\(\/\/\)[^/].*/{ |
|
4150 s//\1/ |
|
4151 q |
|
4152 } |
|
4153 /^X\(\/\/\)$/{ |
|
4154 s//\1/ |
|
4155 q |
|
4156 } |
|
4157 /^X\(\/\).*/{ |
|
4158 s//\1/ |
|
4159 q |
|
4160 } |
|
4161 s/.*/./; q'` |
|
4162 { as_dir="$ac_dir" |
|
4163 case $as_dir in #( |
|
4164 -*) as_dir=./$as_dir;; |
|
4165 esac |
|
4166 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
|
4167 as_dirs= |
|
4168 while :; do |
|
4169 case $as_dir in #( |
|
4170 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
|
4171 *) as_qdir=$as_dir;; |
|
4172 esac |
|
4173 as_dirs="'$as_qdir' $as_dirs" |
|
4174 as_dir=`$as_dirname -- "$as_dir" || |
|
4175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
4176 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
4177 X"$as_dir" : 'X\(//\)$' \| \ |
|
4178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
4179 echo X"$as_dir" | |
|
4180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
4181 s//\1/ |
|
4182 q |
|
4183 } |
|
4184 /^X\(\/\/\)[^/].*/{ |
|
4185 s//\1/ |
|
4186 q |
|
4187 } |
|
4188 /^X\(\/\/\)$/{ |
|
4189 s//\1/ |
|
4190 q |
|
4191 } |
|
4192 /^X\(\/\).*/{ |
|
4193 s//\1/ |
|
4194 q |
|
4195 } |
|
4196 s/.*/./; q'` |
|
4197 test -d "$as_dir" && break |
|
4198 done |
|
4199 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
4200 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
|
4201 echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
4202 { (exit 1); exit 1; }; }; } |
|
4203 ac_builddir=. |
|
4204 |
|
4205 case "$ac_dir" in |
|
4206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
4207 *) |
|
4208 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|
4209 # A ".." for each directory in $ac_dir_suffix. |
|
4210 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
|
4211 case $ac_top_builddir_sub in |
|
4212 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
4213 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
4214 esac ;; |
|
4215 esac |
|
4216 ac_abs_top_builddir=$ac_pwd |
|
4217 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
4218 # for backward compatibility: |
|
4219 ac_top_builddir=$ac_top_build_prefix |
|
4220 |
|
4221 case $srcdir in |
|
4222 .) # We are building in place. |
|
4223 ac_srcdir=. |
|
4224 ac_top_srcdir=$ac_top_builddir_sub |
|
4225 ac_abs_top_srcdir=$ac_pwd ;; |
|
4226 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
4227 ac_srcdir=$srcdir$ac_dir_suffix; |
|
4228 ac_top_srcdir=$srcdir |
|
4229 ac_abs_top_srcdir=$srcdir ;; |
|
4230 *) # Relative name. |
|
4231 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
4232 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
4233 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
4234 esac |
|
4235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
4236 |
|
4237 |
|
4238 case $ac_mode in |
|
4239 :F) |
|
4240 # |
|
4241 # CONFIG_FILE |
|
4242 # |
|
4243 |
|
4244 _ACEOF |
|
4245 |
|
4246 cat >>$CONFIG_STATUS <<\_ACEOF |
|
4247 # If the template does not know about datarootdir, expand it. |
|
4248 # FIXME: This hack should be removed a few years after 2.60. |
|
4249 ac_datarootdir_hack=; ac_datarootdir_seen= |
|
4250 |
|
4251 case `sed -n '/datarootdir/ { |
|
4252 p |
|
4253 q |
|
4254 } |
|
4255 /@datadir@/p |
|
4256 /@docdir@/p |
|
4257 /@infodir@/p |
|
4258 /@localedir@/p |
|
4259 /@mandir@/p |
|
4260 ' $ac_file_inputs` in |
|
4261 *datarootdir*) ac_datarootdir_seen=yes;; |
|
4262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
4263 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
4264 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
4265 _ACEOF |
|
4266 cat >>$CONFIG_STATUS <<_ACEOF |
|
4267 ac_datarootdir_hack=' |
|
4268 s&@datadir@&$datadir&g |
|
4269 s&@docdir@&$docdir&g |
|
4270 s&@infodir@&$infodir&g |
|
4271 s&@localedir@&$localedir&g |
|
4272 s&@mandir@&$mandir&g |
|
4273 s&\\\${datarootdir}&$datarootdir&g' ;; |
|
4274 esac |
|
4275 _ACEOF |
|
4276 |
|
4277 # Neutralize VPATH when `$srcdir' = `.'. |
|
4278 # Shell code in configure.ac might set extrasub. |
|
4279 # FIXME: do we really want to maintain this feature? |
|
4280 cat >>$CONFIG_STATUS <<_ACEOF |
|
4281 sed "$ac_vpsub |
|
4282 $extrasub |
|
4283 _ACEOF |
|
4284 cat >>$CONFIG_STATUS <<\_ACEOF |
|
4285 :t |
|
4286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
4287 s&@configure_input@&$configure_input&;t t |
|
4288 s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
4289 s&@srcdir@&$ac_srcdir&;t t |
|
4290 s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
4291 s&@top_srcdir@&$ac_top_srcdir&;t t |
|
4292 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
4293 s&@builddir@&$ac_builddir&;t t |
|
4294 s&@abs_builddir@&$ac_abs_builddir&;t t |
|
4295 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
4296 $ac_datarootdir_hack |
|
4297 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
|
4298 |
|
4299 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
4300 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
|
4301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
|
4302 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
4303 which seems to be undefined. Please make sure it is defined." >&5 |
|
4304 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
4305 which seems to be undefined. Please make sure it is defined." >&2;} |
|
4306 |
|
4307 rm -f "$tmp/stdin" |
|
4308 case $ac_file in |
|
4309 -) cat "$tmp/out"; rm -f "$tmp/out";; |
|
4310 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
|
4311 esac |
|
4312 ;; |
|
4313 :H) |
|
4314 # |
|
4315 # CONFIG_HEADER |
|
4316 # |
|
4317 _ACEOF |
|
4318 |
|
4319 # Transform confdefs.h into a sed script `conftest.defines', that |
|
4320 # substitutes the proper values into config.h.in to produce config.h. |
|
4321 rm -f conftest.defines conftest.tail |
|
4322 # First, append a space to every undef/define line, to ease matching. |
|
4323 echo 's/$/ /' >conftest.defines |
|
4324 # Then, protect against being on the right side of a sed subst, or in |
|
4325 # an unquoted here document, in config.status. If some macros were |
|
4326 # called several times there might be several #defines for the same |
|
4327 # symbol, which is useless. But do not sort them, since the last |
|
4328 # AC_DEFINE must be honored. |
|
4329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
4330 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
|
4331 # NAME is the cpp macro being defined, VALUE is the value it is being given. |
|
4332 # PARAMS is the parameter list in the macro definition--in most cases, it's |
|
4333 # just an empty string. |
|
4334 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
|
4335 ac_dB='\\)[ (].*,\\1define\\2' |
|
4336 ac_dC=' ' |
|
4337 ac_dD=' ,' |
|
4338 |
|
4339 uniq confdefs.h | |
|
4340 sed -n ' |
|
4341 t rset |
|
4342 :rset |
|
4343 s/^[ ]*#[ ]*define[ ][ ]*// |
|
4344 t ok |
|
4345 d |
|
4346 :ok |
|
4347 s/[\\&,]/\\&/g |
|
4348 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
|
4349 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
|
4350 ' >>conftest.defines |
|
4351 |
|
4352 # Remove the space that was appended to ease matching. |
|
4353 # Then replace #undef with comments. This is necessary, for |
|
4354 # example, in the case of _POSIX_SOURCE, which is predefined and required |
|
4355 # on some systems where configure will not decide to define it. |
|
4356 # (The regexp can be short, since the line contains either #define or #undef.) |
|
4357 echo 's/ $// |
|
4358 s,^[ #]*u.*,/* & */,' >>conftest.defines |
|
4359 |
|
4360 # Break up conftest.defines: |
|
4361 ac_max_sed_lines=50 |
|
4362 |
|
4363 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
|
4364 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
|
4365 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
|
4366 # et cetera. |
|
4367 ac_in='$ac_file_inputs' |
|
4368 ac_out='"$tmp/out1"' |
|
4369 ac_nxt='"$tmp/out2"' |
|
4370 |
|
4371 while : |
|
4372 do |
|
4373 # Write a here document: |
|
4374 cat >>$CONFIG_STATUS <<_ACEOF |
|
4375 # First, check the format of the line: |
|
4376 cat >"\$tmp/defines.sed" <<\\CEOF |
|
4377 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
|
4378 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
|
4379 b |
|
4380 :def |
|
4381 _ACEOF |
|
4382 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
|
4383 echo 'CEOF |
|
4384 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
|
4385 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
|
4386 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
|
4387 grep . conftest.tail >/dev/null || break |
|
4388 rm -f conftest.defines |
|
4389 mv conftest.tail conftest.defines |
|
4390 done |
|
4391 rm -f conftest.defines conftest.tail |
|
4392 |
|
4393 echo "ac_result=$ac_in" >>$CONFIG_STATUS |
|
4394 cat >>$CONFIG_STATUS <<\_ACEOF |
|
4395 if test x"$ac_file" != x-; then |
|
4396 echo "/* $configure_input */" >"$tmp/config.h" |
|
4397 cat "$ac_result" >>"$tmp/config.h" |
|
4398 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
|
4399 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
4400 echo "$as_me: $ac_file is unchanged" >&6;} |
|
4401 else |
|
4402 rm -f $ac_file |
|
4403 mv "$tmp/config.h" $ac_file |
|
4404 fi |
|
4405 else |
|
4406 echo "/* $configure_input */" |
|
4407 cat "$ac_result" |
|
4408 fi |
|
4409 rm -f "$tmp/out12" |
|
4410 ;; |
|
4411 |
|
4412 |
|
4413 esac |
|
4414 |
|
4415 done # for ac_tag |
|
4416 |
|
4417 |
|
4418 { (exit 0); exit 0; } |
|
4419 _ACEOF |
|
4420 chmod +x $CONFIG_STATUS |
|
4421 ac_clean_files=$ac_clean_files_save |
|
4422 |
|
4423 |
|
4424 # configure is writing to config.log, and then calls config.status. |
|
4425 # config.status does its own redirection, appending to config.log. |
|
4426 # Unfortunately, on DOS this fails, as config.log is still kept open |
|
4427 # by configure, so config.status won't be able to write to it; its |
|
4428 # output is simply discarded. So we exec the FD to /dev/null, |
|
4429 # effectively closing config.log, so it can be properly (re)opened and |
|
4430 # appended to by config.status. When coming back to configure, we |
|
4431 # need to make the FD available again. |
|
4432 if test "$no_create" != yes; then |
|
4433 ac_cs_success=: |
|
4434 ac_config_status_args= |
|
4435 test "$silent" = yes && |
|
4436 ac_config_status_args="$ac_config_status_args --quiet" |
|
4437 exec 5>/dev/null |
|
4438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
4439 exec 5>>config.log |
|
4440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
4441 # would make configure fail if this is the last instruction. |
|
4442 $ac_cs_success || { (exit 1); exit 1; } |
|
4443 fi |
|
4444 |
|
4445 |