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

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


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