/[pcre]/code/trunk/configure
ViewVC logotype

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 98 - (show annotations)
Mon Mar 5 15:55:02 2007 UTC (12 years, 7 months ago) by ph10
File size: 737792 byte(s)
This is a second preliminary update, after having done a test build and also a 
check of the maintenance programs. The version is now 7.1-RC1. In autogen.sh, 
autoheader is now before automake, and Tech.Notes (being now in the "maintain" 
directory) are no longer distributed.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PCRE 7.1-RC1.
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
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='PCRE'
728 PACKAGE_TARNAME='pcre'
729 PACKAGE_VERSION='7.1-RC1'
730 PACKAGE_STRING='PCRE 7.1-RC1'
731 PACKAGE_BUGREPORT=''
732
733 ac_unique_file="pcre.h.in"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 CC
830 CFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CC
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CCDEPMODE
843 am__fastdepCC_TRUE
844 am__fastdepCC_FALSE
845 CXX
846 CXXFLAGS
847 ac_ct_CXX
848 CXXDEPMODE
849 am__fastdepCXX_TRUE
850 am__fastdepCXX_FALSE
851 build
852 build_cpu
853 build_vendor
854 build_os
855 host
856 host_cpu
857 host_vendor
858 host_os
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 DLLTOOL
866 AS
867 OBJDUMP
868 CPP
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 PCRE_MAJOR
875 PCRE_MINOR
876 PCRE_PRERELEASE
877 PCRE_DATE
878 pcre_have_type_traits
879 pcre_have_bits_type_traits
880 WITH_PCRE_CPP_TRUE
881 WITH_PCRE_CPP_FALSE
882 pcre_have_long_long
883 pcre_have_ulong_long
884 LINK_SIZE
885 UTF8
886 UCP
887 EXTRA_LIBPCRE_LDFLAGS
888 EXTRA_LIBPCREPOSIX_LDFLAGS
889 EXTRA_LIBPCRECPP_LDFLAGS
890 DISTCHECK_CONFIGURE_FLAGS
891 LIBOBJS
892 LTLIBOBJS'
893 ac_subst_files=''
894 ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CXX
903 CXXFLAGS
904 CCC
905 CPP
906 CXXCPP
907 F77
908 FFLAGS'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1038
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1047
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1051
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1058
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1063
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1069
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1076
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1081
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1086
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1093
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1098
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1105
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1110
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1114
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1118
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1122
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1131
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1136
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1143
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1150
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1167
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1172
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1177
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1181
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1187
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1198
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1203
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1208
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1215
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1220
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1223
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1226
1227 -with-* | --with-*)
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1235
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1292 fi
1293
1294 # Be sure to have absolute directory names.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1299 do
1300 eval ac_val=\$$ac_var
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1341
1342
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 echo X"$0" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\).*/{
1366 s//\1/
1367 q
1368 }
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1373 fi
1374 else
1375 ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures PCRE 7.1-RC1 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1465
1466 cat <<\_ACEOF
1467
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1472
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of PCRE 7.1-RC1:";;
1482 esac
1483 cat <<\_ACEOF
1484
1485 Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --disable-cpp disable C++ support
1496 --enable-utf8 enable UTF-8 support
1497 --enable-unicode-properties
1498 enable Unicode properties support (implies
1499 --enable-utf8)
1500 --enable-newline-is-cr use CR as newline character
1501 --enable-newline-is-lf use LF as newline character (default)
1502 --enable-newline-is-crlf
1503 use CRLF as newline sequence
1504 --enable-newline-is-any use any valid Unicode newline sequence
1505 --enable-ebcdic assume EBCDIC coding rather than ASCII
1506 --disable-stack-for-recursion
1507 don't use stack recursion when matching
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-pic try to use only PIC/non-PIC objects [default=use
1514 both]
1515 --with-tags[=TAGS] include additional configurations [automatic]
1516 --with-posix-malloc-threshold=NBYTES
1517 threshold for POSIX malloc usage (default=10)
1518 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1519 --with-match-limit=N default limit on internal looping (default=10000000)
1520 --with-match-limit-recursion=N
1521 default limit on internal recursion
1522 (default=MATCH_LIMIT)
1523
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1532 CXX C++ compiler command
1533 CXXFLAGS C++ compiler flags
1534 CPP C preprocessor
1535 CXXCPP C++ preprocessor
1536 F77 Fortran 77 compiler command
1537 FFLAGS Fortran 77 compiler flags
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" || continue
1550 ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 PCRE configure 7.1-RC1
1603 generated by GNU Autoconf 2.61
1604
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610 exit
1611 fi
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1615
1616 It was created by PCRE $as_me 7.1-RC1, which was
1617 generated by GNU Autoconf 2.61. Invocation command line was
1618
1619 $ $0 $@
1620
1621 _ACEOF
1622 exec 5>>config.log
1623 {
1624 cat <<_ASUNAME
1625 ## --------- ##
1626 ## Platform. ##
1627 ## --------- ##
1628
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1637
1638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1645
1646 _ASUNAME
1647
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
1653 echo "PATH: $as_dir"
1654 done
1655 IFS=$as_save_IFS
1656
1657 } >&5
1658
1659 cat >&5 <<_ACEOF
1660
1661
1662 ## ----------- ##
1663 ## Core tests. ##
1664 ## ----------- ##
1665
1666 _ACEOF
1667
1668
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_configure_args=
1675 ac_configure_args0=
1676 ac_configure_args1=
1677 ac_must_keep_next=false
1678 for ac_pass in 1 2
1679 do
1680 for ac_arg
1681 do
1682 case $ac_arg in
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1686 continue ;;
1687 *\'*)
1688 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 esac
1690 case $ac_pass in
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692 2)
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1696 else
1697 case $ac_arg in
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 esac
1705 ;;
1706 -* ) ac_must_keep_next=true ;;
1707 esac
1708 fi
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1710 ;;
1711 esac
1712 done
1713 done
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log. We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1724 {
1725 echo
1726
1727 cat <<\_ASBOX
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1731 _ASBOX
1732 echo
1733 # The following way of writing the cache mishandles newlines in values,
1734 (
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1737 case $ac_val in #(
1738 *${as_nl}*)
1739 case $ac_var in #(
1740 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742 esac
1743 case $ac_var in #(
1744 _ | IFS | as_nl) ;; #(
1745 *) $as_unset $ac_var ;;
1746 esac ;;
1747 esac
1748 done
1749 (set) 2>&1 |
1750 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751 *${as_nl}ac_space=\ *)
1752 sed -n \
1753 "s/'\''/'\''\\\\'\'''\''/g;
1754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 ;; #(
1756 *)
1757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 ;;
1759 esac |
1760 sort
1761 )
1762 echo
1763
1764 cat <<\_ASBOX
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1768 _ASBOX
1769 echo
1770 for ac_var in $ac_subst_vars
1771 do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 esac
1776 echo "$ac_var='\''$ac_val'\''"
1777 done | sort
1778 echo
1779
1780 if test -n "$ac_subst_files"; then
1781 cat <<\_ASBOX
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1785 _ASBOX
1786 echo
1787 for ac_var in $ac_subst_files
1788 do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in
1791 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792 esac
1793 echo "$ac_var='\''$ac_val'\''"
1794 done | sort
1795 echo
1796 fi
1797
1798 if test -s confdefs.h; then
1799 cat <<\_ASBOX
1800 ## ----------- ##
1801 ## confdefs.h. ##
1802 ## ----------- ##
1803 _ASBOX
1804 echo
1805 cat confdefs.h
1806 echo
1807 fi
1808 test "$ac_signal" != 0 &&
1809 echo "$as_me: caught signal $ac_signal"
1810 echo "$as_me: exit $exit_status"
1811 } >&5
1812 rm -f core *.core core.conftest.* &&
1813 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 exit $exit_status
1815 ' 0
1816 for ac_signal in 1 2 13 15; do
1817 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 done
1819 ac_signal=0
1820
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1823
1824 # Predefined preprocessor variables.
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 _ACEOF
1849
1850
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854 set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857 else
1858 set x "$ac_default_prefix/share/config.site" \
1859 "$ac_default_prefix/etc/config.site"
1860 fi
1861 shift
1862 for ac_site_file
1863 do
1864 if test -r "$ac_site_file"; then
1865 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1868 . "$ac_site_file"
1869 fi
1870 done
1871
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1878 case $cache_file in
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1881 esac
1882 fi
1883 else
1884 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1886 >$cache_file
1887 fi
1888
1889 # Check that the precious variables saved in the cache have kept the same
1890 # value.
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1898 set,)
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,set)
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1906 ,);;
1907 *)
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1912 echo "$as_me: former value: $ac_old_val" >&2;}
1913 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1914 echo "$as_me: current value: $ac_new_val" >&2;}
1915 ac_cache_corrupted=:
1916 fi;;
1917 esac
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1920 case $ac_new_val in
1921 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1923 esac
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 esac
1928 fi
1929 done
1930 if $ac_cache_corrupted; then
1931 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1936 fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962 ac_ext=c
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969
1970 am__api_version='1.10'
1971
1972 ac_aux_dir=
1973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974 if test -f "$ac_dir/install-sh"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/install-sh -c"
1977 break
1978 elif test -f "$ac_dir/install.sh"; then
1979 ac_aux_dir=$ac_dir
1980 ac_install_sh="$ac_aux_dir/install.sh -c"
1981 break
1982 elif test -f "$ac_dir/shtool"; then
1983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/shtool install -c"
1985 break
1986 fi
1987 done
1988 if test -z "$ac_aux_dir"; then
1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1991 { (exit 1); exit 1; }; }
1992 fi
1993
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2001
2002
2003 # Find a good install program. We prefer a C program (faster),
2004 # so one script is as good as another. But avoid the broken or
2005 # incompatible versions:
2006 # SysV /etc/install, /usr/sbin/install
2007 # SunOS /usr/etc/install
2008 # IRIX /sbin/install
2009 # AIX /bin/install
2010 # AmigaOS /C/install, which installs bootblocks on floppy discs
2011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2014 # OS/2's system install, which has a completely different semantic
2015 # ./install, which can be erroneously created by make from ./install.sh.
2016 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2017 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2018 if test -z "$INSTALL"; then
2019 if test "${ac_cv_path_install+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 # Account for people who put trailing slashes in PATH elements.
2028 case $as_dir/ in
2029 ./ | .// | /cC/* | \
2030 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2031 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2032 /usr/ucb/* ) ;;
2033 *)
2034 # OSF1 and SCO ODT 3.0 have their own names for install.
2035 # Don't use installbsd from OSF since it installs stuff as root
2036 # by default.
2037 for ac_prog in ginstall scoinst install; do
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2040 if test $ac_prog = install &&
2041 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042 # AIX install. It has an incompatible calling convention.
2043 :
2044 elif test $ac_prog = install &&
2045 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046 # program-specific install script used by HP pwplus--don't use.
2047 :
2048 else
2049 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2050 break 3
2051 fi
2052 fi
2053 done
2054 done
2055 ;;
2056 esac
2057 done
2058 IFS=$as_save_IFS
2059
2060
2061 fi
2062 if test "${ac_cv_path_install+set}" = set; then
2063 INSTALL=$ac_cv_path_install
2064 else
2065 # As a last resort, use the slow shell script. Don't cache a
2066 # value for INSTALL within a source directory, because that will
2067 # break other packages using the cache if that directory is
2068 # removed, or if the value is a relative name.
2069 INSTALL=$ac_install_sh
2070 fi
2071 fi
2072 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2073 echo "${ECHO_T}$INSTALL" >&6; }
2074
2075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2076 # It thinks the first close brace ends the variable substitution.
2077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2078
2079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2080
2081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2082
2083 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2084 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2085 # Just in case
2086 sleep 1
2087 echo timestamp > conftest.file
2088 # Do `set' in a subshell so we don't clobber the current shell's
2089 # arguments. Must try -L first in case configure is actually a
2090 # symlink; some systems play weird games with the mod time of symlinks
2091 # (eg FreeBSD returns the mod time of the symlink's containing
2092 # directory).
2093 if (
2094 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2095 if test "$*" = "X"; then
2096 # -L didn't work.
2097 set X `ls -t $srcdir/configure conftest.file`
2098 fi
2099 rm -f conftest.file
2100 if test "$*" != "X $srcdir/configure conftest.file" \
2101 && test "$*" != "X conftest.file $srcdir/configure"; then
2102
2103 # If neither matched, then we have a broken ls. This can happen
2104 # if, for instance, CONFIG_SHELL is bash and it inherits a
2105 # broken ls alias from the environment. This has actually
2106 # happened. Such a system could not be considered "sane".
2107 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2108 alias in your environment" >&5
2109 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2110 alias in your environment" >&2;}
2111 { (exit 1); exit 1; }; }
2112 fi
2113
2114 test "$2" = conftest.file
2115 )
2116 then
2117 # Ok.
2118 :
2119 else
2120 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2121 Check your system clock" >&5
2122 echo "$as_me: error: newly created file is older than distributed files!
2123 Check your system clock" >&2;}
2124 { (exit 1); exit 1; }; }
2125 fi
2126 { echo "$as_me:$LINENO: result: yes" >&5
2127 echo "${ECHO_T}yes" >&6; }
2128 test "$program_prefix" != NONE &&
2129 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2130 # Use a double $ so make ignores it.
2131 test "$program_suffix" != NONE &&
2132 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2133 # Double any \ or $. echo might interpret backslashes.
2134 # By default was `s,x,x', remove it if useless.
2135 cat <<\_ACEOF >conftest.sed
2136 s/[\\$]/&&/g;s/;s,x,x,$//
2137 _ACEOF
2138 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2139 rm -f conftest.sed
2140
2141 # expand $ac_aux_dir to an absolute path
2142 am_aux_dir=`cd $ac_aux_dir && pwd`
2143
2144 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2145 # Use eval to expand $SHELL
2146 if eval "$MISSING --run true"; then
2147 am_missing_run="$MISSING --run "
2148 else
2149 am_missing_run=
2150 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2151 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2152 fi
2153
2154 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2155 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2156 if test -z "$MKDIR_P"; then
2157 if test "${ac_cv_path_mkdir+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_prog in mkdir gmkdir; do
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2168 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2169 'mkdir (GNU coreutils) '* | \
2170 'mkdir (coreutils) '* | \
2171 'mkdir (fileutils) '4.1*)
2172 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2173 break 3;;
2174 esac
2175 done
2176 done
2177 done
2178 IFS=$as_save_IFS
2179
2180 fi
2181
2182 if test "${ac_cv_path_mkdir+set}" = set; then
2183 MKDIR_P="$ac_cv_path_mkdir -p"
2184 else
2185 # As a last resort, use the slow shell script. Don't cache a
2186 # value for MKDIR_P within a source directory, because that will
2187 # break other packages using the cache if that directory is
2188 # removed, or if the value is a relative name.
2189 test -d ./--version && rmdir ./--version
2190 MKDIR_P="$ac_install_sh -d"
2191 fi
2192 fi
2193 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2194 echo "${ECHO_T}$MKDIR_P" >&6; }
2195
2196 mkdir_p="$MKDIR_P"
2197 case $mkdir_p in
2198 [\\/$]* | ?:[\\/]*) ;;
2199 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2200 esac
2201
2202 for ac_prog in gawk mawk nawk awk
2203 do
2204 # Extract the first word of "$ac_prog", so it can be a program name with args.
2205 set dummy $ac_prog; ac_word=$2
2206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_AWK+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 if test -n "$AWK"; then
2212 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_AWK="$ac_prog"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2224 fi
2225 done
2226 done
2227 IFS=$as_save_IFS
2228
2229 fi
2230 fi
2231 AWK=$ac_cv_prog_AWK
2232 if test -n "$AWK"; then
2233 { echo "$as_me:$LINENO: result: $AWK" >&5
2234 echo "${ECHO_T}$AWK" >&6; }
2235 else
2236 { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2238 fi
2239
2240
2241 test -n "$AWK" && break
2242 done
2243
2244 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2246 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2247 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 cat >conftest.make <<\_ACEOF
2251 SHELL = /bin/sh
2252 all:
2253 @echo '@@@%%%=$(MAKE)=@@@%%%'
2254 _ACEOF
2255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2256 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2257 *@@@%%%=?*=@@@%%%*)
2258 eval ac_cv_prog_make_${ac_make}_set=yes;;
2259 *)
2260 eval ac_cv_prog_make_${ac_make}_set=no;;
2261 esac
2262 rm -f conftest.make
2263 fi
2264 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2267 SET_MAKE=
2268 else
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2271 SET_MAKE="MAKE=${MAKE-make}"
2272 fi
2273
2274 rm -rf .tst 2>/dev/null
2275 mkdir .tst 2>/dev/null
2276 if test -d .tst; then
2277 am__leading_dot=.
2278 else
2279 am__leading_dot=_
2280 fi
2281 rmdir .tst 2>/dev/null
2282
2283 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2284 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2285 # is not polluted with repeated "-I."
2286 am__isrc=' -I$(srcdir)'
2287 # test to see if srcdir already configured
2288 if test -f $srcdir/config.status; then
2289 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2290 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2291 { (exit 1); exit 1; }; }
2292 fi
2293 fi
2294
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297 if (cygpath --version) >/dev/null 2>/dev/null; then
2298 CYGPATH_W='cygpath -w'
2299 else
2300 CYGPATH_W=echo
2301 fi
2302 fi
2303
2304
2305 # Define the identity of the package.
2306 PACKAGE='pcre'
2307 VERSION='7.1-RC1'
2308
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2312 _ACEOF
2313
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2317 _ACEOF
2318
2319 # Some tools Automake needs.
2320
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2322
2323
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2325
2326
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2328
2329
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2331
2332
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2334
2335 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2336
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'. However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 if test -n "$STRIP"; then
2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2363 fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372 { echo "$as_me:$LINENO: result: $STRIP" >&5
2373 echo "${ECHO_T}$STRIP" >&6; }
2374 else
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 fi
2378
2379
2380 fi
2381 if test -z "$ac_cv_prog_STRIP"; then
2382 ac_ct_STRIP=$STRIP
2383 # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 if test -n "$ac_ct_STRIP"; then
2391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_ac_ct_STRIP="strip"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404 done
2405 done
2406 IFS=$as_save_IFS
2407
2408 fi
2409 fi
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2414 else
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2417 fi
2418
2419 if test "x$ac_ct_STRIP" = x; then
2420 STRIP=":"
2421 else
2422 case $cross_compiling:$ac_tool_warned in
2423 yes:)
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet. If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432 STRIP=$ac_ct_STRIP
2433 fi
2434 else
2435 STRIP="$ac_cv_prog_STRIP"
2436 fi
2437
2438 fi
2439 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2440
2441 # We need awk for the "check" target. The system "awk" is bad on
2442 # some platforms.
2443 # Always define AMTAR for backward compatibility.
2444
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2446
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2448
2449
2450
2451
2452
2453 ac_config_headers="$ac_config_headers config.h"
2454
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460 if test -n "$ac_tool_prefix"; then
2461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 break 2
2481 fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490 { echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6; }
2492 else
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2495 fi
2496
2497
2498 fi
2499 if test -z "$ac_cv_prog_CC"; then
2500 ac_ct_CC=$CC
2501 # Extract the first word of "gcc", so it can be a program name with args.
2502 set dummy gcc; ac_word=$2
2503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 if test -n "$ac_ct_CC"; then
2509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 ac_cv_prog_ac_ct_CC="gcc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2529 if test -n "$ac_ct_CC"; then
2530 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2531 echo "${ECHO_T}$ac_ct_CC" >&6; }
2532 else
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2535 fi
2536
2537 if test "x$ac_ct_CC" = x; then
2538 CC=""
2539 else
2540 case $cross_compiling:$ac_tool_warned in
2541 yes:)
2542 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet. If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&5
2545 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2546 whose name does not start with the host triplet. If you think this
2547 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2548 ac_tool_warned=yes ;;
2549 esac
2550 CC=$ac_ct_CC
2551 fi
2552 else
2553 CC="$ac_cv_prog_CC"
2554 fi
2555
2556 if test -z "$CC"; then
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}cc; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="${ac_tool_prefix}cc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595 fi
2596 fi
2597 if test -z "$CC"; then
2598 # Extract the first word of "cc", so it can be a program name with args.
2599 set dummy cc; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605 if test -n "$CC"; then
2606 ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608 ac_prog_rejected=no
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2617 ac_prog_rejected=yes
2618 continue
2619 fi
2620 ac_cv_prog_CC="cc"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 if test $ac_prog_rejected = yes; then
2629 # We found a bogon in the path, so make sure we never use it.
2630 set dummy $ac_cv_prog_CC
2631 shift
2632 if test $# != 0; then
2633 # We chose a different compiler from the bogus one.
2634 # However, it has the same basename, so the bogon will be chosen
2635 # first if we set CC to just the basename; use the full file name.
2636 shift
2637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2638 fi
2639 fi
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644 { echo "$as_me:$LINENO: result: $CC" >&5
2645 echo "${ECHO_T}$CC" >&6; }
2646 else
2647 { echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6; }
2649 fi
2650
2651
2652 fi
2653 if test -z "$CC"; then
2654 if test -n "$ac_tool_prefix"; then
2655 for ac_prog in cl.exe
2656 do
2657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686 { echo "$as_me:$LINENO: result: $CC" >&5
2687 echo "${ECHO_T}$CC" >&6; }
2688 else
2689 { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2691 fi
2692
2693
2694 test -n "$CC" && break
2695 done
2696 fi
2697 if test -z "$CC"; then
2698 ac_ct_CC=$CC
2699 for ac_prog in cl.exe
2700 do
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 if test -n "$ac_ct_CC"; then
2709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_CC="$ac_prog"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2729 if test -n "$ac_ct_CC"; then
2730 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2731 echo "${ECHO_T}$ac_ct_CC" >&6; }
2732 else
2733 { echo "$as_me:$LINENO: result: no" >&5
2734 echo "${ECHO_T}no" >&6; }
2735 fi
2736
2737
2738 test -n "$ac_ct_CC" && break
2739 done
2740
2741 if test "x$ac_ct_CC" = x; then
2742 CC=""
2743 else
2744 case $cross_compiling:$ac_tool_warned in
2745 yes:)
2746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2747 whose name does not start with the host triplet. If you think this
2748 configuration is useful to you, please write to autoconf@gnu.org." >&5
2749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet. If you think this
2751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2752 ac_tool_warned=yes ;;
2753 esac
2754 CC=$ac_ct_CC
2755 fi
2756 fi
2757
2758 fi
2759
2760
2761 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2762 See \`config.log' for more details." >&5
2763 echo "$as_me: error: no acceptable C compiler found in \$PATH
2764 See \`config.log' for more details." >&2;}
2765 { (exit 1); exit 1; }; }
2766
2767 # Provide some information about the compiler.
2768 echo "$as_me:$LINENO: checking for C compiler version" >&5
2769 ac_compiler=`set X $ac_compile; echo $2`
2770 { (ac_try="$ac_compiler --version >&5"
2771 case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compiler --version >&5") 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }
2780 { (ac_try="$ac_compiler -v >&5"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compiler -v >&5") 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }
2790 { (ac_try="$ac_compiler -V >&5"
2791 case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_compiler -V >&5") 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }
2800
2801 cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h. */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2807
2808 int
2809 main ()
2810 {
2811
2812 ;
2813 return 0;
2814 }
2815 _ACEOF
2816 ac_clean_files_save=$ac_clean_files
2817 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2818 # Try to create an executable without -o first, disregard a.out.
2819 # It will help us diagnose broken compilers, and finding out an intuition
2820 # of exeext.
2821 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2822 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2823 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2824 #
2825 # List of possible output files, starting from the most likely.
2826 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2827 # only as a last resort. b.out is created by i960 compilers.
2828 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2829 #
2830 # The IRIX 6 linker writes into existing files which may not be
2831 # executable, retaining their permissions. Remove them first so a
2832 # subsequent execution test works.
2833 ac_rmfiles=
2834 for ac_file in $ac_files
2835 do
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2839 esac
2840 done
2841 rm -f $ac_rmfiles
2842
2843 if { (ac_try="$ac_link_default"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_link_default") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; then
2853 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2854 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2855 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2856 # so that the user can short-circuit this test for compilers unknown to
2857 # Autoconf.
2858 for ac_file in $ac_files ''
2859 do
2860 test -f "$ac_file" || continue
2861 case $ac_file in
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2863 ;;
2864 [ab].out )
2865 # We found the default executable, but exeext='' is most
2866 # certainly right.
2867 break;;
2868 *.* )
2869 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2870 then :; else
2871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 fi
2873 # We set ac_cv_exeext here because the later test for it is not
2874 # safe: cross compilers may not add the suffix if given an `-o'
2875 # argument, so we may need to know it at that point already.
2876 # Even if this section looks crufty: it has the advantage of
2877 # actually working.
2878 break;;
2879 * )
2880 break;;
2881 esac
2882 done
2883 test "$ac_cv_exeext" = no && ac_cv_exeext=
2884
2885 else
2886 ac_file=''
2887 fi
2888
2889 { echo "$as_me:$LINENO: result: $ac_file" >&5
2890 echo "${ECHO_T}$ac_file" >&6; }
2891 if test -z "$ac_file"; then
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: C compiler cannot create executables
2898 See \`config.log' for more details." >&2;}
2899 { (exit 77); exit 77; }; }
2900 fi
2901
2902 ac_exeext=$ac_cv_exeext
2903
2904 # Check that the compiler produces executables we can run. If not, either
2905 # the compiler is broken, or we cross compile.
2906 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2907 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2908 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2909 # If not cross compiling, check that we can run a simple program.
2910 if test "$cross_compiling" != yes; then
2911 if { ac_try='./$ac_file'
2912 { (case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_try") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 cross_compiling=no
2922 else
2923 if test "$cross_compiling" = maybe; then
2924 cross_compiling=yes
2925 else
2926 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2927 If you meant to cross compile, use \`--host'.
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot run C compiled programs.
2930 If you meant to cross compile, use \`--host'.
2931 See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }
2933 fi
2934 fi
2935 fi
2936 { echo "$as_me:$LINENO: result: yes" >&5
2937 echo "${ECHO_T}yes" >&6; }
2938
2939 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2940 ac_clean_files=$ac_clean_files_save
2941 # Check that the compiler produces executables we can run. If not, either
2942 # the compiler is broken, or we cross compile.
2943 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2944 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2945 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2946 echo "${ECHO_T}$cross_compiling" >&6; }
2947
2948 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2949 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2950 if { (ac_try="$ac_link"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_link") 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; then
2960 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2961 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2962 # work properly (i.e., refer to `conftest.exe'), while it won't with
2963 # `rm'.
2964 for ac_file in conftest.exe conftest conftest.*; do
2965 test -f "$ac_file" || continue
2966 case $ac_file in
2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969 break;;
2970 * ) break;;
2971 esac
2972 done
2973 else
2974 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2975 See \`config.log' for more details." >&5
2976 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details." >&2;}
2978 { (exit 1); exit 1; }; }
2979 fi
2980
2981 rm -f conftest$ac_cv_exeext
2982 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2983 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2984
2985 rm -f conftest.$ac_ext
2986 EXEEXT=$ac_cv_exeext
2987 ac_exeext=$EXEEXT
2988 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2989 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2990 if test "${ac_cv_objext+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999
3000 int
3001 main ()
3002 {
3003
3004 ;
3005 return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.o conftest.obj
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 for ac_file in conftest.o conftest.obj conftest.*; do
3020 test -f "$ac_file" || continue;
3021 case $ac_file in
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3024 break;;
3025 esac
3026 done
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3036 fi
3037
3038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039 fi
3040 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3041 echo "${ECHO_T}$ac_cv_objext" >&6; }
3042 OBJEXT=$ac_cv_objext
3043 ac_objext=$OBJEXT
3044 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3045 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3046 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059 #ifndef __GNUC__
3060 choke me
3061 #endif
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (ac_try="$ac_compile"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } && {
3081 test -z "$ac_c_werror_flag" ||
3082 test ! -s conftest.err
3083 } && test -s conftest.$ac_objext; then
3084 ac_compiler_gnu=yes
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 ac_compiler_gnu=no
3090 fi
3091
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094
3095 fi
3096 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3098 GCC=`test $ac_compiler_gnu = yes && echo yes`
3099 ac_test_CFLAGS=${CFLAGS+set}
3100 ac_save_CFLAGS=$CFLAGS
3101 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3102 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_cc_g+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 ac_save_c_werror_flag=$ac_c_werror_flag
3107 ac_c_werror_flag=yes
3108 ac_cv_prog_cc_g=no
3109 CFLAGS="-g"
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116
3117 int
3118 main ()
3119 {
3120
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 ac_cv_prog_cc_g=yes
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 CFLAGS=""
3148 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154
3155 int
3156 main ()
3157 {
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 :
3181 else
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3186 CFLAGS="-g"
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_compile") 2>conftest.er1
3210 ac_status=$?
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } && {
3216 test -z "$ac_c_werror_flag" ||
3217 test ! -s conftest.err
3218 } && test -s conftest.$ac_objext; then
3219 ac_cv_prog_cc_g=yes
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235 fi
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
3243 else
3244 CFLAGS="-g"
3245 fi
3246 else
3247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
3249 else
3250 CFLAGS=
3251 fi
3252 fi
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 ac_cv_prog_cc_c89=no
3259 ac_save_CC=$CC
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3274 char **p;
3275 int i;
3276 {
3277 return p[i];
3278 }
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3280 {
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287 }
3288
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
3292 as 'x'. The following induces an error, until -std is added to get
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
3295 that's true only with -std. */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300 #define FOO(x) 'x'
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 int argc;
3308 char **argv;
3309 int
3310 main ()
3311 {
3312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 do
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3338 ac_cv_prog_cc_c89=$ac_arg
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343
3344 fi
3345
3346 rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348 done
3349 rm -f conftest.$ac_ext
3350 CC=$ac_save_CC
3351
3352 fi
3353 # AC_CACHE_VAL
3354 case "x$ac_cv_prog_cc_c89" in
3355 x)
3356 { echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6; } ;;
3358 xno)
3359 { echo "$as_me:$LINENO: result: unsupported" >&5
3360 echo "${ECHO_T}unsupported" >&6; } ;;
3361 *)
3362 CC="$CC $ac_cv_prog_cc_c89"
3363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365 esac
3366
3367
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 DEPDIR="${am__leading_dot}deps"
3374
3375 ac_config_commands="$ac_config_commands depfiles"
3376
3377
3378 am_make=${MAKE-make}
3379 cat > confinc << 'END'
3380 am__doit:
3381 @echo done
3382 .PHONY: am__doit
3383 END
3384 # If we don't find an include directive, just comment out the code.
3385 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3386 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3387 am__include="#"
3388 am__quote=
3389 _am_result=none
3390 # First try GNU make style include.
3391 echo "include confinc" > confmf
3392 # We grep out `Entering directory' and `Leaving directory'
3393 # messages which can occur if `w' ends up in MAKEFLAGS.
3394 # In particular we don't look at `^make:' because GNU make might
3395 # be invoked under some other name (usually "gmake"), in which
3396 # case it prints its new name instead of `make'.
3397 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3398 am__include=include
3399 am__quote=
3400 _am_result=GNU
3401 fi
3402 # Now try BSD make style include.
3403 if test "$am__include" = "#"; then
3404 echo '.include "confinc"' > confmf
3405 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3406 am__include=.include
3407 am__quote="\""
3408 _am_result=BSD
3409 fi
3410 fi
3411
3412
3413 { echo "$as_me:$LINENO: result: $_am_result" >&5
3414 echo "${ECHO_T}$_am_result" >&6; }
3415 rm -f confinc confmf
3416
3417 # Check whether --enable-dependency-tracking was given.
3418 if test "${enable_dependency_tracking+set}" = set; then
3419 enableval=$enable_dependency_tracking;
3420 fi
3421
3422 if test "x$enable_dependency_tracking" != xno; then
3423 am_depcomp="$ac_aux_dir/depcomp"
3424 AMDEPBACKSLASH='\'
3425 fi
3426 if test "x$enable_dependency_tracking" != xno; then
3427 AMDEP_TRUE=
3428 AMDEP_FALSE='#'
3429 else
3430 AMDEP_TRUE='#'
3431 AMDEP_FALSE=
3432 fi
3433
3434
3435
3436 depcc="$CC" am_compiler_list=
3437
3438 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444 # We make a subdir and do the tests there. Otherwise we can end up
3445 # making bogus files that we don't know about and never remove. For
3446 # instance it was reported that on HP-UX the gcc test will end up
3447 # making a dummy file named `D' -- because `-MD' means `put the output
3448 # in D'.
3449 mkdir conftest.dir
3450 # Copy depcomp to subdir because otherwise we won't find it if we're
3451 # using a relative directory.
3452 cp "$am_depcomp" conftest.dir
3453 cd conftest.dir
3454 # We will build objects and dependencies in a subdirectory because
3455 # it helps to detect inapplicable dependency modes. For instance
3456 # both Tru64's cc and ICC support -MD to output dependencies as a
3457 # side effect of compilation, but ICC will put the dependencies in
3458 # the current directory while Tru64 will put them in the object
3459 # directory.
3460 mkdir sub
3461
3462 am_cv_CC_dependencies_compiler_type=none
3463 if test "$am_compiler_list" = ""; then
3464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3465 fi
3466 for depmode in $am_compiler_list; do
3467 # Setup a source with many dependencies, because some compilers
3468 # like to wrap large dependency lists on column 80 (with \), and
3469 # we should not choose a depcomp mode which is confused by this.
3470 #
3471 # We need to recreate these files for each test, as the compiler may
3472 # overwrite some of them when testing with obscure command lines.
3473 # This happens at least with the AIX C compiler.
3474 : > sub/conftest.c
3475 for i in 1 2 3 4 5 6; do
3476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3477 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3478 # Solaris 8's {/usr,}/bin/sh.
3479 touch sub/conftst$i.h
3480 done
3481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482
3483 case $depmode in
3484 nosideeffect)
3485 # after this tag, mechanisms are not by side-effect, so they'll
3486 # only be used when explicitly requested
3487 if test "x$enable_dependency_tracking" = xyes; then
3488 continue
3489 else
3490 break
3491 fi
3492 ;;
3493 none) break ;;
3494 esac
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496 # mode. It turns out that the SunPro C++ compiler does not properly
3497 # handle `-M -o', and we need to detect this.
3498 if depmode=$depmode \
3499 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502 >/dev/null 2>conftest.err &&
3503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3505 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3507 # icc doesn't choke on unknown options, it will just issue warnings
3508 # or remarks (even with -Werror). So we grep stderr for any message
3509 # that says an option was ignored or not supported.
3510 # When given -MP, icc 7.0 and 7.1 complain thusly:
3511 # icc: Command line warning: ignoring option '-M'; no argument required
3512 # The diagnosis changed in icc 8.0:
3513 # icc: Command line remark: option '-MP' not supported
3514 if (grep 'ignoring option' conftest.err ||
3515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3516 am_cv_CC_dependencies_compiler_type=$depmode
3517 break
3518 fi
3519 fi
3520 done
3521
3522 cd ..
3523 rm -rf conftest.dir
3524 else
3525 am_cv_CC_dependencies_compiler_type=none
3526 fi
3527
3528 fi
3529 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3530 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3531 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3532
3533 if
3534 test "x$enable_dependency_tracking" != xno \
3535 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3536 am__fastdepCC_TRUE=
3537 am__fastdepCC_FALSE='#'
3538 else
3539 am__fastdepCC_TRUE='#'
3540 am__fastdepCC_FALSE=
3541 fi
3542
3543
3544 ac_ext=cpp
3545 ac_cpp='$CXXCPP $CPPFLAGS'
3546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3549 if test -z "$CXX"; then
3550 if test -n "$CCC"; then
3551 CXX=$CCC
3552 else
3553 if test -n "$ac_tool_prefix"; then
3554 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3555 do
3556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3560 if test "${ac_cv_prog_CXX+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 if test -n "$CXX"; then
3564 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 CXX=$ac_cv_prog_CXX
3584 if test -n "$CXX"; then
3585 { echo "$as_me:$LINENO: result: $CXX" >&5
3586 echo "${ECHO_T}$CXX" >&6; }
3587 else
3588 { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3590 fi
3591
3592
3593 test -n "$CXX" && break
3594 done
3595 fi
3596 if test -z "$CXX"; then
3597 ac_ct_CXX=$CXX
3598 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3599 do
3600 # Extract the first word of "$ac_prog", so it can be a program name with args.
3601 set dummy $ac_prog; ac_word=$2
3602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3604 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 if test -n "$ac_ct_CXX"; then
3608 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 ac_cv_prog_ac_ct_CXX="$ac_prog"
3618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3620 fi
3621 done
3622 done
3623 IFS=$as_save_IFS
3624
3625 fi
3626 fi
3627 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3628 if test -n "$ac_ct_CXX"; then
3629 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3630 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3631 else
3632 { echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6; }
3634 fi
3635
3636
3637 test -n "$ac_ct_CXX" && break
3638 done
3639
3640 if test "x$ac_ct_CXX" = x; then
3641 CXX="g++"
3642 else
3643 case $cross_compiling:$ac_tool_warned in
3644 yes:)
3645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3646 whose name does not start with the host triplet. If you think this
3647 configuration is useful to you, please write to autoconf@gnu.org." >&5
3648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3649 whose name does not start with the host triplet. If you think this
3650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3651 ac_tool_warned=yes ;;
3652 esac
3653 CXX=$ac_ct_CXX
3654 fi
3655 fi
3656
3657 fi
3658 fi
3659 # Provide some information about the compiler.
3660 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3661 ac_compiler=`set X $ac_compile; echo $2`
3662 { (ac_try="$ac_compiler --version >&5"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_compiler --version >&5") 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }
3672 { (ac_try="$ac_compiler -v >&5"
3673 case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676 esac
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_compiler -v >&5") 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }
3682 { (ac_try="$ac_compiler -V >&5"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_compiler -V >&5") 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }
3692
3693 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3694 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3695 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704
3705 int
3706 main ()
3707 {
3708 #ifndef __GNUC__
3709 choke me
3710 #endif
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && {
3730 test -z "$ac_cxx_werror_flag" ||
3731 test ! -s conftest.err
3732 } && test -s conftest.$ac_objext; then
3733 ac_compiler_gnu=yes
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 ac_compiler_gnu=no
3739 fi
3740
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3743
3744 fi
3745 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3746 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3747 GXX=`test $ac_compiler_gnu = yes && echo yes`
3748 ac_test_CXXFLAGS=${CXXFLAGS+set}
3749 ac_save_CXXFLAGS=$CXXFLAGS
3750 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3751 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3752 if test "${ac_cv_prog_cxx_g+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3756 ac_cxx_werror_flag=yes
3757 ac_cv_prog_cxx_g=no
3758 CXXFLAGS="-g"
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765
3766 int
3767 main ()
3768 {
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_cxx_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 ac_cv_prog_cxx_g=yes
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796 CXXFLAGS=""
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803
3804 int
3805 main ()
3806 {
3807
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_compile") 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && {
3826 test -z "$ac_cxx_werror_flag" ||
3827 test ! -s conftest.err
3828 } && test -s conftest.$ac_objext; then
3829 :
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3835 CXXFLAGS="-g"
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842
3843 int
3844 main ()
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } && {
3865 test -z "$ac_cxx_werror_flag" ||
3866 test ! -s conftest.err
3867 } && test -s conftest.$ac_objext; then
3868 ac_cv_prog_cxx_g=yes
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873
3874 fi
3875
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 fi
3878
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 fi
3881
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3884 fi
3885 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3886 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3887 if test "$ac_test_CXXFLAGS" = set; then
3888 CXXFLAGS=$ac_save_CXXFLAGS
3889 elif test $ac_cv_prog_cxx_g = yes; then
3890 if test "$GXX" = yes; then
3891 CXXFLAGS="-g -O2"
3892 else
3893 CXXFLAGS="-g"
3894 fi
3895 else
3896 if test "$GXX" = yes; then
3897 CXXFLAGS="-O2"
3898 else
3899 CXXFLAGS=
3900 fi
3901 fi
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907
3908 depcc="$CXX" am_compiler_list=
3909
3910 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3911 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3912 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3916 # We make a subdir and do the tests there. Otherwise we can end up
3917 # making bogus files that we don't know about and never remove. For
3918 # instance it was reported that on HP-UX the gcc test will end up
3919 # making a dummy file named `D' -- because `-MD' means `put the output
3920 # in D'.
3921 mkdir conftest.dir
3922 # Copy depcomp to subdir because otherwise we won't find it if we're
3923 # using a relative directory.
3924 cp "$am_depcomp" conftest.dir
3925 cd conftest.dir
3926 # We will build objects and dependencies in a subdirectory because
3927 # it helps to detect inapplicable dependency modes. For instance
3928 # both Tru64's cc and ICC support -MD to output dependencies as a
3929 # side effect of compilation, but ICC will put the dependencies in
3930 # the current directory while Tru64 will put them in the object
3931 # directory.
3932 mkdir sub
3933
3934 am_cv_CXX_dependencies_compiler_type=none
3935 if test "$am_compiler_list" = ""; then
3936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3937 fi
3938 for depmode in $am_compiler_list; do
3939 # Setup a source with many dependencies, because some compilers
3940 # like to wrap large dependency lists on column 80 (with \), and
3941 # we should not choose a depcomp mode which is confused by this.
3942 #
3943 # We need to recreate these files for each test, as the compiler may
3944 # overwrite some of them when testing with obscure command lines.
3945 # This happens at least with the AIX C compiler.
3946 : > sub/conftest.c
3947 for i in 1 2 3 4 5 6; do
3948 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3949 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3950 # Solaris 8's {/usr,}/bin/sh.
3951 touch sub/conftst$i.h
3952 done
3953 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3954
3955 case $depmode in
3956 nosideeffect)
3957 # after this tag, mechanisms are not by side-effect, so they'll
3958 # only be used when explicitly requested
3959 if test "x$enable_dependency_tracking" = xyes; then
3960 continue
3961 else
3962 break
3963 fi
3964 ;;
3965 none) break ;;
3966 esac
3967 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3968 # mode. It turns out that the SunPro C++ compiler does not properly
3969 # handle `-M -o', and we need to detect this.
3970 if depmode=$depmode \
3971 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3973 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3974 >/dev/null 2>conftest.err &&
3975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3977 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3979 # icc doesn't choke on unknown options, it will just issue warnings
3980 # or remarks (even with -Werror). So we grep stderr for any message
3981 # that says an option was ignored or not supported.
3982 # When given -MP, icc 7.0 and 7.1 complain thusly:
3983 # icc: Command line warning: ignoring option '-M'; no argument required
3984 # The diagnosis changed in icc 8.0:
3985 # icc: Command line remark: option '-MP' not supported
3986 if (grep 'ignoring option' conftest.err ||
3987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3988 am_cv_CXX_dependencies_compiler_type=$depmode
3989 break
3990 fi
3991 fi
3992 done
3993
3994 cd ..
3995 rm -rf conftest.dir
3996 else
3997 am_cv_CXX_dependencies_compiler_type=none
3998 fi
3999
4000 fi
4001 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4002 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4003 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4004
4005 if
4006 test "x$enable_dependency_tracking" != xno \
4007 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4008 am__fastdepCXX_TRUE=
4009 am__fastdepCXX_FALSE='#'
4010 else
4011 am__fastdepCXX_TRUE='#'
4012 am__fastdepCXX_FALSE=
4013 fi
4014
4015
4016 # Find a good install program. We prefer a C program (faster),
4017 # so one script is as good as another. But avoid the broken or
4018 # incompatible versions:
4019 # SysV /etc/install, /usr/sbin/install
4020 # SunOS /usr/etc/install
4021 # IRIX /sbin/install
4022 # AIX /bin/install
4023 # AmigaOS /C/install, which installs bootblocks on floppy discs
4024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4027 # OS/2's system install, which has a completely different semantic
4028 # ./install, which can be erroneously created by make from ./install.sh.
4029 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4031 if test -z "$INSTALL"; then
4032 if test "${ac_cv_path_install+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 # Account for people who put trailing slashes in PATH elements.
4041 case $as_dir/ in
4042 ./ | .// | /cC/* | \
4043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4045 /usr/ucb/* ) ;;
4046 *)
4047 # OSF1 and SCO ODT 3.0 have their own names for install.
4048 # Don't use installbsd from OSF since it installs stuff as root
4049 # by default.
4050 for ac_prog in ginstall scoinst install; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4053 if test $ac_prog = install &&
4054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4055 # AIX install. It has an incompatible calling convention.
4056 :
4057 elif test $ac_prog = install &&
4058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4059 # program-specific install script used by HP pwplus--don't use.
4060 :
4061 else
4062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4063 break 3
4064 fi
4065 fi
4066 done
4067 done
4068 ;;
4069 esac
4070 done
4071 IFS=$as_save_IFS
4072
4073
4074 fi
4075 if test "${ac_cv_path_install+set}" = set; then
4076 INSTALL=$ac_cv_path_install
4077 else
4078 # As a last resort, use the slow shell script. Don't cache a
4079 # value for INSTALL within a source directory, because that will
4080 # break other packages using the cache if that directory is
4081 # removed, or if the value is a relative name.
4082 INSTALL=$ac_install_sh
4083 fi
4084 fi
4085 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4086 echo "${ECHO_T}$INSTALL" >&6; }
4087
4088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4089 # It thinks the first close brace ends the variable substitution.
4090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4091
4092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4093
4094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4095
4096
4097
4098 # Check whether --enable-shared was given.
4099 if test "${enable_shared+set}" = set; then
4100 enableval=$enable_shared; p=${PACKAGE-default}
4101 case $enableval in
4102 yes) enable_shared=yes ;;
4103 no) enable_shared=no ;;
4104 *)
4105 enable_shared=no
4106 # Look at the argument we got. We use all the common list separators.
4107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4108 for pkg in $enableval; do
4109 IFS="$lt_save_ifs"
4110 if test "X$pkg" = "X$p"; then
4111 enable_shared=yes
4112 fi
4113 done
4114 IFS="$lt_save_ifs"
4115 ;;
4116 esac
4117 else
4118 enable_shared=yes
4119 fi
4120
4121
4122 # Check whether --enable-static was given.
4123 if test "${enable_static+set}" = set; then
4124 enableval=$enable_static; p=${PACKAGE-default}
4125 case $enableval in
4126 yes) enable_static=yes ;;
4127 no) enable_static=no ;;
4128 *)
4129 enable_static=no
4130 # Look at the argument we got. We use all the common list separators.
4131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4132 for pkg in $enableval; do
4133 IFS="$lt_save_ifs"
4134 if test "X$pkg" = "X$p"; then
4135 enable_static=yes
4136 fi
4137 done
4138 IFS="$lt_save_ifs"
4139 ;;
4140 esac
4141 else
4142 enable_static=yes
4143 fi
4144
4145
4146 # Check whether --enable-fast-install was given.
4147 if test "${enable_fast_install+set}" = set; then
4148 enableval=$enable_fast_install; p=${PACKAGE-default}
4149 case $enableval in
4150 yes) enable_fast_install=yes ;;
4151 no) enable_fast_install=no ;;
4152 *)
4153 enable_fast_install=no
4154 # Look at the argument we got. We use all the common list separators.
4155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4156 for pkg in $enableval; do
4157 IFS="$lt_save_ifs"
4158 if test "X$pkg" = "X$p"; then
4159 enable_fast_install=yes
4160 fi
4161 done
4162 IFS="$lt_save_ifs"
4163 ;;
4164 esac
4165 else
4166 enable_fast_install=yes
4167 fi
4168
4169
4170 # Make sure we can run config.sub.
4171 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4172 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4173 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4174 { (exit 1); exit 1; }; }
4175
4176 { echo "$as_me:$LINENO: checking build system type" >&5
4177 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4178 if test "${ac_cv_build+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 ac_build_alias=$build_alias
4182 test "x$ac_build_alias" = x &&
4183 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4184 test "x$ac_build_alias" = x &&
4185 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4186 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4187 { (exit 1); exit 1; }; }
4188 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4189 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4190 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4191 { (exit 1); exit 1; }; }
4192
4193 fi
4194 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4195 echo "${ECHO_T}$ac_cv_build" >&6; }
4196 case $ac_cv_build in
4197 *-*-*) ;;
4198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4199 echo "$as_me: error: invalid value of canonical build" >&2;}
4200 { (exit 1); exit 1; }; };;
4201 esac
4202 build=$ac_cv_build
4203 ac_save_IFS=$IFS; IFS='-'
4204 set x $ac_cv_build
4205 shift
4206 build_cpu=$1
4207 build_vendor=$2
4208 shift; shift
4209 # Remember, the first character of IFS is used to create $*,
4210 # except with old shells:
4211 build_os=$*
4212 IFS=$ac_save_IFS
4213 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4214
4215
4216 { echo "$as_me:$LINENO: checking host system type" >&5
4217 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4218 if test "${ac_cv_host+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test "x$host_alias" = x; then
4222 ac_cv_host=$ac_cv_build
4223 else
4224 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4225 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4226 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4227 { (exit 1); exit 1; }; }
4228 fi
4229
4230 fi
4231 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4232 echo "${ECHO_T}$ac_cv_host" >&6; }
4233 case $ac_cv_host in
4234 *-*-*) ;;
4235 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4236 echo "$as_me: error: invalid value of canonical host" >&2;}
4237 { (exit 1); exit 1; }; };;
4238 esac
4239 host=$ac_cv_host
4240 ac_save_IFS=$IFS; IFS='-'
4241 set x $ac_cv_host
4242 shift
4243 host_cpu=$1
4244 host_vendor=$2
4245 shift; shift
4246 # Remember, the first character of IFS is used to create $*,
4247 # except with old shells:
4248 host_os=$*
4249 IFS=$ac_save_IFS
4250 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4251
4252
4253 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4254 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4255 if test "${lt_cv_path_SED+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 # Loop through the user's path and test for sed and gsed.
4259 # Then use that list of sed's as ones to test for truncation.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for lt_ac_prog in sed gsed; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4268 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4269 fi
4270 done
4271 done
4272 done
4273 lt_ac_max=0
4274 lt_ac_count=0
4275 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4276 # along with /bin/sed that truncates output.
4277 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4278 test ! -f $lt_ac_sed && continue
4279 cat /dev/null > conftest.in
4280 lt_ac_count=0
4281 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4282 # Check for GNU sed and select it if it is found.
4283 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4284 lt_cv_path_SED=$lt_ac_sed
4285 break
4286 fi
4287 while true; do
4288 cat conftest.in conftest.in >conftest.tmp
4289 mv conftest.tmp conftest.in
4290 cp conftest.in conftest.nl
4291 echo >>conftest.nl
4292 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4293 cmp -s conftest.out conftest.nl || break
4294 # 10000 chars as input seems more than enough
4295 test $lt_ac_count -gt 10 && break
4296 lt_ac_count=`expr $lt_ac_count + 1`
4297 if test $lt_ac_count -gt $lt_ac_max; then
4298 lt_ac_max=$lt_ac_count
4299 lt_cv_path_SED=$lt_ac_sed
4300 fi
4301 done
4302 done
4303
4304 fi
4305
4306 SED=$lt_cv_path_SED
4307 { echo "$as_me:$LINENO: result: $SED" >&5
4308 echo "${ECHO_T}$SED" >&6; }
4309
4310 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4311 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4312 if test "${ac_cv_path_GREP+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 # Extract the first word of "grep ggrep" to use in msg output
4316 if test -z "$GREP"; then
4317 set dummy grep ggrep; ac_prog_name=$2
4318 if test "${ac_cv_path_GREP+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 ac_path_GREP_found=false
4322 # Loop through the user's path and test for each of PROGNAME-LIST
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_prog in grep ggrep; do
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4331 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4332 # Check for GNU ac_path_GREP and select it if it is found.
4333 # Check for GNU $ac_path_GREP
4334 case `"$ac_path_GREP" --version 2>&1` in
4335 *GNU*)
4336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4337 *)
4338 ac_count=0
4339 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4340 while :
4341 do
4342 cat "conftest.in" "conftest.in" >"conftest.tmp"
4343 mv "conftest.tmp" "conftest.in"
4344 cp "conftest.in" "conftest.nl"
4345 echo 'GREP' >> "conftest.nl"
4346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348 ac_count=`expr $ac_count + 1`
4349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4350 # Best one so far, save it but keep looking for a better one
4351 ac_cv_path_GREP="$ac_path_GREP"
4352 ac_path_GREP_max=$ac_count
4353 fi
4354 # 10*(2^10) chars as input seems more than enough
4355 test $ac_count -gt 10 && break
4356 done
4357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 esac
4359
4360
4361 $ac_path_GREP_found && break 3
4362 done
4363 done
4364
4365 done
4366 IFS=$as_save_IFS
4367
4368
4369 fi
4370
4371 GREP="$ac_cv_path_GREP"
4372 if test -z "$GREP"; then
4373 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4374 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4375 { (exit 1); exit 1; }; }
4376 fi
4377
4378 else
4379 ac_cv_path_GREP=$GREP
4380 fi
4381
4382
4383 fi
4384 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4385 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4387
4388
4389 { echo "$as_me:$LINENO: checking for egrep" >&5
4390 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_EGREP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4396 else
4397 # Extract the first word of "egrep" to use in msg output
4398 if test -z "$EGREP"; then
4399 set dummy egrep; ac_prog_name=$2
4400 if test "${ac_cv_path_EGREP+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 ac_path_EGREP_found=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_prog in egrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4417 *GNU*)
4418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4419 *)
4420 ac_count=0
4421 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4422 while :
4423 do
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 ac_count=`expr $ac_count + 1`
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP="$ac_path_EGREP"
4434 ac_path_EGREP_max=$ac_count
4435 fi
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4438 done
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440 esac
4441
4442
4443 $ac_path_EGREP_found && break 3
4444 done
4445 done
4446
4447 done
4448 IFS=$as_save_IFS
4449
4450
4451 fi
4452
4453 EGREP="$ac_cv_path_EGREP"
4454 if test -z "$EGREP"; then
4455 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4456 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4457 { (exit 1); exit 1; }; }
4458 fi
4459
4460 else
4461 ac_cv_path_EGREP=$EGREP
4462 fi
4463
4464
4465 fi
4466 fi
4467 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4468 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4469 EGREP="$ac_cv_path_EGREP"
4470
4471
4472
4473 # Check whether --with-gnu-ld was given.
4474 if test "${with_gnu_ld+set}" = set; then
4475 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4476 else
4477 with_gnu_ld=no
4478 fi
4479
4480 ac_prog=ld
4481 if test "$GCC" = yes; then
4482 # Check if gcc -print-prog-name=ld gives a path.
4483 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4484 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4485 case $host in
4486 *-*-mingw*)
4487 # gcc leaves a trailing carriage return which upsets mingw
4488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4489 *)
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4491 esac
4492 case $ac_prog in
4493 # Accept absolute paths.
4494 [\\/]* | ?:[\\/]*)
4495 re_direlt='/[^/][^/]*/\.\./'
4496 # Canonicalize the pathname of ld
4497 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4498 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4499 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4500 done
4501 test -z "$LD" && LD="$ac_prog"
4502 ;;
4503 "")
4504 # If it fails, then pretend we aren't using GCC.
4505 ac_prog=ld
4506 ;;
4507 *)
4508 # If it is relative, then search for the first ld in PATH.
4509 with_gnu_ld=unknown
4510 ;;
4511 esac
4512 elif test "$with_gnu_ld" = yes; then
4513 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4515 else
4516 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4518 fi
4519 if test "${lt_cv_path_LD+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 if test -z "$LD"; then
4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524 for ac_dir in $PATH; do
4525 IFS="$lt_save_ifs"
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4528 lt_cv_path_LD="$ac_dir/$ac_prog"
4529 # Check to see if the program is GNU ld. I'd rather use --version,
4530 # but apparently some variants of GNU ld only accept -v.
4531 # Break only if it was the GNU/non-GNU ld that we prefer.
4532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4533 *GNU* | *'with BFD'*)
4534 test "$with_gnu_ld" != no && break
4535 ;;
4536 *)
4537 test "$with_gnu_ld" != yes && break
4538 ;;
4539 esac
4540 fi
4541 done
4542 IFS="$lt_save_ifs"
4543 else
4544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4545 fi
4546 fi
4547
4548 LD="$lt_cv_path_LD"
4549 if test -n "$LD"; then
4550 { echo "$as_me:$LINENO: result: $LD" >&5
4551 echo "${ECHO_T}$LD" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4557 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4560 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4561 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565 case `$LD -v 2>&1 </dev/null` in
4566 *GNU* | *'with BFD'*)
4567 lt_cv_prog_gnu_ld=yes
4568 ;;
4569 *)
4570 lt_cv_prog_gnu_ld=no
4571 ;;
4572 esac
4573 fi
4574 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4575 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4576 with_gnu_ld=$lt_cv_prog_gnu_ld
4577
4578
4579 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4580 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4581 if test "${lt_cv_ld_reload_flag+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 lt_cv_ld_reload_flag='-r'
4585 fi
4586 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4587 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4588 reload_flag=$lt_cv_ld_reload_flag
4589 case $reload_flag in
4590 "" | " "*) ;;
4591 *) reload_flag=" $reload_flag" ;;
4592 esac
4593 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4594 case $host_os in
4595 darwin*)
4596 if test "$GCC" = yes; then
4597 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4598 else
4599 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4600 fi
4601 ;;
4602 esac
4603
4604 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4605 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4606 if test "${lt_cv_path_NM+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if test -n "$NM"; then
4610 # Let the user override the test.
4611 lt_cv_path_NM="$NM"
4612 else
4613 lt_nm_to_check="${ac_tool_prefix}nm"
4614 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4615 lt_nm_to_check="$lt_nm_to_check nm"
4616 fi
4617 for lt_tmp_nm in $lt_nm_to_check; do
4618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4619 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4620 IFS="$lt_save_ifs"
4621 test -z "$ac_dir" && ac_dir=.
4622 tmp_nm="$ac_dir/$lt_tmp_nm"
4623 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4624 # Check to see if the nm accepts a BSD-compat flag.
4625 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4626 # nm: unknown option "B" ignored
4627 # Tru64's nm complains that /dev/null is an invalid object file
4628 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4629 */dev/null* | *'Invalid file or object type'*)
4630 lt_cv_path_NM="$tmp_nm -B"
4631 break
4632 ;;
4633 *)
4634 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4635 */dev/null*)
4636 lt_cv_path_NM="$tmp_nm -p"
4637 break
4638 ;;
4639 *)
4640 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4641 continue # so that we can try to find one that supports BSD flags
4642 ;;
4643 esac
4644 ;;
4645 esac
4646 fi
4647 done
4648 IFS="$lt_save_ifs"
4649 done
4650 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4651 fi
4652 fi
4653 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4654 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4655 NM="$lt_cv_path_NM"
4656
4657 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4658 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4659 LN_S=$as_ln_s
4660 if test "$LN_S" = "ln -s"; then
4661 { echo "$as_me:$LINENO: result: yes" >&5
4662 echo "${ECHO_T}yes" >&6; }
4663 else
4664 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4665 echo "${ECHO_T}no, using $LN_S" >&6; }
4666 fi
4667
4668 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4669 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4670 if test "${lt_cv_deplibs_check_method+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 lt_cv_file_magic_cmd='$MAGIC_CMD'
4674 lt_cv_file_magic_test_file=
4675 lt_cv_deplibs_check_method='unknown'
4676 # Need to set the preceding variable on all platforms that support
4677 # interlibrary dependencies.
4678 # 'none' -- dependencies not supported.
4679 # `unknown' -- same as none, but documents that we really don't know.
4680 # 'pass_all' -- all dependencies passed with no checks.
4681 # 'test_compile' -- check by making test program.
4682 # 'file_magic [[regex]]' -- check by looking for files in library path
4683 # which responds to the $file_magic_cmd with a given extended regex.
4684 # If you have `file' or equivalent on your system and you're not sure
4685 # whether `pass_all' will *always* work, you probably want this one.
4686
4687 case $host_os in
4688 aix4* | aix5*)
4689 lt_cv_deplibs_check_method=pass_all
4690 ;;
4691
4692 beos*)
4693 lt_cv_deplibs_check_method=pass_all
4694 ;;
4695
4696 bsdi[45]*)
4697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4698 lt_cv_file_magic_cmd='/usr/bin/file -L'
4699 lt_cv_file_magic_test_file=/shlib/libc.so
4700 ;;
4701
4702 cygwin*)
4703 # func_win32_libid is a shell function defined in ltmain.sh
4704 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4705 lt_cv_file_magic_cmd='func_win32_libid'
4706 ;;
4707
4708 mingw* | pw32*)
4709 # Base MSYS/MinGW do not provide the 'file' command needed by
4710 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4711 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4712 lt_cv_file_magic_cmd='$OBJDUMP -f'
4713 ;;
4714
4715 darwin* | rhapsody*)
4716 lt_cv_deplibs_check_method=pass_all
4717 ;;
4718
4719 freebsd* | kfreebsd*-gnu | dragonfly*)
4720 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4721 case $host_cpu in
4722 i*86 )
4723 # Not sure whether the presence of OpenBSD here was a mistake.
4724 # Let's accept both of them until this is cleared up.
4725 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4726 lt_cv_file_magic_cmd=/usr/bin/file
4727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4728 ;;
4729 esac
4730 else
4731 lt_cv_deplibs_check_method=pass_all
4732 fi
4733 ;;
4734
4735 gnu*)
4736 lt_cv_deplibs_check_method=pass_all
4737 ;;
4738
4739 hpux10.20* | hpux11*)
4740 lt_cv_file_magic_cmd=/usr/bin/file
4741 case $host_cpu in
4742 ia64*)
4743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4744 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4745 ;;
4746 hppa*64*)
4747 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4748 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4749 ;;
4750 *)
4751 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4752 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4753 ;;
4754 esac
4755 ;;
4756
4757 interix3*)
4758 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4760 ;;
4761
4762 irix5* | irix6* | nonstopux*)
4763 case $LD in
4764 *-32|*"-32 ") libmagic=32-bit;;
4765 *-n32|*"-n32 ") libmagic=N32;;
4766 *-64|*"-64 ") libmagic=64-bit;;
4767 *) libmagic=never-match;;
4768 esac
4769 lt_cv_deplibs_check_method=pass_all
4770 ;;
4771
4772 # This must be Linux ELF.
4773 linux*)
4774 lt_cv_deplibs_check_method=pass_all
4775 ;;
4776
4777 netbsd*)
4778 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4780 else
4781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4782 fi
4783 ;;
4784
4785 newos6*)
4786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4787 lt_cv_file_magic_cmd=/usr/bin/file
4788 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4789 ;;
4790
4791 nto-qnx*)
4792 lt_cv_deplibs_check_method=unknown
4793 ;;
4794
4795 openbsd*)
4796 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4798 else
4799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4800 fi
4801 ;;
4802
4803 osf3* | osf4* | osf5*)
4804 lt_cv_deplibs_check_method=pass_all
4805 ;;
4806
4807 solaris*)
4808 lt_cv_deplibs_check_method=pass_all
4809 ;;
4810
4811 sysv4 | sysv4.3*)
4812 case $host_vendor in
4813 motorola)
4814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4816 ;;
4817 ncr)
4818 lt_cv_deplibs_check_method=pass_all
4819 ;;
4820 sequent)
4821 lt_cv_file_magic_cmd='/bin/file'
4822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4823 ;;
4824 sni)
4825 lt_cv_file_magic_cmd='/bin/file'
4826 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4827 lt_cv_file_magic_test_file=/lib/libc.so
4828 ;;
4829 siemens)
4830 lt_cv_deplibs_check_method=pass_all
4831 ;;
4832 pc)
4833 lt_cv_deplibs_check_method=pass_all
4834 ;;
4835 esac
4836 ;;
4837
4838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841 esac
4842
4843 fi
4844 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4845 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4846 file_magic_cmd=$lt_cv_file_magic_cmd
4847 deplibs_check_method=$lt_cv_deplibs_check_method
4848 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4849
4850
4851
4852
4853 # If no C compiler was specified, use CC.
4854 LTCC=${LTCC-"$CC"}
4855
4856 # If no C compiler flags were specified, use CFLAGS.
4857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4858
4859 # Allow CC to be a program name with arguments.
4860 compiler=$CC
4861
4862
4863 # Check whether --enable-libtool-lock was given.
4864 if test "${enable_libtool_lock+set}" = set; then
4865 enableval=$enable_libtool_lock;
4866 fi
4867
4868 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4869
4870 # Some flags need to be propagated to the compiler or linker for good
4871 # libtool support.
4872 case $host in
4873 ia64-*-hpux*)
4874 # Find out which ABI we are using.
4875 echo 'int i;' > conftest.$ac_ext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; then
4881 case `/usr/bin/file conftest.$ac_objext` in
4882 *ELF-32*)
4883 HPUX_IA64_MODE="32"
4884 ;;
4885 *ELF-64*)
4886 HPUX_IA64_MODE="64"
4887 ;;
4888 esac
4889 fi
4890 rm -rf conftest*
4891 ;;
4892 *-*-irix6*)
4893 # Find out which ABI we are using.
4894 echo '#line 4894 "configure"' > conftest.$ac_ext
4895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; then
4900 if test "$lt_cv_prog_gnu_ld" = yes; then
4901 case `/usr/bin/file conftest.$ac_objext` in
4902 *32-bit*)
4903 LD="${LD-ld} -melf32bsmip"
4904 ;;
4905 *N32*)
4906 LD="${LD-ld} -melf32bmipn32"
4907 ;;
4908 *64-bit*)
4909 LD="${LD-ld} -melf64bmip"
4910 ;;
4911 esac
4912 else
4913 case `/usr/bin/file conftest.$ac_objext` in
4914 *32-bit*)
4915 LD="${LD-ld} -32"
4916 ;;
4917 *N32*)
4918 LD="${LD-ld} -n32"
4919 ;;
4920 *64-bit*)
4921 LD="${LD-ld} -64"
4922 ;;
4923 esac
4924 fi
4925 fi
4926 rm -rf conftest*
4927 ;;
4928
4929 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4930 # Find out which ABI we are using.
4931 echo 'int i;' > conftest.$ac_ext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; then
4937 case `/usr/bin/file conftest.o` in
4938 *32-bit*)
4939 case $host in
4940 x86_64-*linux*)
4941 LD="${LD-ld} -m elf_i386"
4942 ;;
4943 ppc64-*linux*|powerpc64-*linux*)
4944 LD="${LD-ld} -m elf32ppclinux"
4945 ;;
4946 s390x-*linux*)
4947 LD="${LD-ld} -m elf_s390"
4948 ;;
4949 sparc64-*linux*)
4950 LD="${LD-ld} -m elf32_sparc"
4951 ;;
4952 esac
4953 ;;
4954 *64-bit*)
4955 case $host in
4956 x86_64-*linux*)
4957 LD="${LD-ld} -m elf_x86_64"
4958 ;;
4959 ppc*-*linux*|powerpc*-*linux*)
4960 LD="${LD-ld} -m elf64ppc"
4961 ;;
4962 s390*-*linux*)
4963 LD="${LD-ld} -m elf64_s390"
4964 ;;
4965 sparc*-*linux*)
4966 LD="${LD-ld} -m elf64_sparc"
4967 ;;
4968 esac
4969 ;;
4970 esac
4971 fi
4972 rm -rf conftest*
4973 ;;
4974
4975 *-*-sco3.2v5*)
4976 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4977 SAVE_CFLAGS="$CFLAGS"
4978 CFLAGS="$CFLAGS -belf"
4979 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4980 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4981 if test "${lt_cv_cc_needs_belf+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 ac_ext=c
4985 ac_cpp='$CPP $CPPFLAGS'
4986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4989
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996
4997 int
4998 main ()
4999 {
5000
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext conftest$ac_exeext
5006 if { (ac_try="$ac_link"
5007 case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_link") 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest$ac_exeext &&
5022 $as_test_x conftest$ac_exeext; then
5023 lt_cv_cc_needs_belf=yes
5024 else
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 lt_cv_cc_needs_belf=no
5029 fi
5030
5031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5032 conftest$ac_exeext conftest.$ac_ext
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039 fi
5040 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5041 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5044 CFLAGS="$SAVE_CFLAGS"
5045 fi
5046 ;;
5047 sparc*-*solaris*)
5048 # Find out which ABI we are using.
5049 echo 'int i;' > conftest.$ac_ext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; then
5055 case `/usr/bin/file conftest.o` in
5056 *64-bit*)
5057 case $lt_cv_prog_gnu_ld in
5058 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5059 *) LD="${LD-ld} -64" ;;
5060 esac
5061 ;;
5062 esac
5063 fi
5064 rm -rf conftest*
5065 ;;
5066
5067 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5068 if test -n "$ac_tool_prefix"; then
5069 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5070 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 if test -n "$DLLTOOL"; then
5077 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090 done
5091 done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 DLLTOOL=$ac_cv_prog_DLLTOOL
5097 if test -n "$DLLTOOL"; then
5098 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5099 echo "${ECHO_T}$DLLTOOL" >&6; }
5100 else
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105
5106 fi
5107 if test -z "$ac_cv_prog_DLLTOOL"; then
5108 ac_ct_DLLTOOL=$DLLTOOL
5109 # Extract the first word of "dlltool", so it can be a program name with args.
5110 set dummy dlltool; ac_word=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 if test -n "$ac_ct_DLLTOOL"; then
5117 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5137 if test -n "$ac_ct_DLLTOOL"; then
5138 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5139 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5140 else
5141 { echo "$as_me:$LINENO: result: no" >&5
5142 echo "${ECHO_T}no" >&6; }
5143 fi
5144
5145 if test "x$ac_ct_DLLTOOL" = x; then
5146 DLLTOOL="false"
5147 else
5148 case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5151 whose name does not start with the host triplet. If you think this
5152 configuration is useful to you, please write to autoconf@gnu.org." >&5
5153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5154 whose name does not start with the host triplet. If you think this
5155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5156 ac_tool_warned=yes ;;
5157 esac
5158 DLLTOOL=$ac_ct_DLLTOOL
5159 fi
5160 else
5161 DLLTOOL="$ac_cv_prog_DLLTOOL"
5162 fi
5163
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}as; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_prog_AS+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -n "$AS"; then
5173 ac_cv_prog_AS="$AS" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_AS="${ac_tool_prefix}as"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 AS=$ac_cv_prog_AS
5193 if test -n "$AS"; then
5194 { echo "$as_me:$LINENO: result: $AS" >&5
5195 echo "${ECHO_T}$AS" >&6; }
5196 else
5197 { echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6; }
5199 fi
5200
5201
5202 fi
5203 if test -z "$ac_cv_prog_AS"; then
5204 ac_ct_AS=$AS
5205 # Extract the first word of "as", so it can be a program name with args.
5206 set dummy as; ac_word=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 if test -n "$ac_ct_AS"; then
5213 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_ac_ct_AS="as"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5233 if test -n "$ac_ct_AS"; then
5234 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5235 echo "${ECHO_T}$ac_ct_AS" >&6; }
5236 else
5237 { echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6; }
5239 fi
5240
5241 if test "x$ac_ct_AS" = x; then
5242 AS="false"
5243 else
5244 case $cross_compiling:$ac_tool_warned in
5245 yes:)
5246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5247 whose name does not start with the host triplet. If you think this
5248 configuration is useful to you, please write to autoconf@gnu.org." >&5
5249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5250 whose name does not start with the host triplet. If you think this
5251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5252 ac_tool_warned=yes ;;
5253 esac
5254 AS=$ac_ct_AS
5255 fi
5256 else
5257 AS="$ac_cv_prog_AS"
5258 fi
5259
5260 if test -n "$ac_tool_prefix"; then
5261 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5262 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5265 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268 if test -n "$OBJDUMP"; then
5269 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 OBJDUMP=$ac_cv_prog_OBJDUMP
5289 if test -n "$OBJDUMP"; then
5290 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5291 echo "${ECHO_T}$OBJDUMP" >&6; }
5292 else
5293 { echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6; }
5295 fi
5296
5297
5298 fi
5299 if test -z "$ac_cv_prog_OBJDUMP"; then
5300 ac_ct_OBJDUMP=$OBJDUMP
5301 # Extract the first word of "objdump", so it can be a program name with args.
5302 set dummy objdump; ac_word=$2
5303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5305 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 if test -n "$ac_ct_OBJDUMP"; then
5309 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322 done
5323 done
5324 IFS=$as_save_IFS
5325
5326 fi
5327 fi
5328 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5329 if test -n "$ac_ct_OBJDUMP"; then
5330 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5331 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5332 else
5333 { echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6; }
5335 fi
5336
5337 if test "x$ac_ct_OBJDUMP" = x; then
5338 OBJDUMP="false"
5339 else
5340 case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5343 whose name does not start with the host triplet. If you think this
5344 configuration is useful to you, please write to autoconf@gnu.org." >&5
5345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5346 whose name does not start with the host triplet. If you think this
5347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350 OBJDUMP=$ac_ct_OBJDUMP
5351 fi
5352 else
5353 OBJDUMP="$ac_cv_prog_OBJDUMP"
5354 fi
5355
5356 ;;
5357
5358 esac
5359
5360 need_locks="$enable_libtool_lock"
5361
5362
5363 ac_ext=c
5364 ac_cpp='$CPP $CPPFLAGS'
5365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5368 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5369 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5370 # On Suns, sometimes $CPP names a directory.
5371 if test -n "$CPP" && test -d "$CPP"; then
5372 CPP=
5373 fi
5374 if test -z "$CPP"; then
5375 if test "${ac_cv_prog_CPP+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 # Double quotes because CPP needs to be expanded
5379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5380 do
5381 ac_preproc_ok=false
5382 for ac_c_preproc_warn_flag in '' yes
5383 do
5384 # Use a header file that comes with gcc, so configuring glibc
5385 # with a fresh cross-compiler works.
5386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 # <limits.h> exists even on freestanding compilers.
5388 # On the NeXT, cc -E runs the code through the compiler's parser,
5389 # not just through cpp. "Syntax error" is here to catch this case.
5390 cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 #ifdef __STDC__
5397 # include <limits.h>
5398 #else
5399 # include <assert.h>
5400 #endif
5401 Syntax error
5402 _ACEOF
5403 if { (ac_try="$ac_cpp conftest.$ac_ext"
5404 case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } >/dev/null && {
5416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5417 test ! -s conftest.err
5418 }; then
5419 :
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 # Broken: fails on valid input.
5425 continue
5426 fi
5427
5428 rm -f conftest.err conftest.$ac_ext
5429
5430 # OK, works on sane cases. Now check whether nonexistent headers
5431 # can be detected and how.
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <ac_nonexistent.h>
5439 _ACEOF
5440 if { (ac_try="$ac_cpp conftest.$ac_ext"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null && {
5453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 }; then
5456 # Broken: success on invalid input.
5457 continue
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 # Passes both tests.
5463 ac_preproc_ok=:
5464 break
5465 fi
5466
5467 rm -f conftest.err conftest.$ac_ext
5468
5469 done
5470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5471 rm -f conftest.err conftest.$ac_ext
5472 if $ac_preproc_ok; then
5473 break
5474 fi
5475
5476 done
5477 ac_cv_prog_CPP=$CPP
5478
5479 fi
5480 CPP=$ac_cv_prog_CPP
5481 else
5482 ac_cv_prog_CPP=$CPP
5483 fi
5484 { echo "$as_me:$LINENO: result: $CPP" >&5
5485 echo "${ECHO_T}$CPP" >&6; }
5486 ac_preproc_ok=false
5487 for ac_c_preproc_warn_flag in '' yes
5488 do
5489 # Use a header file that comes with gcc, so configuring glibc
5490 # with a fresh cross-compiler works.
5491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492 # <limits.h> exists even on freestanding compilers.
5493 # On the NeXT, cc -E runs the code through the compiler's parser,
5494 # not just through cpp. "Syntax error" is here to catch this case.
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #ifdef __STDC__
5502 # include <limits.h>
5503 #else
5504 # include <assert.h>
5505 #endif
5506 Syntax error
5507 _ACEOF
5508 if { (ac_try="$ac_cpp conftest.$ac_ext"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } >/dev/null && {
5521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 }; then
5524 :
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 # Broken: fails on valid input.
5530 continue
5531 fi
5532
5533 rm -f conftest.err conftest.$ac_ext
5534
5535 # OK, works on sane cases. Now check whether nonexistent headers
5536 # can be detected and how.
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5543 #include <ac_nonexistent.h>
5544 _ACEOF
5545 if { (ac_try="$ac_cpp conftest.$ac_ext"
5546 case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549 esac
5550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } >/dev/null && {
5558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5559 test ! -s conftest.err
5560 }; then
5561 # Broken: success on invalid input.
5562 continue
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 # Passes both tests.
5568 ac_preproc_ok=:
5569 break
5570 fi
5571
5572 rm -f conftest.err conftest.$ac_ext
5573
5574 done
5575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5576 rm -f conftest.err conftest.$ac_ext
5577 if $ac_preproc_ok; then
5578 :
5579 else
5580 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5581 See \`config.log' for more details." >&5
5582 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5583 See \`config.log' for more details." >&2;}
5584 { (exit 1); exit 1; }; }
5585 fi
5586
5587 ac_ext=c
5588 ac_cpp='$CPP $CPPFLAGS'
5589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592
5593
5594 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5595 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5596 if test "${ac_cv_header_stdc+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #include <stdlib.h>
5606 #include <stdarg.h>
5607 #include <string.h>
5608 #include <float.h>
5609
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_header_stdc=yes
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_cv_header_stdc=no
5641 fi
5642
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644
5645 if test $ac_cv_header_stdc = yes; then
5646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <string.h>
5654
5655 _ACEOF
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "memchr" >/dev/null 2>&1; then
5658 :
5659 else
5660 ac_cv_header_stdc=no
5661 fi
5662 rm -f conftest*
5663
5664 fi
5665
5666 if test $ac_cv_header_stdc = yes; then
5667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <stdlib.h>
5675
5676 _ACEOF
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 $EGREP "free" >/dev/null 2>&1; then
5679 :
5680 else
5681 ac_cv_header_stdc=no
5682 fi
5683 rm -f conftest*
5684
5685 fi
5686
5687 if test $ac_cv_header_stdc = yes; then
5688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5689 if test "$cross_compiling" = yes; then
5690 :
5691 else
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #include <ctype.h>
5699 #include <stdlib.h>
5700 #if ((' ' & 0x0FF) == 0x020)
5701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5703 #else
5704 # define ISLOWER(c) \
5705 (('a' <= (c) && (c) <= 'i') \
5706 || ('j' <= (c) && (c) <= 'r') \
5707 || ('s' <= (c) && (c) <= 'z'))
5708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5709 #endif
5710
5711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712 int
5713 main ()
5714 {
5715 int i;
5716 for (i = 0; i < 256; i++)
5717 if (XOR (islower (i), ISLOWER (i))
5718 || toupper (i) != TOUPPER (i))
5719 return 2;
5720 return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest$ac_exeext
5724 if { (ac_try="$ac_link"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_link") 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5734 { (case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_try") 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 :
5744 else
5745 echo "$as_me: program exited with status $ac_status" >&5
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 ( exit $ac_status )
5750 ac_cv_header_stdc=no
5751 fi
5752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5753 fi
5754
5755
5756 fi
5757 fi
5758 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5759 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5760 if test $ac_cv_header_stdc = yes; then
5761
5762 cat >>confdefs.h <<\_ACEOF
5763 #define STDC_HEADERS 1
5764 _ACEOF
5765
5766 fi
5767
5768 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5779 inttypes.h stdint.h unistd.h
5780 do
5781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794
5795 #include <$ac_header>
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 eval "$as_ac_Header=yes"
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819 eval "$as_ac_Header=no"
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824 ac_res=`eval echo '${'$as_ac_Header'}'`
5825 { echo "$as_me:$LINENO: result: $ac_res" >&5
5826 echo "${ECHO_T}$ac_res" >&6; }
5827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5828 cat >>confdefs.h <<_ACEOF
5829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5830 _ACEOF
5831
5832 fi
5833
5834 done
5835
5836
5837
5838 for ac_header in dlfcn.h
5839 do
5840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 fi
5847 ac_res=`eval echo '${'$as_ac_Header'}'`
5848 { echo "$as_me:$LINENO: result: $ac_res" >&5
5849 echo "${ECHO_T}$ac_res" >&6; }
5850 else
5851 # Is the header compilable?
5852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5854 cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 $ac_includes_default
5861 #include <$ac_header>
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5865 case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && {
5877 test -z "$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
5880 ac_header_compiler=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_header_compiler=no
5886 fi
5887
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5890 echo "${ECHO_T}$ac_header_compiler" >&6; }
5891
5892 # Is the header present?
5893 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <$ac_header>
5902 _ACEOF
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } >/dev/null && {
5916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 }; then
5919 ac_header_preproc=yes
5920 else
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924 ac_header_preproc=no
5925 fi
5926
5927 rm -f conftest.err conftest.$ac_ext
5928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5929 echo "${ECHO_T}$ac_header_preproc" >&6; }
5930
5931 # So? What about this header?
5932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5933 yes:no: )
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5938 ac_header_preproc=yes
5939 ;;
5940 no:yes:* )
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5953
5954 ;;
5955 esac
5956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 eval "$as_ac_Header=\$ac_header_preproc"
5962 fi
5963 ac_res=`eval echo '${'$as_ac_Header'}'`
5964 { echo "$as_me:$LINENO: result: $ac_res" >&5
5965 echo "${ECHO_T}$ac_res" >&6; }
5966
5967 fi
5968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5969 cat >>confdefs.h <<_ACEOF
5970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5971 _ACEOF
5972
5973 fi
5974
5975 done
5976
5977
5978
5979 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5980 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5981 (test "X$CXX" != "Xg++"))) ; then
5982 ac_ext=cpp
5983 ac_cpp='$CXXCPP $CPPFLAGS'
5984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5987 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5988 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5989 if test -z "$CXXCPP"; then
5990 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 # Double quotes because CXXCPP needs to be expanded
5994 for CXXCPP in "$CXX -E" "/lib/cpp"
5995 do
5996 ac_preproc_ok=false
5997 for ac_cxx_preproc_warn_flag in '' yes
5998 do
5999 # Use a header file that comes with gcc, so configuring glibc
6000 # with a fresh cross-compiler works.
6001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6002 # <limits.h> exists even on freestanding compilers.
6003 # On the NeXT, cc -E runs the code through the compiler's parser,
6004 # not just through cpp. "Syntax error" is here to catch this case.
6005 cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h. */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #ifdef __STDC__
6012 # include <limits.h>
6013 #else
6014 # include <assert.h>
6015 #endif
6016 Syntax error
6017 _ACEOF
6018 if { (ac_try="$ac_cpp conftest.$ac_ext"
6019 case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022 esac
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6025 ac_status=$?
6026 grep -v '^ *+' conftest.er1 >conftest.err
6027 rm -f conftest.er1
6028 cat conftest.err >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } >/dev/null && {
6031 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6032 test ! -s conftest.err
6033 }; then
6034 :
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 # Broken: fails on valid input.
6040 continue
6041 fi
6042
6043 rm -f conftest.err conftest.$ac_ext
6044
6045 # OK, works on sane cases. Now check whether nonexistent headers
6046 # can be detected and how.
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <ac_nonexistent.h>
6054 _ACEOF
6055 if { (ac_try="$ac_cpp conftest.$ac_ext"
6056 case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null && {
6068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6069 test ! -s conftest.err
6070 }; then
6071 # Broken: success on invalid input.
6072 continue
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 # Passes both tests.
6078 ac_preproc_ok=:
6079 break
6080 fi
6081
6082 rm -f conftest.err conftest.$ac_ext
6083
6084 done
6085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6086 rm -f conftest.err conftest.$ac_ext
6087 if $ac_preproc_ok; then
6088 break
6089 fi
6090
6091 done
6092 ac_cv_prog_CXXCPP=$CXXCPP
6093
6094 fi
6095 CXXCPP=$ac_cv_prog_CXXCPP
6096 else
6097 ac_cv_prog_CXXCPP=$CXXCPP
6098 fi
6099 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6100 echo "${ECHO_T}$CXXCPP" >&6; }
6101 ac_preproc_ok=false
6102 for ac_cxx_preproc_warn_flag in '' yes
6103 do
6104 # Use a header file that comes with gcc, so configuring glibc
6105 # with a fresh cross-compiler works.
6106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107 # <limits.h> exists even on freestanding compilers.
6108 # On the NeXT, cc -E runs the code through the compiler's parser,
6109 # not just through cpp. "Syntax error" is here to catch this case.
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #ifdef __STDC__
6117 # include <limits.h>
6118 #else
6119 # include <assert.h>
6120 #endif
6121 Syntax error
6122 _ACEOF
6123 if { (ac_try="$ac_cpp conftest.$ac_ext"
6124 case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } >/dev/null && {
6136 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6137 test ! -s conftest.err
6138 }; then
6139 :
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 # Broken: fails on valid input.
6145 continue
6146 fi
6147
6148 rm -f conftest.err conftest.$ac_ext
6149
6150 # OK, works on sane cases. Now check whether nonexistent headers
6151 # can be detected and how.
6152 cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 #include <ac_nonexistent.h>
6159 _ACEOF
6160 if { (ac_try="$ac_cpp conftest.$ac_ext"
6161 case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } >/dev/null && {
6173 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6174 test ! -s conftest.err
6175 }; then
6176 # Broken: success on invalid input.
6177 continue
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182 # Passes both tests.
6183 ac_preproc_ok=:
6184 break
6185 fi
6186
6187 rm -f conftest.err conftest.$ac_ext
6188
6189 done
6190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6191 rm -f conftest.err conftest.$ac_ext
6192 if $ac_preproc_ok; then
6193 :
6194 else
6195 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6198 See \`config.log' for more details." >&2;}
6199 { (exit 1); exit 1; }; }
6200 fi
6201
6202 ac_ext=cpp
6203 ac_cpp='$CXXCPP $CPPFLAGS'
6204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6207
6208 fi
6209
6210
6211 ac_ext=f
6212 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6213 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6215 if test -n "$ac_tool_prefix"; then
6216 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6217 do
6218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222 if test "${ac_cv_prog_F77+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 if test -n "$F77"; then
6226 ac_cv_prog_F77="$F77" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239 done
6240 done
6241 IFS=$as_save_IFS
6242
6243 fi
6244 fi
6245 F77=$ac_cv_prog_F77
6246 if test -n "$F77"; then
6247 { echo "$as_me:$LINENO: result: $F77" >&5
6248 echo "${ECHO_T}$F77" >&6; }
6249 else
6250 { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6252 fi
6253
6254
6255 test -n "$F77" && break
6256 done
6257 fi
6258 if test -z "$F77"; then
6259 ac_ct_F77=$F77
6260 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6261 do
6262 # Extract the first word of "$ac_prog", so it can be a program name with args.
6263 set dummy $ac_prog; ac_word=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 if test -n "$ac_ct_F77"; then
6270 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_F77="$ac_prog"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6290 if test -n "$ac_ct_F77"; then
6291 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6292 echo "${ECHO_T}$ac_ct_F77" >&6; }
6293 else
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6296 fi
6297
6298
6299 test -n "$ac_ct_F77" && break
6300 done
6301
6302 if test "x$ac_ct_F77" = x; then
6303 F77=""
6304 else
6305 case $cross_compiling:$ac_tool_warned in
6306 yes:)
6307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6308 whose name does not start with the host triplet. If you think this
6309 configuration is useful to you, please write to autoconf@gnu.org." >&5
6310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6311 whose name does not start with the host triplet. If you think this
6312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315 F77=$ac_ct_F77
6316 fi
6317 fi
6318
6319
6320 # Provide some information about the compiler.
6321 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6322 ac_compiler=`set X $ac_compile; echo $2`
6323 { (ac_try="$ac_compiler --version >&5"
6324 case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_compiler --version >&5") 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }
6333 { (ac_try="$ac_compiler -v >&5"
6334 case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler -v >&5") 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343 { (ac_try="$ac_compiler -V >&5"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -V >&5") 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353 rm -f a.out
6354
6355 # If we don't use `.F' as extension, the preprocessor is not run on the
6356 # input file. (Note that this only needs to work for GNU compilers.)
6357 ac_save_ext=$ac_ext
6358 ac_ext=F
6359 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6360 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6361 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 program main
6366 #ifndef __GNUC__
6367 choke me
6368 #endif
6369
6370 end
6371 _ACEOF
6372 rm -f conftest.$ac_objext
6373 if { (ac_try="$ac_compile"
6374 case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377 esac
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_compile") 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && {
6386 test -z "$ac_f77_werror_flag" ||
6387 test ! -s conftest.err
6388 } && test -s conftest.$ac_objext; then
6389 ac_compiler_gnu=yes
6390 else
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394 ac_compiler_gnu=no
6395 fi
6396
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6399
6400 fi
6401 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6402 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6403 ac_ext=$ac_save_ext
6404 ac_test_FFLAGS=${FFLAGS+set}
6405 ac_save_FFLAGS=$FFLAGS
6406 FFLAGS=
6407 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6408 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6409 if test "${ac_cv_prog_f77_g+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 FFLAGS=-g
6413 cat >conftest.$ac_ext <<_ACEOF
6414 program main
6415
6416 end
6417 _ACEOF
6418 rm -f conftest.$ac_objext
6419 if { (ac_try="$ac_compile"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_compile") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_f77_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest.$ac_objext; then
6435 ac_cv_prog_f77_g=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 ac_cv_prog_f77_g=no
6441 fi
6442
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444
6445 fi
6446 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6447 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6448 if test "$ac_test_FFLAGS" = set; then
6449 FFLAGS=$ac_save_FFLAGS
6450 elif test $ac_cv_prog_f77_g = yes; then
6451 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6452 FFLAGS="-g -O2"
6453 else
6454 FFLAGS="-g"
6455 fi
6456 else
6457 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6458 FFLAGS="-O2"
6459 else
6460 FFLAGS=
6461 fi
6462 fi
6463
6464 G77=`test $ac_compiler_gnu = yes && echo yes`
6465 ac_ext=c
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470
6471
6472
6473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6474
6475 # find the maximum length of command line arguments
6476 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6477 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6478 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 i=0
6482 teststring="ABCD"
6483
6484 case $build_os in
6485 msdosdjgpp*)
6486 # On DJGPP, this test can blow up pretty badly due to problems in libc
6487 # (any single argument exceeding 2000 bytes causes a buffer overrun
6488 # during glob expansion). Even if it were fixed, the result of this
6489 # check would be larger than it should be.
6490 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6491 ;;
6492
6493 gnu*)
6494 # Under GNU Hurd, this test is not required because there is
6495 # no limit to the length of command line arguments.
6496 # Libtool will interpret -1 as no limit whatsoever
6497 lt_cv_sys_max_cmd_len=-1;
6498 ;;
6499
6500 cygwin* | mingw*)
6501 # On Win9x/ME, this test blows up -- it succeeds, but takes
6502 # about 5 minutes as the teststring grows exponentially.
6503 # Worse, since 9x/ME are not pre-emptively multitasking,
6504 # you end up with a "frozen" computer, even though with patience
6505 # the test eventually succeeds (with a max line length of 256k).
6506 # Instead, let's just punt: use the minimum linelength reported by
6507 # all of the supported platforms: 8192 (on NT/2K/XP).
6508 lt_cv_sys_max_cmd_len=8192;
6509 ;;
6510
6511 amigaos*)
6512 # On AmigaOS with pdksh, this test takes hours, literally.
6513 # So we just punt and use a minimum line length of 8192.
6514 lt_cv_sys_max_cmd_len=8192;
6515 ;;
6516
6517 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6518 # This has been around since 386BSD, at least. Likely further.
6519 if test -x /sbin/sysctl; then
6520 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6521 elif test -x /usr/sbin/sysctl; then
6522 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6523 else
6524 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6525 fi
6526 # And add a safety zone
6527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6529 ;;
6530
6531 interix*)
6532 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6533 lt_cv_sys_max_cmd_len=196608
6534 ;;
6535
6536 osf*)
6537 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6538 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6539 # nice to cause kernel panics so lets avoid the loop below.
6540 # First set a reasonable default.
6541 lt_cv_sys_max_cmd_len=16384
6542 #
6543 if test -x /sbin/sysconfig; then
6544 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6545 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6546 esac
6547 fi
6548 ;;
6549 sco3.2v5*)
6550 lt_cv_sys_max_cmd_len=102400
6551 ;;
6552 sysv5* | sco5v6* | sysv4.2uw2*)
6553 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6554 if test -n "$kargmax"; then
6555 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6556 else
6557 lt_cv_sys_max_cmd_len=32768
6558 fi
6559 ;;
6560 *)
6561 # If test is not a shell built-in, we'll probably end up computing a
6562 # maximum length that is only half of the actual maximum length, but
6563 # we can't tell.
6564 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6565 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6566 = "XX$teststring") >/dev/null 2>&1 &&
6567 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6568 lt_cv_sys_max_cmd_len=$new_result &&
6569 test $i != 17 # 1/2 MB should be enough
6570 do
6571 i=`expr $i + 1`
6572 teststring=$teststring$teststring
6573 done
6574 teststring=
6575 # Add a significant safety factor because C++ compilers can tack on massive
6576 # amounts of additional arguments before passing them to the linker.
6577 # It appears as though 1/2 is a usable value.
6578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6579 ;;
6580 esac
6581
6582 fi
6583
6584 if test -n $lt_cv_sys_max_cmd_len ; then
6585 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6586 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6587 else
6588 { echo "$as_me:$LINENO: result: none" >&5
6589 echo "${ECHO_T}none" >&6; }
6590 fi
6591
6592
6593
6594
6595 # Check for command to grab the raw symbol name followed by C symbol from nm.
6596 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6597 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6598 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601
6602 # These are sane defaults that work on at least a few old systems.
6603 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6604
6605 # Character class describing NM global symbol codes.
6606 symcode='[BCDEGRST]'
6607
6608 # Regexp to match symbols that can be accessed directly from C.
6609 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6610
6611 # Transform an extracted symbol line into a proper C declaration
6612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6613
6614 # Transform an extracted symbol line into symbol name and symbol address
6615 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6616
6617 # Define system-specific variables.
6618 case $host_os in
6619 aix*)
6620 symcode='[BCDT]'
6621 ;;
6622 cygwin* | mingw* | pw32*)
6623 symcode='[ABCDGISTW]'
6624 ;;
6625 hpux*) # Its linker distinguishes data from code symbols
6626 if test "$host_cpu" = ia64; then
6627 symcode='[ABCDEGRST]'
6628 fi
6629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6630 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6631 ;;
6632 linux*)
6633 if test "$host_cpu" = ia64; then
6634 symcode='[ABCDGIRSTW]'
6635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6637 fi
6638 ;;
6639 irix* | nonstopux*)
6640 symcode='[BCDEGRST]'
6641 ;;
6642 osf*)
6643 symcode='[BCDEGQRST]'
6644 ;;
6645 solaris*)
6646 symcode='[BDRT]'
6647 ;;
6648 sco3.2v5*)
6649 symcode='[DT]'
6650 ;;
6651 sysv4.2uw2*)
6652 symcode='[DT]'
6653 ;;
6654 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6655 symcode='[ABDT]'
6656 ;;
6657 sysv4)
6658 symcode='[DFNSTU]'