configure revision 1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for file 5.07.
4 #
5 # Report bugs to <christos (at] astron.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$lt_ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 ECHO=${lt_ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $ECHO works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<_LT_EOF
584 $*
585 _LT_EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$lt_ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
619 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 ECHO="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$ECHO" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 ECHO='print -r'
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 ECHO='printf %s\n'
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673 then
674 break
675 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 ECHO=echo
686 fi
687 fi
688 fi
689 fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 lt_ECHO=$ECHO
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 exec 7<&0 </dev/null 6>&1
704
705 # Name of the host.
706 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707 # so uname gets run too.
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710 #
711 # Initializations.
712 #
713 ac_default_prefix=/usr/local
714 ac_clean_files=
715 ac_config_libobj_dir=.
716 LIBOBJS=
717 cross_compiling=no
718 subdirs=
719 MFLAGS=
720 MAKEFLAGS=
721 SHELL=${CONFIG_SHELL-/bin/sh}
722
723 # Identity of this package.
724 PACKAGE_NAME='file'
725 PACKAGE_TARNAME='file'
726 PACKAGE_VERSION='5.07'
727 PACKAGE_STRING='file 5.07'
728 PACKAGE_BUGREPORT='christos (at] astron.com'
729
730 # Factoring default headers for most tests.
731 ac_includes_default="\
732 #include <stdio.h>
733 #ifdef HAVE_SYS_TYPES_H
734 # include <sys/types.h>
735 #endif
736 #ifdef HAVE_SYS_STAT_H
737 # include <sys/stat.h>
738 #endif
739 #ifdef STDC_HEADERS
740 # include <stdlib.h>
741 # include <stddef.h>
742 #else
743 # ifdef HAVE_STDLIB_H
744 # include <stdlib.h>
745 # endif
746 #endif
747 #ifdef HAVE_STRING_H
748 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749 # include <memory.h>
750 # endif
751 # include <string.h>
752 #endif
753 #ifdef HAVE_STRINGS_H
754 # include <strings.h>
755 #endif
756 #ifdef HAVE_INTTYPES_H
757 # include <inttypes.h>
758 #endif
759 #ifdef HAVE_STDINT_H
760 # include <stdint.h>
761 #endif
762 #ifdef HAVE_UNISTD_H
763 # include <unistd.h>
764 #endif"
765
766 ac_subst_vars='SHELL
767 PATH_SEPARATOR
768 PACKAGE_NAME
769 PACKAGE_TARNAME
770 PACKAGE_VERSION
771 PACKAGE_STRING
772 PACKAGE_BUGREPORT
773 exec_prefix
774 prefix
775 program_transform_name
776 bindir
777 sbindir
778 libexecdir
779 datarootdir
780 datadir
781 sysconfdir
782 sharedstatedir
783 localstatedir
784 includedir
785 oldincludedir
786 docdir
787 infodir
788 htmldir
789 dvidir
790 pdfdir
791 psdir
792 libdir
793 localedir
794 mandir
795 DEFS
796 ECHO_C
797 ECHO_N
798 ECHO_T
799 LIBS
800 build_alias
801 host_alias
802 target_alias
803 INSTALL_PROGRAM
804 INSTALL_SCRIPT
805 INSTALL_DATA
806 am__isrc
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 build
826 build_cpu
827 build_vendor
828 build_os
829 host
830 host_cpu
831 host_vendor
832 host_os
833 MINGW
834 MINGW_TRUE
835 MINGW_FALSE
836 pkgdatadir
837 fsect
838 FSECT5_TRUE
839 FSECT5_FALSE
840 WARNINGS
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 ac_ct_CC
846 EXEEXT
847 OBJEXT
848 DEPDIR
849 am__include
850 am__quote
851 AMDEP_TRUE
852 AMDEP_FALSE
853 AMDEPBACKSLASH
854 CCDEPMODE
855 am__fastdepCC_TRUE
856 am__fastdepCC_FALSE
857 LN_S
858 LIBTOOL
859 SED
860 GREP
861 EGREP
862 FGREP
863 LD
864 DUMPBIN
865 ac_ct_DUMPBIN
866 NM
867 OBJDUMP
868 AR
869 RANLIB
870 lt_ECHO
871 DSYMUTIL
872 NMEDIT
873 LIPO
874 OTOOL
875 OTOOL64
876 CPP
877 LIBOBJS
878 IS_CROSS_COMPILE_TRUE
879 IS_CROSS_COMPILE_FALSE
880 LTLIBOBJS'
881 ac_subst_files=''
882 ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CPP'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
948 fi
949
950 case $ac_option in
951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *) ac_optarg=yes ;;
953 esac
954
955 # Accept the important Cygnus configure options, so we can diagnose typos.
956
957 case $ac_dashdash$ac_option in
958 --)
959 ac_dashdash=yes ;;
960
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
965
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
970
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
977
978 --config-cache | -C)
979 cache_file=config.cache ;;
980
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
985
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
992
993 -disable-* | --disable-*)
994 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000 eval enable_$ac_feature=no ;;
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1011
1012 -enable-* | --enable-*)
1013 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019 eval enable_$ac_feature=\$ac_optarg ;;
1020
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1029
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1032 with_gas=yes ;;
1033
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1040
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1045
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 ac_prev=htmldir ;;
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 | --ht=*)
1050 htmldir=$ac_optarg ;;
1051
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1058
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 ac_prev=infodir ;;
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1063
1064 -libdir | --libdir | --libdi | --libd)
1065 ac_prev=libdir ;;
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1068
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1075
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1080
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1087
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 ac_prev=mandir ;;
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1092
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1095 with_fp=no ;;
1096
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1099 no_create=yes ;;
1100
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 no_recursion=yes ;;
1104
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1113
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 ac_prev=prefix ;;
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1118
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1125
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1132
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1149
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 ac_prev=pdfdir ;;
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1154
1155 -psdir | --psdir | --psdi | --psd | --ps)
1156 ac_prev=psdir ;;
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 psdir=$ac_optarg ;;
1159
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1162 silent=yes ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1208
1209 -with-* | --with-*)
1210 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 { echo "$as_me: error: invalid package name: $ac_package" >&2
1214 { (exit 1); exit 1; }; }
1215 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216 eval with_$ac_package=\$ac_optarg ;;
1217
1218 -without-* | --without-*)
1219 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=no ;;
1226
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1230
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1237
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1244
1245 -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1248 ;;
1249
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265 ;;
1266
1267 esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1274 fi
1275
1276 # Be sure to have absolute directory names.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$0" : 'X\(//\)[^/]' \| \
1332 X"$0" : 'X\(//\)$' \| \
1333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 echo X"$0" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356 else
1357 ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures file 5.07 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of file 5.07:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --disable-elf disable builtin ELF support
1471 --disable-elf-core disable ELF core file support
1472 --enable-fsect-man5 enable file formats in man section 5
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --disable-largefile omit support for large files
1481 --disable-warnings disable compiler warnings
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to <christos@astron.com>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1512 ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 file configure 5.07
1565 generated by GNU Autoconf 2.61
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572 exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by file $as_me 5.07, which was
1579 generated by GNU Autoconf 2.61. Invocation command line was
1580
1581 $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1599
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642 for ac_arg
1643 do
1644 case $ac_arg in
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1648 continue ;;
1649 *\'*)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651 esac
1652 case $ac_pass in
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654 2)
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1658 else
1659 case $ac_arg in
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666 esac
1667 ;;
1668 -* ) ac_must_keep_next=true ;;
1669 esac
1670 fi
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 ;;
1673 esac
1674 done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1686 {
1687 echo
1688
1689 cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694 echo
1695 # The following way of writing the cache mishandles newlines in values,
1696 (
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1699 case $ac_val in #(
1700 *${as_nl}*)
1701 case $ac_var in #(
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704 esac
1705 case $ac_var in #(
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1708 esac ;;
1709 esac
1710 done
1711 (set) 2>&1 |
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1714 sed -n \
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 ;; #(
1718 *)
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720 ;;
1721 esac |
1722 sort
1723 )
1724 echo
1725
1726 cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731 echo
1732 for ac_var in $ac_subst_vars
1733 do
1734 eval ac_val=\$$ac_var
1735 case $ac_val in
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737 esac
1738 echo "$ac_var='\''$ac_val'\''"
1739 done | sort
1740 echo
1741
1742 if test -n "$ac_subst_files"; then
1743 cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748 echo
1749 for ac_var in $ac_subst_files
1750 do
1751 eval ac_val=\$$ac_var
1752 case $ac_val in
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 esac
1755 echo "$ac_var='\''$ac_val'\''"
1756 done | sort
1757 echo
1758 fi
1759
1760 if test -s confdefs.h; then
1761 cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766 echo
1767 cat confdefs.h
1768 echo
1769 fi
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1773 } >&5
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776 exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1830 . "$ac_site_file"
1831 fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840 case $cache_file in
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1843 esac
1844 fi
1845 else
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848 >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1860 set,)
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1864 ,set)
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,);;
1869 *)
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1878 fi;;
1879 esac
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1882 case $ac_new_val in
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1885 esac
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 esac
1890 fi
1891 done
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931 am__api_version='1.10'
1932
1933 ac_aux_dir=
1934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1935 if test -f "$ac_dir/install-sh"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install-sh -c"
1938 break
1939 elif test -f "$ac_dir/install.sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1942 break
1943 elif test -f "$ac_dir/shtool"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 break
1947 fi
1948 done
1949 if test -z "$ac_aux_dir"; then
1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1952 { (exit 1); exit 1; }; }
1953 fi
1954
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962
1963
1964 # Find a good install program. We prefer a C program (faster),
1965 # so one script is as good as another. But avoid the broken or
1966 # incompatible versions:
1967 # SysV /etc/install, /usr/sbin/install
1968 # SunOS /usr/etc/install
1969 # IRIX /sbin/install
1970 # AIX /bin/install
1971 # AmigaOS /C/install, which installs bootblocks on floppy discs
1972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1975 # OS/2's system install, which has a completely different semantic
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1978 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1979 if test -z "$INSTALL"; then
1980 if test "${ac_cv_path_install+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 # Account for people who put trailing slashes in PATH elements.
1989 case $as_dir/ in
1990 ./ | .// | /cC/* | \
1991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1992 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1993 /usr/ucb/* ) ;;
1994 *)
1995 # OSF1 and SCO ODT 3.0 have their own names for install.
1996 # Don't use installbsd from OSF since it installs stuff as root
1997 # by default.
1998 for ac_prog in ginstall scoinst install; do
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2001 if test $ac_prog = install &&
2002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003 # AIX install. It has an incompatible calling convention.
2004 :
2005 elif test $ac_prog = install &&
2006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007 # program-specific install script used by HP pwplus--don't use.
2008 :
2009 else
2010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2011 break 3
2012 fi
2013 fi
2014 done
2015 done
2016 ;;
2017 esac
2018 done
2019 IFS=$as_save_IFS
2020
2021
2022 fi
2023 if test "${ac_cv_path_install+set}" = set; then
2024 INSTALL=$ac_cv_path_install
2025 else
2026 # As a last resort, use the slow shell script. Don't cache a
2027 # value for INSTALL within a source directory, because that will
2028 # break other packages using the cache if that directory is
2029 # removed, or if the value is a relative name.
2030 INSTALL=$ac_install_sh
2031 fi
2032 fi
2033 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2034 echo "${ECHO_T}$INSTALL" >&6; }
2035
2036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2037 # It thinks the first close brace ends the variable substitution.
2038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2039
2040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2041
2042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2043
2044 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2045 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2046 # Just in case
2047 sleep 1
2048 echo timestamp > conftest.file
2049 # Do `set' in a subshell so we don't clobber the current shell's
2050 # arguments. Must try -L first in case configure is actually a
2051 # symlink; some systems play weird games with the mod time of symlinks
2052 # (eg FreeBSD returns the mod time of the symlink's containing
2053 # directory).
2054 if (
2055 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2056 if test "$*" = "X"; then
2057 # -L didn't work.
2058 set X `ls -t $srcdir/configure conftest.file`
2059 fi
2060 rm -f conftest.file
2061 if test "$*" != "X $srcdir/configure conftest.file" \
2062 && test "$*" != "X conftest.file $srcdir/configure"; then
2063
2064 # If neither matched, then we have a broken ls. This can happen
2065 # if, for instance, CONFIG_SHELL is bash and it inherits a
2066 # broken ls alias from the environment. This has actually
2067 # happened. Such a system could not be considered "sane".
2068 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&5
2070 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2071 alias in your environment" >&2;}
2072 { (exit 1); exit 1; }; }
2073 fi
2074
2075 test "$2" = conftest.file
2076 )
2077 then
2078 # Ok.
2079 :
2080 else
2081 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2082 Check your system clock" >&5
2083 echo "$as_me: error: newly created file is older than distributed files!
2084 Check your system clock" >&2;}
2085 { (exit 1); exit 1; }; }
2086 fi
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089 test "$program_prefix" != NONE &&
2090 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2091 # Use a double $ so make ignores it.
2092 test "$program_suffix" != NONE &&
2093 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2094 # Double any \ or $. echo might interpret backslashes.
2095 # By default was `s,x,x', remove it if useless.
2096 cat <<\_ACEOF >conftest.sed
2097 s/[\\$]/&&/g;s/;s,x,x,$//
2098 _ACEOF
2099 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2100 rm -f conftest.sed
2101
2102 # expand $ac_aux_dir to an absolute path
2103 am_aux_dir=`cd $ac_aux_dir && pwd`
2104
2105 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2106 # Use eval to expand $SHELL
2107 if eval "$MISSING --run true"; then
2108 am_missing_run="$MISSING --run "
2109 else
2110 am_missing_run=
2111 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2112 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113 fi
2114
2115 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2116 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2117 if test -z "$MKDIR_P"; then
2118 if test "${ac_cv_path_mkdir+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_prog in mkdir gmkdir; do
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2129 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2130 'mkdir (GNU coreutils) '* | \
2131 'mkdir (coreutils) '* | \
2132 'mkdir (fileutils) '4.1*)
2133 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2134 break 3;;
2135 esac
2136 done
2137 done
2138 done
2139 IFS=$as_save_IFS
2140
2141 fi
2142
2143 if test "${ac_cv_path_mkdir+set}" = set; then
2144 MKDIR_P="$ac_cv_path_mkdir -p"
2145 else
2146 # As a last resort, use the slow shell script. Don't cache a
2147 # value for MKDIR_P within a source directory, because that will
2148 # break other packages using the cache if that directory is
2149 # removed, or if the value is a relative name.
2150 test -d ./--version && rmdir ./--version
2151 MKDIR_P="\$(SHELL) $ac_install_sh -d"
2152 fi
2153 fi
2154 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2155 echo "${ECHO_T}$MKDIR_P" >&6; }
2156
2157 mkdir_p="$MKDIR_P"
2158 case $mkdir_p in
2159 [\\/$]* | ?:[\\/]*) ;;
2160 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2161 esac
2162
2163 for ac_prog in gawk mawk nawk awk
2164 do
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_AWK+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_AWK="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2185 fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 AWK=$ac_cv_prog_AWK
2193 if test -n "$AWK"; then
2194 { echo "$as_me:$LINENO: result: $AWK" >&5
2195 echo "${ECHO_T}$AWK" >&6; }
2196 else
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201
2202 test -n "$AWK" && break
2203 done
2204
2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 cat >conftest.make <<\_ACEOF
2212 SHELL = /bin/sh
2213 all:
2214 @echo '@@@%%%=$(MAKE)=@@@%%%'
2215 _ACEOF
2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2218 *@@@%%%=?*=@@@%%%*)
2219 eval ac_cv_prog_make_${ac_make}_set=yes;;
2220 *)
2221 eval ac_cv_prog_make_${ac_make}_set=no;;
2222 esac
2223 rm -f conftest.make
2224 fi
2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2228 SET_MAKE=
2229 else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232 SET_MAKE="MAKE=${MAKE-make}"
2233 fi
2234
2235 rm -rf .tst 2>/dev/null
2236 mkdir .tst 2>/dev/null
2237 if test -d .tst; then
2238 am__leading_dot=.
2239 else
2240 am__leading_dot=_
2241 fi
2242 rmdir .tst 2>/dev/null
2243
2244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2246 # is not polluted with repeated "-I."
2247 am__isrc=' -I$(srcdir)'
2248 # test to see if srcdir already configured
2249 if test -f $srcdir/config.status; then
2250 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2253 fi
2254 fi
2255
2256 # test whether we have cygpath
2257 if test -z "$CYGPATH_W"; then
2258 if (cygpath --version) >/dev/null 2>/dev/null; then
2259 CYGPATH_W='cygpath -w'
2260 else
2261 CYGPATH_W=echo
2262 fi
2263 fi
2264
2265
2266 # Define the identity of the package.
2267 PACKAGE='file'
2268 VERSION='5.07'
2269
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE "$PACKAGE"
2273 _ACEOF
2274
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define VERSION "$VERSION"
2278 _ACEOF
2279
2280 # Some tools Automake needs.
2281
2282 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2283
2284
2285 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2286
2287
2288 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2289
2290
2291 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2292
2293
2294 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
2296 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2297
2298 # Installed binaries are usually stripped using `strip' when the user
2299 # run `make install-strip'. However `strip' might not be the right
2300 # tool to use in cross-compilation environments, therefore Automake
2301 # will honor the `STRIP' environment variable to overrule this program.
2302 if test "$cross_compiling" != no; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_STRIP+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325 done
2326 done
2327 IFS=$as_save_IFS
2328
2329 fi
2330 fi
2331 STRIP=$ac_cv_prog_STRIP
2332 if test -n "$STRIP"; then
2333 { echo "$as_me:$LINENO: result: $STRIP" >&5
2334 echo "${ECHO_T}$STRIP" >&6; }
2335 else
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340
2341 fi
2342 if test -z "$ac_cv_prog_STRIP"; then
2343 ac_ct_STRIP=$STRIP
2344 # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test -n "$ac_ct_STRIP"; then
2352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_ac_ct_STRIP="strip"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2364 fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2372 if test -n "$ac_ct_STRIP"; then
2373 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2374 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2375 else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380 if test "x$ac_ct_STRIP" = x; then
2381 STRIP=":"
2382 else
2383 case $cross_compiling:$ac_tool_warned in
2384 yes:)
2385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2391 ac_tool_warned=yes ;;
2392 esac
2393 STRIP=$ac_ct_STRIP
2394 fi
2395 else
2396 STRIP="$ac_cv_prog_STRIP"
2397 fi
2398
2399 fi
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
2402 # We need awk for the "check" target. The system "awk" is bad on
2403 # some platforms.
2404 # Always define AMTAR for backward compatibility.
2405
2406 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
2408 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409
2410
2411
2412
2413
2414
2415
2416 ac_config_headers="$ac_config_headers config.h"
2417
2418
2419
2420 { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
2421 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
2422 # Check whether --enable-elf was given.
2423 if test "${enable_elf+set}" = set; then
2424 enableval=$enable_elf; if test "${enableval}" = yes; then
2425 { echo "$as_me:$LINENO: result: yes" >&5
2426 echo "${ECHO_T}yes" >&6; }
2427
2428 cat >>confdefs.h <<\_ACEOF
2429 #define BUILTIN_ELF 1
2430 _ACEOF
2431
2432 else
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2435 fi
2436 else
2437
2438 # enable by default
2439 { echo "$as_me:$LINENO: result: yes" >&5
2440 echo "${ECHO_T}yes" >&6; }
2441
2442 cat >>confdefs.h <<\_ACEOF
2443 #define BUILTIN_ELF 1
2444 _ACEOF
2445
2446
2447 fi
2448
2449
2450 { echo "$as_me:$LINENO: checking for ELF core file support" >&5
2451 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
2452 # Check whether --enable-elf-core was given.
2453 if test "${enable_elf_core+set}" = set; then
2454 enableval=$enable_elf_core; if test "${enableval}" = yes; then
2455 { echo "$as_me:$LINENO: result: yes" >&5
2456 echo "${ECHO_T}yes" >&6; }
2457
2458 cat >>confdefs.h <<\_ACEOF
2459 #define ELFCORE 1
2460 _ACEOF
2461
2462 else
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2465 fi
2466 else
2467
2468 # enable by default
2469 { echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6; }
2471
2472 cat >>confdefs.h <<\_ACEOF
2473 #define ELFCORE 1
2474 _ACEOF
2475
2476
2477 fi
2478
2479
2480 { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2481 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
2482 # Check whether --enable-fsect-man5 was given.
2483 if test "${enable_fsect_man5+set}" = set; then
2484 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
2485 { echo "$as_me:$LINENO: result: yes" >&5
2486 echo "${ECHO_T}yes" >&6; }
2487 fsect=5
2488 else
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fsect=4
2492 fi
2493 else
2494
2495 # disable by default
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2498 fsect=4
2499
2500 fi
2501
2502
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2506 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2507 { (exit 1); exit 1; }; }
2508
2509 { echo "$as_me:$LINENO: checking build system type" >&5
2510 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2511 if test "${ac_cv_build+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 ac_build_alias=$build_alias
2515 test "x$ac_build_alias" = x &&
2516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2517 test "x$ac_build_alias" = x &&
2518 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2519 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2520 { (exit 1); exit 1; }; }
2521 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2522 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2523 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2524 { (exit 1); exit 1; }; }
2525
2526 fi
2527 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2528 echo "${ECHO_T}$ac_cv_build" >&6; }
2529 case $ac_cv_build in
2530 *-*-*) ;;
2531 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2532 echo "$as_me: error: invalid value of canonical build" >&2;}
2533 { (exit 1); exit 1; }; };;
2534 esac
2535 build=$ac_cv_build
2536 ac_save_IFS=$IFS; IFS='-'
2537 set x $ac_cv_build
2538 shift
2539 build_cpu=$1
2540 build_vendor=$2
2541 shift; shift
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2544 build_os=$*
2545 IFS=$ac_save_IFS
2546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2547
2548
2549 { echo "$as_me:$LINENO: checking host system type" >&5
2550 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2551 if test "${ac_cv_host+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554 if test "x$host_alias" = x; then
2555 ac_cv_host=$ac_cv_build
2556 else
2557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2558 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2559 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2560 { (exit 1); exit 1; }; }
2561 fi
2562
2563 fi
2564 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2565 echo "${ECHO_T}$ac_cv_host" >&6; }
2566 case $ac_cv_host in
2567 *-*-*) ;;
2568 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2569 echo "$as_me: error: invalid value of canonical host" >&2;}
2570 { (exit 1); exit 1; }; };;
2571 esac
2572 host=$ac_cv_host
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_host
2575 shift
2576 host_cpu=$1
2577 host_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 host_os=$*
2582 IFS=$ac_save_IFS
2583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2584
2585
2586 case "$host_os" in
2587 mingw32*)
2588 MINGW=1
2589 ;;
2590 *)
2591 MINGW=0
2592 ;;
2593 esac
2594
2595 if test "$MINGW" = 1; then
2596 MINGW_TRUE=
2597 MINGW_FALSE='#'
2598 else
2599 MINGW_TRUE='#'
2600 MINGW_FALSE=
2601 fi
2602
2603
2604 pkgdatadir='$(datadir)/misc'
2605
2606
2607 if test x$fsect = x5; then
2608 FSECT5_TRUE=
2609 FSECT5_FALSE='#'
2610 else
2611 FSECT5_TRUE='#'
2612 FSECT5_FALSE=
2613 fi
2614
2615
2616
2617
2618 cat >>confdefs.h <<\_ACEOF
2619 #define _GNU_SOURCE 1
2620 _ACEOF
2621
2622
2623
2624 ac_ext=c
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 { echo "$as_me:$LINENO: result: $CC" >&5
2660 echo "${ECHO_T}$CC" >&6; }
2661 else
2662 { echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6; }
2664 fi
2665
2666
2667 fi
2668 if test -z "$ac_cv_prog_CC"; then
2669 ac_ct_CC=$CC
2670 # Extract the first word of "gcc", so it can be a program name with args.
2671 set dummy gcc; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC="gcc"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691 done
2692 done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2701 else
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2704 fi
2705
2706 if test "x$ac_ct_CC" = x; then
2707 CC=""
2708 else
2709 case $cross_compiling:$ac_tool_warned in
2710 yes:)
2711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet. If you think this
2716 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719 CC=$ac_ct_CC
2720 fi
2721 else
2722 CC="$ac_cv_prog_CC"
2723 fi
2724
2725 if test -z "$CC"; then
2726 if test -n "$ac_tool_prefix"; then
2727 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2728 set dummy ${ac_tool_prefix}cc; ac_word=$2
2729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_CC+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_CC="${ac_tool_prefix}cc"
2745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2747 fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 { echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6; }
2758 else
2759 { echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6; }
2761 fi
2762
2763
2764 fi
2765 fi
2766 if test -z "$CC"; then
2767 # Extract the first word of "cc", so it can be a program name with args.
2768 set dummy cc; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 ac_prog_rejected=no
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2786 ac_prog_rejected=yes
2787 continue
2788 fi
2789 ac_cv_prog_CC="cc"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 if test $ac_prog_rejected = yes; then
2798 # We found a bogon in the path, so make sure we never use it.
2799 set dummy $ac_cv_prog_CC
2800 shift
2801 if test $# != 0; then
2802 # We chose a different compiler from the bogus one.
2803 # However, it has the same basename, so the bogon will be chosen
2804 # first if we set CC to just the basename; use the full file name.
2805 shift
2806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2807 fi
2808 fi
2809 fi
2810 fi
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { echo "$as_me:$LINENO: result: $CC" >&5
2814 echo "${ECHO_T}$CC" >&6; }
2815 else
2816 { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in cl.exe
2825 do
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 fi
2852 fi
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855 { echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6; }
2857 else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2860 fi
2861
2862
2863 test -n "$CC" && break
2864 done
2865 fi
2866 if test -z "$CC"; then
2867 ac_ct_CC=$CC
2868 for ac_prog in cl.exe
2869 do
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$ac_ct_CC"; then
2878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_ac_ct_CC="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2900 echo "${ECHO_T}$ac_ct_CC" >&6; }
2901 else
2902 { echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6; }
2904 fi
2905
2906
2907 test -n "$ac_ct_CC" && break
2908 done
2909
2910 if test "x$ac_ct_CC" = x; then
2911 CC=""
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2916 whose name does not start with the host triplet. If you think this
2917 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet. If you think this
2920 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 CC=$ac_ct_CC
2924 fi
2925 fi
2926
2927 fi
2928
2929
2930 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2935
2936 # Provide some information about the compiler.
2937 echo "$as_me:$LINENO: checking for C compiler version" >&5
2938 ac_compiler=`set X $ac_compile; echo $2`
2939 { (ac_try="$ac_compiler --version >&5"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compiler --version >&5") 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }
2949 { (ac_try="$ac_compiler -v >&5"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compiler -v >&5") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959 { (ac_try="$ac_compiler -V >&5"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compiler -V >&5") 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2969
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976
2977 int
2978 main ()
2979 {
2980
2981 ;
2982 return 0;
2983 }
2984 _ACEOF
2985 ac_clean_files_save=$ac_clean_files
2986 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2987 # Try to create an executable without -o first, disregard a.out.
2988 # It will help us diagnose broken compilers, and finding out an intuition
2989 # of exeext.
2990 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2991 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2992 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993 #
2994 # List of possible output files, starting from the most likely.
2995 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2996 # only as a last resort. b.out is created by i960 compilers.
2997 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2998 #
2999 # The IRIX 6 linker writes into existing files which may not be
3000 # executable, retaining their permissions. Remove them first so a
3001 # subsequent execution test works.
3002 ac_rmfiles=
3003 for ac_file in $ac_files
3004 do
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3008 esac
3009 done
3010 rm -f $ac_rmfiles
3011
3012 if { (ac_try="$ac_link_default"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_link_default") 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; then
3022 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3023 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3024 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3025 # so that the user can short-circuit this test for compilers unknown to
3026 # Autoconf.
3027 for ac_file in $ac_files ''
3028 do
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3032 ;;
3033 [ab].out )
3034 # We found the default executable, but exeext='' is most
3035 # certainly right.
3036 break;;
3037 *.* )
3038 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3039 then :; else
3040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041 fi
3042 # We set ac_cv_exeext here because the later test for it is not
3043 # safe: cross compilers may not add the suffix if given an `-o'
3044 # argument, so we may need to know it at that point already.
3045 # Even if this section looks crufty: it has the advantage of
3046 # actually working.
3047 break;;
3048 * )
3049 break;;
3050 esac
3051 done
3052 test "$ac_cv_exeext" = no && ac_cv_exeext=
3053
3054 else
3055 ac_file=''
3056 fi
3057
3058 { echo "$as_me:$LINENO: result: $ac_file" >&5
3059 echo "${ECHO_T}$ac_file" >&6; }
3060 if test -z "$ac_file"; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3065 See \`config.log' for more details." >&5
3066 echo "$as_me: error: C compiler cannot create executables
3067 See \`config.log' for more details." >&2;}
3068 { (exit 77); exit 77; }; }
3069 fi
3070
3071 ac_exeext=$ac_cv_exeext
3072
3073 # Check that the compiler produces executables we can run. If not, either
3074 # the compiler is broken, or we cross compile.
3075 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3078 # If not cross compiling, check that we can run a simple program.
3079 if test "$cross_compiling" != yes; then
3080 if { ac_try='./$ac_file'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 cross_compiling=no
3091 else
3092 if test "$cross_compiling" = maybe; then
3093 cross_compiling=yes
3094 else
3095 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3096 If you meant to cross compile, use \`--host'.
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot run C compiled programs.
3099 If you meant to cross compile, use \`--host'.
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3102 fi
3103 fi
3104 fi
3105 { echo "$as_me:$LINENO: result: yes" >&5
3106 echo "${ECHO_T}yes" >&6; }
3107
3108 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3109 ac_clean_files=$ac_clean_files_save
3110 # Check that the compiler produces executables we can run. If not, either
3111 # the compiler is broken, or we cross compile.
3112 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3113 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3114 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3115 echo "${ECHO_T}$cross_compiling" >&6; }
3116
3117 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3118 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3119 if { (ac_try="$ac_link"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_link") 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; then
3129 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3131 # work properly (i.e., refer to `conftest.exe'), while it won't with
3132 # `rm'.
3133 for ac_file in conftest.exe conftest conftest.*; do
3134 test -f "$ac_file" || continue
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3137 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 break;;
3139 * ) break;;
3140 esac
3141 done
3142 else
3143 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3148 fi
3149
3150 rm -f conftest$ac_cv_exeext
3151 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3152 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3153
3154 rm -f conftest.$ac_ext
3155 EXEEXT=$ac_cv_exeext
3156 ac_exeext=$EXEEXT
3157 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3158 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3159 if test "${ac_cv_objext+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.o conftest.obj
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; then
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 break;;
3194 esac
3195 done
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3201 See \`config.log' for more details." >&5
3202 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3205 fi
3206
3207 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3208 fi
3209 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3210 echo "${ECHO_T}$ac_cv_objext" >&6; }
3211 OBJEXT=$ac_cv_objext
3212 ac_objext=$OBJEXT
3213 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3214 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3215 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228 #ifndef __GNUC__
3229 choke me
3230 #endif
3231
3232 ;
3233 return 0;
3234 }
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3253 ac_compiler_gnu=yes
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ac_compiler_gnu=no
3259 fi
3260
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263
3264 fi
3265 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3266 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3267 GCC=`test $ac_compiler_gnu = yes && echo yes`
3268 ac_test_CFLAGS=${CFLAGS+set}
3269 ac_save_CFLAGS=$CFLAGS
3270 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3271 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_cc_g+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 ac_save_c_werror_flag=$ac_c_werror_flag
3276 ac_c_werror_flag=yes
3277 ac_cv_prog_cc_g=no
3278 CFLAGS="-g"
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285
3286 int
3287 main ()
3288 {
3289
3290 ;
3291 return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
3311 ac_cv_prog_cc_g=yes
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 CFLAGS=""
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323
3324 int
3325 main ()
3326 {
3327
3328 ;
3329 return 0;
3330 }
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_compile") 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && {
3346 test -z "$ac_c_werror_flag" ||
3347 test ! -s conftest.err
3348 } && test -s conftest.$ac_objext; then
3349 :
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 ac_c_werror_flag=$ac_save_c_werror_flag
3355 CFLAGS="-g"
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362
3363 int
3364 main ()
3365 {
3366
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (ac_try="$ac_compile"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_compile") 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && {
3385 test -z "$ac_c_werror_flag" ||
3386 test ! -s conftest.err
3387 } && test -s conftest.$ac_objext; then
3388 ac_cv_prog_cc_g=yes
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393
3394 fi
3395
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_c_werror_flag=$ac_save_c_werror_flag
3404 fi
3405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3407 if test "$ac_test_CFLAGS" = set; then
3408 CFLAGS=$ac_save_CFLAGS
3409 elif test $ac_cv_prog_cc_g = yes; then
3410 if test "$GCC" = yes; then
3411 CFLAGS="-g -O2"
3412 else
3413 CFLAGS="-g"
3414 fi
3415 else
3416 if test "$GCC" = yes; then
3417 CFLAGS="-O2"
3418 else
3419 CFLAGS=
3420 fi
3421 fi
3422 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3423 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_cc_c89+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 ac_cv_prog_cc_c89=no
3428 ac_save_CC=$CC
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <stdarg.h>
3436 #include <stdio.h>
3437 #include <sys/types.h>
3438 #include <sys/stat.h>
3439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3440 struct buf { int x; };
3441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442 static char *e (p, i)
3443 char **p;
3444 int i;
3445 {
3446 return p[i];
3447 }
3448 static char *f (char * (*g) (char **, int), char **p, ...)
3449 {
3450 char *s;
3451 va_list v;
3452 va_start (v,p);
3453 s = g (p, va_arg (v,int));
3454 va_end (v);
3455 return s;
3456 }
3457
3458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3459 function prototypes and stuff, but not '\xHH' hex character constants.
3460 These don't provoke an error unfortunately, instead are silently treated
3461 as 'x'. The following induces an error, until -std is added to get
3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3463 array size at least. It's necessary to write '\x00'==0 to get something
3464 that's true only with -std. */
3465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3466
3467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3468 inside strings and character constants. */
3469 #define FOO(x) 'x'
3470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3471
3472 int test (int i, double x);
3473 struct s1 {int (*f) (int a);};
3474 struct s2 {int (*f) (double a);};
3475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476 int argc;
3477 char **argv;
3478 int
3479 main ()
3480 {
3481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3488 do
3489 CC="$ac_save_CC $ac_arg"
3490 rm -f conftest.$ac_objext
3491 if { (ac_try="$ac_compile"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_compile") 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } && {
3504 test -z "$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3506 } && test -s conftest.$ac_objext; then
3507 ac_cv_prog_cc_c89=$ac_arg
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512
3513 fi
3514
3515 rm -f core conftest.err conftest.$ac_objext
3516 test "x$ac_cv_prog_cc_c89" != "xno" && break
3517 done
3518 rm -f conftest.$ac_ext
3519 CC=$ac_save_CC
3520
3521 fi
3522 # AC_CACHE_VAL
3523 case "x$ac_cv_prog_cc_c89" in
3524 x)
3525 { echo "$as_me:$LINENO: result: none needed" >&5
3526 echo "${ECHO_T}none needed" >&6; } ;;
3527 xno)
3528 { echo "$as_me:$LINENO: result: unsupported" >&5
3529 echo "${ECHO_T}unsupported" >&6; } ;;
3530 *)
3531 CC="$CC $ac_cv_prog_cc_c89"
3532 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3533 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3534 esac
3535
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 DEPDIR="${am__leading_dot}deps"
3543
3544 ac_config_commands="$ac_config_commands depfiles"
3545
3546
3547 am_make=${MAKE-make}
3548 cat > confinc << 'END'
3549 am__doit:
3550 @echo done
3551 .PHONY: am__doit
3552 END
3553 # If we don't find an include directive, just comment out the code.
3554 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3555 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3556 am__include="#"
3557 am__quote=
3558 _am_result=none
3559 # First try GNU make style include.
3560 echo "include confinc" > confmf
3561 # We grep out `Entering directory' and `Leaving directory'
3562 # messages which can occur if `w' ends up in MAKEFLAGS.
3563 # In particular we don't look at `^make:' because GNU make might
3564 # be invoked under some other name (usually "gmake"), in which
3565 # case it prints its new name instead of `make'.
3566 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3567 am__include=include
3568 am__quote=
3569 _am_result=GNU
3570 fi
3571 # Now try BSD make style include.
3572 if test "$am__include" = "#"; then
3573 echo '.include "confinc"' > confmf
3574 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3575 am__include=.include
3576 am__quote="\""
3577 _am_result=BSD
3578 fi
3579 fi
3580
3581
3582 { echo "$as_me:$LINENO: result: $_am_result" >&5
3583 echo "${ECHO_T}$_am_result" >&6; }
3584 rm -f confinc confmf
3585
3586 # Check whether --enable-dependency-tracking was given.
3587 if test "${enable_dependency_tracking+set}" = set; then
3588 enableval=$enable_dependency_tracking;
3589 fi
3590
3591 if test "x$enable_dependency_tracking" != xno; then
3592 am_depcomp="$ac_aux_dir/depcomp"
3593 AMDEPBACKSLASH='\'
3594 fi
3595 if test "x$enable_dependency_tracking" != xno; then
3596 AMDEP_TRUE=
3597 AMDEP_FALSE='#'
3598 else
3599 AMDEP_TRUE='#'
3600 AMDEP_FALSE=
3601 fi
3602
3603
3604
3605 depcc="$CC" am_compiler_list=
3606
3607 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613 # We make a subdir and do the tests there. Otherwise we can end up
3614 # making bogus files that we don't know about and never remove. For
3615 # instance it was reported that on HP-UX the gcc test will end up
3616 # making a dummy file named `D' -- because `-MD' means `put the output
3617 # in D'.
3618 mkdir conftest.dir
3619 # Copy depcomp to subdir because otherwise we won't find it if we're
3620 # using a relative directory.
3621 cp "$am_depcomp" conftest.dir
3622 cd conftest.dir
3623 # We will build objects and dependencies in a subdirectory because
3624 # it helps to detect inapplicable dependency modes. For instance
3625 # both Tru64's cc and ICC support -MD to output dependencies as a
3626 # side effect of compilation, but ICC will put the dependencies in
3627 # the current directory while Tru64 will put them in the object
3628 # directory.
3629 mkdir sub
3630
3631 am_cv_CC_dependencies_compiler_type=none
3632 if test "$am_compiler_list" = ""; then
3633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3634 fi
3635 for depmode in $am_compiler_list; do
3636 # Setup a source with many dependencies, because some compilers
3637 # like to wrap large dependency lists on column 80 (with \), and
3638 # we should not choose a depcomp mode which is confused by this.
3639 #
3640 # We need to recreate these files for each test, as the compiler may
3641 # overwrite some of them when testing with obscure command lines.
3642 # This happens at least with the AIX C compiler.
3643 : > sub/conftest.c
3644 for i in 1 2 3 4 5 6; do
3645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647 # Solaris 8's {/usr,}/bin/sh.
3648 touch sub/conftst$i.h
3649 done
3650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3651
3652 case $depmode in
3653 nosideeffect)
3654 # after this tag, mechanisms are not by side-effect, so they'll
3655 # only be used when explicitly requested
3656 if test "x$enable_dependency_tracking" = xyes; then
3657 continue
3658 else
3659 break
3660 fi
3661 ;;
3662 none) break ;;
3663 esac
3664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665 # mode. It turns out that the SunPro C++ compiler does not properly
3666 # handle `-M -o', and we need to detect this.
3667 if depmode=$depmode \
3668 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3671 >/dev/null 2>conftest.err &&
3672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3674 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3676 # icc doesn't choke on unknown options, it will just issue warnings
3677 # or remarks (even with -Werror). So we grep stderr for any message
3678 # that says an option was ignored or not supported.
3679 # When given -MP, icc 7.0 and 7.1 complain thusly:
3680 # icc: Command line warning: ignoring option '-M'; no argument required
3681 # The diagnosis changed in icc 8.0:
3682 # icc: Command line remark: option '-MP' not supported
3683 if (grep 'ignoring option' conftest.err ||
3684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3685 am_cv_CC_dependencies_compiler_type=$depmode
3686 break
3687 fi
3688 fi
3689 done
3690
3691 cd ..
3692 rm -rf conftest.dir
3693 else
3694 am_cv_CC_dependencies_compiler_type=none
3695 fi
3696
3697 fi
3698 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3700 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3701
3702 if
3703 test "x$enable_dependency_tracking" != xno \
3704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3705 am__fastdepCC_TRUE=
3706 am__fastdepCC_FALSE='#'
3707 else
3708 am__fastdepCC_TRUE='#'
3709 am__fastdepCC_FALSE=
3710 fi
3711
3712
3713 if test "x$CC" != xcc; then
3714 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3715 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3716 else
3717 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3718 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3719 fi
3720 set dummy $CC; ac_cc=`echo $2 |
3721 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3722 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 # Make sure it works both with $CC and with simple cc.
3741 # We do the test twice because some compilers refuse to overwrite an
3742 # existing .o file with -o, though they will create one.
3743 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3744 rm -f conftest2.*
3745 if { (case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_try") 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } &&
3754 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_try") 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); };
3763 then
3764 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3765 if test "x$CC" != xcc; then
3766 # Test first that cc exists at all.
3767 if { ac_try='cc -c conftest.$ac_ext >&5'
3768 { (case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_try") 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3778 rm -f conftest2.*
3779 if { (case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_try") 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_try") 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); };
3797 then
3798 # cc works too.
3799 :
3800 else
3801 # cc exists but doesn't like -o.
3802 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3803 fi
3804 fi
3805 fi
3806 else
3807 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3808 fi
3809 rm -f core conftest*
3810
3811 fi
3812 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3813 { echo "$as_me:$LINENO: result: yes" >&5
3814 echo "${ECHO_T}yes" >&6; }
3815 else
3816 { echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6; }
3818
3819 cat >>confdefs.h <<\_ACEOF
3820 #define NO_MINUS_C_MINUS_O 1
3821 _ACEOF
3822
3823 fi
3824
3825 # FIXME: we rely on the cache variable name because
3826 # there is no other way.
3827 set dummy $CC
3828 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3830 # Losing compiler, so override with the script.
3831 # FIXME: It is wrong to rewrite CC.
3832 # But if we don't then we get into trouble of one sort or another.
3833 # A longer-term fix would be to have automake use am__CC in this case,
3834 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3835 CC="$am_aux_dir/compile $CC"
3836 fi
3837
3838
3839 # Find a good install program. We prefer a C program (faster),
3840 # so one script is as good as another. But avoid the broken or
3841 # incompatible versions:
3842 # SysV /etc/install, /usr/sbin/install
3843 # SunOS /usr/etc/install
3844 # IRIX /sbin/install
3845 # AIX /bin/install
3846 # AmigaOS /C/install, which installs bootblocks on floppy discs
3847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3850 # OS/2's system install, which has a completely different semantic
3851 # ./install, which can be erroneously created by make from ./install.sh.
3852 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3853 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3854 if test -z "$INSTALL"; then
3855 if test "${ac_cv_path_install+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 # Account for people who put trailing slashes in PATH elements.
3864 case $as_dir/ in
3865 ./ | .// | /cC/* | \
3866 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3867 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3868 /usr/ucb/* ) ;;
3869 *)
3870 # OSF1 and SCO ODT 3.0 have their own names for install.
3871 # Don't use installbsd from OSF since it installs stuff as root
3872 # by default.
3873 for ac_prog in ginstall scoinst install; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3876 if test $ac_prog = install &&
3877 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3878 # AIX install. It has an incompatible calling convention.
3879 :
3880 elif test $ac_prog = install &&
3881 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3882 # program-specific install script used by HP pwplus--don't use.
3883 :
3884 else
3885 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3886 break 3
3887 fi
3888 fi
3889 done
3890 done
3891 ;;
3892 esac
3893 done
3894 IFS=$as_save_IFS
3895
3896
3897 fi
3898 if test "${ac_cv_path_install+set}" = set; then
3899 INSTALL=$ac_cv_path_install
3900 else
3901 # As a last resort, use the slow shell script. Don't cache a
3902 # value for INSTALL within a source directory, because that will
3903 # break other packages using the cache if that directory is
3904 # removed, or if the value is a relative name.
3905 INSTALL=$ac_install_sh
3906 fi
3907 fi
3908 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3909 echo "${ECHO_T}$INSTALL" >&6; }
3910
3911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3912 # It thinks the first close brace ends the variable substitution.
3913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3914
3915 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3916
3917 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3918
3919 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3920 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3921 LN_S=$as_ln_s
3922 if test "$LN_S" = "ln -s"; then
3923 { echo "$as_me:$LINENO: result: yes" >&5
3924 echo "${ECHO_T}yes" >&6; }
3925 else
3926 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3927 echo "${ECHO_T}no, using $LN_S" >&6; }
3928 fi
3929
3930 case `pwd` in
3931 *\ * | *\ *)
3932 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3933 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3934 esac
3935
3936
3937
3938 macro_version='2.2.6b'
3939 macro_revision='1.3017'
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953 ltmain="$ac_aux_dir/ltmain.sh"
3954
3955 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3956 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3957 if test "${ac_cv_path_SED+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3961 for ac_i in 1 2 3 4 5 6 7; do
3962 ac_script="$ac_script$as_nl$ac_script"
3963 done
3964 echo "$ac_script" | sed 99q >conftest.sed
3965 $as_unset ac_script || ac_script=
3966 # Extract the first word of "sed gsed" to use in msg output
3967 if test -z "$SED"; then
3968 set dummy sed gsed; ac_prog_name=$2
3969 if test "${ac_cv_path_SED+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 ac_path_SED_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in sed gsed; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3983 # Check for GNU ac_path_SED and select it if it is found.
3984 # Check for GNU $ac_path_SED
3985 case `"$ac_path_SED" --version 2>&1` in
3986 *GNU*)
3987 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3988 *)
3989 ac_count=0
3990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 while :
3992 do
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 echo '' >> "conftest.nl"
3997 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_SED_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_SED="$ac_path_SED"
4003 ac_path_SED_max=$ac_count
4004 fi
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4007 done
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012 $ac_path_SED_found && break 3
4013 done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 SED="$ac_cv_path_SED"
4023 if test -z "$SED"; then
4024 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4026 { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030 ac_cv_path_SED=$SED
4031 fi
4032
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4035 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4036 SED="$ac_cv_path_SED"
4037 rm -f conftest.sed
4038
4039 test -z "$SED" && SED=sed
4040 Xsed="$SED -e 1s/^X//"
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4053 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_GREP+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 # Extract the first word of "grep ggrep" to use in msg output
4058 if test -z "$GREP"; then
4059 set dummy grep ggrep; ac_prog_name=$2
4060 if test "${ac_cv_path_GREP+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 ac_path_GREP_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in grep ggrep; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4073 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4074 # Check for GNU ac_path_GREP and select it if it is found.
4075 # Check for GNU $ac_path_GREP
4076 case `"$ac_path_GREP" --version 2>&1` in
4077 *GNU*)
4078 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4079 *)
4080 ac_count=0
4081 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4082 while :
4083 do
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 echo 'GREP' >> "conftest.nl"
4088 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 ac_count=`expr $ac_count + 1`
4091 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_GREP="$ac_path_GREP"
4094 ac_path_GREP_max=$ac_count
4095 fi
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4098 done
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 esac
4101
4102
4103 $ac_path_GREP_found && break 3
4104 done
4105 done
4106
4107 done
4108 IFS=$as_save_IFS
4109
4110
4111 fi
4112
4113 GREP="$ac_cv_path_GREP"
4114 if test -z "$GREP"; then
4115 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4116 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4117 { (exit 1); exit 1; }; }
4118 fi
4119
4120 else
4121 ac_cv_path_GREP=$GREP
4122 fi
4123
4124
4125 fi
4126 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4127 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4128 GREP="$ac_cv_path_GREP"
4129
4130
4131 { echo "$as_me:$LINENO: checking for egrep" >&5
4132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4133 if test "${ac_cv_path_EGREP+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4137 then ac_cv_path_EGREP="$GREP -E"
4138 else
4139 # Extract the first word of "egrep" to use in msg output
4140 if test -z "$EGREP"; then
4141 set dummy egrep; ac_prog_name=$2
4142 if test "${ac_cv_path_EGREP+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 ac_path_EGREP_found=false
4146 # Loop through the user's path and test for each of PROGNAME-LIST
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_prog in egrep; do
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4155 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4156 # Check for GNU ac_path_EGREP and select it if it is found.
4157 # Check for GNU $ac_path_EGREP
4158 case `"$ac_path_EGREP" --version 2>&1` in
4159 *GNU*)
4160 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4161 *)
4162 ac_count=0
4163 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4164 while :
4165 do
4166 cat "conftest.in" "conftest.in" >"conftest.tmp"
4167 mv "conftest.tmp" "conftest.in"
4168 cp "conftest.in" "conftest.nl"
4169 echo 'EGREP' >> "conftest.nl"
4170 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172 ac_count=`expr $ac_count + 1`
4173 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4174 # Best one so far, save it but keep looking for a better one
4175 ac_cv_path_EGREP="$ac_path_EGREP"
4176 ac_path_EGREP_max=$ac_count
4177 fi
4178 # 10*(2^10) chars as input seems more than enough
4179 test $ac_count -gt 10 && break
4180 done
4181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4182 esac
4183
4184
4185 $ac_path_EGREP_found && break 3
4186 done
4187 done
4188
4189 done
4190 IFS=$as_save_IFS
4191
4192
4193 fi
4194
4195 EGREP="$ac_cv_path_EGREP"
4196 if test -z "$EGREP"; then
4197 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4198 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4199 { (exit 1); exit 1; }; }
4200 fi
4201
4202 else
4203 ac_cv_path_EGREP=$EGREP
4204 fi
4205
4206
4207 fi
4208 fi
4209 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4210 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4211 EGREP="$ac_cv_path_EGREP"
4212
4213
4214 { echo "$as_me:$LINENO: checking for fgrep" >&5
4215 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4216 if test "${ac_cv_path_FGREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4220 then ac_cv_path_FGREP="$GREP -F"
4221 else
4222 # Extract the first word of "fgrep" to use in msg output
4223 if test -z "$FGREP"; then
4224 set dummy fgrep; ac_prog_name=$2
4225 if test "${ac_cv_path_FGREP+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 ac_path_FGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in fgrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4239 # Check for GNU ac_path_FGREP and select it if it is found.
4240 # Check for GNU $ac_path_FGREP
4241 case `"$ac_path_FGREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4244 *)
4245 ac_count=0
4246 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4247 while :
4248 do
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 echo 'FGREP' >> "conftest.nl"
4253 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 ac_count=`expr $ac_count + 1`
4256 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_FGREP="$ac_path_FGREP"
4259 ac_path_FGREP_max=$ac_count
4260 fi
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4266
4267
4268 $ac_path_FGREP_found && break 3
4269 done
4270 done
4271
4272 done
4273 IFS=$as_save_IFS
4274
4275
4276 fi
4277
4278 FGREP="$ac_cv_path_FGREP"
4279 if test -z "$FGREP"; then
4280 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4283 fi
4284
4285 else
4286 ac_cv_path_FGREP=$FGREP
4287 fi
4288
4289
4290 fi
4291 fi
4292 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4293 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4294 FGREP="$ac_cv_path_FGREP"
4295
4296
4297 test -z "$GREP" && GREP=grep
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 # Check whether --with-gnu-ld was given.
4318 if test "${with_gnu_ld+set}" = set; then
4319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4320 else
4321 with_gnu_ld=no
4322 fi
4323
4324 ac_prog=ld
4325 if test "$GCC" = yes; then
4326 # Check if gcc -print-prog-name=ld gives a path.
4327 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4328 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4329 case $host in
4330 *-*-mingw*)
4331 # gcc leaves a trailing carriage return which upsets mingw
4332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4333 *)
4334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4335 esac
4336 case $ac_prog in
4337 # Accept absolute paths.
4338 [\\/]* | ?:[\\/]*)
4339 re_direlt='/[^/][^/]*/\.\./'
4340 # Canonicalize the pathname of ld
4341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4344 done
4345 test -z "$LD" && LD="$ac_prog"
4346 ;;
4347 "")
4348 # If it fails, then pretend we aren't using GCC.
4349 ac_prog=ld
4350 ;;
4351 *)
4352 # If it is relative, then search for the first ld in PATH.
4353 with_gnu_ld=unknown
4354 ;;
4355 esac
4356 elif test "$with_gnu_ld" = yes; then
4357 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4359 else
4360 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4362 fi
4363 if test "${lt_cv_path_LD+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 if test -z "$LD"; then
4367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4368 for ac_dir in $PATH; do
4369 IFS="$lt_save_ifs"
4370 test -z "$ac_dir" && ac_dir=.
4371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4372 lt_cv_path_LD="$ac_dir/$ac_prog"
4373 # Check to see if the program is GNU ld. I'd rather use --version,
4374 # but apparently some variants of GNU ld only accept -v.
4375 # Break only if it was the GNU/non-GNU ld that we prefer.
4376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4377 *GNU* | *'with BFD'*)
4378 test "$with_gnu_ld" != no && break
4379 ;;
4380 *)
4381 test "$with_gnu_ld" != yes && break
4382 ;;
4383 esac
4384 fi
4385 done
4386 IFS="$lt_save_ifs"
4387 else
4388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4389 fi
4390 fi
4391
4392 LD="$lt_cv_path_LD"
4393 if test -n "$LD"; then
4394 { echo "$as_me:$LINENO: result: $LD" >&5
4395 echo "${ECHO_T}$LD" >&6; }
4396 else
4397 { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4399 fi
4400 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4401 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4402 { (exit 1); exit 1; }; }
4403 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4404 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4405 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4409 case `$LD -v 2>&1 </dev/null` in
4410 *GNU* | *'with BFD'*)
4411 lt_cv_prog_gnu_ld=yes
4412 ;;
4413 *)
4414 lt_cv_prog_gnu_ld=no
4415 ;;
4416 esac
4417 fi
4418 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4419 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4420 with_gnu_ld=$lt_cv_prog_gnu_ld
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4431 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4432 if test "${lt_cv_path_NM+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$NM"; then
4436 # Let the user override the test.
4437 lt_cv_path_NM="$NM"
4438 else
4439 lt_nm_to_check="${ac_tool_prefix}nm"
4440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4441 lt_nm_to_check="$lt_nm_to_check nm"
4442 fi
4443 for lt_tmp_nm in $lt_nm_to_check; do
4444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4446 IFS="$lt_save_ifs"
4447 test -z "$ac_dir" && ac_dir=.
4448 tmp_nm="$ac_dir/$lt_tmp_nm"
4449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4450 # Check to see if the nm accepts a BSD-compat flag.
4451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4452 # nm: unknown option "B" ignored
4453 # Tru64's nm complains that /dev/null is an invalid object file
4454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4455 */dev/null* | *'Invalid file or object type'*)
4456 lt_cv_path_NM="$tmp_nm -B"
4457 break
4458 ;;
4459 *)
4460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4461 */dev/null*)
4462 lt_cv_path_NM="$tmp_nm -p"
4463 break
4464 ;;
4465 *)
4466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4467 continue # so that we can try to find one that supports BSD flags
4468 ;;
4469 esac
4470 ;;
4471 esac
4472 fi
4473 done
4474 IFS="$lt_save_ifs"
4475 done
4476 : ${lt_cv_path_NM=no}
4477 fi
4478 fi
4479 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4480 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4481 if test "$lt_cv_path_NM" != "no"; then
4482 NM="$lt_cv_path_NM"
4483 else
4484 # Didn't find any BSD compatible name lister, look for dumpbin.
4485 if test -n "$ac_tool_prefix"; then
4486 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4487 do
4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 if test -n "$DUMPBIN"; then
4496 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513 fi
4514 fi
4515 DUMPBIN=$ac_cv_prog_DUMPBIN
4516 if test -n "$DUMPBIN"; then
4517 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4518 echo "${ECHO_T}$DUMPBIN" >&6; }
4519 else
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4522 fi
4523
4524
4525 test -n "$DUMPBIN" && break
4526 done
4527 fi
4528 if test -z "$DUMPBIN"; then
4529 ac_ct_DUMPBIN=$DUMPBIN
4530 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4531 do
4532 # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 if test -n "$ac_ct_DUMPBIN"; then
4540 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553 done
4554 done
4555 IFS=$as_save_IFS
4556
4557 fi
4558 fi
4559 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4560 if test -n "$ac_ct_DUMPBIN"; then
4561 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4562 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4563 else
4564 { echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6; }
4566 fi
4567
4568
4569 test -n "$ac_ct_DUMPBIN" && break
4570 done
4571
4572 if test "x$ac_ct_DUMPBIN" = x; then
4573 DUMPBIN=":"
4574 else
4575 case $cross_compiling:$ac_tool_warned in
4576 yes:)
4577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4578 whose name does not start with the host triplet. If you think this
4579 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
4580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4581 whose name does not start with the host triplet. If you think this
4582 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
4583 ac_tool_warned=yes ;;
4584 esac
4585 DUMPBIN=$ac_ct_DUMPBIN
4586 fi
4587 fi
4588
4589
4590 if test "$DUMPBIN" != ":"; then
4591 NM="$DUMPBIN"
4592 fi
4593 fi
4594 test -z "$NM" && NM=nm
4595
4596
4597
4598
4599
4600
4601 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4602 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4603 if test "${lt_cv_nm_interface+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606 lt_cv_nm_interface="BSD nm"
4607 echo "int some_variable = 0;" > conftest.$ac_ext
4608 (eval echo "\"\$as_me:4608: $ac_compile\"" >&5)
4609 (eval "$ac_compile" 2>conftest.err)
4610 cat conftest.err >&5
4611 (eval echo "\"\$as_me:4611: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4612 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4613 cat conftest.err >&5
4614 (eval echo "\"\$as_me:4614: output\"" >&5)
4615 cat conftest.out >&5
4616 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4617 lt_cv_nm_interface="MS dumpbin"
4618 fi
4619 rm -f conftest*
4620 fi
4621 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4622 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4623
4624 # find the maximum length of command line arguments
4625 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4626 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4627 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 i=0
4631 teststring="ABCD"
4632
4633 case $build_os in
4634 msdosdjgpp*)
4635 # On DJGPP, this test can blow up pretty badly due to problems in libc
4636 # (any single argument exceeding 2000 bytes causes a buffer overrun
4637 # during glob expansion). Even if it were fixed, the result of this
4638 # check would be larger than it should be.
4639 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4640 ;;
4641
4642 gnu*)
4643 # Under GNU Hurd, this test is not required because there is
4644 # no limit to the length of command line arguments.
4645 # Libtool will interpret -1 as no limit whatsoever
4646 lt_cv_sys_max_cmd_len=-1;
4647 ;;
4648
4649 cygwin* | mingw* | cegcc*)
4650 # On Win9x/ME, this test blows up -- it succeeds, but takes
4651 # about 5 minutes as the teststring grows exponentially.
4652 # Worse, since 9x/ME are not pre-emptively multitasking,
4653 # you end up with a "frozen" computer, even though with patience
4654 # the test eventually succeeds (with a max line length of 256k).
4655 # Instead, let's just punt: use the minimum linelength reported by
4656 # all of the supported platforms: 8192 (on NT/2K/XP).
4657 lt_cv_sys_max_cmd_len=8192;
4658 ;;
4659
4660 amigaos*)
4661 # On AmigaOS with pdksh, this test takes hours, literally.
4662 # So we just punt and use a minimum line length of 8192.
4663 lt_cv_sys_max_cmd_len=8192;
4664 ;;
4665
4666 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4667 # This has been around since 386BSD, at least. Likely further.
4668 if test -x /sbin/sysctl; then
4669 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4670 elif test -x /usr/sbin/sysctl; then
4671 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4672 else
4673 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4674 fi
4675 # And add a safety zone
4676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4678 ;;
4679
4680 interix*)
4681 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4682 lt_cv_sys_max_cmd_len=196608
4683 ;;
4684
4685 osf*)
4686 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4687 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4688 # nice to cause kernel panics so lets avoid the loop below.
4689 # First set a reasonable default.
4690 lt_cv_sys_max_cmd_len=16384
4691 #
4692 if test -x /sbin/sysconfig; then
4693 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4694 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4695 esac
4696 fi
4697 ;;
4698 sco3.2v5*)
4699 lt_cv_sys_max_cmd_len=102400
4700 ;;
4701 sysv5* | sco5v6* | sysv4.2uw2*)
4702 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4703 if test -n "$kargmax"; then
4704 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4705 else
4706 lt_cv_sys_max_cmd_len=32768
4707 fi
4708 ;;
4709 *)
4710 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4711 if test -n "$lt_cv_sys_max_cmd_len"; then
4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4714 else
4715 # Make teststring a little bigger before we do anything with it.
4716 # a 1K string should be a reasonable start.
4717 for i in 1 2 3 4 5 6 7 8 ; do
4718 teststring=$teststring$teststring
4719 done
4720 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4721 # If test is not a shell built-in, we'll probably end up computing a
4722 # maximum length that is only half of the actual maximum length, but
4723 # we can't tell.
4724 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4725 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4726 test $i != 17 # 1/2 MB should be enough
4727 do
4728 i=`expr $i + 1`
4729 teststring=$teststring$teststring
4730 done
4731 # Only check the string length outside the loop.
4732 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4733 teststring=
4734 # Add a significant safety factor because C++ compilers can tack on
4735 # massive amounts of additional arguments before passing them to the
4736 # linker. It appears as though 1/2 is a usable value.
4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4738 fi
4739 ;;
4740 esac
4741
4742 fi
4743
4744 if test -n $lt_cv_sys_max_cmd_len ; then
4745 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4746 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4747 else
4748 { echo "$as_me:$LINENO: result: none" >&5
4749 echo "${ECHO_T}none" >&6; }
4750 fi
4751 max_cmd_len=$lt_cv_sys_max_cmd_len
4752
4753
4754
4755
4756
4757
4758 : ${CP="cp -f"}
4759 : ${MV="mv -f"}
4760 : ${RM="rm -f"}
4761
4762 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4763 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4764 # Try some XSI features
4765 xsi_shell=no
4766 ( _lt_dummy="a/b/c"
4767 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4768 = c,a/b,, \
4769 && eval 'test $(( 1 + 1 )) -eq 2 \
4770 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4771 && xsi_shell=yes
4772 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4773 echo "${ECHO_T}$xsi_shell" >&6; }
4774
4775
4776 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4777 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4778 lt_shell_append=no
4779 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4780 >/dev/null 2>&1 \
4781 && lt_shell_append=yes
4782 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4783 echo "${ECHO_T}$lt_shell_append" >&6; }
4784
4785
4786 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4787 lt_unset=unset
4788 else
4789 lt_unset=false
4790 fi
4791
4792
4793
4794
4795
4796 # test EBCDIC or ASCII
4797 case `echo X|tr X '\101'` in
4798 A) # ASCII based system
4799 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4800 lt_SP2NL='tr \040 \012'
4801 lt_NL2SP='tr \015\012 \040\040'
4802 ;;
4803 *) # EBCDIC based system
4804 lt_SP2NL='tr \100 \n'
4805 lt_NL2SP='tr \r\n \100\100'
4806 ;;
4807 esac
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4818 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4819 if test "${lt_cv_ld_reload_flag+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 lt_cv_ld_reload_flag='-r'
4823 fi
4824 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4825 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4826 reload_flag=$lt_cv_ld_reload_flag
4827 case $reload_flag in
4828 "" | " "*) ;;
4829 *) reload_flag=" $reload_flag" ;;
4830 esac
4831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4832 case $host_os in
4833 darwin*)
4834 if test "$GCC" = yes; then
4835 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4836 else
4837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4838 fi
4839 ;;
4840 esac
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 if test -n "$OBJDUMP"; then
4859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 OBJDUMP=$ac_cv_prog_OBJDUMP
4879 if test -n "$OBJDUMP"; then
4880 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4881 echo "${ECHO_T}$OBJDUMP" >&6; }
4882 else
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4885 fi
4886
4887
4888 fi
4889 if test -z "$ac_cv_prog_OBJDUMP"; then
4890 ac_ct_OBJDUMP=$OBJDUMP
4891 # Extract the first word of "objdump", so it can be a program name with args.
4892 set dummy objdump; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 if test -n "$ac_ct_OBJDUMP"; then
4899 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4919 if test -n "$ac_ct_OBJDUMP"; then
4920 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4921 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4922 else
4923 { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4925 fi
4926
4927 if test "x$ac_ct_OBJDUMP" = x; then
4928 OBJDUMP="false"
4929 else
4930 case $cross_compiling:$ac_tool_warned in
4931 yes:)
4932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4933 whose name does not start with the host triplet. If you think this
4934 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
4935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4936 whose name does not start with the host triplet. If you think this
4937 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 OBJDUMP=$ac_ct_OBJDUMP
4941 fi
4942 else
4943 OBJDUMP="$ac_cv_prog_OBJDUMP"
4944 fi
4945
4946 test -z "$OBJDUMP" && OBJDUMP=objdump
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4957 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4958 if test "${lt_cv_deplibs_check_method+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961 lt_cv_file_magic_cmd='$MAGIC_CMD'
4962 lt_cv_file_magic_test_file=
4963 lt_cv_deplibs_check_method='unknown'
4964 # Need to set the preceding variable on all platforms that support
4965 # interlibrary dependencies.
4966 # 'none' -- dependencies not supported.
4967 # `unknown' -- same as none, but documents that we really don't know.
4968 # 'pass_all' -- all dependencies passed with no checks.
4969 # 'test_compile' -- check by making test program.
4970 # 'file_magic [[regex]]' -- check by looking for files in library path
4971 # which responds to the $file_magic_cmd with a given extended regex.
4972 # If you have `file' or equivalent on your system and you're not sure
4973 # whether `pass_all' will *always* work, you probably want this one.
4974
4975 case $host_os in
4976 aix[4-9]*)
4977 lt_cv_deplibs_check_method=pass_all
4978 ;;
4979
4980 beos*)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
4983
4984 bsdi[45]*)
4985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4986 lt_cv_file_magic_cmd='/usr/bin/file -L'
4987 lt_cv_file_magic_test_file=/shlib/libc.so
4988 ;;
4989
4990 cygwin*)
4991 # func_win32_libid is a shell function defined in ltmain.sh
4992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4993 lt_cv_file_magic_cmd='func_win32_libid'
4994 ;;
4995
4996 mingw* | pw32*)
4997 # Base MSYS/MinGW do not provide the 'file' command needed by
4998 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4999 # unless we find 'file', for example because we are cross-compiling.
5000 if ( file / ) >/dev/null 2>&1; then
5001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5002 lt_cv_file_magic_cmd='func_win32_libid'
5003 else
5004 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5005 lt_cv_file_magic_cmd='$OBJDUMP -f'
5006 fi
5007 ;;
5008
5009 cegcc)
5010 # use the weaker test based on 'objdump'. See mingw*.
5011 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5012 lt_cv_file_magic_cmd='$OBJDUMP -f'
5013 ;;
5014
5015 darwin* | rhapsody*)
5016 lt_cv_deplibs_check_method=pass_all
5017 ;;
5018
5019 freebsd* | dragonfly*)
5020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5021 case $host_cpu in
5022 i*86 )
5023 # Not sure whether the presence of OpenBSD here was a mistake.
5024 # Let's accept both of them until this is cleared up.
5025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5026 lt_cv_file_magic_cmd=/usr/bin/file
5027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5028 ;;
5029 esac
5030 else
5031 lt_cv_deplibs_check_method=pass_all
5032 fi
5033 ;;
5034
5035 gnu*)
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038
5039 hpux10.20* | hpux11*)
5040 lt_cv_file_magic_cmd=/usr/bin/file
5041 case $host_cpu in
5042 ia64*)
5043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5045 ;;
5046 hppa*64*)
5047 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]'
5048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5049 ;;
5050 *)
5051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5053 ;;
5054 esac
5055 ;;
5056
5057 interix[3-9]*)
5058 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5060 ;;
5061
5062 irix5* | irix6* | nonstopux*)
5063 case $LD in
5064 *-32|*"-32 ") libmagic=32-bit;;
5065 *-n32|*"-n32 ") libmagic=N32;;
5066 *-64|*"-64 ") libmagic=64-bit;;
5067 *) libmagic=never-match;;
5068 esac
5069 lt_cv_deplibs_check_method=pass_all
5070 ;;
5071
5072 # This must be Linux ELF.
5073 linux* | k*bsd*-gnu)
5074 lt_cv_deplibs_check_method=pass_all
5075 ;;
5076
5077 netbsd*)
5078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5080 else
5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5082 fi
5083 ;;
5084
5085 newos6*)
5086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5087 lt_cv_file_magic_cmd=/usr/bin/file
5088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5089 ;;
5090
5091 *nto* | *qnx*)
5092 lt_cv_deplibs_check_method=pass_all
5093 ;;
5094
5095 openbsd*)
5096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5098 else
5099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5100 fi
5101 ;;
5102
5103 osf3* | osf4* | osf5*)
5104 lt_cv_deplibs_check_method=pass_all
5105 ;;
5106
5107 rdos*)
5108 lt_cv_deplibs_check_method=pass_all
5109 ;;
5110
5111 solaris*)
5112 lt_cv_deplibs_check_method=pass_all
5113 ;;
5114
5115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118
5119 sysv4 | sysv4.3*)
5120 case $host_vendor in
5121 motorola)
5122 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]'
5123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5124 ;;
5125 ncr)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128 sequent)
5129 lt_cv_file_magic_cmd='/bin/file'
5130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5131 ;;
5132 sni)
5133 lt_cv_file_magic_cmd='/bin/file'
5134 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5135 lt_cv_file_magic_test_file=/lib/libc.so
5136 ;;
5137 siemens)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140 pc)
5141 lt_cv_deplibs_check_method=pass_all
5142 ;;
5143 esac
5144 ;;
5145
5146 tpf*)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
5149 esac
5150
5151 fi
5152 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5153 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5154 file_magic_cmd=$lt_cv_file_magic_cmd
5155 deplibs_check_method=$lt_cv_deplibs_check_method
5156 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}ar; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_AR+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 if test -n "$AR"; then
5178 ac_cv_prog_AR="$AR" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_AR="${ac_tool_prefix}ar"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 AR=$ac_cv_prog_AR
5198 if test -n "$AR"; then
5199 { echo "$as_me:$LINENO: result: $AR" >&5
5200 echo "${ECHO_T}$AR" >&6; }
5201 else
5202 { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_AR"; then
5209 ac_ct_AR=$AR
5210 # Extract the first word of "ar", so it can be a program name with args.
5211 set dummy ar; ac_word=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 if test -n "$ac_ct_AR"; then
5218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_AR="ar"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5238 if test -n "$ac_ct_AR"; then
5239 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5240 echo "${ECHO_T}$ac_ct_AR" >&6; }
5241 else
5242 { echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6; }
5244 fi
5245
5246 if test "x$ac_ct_AR" = x; then
5247 AR="false"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { echo "$as_me:$LINENO: 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 (at] gnu.org." >&5
5254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5255 whose name does not start with the host triplet. If you think this
5256 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 AR=$ac_ct_AR
5260 fi
5261 else
5262 AR="$ac_cv_prog_AR"
5263 fi
5264
5265 test -z "$AR" && AR=ar
5266 test -z "$AR_FLAGS" && AR_FLAGS=cru
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278 if test -n "$ac_tool_prefix"; then
5279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5280 set dummy ${ac_tool_prefix}strip; ac_word=$2
5281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5283 if test "${ac_cv_prog_STRIP+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if test -n "$STRIP"; then
5287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 STRIP=$ac_cv_prog_STRIP
5307 if test -n "$STRIP"; then
5308 { echo "$as_me:$LINENO: result: $STRIP" >&5
5309 echo "${ECHO_T}$STRIP" >&6; }
5310 else
5311 { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313 fi
5314
5315
5316 fi
5317 if test -z "$ac_cv_prog_STRIP"; then
5318 ac_ct_STRIP=$STRIP
5319 # Extract the first word of "strip", so it can be a program name with args.
5320 set dummy strip; ac_word=$2
5321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5323 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 if test -n "$ac_ct_STRIP"; then
5327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336 ac_cv_prog_ac_ct_STRIP="strip"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5347 if test -n "$ac_ct_STRIP"; then
5348 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5349 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5350 else
5351 { echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6; }
5353 fi
5354
5355 if test "x$ac_ct_STRIP" = x; then
5356 STRIP=":"
5357 else
5358 case $cross_compiling:$ac_tool_warned in
5359 yes:)
5360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5361 whose name does not start with the host triplet. If you think this
5362 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5364 whose name does not start with the host triplet. If you think this
5365 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368 STRIP=$ac_ct_STRIP
5369 fi
5370 else
5371 STRIP="$ac_cv_prog_STRIP"
5372 fi
5373
5374 test -z "$STRIP" && STRIP=:
5375
5376
5377
5378
5379
5380
5381 if test -n "$ac_tool_prefix"; then
5382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5386 if test "${ac_cv_prog_RANLIB+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 if test -n "$RANLIB"; then
5390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403 done
5404 done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 RANLIB=$ac_cv_prog_RANLIB
5410 if test -n "$RANLIB"; then
5411 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5412 echo "${ECHO_T}$RANLIB" >&6; }
5413 else
5414 { echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6; }
5416 fi
5417
5418
5419 fi
5420 if test -z "$ac_cv_prog_RANLIB"; then
5421 ac_ct_RANLIB=$RANLIB
5422 # Extract the first word of "ranlib", so it can be a program name with args.
5423 set dummy ranlib; ac_word=$2
5424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 if test -n "$ac_ct_RANLIB"; then
5430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439 ac_cv_prog_ac_ct_RANLIB="ranlib"
5440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5450 if test -n "$ac_ct_RANLIB"; then
5451 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5452 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5453 else
5454 { echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6; }
5456 fi
5457
5458 if test "x$ac_ct_RANLIB" = x; then
5459 RANLIB=":"
5460 else
5461 case $cross_compiling:$ac_tool_warned in
5462 yes:)
5463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5464 whose name does not start with the host triplet. If you think this
5465 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5467 whose name does not start with the host triplet. If you think this
5468 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471 RANLIB=$ac_ct_RANLIB
5472 fi
5473 else
5474 RANLIB="$ac_cv_prog_RANLIB"
5475 fi
5476
5477 test -z "$RANLIB" && RANLIB=:
5478
5479
5480
5481
5482
5483
5484 # Determine commands to create old-style static archives.
5485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5486 old_postinstall_cmds='chmod 644 $oldlib'
5487 old_postuninstall_cmds=
5488
5489 if test -n "$RANLIB"; then
5490 case $host_os in
5491 openbsd*)
5492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5493 ;;
5494 *)
5495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5496 ;;
5497 esac
5498 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5499 fi
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534 # If no C compiler was specified, use CC.
5535 LTCC=${LTCC-"$CC"}
5536
5537 # If no C compiler flags were specified, use CFLAGS.
5538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5539
5540 # Allow CC to be a program name with arguments.
5541 compiler=$CC
5542
5543
5544 # Check for command to grab the raw symbol name followed by C symbol from nm.
5545 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5546 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5547 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550
5551 # These are sane defaults that work on at least a few old systems.
5552 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5553
5554 # Character class describing NM global symbol codes.
5555 symcode='[BCDEGRST]'
5556
5557 # Regexp to match symbols that can be accessed directly from C.
5558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5559
5560 # Define system-specific variables.
5561 case $host_os in
5562 aix*)
5563 symcode='[BCDT]'
5564 ;;
5565 cygwin* | mingw* | pw32* | cegcc*)
5566 symcode='[ABCDGISTW]'
5567 ;;
5568 hpux*)
5569 if test "$host_cpu" = ia64; then
5570 symcode='[ABCDEGRST]'
5571 fi
5572 ;;
5573 irix* | nonstopux*)
5574 symcode='[BCDEGRST]'
5575 ;;
5576 osf*)
5577 symcode='[BCDEGQRST]'
5578 ;;
5579 solaris*)
5580 symcode='[BDRT]'
5581 ;;
5582 sco3.2v5*)
5583 symcode='[DT]'
5584 ;;
5585 sysv4.2uw2*)
5586 symcode='[DT]'
5587 ;;
5588 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5589 symcode='[ABDT]'
5590 ;;
5591 sysv4)
5592 symcode='[DFNSTU]'
5593 ;;
5594 esac
5595
5596 # If we're using GNU nm, then use its standard symbol codes.
5597 case `$NM -V 2>&1` in
5598 *GNU* | *'with BFD'*)
5599 symcode='[ABCDGIRSTW]' ;;
5600 esac
5601
5602 # Transform an extracted symbol line into a proper C declaration.
5603 # Some systems (esp. on ia64) link data and code symbols differently,
5604 # so use this general approach.
5605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5606
5607 # Transform an extracted symbol line into symbol name and symbol address
5608 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5609 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5610
5611 # Handle CRLF in mingw tool chain
5612 opt_cr=
5613 case $build_os in
5614 mingw*)
5615 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5616 ;;
5617 esac
5618
5619 # Try without a prefix underscore, then with it.
5620 for ac_symprfx in "" "_"; do
5621
5622 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5623 symxfrm="\\1 $ac_symprfx\\2 \\2"
5624
5625 # Write the raw and C identifiers.
5626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5627 # Fake it for dumpbin and say T for any non-static function
5628 # and D for any global variable.
5629 # Also find C++ and __fastcall symbols from MSVC++,
5630 # which start with @ or ?.
5631 lt_cv_sys_global_symbol_pipe="$AWK '"\
5632 " {last_section=section; section=\$ 3};"\
5633 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5634 " \$ 0!~/External *\|/{next};"\
5635 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5636 " {if(hide[section]) next};"\
5637 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5638 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5639 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5640 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5641 " ' prfx=^$ac_symprfx"
5642 else
5643 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5644 fi
5645
5646 # Check to see that the pipe works correctly.
5647 pipe_works=no
5648
5649 rm -f conftest*
5650 cat > conftest.$ac_ext <<_LT_EOF
5651 #ifdef __cplusplus
5652 extern "C" {
5653 #endif
5654 char nm_test_var;
5655 void nm_test_func(void);
5656 void nm_test_func(void){}
5657 #ifdef __cplusplus
5658 }
5659 #endif
5660 int main(){nm_test_var='a';nm_test_func();return(0);}
5661 _LT_EOF
5662
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664 (eval $ac_compile) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; then
5668 # Now try to grab the symbols.
5669 nlist=conftest.nm
5670 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5671 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && test -s "$nlist"; then
5675 # Try sorting and uniquifying the output.
5676 if sort "$nlist" | uniq > "$nlist"T; then
5677 mv -f "$nlist"T "$nlist"
5678 else
5679 rm -f "$nlist"T
5680 fi
5681
5682 # Make sure that we snagged all the symbols we need.
5683 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5684 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5685 cat <<_LT_EOF > conftest.$ac_ext
5686 #ifdef __cplusplus
5687 extern "C" {
5688 #endif
5689
5690 _LT_EOF
5691 # Now generate the symbol file.
5692 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5693
5694 cat <<_LT_EOF >> conftest.$ac_ext
5695
5696 /* The mapping between symbol names and symbols. */
5697 const struct {
5698 const char *name;
5699 void *address;
5700 }
5701 lt__PROGRAM__LTX_preloaded_symbols[] =
5702 {
5703 { "@PROGRAM@", (void *) 0 },
5704 _LT_EOF
5705 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5706 cat <<\_LT_EOF >> conftest.$ac_ext
5707 {0, (void *) 0}
5708 };
5709
5710 /* This works around a problem in FreeBSD linker */
5711 #ifdef FREEBSD_WORKAROUND
5712 static const void *lt_preloaded_setup() {
5713 return lt__PROGRAM__LTX_preloaded_symbols;
5714 }
5715 #endif
5716
5717 #ifdef __cplusplus
5718 }
5719 #endif
5720 _LT_EOF
5721 # Now try linking the two files.
5722 mv conftest.$ac_objext conftstm.$ac_objext
5723 lt_save_LIBS="$LIBS"
5724 lt_save_CFLAGS="$CFLAGS"
5725 LIBS="conftstm.$ac_objext"
5726 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5732 pipe_works=yes
5733 fi
5734 LIBS="$lt_save_LIBS"
5735 CFLAGS="$lt_save_CFLAGS"
5736 else
5737 echo "cannot find nm_test_func in $nlist" >&5
5738 fi
5739 else
5740 echo "cannot find nm_test_var in $nlist" >&5
5741 fi
5742 else
5743 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5744 fi
5745 else
5746 echo "$progname: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5748 fi
5749 rm -rf conftest* conftst*
5750
5751 # Do not use the global_symbol_pipe unless it works.
5752 if test "$pipe_works" = yes; then
5753 break
5754 else
5755 lt_cv_sys_global_symbol_pipe=
5756 fi
5757 done
5758
5759 fi
5760
5761 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5762 lt_cv_sys_global_symbol_to_cdecl=
5763 fi
5764 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5765 { echo "$as_me:$LINENO: result: failed" >&5
5766 echo "${ECHO_T}failed" >&6; }
5767 else
5768 { echo "$as_me:$LINENO: result: ok" >&5
5769 echo "${ECHO_T}ok" >&6; }
5770 fi
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 # Check whether --enable-libtool-lock was given.
5795 if test "${enable_libtool_lock+set}" = set; then
5796 enableval=$enable_libtool_lock;
5797 fi
5798
5799 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5800
5801 # Some flags need to be propagated to the compiler or linker for good
5802 # libtool support.
5803 case $host in
5804 ia64-*-hpux*)
5805 # Find out which ABI we are using.
5806 echo 'int i;' > conftest.$ac_ext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; then
5812 case `/usr/bin/file conftest.$ac_objext` in
5813 *ELF-32*)
5814 HPUX_IA64_MODE="32"
5815 ;;
5816 *ELF-64*)
5817 HPUX_IA64_MODE="64"
5818 ;;
5819 esac
5820 fi
5821 rm -rf conftest*
5822 ;;
5823 *-*-irix6*)
5824 # Find out which ABI we are using.
5825 echo '#line 5825 "configure"' > conftest.$ac_ext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; then
5831 if test "$lt_cv_prog_gnu_ld" = yes; then
5832 case `/usr/bin/file conftest.$ac_objext` in
5833 *32-bit*)
5834 LD="${LD-ld} -melf32bsmip"
5835 ;;
5836 *N32*)
5837 LD="${LD-ld} -melf32bmipn32"
5838 ;;
5839 *64-bit*)
5840 LD="${LD-ld} -melf64bmip"
5841 ;;
5842 esac
5843 else
5844 case `/usr/bin/file conftest.$ac_objext` in
5845 *32-bit*)
5846 LD="${LD-ld} -32"
5847 ;;
5848 *N32*)
5849 LD="${LD-ld} -n32"
5850 ;;
5851 *64-bit*)
5852 LD="${LD-ld} -64"
5853 ;;
5854 esac
5855 fi
5856 fi
5857 rm -rf conftest*
5858 ;;
5859
5860 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5861 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5862 # Find out which ABI we are using.
5863 echo 'int i;' > conftest.$ac_ext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; then
5869 case `/usr/bin/file conftest.o` in
5870 *32-bit*)
5871 case $host in
5872 x86_64-*kfreebsd*-gnu)
5873 LD="${LD-ld} -m elf_i386_fbsd"
5874 ;;
5875 x86_64-*linux*)
5876 LD="${LD-ld} -m elf_i386"
5877 ;;
5878 ppc64-*linux*|powerpc64-*linux*)
5879 LD="${LD-ld} -m elf32ppclinux"
5880 ;;
5881 s390x-*linux*)
5882 LD="${LD-ld} -m elf_s390"
5883 ;;
5884 sparc64-*linux*)
5885 LD="${LD-ld} -m elf32_sparc"
5886 ;;
5887 esac
5888 ;;
5889 *64-bit*)
5890 case $host in
5891 x86_64-*kfreebsd*-gnu)
5892 LD="${LD-ld} -m elf_x86_64_fbsd"
5893 ;;
5894 x86_64-*linux*)
5895 LD="${LD-ld} -m elf_x86_64"
5896 ;;
5897 ppc*-*linux*|powerpc*-*linux*)
5898 LD="${LD-ld} -m elf64ppc"
5899 ;;
5900 s390*-*linux*|s390*-*tpf*)
5901 LD="${LD-ld} -m elf64_s390"
5902 ;;
5903 sparc*-*linux*)
5904 LD="${LD-ld} -m elf64_sparc"
5905 ;;
5906 esac
5907 ;;
5908 esac
5909 fi
5910 rm -rf conftest*
5911 ;;
5912
5913 *-*-sco3.2v5*)
5914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5915 SAVE_CFLAGS="$CFLAGS"
5916 CFLAGS="$CFLAGS -belf"
5917 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5918 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5919 if test "${lt_cv_cc_needs_belf+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 ac_ext=c
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934
5935 int
5936 main ()
5937 {
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (ac_try="$ac_link"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_link") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest$ac_exeext &&
5960 $as_test_x conftest$ac_exeext; then
5961 lt_cv_cc_needs_belf=yes
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 lt_cv_cc_needs_belf=no
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5970 conftest$ac_exeext conftest.$ac_ext
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977 fi
5978 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5979 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5980 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5982 CFLAGS="$SAVE_CFLAGS"
5983 fi
5984 ;;
5985 sparc*-*solaris*)
5986 # Find out which ABI we are using.
5987 echo 'int i;' > conftest.$ac_ext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; then
5993 case `/usr/bin/file conftest.o` in
5994 *64-bit*)
5995 case $lt_cv_prog_gnu_ld in
5996 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5997 *)
5998 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5999 LD="${LD-ld} -64"
6000 fi
6001 ;;
6002 esac
6003 ;;
6004 esac
6005 fi
6006 rm -rf conftest*
6007 ;;
6008 esac
6009
6010 need_locks="$enable_libtool_lock"
6011
6012
6013 case $host_os in
6014 rhapsody* | darwin*)
6015 if test -n "$ac_tool_prefix"; then
6016 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6020 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 if test -n "$DSYMUTIL"; then
6024 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6044 if test -n "$DSYMUTIL"; then
6045 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6046 echo "${ECHO_T}$DSYMUTIL" >&6; }
6047 else
6048 { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6050 fi
6051
6052
6053 fi
6054 if test -z "$ac_cv_prog_DSYMUTIL"; then
6055 ac_ct_DSYMUTIL=$DSYMUTIL
6056 # Extract the first word of "dsymutil", so it can be a program name with args.
6057 set dummy dsymutil; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 if test -n "$ac_ct_DSYMUTIL"; then
6064 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6084 if test -n "$ac_ct_DSYMUTIL"; then
6085 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6086 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6087 else
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6090 fi
6091
6092 if test "x$ac_ct_DSYMUTIL" = x; then
6093 DSYMUTIL=":"
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6098 whose name does not start with the host triplet. If you think this
6099 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6101 whose name does not start with the host triplet. If you think this
6102 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6103 ac_tool_warned=yes ;;
6104 esac
6105 DSYMUTIL=$ac_ct_DSYMUTIL
6106 fi
6107 else
6108 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6109 fi
6110
6111 if test -n "$ac_tool_prefix"; then
6112 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 if test -n "$NMEDIT"; then
6120 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133 done
6134 done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 NMEDIT=$ac_cv_prog_NMEDIT
6140 if test -n "$NMEDIT"; then
6141 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6142 echo "${ECHO_T}$NMEDIT" >&6; }
6143 else
6144 { echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6; }
6146 fi
6147
6148
6149 fi
6150 if test -z "$ac_cv_prog_NMEDIT"; then
6151 ac_ct_NMEDIT=$NMEDIT
6152 # Extract the first word of "nmedit", so it can be a program name with args.
6153 set dummy nmedit; ac_word=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 if test -n "$ac_ct_NMEDIT"; then
6160 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173 done
6174 done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6180 if test -n "$ac_ct_NMEDIT"; then
6181 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6182 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6183 else
6184 { echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6; }
6186 fi
6187
6188 if test "x$ac_ct_NMEDIT" = x; then
6189 NMEDIT=":"
6190 else
6191 case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6194 whose name does not start with the host triplet. If you think this
6195 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6197 whose name does not start with the host triplet. If you think this
6198 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201 NMEDIT=$ac_ct_NMEDIT
6202 fi
6203 else
6204 NMEDIT="$ac_cv_prog_NMEDIT"
6205 fi
6206
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6212 if test "${ac_cv_prog_LIPO+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215 if test -n "$LIPO"; then
6216 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 LIPO=$ac_cv_prog_LIPO
6236 if test -n "$LIPO"; then
6237 { echo "$as_me:$LINENO: result: $LIPO" >&5
6238 echo "${ECHO_T}$LIPO" >&6; }
6239 else
6240 { echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6; }
6242 fi
6243
6244
6245 fi
6246 if test -z "$ac_cv_prog_LIPO"; then
6247 ac_ct_LIPO=$LIPO
6248 # Extract the first word of "lipo", so it can be a program name with args.
6249 set dummy lipo; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 if test -n "$ac_ct_LIPO"; then
6256 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_LIPO="lipo"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6276 if test -n "$ac_ct_LIPO"; then
6277 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6278 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6279 else
6280 { echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6; }
6282 fi
6283
6284 if test "x$ac_ct_LIPO" = x; then
6285 LIPO=":"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288 yes:)
6289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6290 whose name does not start with the host triplet. If you think this
6291 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6295 ac_tool_warned=yes ;;
6296 esac
6297 LIPO=$ac_ct_LIPO
6298 fi
6299 else
6300 LIPO="$ac_cv_prog_LIPO"
6301 fi
6302
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}otool; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_prog_OTOOL+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 if test -n "$OTOOL"; then
6312 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 OTOOL=$ac_cv_prog_OTOOL
6332 if test -n "$OTOOL"; then
6333 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6334 echo "${ECHO_T}$OTOOL" >&6; }
6335 else
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6338 fi
6339
6340
6341 fi
6342 if test -z "$ac_cv_prog_OTOOL"; then
6343 ac_ct_OTOOL=$OTOOL
6344 # Extract the first word of "otool", so it can be a program name with args.
6345 set dummy otool; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 if test -n "$ac_ct_OTOOL"; then
6352 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_ac_ct_OTOOL="otool"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6372 if test -n "$ac_ct_OTOOL"; then
6373 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6374 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6375 else
6376 { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6378 fi
6379
6380 if test "x$ac_ct_OTOOL" = x; then
6381 OTOOL=":"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6386 whose name does not start with the host triplet. If you think this
6387 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393 OTOOL=$ac_ct_OTOOL
6394 fi
6395 else
6396 OTOOL="$ac_cv_prog_OTOOL"
6397 fi
6398
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407 if test -n "$OTOOL64"; then
6408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 OTOOL64=$ac_cv_prog_OTOOL64
6428 if test -n "$OTOOL64"; then
6429 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6430 echo "${ECHO_T}$OTOOL64" >&6; }
6431 else
6432 { echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_OTOOL64"; then
6439 ac_ct_OTOOL64=$OTOOL64
6440 # Extract the first word of "otool64", so it can be a program name with args.
6441 set dummy otool64; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447 if test -n "$ac_ct_OTOOL64"; then
6448 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_OTOOL64="otool64"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6468 if test -n "$ac_ct_OTOOL64"; then
6469 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6470 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6471 else
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6474 fi
6475
6476 if test "x$ac_ct_OTOOL64" = x; then
6477 OTOOL64=":"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6482 whose name does not start with the host triplet. If you think this
6483 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6485 whose name does not start with the host triplet. If you think this
6486 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 OTOOL64=$ac_ct_OTOOL64
6490 fi
6491 else
6492 OTOOL64="$ac_cv_prog_OTOOL64"
6493 fi
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6522 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6523 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 lt_cv_apple_cc_single_mod=no
6527 if test -z "${LT_MULTI_MODULE}"; then
6528 # By default we will add the -single_module flag. You can override
6529 # by either setting the environment variable LT_MULTI_MODULE
6530 # non-empty at configure time, or by adding -multi_module to the
6531 # link flags.
6532 rm -rf libconftest.dylib*
6533 echo "int foo(void){return 1;}" > conftest.c
6534 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6535 -dynamiclib -Wl,-single_module conftest.c" >&5
6536 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6537 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6538 _lt_result=$?
6539 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6540 lt_cv_apple_cc_single_mod=yes
6541 else
6542 cat conftest.err >&5
6543 fi
6544 rm -rf libconftest.dylib*
6545 rm -f conftest.*
6546 fi
6547 fi
6548 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6549 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6550 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6551 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6552 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 lt_cv_ld_exported_symbols_list=no
6556 save_LDFLAGS=$LDFLAGS
6557 echo "_main" > conftest.sym
6558 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565
6566 int
6567 main ()
6568 {
6569
6570 ;
6571 return 0;
6572 }
6573 _ACEOF
6574 rm -f conftest.$ac_objext conftest$ac_exeext
6575 if { (ac_try="$ac_link"
6576 case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579 esac
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_link") 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } && {
6588 test -z "$ac_c_werror_flag" ||
6589 test ! -s conftest.err
6590 } && test -s conftest$ac_exeext &&
6591 $as_test_x conftest$ac_exeext; then
6592 lt_cv_ld_exported_symbols_list=yes
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 lt_cv_ld_exported_symbols_list=no
6598 fi
6599
6600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6601 conftest$ac_exeext conftest.$ac_ext
6602 LDFLAGS="$save_LDFLAGS"
6603
6604 fi
6605 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6606 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6607 case $host_os in
6608 rhapsody* | darwin1.[012])
6609 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6610 darwin1.*)
6611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6612 darwin*) # darwin 5.x on
6613 # if running on 10.5 or later, the deployment target defaults
6614 # to the OS version, if on x86, and 10.4, the deployment
6615 # target defaults to 10.4. Don't you love it?
6616 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6617 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6618 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6619 10.[012]*)
6620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6621 10.*)
6622 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6623 esac
6624 ;;
6625 esac
6626 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6627 _lt_dar_single_mod='$single_module'
6628 fi
6629 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6630 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6631 else
6632 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6633 fi
6634 if test "$DSYMUTIL" != ":"; then
6635 _lt_dsymutil='~$DSYMUTIL $lib || :'
6636 else
6637 _lt_dsymutil=
6638 fi
6639 ;;
6640 esac
6641
6642 ac_ext=c
6643 ac_cpp='$CPP $CPPFLAGS'
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6648 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6649 # On Suns, sometimes $CPP names a directory.
6650 if test -n "$CPP" && test -d "$CPP"; then
6651 CPP=
6652 fi
6653 if test -z "$CPP"; then
6654 if test "${ac_cv_prog_CPP+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 # Double quotes because CPP needs to be expanded
6658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6659 do
6660 ac_preproc_ok=false
6661 for ac_c_preproc_warn_flag in '' yes
6662 do
6663 # Use a header file that comes with gcc, so configuring glibc
6664 # with a fresh cross-compiler works.
6665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 # <limits.h> exists even on freestanding compilers.
6667 # On the NeXT, cc -E runs the code through the compiler's parser,
6668 # not just through cpp. "Syntax error" is here to catch this case.
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #ifdef __STDC__
6676 # include <limits.h>
6677 #else
6678 # include <assert.h>
6679 #endif
6680 Syntax error
6681 _ACEOF
6682 if { (ac_try="$ac_cpp conftest.$ac_ext"
6683 case "(($ac_try" in
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } >/dev/null && {
6695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 }; then
6698 :
6699 else
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 # Broken: fails on valid input.
6704 continue
6705 fi
6706
6707 rm -f conftest.err conftest.$ac_ext
6708
6709 # OK, works on sane cases. Now check whether nonexistent headers
6710 # can be detected and how.
6711 cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <ac_nonexistent.h>
6718 _ACEOF
6719 if { (ac_try="$ac_cpp conftest.$ac_ext"
6720 case "(($ac_try" in
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6723 esac
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } >/dev/null && {
6732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6733 test ! -s conftest.err
6734 }; then
6735 # Broken: success on invalid input.
6736 continue
6737 else
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741 # Passes both tests.
6742 ac_preproc_ok=:
6743 break
6744 fi
6745
6746 rm -f conftest.err conftest.$ac_ext
6747
6748 done
6749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6750 rm -f conftest.err conftest.$ac_ext
6751 if $ac_preproc_ok; then
6752 break
6753 fi
6754
6755 done
6756 ac_cv_prog_CPP=$CPP
6757
6758 fi
6759 CPP=$ac_cv_prog_CPP
6760 else
6761 ac_cv_prog_CPP=$CPP
6762 fi
6763 { echo "$as_me:$LINENO: result: $CPP" >&5
6764 echo "${ECHO_T}$CPP" >&6; }
6765 ac_preproc_ok=false
6766 for ac_c_preproc_warn_flag in '' yes
6767 do
6768 # Use a header file that comes with gcc, so configuring glibc
6769 # with a fresh cross-compiler works.
6770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6771 # <limits.h> exists even on freestanding compilers.
6772 # On the NeXT, cc -E runs the code through the compiler's parser,
6773 # not just through cpp. "Syntax error" is here to catch this case.
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #ifdef __STDC__
6781 # include <limits.h>
6782 #else
6783 # include <assert.h>
6784 #endif
6785 Syntax error
6786 _ACEOF
6787 if { (ac_try="$ac_cpp conftest.$ac_ext"
6788 case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } >/dev/null && {
6800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 }; then
6803 :
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 # Broken: fails on valid input.
6809 continue
6810 fi
6811
6812 rm -f conftest.err conftest.$ac_ext
6813
6814 # OK, works on sane cases. Now check whether nonexistent headers
6815 # can be detected and how.
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 #include <ac_nonexistent.h>
6823 _ACEOF
6824 if { (ac_try="$ac_cpp conftest.$ac_ext"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } >/dev/null && {
6837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 }; then
6840 # Broken: success on invalid input.
6841 continue
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846 # Passes both tests.
6847 ac_preproc_ok=:
6848 break
6849 fi
6850
6851 rm -f conftest.err conftest.$ac_ext
6852
6853 done
6854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6855 rm -f conftest.err conftest.$ac_ext
6856 if $ac_preproc_ok; then
6857 :
6858 else
6859 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6860 See \`config.log' for more details." >&5
6861 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6862 See \`config.log' for more details." >&2;}
6863 { (exit 1); exit 1; }; }
6864 fi
6865
6866 ac_ext=c
6867 ac_cpp='$CPP $CPPFLAGS'
6868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6871
6872
6873 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6875 if test "${ac_cv_header_stdc+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <stdlib.h>
6885 #include <stdarg.h>
6886 #include <string.h>
6887 #include <float.h>
6888
6889 int
6890 main ()
6891 {
6892
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 ac_cv_header_stdc=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 ac_cv_header_stdc=no
6920 fi
6921
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923
6924 if test $ac_cv_header_stdc = yes; then
6925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 #include <string.h>
6933
6934 _ACEOF
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 $EGREP "memchr" >/dev/null 2>&1; then
6937 :
6938 else
6939 ac_cv_header_stdc=no
6940 fi
6941 rm -f conftest*
6942
6943 fi
6944
6945 if test $ac_cv_header_stdc = yes; then
6946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h. */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6953 #include <stdlib.h>
6954
6955 _ACEOF
6956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6957 $EGREP "free" >/dev/null 2>&1; then
6958 :
6959 else
6960 ac_cv_header_stdc=no
6961 fi
6962 rm -f conftest*
6963
6964 fi
6965
6966 if test $ac_cv_header_stdc = yes; then
6967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6968 if test "$cross_compiling" = yes; then
6969 :
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #include <ctype.h>
6978 #include <stdlib.h>
6979 #if ((' ' & 0x0FF) == 0x020)
6980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6982 #else
6983 # define ISLOWER(c) \
6984 (('a' <= (c) && (c) <= 'i') \
6985 || ('j' <= (c) && (c) <= 'r') \
6986 || ('s' <= (c) && (c) <= 'z'))
6987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6988 #endif
6989
6990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6991 int
6992 main ()
6993 {
6994 int i;
6995 for (i = 0; i < 256; i++)
6996 if (XOR (islower (i), ISLOWER (i))
6997 || toupper (i) != TOUPPER (i))
6998 return 2;
6999 return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7004 case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7007 esac
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_link") 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7013 { (case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_try") 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 :
7023 else
7024 echo "$as_me: program exited with status $ac_status" >&5
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 ( exit $ac_status )
7029 ac_cv_header_stdc=no
7030 fi
7031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7032 fi
7033
7034
7035 fi
7036 fi
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7039 if test $ac_cv_header_stdc = yes; then
7040
7041 cat >>confdefs.h <<\_ACEOF
7042 #define STDC_HEADERS 1
7043 _ACEOF
7044
7045 fi
7046
7047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7058 inttypes.h stdint.h unistd.h
7059 do
7060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h. */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7072 $ac_includes_default
7073
7074 #include <$ac_header>
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7093 eval "$as_ac_Header=yes"
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 eval "$as_ac_Header=no"
7099 fi
7100
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 fi
7103 ac_res=`eval echo '${'$as_ac_Header'}'`
7104 { echo "$as_me:$LINENO: result: $ac_res" >&5
7105 echo "${ECHO_T}$ac_res" >&6; }
7106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7107 cat >>confdefs.h <<_ACEOF
7108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 _ACEOF
7110
7111 fi
7112
7113 done
7114
7115
7116
7117 for ac_header in dlfcn.h
7118 do
7119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h. */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 $ac_includes_default
7132
7133 #include <$ac_header>
7134 _ACEOF
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7137 case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140 esac
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7152 eval "$as_ac_Header=yes"
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157 eval "$as_ac_Header=no"
7158 fi
7159
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 fi
7162 ac_res=`eval echo '${'$as_ac_Header'}'`
7163 { echo "$as_me:$LINENO: result: $ac_res" >&5
7164 echo "${ECHO_T}$ac_res" >&6; }
7165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7166 cat >>confdefs.h <<_ACEOF
7167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7168 _ACEOF
7169
7170 fi
7171
7172 done
7173
7174
7175
7176 # Set options
7177
7178
7179
7180 enable_dlopen=no
7181
7182
7183 enable_win32_dll=no
7184
7185
7186 # Check whether --enable-shared was given.
7187 if test "${enable_shared+set}" = set; then
7188 enableval=$enable_shared; p=${PACKAGE-default}
7189 case $enableval in
7190 yes) enable_shared=yes ;;
7191 no) enable_shared=no ;;
7192 *)
7193 enable_shared=no
7194 # Look at the argument we got. We use all the common list separators.
7195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7196 for pkg in $enableval; do
7197 IFS="$lt_save_ifs"
7198 if test "X$pkg" = "X$p"; then
7199 enable_shared=yes
7200 fi
7201 done
7202 IFS="$lt_save_ifs"
7203 ;;
7204 esac
7205 else
7206 enable_shared=yes
7207 fi
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217 # Check whether --enable-static was given.
7218 if test "${enable_static+set}" = set; then
7219 enableval=$enable_static; p=${PACKAGE-default}
7220 case $enableval in
7221 yes) enable_static=yes ;;
7222 no) enable_static=no ;;
7223 *)
7224 enable_static=no
7225 # Look at the argument we got. We use all the common list separators.
7226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7227 for pkg in $enableval; do
7228 IFS="$lt_save_ifs"
7229 if test "X$pkg" = "X$p"; then
7230 enable_static=yes
7231 fi
7232 done
7233 IFS="$lt_save_ifs"
7234 ;;
7235 esac
7236 else
7237 enable_static=yes
7238 fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249 # Check whether --with-pic was given.
7250 if test "${with_pic+set}" = set; then
7251 withval=$with_pic; pic_mode="$withval"
7252 else
7253 pic_mode=default
7254 fi
7255
7256
7257 test -z "$pic_mode" && pic_mode=default
7258
7259
7260
7261
7262
7263
7264
7265 # Check whether --enable-fast-install was given.
7266 if test "${enable_fast_install+set}" = set; then
7267 enableval=$enable_fast_install; p=${PACKAGE-default}
7268 case $enableval in
7269 yes) enable_fast_install=yes ;;
7270 no) enable_fast_install=no ;;
7271 *)
7272 enable_fast_install=no
7273 # Look at the argument we got. We use all the common list separators.
7274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7275 for pkg in $enableval; do
7276 IFS="$lt_save_ifs"
7277 if test "X$pkg" = "X$p"; then
7278 enable_fast_install=yes
7279 fi
7280 done
7281 IFS="$lt_save_ifs"
7282 ;;
7283 esac
7284 else
7285 enable_fast_install=yes
7286 fi
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 # This can be used to rebuild libtool when needed
7299 LIBTOOL_DEPS="$ltmain"
7300
7301 # Always use our own libtool.
7302 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 test -z "$LN_S" && LN_S="ln -s"
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343 if test -n "${ZSH_VERSION+set}" ; then
7344 setopt NO_GLOB_SUBST
7345 fi
7346
7347 { echo "$as_me:$LINENO: checking for objdir" >&5
7348 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7349 if test "${lt_cv_objdir+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 rm -f .libs 2>/dev/null
7353 mkdir .libs 2>/dev/null
7354 if test -d .libs; then
7355 lt_cv_objdir=.libs
7356 else
7357 # MS-DOS does not allow filenames that begin with a dot.
7358 lt_cv_objdir=_libs
7359 fi
7360 rmdir .libs 2>/dev/null
7361 fi
7362 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7363 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7364 objdir=$lt_cv_objdir
7365
7366
7367
7368
7369
7370 cat >>confdefs.h <<_ACEOF
7371 #define LT_OBJDIR "$lt_cv_objdir/"
7372 _ACEOF
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 case $host_os in
7391 aix3*)
7392 # AIX sometimes has problems with the GCC collect2 program. For some
7393 # reason, if we set the COLLECT_NAMES environment variable, the problems
7394 # vanish in a puff of smoke.
7395 if test "X${COLLECT_NAMES+set}" != Xset; then
7396 COLLECT_NAMES=
7397 export COLLECT_NAMES
7398 fi
7399 ;;
7400 esac
7401
7402 # Sed substitution that helps us do robust quoting. It backslashifies
7403 # metacharacters that are still active within double-quoted strings.
7404 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7405
7406 # Same as above, but do not quote variable references.
7407 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7408
7409 # Sed substitution to delay expansion of an escaped shell variable in a
7410 # double_quote_subst'ed string.
7411 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7412
7413 # Sed substitution to delay expansion of an escaped single quote.
7414 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7415
7416 # Sed substitution to avoid accidental globbing in evaled expressions
7417 no_glob_subst='s/\*/\\\*/g'
7418
7419 # Global variables:
7420 ofile=libtool
7421 can_build_shared=yes
7422
7423 # All known linkers require a `.a' archive for static linking (except MSVC,
7424 # which needs '.lib').
7425 libext=a
7426
7427 with_gnu_ld="$lt_cv_prog_gnu_ld"
7428
7429 old_CC="$CC"
7430 old_CFLAGS="$CFLAGS"
7431
7432 # Set sane defaults for various variables
7433 test -z "$CC" && CC=cc
7434 test -z "$LTCC" && LTCC=$CC
7435 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7436 test -z "$LD" && LD=ld
7437 test -z "$ac_objext" && ac_objext=o
7438
7439 for cc_temp in $compiler""; do
7440 case $cc_temp in
7441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7443 \-*) ;;
7444 *) break;;
7445 esac
7446 done
7447 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7448
7449
7450 # Only perform the check for file, if the check method requires it
7451 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7452 case $deplibs_check_method in
7453 file_magic*)
7454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7455 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7456 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7457 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460 case $MAGIC_CMD in
7461 [\\/*] | ?:[\\/]*)
7462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7463 ;;
7464 *)
7465 lt_save_MAGIC_CMD="$MAGIC_CMD"
7466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7468 for ac_dir in $ac_dummy; do
7469 IFS="$lt_save_ifs"
7470 test -z "$ac_dir" && ac_dir=.
7471 if test -f $ac_dir/${ac_tool_prefix}file; then
7472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7473 if test -n "$file_magic_test_file"; then
7474 case $deplibs_check_method in
7475 "file_magic "*)
7476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7479 $EGREP "$file_magic_regex" > /dev/null; then
7480 :
7481 else
7482 cat <<_LT_EOF 1>&2
7483
7484 *** Warning: the command libtool uses to detect shared libraries,
7485 *** $file_magic_cmd, produces output that libtool cannot recognize.
7486 *** The result is that libtool may fail to recognize shared libraries
7487 *** as such. This will affect the creation of libtool libraries that
7488 *** depend on shared libraries, but programs linked with such libtool
7489 *** libraries will work regardless of this problem. Nevertheless, you
7490 *** may want to report the problem to your system manager and/or to
7491 *** bug-libtool@gnu.org
7492
7493 _LT_EOF
7494 fi ;;
7495 esac
7496 fi
7497 break
7498 fi
7499 done
7500 IFS="$lt_save_ifs"
7501 MAGIC_CMD="$lt_save_MAGIC_CMD"
7502 ;;
7503 esac
7504 fi
7505
7506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7507 if test -n "$MAGIC_CMD"; then
7508 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7509 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7510 else
7511 { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7513 fi
7514
7515
7516
7517
7518
7519 if test -z "$lt_cv_path_MAGIC_CMD"; then
7520 if test -n "$ac_tool_prefix"; then
7521 { echo "$as_me:$LINENO: checking for file" >&5
7522 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7523 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526 case $MAGIC_CMD in
7527 [\\/*] | ?:[\\/]*)
7528 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7529 ;;
7530 *)
7531 lt_save_MAGIC_CMD="$MAGIC_CMD"
7532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7534 for ac_dir in $ac_dummy; do
7535 IFS="$lt_save_ifs"
7536 test -z "$ac_dir" && ac_dir=.
7537 if test -f $ac_dir/file; then
7538 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7539 if test -n "$file_magic_test_file"; then
7540 case $deplibs_check_method in
7541 "file_magic "*)
7542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7545 $EGREP "$file_magic_regex" > /dev/null; then
7546 :
7547 else
7548 cat <<_LT_EOF 1>&2
7549
7550 *** Warning: the command libtool uses to detect shared libraries,
7551 *** $file_magic_cmd, produces output that libtool cannot recognize.
7552 *** The result is that libtool may fail to recognize shared libraries
7553 *** as such. This will affect the creation of libtool libraries that
7554 *** depend on shared libraries, but programs linked with such libtool
7555 *** libraries will work regardless of this problem. Nevertheless, you
7556 *** may want to report the problem to your system manager and/or to
7557 *** bug-libtool@gnu.org
7558
7559 _LT_EOF
7560 fi ;;
7561 esac
7562 fi
7563 break
7564 fi
7565 done
7566 IFS="$lt_save_ifs"
7567 MAGIC_CMD="$lt_save_MAGIC_CMD"
7568 ;;
7569 esac
7570 fi
7571
7572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7573 if test -n "$MAGIC_CMD"; then
7574 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7575 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7576 else
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581
7582 else
7583 MAGIC_CMD=:
7584 fi
7585 fi
7586
7587 fi
7588 ;;
7589 esac
7590
7591 # Use C for the default configuration in the libtool script
7592
7593 lt_save_CC="$CC"
7594 ac_ext=c
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600
7601 # Source file extension for C test sources.
7602 ac_ext=c
7603
7604 # Object file extension for compiled C test sources.
7605 objext=o
7606 objext=$objext
7607
7608 # Code to be used in simple compile tests
7609 lt_simple_compile_test_code="int some_variable = 0;"
7610
7611 # Code to be used in simple link tests
7612 lt_simple_link_test_code='int main(){return(0);}'
7613
7614
7615
7616
7617
7618
7619
7620 # If no C compiler was specified, use CC.
7621 LTCC=${LTCC-"$CC"}
7622
7623 # If no C compiler flags were specified, use CFLAGS.
7624 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7625
7626 # Allow CC to be a program name with arguments.
7627 compiler=$CC
7628
7629 # Save the default compiler, since it gets overwritten when the other
7630 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7631 compiler_DEFAULT=$CC
7632
7633 # save warnings/boilerplate of simple test code
7634 ac_outfile=conftest.$ac_objext
7635 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7637 _lt_compiler_boilerplate=`cat conftest.err`
7638 $RM conftest*
7639
7640 ac_outfile=conftest.$ac_objext
7641 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7643 _lt_linker_boilerplate=`cat conftest.err`
7644 $RM -r conftest*
7645
7646
7647 ## CAVEAT EMPTOR:
7648 ## There is no encapsulation within the following macros, do not change
7649 ## the running order or otherwise move them around unless you know exactly
7650 ## what you are doing...
7651 if test -n "$compiler"; then
7652
7653 lt_prog_compiler_no_builtin_flag=
7654
7655 if test "$GCC" = yes; then
7656 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7657
7658 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 lt_cv_prog_compiler_rtti_exceptions=no
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7666 lt_compiler_flag="-fno-rtti -fno-exceptions"
7667 # Insert the option either (1) after the last *FLAGS variable, or
7668 # (2) before a word containing "conftest.", or (3) at the end.
7669 # Note that $ac_compile itself does not contain backslashes and begins
7670 # with a dollar sign (not a hyphen), so the echo should work correctly.
7671 # The option is referenced via a variable to avoid confusing sed.
7672 lt_compile=`echo "$ac_compile" | $SED \
7673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675 -e 's:$: $lt_compiler_flag:'`
7676 (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
7677 (eval "$lt_compile" 2>conftest.err)
7678 ac_status=$?
7679 cat conftest.err >&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
7681 if (exit $ac_status) && test -s "$ac_outfile"; then
7682 # The compiler can only warn and ignore the option if not recognized
7683 # So say no if there are warnings other than the usual output.
7684 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7687 lt_cv_prog_compiler_rtti_exceptions=yes
7688 fi
7689 fi
7690 $RM conftest*
7691
7692 fi
7693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7694 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7695
7696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7697 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7698 else
7699 :
7700 fi
7701
7702 fi
7703
7704
7705
7706
7707
7708
7709 lt_prog_compiler_wl=
7710 lt_prog_compiler_pic=
7711 lt_prog_compiler_static=
7712
7713 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7715
7716 if test "$GCC" = yes; then
7717 lt_prog_compiler_wl='-Wl,'
7718 lt_prog_compiler_static='-static'
7719
7720 case $host_os in
7721 aix*)
7722 # All AIX code is PIC.
7723 if test "$host_cpu" = ia64; then
7724 # AIX 5 now supports IA64 processor
7725 lt_prog_compiler_static='-Bstatic'
7726 fi
7727 ;;
7728
7729 amigaos*)
7730 case $host_cpu in
7731 powerpc)
7732 # see comment about AmigaOS4 .so support
7733 lt_prog_compiler_pic='-fPIC'
7734 ;;
7735 m68k)
7736 # FIXME: we need at least 68020 code to build shared libraries, but
7737 # adding the `-m68020' flag to GCC prevents building anything better,
7738 # like `-m68040'.
7739 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7740 ;;
7741 esac
7742 ;;
7743
7744 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7745 # PIC is the default for these OSes.
7746 ;;
7747
7748 mingw* | cygwin* | pw32* | os2* | cegcc*)
7749 # This hack is so that the source file can tell whether it is being
7750 # built for inclusion in a dll (and should export symbols for example).
7751 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7752 # (--disable-auto-import) libraries
7753 lt_prog_compiler_pic='-DDLL_EXPORT'
7754 ;;
7755
7756 darwin* | rhapsody*)
7757 # PIC is the default on this platform
7758 # Common symbols not allowed in MH_DYLIB files
7759 lt_prog_compiler_pic='-fno-common'
7760 ;;
7761
7762 hpux*)
7763 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7764 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7765 # sets the default TLS model and affects inlining.
7766 case $host_cpu in
7767 hppa*64*)
7768 # +Z the default
7769 ;;
7770 *)
7771 lt_prog_compiler_pic='-fPIC'
7772 ;;
7773 esac
7774 ;;
7775
7776 interix[3-9]*)
7777 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7778 # Instead, we relocate shared libraries at runtime.
7779 ;;
7780
7781 msdosdjgpp*)
7782 # Just because we use GCC doesn't mean we suddenly get shared libraries
7783 # on systems that don't support them.
7784 lt_prog_compiler_can_build_shared=no
7785 enable_shared=no
7786 ;;
7787
7788 *nto* | *qnx*)
7789 # QNX uses GNU C++, but need to define -shared option too, otherwise
7790 # it will coredump.
7791 lt_prog_compiler_pic='-fPIC -shared'
7792 ;;
7793
7794 sysv4*MP*)
7795 if test -d /usr/nec; then
7796 lt_prog_compiler_pic=-Kconform_pic
7797 fi
7798 ;;
7799
7800 *)
7801 lt_prog_compiler_pic='-fPIC'
7802 ;;
7803 esac
7804 else
7805 # PORTME Check for flag to pass linker flags through the system compiler.
7806 case $host_os in
7807 aix*)
7808 lt_prog_compiler_wl='-Wl,'
7809 if test "$host_cpu" = ia64; then
7810 # AIX 5 now supports IA64 processor
7811 lt_prog_compiler_static='-Bstatic'
7812 else
7813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7814 fi
7815 ;;
7816
7817 mingw* | cygwin* | pw32* | os2* | cegcc*)
7818 # This hack is so that the source file can tell whether it is being
7819 # built for inclusion in a dll (and should export symbols for example).
7820 lt_prog_compiler_pic='-DDLL_EXPORT'
7821 ;;
7822
7823 hpux9* | hpux10* | hpux11*)
7824 lt_prog_compiler_wl='-Wl,'
7825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7826 # not for PA HP-UX.
7827 case $host_cpu in
7828 hppa*64*|ia64*)
7829 # +Z the default
7830 ;;
7831 *)
7832 lt_prog_compiler_pic='+Z'
7833 ;;
7834 esac
7835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7836 lt_prog_compiler_static='${wl}-a ${wl}archive'
7837 ;;
7838
7839 irix5* | irix6* | nonstopux*)
7840 lt_prog_compiler_wl='-Wl,'
7841 # PIC (with -KPIC) is the default.
7842 lt_prog_compiler_static='-non_shared'
7843 ;;
7844
7845 linux* | k*bsd*-gnu)
7846 case $cc_basename in
7847 # old Intel for x86_64 which still supported -KPIC.
7848 ecc*)
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-static'
7852 ;;
7853 # icc used to be incompatible with GCC.
7854 # ICC 10 doesn't accept -KPIC any more.
7855 icc* | ifort*)
7856 lt_prog_compiler_wl='-Wl,'
7857 lt_prog_compiler_pic='-fPIC'
7858 lt_prog_compiler_static='-static'
7859 ;;
7860 # Lahey Fortran 8.1.
7861 lf95*)
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_pic='--shared'
7864 lt_prog_compiler_static='--static'
7865 ;;
7866 pgcc* | pgf77* | pgf90* | pgf95*)
7867 # Portland Group compilers (*not* the Pentium gcc compiler,
7868 # which looks to be a dead project)
7869 lt_prog_compiler_wl='-Wl,'
7870 lt_prog_compiler_pic='-fpic'
7871 lt_prog_compiler_static='-Bstatic'
7872 ;;
7873 ccc*)
7874 lt_prog_compiler_wl='-Wl,'
7875 # All Alpha code is PIC.
7876 lt_prog_compiler_static='-non_shared'
7877 ;;
7878 xl*)
7879 # IBM XL C 8.0/Fortran 10.1 on PPC
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_pic='-qpic'
7882 lt_prog_compiler_static='-qstaticlink'
7883 ;;
7884 *)
7885 case `$CC -V 2>&1 | sed 5q` in
7886 *Sun\ C*)
7887 # Sun C 5.9
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_wl='-Wl,'
7891 ;;
7892 *Sun\ F*)
7893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7894 lt_prog_compiler_pic='-KPIC'
7895 lt_prog_compiler_static='-Bstatic'
7896 lt_prog_compiler_wl=''
7897 ;;
7898 esac
7899 ;;
7900 esac
7901 ;;
7902
7903 newsos6)
7904 lt_prog_compiler_pic='-KPIC'
7905 lt_prog_compiler_static='-Bstatic'
7906 ;;
7907
7908 *nto* | *qnx*)
7909 # QNX uses GNU C++, but need to define -shared option too, otherwise
7910 # it will coredump.
7911 lt_prog_compiler_pic='-fPIC -shared'
7912 ;;
7913
7914 osf3* | osf4* | osf5*)
7915 lt_prog_compiler_wl='-Wl,'
7916 # All OSF/1 code is PIC.
7917 lt_prog_compiler_static='-non_shared'
7918 ;;
7919
7920 rdos*)
7921 lt_prog_compiler_static='-non_shared'
7922 ;;
7923
7924 solaris*)
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-Bstatic'
7927 case $cc_basename in
7928 f77* | f90* | f95*)
7929 lt_prog_compiler_wl='-Qoption ld ';;
7930 *)
7931 lt_prog_compiler_wl='-Wl,';;
7932 esac
7933 ;;
7934
7935 sunos4*)
7936 lt_prog_compiler_wl='-Qoption ld '
7937 lt_prog_compiler_pic='-PIC'
7938 lt_prog_compiler_static='-Bstatic'
7939 ;;
7940
7941 sysv4 | sysv4.2uw2* | sysv4.3*)
7942 lt_prog_compiler_wl='-Wl,'
7943 lt_prog_compiler_pic='-KPIC'
7944 lt_prog_compiler_static='-Bstatic'
7945 ;;
7946
7947 sysv4*MP*)
7948 if test -d /usr/nec ;then
7949 lt_prog_compiler_pic='-Kconform_pic'
7950 lt_prog_compiler_static='-Bstatic'
7951 fi
7952 ;;
7953
7954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-Bstatic'
7958 ;;
7959
7960 unicos*)
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_can_build_shared=no
7963 ;;
7964
7965 uts4*)
7966 lt_prog_compiler_pic='-pic'
7967 lt_prog_compiler_static='-Bstatic'
7968 ;;
7969
7970 *)
7971 lt_prog_compiler_can_build_shared=no
7972 ;;
7973 esac
7974 fi
7975
7976 case $host_os in
7977 # For platforms which do not support PIC, -DPIC is meaningless:
7978 *djgpp*)
7979 lt_prog_compiler_pic=
7980 ;;
7981 *)
7982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7983 ;;
7984 esac
7985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7986 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7987
7988
7989
7990
7991
7992
7993 #
7994 # Check to make sure the PIC flag actually works.
7995 #
7996 if test -n "$lt_prog_compiler_pic"; then
7997 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7999 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 lt_cv_prog_compiler_pic_works=no
8003 ac_outfile=conftest.$ac_objext
8004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8005 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8006 # Insert the option either (1) after the last *FLAGS variable, or
8007 # (2) before a word containing "conftest.", or (3) at the end.
8008 # Note that $ac_compile itself does not contain backslashes and begins
8009 # with a dollar sign (not a hyphen), so the echo should work correctly.
8010 # The option is referenced via a variable to avoid confusing sed.
8011 lt_compile=`echo "$ac_compile" | $SED \
8012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8014 -e 's:$: $lt_compiler_flag:'`
8015 (eval echo "\"\$as_me:8015: $lt_compile\"" >&5)
8016 (eval "$lt_compile" 2>conftest.err)
8017 ac_status=$?
8018 cat conftest.err >&5
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 if (exit $ac_status) && test -s "$ac_outfile"; then
8021 # The compiler can only warn and ignore the option if not recognized
8022 # So say no if there are warnings other than the usual output.
8023 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8026 lt_cv_prog_compiler_pic_works=yes
8027 fi
8028 fi
8029 $RM conftest*
8030
8031 fi
8032 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8033 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8034
8035 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8036 case $lt_prog_compiler_pic in
8037 "" | " "*) ;;
8038 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8039 esac
8040 else
8041 lt_prog_compiler_pic=
8042 lt_prog_compiler_can_build_shared=no
8043 fi
8044
8045 fi
8046
8047
8048
8049
8050
8051
8052 #
8053 # Check to make sure the static flag actually works.
8054 #
8055 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8056 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8057 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8058 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061 lt_cv_prog_compiler_static_works=no
8062 save_LDFLAGS="$LDFLAGS"
8063 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8066 # The linker can only warn and ignore the option if not recognized
8067 # So say no if there are warnings
8068 if test -s conftest.err; then
8069 # Append any errors to the config.log.
8070 cat conftest.err 1>&5
8071 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8073 if diff conftest.exp conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_static_works=yes
8075 fi
8076 else
8077 lt_cv_prog_compiler_static_works=yes
8078 fi
8079 fi
8080 $RM -r conftest*
8081 LDFLAGS="$save_LDFLAGS"
8082
8083 fi
8084 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8085 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8086
8087 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8088 :
8089 else
8090 lt_prog_compiler_static=
8091 fi
8092
8093
8094
8095
8096
8097
8098
8099 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8101 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 lt_cv_prog_compiler_c_o=no
8105 $RM -r conftest 2>/dev/null
8106 mkdir conftest
8107 cd conftest
8108 mkdir out
8109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8110
8111 lt_compiler_flag="-o out/conftest2.$ac_objext"
8112 # Insert the option either (1) after the last *FLAGS variable, or
8113 # (2) before a word containing "conftest.", or (3) at the end.
8114 # Note that $ac_compile itself does not contain backslashes and begins
8115 # with a dollar sign (not a hyphen), so the echo should work correctly.
8116 lt_compile=`echo "$ac_compile" | $SED \
8117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8119 -e 's:$: $lt_compiler_flag:'`
8120 (eval echo "\"\$as_me:8120: $lt_compile\"" >&5)
8121 (eval "$lt_compile" 2>out/conftest.err)
8122 ac_status=$?
8123 cat out/conftest.err >&5
8124 echo "$as_me:8124: \$? = $ac_status" >&5
8125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8126 then
8127 # The compiler can only warn and ignore the option if not recognized
8128 # So say no if there are warnings
8129 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8132 lt_cv_prog_compiler_c_o=yes
8133 fi
8134 fi
8135 chmod u+w . 2>&5
8136 $RM conftest*
8137 # SGI C++ compiler will create directory out/ii_files/ for
8138 # template instantiation
8139 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8140 $RM out/* && rmdir out
8141 cd ..
8142 $RM -r conftest
8143 $RM conftest*
8144
8145 fi
8146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8148
8149
8150
8151
8152
8153
8154 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159 lt_cv_prog_compiler_c_o=no
8160 $RM -r conftest 2>/dev/null
8161 mkdir conftest
8162 cd conftest
8163 mkdir out
8164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8165
8166 lt_compiler_flag="-o out/conftest2.$ac_objext"
8167 # Insert the option either (1) after the last *FLAGS variable, or
8168 # (2) before a word containing "conftest.", or (3) at the end.
8169 # Note that $ac_compile itself does not contain backslashes and begins
8170 # with a dollar sign (not a hyphen), so the echo should work correctly.
8171 lt_compile=`echo "$ac_compile" | $SED \
8172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8174 -e 's:$: $lt_compiler_flag:'`
8175 (eval echo "\"\$as_me:8175: $lt_compile\"" >&5)
8176 (eval "$lt_compile" 2>out/conftest.err)
8177 ac_status=$?
8178 cat out/conftest.err >&5
8179 echo "$as_me:8179: \$? = $ac_status" >&5
8180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8181 then
8182 # The compiler can only warn and ignore the option if not recognized
8183 # So say no if there are warnings
8184 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8187 lt_cv_prog_compiler_c_o=yes
8188 fi
8189 fi
8190 chmod u+w . 2>&5
8191 $RM conftest*
8192 # SGI C++ compiler will create directory out/ii_files/ for
8193 # template instantiation
8194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8195 $RM out/* && rmdir out
8196 cd ..
8197 $RM -r conftest
8198 $RM conftest*
8199
8200 fi
8201 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8203
8204
8205
8206
8207 hard_links="nottested"
8208 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8209 # do not overwrite the value of need_locks provided by the user
8210 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8211 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8212 hard_links=yes
8213 $RM conftest*
8214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8215 touch conftest.a
8216 ln conftest.a conftest.b 2>&5 || hard_links=no
8217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8218 { echo "$as_me:$LINENO: result: $hard_links" >&5
8219 echo "${ECHO_T}$hard_links" >&6; }
8220 if test "$hard_links" = no; then
8221 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8222 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8223 need_locks=warn
8224 fi
8225 else
8226 need_locks=no
8227 fi
8228
8229
8230
8231
8232
8233
8234 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8235 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8236
8237 runpath_var=
8238 allow_undefined_flag=
8239 always_export_symbols=no
8240 archive_cmds=
8241 archive_expsym_cmds=
8242 compiler_needs_object=no
8243 enable_shared_with_static_runtimes=no
8244 export_dynamic_flag_spec=
8245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8246 hardcode_automatic=no
8247 hardcode_direct=no
8248 hardcode_direct_absolute=no
8249 hardcode_libdir_flag_spec=
8250 hardcode_libdir_flag_spec_ld=
8251 hardcode_libdir_separator=
8252 hardcode_minus_L=no
8253 hardcode_shlibpath_var=unsupported
8254 inherit_rpath=no
8255 link_all_deplibs=unknown
8256 module_cmds=
8257 module_expsym_cmds=
8258 old_archive_from_new_cmds=
8259 old_archive_from_expsyms_cmds=
8260 thread_safe_flag_spec=
8261 whole_archive_flag_spec=
8262 # include_expsyms should be a list of space-separated symbols to be *always*
8263 # included in the symbol list
8264 include_expsyms=
8265 # exclude_expsyms can be an extended regexp of symbols to exclude
8266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8268 # as well as any symbol that contains `d'.
8269 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8271 # platforms (ab)use it in PIC code, but their linkers get confused if
8272 # the symbol is explicitly referenced. Since portable code cannot
8273 # rely on this symbol name, it's probably fine to never include it in
8274 # preloaded symbol tables.
8275 # Exclude shared library initialization/finalization symbols.
8276 extract_expsyms_cmds=
8277
8278 case $host_os in
8279 cygwin* | mingw* | pw32* | cegcc*)
8280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8281 # When not using gcc, we currently assume that we are using
8282 # Microsoft Visual C++.
8283 if test "$GCC" != yes; then
8284 with_gnu_ld=no
8285 fi
8286 ;;
8287 interix*)
8288 # we just hope/assume this is gcc and not c89 (= MSVC++)
8289 with_gnu_ld=yes
8290 ;;
8291 openbsd*)
8292 with_gnu_ld=no
8293 ;;
8294 esac
8295
8296 ld_shlibs=yes
8297 if test "$with_gnu_ld" = yes; then
8298 # If archive_cmds runs LD, not CC, wlarc should be empty
8299 wlarc='${wl}'
8300
8301 # Set some defaults for GNU ld with shared library support. These
8302 # are reset later if shared libraries are not supported. Putting them
8303 # here allows them to be overridden if necessary.
8304 runpath_var=LD_RUN_PATH
8305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8306 export_dynamic_flag_spec='${wl}--export-dynamic'
8307 # ancient GNU ld didn't support --whole-archive et. al.
8308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8310 else
8311 whole_archive_flag_spec=
8312 fi
8313 supports_anon_versioning=no
8314 case `$LD -v 2>&1` in
8315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8318 *\ 2.11.*) ;; # other 2.11 versions
8319 *) supports_anon_versioning=yes ;;
8320 esac
8321
8322 # See if GNU ld supports shared libraries.
8323 case $host_os in
8324 aix[3-9]*)
8325 # On AIX/PPC, the GNU linker is very broken
8326 if test "$host_cpu" != ia64; then
8327 ld_shlibs=no
8328 cat <<_LT_EOF 1>&2
8329
8330 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8331 *** to be unable to reliably create shared libraries on AIX.
8332 *** Therefore, libtool is disabling shared libraries support. If you
8333 *** really care for shared libraries, you may want to modify your PATH
8334 *** so that a non-GNU linker is found, and then restart.
8335
8336 _LT_EOF
8337 fi
8338 ;;
8339
8340 amigaos*)
8341 case $host_cpu in
8342 powerpc)
8343 # see comment about AmigaOS4 .so support
8344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345 archive_expsym_cmds=''
8346 ;;
8347 m68k)
8348 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8349 hardcode_libdir_flag_spec='-L$libdir'
8350 hardcode_minus_L=yes
8351 ;;
8352 esac
8353 ;;
8354
8355 beos*)
8356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8357 allow_undefined_flag=unsupported
8358 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8359 # support --undefined. This deserves some investigation. FIXME
8360 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361 else
8362 ld_shlibs=no
8363 fi
8364 ;;
8365
8366 cygwin* | mingw* | pw32* | cegcc*)
8367 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8368 # as there is no search path for DLLs.
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 allow_undefined_flag=unsupported
8371 always_export_symbols=no
8372 enable_shared_with_static_runtimes=yes
8373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8374
8375 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8377 # If the export-symbols file already is a .def file (1st line
8378 # is EXPORTS), use it as is; otherwise, prepend...
8379 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8380 cp $export_symbols $output_objdir/$soname.def;
8381 else
8382 echo EXPORTS > $output_objdir/$soname.def;
8383 cat $export_symbols >> $output_objdir/$soname.def;
8384 fi~
8385 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8386 else
8387 ld_shlibs=no
8388 fi
8389 ;;
8390
8391 interix[3-9]*)
8392 hardcode_direct=no
8393 hardcode_shlibpath_var=no
8394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8395 export_dynamic_flag_spec='${wl}-E'
8396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8397 # Instead, shared libraries are loaded at an image base (0x10000000 by
8398 # default) and relocated if they conflict, which is a slow very memory
8399 # consuming and fragmenting process. To avoid this, we pick a random,
8400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8403 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8404 ;;
8405
8406 gnu* | linux* | tpf* | k*bsd*-gnu)
8407 tmp_diet=no
8408 if test "$host_os" = linux-dietlibc; then
8409 case $cc_basename in
8410 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8411 esac
8412 fi
8413 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8414 && test "$tmp_diet" = no
8415 then
8416 tmp_addflag=
8417 tmp_sharedflag='-shared'
8418 case $cc_basename,$host_cpu in
8419 pgcc*) # Portland Group C compiler
8420 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8421 tmp_addflag=' $pic_flag'
8422 ;;
8423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8424 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8425 tmp_addflag=' $pic_flag -Mnomain' ;;
8426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8427 tmp_addflag=' -i_dynamic' ;;
8428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8429 tmp_addflag=' -i_dynamic -nofor_main' ;;
8430 ifc* | ifort*) # Intel Fortran compiler
8431 tmp_addflag=' -nofor_main' ;;
8432 lf95*) # Lahey Fortran 8.1
8433 whole_archive_flag_spec=
8434 tmp_sharedflag='--shared' ;;
8435 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8436 tmp_sharedflag='-qmkshrobj'
8437 tmp_addflag= ;;
8438 esac
8439 case `$CC -V 2>&1 | sed 5q` in
8440 *Sun\ C*) # Sun C 5.9
8441 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8442 compiler_needs_object=yes
8443 tmp_sharedflag='-G' ;;
8444 *Sun\ F*) # Sun Fortran 8.3
8445 tmp_sharedflag='-G' ;;
8446 esac
8447 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448
8449 if test "x$supports_anon_versioning" = xyes; then
8450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8452 echo "local: *; };" >> $output_objdir/$libname.ver~
8453 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8454 fi
8455
8456 case $cc_basename in
8457 xlf*)
8458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8460 hardcode_libdir_flag_spec=
8461 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8462 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8463 if test "x$supports_anon_versioning" = xyes; then
8464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8466 echo "local: *; };" >> $output_objdir/$libname.ver~
8467 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8468 fi
8469 ;;
8470 esac
8471 else
8472 ld_shlibs=no
8473 fi
8474 ;;
8475
8476 netbsd*)
8477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8478 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8479 wlarc=
8480 else
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8483 fi
8484 ;;
8485
8486 solaris*)
8487 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8488 ld_shlibs=no
8489 cat <<_LT_EOF 1>&2
8490
8491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8492 *** create shared libraries on Solaris systems. Therefore, libtool
8493 *** is disabling shared libraries support. We urge you to upgrade GNU
8494 *** binutils to release 2.9.1 or newer. Another option is to modify
8495 *** your PATH or compiler configuration so that the native linker is
8496 *** used, and then restart.
8497
8498 _LT_EOF
8499 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8502 else
8503 ld_shlibs=no
8504 fi
8505 ;;
8506
8507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8508 case `$LD -v 2>&1` in
8509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8510 ld_shlibs=no
8511 cat <<_LT_EOF 1>&2
8512
8513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8514 *** reliably create shared libraries on SCO systems. Therefore, libtool
8515 *** is disabling shared libraries support. We urge you to upgrade GNU
8516 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8517 *** your PATH or compiler configuration so that the native linker is
8518 *** used, and then restart.
8519
8520 _LT_EOF
8521 ;;
8522 *)
8523 # For security reasons, it is highly recommended that you always
8524 # use absolute paths for naming shared libraries, and exclude the
8525 # DT_RUNPATH tag from executables and libraries. But doing so
8526 # requires that you compile everything twice, which is a pain.
8527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8531 else
8532 ld_shlibs=no
8533 fi
8534 ;;
8535 esac
8536 ;;
8537
8538 sunos4*)
8539 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8540 wlarc=
8541 hardcode_direct=yes
8542 hardcode_shlibpath_var=no
8543 ;;
8544
8545 *)
8546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8549 else
8550 ld_shlibs=no
8551 fi
8552 ;;
8553 esac
8554
8555 if test "$ld_shlibs" = no; then
8556 runpath_var=
8557 hardcode_libdir_flag_spec=
8558 export_dynamic_flag_spec=
8559 whole_archive_flag_spec=
8560 fi
8561 else
8562 # PORTME fill in a description of your system's linker (not GNU ld)
8563 case $host_os in
8564 aix3*)
8565 allow_undefined_flag=unsupported
8566 always_export_symbols=yes
8567 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8568 # Note: this linker hardcodes the directories in LIBPATH if there
8569 # are no directories specified by -L.
8570 hardcode_minus_L=yes
8571 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8572 # Neither direct hardcoding nor static linking is supported with a
8573 # broken collect2.
8574 hardcode_direct=unsupported
8575 fi
8576 ;;
8577
8578 aix[4-9]*)
8579 if test "$host_cpu" = ia64; then
8580 # On IA64, the linker does run time linking by default, so we don't
8581 # have to do anything special.
8582 aix_use_runtimelinking=no
8583 exp_sym_flag='-Bexport'
8584 no_entry_flag=""
8585 else
8586 # If we're using GNU nm, then we don't want the "-C" option.
8587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8588 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8589 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8590 else
8591 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8592 fi
8593 aix_use_runtimelinking=no
8594
8595 # Test if we are trying to use run time linking or normal
8596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8597 # need to do runtime linking.
8598 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8599 for ld_flag in $LDFLAGS; do
8600 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8601 aix_use_runtimelinking=yes
8602 break
8603 fi
8604 done
8605 ;;
8606 esac
8607
8608 exp_sym_flag='-bexport'
8609 no_entry_flag='-bnoentry'
8610 fi
8611
8612 # When large executables or shared objects are built, AIX ld can
8613 # have problems creating the table of contents. If linking a library
8614 # or program results in "error TOC overflow" add -mminimal-toc to
8615 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8616 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8617
8618 archive_cmds=''
8619 hardcode_direct=yes
8620 hardcode_direct_absolute=yes
8621 hardcode_libdir_separator=':'
8622 link_all_deplibs=yes
8623 file_list_spec='${wl}-f,'
8624
8625 if test "$GCC" = yes; then
8626 case $host_os in aix4.[012]|aix4.[012].*)
8627 # We only want to do this on AIX 4.2 and lower, the check
8628 # below for broken collect2 doesn't work under 4.3+
8629 collect2name=`${CC} -print-prog-name=collect2`
8630 if test -f "$collect2name" &&
8631 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8632 then
8633 # We have reworked collect2
8634 :
8635 else
8636 # We have old collect2
8637 hardcode_direct=unsupported
8638 # It fails to find uninstalled libraries when the uninstalled
8639 # path is not listed in the libpath. Setting hardcode_minus_L
8640 # to unsupported forces relinking
8641 hardcode_minus_L=yes
8642 hardcode_libdir_flag_spec='-L$libdir'
8643 hardcode_libdir_separator=
8644 fi
8645 ;;
8646 esac
8647 shared_flag='-shared'
8648 if test "$aix_use_runtimelinking" = yes; then
8649 shared_flag="$shared_flag "'${wl}-G'
8650 fi
8651 else
8652 # not using gcc
8653 if test "$host_cpu" = ia64; then
8654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8655 # chokes on -Wl,-G. The following line is correct:
8656 shared_flag='-G'
8657 else
8658 if test "$aix_use_runtimelinking" = yes; then
8659 shared_flag='${wl}-G'
8660 else
8661 shared_flag='${wl}-bM:SRE'
8662 fi
8663 fi
8664 fi
8665
8666 export_dynamic_flag_spec='${wl}-bexpall'
8667 # It seems that -bexpall does not export symbols beginning with
8668 # underscore (_), so it is better to generate a list of symbols to export.
8669 always_export_symbols=yes
8670 if test "$aix_use_runtimelinking" = yes; then
8671 # Warning - without using the other runtime loading flags (-brtl),
8672 # -berok will link without error, but may produce a broken library.
8673 allow_undefined_flag='-berok'
8674 # Determine the default libpath from the value encoded in an
8675 # empty executable.
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h. */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682
8683 int
8684 main ()
8685 {
8686
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (ac_try="$ac_link"
8693 case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_link") 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest$ac_exeext &&
8708 $as_test_x conftest$ac_exeext; then
8709
8710 lt_aix_libpath_sed='
8711 /Import File Strings/,/^$/ {
8712 /^0/ {
8713 s/^0 *\(.*\)$/\1/
8714 p
8715 }
8716 }'
8717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8718 # Check for a 64-bit object if we didn't find anything.
8719 if test -z "$aix_libpath"; then
8720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8721 fi
8722 else
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726
8727 fi
8728
8729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8730 conftest$ac_exeext conftest.$ac_ext
8731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8732
8733 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8734 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8735 else
8736 if test "$host_cpu" = ia64; then
8737 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8738 allow_undefined_flag="-z nodefs"
8739 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8740 else
8741 # Determine the default libpath from the value encoded in an
8742 # empty executable.
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749
8750 int
8751 main ()
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_link") 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest$ac_exeext &&
8775 $as_test_x conftest$ac_exeext; then
8776
8777 lt_aix_libpath_sed='
8778 /Import File Strings/,/^$/ {
8779 /^0/ {
8780 s/^0 *\(.*\)$/\1/
8781 p
8782 }
8783 }'
8784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8785 # Check for a 64-bit object if we didn't find anything.
8786 if test -z "$aix_libpath"; then
8787 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8788 fi
8789 else
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793
8794 fi
8795
8796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8797 conftest$ac_exeext conftest.$ac_ext
8798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8799
8800 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8801 # Warning - without using the other run time loading flags,
8802 # -berok will link without error, but may produce a broken library.
8803 no_undefined_flag=' ${wl}-bernotok'
8804 allow_undefined_flag=' ${wl}-berok'
8805 # Exported symbols can be pulled into shared objects from archives
8806 whole_archive_flag_spec='$convenience'
8807 archive_cmds_need_lc=yes
8808 # This is similar to how AIX traditionally builds its shared libraries.
8809 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8810 fi
8811 fi
8812 ;;
8813
8814 amigaos*)
8815 case $host_cpu in
8816 powerpc)
8817 # see comment about AmigaOS4 .so support
8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds=''
8820 ;;
8821 m68k)
8822 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8823 hardcode_libdir_flag_spec='-L$libdir'
8824 hardcode_minus_L=yes
8825 ;;
8826 esac
8827 ;;
8828
8829 bsdi[45]*)
8830 export_dynamic_flag_spec=-rdynamic
8831 ;;
8832
8833 cygwin* | mingw* | pw32* | cegcc*)
8834 # When not using gcc, we currently assume that we are using
8835 # Microsoft Visual C++.
8836 # hardcode_libdir_flag_spec is actually meaningless, as there is
8837 # no search path for DLLs.
8838 hardcode_libdir_flag_spec=' '
8839 allow_undefined_flag=unsupported
8840 # Tell ltmain to make .lib files, not .a files.
8841 libext=lib
8842 # Tell ltmain to make .dll files, not .so files.
8843 shrext_cmds=".dll"
8844 # FIXME: Setting linknames here is a bad hack.
8845 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8846 # The linker will automatically build a .lib file if we build a DLL.
8847 old_archive_from_new_cmds='true'
8848 # FIXME: Should let the user specify the lib program.
8849 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8850 fix_srcfile_path='`cygpath -w "$srcfile"`'
8851 enable_shared_with_static_runtimes=yes
8852 ;;
8853
8854 darwin* | rhapsody*)
8855
8856
8857 archive_cmds_need_lc=no
8858 hardcode_direct=no
8859 hardcode_automatic=yes
8860 hardcode_shlibpath_var=unsupported
8861 whole_archive_flag_spec=''
8862 link_all_deplibs=yes
8863 allow_undefined_flag="$_lt_dar_allow_undefined"
8864 case $cc_basename in
8865 ifort*) _lt_dar_can_shared=yes ;;
8866 *) _lt_dar_can_shared=$GCC ;;
8867 esac
8868 if test "$_lt_dar_can_shared" = "yes"; then
8869 output_verbose_link_cmd=echo
8870 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8871 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8872 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8873 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8874
8875 else
8876 ld_shlibs=no
8877 fi
8878
8879 ;;
8880
8881 dgux*)
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_libdir_flag_spec='-L$libdir'
8884 hardcode_shlibpath_var=no
8885 ;;
8886
8887 freebsd1*)
8888 ld_shlibs=no
8889 ;;
8890
8891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8892 # support. Future versions do this automatically, but an explicit c++rt0.o
8893 # does not break anything, and helps significantly (at the cost of a little
8894 # extra space).
8895 freebsd2.2*)
8896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8897 hardcode_libdir_flag_spec='-R$libdir'
8898 hardcode_direct=yes
8899 hardcode_shlibpath_var=no
8900 ;;
8901
8902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8903 freebsd2*)
8904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_direct=yes
8906 hardcode_minus_L=yes
8907 hardcode_shlibpath_var=no
8908 ;;
8909
8910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8911 freebsd* | dragonfly*)
8912 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8913 hardcode_libdir_flag_spec='-R$libdir'
8914 hardcode_direct=yes
8915 hardcode_shlibpath_var=no
8916 ;;
8917
8918 hpux9*)
8919 if test "$GCC" = yes; then
8920 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8921 else
8922 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8923 fi
8924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8925 hardcode_libdir_separator=:
8926 hardcode_direct=yes
8927
8928 # hardcode_minus_L: Not really in the search PATH,
8929 # but as the default location of the library.
8930 hardcode_minus_L=yes
8931 export_dynamic_flag_spec='${wl}-E'
8932 ;;
8933
8934 hpux10*)
8935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8936 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8937 else
8938 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8939 fi
8940 if test "$with_gnu_ld" = no; then
8941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8942 hardcode_libdir_flag_spec_ld='+b $libdir'
8943 hardcode_libdir_separator=:
8944 hardcode_direct=yes
8945 hardcode_direct_absolute=yes
8946 export_dynamic_flag_spec='${wl}-E'
8947 # hardcode_minus_L: Not really in the search PATH,
8948 # but as the default location of the library.
8949 hardcode_minus_L=yes
8950 fi
8951 ;;
8952
8953 hpux11*)
8954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8955 case $host_cpu in
8956 hppa*64*)
8957 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8958 ;;
8959 ia64*)
8960 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8961 ;;
8962 *)
8963 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8964 ;;
8965 esac
8966 else
8967 case $host_cpu in
8968 hppa*64*)
8969 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 ;;
8971 ia64*)
8972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8973 ;;
8974 *)
8975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8976 ;;
8977 esac
8978 fi
8979 if test "$with_gnu_ld" = no; then
8980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8981 hardcode_libdir_separator=:
8982
8983 case $host_cpu in
8984 hppa*64*|ia64*)
8985 hardcode_direct=no
8986 hardcode_shlibpath_var=no
8987 ;;
8988 *)
8989 hardcode_direct=yes
8990 hardcode_direct_absolute=yes
8991 export_dynamic_flag_spec='${wl}-E'
8992
8993 # hardcode_minus_L: Not really in the search PATH,
8994 # but as the default location of the library.
8995 hardcode_minus_L=yes
8996 ;;
8997 esac
8998 fi
8999 ;;
9000
9001 irix5* | irix6* | nonstopux*)
9002 if test "$GCC" = yes; then
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9004 # Try to use the -exported_symbol ld option, if it does not
9005 # work, assume that -exports_file does not work either and
9006 # implicitly export all symbols.
9007 save_LDFLAGS="$LDFLAGS"
9008 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9009 cat >conftest.$ac_ext <<_ACEOF
9010 int foo(void) {}
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (ac_try="$ac_link"
9014 case "(($ac_try" in
9015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9017 esac
9018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9019 (eval "$ac_link") 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest$ac_exeext &&
9029 $as_test_x conftest$ac_exeext; then
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9031
9032 else
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036
9037 fi
9038
9039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LDFLAGS="$save_LDFLAGS"
9042 else
9043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9045 fi
9046 archive_cmds_need_lc='no'
9047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9048 hardcode_libdir_separator=:
9049 inherit_rpath=yes
9050 link_all_deplibs=yes
9051 ;;
9052
9053 netbsd*)
9054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9056 else
9057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9058 fi
9059 hardcode_libdir_flag_spec='-R$libdir'
9060 hardcode_direct=yes
9061 hardcode_shlibpath_var=no
9062 ;;
9063
9064 newsos6)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_direct=yes
9067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9068 hardcode_libdir_separator=:
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 *nto* | *qnx*)
9073 ;;
9074
9075 openbsd*)
9076 if test -f /usr/libexec/ld.so; then
9077 hardcode_direct=yes
9078 hardcode_shlibpath_var=no
9079 hardcode_direct_absolute=yes
9080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9084 export_dynamic_flag_spec='${wl}-E'
9085 else
9086 case $host_os in
9087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9089 hardcode_libdir_flag_spec='-R$libdir'
9090 ;;
9091 *)
9092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9094 ;;
9095 esac
9096 fi
9097 else
9098 ld_shlibs=no
9099 fi
9100 ;;
9101
9102 os2*)
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_minus_L=yes
9105 allow_undefined_flag=unsupported
9106 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9107 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9108 ;;
9109
9110 osf3*)
9111 if test "$GCC" = yes; then
9112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9113 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9114 else
9115 allow_undefined_flag=' -expect_unresolved \*'
9116 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9117 fi
9118 archive_cmds_need_lc='no'
9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120 hardcode_libdir_separator=:
9121 ;;
9122
9123 osf4* | osf5*) # as osf3* with the addition of -msym flag
9124 if test "$GCC" = yes; then
9125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9126 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9128 else
9129 allow_undefined_flag=' -expect_unresolved \*'
9130 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9131 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9132 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9133
9134 # Both c and cxx compiler support -rpath directly
9135 hardcode_libdir_flag_spec='-rpath $libdir'
9136 fi
9137 archive_cmds_need_lc='no'
9138 hardcode_libdir_separator=:
9139 ;;
9140
9141 solaris*)
9142 no_undefined_flag=' -z defs'
9143 if test "$GCC" = yes; then
9144 wlarc='${wl}'
9145 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9147 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9148 else
9149 case `$CC -V 2>&1` in
9150 *"Compilers 5.0"*)
9151 wlarc=''
9152 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9155 ;;
9156 *)
9157 wlarc='${wl}'
9158 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9160 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9161 ;;
9162 esac
9163 fi
9164 hardcode_libdir_flag_spec='-R$libdir'
9165 hardcode_shlibpath_var=no
9166 case $host_os in
9167 solaris2.[0-5] | solaris2.[0-5].*) ;;
9168 *)
9169 # The compiler driver will combine and reorder linker options,
9170 # but understands `-z linker_flag'. GCC discards it without `$wl',
9171 # but is careful enough not to reorder.
9172 # Supported since Solaris 2.6 (maybe 2.5.1?)
9173 if test "$GCC" = yes; then
9174 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9175 else
9176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9177 fi
9178 ;;
9179 esac
9180 link_all_deplibs=yes
9181 ;;
9182
9183 sunos4*)
9184 if test "x$host_vendor" = xsequent; then
9185 # Use $CC to link under sequent, because it throws in some extra .o
9186 # files that make .init and .fini sections work.
9187 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9188 else
9189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9190 fi
9191 hardcode_libdir_flag_spec='-L$libdir'
9192 hardcode_direct=yes
9193 hardcode_minus_L=yes
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 sysv4)
9198 case $host_vendor in
9199 sni)
9200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9201 hardcode_direct=yes # is this really true???
9202 ;;
9203 siemens)
9204 ## LD is ld it makes a PLAMLIB
9205 ## CC just makes a GrossModule.
9206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9207 reload_cmds='$CC -r -o $output$reload_objs'
9208 hardcode_direct=no
9209 ;;
9210 motorola)
9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9213 ;;
9214 esac
9215 runpath_var='LD_RUN_PATH'
9216 hardcode_shlibpath_var=no
9217 ;;
9218
9219 sysv4.3*)
9220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_shlibpath_var=no
9222 export_dynamic_flag_spec='-Bexport'
9223 ;;
9224
9225 sysv4*MP*)
9226 if test -d /usr/nec; then
9227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_shlibpath_var=no
9229 runpath_var=LD_RUN_PATH
9230 hardcode_runpath_var=yes
9231 ld_shlibs=yes
9232 fi
9233 ;;
9234
9235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9236 no_undefined_flag='${wl}-z,text'
9237 archive_cmds_need_lc=no
9238 hardcode_shlibpath_var=no
9239 runpath_var='LD_RUN_PATH'
9240
9241 if test "$GCC" = yes; then
9242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9244 else
9245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 fi
9248 ;;
9249
9250 sysv5* | sco3.2v5* | sco5v6*)
9251 # Note: We can NOT use -z defs as we might desire, because we do not
9252 # link with -lc, and that would cause any symbols used from libc to
9253 # always be unresolved, which means just about no library would
9254 # ever link correctly. If we're not using GNU ld we use -z text
9255 # though, which does catch some bad symbols but isn't as heavy-handed
9256 # as -z defs.
9257 no_undefined_flag='${wl}-z,text'
9258 allow_undefined_flag='${wl}-z,nodefs'
9259 archive_cmds_need_lc=no
9260 hardcode_shlibpath_var=no
9261 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9262 hardcode_libdir_separator=':'
9263 link_all_deplibs=yes
9264 export_dynamic_flag_spec='${wl}-Bexport'
9265 runpath_var='LD_RUN_PATH'
9266
9267 if test "$GCC" = yes; then
9268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9270 else
9271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 fi
9274 ;;
9275
9276 uts4*)
9277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_shlibpath_var=no
9280 ;;
9281
9282 *)
9283 ld_shlibs=no
9284 ;;
9285 esac
9286
9287 if test x$host_vendor = xsni; then
9288 case $host in
9289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9290 export_dynamic_flag_spec='${wl}-Blargedynsym'
9291 ;;
9292 esac
9293 fi
9294 fi
9295
9296 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9297 echo "${ECHO_T}$ld_shlibs" >&6; }
9298 test "$ld_shlibs" = no && can_build_shared=no
9299
9300 with_gnu_ld=$with_gnu_ld
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316 #
9317 # Do we need to explicitly link libc?
9318 #
9319 case "x$archive_cmds_need_lc" in
9320 x|xyes)
9321 # Assume -lc should be added
9322 archive_cmds_need_lc=yes
9323
9324 if test "$enable_shared" = yes && test "$GCC" = yes; then
9325 case $archive_cmds in
9326 *'~'*)
9327 # FIXME: we may have to deal with multi-command sequences.
9328 ;;
9329 '$CC '*)
9330 # Test whether the compiler implicitly links with -lc since on some
9331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9332 # to ld, don't add -lc before -lgcc.
9333 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9334 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9335 $RM conftest*
9336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9337
9338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9339 (eval $ac_compile) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } 2>conftest.err; then
9343 soname=conftest
9344 lib=conftest
9345 libobjs=conftest.$ac_objext
9346 deplibs=
9347 wl=$lt_prog_compiler_wl
9348 pic_flag=$lt_prog_compiler_pic
9349 compiler_flags=-v
9350 linker_flags=-v
9351 verstring=
9352 output_objdir=.
9353 libname=conftest
9354 lt_save_allow_undefined_flag=$allow_undefined_flag
9355 allow_undefined_flag=
9356 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9357 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }
9361 then
9362 archive_cmds_need_lc=no
9363 else
9364 archive_cmds_need_lc=yes
9365 fi
9366 allow_undefined_flag=$lt_save_allow_undefined_flag
9367 else
9368 cat conftest.err 1>&5
9369 fi
9370 $RM conftest*
9371 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9372 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9373 ;;
9374 esac
9375 fi
9376 ;;
9377 esac
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9537
9538 if test "$GCC" = yes; then
9539 case $host_os in
9540 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9541 *) lt_awk_arg="/^libraries:/" ;;
9542 esac
9543 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9544 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9545 # if the path contains ";" then we assume it to be the separator
9546 # otherwise default to the standard path separator (i.e. ":") - it is
9547 # assumed that no part of a normal pathname contains ";" but that should
9548 # okay in the real world where ";" in dirpaths is itself problematic.
9549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9550 else
9551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9552 fi
9553 # Ok, now we have the path, separated by spaces, we can step through it
9554 # and add multilib dir if necessary.
9555 lt_tmp_lt_search_path_spec=
9556 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9557 for lt_sys_path in $lt_search_path_spec; do
9558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9560 else
9561 test -d "$lt_sys_path" && \
9562 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9563 fi
9564 done
9565 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9566 BEGIN {RS=" "; FS="/|\n";} {
9567 lt_foo="";
9568 lt_count=0;
9569 for (lt_i = NF; lt_i > 0; lt_i--) {
9570 if ($lt_i != "" && $lt_i != ".") {
9571 if ($lt_i == "..") {
9572 lt_count++;
9573 } else {
9574 if (lt_count == 0) {
9575 lt_foo="/" $lt_i lt_foo;
9576 } else {
9577 lt_count--;
9578 }
9579 }
9580 }
9581 }
9582 if (lt_foo != "") { lt_freq[lt_foo]++; }
9583 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9584 }'`
9585 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9586 else
9587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9588 fi
9589 library_names_spec=
9590 libname_spec='lib$name'
9591 soname_spec=
9592 shrext_cmds=".so"
9593 postinstall_cmds=
9594 postuninstall_cmds=
9595 finish_cmds=
9596 finish_eval=
9597 shlibpath_var=
9598 shlibpath_overrides_runpath=unknown
9599 version_type=none
9600 dynamic_linker="$host_os ld.so"
9601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9602 need_lib_prefix=unknown
9603 hardcode_into_libs=no
9604
9605 # when you set need_version to no, make sure it does not cause -set_version
9606 # flags to be left without arguments
9607 need_version=unknown
9608
9609 case $host_os in
9610 aix3*)
9611 version_type=linux
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9613 shlibpath_var=LIBPATH
9614
9615 # AIX 3 has no versioning support, so we append a major version to the name.
9616 soname_spec='${libname}${release}${shared_ext}$major'
9617 ;;
9618
9619 aix[4-9]*)
9620 version_type=linux
9621 need_lib_prefix=no
9622 need_version=no
9623 hardcode_into_libs=yes
9624 if test "$host_cpu" = ia64; then
9625 # AIX 5 supports IA64
9626 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 else
9629 # With GCC up to 2.95.x, collect2 would create an import file
9630 # for dependence libraries. The import file would start with
9631 # the line `#! .'. This would cause the generated library to
9632 # depend on `.', always an invalid library. This was fixed in
9633 # development snapshots of GCC prior to 3.0.
9634 case $host_os in
9635 aix4 | aix4.[01] | aix4.[01].*)
9636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9637 echo ' yes '
9638 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9639 :
9640 else
9641 can_build_shared=no
9642 fi
9643 ;;
9644 esac
9645 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9646 # soname into executable. Probably we can add versioning support to
9647 # collect2, so additional links can be useful in future.
9648 if test "$aix_use_runtimelinking" = yes; then
9649 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9650 # instead of lib<name>.a to let people know that these are not
9651 # typical AIX shared libraries.
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 else
9654 # We preserve .a as extension for shared libraries through AIX4.2
9655 # and later when we are not doing run time linking.
9656 library_names_spec='${libname}${release}.a $libname.a'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 fi
9659 shlibpath_var=LIBPATH
9660 fi
9661 ;;
9662
9663 amigaos*)
9664 case $host_cpu in
9665 powerpc)
9666 # Since July 2007 AmigaOS4 officially supports .so libraries.
9667 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 ;;
9670 m68k)
9671 library_names_spec='$libname.ixlibrary $libname.a'
9672 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9673 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9674 ;;
9675 esac
9676 ;;
9677
9678 beos*)
9679 library_names_spec='${libname}${shared_ext}'
9680 dynamic_linker="$host_os ld.so"
9681 shlibpath_var=LIBRARY_PATH
9682 ;;
9683
9684 bsdi[45]*)
9685 version_type=linux
9686 need_version=no
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9693 # the default ld.so.conf also contains /usr/contrib/lib and
9694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9695 # libtool to hard-code these into programs
9696 ;;
9697
9698 cygwin* | mingw* | pw32* | cegcc*)
9699 version_type=windows
9700 shrext_cmds=".dll"
9701 need_version=no
9702 need_lib_prefix=no
9703
9704 case $GCC,$host_os in
9705 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9706 library_names_spec='$libname.dll.a'
9707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9708 postinstall_cmds='base_file=`basename \${file}`~
9709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9710 dldir=$destdir/`dirname \$dlpath`~
9711 test -d \$dldir || mkdir -p \$dldir~
9712 $install_prog $dir/$dlname \$dldir/$dlname~
9713 chmod a+x \$dldir/$dlname~
9714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9716 fi'
9717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9718 dlpath=$dir/\$dldll~
9719 $RM \$dlpath'
9720 shlibpath_overrides_runpath=yes
9721
9722 case $host_os in
9723 cygwin*)
9724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9727 ;;
9728 mingw* | cegcc*)
9729 # MinGW DLLs use traditional 'lib' prefix
9730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9731 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9732 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9733 # It is most probably a Windows format PATH printed by
9734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9735 # path with ; separators, and with drive letters. We can handle the
9736 # drive letters (cygwin fileutils understands them), so leave them,
9737 # especially as we might pass files found there to a mingw objdump,
9738 # which wouldn't understand a cygwinified path. Ahh.
9739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9740 else
9741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9742 fi
9743 ;;
9744 pw32*)
9745 # pw32 DLLs use 'pw' prefix rather than 'lib'
9746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9747 ;;
9748 esac
9749 ;;
9750
9751 *)
9752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9753 ;;
9754 esac
9755 dynamic_linker='Win32 ld.exe'
9756 # FIXME: first we should search . and the directory the executable is in
9757 shlibpath_var=PATH
9758 ;;
9759
9760 darwin* | rhapsody*)
9761 dynamic_linker="$host_os dyld"
9762 version_type=darwin
9763 need_lib_prefix=no
9764 need_version=no
9765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9766 soname_spec='${libname}${release}${major}$shared_ext'
9767 shlibpath_overrides_runpath=yes
9768 shlibpath_var=DYLD_LIBRARY_PATH
9769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9770
9771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9773 ;;
9774
9775 dgux*)
9776 version_type=linux
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 ;;
9783
9784 freebsd1*)
9785 dynamic_linker=no
9786 ;;
9787
9788 freebsd* | dragonfly*)
9789 # DragonFly does not have aout. When/if they implement a new
9790 # versioning mechanism, adjust this.
9791 if test -x /usr/bin/objformat; then
9792 objformat=`/usr/bin/objformat`
9793 else
9794 case $host_os in
9795 freebsd[123]*) objformat=aout ;;
9796 *) objformat=elf ;;
9797 esac
9798 fi
9799 version_type=freebsd-$objformat
9800 case $version_type in
9801 freebsd-elf*)
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9803 need_version=no
9804 need_lib_prefix=no
9805 ;;
9806 freebsd-*)
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9808 need_version=yes
9809 ;;
9810 esac
9811 shlibpath_var=LD_LIBRARY_PATH
9812 case $host_os in
9813 freebsd2*)
9814 shlibpath_overrides_runpath=yes
9815 ;;
9816 freebsd3.[01]* | freebsdelf3.[01]*)
9817 shlibpath_overrides_runpath=yes
9818 hardcode_into_libs=yes
9819 ;;
9820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9822 shlibpath_overrides_runpath=no
9823 hardcode_into_libs=yes
9824 ;;
9825 *) # from 4.6 on, and DragonFly
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9828 ;;
9829 esac
9830 ;;
9831
9832 gnu*)
9833 version_type=linux
9834 need_lib_prefix=no
9835 need_version=no
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 hardcode_into_libs=yes
9840 ;;
9841
9842 hpux9* | hpux10* | hpux11*)
9843 # Give a soname corresponding to the major version so that dld.sl refuses to
9844 # link against other versions.
9845 version_type=sunos
9846 need_lib_prefix=no
9847 need_version=no
9848 case $host_cpu in
9849 ia64*)
9850 shrext_cmds='.so'
9851 hardcode_into_libs=yes
9852 dynamic_linker="$host_os dld.so"
9853 shlibpath_var=LD_LIBRARY_PATH
9854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 if test "X$HPUX_IA64_MODE" = X32; then
9858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9859 else
9860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9861 fi
9862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9863 ;;
9864 hppa*64*)
9865 shrext_cmds='.sl'
9866 hardcode_into_libs=yes
9867 dynamic_linker="$host_os dld.sl"
9868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871 soname_spec='${libname}${release}${shared_ext}$major'
9872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9874 ;;
9875 *)
9876 shrext_cmds='.sl'
9877 dynamic_linker="$host_os dld.sl"
9878 shlibpath_var=SHLIB_PATH
9879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 ;;
9883 esac
9884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9885 postinstall_cmds='chmod 555 $lib'
9886 ;;
9887
9888 interix[3-9]*)
9889 version_type=linux
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=no
9897 hardcode_into_libs=yes
9898 ;;
9899
9900 irix5* | irix6* | nonstopux*)
9901 case $host_os in
9902 nonstopux*) version_type=nonstopux ;;
9903 *)
9904 if test "$lt_cv_prog_gnu_ld" = yes; then
9905 version_type=linux
9906 else
9907 version_type=irix
9908 fi ;;
9909 esac
9910 need_lib_prefix=no
9911 need_version=no
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9914 case $host_os in
9915 irix5* | nonstopux*)
9916 libsuff= shlibsuff=
9917 ;;
9918 *)
9919 case $LD in # libtool.m4 will add one of these switches to LD
9920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9921 libsuff= shlibsuff= libmagic=32-bit;;
9922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9923 libsuff=32 shlibsuff=N32 libmagic=N32;;
9924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9926 *) libsuff= shlibsuff= libmagic=never-match;;
9927 esac
9928 ;;
9929 esac
9930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9931 shlibpath_overrides_runpath=no
9932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9934 hardcode_into_libs=yes
9935 ;;
9936
9937 # No shared lib support for Linux oldld, aout, or coff.
9938 linux*oldld* | linux*aout* | linux*coff*)
9939 dynamic_linker=no
9940 ;;
9941
9942 # This must be Linux ELF.
9943 linux* | k*bsd*-gnu)
9944 version_type=linux
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 shlibpath_overrides_runpath=no
9952 # Some binutils ld are patched to set DT_RUNPATH
9953 save_LDFLAGS=$LDFLAGS
9954 save_libdir=$libdir
9955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963
9964 int
9965 main ()
9966 {
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (ac_try="$ac_link"
9974 case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_link") 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } && {
9986 test -z "$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 } && test -s conftest$ac_exeext &&
9989 $as_test_x conftest$ac_exeext; then
9990 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9991 shlibpath_overrides_runpath=yes
9992 fi
9993
9994 else
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998
9999 fi
10000
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LDFLAGS=$save_LDFLAGS
10004 libdir=$save_libdir
10005
10006 # This implies no fast_install, which is unacceptable.
10007 # Some rework will be needed to allow for fast_install
10008 # before this can be enabled.
10009 hardcode_into_libs=yes
10010
10011 # Append ld.so.conf contents to the search path
10012 if test -f /etc/ld.so.conf; then
10013 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10015 fi
10016
10017 # We used to test for /lib/ld.so.1 and disable shared libraries on
10018 # powerpc, because MkLinux only supported shared libraries with the
10019 # GNU dynamic linker. Since this was broken with cross compilers,
10020 # most powerpc-linux boxes support dynamic linking these days and
10021 # people can always --disable-shared, the test was removed, and we
10022 # assume the GNU/Linux dynamic linker is in use.
10023 dynamic_linker='GNU/Linux ld.so'
10024 ;;
10025
10026 netbsd*)
10027 version_type=sunos
10028 need_lib_prefix=no
10029 need_version=no
10030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10033 dynamic_linker='NetBSD (a.out) ld.so'
10034 else
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 dynamic_linker='NetBSD ld.elf_so'
10038 fi
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes
10041 hardcode_into_libs=yes
10042 ;;
10043
10044 newsos6)
10045 version_type=linux
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 shlibpath_overrides_runpath=yes
10049 ;;
10050
10051 *nto* | *qnx*)
10052 version_type=qnx
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=no
10059 hardcode_into_libs=yes
10060 dynamic_linker='ldqnx.so'
10061 ;;
10062
10063 openbsd*)
10064 version_type=sunos
10065 sys_lib_dlsearch_path_spec="/usr/lib"
10066 need_lib_prefix=no
10067 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10068 case $host_os in
10069 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10070 *) need_version=no ;;
10071 esac
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10076 case $host_os in
10077 openbsd2.[89] | openbsd2.[89].*)
10078 shlibpath_overrides_runpath=no
10079 ;;
10080 *)
10081 shlibpath_overrides_runpath=yes
10082 ;;
10083 esac
10084 else
10085 shlibpath_overrides_runpath=yes
10086 fi
10087 ;;
10088
10089 os2*)
10090 libname_spec='$name'
10091 shrext_cmds=".dll"
10092 need_lib_prefix=no
10093 library_names_spec='$libname${shared_ext} $libname.a'
10094 dynamic_linker='OS/2 ld.exe'
10095 shlibpath_var=LIBPATH
10096 ;;
10097
10098 osf3* | osf4* | osf5*)
10099 version_type=osf
10100 need_lib_prefix=no
10101 need_version=no
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10106 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10107 ;;
10108
10109 rdos*)
10110 dynamic_linker=no
10111 ;;
10112
10113 solaris*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes
10121 hardcode_into_libs=yes
10122 # ldd complains unless libraries are executable
10123 postinstall_cmds='chmod +x $lib'
10124 ;;
10125
10126 sunos4*)
10127 version_type=sunos
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10129 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 shlibpath_overrides_runpath=yes
10132 if test "$with_gnu_ld" = yes; then
10133 need_lib_prefix=no
10134 fi
10135 need_version=yes
10136 ;;
10137
10138 sysv4 | sysv4.3*)
10139 version_type=linux
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 case $host_vendor in
10144 sni)
10145 shlibpath_overrides_runpath=no
10146 need_lib_prefix=no
10147 runpath_var=LD_RUN_PATH
10148 ;;
10149 siemens)
10150 need_lib_prefix=no
10151 ;;
10152 motorola)
10153 need_lib_prefix=no
10154 need_version=no
10155 shlibpath_overrides_runpath=no
10156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10157 ;;
10158 esac
10159 ;;
10160
10161 sysv4*MP*)
10162 if test -d /usr/nec ;then
10163 version_type=linux
10164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10165 soname_spec='$libname${shared_ext}.$major'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 fi
10168 ;;
10169
10170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10171 version_type=freebsd-elf
10172 need_lib_prefix=no
10173 need_version=no
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=yes
10178 hardcode_into_libs=yes
10179 if test "$with_gnu_ld" = yes; then
10180 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10181 else
10182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10183 case $host_os in
10184 sco3.2v5*)
10185 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10186 ;;
10187 esac
10188 fi
10189 sys_lib_dlsearch_path_spec='/usr/lib'
10190 ;;
10191
10192 tpf*)
10193 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10194 version_type=linux
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=no
10200 hardcode_into_libs=yes
10201 ;;
10202
10203 uts4*)
10204 version_type=linux
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 ;;
10209
10210 *)
10211 dynamic_linker=no
10212 ;;
10213 esac
10214 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10215 echo "${ECHO_T}$dynamic_linker" >&6; }
10216 test "$dynamic_linker" = no && can_build_shared=no
10217
10218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10219 if test "$GCC" = yes; then
10220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10221 fi
10222
10223 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10224 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10225 fi
10226 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10227 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10228 fi
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10317 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10318 hardcode_action=
10319 if test -n "$hardcode_libdir_flag_spec" ||
10320 test -n "$runpath_var" ||
10321 test "X$hardcode_automatic" = "Xyes" ; then
10322
10323 # We can hardcode non-existent directories.
10324 if test "$hardcode_direct" != no &&
10325 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10326 # have to relink, otherwise we might link with an installed library
10327 # when we should be linking with a yet-to-be-installed one
10328 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10329 test "$hardcode_minus_L" != no; then
10330 # Linking always hardcodes the temporary library directory.
10331 hardcode_action=relink
10332 else
10333 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10334 hardcode_action=immediate
10335 fi
10336 else
10337 # We cannot hardcode anything, or else we can only hardcode existing
10338 # directories.
10339 hardcode_action=unsupported
10340 fi
10341 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10342 echo "${ECHO_T}$hardcode_action" >&6; }
10343
10344 if test "$hardcode_action" = relink ||
10345 test "$inherit_rpath" = yes; then
10346 # Fast installation is not supported
10347 enable_fast_install=no
10348 elif test "$shlibpath_overrides_runpath" = yes ||
10349 test "$enable_shared" = no; then
10350 # Fast installation is not necessary
10351 enable_fast_install=needless
10352 fi
10353
10354
10355
10356
10357
10358
10359 if test "x$enable_dlopen" != xyes; then
10360 enable_dlopen=unknown
10361 enable_dlopen_self=unknown
10362 enable_dlopen_self_static=unknown
10363 else
10364 lt_cv_dlopen=no
10365 lt_cv_dlopen_libs=
10366
10367 case $host_os in
10368 beos*)
10369 lt_cv_dlopen="load_add_on"
10370 lt_cv_dlopen_libs=
10371 lt_cv_dlopen_self=yes
10372 ;;
10373
10374 mingw* | pw32* | cegcc*)
10375 lt_cv_dlopen="LoadLibrary"
10376 lt_cv_dlopen_libs=
10377 ;;
10378
10379 cygwin*)
10380 lt_cv_dlopen="dlopen"
10381 lt_cv_dlopen_libs=
10382 ;;
10383
10384 darwin*)
10385 # if libdl is installed we need to link against it
10386 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10387 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10388 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-ldl $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10403 #ifdef __cplusplus
10404 extern "C"
10405 #endif
10406 char dlopen ();
10407 int
10408 main ()
10409 {
10410 return dlopen ();
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420 esac
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext &&
10432 $as_test_x conftest$ac_exeext; then
10433 ac_cv_lib_dl_dlopen=yes
10434 else
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_cv_lib_dl_dlopen=no
10439 fi
10440
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442 conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_check_lib_save_LIBS
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10446 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10447 if test $ac_cv_lib_dl_dlopen = yes; then
10448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10449 else
10450
10451 lt_cv_dlopen="dyld"
10452 lt_cv_dlopen_libs=
10453 lt_cv_dlopen_self=yes
10454
10455 fi
10456
10457 ;;
10458
10459 *)
10460 { echo "$as_me:$LINENO: checking for shl_load" >&5
10461 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10462 if test "${ac_cv_func_shl_load+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10473 #define shl_load innocuous_shl_load
10474
10475 /* System header to define __stub macros and hopefully few prototypes,
10476 which can conflict with char shl_load (); below.
10477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478 <limits.h> exists even on freestanding compilers. */
10479
10480 #ifdef __STDC__
10481 # include <limits.h>
10482 #else
10483 # include <assert.h>
10484 #endif
10485
10486 #undef shl_load
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489 Use char because int might match the return type of a GCC
10490 builtin and then its argument prototype would still apply. */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char shl_load ();
10495 /* The GNU C library defines this for functions which it implements
10496 to always fail with ENOSYS. Some functions are actually named
10497 something starting with __ and the normal name is an alias. */
10498 #if defined __stub_shl_load || defined __stub___shl_load
10499 choke me
10500 #endif
10501
10502 int
10503 main ()
10504 {
10505 return shl_load ();
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && {
10524 test -z "$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 } && test -s conftest$ac_exeext &&
10527 $as_test_x conftest$ac_exeext; then
10528 ac_cv_func_shl_load=yes
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_cv_func_shl_load=no
10534 fi
10535
10536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10537 conftest$ac_exeext conftest.$ac_ext
10538 fi
10539 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10540 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10541 if test $ac_cv_func_shl_load = yes; then
10542 lt_cv_dlopen="shl_load"
10543 else
10544 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10545 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10546 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549 ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-ldld $LIBS"
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h. */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557
10558 /* Override any GCC internal prototype to avoid an error.
10559 Use char because int might match the return type of a GCC
10560 builtin and then its argument prototype would still apply. */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 char shl_load ();
10565 int
10566 main ()
10567 {
10568 return shl_load ();
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_link") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext &&
10590 $as_test_x conftest$ac_exeext; then
10591 ac_cv_lib_dld_shl_load=yes
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ac_cv_lib_dld_shl_load=no
10597 fi
10598
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10604 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10605 if test $ac_cv_lib_dld_shl_load = yes; then
10606 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10607 else
10608 { echo "$as_me:$LINENO: checking for dlopen" >&5
10609 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10610 if test "${ac_cv_func_dlopen+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10621 #define dlopen innocuous_dlopen
10622
10623 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char dlopen (); below.
10625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626 <limits.h> exists even on freestanding compilers. */
10627
10628 #ifdef __STDC__
10629 # include <limits.h>
10630 #else
10631 # include <assert.h>
10632 #endif
10633
10634 #undef dlopen
10635
10636 /* Override any GCC internal prototype to avoid an error.
10637 Use char because int might match the return type of a GCC
10638 builtin and then its argument prototype would still apply. */
10639 #ifdef __cplusplus
10640 extern "C"
10641 #endif
10642 char dlopen ();
10643 /* The GNU C library defines this for functions which it implements
10644 to always fail with ENOSYS. Some functions are actually named
10645 something starting with __ and the normal name is an alias. */
10646 #if defined __stub_dlopen || defined __stub___dlopen
10647 choke me
10648 #endif
10649
10650 int
10651 main ()
10652 {
10653 return dlopen ();
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_link") 2>conftest.er1
10666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest$ac_exeext &&
10675 $as_test_x conftest$ac_exeext; then
10676 ac_cv_func_dlopen=yes
10677 else
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ac_cv_func_dlopen=no
10682 fi
10683
10684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10685 conftest$ac_exeext conftest.$ac_ext
10686 fi
10687 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10688 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10689 if test $ac_cv_func_dlopen = yes; then
10690 lt_cv_dlopen="dlopen"
10691 else
10692 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10693 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10694 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697 ac_check_lib_save_LIBS=$LIBS
10698 LIBS="-ldl $LIBS"
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char dlopen ();
10713 int
10714 main ()
10715 {
10716 return dlopen ();
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (ac_try="$ac_link"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_link") 2>conftest.er1
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest$ac_exeext &&
10738 $as_test_x conftest$ac_exeext; then
10739 ac_cv_lib_dl_dlopen=yes
10740 else
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 ac_cv_lib_dl_dlopen=no
10745 fi
10746
10747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10750 fi
10751 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10752 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10753 if test $ac_cv_lib_dl_dlopen = yes; then
10754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10755 else
10756 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10757 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10758 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-lsvld $LIBS"
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char dlopen ();
10777 int
10778 main ()
10779 {
10780 return dlopen ();
10781 ;
10782 return 0;
10783 }
10784 _ACEOF
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (ac_try="$ac_link"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && {
10799 test -z "$ac_c_werror_flag" ||
10800 test ! -s conftest.err
10801 } && test -s conftest$ac_exeext &&
10802 $as_test_x conftest$ac_exeext; then
10803 ac_cv_lib_svld_dlopen=yes
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ac_cv_lib_svld_dlopen=no
10809 fi
10810
10811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10814 fi
10815 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10816 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10817 if test $ac_cv_lib_svld_dlopen = yes; then
10818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10819 else
10820 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10821 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10822 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-ldld $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833
10834 /* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 char dld_link ();
10841 int
10842 main ()
10843 {
10844 return dld_link ();
10845 ;
10846 return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } && {
10863 test -z "$ac_c_werror_flag" ||
10864 test ! -s conftest.err
10865 } && test -s conftest$ac_exeext &&
10866 $as_test_x conftest$ac_exeext; then
10867 ac_cv_lib_dld_dld_link=yes
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872 ac_cv_lib_dld_dld_link=no
10873 fi
10874
10875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10876 conftest$ac_exeext conftest.$ac_ext
10877 LIBS=$ac_check_lib_save_LIBS
10878 fi
10879 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10880 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10881 if test $ac_cv_lib_dld_dld_link = yes; then
10882 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10883 fi
10884
10885
10886 fi
10887
10888
10889 fi
10890
10891
10892 fi
10893
10894
10895 fi
10896
10897
10898 fi
10899
10900 ;;
10901 esac
10902
10903 if test "x$lt_cv_dlopen" != xno; then
10904 enable_dlopen=yes
10905 else
10906 enable_dlopen=no
10907 fi
10908
10909 case $lt_cv_dlopen in
10910 dlopen)
10911 save_CPPFLAGS="$CPPFLAGS"
10912 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10913
10914 save_LDFLAGS="$LDFLAGS"
10915 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10916
10917 save_LIBS="$LIBS"
10918 LIBS="$lt_cv_dlopen_libs $LIBS"
10919
10920 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10921 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10922 if test "${lt_cv_dlopen_self+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 if test "$cross_compiling" = yes; then :
10926 lt_cv_dlopen_self=cross
10927 else
10928 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10929 lt_status=$lt_dlunknown
10930 cat > conftest.$ac_ext <<_LT_EOF
10931 #line 10931 "configure"
10932 #include "confdefs.h"
10933
10934 #if HAVE_DLFCN_H
10935 #include <dlfcn.h>
10936 #endif
10937
10938 #include <stdio.h>
10939
10940 #ifdef RTLD_GLOBAL
10941 # define LT_DLGLOBAL RTLD_GLOBAL
10942 #else
10943 # ifdef DL_GLOBAL
10944 # define LT_DLGLOBAL DL_GLOBAL
10945 # else
10946 # define LT_DLGLOBAL 0
10947 # endif
10948 #endif
10949
10950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10951 find out it does not work in some platform. */
10952 #ifndef LT_DLLAZY_OR_NOW
10953 # ifdef RTLD_LAZY
10954 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10955 # else
10956 # ifdef DL_LAZY
10957 # define LT_DLLAZY_OR_NOW DL_LAZY
10958 # else
10959 # ifdef RTLD_NOW
10960 # define LT_DLLAZY_OR_NOW RTLD_NOW
10961 # else
10962 # ifdef DL_NOW
10963 # define LT_DLLAZY_OR_NOW DL_NOW
10964 # else
10965 # define LT_DLLAZY_OR_NOW 0
10966 # endif
10967 # endif
10968 # endif
10969 # endif
10970 #endif
10971
10972 void fnord() { int i=42;}
10973 int main ()
10974 {
10975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10976 int status = $lt_dlunknown;
10977
10978 if (self)
10979 {
10980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10981 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10982 /* dlclose (self); */
10983 }
10984 else
10985 puts (dlerror ());
10986
10987 return status;
10988 }
10989 _LT_EOF
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10995 (./conftest; exit; ) >&5 2>/dev/null
10996 lt_status=$?
10997 case x$lt_status in
10998 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10999 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11000 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11001 esac
11002 else :
11003 # compilation failed
11004 lt_cv_dlopen_self=no
11005 fi
11006 fi
11007 rm -fr conftest*
11008
11009
11010 fi
11011 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11012 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11013
11014 if test "x$lt_cv_dlopen_self" = xyes; then
11015 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11016 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11017 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11018 if test "${lt_cv_dlopen_self_static+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021 if test "$cross_compiling" = yes; then :
11022 lt_cv_dlopen_self_static=cross
11023 else
11024 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11025 lt_status=$lt_dlunknown
11026 cat > conftest.$ac_ext <<_LT_EOF
11027 #line 11027 "configure"
11028 #include "confdefs.h"
11029
11030 #if HAVE_DLFCN_H
11031 #include <dlfcn.h>
11032 #endif
11033
11034 #include <stdio.h>
11035
11036 #ifdef RTLD_GLOBAL
11037 # define LT_DLGLOBAL RTLD_GLOBAL
11038 #else
11039 # ifdef DL_GLOBAL
11040 # define LT_DLGLOBAL DL_GLOBAL
11041 # else
11042 # define LT_DLGLOBAL 0
11043 # endif
11044 #endif
11045
11046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11047 find out it does not work in some platform. */
11048 #ifndef LT_DLLAZY_OR_NOW
11049 # ifdef RTLD_LAZY
11050 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11051 # else
11052 # ifdef DL_LAZY
11053 # define LT_DLLAZY_OR_NOW DL_LAZY
11054 # else
11055 # ifdef RTLD_NOW
11056 # define LT_DLLAZY_OR_NOW RTLD_NOW
11057 # else
11058 # ifdef DL_NOW
11059 # define LT_DLLAZY_OR_NOW DL_NOW
11060 # else
11061 # define LT_DLLAZY_OR_NOW 0
11062 # endif
11063 # endif
11064 # endif
11065 # endif
11066 #endif
11067
11068 void fnord() { int i=42;}
11069 int main ()
11070 {
11071 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11072 int status = $lt_dlunknown;
11073
11074 if (self)
11075 {
11076 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11077 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11078 /* dlclose (self); */
11079 }
11080 else
11081 puts (dlerror ());
11082
11083 return status;
11084 }
11085 _LT_EOF
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11091 (./conftest; exit; ) >&5 2>/dev/null
11092 lt_status=$?
11093 case x$lt_status in
11094 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11095 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11096 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11097 esac
11098 else :
11099 # compilation failed
11100 lt_cv_dlopen_self_static=no
11101 fi
11102 fi
11103 rm -fr conftest*
11104
11105
11106 fi
11107 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11108 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11109 fi
11110
11111 CPPFLAGS="$save_CPPFLAGS"
11112 LDFLAGS="$save_LDFLAGS"
11113 LIBS="$save_LIBS"
11114 ;;
11115 esac
11116
11117 case $lt_cv_dlopen_self in
11118 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11119 *) enable_dlopen_self=unknown ;;
11120 esac
11121
11122 case $lt_cv_dlopen_self_static in
11123 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11124 *) enable_dlopen_self_static=unknown ;;
11125 esac
11126 fi
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144 striplib=
11145 old_striplib=
11146 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11147 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11148 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11149 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11150 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11151 { echo "$as_me:$LINENO: result: yes" >&5
11152 echo "${ECHO_T}yes" >&6; }
11153 else
11154 # FIXME - insert some real tests, host_os isn't really good enough
11155 case $host_os in
11156 darwin*)
11157 if test -n "$STRIP" ; then
11158 striplib="$STRIP -x"
11159 old_striplib="$STRIP -S"
11160 { echo "$as_me:$LINENO: result: yes" >&5
11161 echo "${ECHO_T}yes" >&6; }
11162 else
11163 { echo "$as_me:$LINENO: result: no" >&5
11164 echo "${ECHO_T}no" >&6; }
11165 fi
11166 ;;
11167 *)
11168 { echo "$as_me:$LINENO: result: no" >&5
11169 echo "${ECHO_T}no" >&6; }
11170 ;;
11171 esac
11172 fi
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185 # Report which library types will actually be built
11186 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11187 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11188 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11189 echo "${ECHO_T}$can_build_shared" >&6; }
11190
11191 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11192 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11193 test "$can_build_shared" = "no" && enable_shared=no
11194
11195 # On AIX, shared libraries and static libraries use the same namespace, and
11196 # are all built from PIC.
11197 case $host_os in
11198 aix3*)
11199 test "$enable_shared" = yes && enable_static=no
11200 if test -n "$RANLIB"; then
11201 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11202 postinstall_cmds='$RANLIB $lib'
11203 fi
11204 ;;
11205
11206 aix[4-9]*)
11207 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11208 test "$enable_shared" = yes && enable_static=no
11209 fi
11210 ;;
11211 esac
11212 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11213 echo "${ECHO_T}$enable_shared" >&6; }
11214
11215 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11216 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11217 # Make sure either enable_shared or enable_static is yes.
11218 test "$enable_shared" = yes || enable_static=yes
11219 { echo "$as_me:$LINENO: result: $enable_static" >&5
11220 echo "${ECHO_T}$enable_static" >&6; }
11221
11222
11223
11224
11225 fi
11226 ac_ext=c
11227 ac_cpp='$CPP $CPPFLAGS'
11228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11231
11232 CC="$lt_save_CC"
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 ac_config_commands="$ac_config_commands libtool"
11247
11248
11249
11250
11251 # Only expand once:
11252
11253
11254
11255 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11257 if test "${ac_cv_header_stdc+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260 cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h. */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 #include <stdlib.h>
11267 #include <stdarg.h>
11268 #include <string.h>
11269 #include <float.h>
11270
11271 int
11272 main ()
11273 {
11274
11275 ;
11276 return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext
11280 if { (ac_try="$ac_compile"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_compile") 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest.$ac_objext; then
11296 ac_cv_header_stdc=yes
11297 else
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_cv_header_stdc=no
11302 fi
11303
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305
11306 if test $ac_cv_header_stdc = yes; then
11307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 #include <string.h>
11315
11316 _ACEOF
11317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11318 $EGREP "memchr" >/dev/null 2>&1; then
11319 :
11320 else
11321 ac_cv_header_stdc=no
11322 fi
11323 rm -f conftest*
11324
11325 fi
11326
11327 if test $ac_cv_header_stdc = yes; then
11328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 #include <stdlib.h>
11336
11337 _ACEOF
11338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11339 $EGREP "free" >/dev/null 2>&1; then
11340 :
11341 else
11342 ac_cv_header_stdc=no
11343 fi
11344 rm -f conftest*
11345
11346 fi
11347
11348 if test $ac_cv_header_stdc = yes; then
11349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11350 if test "$cross_compiling" = yes; then
11351 :
11352 else
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <ctype.h>
11360 #include <stdlib.h>
11361 #if ((' ' & 0x0FF) == 0x020)
11362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11364 #else
11365 # define ISLOWER(c) \
11366 (('a' <= (c) && (c) <= 'i') \
11367 || ('j' <= (c) && (c) <= 'r') \
11368 || ('s' <= (c) && (c) <= 'z'))
11369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11370 #endif
11371
11372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11373 int
11374 main ()
11375 {
11376 int i;
11377 for (i = 0; i < 256; i++)
11378 if (XOR (islower (i), ISLOWER (i))
11379 || toupper (i) != TOUPPER (i))
11380 return 2;
11381 return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_link") 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 :
11405 else
11406 echo "$as_me: program exited with status $ac_status" >&5
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ( exit $ac_status )
11411 ac_cv_header_stdc=no
11412 fi
11413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11414 fi
11415
11416
11417 fi
11418 fi
11419 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11420 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11421 if test $ac_cv_header_stdc = yes; then
11422
11423 cat >>confdefs.h <<\_ACEOF
11424 #define STDC_HEADERS 1
11425 _ACEOF
11426
11427 fi
11428
11429 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11430 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
11431 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h. */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11440 #include <sys/types.h>
11441 int
11442 main ()
11443 {
11444 return makedev(0, 0);
11445 ;
11446 return 0;
11447 }
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_link") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest$ac_exeext &&
11466 $as_test_x conftest$ac_exeext; then
11467 ac_cv_header_sys_types_h_makedev=yes
11468 else
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11471
11472 ac_cv_header_sys_types_h_makedev=no
11473 fi
11474
11475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11476 conftest$ac_exeext conftest.$ac_ext
11477
11478 fi
11479 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11480 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
11481
11482 if test $ac_cv_header_sys_types_h_makedev = no; then
11483 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11484 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11485 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
11486 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 fi
11489 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11490 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
11491 else
11492 # Is the header compilable?
11493 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11494 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h. */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 $ac_includes_default
11502 #include <sys/mkdev.h>
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11521 ac_header_compiler=yes
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 ac_header_compiler=no
11527 fi
11528
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11532
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11535 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <sys/mkdev.h>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null && {
11557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 }; then
11560 ac_header_preproc=yes
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_header_preproc=no
11566 fi
11567
11568 rm -f conftest.err conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6; }
11571
11572 # So? What about this header?
11573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11574 yes:no: )
11575 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11576 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11578 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11579 ac_header_preproc=yes
11580 ;;
11581 no:yes:* )
11582 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11583 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11585 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11587 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11589 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11591 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11593 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11594 ( cat <<\_ASBOX
11595 ## ---------------------------------- ##
11596 ## Report this to christos (at] astron.com ##
11597 ## ---------------------------------- ##
11598 _ASBOX
11599 ) | sed "s/^/$as_me: WARNING: /" >&2
11600 ;;
11601 esac
11602 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11603 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
11604 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11608 fi
11609 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11610 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
11611
11612 fi
11613 if test $ac_cv_header_sys_mkdev_h = yes; then
11614
11615 cat >>confdefs.h <<\_ACEOF
11616 #define MAJOR_IN_MKDEV 1
11617 _ACEOF
11618
11619 fi
11620
11621
11622
11623 if test $ac_cv_header_sys_mkdev_h = no; then
11624 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11625 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11626 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
11627 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 fi
11630 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11631 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
11632 else
11633 # Is the header compilable?
11634 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11635 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 $ac_includes_default
11643 #include <sys/sysmacros.h>
11644 _ACEOF
11645 rm -f conftest.$ac_objext
11646 if { (ac_try="$ac_compile"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_compile") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest.$ac_objext; then
11662 ac_header_compiler=yes
11663 else
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 ac_header_compiler=no
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11672 echo "${ECHO_T}$ac_header_compiler" >&6; }
11673
11674 # Is the header present?
11675 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11676 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 #include <sys/sysmacros.h>
11684 _ACEOF
11685 if { (ac_try="$ac_cpp conftest.$ac_ext"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev/null && {
11698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 }; then
11701 ac_header_preproc=yes
11702 else
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_header_preproc=no
11707 fi
11708
11709 rm -f conftest.err conftest.$ac_ext
11710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11711 echo "${ECHO_T}$ac_header_preproc" >&6; }
11712
11713 # So? What about this header?
11714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11715 yes:no: )
11716 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11717 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11719 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11720 ac_header_preproc=yes
11721 ;;
11722 no:yes:* )
11723 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11724 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11726 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11728 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11730 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11732 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11734 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11735 ( cat <<\_ASBOX
11736 ## ---------------------------------- ##
11737 ## Report this to christos (at] astron.com ##
11738 ## ---------------------------------- ##
11739 _ASBOX
11740 ) | sed "s/^/$as_me: WARNING: /" >&2
11741 ;;
11742 esac
11743 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11744 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
11745 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11749 fi
11750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11751 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
11752
11753 fi
11754 if test $ac_cv_header_sys_sysmacros_h = yes; then
11755
11756 cat >>confdefs.h <<\_ACEOF
11757 #define MAJOR_IN_SYSMACROS 1
11758 _ACEOF
11759
11760 fi
11761
11762
11763 fi
11764 fi
11765
11766 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11767 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11768 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 #include <sys/types.h>
11778 #include <sys/wait.h>
11779 #ifndef WEXITSTATUS
11780 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11781 #endif
11782 #ifndef WIFEXITED
11783 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11784 #endif
11785
11786 int
11787 main ()
11788 {
11789 int s;
11790 wait (&s);
11791 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11792 ;
11793 return 0;
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (ac_try="$ac_compile"
11798 case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_compile") 2>conftest.er1
11804 ac_status=$?
11805 grep -v '^ *+' conftest.er1 >conftest.err
11806 rm -f conftest.er1
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && {
11810 test -z "$ac_c_werror_flag" ||
11811 test ! -s conftest.err
11812 } && test -s conftest.$ac_objext; then
11813 ac_cv_header_sys_wait_h=yes
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_cv_header_sys_wait_h=no
11819 fi
11820
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 fi
11823 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11824 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11825 if test $ac_cv_header_sys_wait_h = yes; then
11826
11827 cat >>confdefs.h <<\_ACEOF
11828 #define HAVE_SYS_WAIT_H 1
11829 _ACEOF
11830
11831 fi
11832
11833
11834
11835
11836
11837
11838
11839 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
11840 do
11841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 fi
11848 ac_res=`eval echo '${'$as_ac_Header'}'`
11849 { echo "$as_me:$LINENO: result: $ac_res" >&5
11850 echo "${ECHO_T}$ac_res" >&6; }
11851 else
11852 # Is the header compilable?
11853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 $ac_includes_default
11862 #include <$ac_header>
11863 _ACEOF
11864 rm -f conftest.$ac_objext
11865 if { (ac_try="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_compile") 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest.$ac_objext; then
11881 ac_header_compiler=yes
11882 else
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11885
11886 ac_header_compiler=no
11887 fi
11888
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11891 echo "${ECHO_T}$ac_header_compiler" >&6; }
11892
11893 # Is the header present?
11894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 #include <$ac_header>
11903 _ACEOF
11904 if { (ac_try="$ac_cpp conftest.$ac_ext"
11905 case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } >/dev/null && {
11917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11918 test ! -s conftest.err
11919 }; then
11920 ac_header_preproc=yes
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 ac_header_preproc=no
11926 fi
11927
11928 rm -f conftest.err conftest.$ac_ext
11929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11930 echo "${ECHO_T}$ac_header_preproc" >&6; }
11931
11932 # So? What about this header?
11933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11934 yes:no: )
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11939 ac_header_preproc=yes
11940 ;;
11941 no:yes:* )
11942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11954 ( cat <<\_ASBOX
11955 ## ---------------------------------- ##
11956 ## Report this to christos (at] astron.com ##
11957 ## ---------------------------------- ##
11958 _ASBOX
11959 ) | sed "s/^/$as_me: WARNING: /" >&2
11960 ;;
11961 esac
11962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967 eval "$as_ac_Header=\$ac_header_preproc"
11968 fi
11969 ac_res=`eval echo '${'$as_ac_Header'}'`
11970 { echo "$as_me:$LINENO: result: $ac_res" >&5
11971 echo "${ECHO_T}$ac_res" >&6; }
11972
11973 fi
11974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 _ACEOF
11978
11979 fi
11980
11981 done
11982
11983
11984
11985
11986
11987 for ac_header in utime.h wchar.h wctype.h limits.h
11988 do
11989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 fi
11996 ac_res=`eval echo '${'$as_ac_Header'}'`
11997 { echo "$as_me:$LINENO: result: $ac_res" >&5
11998 echo "${ECHO_T}$ac_res" >&6; }
11999 else
12000 # Is the header compilable?
12001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 $ac_includes_default
12010 #include <$ac_header>
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (ac_try="$ac_compile"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_compile") 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } && {
12026 test -z "$ac_c_werror_flag" ||
12027 test ! -s conftest.err
12028 } && test -s conftest.$ac_objext; then
12029 ac_header_compiler=yes
12030 else
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_header_compiler=no
12035 fi
12036
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12039 echo "${ECHO_T}$ac_header_compiler" >&6; }
12040
12041 # Is the header present?
12042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 #include <$ac_header>
12051 _ACEOF
12052 if { (ac_try="$ac_cpp conftest.$ac_ext"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev/null && {
12065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 }; then
12068 ac_header_preproc=yes
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 ac_header_preproc=no
12074 fi
12075
12076 rm -f conftest.err conftest.$ac_ext
12077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12078 echo "${ECHO_T}$ac_header_preproc" >&6; }
12079
12080 # So? What about this header?
12081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12082 yes:no: )
12083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12087 ac_header_preproc=yes
12088 ;;
12089 no:yes:* )
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12102 ( cat <<\_ASBOX
12103 ## ---------------------------------- ##
12104 ## Report this to christos (at] astron.com ##
12105 ## ---------------------------------- ##
12106 _ASBOX
12107 ) | sed "s/^/$as_me: WARNING: /" >&2
12108 ;;
12109 esac
12110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115 eval "$as_ac_Header=\$ac_header_preproc"
12116 fi
12117 ac_res=`eval echo '${'$as_ac_Header'}'`
12118 { echo "$as_me:$LINENO: result: $ac_res" >&5
12119 echo "${ECHO_T}$ac_res" >&6; }
12120
12121 fi
12122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125 _ACEOF
12126
12127 fi
12128
12129 done
12130
12131
12132
12133 for ac_header in getopt.h err.h
12134 do
12135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 fi
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12145 else
12146 # Is the header compilable?
12147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 $ac_includes_default
12156 #include <$ac_header>
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest.$ac_objext; then
12175 ac_header_compiler=yes
12176 else
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_header_compiler=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12186
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <$ac_header>
12197 _ACEOF
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } >/dev/null && {
12211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 }; then
12214 ac_header_preproc=yes
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_header_preproc=no
12220 fi
12221
12222 rm -f conftest.err conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12224 echo "${ECHO_T}$ac_header_preproc" >&6; }
12225
12226 # So? What about this header?
12227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12228 yes:no: )
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12233 ac_header_preproc=yes
12234 ;;
12235 no:yes:* )
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12248 ( cat <<\_ASBOX
12249 ## ---------------------------------- ##
12250 ## Report this to christos (at] astron.com ##
12251 ## ---------------------------------- ##
12252 _ASBOX
12253 ) | sed "s/^/$as_me: WARNING: /" >&2
12254 ;;
12255 esac
12256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261 eval "$as_ac_Header=\$ac_header_preproc"
12262 fi
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264 { echo "$as_me:$LINENO: result: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12266
12267 fi
12268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12269 cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12271 _ACEOF
12272
12273 fi
12274
12275 done
12276
12277
12278
12279
12280
12281
12282 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
12283 do
12284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 fi
12291 ac_res=`eval echo '${'$as_ac_Header'}'`
12292 { echo "$as_me:$LINENO: result: $ac_res" >&5
12293 echo "${ECHO_T}$ac_res" >&6; }
12294 else
12295 # Is the header compilable?
12296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 $ac_includes_default
12305 #include <$ac_header>
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312 esac
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_compile") 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } && {
12321 test -z "$ac_c_werror_flag" ||
12322 test ! -s conftest.err
12323 } && test -s conftest.$ac_objext; then
12324 ac_header_compiler=yes
12325 else
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 ac_header_compiler=no
12330 fi
12331
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12334 echo "${ECHO_T}$ac_header_compiler" >&6; }
12335
12336 # Is the header present?
12337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 #include <$ac_header>
12346 _ACEOF
12347 if { (ac_try="$ac_cpp conftest.$ac_ext"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } >/dev/null && {
12360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 }; then
12363 ac_header_preproc=yes
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_header_preproc=no
12369 fi
12370
12371 rm -f conftest.err conftest.$ac_ext
12372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12373 echo "${ECHO_T}$ac_header_preproc" >&6; }
12374
12375 # So? What about this header?
12376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12377 yes:no: )
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12382 ac_header_preproc=yes
12383 ;;
12384 no:yes:* )
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12397 ( cat <<\_ASBOX
12398 ## ---------------------------------- ##
12399 ## Report this to christos (at] astron.com ##
12400 ## ---------------------------------- ##
12401 _ASBOX
12402 ) | sed "s/^/$as_me: WARNING: /" >&2
12403 ;;
12404 esac
12405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 eval "$as_ac_Header=\$ac_header_preproc"
12411 fi
12412 ac_res=`eval echo '${'$as_ac_Header'}'`
12413 { echo "$as_me:$LINENO: result: $ac_res" >&5
12414 echo "${ECHO_T}$ac_res" >&6; }
12415
12416 fi
12417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12418 cat >>confdefs.h <<_ACEOF
12419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12420 _ACEOF
12421
12422 fi
12423
12424 done
12425
12426
12427 for ac_header in zlib.h
12428 do
12429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12435 fi
12436 ac_res=`eval echo '${'$as_ac_Header'}'`
12437 { echo "$as_me:$LINENO: result: $ac_res" >&5
12438 echo "${ECHO_T}$ac_res" >&6; }
12439 else
12440 # Is the header compilable?
12441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h. */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 $ac_includes_default
12450 #include <$ac_header>
12451 _ACEOF
12452 rm -f conftest.$ac_objext
12453 if { (ac_try="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.$ac_objext; then
12469 ac_header_compiler=yes
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 ac_header_compiler=no
12475 fi
12476
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12479 echo "${ECHO_T}$ac_header_compiler" >&6; }
12480
12481 # Is the header present?
12482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h. */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #include <$ac_header>
12491 _ACEOF
12492 if { (ac_try="$ac_cpp conftest.$ac_ext"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496 esac
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } >/dev/null && {
12505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 }; then
12508 ac_header_preproc=yes
12509 else
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_header_preproc=no
12514 fi
12515
12516 rm -f conftest.err conftest.$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12518 echo "${ECHO_T}$ac_header_preproc" >&6; }
12519
12520 # So? What about this header?
12521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12522 yes:no: )
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12527 ac_header_preproc=yes
12528 ;;
12529 no:yes:* )
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12542 ( cat <<\_ASBOX
12543 ## ---------------------------------- ##
12544 ## Report this to christos (at] astron.com ##
12545 ## ---------------------------------- ##
12546 _ASBOX
12547 ) | sed "s/^/$as_me: WARNING: /" >&2
12548 ;;
12549 esac
12550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555 eval "$as_ac_Header=\$ac_header_preproc"
12556 fi
12557 ac_res=`eval echo '${'$as_ac_Header'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12560
12561 fi
12562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12565 _ACEOF
12566
12567 fi
12568
12569 done
12570
12571
12572 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12573 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12574 if test "${ac_cv_c_const+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583
12584 int
12585 main ()
12586 {
12587 /* FIXME: Include the comments suggested by Paul. */
12588 #ifndef __cplusplus
12589 /* Ultrix mips cc rejects this. */
12590 typedef int charset[2];
12591 const charset cs;
12592 /* SunOS 4.1.1 cc rejects this. */
12593 char const *const *pcpcc;
12594 char **ppc;
12595 /* NEC SVR4.0.2 mips cc rejects this. */
12596 struct point {int x, y;};
12597 static struct point const zero = {0,0};
12598 /* AIX XL C 1.02.0.0 rejects this.
12599 It does not let you subtract one const X* pointer from another in
12600 an arm of an if-expression whose if-part is not a constant
12601 expression */
12602 const char *g = "string";
12603 pcpcc = &g + (g ? g-g : 0);
12604 /* HPUX 7.0 cc rejects these. */
12605 ++pcpcc;
12606 ppc = (char**) pcpcc;
12607 pcpcc = (char const *const *) ppc;
12608 { /* SCO 3.2v4 cc rejects this. */
12609 char *t;
12610 char const *s = 0 ? (char *) 0 : (char const *) 0;
12611
12612 *t++ = 0;
12613 if (s) return 0;
12614 }
12615 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12616 int x[] = {25, 17};
12617 const int *foo = &x[0];
12618 ++foo;
12619 }
12620 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12621 typedef const int *iptr;
12622 iptr p = 0;
12623 ++p;
12624 }
12625 { /* AIX XL C 1.02.0.0 rejects this saying
12626 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12627 struct s { int j; const int *ap[3]; };
12628 struct s *b; b->j = 5;
12629 }
12630 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12631 const int foo = 10;
12632 if (!foo) return 0;
12633 }
12634 return !cs[0] && !zero.x;
12635 #endif
12636
12637 ;
12638 return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (ac_try="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_compile") 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_c_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest.$ac_objext; then
12658 ac_cv_c_const=yes
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ac_cv_c_const=no
12664 fi
12665
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12669 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12670 if test $ac_cv_c_const = no; then
12671
12672 cat >>confdefs.h <<\_ACEOF
12673 #define const
12674 _ACEOF
12675
12676 fi
12677
12678 { echo "$as_me:$LINENO: checking for off_t" >&5
12679 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
12680 if test "${ac_cv_type_off_t+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 $ac_includes_default
12690 typedef off_t ac__type_new_;
12691 int
12692 main ()
12693 {
12694 if ((ac__type_new_ *) 0)
12695 return 0;
12696 if (sizeof (ac__type_new_))
12697 return 0;
12698 ;
12699 return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest.$ac_objext; then
12719 ac_cv_type_off_t=yes
12720 else
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724 ac_cv_type_off_t=no
12725 fi
12726
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 fi
12729 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12730 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
12731 if test $ac_cv_type_off_t = yes; then
12732 :
12733 else
12734
12735 cat >>confdefs.h <<_ACEOF
12736 #define off_t long int
12737 _ACEOF
12738
12739 fi
12740
12741 { echo "$as_me:$LINENO: checking for size_t" >&5
12742 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
12743 if test "${ac_cv_type_size_t+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h. */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 typedef size_t ac__type_new_;
12754 int
12755 main ()
12756 {
12757 if ((ac__type_new_ *) 0)
12758 return 0;
12759 if (sizeof (ac__type_new_))
12760 return 0;
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (ac_try="$ac_compile"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_compile") 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest.$ac_objext; then
12782 ac_cv_type_size_t=yes
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787 ac_cv_type_size_t=no
12788 fi
12789
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791 fi
12792 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12793 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12794 if test $ac_cv_type_size_t = yes; then
12795 :
12796 else
12797
12798 cat >>confdefs.h <<_ACEOF
12799 #define size_t unsigned int
12800 _ACEOF
12801
12802 fi
12803
12804 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12805 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
12806 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 $ac_includes_default
12816 int
12817 main ()
12818 {
12819 static struct stat ac_aggr;
12820 if (ac_aggr.st_rdev)
12821 return 0;
12822 ;
12823 return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest.$ac_objext; then
12843 ac_cv_member_struct_stat_st_rdev=yes
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12855 int
12856 main ()
12857 {
12858 static struct stat ac_aggr;
12859 if (sizeof ac_aggr.st_rdev)
12860 return 0;
12861 ;
12862 return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext
12866 if { (ac_try="$ac_compile"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_compile") 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } && {
12879 test -z "$ac_c_werror_flag" ||
12880 test ! -s conftest.err
12881 } && test -s conftest.$ac_objext; then
12882 ac_cv_member_struct_stat_st_rdev=yes
12883 else
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 ac_cv_member_struct_stat_st_rdev=no
12888 fi
12889
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 fi
12892
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 fi
12895 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12896 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
12897 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12898
12899 cat >>confdefs.h <<_ACEOF
12900 #define HAVE_STRUCT_STAT_ST_RDEV 1
12901 _ACEOF
12902
12903
12904 fi
12905
12906
12907 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12908 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12909 if test "${ac_cv_struct_tm+set}" = set; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912 cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h. */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12918 #include <sys/types.h>
12919 #include <time.h>
12920
12921 int
12922 main ()
12923 {
12924 struct tm tm;
12925 int *p = &tm.tm_sec;
12926 return !p;
12927 ;
12928 return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext
12932 if { (ac_try="$ac_compile"
12933 case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12936 esac
12937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12938 (eval "$ac_compile") 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && {
12945 test -z "$ac_c_werror_flag" ||
12946 test ! -s conftest.err
12947 } && test -s conftest.$ac_objext; then
12948 ac_cv_struct_tm=time.h
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 ac_cv_struct_tm=sys/time.h
12954 fi
12955
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 fi
12958 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12959 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12960 if test $ac_cv_struct_tm = sys/time.h; then
12961
12962 cat >>confdefs.h <<\_ACEOF
12963 #define TM_IN_SYS_TIME 1
12964 _ACEOF
12965
12966 fi
12967
12968 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
12969 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
12970 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 $ac_includes_default
12980 int
12981 main ()
12982 {
12983 static struct tm ac_aggr;
12984 if (ac_aggr.tm_gmtoff)
12985 return 0;
12986 ;
12987 return 0;
12988 }
12989 _ACEOF
12990 rm -f conftest.$ac_objext
12991 if { (ac_try="$ac_compile"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } && {
13004 test -z "$ac_c_werror_flag" ||
13005 test ! -s conftest.err
13006 } && test -s conftest.$ac_objext; then
13007 ac_cv_member_struct_tm_tm_gmtoff=yes
13008 else
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 $ac_includes_default
13019 int
13020 main ()
13021 {
13022 static struct tm ac_aggr;
13023 if (sizeof ac_aggr.tm_gmtoff)
13024 return 0;
13025 ;
13026 return 0;
13027 }
13028 _ACEOF
13029 rm -f conftest.$ac_objext
13030 if { (ac_try="$ac_compile"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_compile") 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
13045 } && test -s conftest.$ac_objext; then
13046 ac_cv_member_struct_tm_tm_gmtoff=yes
13047 else
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13050
13051 ac_cv_member_struct_tm_tm_gmtoff=no
13052 fi
13053
13054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 fi
13056
13057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058 fi
13059 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13060 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
13061 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13062
13063 cat >>confdefs.h <<_ACEOF
13064 #define HAVE_STRUCT_TM_TM_GMTOFF 1
13065 _ACEOF
13066
13067
13068 fi
13069 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13070 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13071 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 $ac_includes_default
13081 int
13082 main ()
13083 {
13084 static struct tm ac_aggr;
13085 if (ac_aggr.tm_zone)
13086 return 0;
13087 ;
13088 return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (ac_try="$ac_compile"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compile") 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && {
13105 test -z "$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 } && test -s conftest.$ac_objext; then
13108 ac_cv_member_struct_tm_tm_zone=yes
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13112
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13120 int
13121 main ()
13122 {
13123 static struct tm ac_aggr;
13124 if (sizeof ac_aggr.tm_zone)
13125 return 0;
13126 ;
13127 return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext
13131 if { (ac_try="$ac_compile"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_compile") 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest.$ac_objext; then
13147 ac_cv_member_struct_tm_tm_zone=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 ac_cv_member_struct_tm_tm_zone=no
13153 fi
13154
13155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 fi
13157
13158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159 fi
13160 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13161 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13162 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13163
13164 cat >>confdefs.h <<_ACEOF
13165 #define HAVE_STRUCT_TM_TM_ZONE 1
13166 _ACEOF
13167
13168
13169 fi
13170
13171 { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
13172 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
13173 if test "${ac_cv_struct_tm_zone+set}" = set; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 else
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 #include <sys/types.h>
13183 #include <$ac_cv_struct_tm>
13184 int
13185 main ()
13186 {
13187 struct tm tm; tm.tm_zone;
13188 ;
13189 return 0;
13190 }
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_compile") 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && {
13206 test -z "$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 } && test -s conftest.$ac_objext; then
13209 ac_cv_struct_tm_zone=yes
13210 else
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_cv_struct_tm_zone=no
13215 fi
13216
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 fi
13219 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
13220 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
13221 if test "$ac_cv_struct_tm_zone" = yes; then
13222
13223 cat >>confdefs.h <<\_ACEOF
13224 #define HAVE_TM_ZONE 1
13225 _ACEOF
13226
13227 fi
13228
13229 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13230 # consider it declared and we won't give our own extern.
13231 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
13232 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
13233 if test "${ac_cv_have_decl_tzname+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 #include <time.h>
13243
13244 int
13245 main ()
13246 {
13247 #ifndef tzname
13248 (void) tzname;
13249 #endif
13250
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (ac_try="$ac_compile"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_compile") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } && {
13269 test -z "$ac_c_werror_flag" ||
13270 test ! -s conftest.err
13271 } && test -s conftest.$ac_objext; then
13272 ac_cv_have_decl_tzname=yes
13273 else
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 ac_cv_have_decl_tzname=no
13278 fi
13279
13280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 fi
13282 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
13283 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
13284 if test $ac_cv_have_decl_tzname = yes; then
13285
13286 cat >>confdefs.h <<_ACEOF
13287 #define HAVE_DECL_TZNAME 1
13288 _ACEOF
13289
13290
13291 else
13292 cat >>confdefs.h <<_ACEOF
13293 #define HAVE_DECL_TZNAME 0
13294 _ACEOF
13295
13296
13297 fi
13298
13299
13300 { echo "$as_me:$LINENO: checking for tzname" >&5
13301 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13302 if test "${ac_cv_var_tzname+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 else
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <time.h>
13312 #if !HAVE_DECL_TZNAME
13313 extern char *tzname[];
13314 #endif
13315 int
13316 main ()
13317 {
13318 return tzname[0][0];
13319 ;
13320 return 0;
13321 }
13322 _ACEOF
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && {
13337 test -z "$ac_c_werror_flag" ||
13338 test ! -s conftest.err
13339 } && test -s conftest$ac_exeext &&
13340 $as_test_x conftest$ac_exeext; then
13341 ac_cv_var_tzname=yes
13342 else
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 ac_cv_var_tzname=no
13347 fi
13348
13349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13350 conftest$ac_exeext conftest.$ac_ext
13351 fi
13352 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13353 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13354 if test $ac_cv_var_tzname = yes; then
13355
13356 cat >>confdefs.h <<\_ACEOF
13357 #define HAVE_TZNAME 1
13358 _ACEOF
13359
13360 fi
13361
13362 { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
13363 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
13364 if test "${ac_cv_struct_tm_isdst+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367 cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h. */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #include <sys/types.h>
13374 #include <$ac_cv_struct_tm>
13375 int
13376 main ()
13377 {
13378 struct tm tm; tm.tm_isdst;
13379 ;
13380 return 0;
13381 }
13382 _ACEOF
13383 rm -f conftest.$ac_objext
13384 if { (ac_try="$ac_compile"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_compile") 2>conftest.er1
13391 ac_status=$?
13392 grep -v '^ *+' conftest.er1 >conftest.err
13393 rm -f conftest.er1
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } && {
13397 test -z "$ac_c_werror_flag" ||
13398 test ! -s conftest.err
13399 } && test -s conftest.$ac_objext; then
13400 ac_cv_struct_tm_isdst=yes
13401 else
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_cv_struct_tm_isdst=no
13406 fi
13407
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 fi
13410 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
13411 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
13412 if test "$ac_cv_struct_tm_isdst" = yes; then
13413
13414 cat >>confdefs.h <<\_ACEOF
13415 #define HAVE_TM_ISDST 1
13416 _ACEOF
13417
13418 fi
13419
13420
13421 { echo "$as_me:$LINENO: checking whether daylight is declared" >&5
13422 echo $ECHO_N "checking whether daylight is declared... $ECHO_C" >&6; }
13423 if test "${ac_cv_have_decl_daylight+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h. */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 #include <time.h>
13433
13434 int
13435 main ()
13436 {
13437 #ifndef daylight
13438 (void) daylight;
13439 #endif
13440
13441 ;
13442 return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest.$ac_objext; then
13462 ac_cv_have_decl_daylight=yes
13463 else
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 ac_cv_have_decl_daylight=no
13468 fi
13469
13470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13471 fi
13472 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_daylight" >&5
13473 echo "${ECHO_T}$ac_cv_have_decl_daylight" >&6; }
13474 if test $ac_cv_have_decl_daylight = yes; then
13475
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_DECL_DAYLIGHT 1
13478 _ACEOF
13479
13480
13481 else
13482 cat >>confdefs.h <<_ACEOF
13483 #define HAVE_DECL_DAYLIGHT 0
13484 _ACEOF
13485
13486
13487 fi
13488
13489
13490 { echo "$as_me:$LINENO: checking for daylight" >&5
13491 echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
13492 if test "${ac_cv_var_daylight+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 else
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 #include <time.h>
13502 #if !HAVE_DECL_DAYLIGHT
13503 extern int daylight;
13504 #endif
13505 int
13506 main ()
13507 {
13508 atoi(daylight);
13509 ;
13510 return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest$ac_exeext &&
13530 $as_test_x conftest$ac_exeext; then
13531 ac_cv_var_daylight=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_cv_var_daylight=no
13537 fi
13538
13539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13540 conftest$ac_exeext conftest.$ac_ext
13541 fi
13542 { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
13543 echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
13544 if test $ac_cv_var_daylight = yes; then
13545
13546 cat >>confdefs.h <<\_ACEOF
13547 #define HAVE_DAYLIGHT 1
13548 _ACEOF
13549
13550 fi
13551
13552 # Check whether --enable-largefile was given.
13553 if test "${enable_largefile+set}" = set; then
13554 enableval=$enable_largefile;
13555 fi
13556
13557 if test "$enable_largefile" != no; then
13558
13559 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
13560 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
13561 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 ac_cv_sys_largefile_CC=no
13565 if test "$GCC" != yes; then
13566 ac_save_CC=$CC
13567 while :; do
13568 # IRIX 6.2 and later do not support large files by default,
13569 # so use the C compiler's -n32 option if that helps.
13570 cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h. */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include <sys/types.h>
13577 /* Check that off_t can represent 2**63 - 1 correctly.
13578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13579 since some C++ compilers masquerading as C compilers
13580 incorrectly reject 9223372036854775807. */
13581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13583 && LARGE_OFF_T % 2147483647 == 1)
13584 ? 1 : -1];
13585 int
13586 main ()
13587 {
13588
13589 ;
13590 return 0;
13591 }
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (ac_try="$ac_compile"
13595 case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13598 esac
13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_compile") 2>conftest.er1
13601 ac_status=$?
13602 grep -v '^ *+' conftest.er1 >conftest.err
13603 rm -f conftest.er1
13604 cat conftest.err >&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } && {
13607 test -z "$ac_c_werror_flag" ||
13608 test ! -s conftest.err
13609 } && test -s conftest.$ac_objext; then
13610 break
13611 else
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615
13616 fi
13617
13618 rm -f core conftest.err conftest.$ac_objext
13619 CC="$CC -n32"
13620 rm -f conftest.$ac_objext
13621 if { (ac_try="$ac_compile"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_compile") 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } && {
13634 test -z "$ac_c_werror_flag" ||
13635 test ! -s conftest.err
13636 } && test -s conftest.$ac_objext; then
13637 ac_cv_sys_largefile_CC=' -n32'; break
13638 else
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642
13643 fi
13644
13645 rm -f core conftest.err conftest.$ac_objext
13646 break
13647 done
13648 CC=$ac_save_CC
13649 rm -f conftest.$ac_ext
13650 fi
13651 fi
13652 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13653 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
13654 if test "$ac_cv_sys_largefile_CC" != no; then
13655 CC=$CC$ac_cv_sys_largefile_CC
13656 fi
13657
13658 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13659 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
13660 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663 while :; do
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 #include <sys/types.h>
13671 /* Check that off_t can represent 2**63 - 1 correctly.
13672 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13673 since some C++ compilers masquerading as C compilers
13674 incorrectly reject 9223372036854775807. */
13675 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13676 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13677 && LARGE_OFF_T % 2147483647 == 1)
13678 ? 1 : -1];
13679 int
13680 main ()
13681 {
13682
13683 ;
13684 return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13704 ac_cv_sys_file_offset_bits=no; break
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709
13710 fi
13711
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 #define _FILE_OFFSET_BITS 64
13720 #include <sys/types.h>
13721 /* Check that off_t can represent 2**63 - 1 correctly.
13722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13723 since some C++ compilers masquerading as C compilers
13724 incorrectly reject 9223372036854775807. */
13725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13727 && LARGE_OFF_T % 2147483647 == 1)
13728 ? 1 : -1];
13729 int
13730 main ()
13731 {
13732
13733 ;
13734 return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } && {
13751 test -z "$ac_c_werror_flag" ||
13752 test ! -s conftest.err
13753 } && test -s conftest.$ac_objext; then
13754 ac_cv_sys_file_offset_bits=64; break
13755 else
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759
13760 fi
13761
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 ac_cv_sys_file_offset_bits=unknown
13764 break
13765 done
13766 fi
13767 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
13768 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
13769 case $ac_cv_sys_file_offset_bits in #(
13770 no | unknown) ;;
13771 *)
13772 cat >>confdefs.h <<_ACEOF
13773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13774 _ACEOF
13775 ;;
13776 esac
13777 rm -f conftest*
13778 if test $ac_cv_sys_file_offset_bits = unknown; then
13779 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
13780 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
13781 if test "${ac_cv_sys_large_files+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784 while :; do
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 #include <sys/types.h>
13792 /* Check that off_t can represent 2**63 - 1 correctly.
13793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13794 since some C++ compilers masquerading as C compilers
13795 incorrectly reject 9223372036854775807. */
13796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13798 && LARGE_OFF_T % 2147483647 == 1)
13799 ? 1 : -1];
13800 int
13801 main ()
13802 {
13803
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813 esac
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_compile") 2>conftest.er1
13816 ac_status=$?
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } && {
13822 test -z "$ac_c_werror_flag" ||
13823 test ! -s conftest.err
13824 } && test -s conftest.$ac_objext; then
13825 ac_cv_sys_large_files=no; break
13826 else
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830
13831 fi
13832
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 #define _LARGE_FILES 1
13841 #include <sys/types.h>
13842 /* Check that off_t can represent 2**63 - 1 correctly.
13843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13844 since some C++ compilers masquerading as C compilers
13845 incorrectly reject 9223372036854775807. */
13846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13848 && LARGE_OFF_T % 2147483647 == 1)
13849 ? 1 : -1];
13850 int
13851 main ()
13852 {
13853
13854 ;
13855 return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13875 ac_cv_sys_large_files=1; break
13876 else
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880
13881 fi
13882
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 ac_cv_sys_large_files=unknown
13885 break
13886 done
13887 fi
13888 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
13889 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
13890 case $ac_cv_sys_large_files in #(
13891 no | unknown) ;;
13892 *)
13893 cat >>confdefs.h <<_ACEOF
13894 #define _LARGE_FILES $ac_cv_sys_large_files
13895 _ACEOF
13896 ;;
13897 esac
13898 rm -f conftest*
13899 fi
13900 fi
13901
13902 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13903 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
13904 if test "${ac_cv_sys_largefile_source+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907 while :; do
13908 cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h. */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 #include <stdio.h>
13915 int
13916 main ()
13917 {
13918 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13919 ;
13920 return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (ac_try="$ac_link"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_link") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest$ac_exeext &&
13940 $as_test_x conftest$ac_exeext; then
13941 ac_cv_sys_largefile_source=no; break
13942 else
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13945
13946
13947 fi
13948
13949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13950 conftest$ac_exeext conftest.$ac_ext
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h. */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 #define _LARGEFILE_SOURCE 1
13958 #include <stdio.h>
13959 int
13960 main ()
13961 {
13962 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13963 ;
13964 return 0;
13965 }
13966 _ACEOF
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_link") 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } && {
13981 test -z "$ac_c_werror_flag" ||
13982 test ! -s conftest.err
13983 } && test -s conftest$ac_exeext &&
13984 $as_test_x conftest$ac_exeext; then
13985 ac_cv_sys_largefile_source=1; break
13986 else
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990
13991 fi
13992
13993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13994 conftest$ac_exeext conftest.$ac_ext
13995 ac_cv_sys_largefile_source=unknown
13996 break
13997 done
13998 fi
13999 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14000 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
14001 case $ac_cv_sys_largefile_source in #(
14002 no | unknown) ;;
14003 *)
14004 cat >>confdefs.h <<_ACEOF
14005 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14006 _ACEOF
14007 ;;
14008 esac
14009 rm -f conftest*
14010
14011 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14012 # in glibc 2.1.3, but that breaks too many other things.
14013 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14014 if test $ac_cv_sys_largefile_source != unknown; then
14015
14016 cat >>confdefs.h <<\_ACEOF
14017 #define HAVE_FSEEKO 1
14018 _ACEOF
14019
14020 fi
14021
14022 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
14023 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
14024 if test "${ac_cv_type_mbstate_t+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033 $ac_includes_default
14034 # include <wchar.h>
14035 int
14036 main ()
14037 {
14038 mbstate_t x; return sizeof x;
14039 ;
14040 return 0;
14041 }
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (ac_try="$ac_compile"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_compile") 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest.$ac_objext; then
14060 ac_cv_type_mbstate_t=yes
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065 ac_cv_type_mbstate_t=no
14066 fi
14067
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 fi
14070 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14071 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
14072 if test $ac_cv_type_mbstate_t = yes; then
14073
14074 cat >>confdefs.h <<\_ACEOF
14075 #define HAVE_MBSTATE_T 1
14076 _ACEOF
14077
14078 else
14079
14080 cat >>confdefs.h <<\_ACEOF
14081 #define mbstate_t int
14082 _ACEOF
14083
14084 fi
14085
14086 { echo "$as_me:$LINENO: checking for struct option in getopt" >&5
14087 echo $ECHO_N "checking for struct option in getopt... $ECHO_C" >&6; }
14088 if test "${ac_cv_struct_option_getopt_h+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h. */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include <getopt.h>
14098 int
14099 main ()
14100 {
14101 struct option op; op.name;
14102 ;
14103 return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (ac_try="$ac_compile"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest.$ac_objext; then
14123 ac_cv_struct_option_getopt_h=yes
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ac_cv_struct_option_getopt_h=no
14129 fi
14130
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 fi
14133 { echo "$as_me:$LINENO: result: $ac_cv_struct_option_getopt_h" >&5
14134 echo "${ECHO_T}$ac_cv_struct_option_getopt_h" >&6; }
14135 if test "$ac_cv_struct_option_getopt_h" = yes; then
14136
14137 cat >>confdefs.h <<\_ACEOF
14138 #define HAVE_STRUCT_OPTION 1
14139 _ACEOF
14140
14141 fi
14142
14143
14144 { echo "$as_me:$LINENO: checking for uint8_t" >&5
14145 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
14146 if test "${ac_cv_type_uint8_t+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14156 typedef uint8_t ac__type_new_;
14157 int
14158 main ()
14159 {
14160 if ((ac__type_new_ *) 0)
14161 return 0;
14162 if (sizeof (ac__type_new_))
14163 return 0;
14164 ;
14165 return 0;
14166 }
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (ac_try="$ac_compile"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_compile") 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest.$ac_objext; then
14185 ac_cv_type_uint8_t=yes
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 ac_cv_type_uint8_t=no
14191 fi
14192
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 fi
14195 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
14196 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
14197 if test $ac_cv_type_uint8_t = yes; then
14198
14199 cat >>confdefs.h <<_ACEOF
14200 #define HAVE_UINT8_T 1
14201 _ACEOF
14202
14203
14204 fi
14205 { echo "$as_me:$LINENO: checking for uint16_t" >&5
14206 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
14207 if test "${ac_cv_type_uint16_t+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 $ac_includes_default
14217 typedef uint16_t ac__type_new_;
14218 int
14219 main ()
14220 {
14221 if ((ac__type_new_ *) 0)
14222 return 0;
14223 if (sizeof (ac__type_new_))
14224 return 0;
14225 ;
14226 return 0;
14227 }
14228 _ACEOF
14229 rm -f conftest.$ac_objext
14230 if { (ac_try="$ac_compile"
14231 case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_compile") 2>conftest.er1
14237 ac_status=$?
14238 grep -v '^ *+' conftest.er1 >conftest.err
14239 rm -f conftest.er1
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } && {
14243 test -z "$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14245 } && test -s conftest.$ac_objext; then
14246 ac_cv_type_uint16_t=yes
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 ac_cv_type_uint16_t=no
14252 fi
14253
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 fi
14256 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
14257 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
14258 if test $ac_cv_type_uint16_t = yes; then
14259
14260 cat >>confdefs.h <<_ACEOF
14261 #define HAVE_UINT16_T 1
14262 _ACEOF
14263
14264
14265 fi
14266 { echo "$as_me:$LINENO: checking for uint32_t" >&5
14267 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
14268 if test "${ac_cv_type_uint32_t+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 $ac_includes_default
14278 typedef uint32_t ac__type_new_;
14279 int
14280 main ()
14281 {
14282 if ((ac__type_new_ *) 0)
14283 return 0;
14284 if (sizeof (ac__type_new_))
14285 return 0;
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext
14291 if { (ac_try="$ac_compile"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_compile") 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } && {
14304 test -z "$ac_c_werror_flag" ||
14305 test ! -s conftest.err
14306 } && test -s conftest.$ac_objext; then
14307 ac_cv_type_uint32_t=yes
14308 else
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 ac_cv_type_uint32_t=no
14313 fi
14314
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 fi
14317 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14318 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
14319 if test $ac_cv_type_uint32_t = yes; then
14320
14321 cat >>confdefs.h <<_ACEOF
14322 #define HAVE_UINT32_T 1
14323 _ACEOF
14324
14325
14326 fi
14327 { echo "$as_me:$LINENO: checking for int32_t" >&5
14328 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
14329 if test "${ac_cv_type_int32_t+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332 cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h. */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 $ac_includes_default
14339 typedef int32_t ac__type_new_;
14340 int
14341 main ()
14342 {
14343 if ((ac__type_new_ *) 0)
14344 return 0;
14345 if (sizeof (ac__type_new_))
14346 return 0;
14347 ;
14348 return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (ac_try="$ac_compile"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_compile") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest.$ac_objext; then
14368 ac_cv_type_int32_t=yes
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ac_cv_type_int32_t=no
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 fi
14378 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
14379 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
14380 if test $ac_cv_type_int32_t = yes; then
14381
14382 cat >>confdefs.h <<_ACEOF
14383 #define HAVE_INT32_T 1
14384 _ACEOF
14385
14386
14387 fi
14388 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14389 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14390 if test "${ac_cv_type_uint64_t+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 $ac_includes_default
14400 typedef uint64_t ac__type_new_;
14401 int
14402 main ()
14403 {
14404 if ((ac__type_new_ *) 0)
14405 return 0;
14406 if (sizeof (ac__type_new_))
14407 return 0;
14408 ;
14409 return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (ac_try="$ac_compile"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_compile") 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } && {
14426 test -z "$ac_c_werror_flag" ||
14427 test ! -s conftest.err
14428 } && test -s conftest.$ac_objext; then
14429 ac_cv_type_uint64_t=yes
14430 else
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 ac_cv_type_uint64_t=no
14435 fi
14436
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 fi
14439 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14440 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14441 if test $ac_cv_type_uint64_t = yes; then
14442
14443 cat >>confdefs.h <<_ACEOF
14444 #define HAVE_UINT64_T 1
14445 _ACEOF
14446
14447
14448 fi
14449 { echo "$as_me:$LINENO: checking for int64_t" >&5
14450 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14451 if test "${ac_cv_type_int64_t+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h. */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14460 $ac_includes_default
14461 typedef int64_t ac__type_new_;
14462 int
14463 main ()
14464 {
14465 if ((ac__type_new_ *) 0)
14466 return 0;
14467 if (sizeof (ac__type_new_))
14468 return 0;
14469 ;
14470 return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_compile") 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } && {
14487 test -z "$ac_c_werror_flag" ||
14488 test ! -s conftest.err
14489 } && test -s conftest.$ac_objext; then
14490 ac_cv_type_int64_t=yes
14491 else
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495 ac_cv_type_int64_t=no
14496 fi
14497
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 fi
14500 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14501 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14502 if test $ac_cv_type_int64_t = yes; then
14503
14504 cat >>confdefs.h <<_ACEOF
14505 #define HAVE_INT64_T 1
14506 _ACEOF
14507
14508
14509 fi
14510
14511 { echo "$as_me:$LINENO: checking for long long" >&5
14512 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14513 if test "${ac_cv_type_long_long+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h. */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 $ac_includes_default
14523 typedef long long ac__type_new_;
14524 int
14525 main ()
14526 {
14527 if ((ac__type_new_ *) 0)
14528 return 0;
14529 if (sizeof (ac__type_new_))
14530 return 0;
14531 ;
14532 return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_compile") 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest.$ac_objext; then
14552 ac_cv_type_long_long=yes
14553 else
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557 ac_cv_type_long_long=no
14558 fi
14559
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 fi
14562 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14563 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14564
14565 # The cast to long int works around a bug in the HP C Compiler
14566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14568 # This bug is HP SR number 8606223364.
14569 { echo "$as_me:$LINENO: checking size of long long" >&5
14570 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
14571 if test "${ac_cv_sizeof_long_long+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574 if test "$cross_compiling" = yes; then
14575 # Depending upon the size, compute the lo and hi bounds.
14576 cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h. */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 $ac_includes_default
14583 typedef long long ac__type_sizeof_;
14584 int
14585 main ()
14586 {
14587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14588 test_array [0] = 0
14589
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_compile") 2>conftest.er1
14602 ac_status=$?
14603 grep -v '^ *+' conftest.er1 >conftest.err
14604 rm -f conftest.er1
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } && {
14608 test -z "$ac_c_werror_flag" ||
14609 test ! -s conftest.err
14610 } && test -s conftest.$ac_objext; then
14611 ac_lo=0 ac_mid=0
14612 while :; do
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h. */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 $ac_includes_default
14620 typedef long long ac__type_sizeof_;
14621 int
14622 main ()
14623 {
14624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14625 test_array [0] = 0
14626
14627 ;
14628 return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_hi=$ac_mid; break
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 ac_lo=`expr $ac_mid + 1`
14654 if test $ac_lo -le $ac_mid; then
14655 ac_lo= ac_hi=
14656 break
14657 fi
14658 ac_mid=`expr 2 '*' $ac_mid + 1`
14659 fi
14660
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 done
14663 else
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 $ac_includes_default
14674 typedef long long ac__type_sizeof_;
14675 int
14676 main ()
14677 {
14678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14679 test_array [0] = 0
14680
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_compile") 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest.$ac_objext; then
14702 ac_hi=-1 ac_mid=-1
14703 while :; do
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h. */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 $ac_includes_default
14711 typedef long long ac__type_sizeof_;
14712 int
14713 main ()
14714 {
14715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14716 test_array [0] = 0
14717
14718 ;
14719 return 0;
14720 }
14721 _ACEOF
14722 rm -f conftest.$ac_objext
14723 if { (ac_try="$ac_compile"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_compile") 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } && {
14736 test -z "$ac_c_werror_flag" ||
14737 test ! -s conftest.err
14738 } && test -s conftest.$ac_objext; then
14739 ac_lo=$ac_mid; break
14740 else
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_hi=`expr '(' $ac_mid ')' - 1`
14745 if test $ac_mid -le $ac_hi; then
14746 ac_lo= ac_hi=
14747 break
14748 fi
14749 ac_mid=`expr 2 '*' $ac_mid`
14750 fi
14751
14752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 done
14754 else
14755 echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 ac_lo= ac_hi=
14759 fi
14760
14761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 fi
14763
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765 # Binary search between lo and hi bounds.
14766 while test "x$ac_lo" != "x$ac_hi"; do
14767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h. */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 $ac_includes_default
14775 typedef long long ac__type_sizeof_;
14776 int
14777 main ()
14778 {
14779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14780 test_array [0] = 0
14781
14782 ;
14783 return 0;
14784 }
14785 _ACEOF
14786 rm -f conftest.$ac_objext
14787 if { (ac_try="$ac_compile"
14788 case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_compile") 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } && {
14800 test -z "$ac_c_werror_flag" ||
14801 test ! -s conftest.err
14802 } && test -s conftest.$ac_objext; then
14803 ac_hi=$ac_mid
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_lo=`expr '(' $ac_mid ')' + 1`
14809 fi
14810
14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812 done
14813 case $ac_lo in
14814 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14815 '') if test "$ac_cv_type_long_long" = yes; then
14816 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14817 See \`config.log' for more details." >&5
14818 echo "$as_me: error: cannot compute sizeof (long long)
14819 See \`config.log' for more details." >&2;}
14820 { (exit 77); exit 77; }; }
14821 else
14822 ac_cv_sizeof_long_long=0
14823 fi ;;
14824 esac
14825 else
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 $ac_includes_default
14833 typedef long long ac__type_sizeof_;
14834 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14835 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14836 #include <stdio.h>
14837 #include <stdlib.h>
14838 int
14839 main ()
14840 {
14841
14842 FILE *f = fopen ("conftest.val", "w");
14843 if (! f)
14844 return 1;
14845 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14846 {
14847 long int i = longval ();
14848 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14849 return 1;
14850 fprintf (f, "%ld\n", i);
14851 }
14852 else
14853 {
14854 unsigned long int i = ulongval ();
14855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14856 return 1;
14857 fprintf (f, "%lu\n", i);
14858 }
14859 return ferror (f) || fclose (f) != 0;
14860
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest$ac_exeext
14866 if { (ac_try="$ac_link"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_link") 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14876 { (case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_try") 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_sizeof_long_long=`cat conftest.val`
14886 else
14887 echo "$as_me: program exited with status $ac_status" >&5
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 ( exit $ac_status )
14892 if test "$ac_cv_type_long_long" = yes; then
14893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14894 See \`config.log' for more details." >&5
14895 echo "$as_me: error: cannot compute sizeof (long long)
14896 See \`config.log' for more details." >&2;}
14897 { (exit 77); exit 77; }; }
14898 else
14899 ac_cv_sizeof_long_long=0
14900 fi
14901 fi
14902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14903 fi
14904 rm -f conftest.val
14905 fi
14906 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14907 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14908
14909
14910
14911 cat >>confdefs.h <<_ACEOF
14912 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14913 _ACEOF
14914
14915
14916
14917
14918
14919 { echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
14920 echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
14921 # Check whether --enable-warnings was given.
14922 if test "${enable_warnings+set}" = set; then
14923 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14924 { echo "$as_me:$LINENO: result: no" >&5
14925 echo "${ECHO_T}no" >&6; }
14926 WARNINGS=
14927 else
14928 { echo "$as_me:$LINENO: result: yes" >&5
14929 echo "${ECHO_T}yes" >&6; }
14930 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14931 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14932 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14933 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
14934 fi
14935 else
14936
14937 if test "$GCC" = yes; then
14938 { echo "$as_me:$LINENO: result: yes" >&5
14939 echo "${ECHO_T}yes" >&6; }
14940 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14941 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14942 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14943 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
14944 else
14945 WARNINGS=
14946 { echo "$as_me:$LINENO: result: no" >&5
14947 echo "${ECHO_T}no" >&6; }
14948 fi
14949 fi
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963 for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof fork
14964 do
14965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14979 #define $ac_func innocuous_$ac_func
14980
14981 /* System header to define __stub macros and hopefully few prototypes,
14982 which can conflict with char $ac_func (); below.
14983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984 <limits.h> exists even on freestanding compilers. */
14985
14986 #ifdef __STDC__
14987 # include <limits.h>
14988 #else
14989 # include <assert.h>
14990 #endif
14991
14992 #undef $ac_func
14993
14994 /* Override any GCC internal prototype to avoid an error.
14995 Use char because int might match the return type of a GCC
14996 builtin and then its argument prototype would still apply. */
14997 #ifdef __cplusplus
14998 extern "C"
14999 #endif
15000 char $ac_func ();
15001 /* The GNU C library defines this for functions which it implements
15002 to always fail with ENOSYS. Some functions are actually named
15003 something starting with __ and the normal name is an alias. */
15004 #if defined __stub_$ac_func || defined __stub___$ac_func
15005 choke me
15006 #endif
15007
15008 int
15009 main ()
15010 {
15011 return $ac_func ();
15012 ;
15013 return 0;
15014 }
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_link") 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } && {
15030 test -z "$ac_c_werror_flag" ||
15031 test ! -s conftest.err
15032 } && test -s conftest$ac_exeext &&
15033 $as_test_x conftest$ac_exeext; then
15034 eval "$as_ac_var=yes"
15035 else
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039 eval "$as_ac_var=no"
15040 fi
15041
15042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15043 conftest$ac_exeext conftest.$ac_ext
15044 fi
15045 ac_res=`eval echo '${'$as_ac_var'}'`
15046 { echo "$as_me:$LINENO: result: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15048 if test `eval echo '${'$as_ac_var'}'` = yes; then
15049 cat >>confdefs.h <<_ACEOF
15050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15051 _ACEOF
15052
15053 fi
15054 done
15055
15056
15057
15058
15059
15060
15061
15062
15063 for ac_func in getopt_long asprintf vasprintf strlcpy strlcat getline
15064 do
15065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 cat >conftest.$ac_ext <<_ACEOF
15072 /* confdefs.h. */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15079 #define $ac_func innocuous_$ac_func
15080
15081 /* System header to define __stub macros and hopefully few prototypes,
15082 which can conflict with char $ac_func (); below.
15083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15084 <limits.h> exists even on freestanding compilers. */
15085
15086 #ifdef __STDC__
15087 # include <limits.h>
15088 #else
15089 # include <assert.h>
15090 #endif
15091
15092 #undef $ac_func
15093
15094 /* Override any GCC internal prototype to avoid an error.
15095 Use char because int might match the return type of a GCC
15096 builtin and then its argument prototype would still apply. */
15097 #ifdef __cplusplus
15098 extern "C"
15099 #endif
15100 char $ac_func ();
15101 /* The GNU C library defines this for functions which it implements
15102 to always fail with ENOSYS. Some functions are actually named
15103 something starting with __ and the normal name is an alias. */
15104 #if defined __stub_$ac_func || defined __stub___$ac_func
15105 choke me
15106 #endif
15107
15108 int
15109 main ()
15110 {
15111 return $ac_func ();
15112 ;
15113 return 0;
15114 }
15115 _ACEOF
15116 rm -f conftest.$ac_objext conftest$ac_exeext
15117 if { (ac_try="$ac_link"
15118 case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_link") 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest$ac_exeext &&
15133 $as_test_x conftest$ac_exeext; then
15134 eval "$as_ac_var=yes"
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 eval "$as_ac_var=no"
15140 fi
15141
15142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15143 conftest$ac_exeext conftest.$ac_ext
15144 fi
15145 ac_res=`eval echo '${'$as_ac_var'}'`
15146 { echo "$as_me:$LINENO: result: $ac_res" >&5
15147 echo "${ECHO_T}$ac_res" >&6; }
15148 if test `eval echo '${'$as_ac_var'}'` = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15151 _ACEOF
15152
15153 else
15154 case " $LIBOBJS " in
15155 *" $ac_func.$ac_objext "* ) ;;
15156 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15157 ;;
15158 esac
15159
15160 fi
15161 done
15162
15163
15164
15165
15166 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
15167 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
15168 if test "${ac_cv_lib_z_gzopen+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171 ac_check_lib_save_LIBS=$LIBS
15172 LIBS="-lz $LIBS"
15173 cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h. */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179
15180 /* Override any GCC internal prototype to avoid an error.
15181 Use char because int might match the return type of a GCC
15182 builtin and then its argument prototype would still apply. */
15183 #ifdef __cplusplus
15184 extern "C"
15185 #endif
15186 char gzopen ();
15187 int
15188 main ()
15189 {
15190 return gzopen ();
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (ac_try="$ac_link"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200 esac
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_link") 2>conftest.er1
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } && {
15209 test -z "$ac_c_werror_flag" ||
15210 test ! -s conftest.err
15211 } && test -s conftest$ac_exeext &&
15212 $as_test_x conftest$ac_exeext; then
15213 ac_cv_lib_z_gzopen=yes
15214 else
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_cv_lib_z_gzopen=no
15219 fi
15220
15221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15222 conftest$ac_exeext conftest.$ac_ext
15223 LIBS=$ac_check_lib_save_LIBS
15224 fi
15225 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
15226 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
15227 if test $ac_cv_lib_z_gzopen = yes; then
15228 cat >>confdefs.h <<_ACEOF
15229 #define HAVE_LIBZ 1
15230 _ACEOF
15231
15232 LIBS="-lz $LIBS"
15233
15234 fi
15235
15236 if test "$MINGW" = 1; then
15237
15238 { echo "$as_me:$LINENO: checking for regexec in -lgnurx" >&5
15239 echo $ECHO_N "checking for regexec in -lgnurx... $ECHO_C" >&6; }
15240 if test "${ac_cv_lib_gnurx_regexec+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243 ac_check_lib_save_LIBS=$LIBS
15244 LIBS="-lgnurx $LIBS"
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251
15252 /* Override any GCC internal prototype to avoid an error.
15253 Use char because int might match the return type of a GCC
15254 builtin and then its argument prototype would still apply. */
15255 #ifdef __cplusplus
15256 extern "C"
15257 #endif
15258 char regexec ();
15259 int
15260 main ()
15261 {
15262 return regexec ();
15263 ;
15264 return 0;
15265 }
15266 _ACEOF
15267 rm -f conftest.$ac_objext conftest$ac_exeext
15268 if { (ac_try="$ac_link"
15269 case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_link") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest$ac_exeext &&
15284 $as_test_x conftest$ac_exeext; then
15285 ac_cv_lib_gnurx_regexec=yes
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290 ac_cv_lib_gnurx_regexec=no
15291 fi
15292
15293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15294 conftest$ac_exeext conftest.$ac_ext
15295 LIBS=$ac_check_lib_save_LIBS
15296 fi
15297 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnurx_regexec" >&5
15298 echo "${ECHO_T}$ac_cv_lib_gnurx_regexec" >&6; }
15299 if test $ac_cv_lib_gnurx_regexec = yes; then
15300 cat >>confdefs.h <<_ACEOF
15301 #define HAVE_LIBGNURX 1
15302 _ACEOF
15303
15304 LIBS="-lgnurx $LIBS"
15305
15306 else
15307 { { echo "$as_me:$LINENO: error: libgnurx is required to build file(1) with MinGW" >&5
15308 echo "$as_me: error: libgnurx is required to build file(1) with MinGW" >&2;}
15309 { (exit 1); exit 1; }; }
15310 fi
15311
15312 fi
15313
15314 if test "$cross_compiling" = yes; then
15315 IS_CROSS_COMPILE_TRUE=
15316 IS_CROSS_COMPILE_FALSE='#'
15317 else
15318 IS_CROSS_COMPILE_TRUE='#'
15319 IS_CROSS_COMPILE_FALSE=
15320 fi
15321
15322
15323 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
15324
15325 cat >confcache <<\_ACEOF
15326 # This file is a shell script that caches the results of configure
15327 # tests run on this system so they can be shared between configure
15328 # scripts and configure runs, see configure's option --config-cache.
15329 # It is not useful on other systems. If it contains results you don't
15330 # want to keep, you may remove or edit it.
15331 #
15332 # config.status only pays attention to the cache file if you give it
15333 # the --recheck option to rerun configure.
15334 #
15335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15337 # following values.
15338
15339 _ACEOF
15340
15341 # The following way of writing the cache mishandles newlines in values,
15342 # but we know of no workaround that is simple, portable, and efficient.
15343 # So, we kill variables containing newlines.
15344 # Ultrix sh set writes to stderr and can't be redirected directly,
15345 # and sets the high bit in the cache file unless we assign to the vars.
15346 (
15347 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15348 eval ac_val=\$$ac_var
15349 case $ac_val in #(
15350 *${as_nl}*)
15351 case $ac_var in #(
15352 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15353 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15354 esac
15355 case $ac_var in #(
15356 _ | IFS | as_nl) ;; #(
15357 *) $as_unset $ac_var ;;
15358 esac ;;
15359 esac
15360 done
15361
15362 (set) 2>&1 |
15363 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15364 *${as_nl}ac_space=\ *)
15365 # `set' does not quote correctly, so add quotes (double-quote
15366 # substitution turns \\\\ into \\, and sed turns \\ into \).
15367 sed -n \
15368 "s/'/'\\\\''/g;
15369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15370 ;; #(
15371 *)
15372 # `set' quotes correctly as required by POSIX, so do not add quotes.
15373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15374 ;;
15375 esac |
15376 sort
15377 ) |
15378 sed '
15379 /^ac_cv_env_/b end
15380 t clear
15381 :clear
15382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15383 t end
15384 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15385 :end' >>confcache
15386 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15387 if test -w "$cache_file"; then
15388 test "x$cache_file" != "x/dev/null" &&
15389 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15390 echo "$as_me: updating cache $cache_file" >&6;}
15391 cat confcache >$cache_file
15392 else
15393 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15394 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15395 fi
15396 fi
15397 rm -f confcache
15398
15399 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15400 # Let make expand exec_prefix.
15401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15402
15403 DEFS=-DHAVE_CONFIG_H
15404
15405 ac_libobjs=
15406 ac_ltlibobjs=
15407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15408 # 1. Remove the extension, and $U if already installed.
15409 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15410 ac_i=`echo "$ac_i" | sed "$ac_script"`
15411 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15412 # will be set to the directory where LIBOBJS objects are built.
15413 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15414 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15415 done
15416 LIBOBJS=$ac_libobjs
15417
15418 LTLIBOBJS=$ac_ltlibobjs
15419
15420
15421 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15422 { { echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
15423 Usually this means the macro was only invoked conditionally." >&5
15424 echo "$as_me: error: conditional \"MINGW\" was never defined.
15425 Usually this means the macro was only invoked conditionally." >&2;}
15426 { (exit 1); exit 1; }; }
15427 fi
15428 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15429 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
15430 Usually this means the macro was only invoked conditionally." >&5
15431 echo "$as_me: error: conditional \"FSECT5\" was never defined.
15432 Usually this means the macro was only invoked conditionally." >&2;}
15433 { (exit 1); exit 1; }; }
15434 fi
15435 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15436 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15437 Usually this means the macro was only invoked conditionally." >&5
15438 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15439 Usually this means the macro was only invoked conditionally." >&2;}
15440 { (exit 1); exit 1; }; }
15441 fi
15442 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15443 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15444 Usually this means the macro was only invoked conditionally." >&5
15445 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15446 Usually this means the macro was only invoked conditionally." >&2;}
15447 { (exit 1); exit 1; }; }
15448 fi
15449 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15450 { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
15451 Usually this means the macro was only invoked conditionally." >&5
15452 echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
15453 Usually this means the macro was only invoked conditionally." >&2;}
15454 { (exit 1); exit 1; }; }
15455 fi
15456
15457 : ${CONFIG_STATUS=./config.status}
15458 ac_clean_files_save=$ac_clean_files
15459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15460 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15461 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15462 cat >$CONFIG_STATUS <<_ACEOF
15463 #! $SHELL
15464 # Generated by $as_me.
15465 # Run this file to recreate the current configuration.
15466 # Compiler output produced by configure, useful for debugging
15467 # configure, is in config.log if it exists.
15468
15469 debug=false
15470 ac_cs_recheck=false
15471 ac_cs_silent=false
15472 SHELL=\${CONFIG_SHELL-$SHELL}
15473 _ACEOF
15474
15475 cat >>$CONFIG_STATUS <<\_ACEOF
15476 ## --------------------- ##
15477 ## M4sh Initialization. ##
15478 ## --------------------- ##
15479
15480 # Be more Bourne compatible
15481 DUALCASE=1; export DUALCASE # for MKS sh
15482 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15483 emulate sh
15484 NULLCMD=:
15485 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15486 # is contrary to our usage. Disable this feature.
15487 alias -g '${1+"$@"}'='"$@"'
15488 setopt NO_GLOB_SUBST
15489 else
15490 case `(set -o) 2>/dev/null` in
15491 *posix*) set -o posix ;;
15492 esac
15493
15494 fi
15495
15496
15497
15498
15499 # PATH needs CR
15500 # Avoid depending upon Character Ranges.
15501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15504 as_cr_digits='0123456789'
15505 as_cr_alnum=$as_cr_Letters$as_cr_digits
15506
15507 # The user is always right.
15508 if test "${PATH_SEPARATOR+set}" != set; then
15509 echo "#! /bin/sh" >conf$$.sh
15510 echo "exit 0" >>conf$$.sh
15511 chmod +x conf$$.sh
15512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15513 PATH_SEPARATOR=';'
15514 else
15515 PATH_SEPARATOR=:
15516 fi
15517 rm -f conf$$.sh
15518 fi
15519
15520 # Support unset when possible.
15521 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15522 as_unset=unset
15523 else
15524 as_unset=false
15525 fi
15526
15527
15528 # IFS
15529 # We need space, tab and new line, in precisely that order. Quoting is
15530 # there to prevent editors from complaining about space-tab.
15531 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15532 # splitting by setting IFS to empty value.)
15533 as_nl='
15534 '
15535 IFS=" "" $as_nl"
15536
15537 # Find who we are. Look in the path if we contain no directory separator.
15538 case $0 in
15539 *[\\/]* ) as_myself=$0 ;;
15540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15541 for as_dir in $PATH
15542 do
15543 IFS=$as_save_IFS
15544 test -z "$as_dir" && as_dir=.
15545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15546 done
15547 IFS=$as_save_IFS
15548
15549 ;;
15550 esac
15551 # We did not find ourselves, most probably we were run as `sh COMMAND'
15552 # in which case we are not to be found in the path.
15553 if test "x$as_myself" = x; then
15554 as_myself=$0
15555 fi
15556 if test ! -f "$as_myself"; then
15557 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15558 { (exit 1); exit 1; }
15559 fi
15560
15561 # Work around bugs in pre-3.0 UWIN ksh.
15562 for as_var in ENV MAIL MAILPATH
15563 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15564 done
15565 PS1='$ '
15566 PS2='> '
15567 PS4='+ '
15568
15569 # NLS nuisances.
15570 for as_var in \
15571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15573 LC_TELEPHONE LC_TIME
15574 do
15575 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15576 eval $as_var=C; export $as_var
15577 else
15578 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15579 fi
15580 done
15581
15582 # Required to use basename.
15583 if expr a : '\(a\)' >/dev/null 2>&1 &&
15584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15585 as_expr=expr
15586 else
15587 as_expr=false
15588 fi
15589
15590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15591 as_basename=basename
15592 else
15593 as_basename=false
15594 fi
15595
15596
15597 # Name of the executable.
15598 as_me=`$as_basename -- "$0" ||
15599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15600 X"$0" : 'X\(//\)$' \| \
15601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15602 echo X/"$0" |
15603 sed '/^.*\/\([^/][^/]*\)\/*$/{
15604 s//\1/
15605 q
15606 }
15607 /^X\/\(\/\/\)$/{
15608 s//\1/
15609 q
15610 }
15611 /^X\/\(\/\).*/{
15612 s//\1/
15613 q
15614 }
15615 s/.*/./; q'`
15616
15617 # CDPATH.
15618 $as_unset CDPATH
15619
15620
15621
15622 as_lineno_1=$LINENO
15623 as_lineno_2=$LINENO
15624 test "x$as_lineno_1" != "x$as_lineno_2" &&
15625 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15626
15627 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15628 # uniformly replaced by the line number. The first 'sed' inserts a
15629 # line-number line after each line using $LINENO; the second 'sed'
15630 # does the real work. The second script uses 'N' to pair each
15631 # line-number line with the line containing $LINENO, and appends
15632 # trailing '-' during substitution so that $LINENO is not a special
15633 # case at line end.
15634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15635 # scripts with optimization help from Paolo Bonzini. Blame Lee
15636 # E. McMahon (1931-1989) for sed's syntax. :-)
15637 sed -n '
15638 p
15639 /[$]LINENO/=
15640 ' <$as_myself |
15641 sed '
15642 s/[$]LINENO.*/&-/
15643 t lineno
15644 b
15645 :lineno
15646 N
15647 :loop
15648 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15649 t loop
15650 s/-\n.*//
15651 ' >$as_me.lineno &&
15652 chmod +x "$as_me.lineno" ||
15653 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15654 { (exit 1); exit 1; }; }
15655
15656 # Don't try to exec as it changes $[0], causing all sort of problems
15657 # (the dirname of $[0] is not the place where we might find the
15658 # original and so on. Autoconf is especially sensitive to this).
15659 . "./$as_me.lineno"
15660 # Exit status is that of the last command.
15661 exit
15662 }
15663
15664
15665 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15666 as_dirname=dirname
15667 else
15668 as_dirname=false
15669 fi
15670
15671 ECHO_C= ECHO_N= ECHO_T=
15672 case `echo -n x` in
15673 -n*)
15674 case `echo 'x\c'` in
15675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15676 *) ECHO_C='\c';;
15677 esac;;
15678 *)
15679 ECHO_N='-n';;
15680 esac
15681
15682 if expr a : '\(a\)' >/dev/null 2>&1 &&
15683 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15684 as_expr=expr
15685 else
15686 as_expr=false
15687 fi
15688
15689 rm -f conf$$ conf$$.exe conf$$.file
15690 if test -d conf$$.dir; then
15691 rm -f conf$$.dir/conf$$.file
15692 else
15693 rm -f conf$$.dir
15694 mkdir conf$$.dir
15695 fi
15696 echo >conf$$.file
15697 if ln -s conf$$.file conf$$ 2>/dev/null; then
15698 as_ln_s='ln -s'
15699 # ... but there are two gotchas:
15700 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15701 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15702 # In both cases, we have to default to `cp -p'.
15703 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15704 as_ln_s='cp -p'
15705 elif ln conf$$.file conf$$ 2>/dev/null; then
15706 as_ln_s=ln
15707 else
15708 as_ln_s='cp -p'
15709 fi
15710 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15711 rmdir conf$$.dir 2>/dev/null
15712
15713 if mkdir -p . 2>/dev/null; then
15714 as_mkdir_p=:
15715 else
15716 test -d ./-p && rmdir ./-p
15717 as_mkdir_p=false
15718 fi
15719
15720 if test -x / >/dev/null 2>&1; then
15721 as_test_x='test -x'
15722 else
15723 if ls -dL / >/dev/null 2>&1; then
15724 as_ls_L_option=L
15725 else
15726 as_ls_L_option=
15727 fi
15728 as_test_x='
15729 eval sh -c '\''
15730 if test -d "$1"; then
15731 test -d "$1/.";
15732 else
15733 case $1 in
15734 -*)set "./$1";;
15735 esac;
15736 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15737 ???[sx]*):;;*)false;;esac;fi
15738 '\'' sh
15739 '
15740 fi
15741 as_executable_p=$as_test_x
15742
15743 # Sed expression to map a string onto a valid CPP name.
15744 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15745
15746 # Sed expression to map a string onto a valid variable name.
15747 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15748
15749
15750 exec 6>&1
15751
15752 # Save the log message, to keep $[0] and so on meaningful, and to
15753 # report actual input values of CONFIG_FILES etc. instead of their
15754 # values after options handling.
15755 ac_log="
15756 This file was extended by file $as_me 5.07, which was
15757 generated by GNU Autoconf 2.61. Invocation command line was
15758
15759 CONFIG_FILES = $CONFIG_FILES
15760 CONFIG_HEADERS = $CONFIG_HEADERS
15761 CONFIG_LINKS = $CONFIG_LINKS
15762 CONFIG_COMMANDS = $CONFIG_COMMANDS
15763 $ $0 $@
15764
15765 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15766 "
15767
15768 _ACEOF
15769
15770 cat >>$CONFIG_STATUS <<_ACEOF
15771 # Files that config.status was made for.
15772 config_files="$ac_config_files"
15773 config_headers="$ac_config_headers"
15774 config_commands="$ac_config_commands"
15775
15776 _ACEOF
15777
15778 cat >>$CONFIG_STATUS <<\_ACEOF
15779 ac_cs_usage="\
15780 \`$as_me' instantiates files from templates according to the
15781 current configuration.
15782
15783 Usage: $0 [OPTIONS] [FILE]...
15784
15785 -h, --help print this help, then exit
15786 -V, --version print version number and configuration settings, then exit
15787 -q, --quiet do not print progress messages
15788 -d, --debug don't remove temporary files
15789 --recheck update $as_me by reconfiguring in the same conditions
15790 --file=FILE[:TEMPLATE]
15791 instantiate the configuration file FILE
15792 --header=FILE[:TEMPLATE]
15793 instantiate the configuration header FILE
15794
15795 Configuration files:
15796 $config_files
15797
15798 Configuration headers:
15799 $config_headers
15800
15801 Configuration commands:
15802 $config_commands
15803
15804 Report bugs to <bug-autoconf (at] gnu.org>."
15805
15806 _ACEOF
15807 cat >>$CONFIG_STATUS <<_ACEOF
15808 ac_cs_version="\\
15809 file config.status 5.07
15810 configured by $0, generated by GNU Autoconf 2.61,
15811 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15812
15813 Copyright (C) 2006 Free Software Foundation, Inc.
15814 This config.status script is free software; the Free Software Foundation
15815 gives unlimited permission to copy, distribute and modify it."
15816
15817 ac_pwd='$ac_pwd'
15818 srcdir='$srcdir'
15819 INSTALL='$INSTALL'
15820 MKDIR_P='$MKDIR_P'
15821 _ACEOF
15822
15823 cat >>$CONFIG_STATUS <<\_ACEOF
15824 # If no file are specified by the user, then we need to provide default
15825 # value. By we need to know if files were specified by the user.
15826 ac_need_defaults=:
15827 while test $# != 0
15828 do
15829 case $1 in
15830 --*=*)
15831 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15832 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15833 ac_shift=:
15834 ;;
15835 *)
15836 ac_option=$1
15837 ac_optarg=$2
15838 ac_shift=shift
15839 ;;
15840 esac
15841
15842 case $ac_option in
15843 # Handling of the options.
15844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15845 ac_cs_recheck=: ;;
15846 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15847 echo "$ac_cs_version"; exit ;;
15848 --debug | --debu | --deb | --de | --d | -d )
15849 debug=: ;;
15850 --file | --fil | --fi | --f )
15851 $ac_shift
15852 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15853 ac_need_defaults=false;;
15854 --header | --heade | --head | --hea )
15855 $ac_shift
15856 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15857 ac_need_defaults=false;;
15858 --he | --h)
15859 # Conflict between --help and --header
15860 { echo "$as_me: error: ambiguous option: $1
15861 Try \`$0 --help' for more information." >&2
15862 { (exit 1); exit 1; }; };;
15863 --help | --hel | -h )
15864 echo "$ac_cs_usage"; exit ;;
15865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15867 ac_cs_silent=: ;;
15868
15869 # This is an error.
15870 -*) { echo "$as_me: error: unrecognized option: $1
15871 Try \`$0 --help' for more information." >&2
15872 { (exit 1); exit 1; }; } ;;
15873
15874 *) ac_config_targets="$ac_config_targets $1"
15875 ac_need_defaults=false ;;
15876
15877 esac
15878 shift
15879 done
15880
15881 ac_configure_extra_args=
15882
15883 if $ac_cs_silent; then
15884 exec 6>/dev/null
15885 ac_configure_extra_args="$ac_configure_extra_args --silent"
15886 fi
15887
15888 _ACEOF
15889 cat >>$CONFIG_STATUS <<_ACEOF
15890 if \$ac_cs_recheck; then
15891 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15892 CONFIG_SHELL=$SHELL
15893 export CONFIG_SHELL
15894 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15895 fi
15896
15897 _ACEOF
15898 cat >>$CONFIG_STATUS <<\_ACEOF
15899 exec 5>>config.log
15900 {
15901 echo
15902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15903 ## Running $as_me. ##
15904 _ASBOX
15905 echo "$ac_log"
15906 } >&5
15907
15908 _ACEOF
15909 cat >>$CONFIG_STATUS <<_ACEOF
15910 #
15911 # INIT-COMMANDS
15912 #
15913 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15914
15915
15916 # The HP-UX ksh and POSIX shell print the target directory to stdout
15917 # if CDPATH is set.
15918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15919
15920 sed_quote_subst='$sed_quote_subst'
15921 double_quote_subst='$double_quote_subst'
15922 delay_variable_subst='$delay_variable_subst'
15923 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15924 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15925 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15926 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15927 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15928 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15929 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15930 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15931 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15932 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15933 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15934 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15935 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15936 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15937 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15938 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15939 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15940 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15941 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15942 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15943 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15944 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15945 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15946 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15947 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15948 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15949 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15950 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15951 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15952 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15953 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15954 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15955 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15956 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15957 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15958 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15959 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15960 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15961 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15962 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15963 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15964 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15965 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15966 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15967 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15968 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15969 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15970 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15971 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15972 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15973 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15974 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15975 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15976 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15977 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15978 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15979 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15980 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15981 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15982 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15983 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15984 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15985 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15986 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15987 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15988 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15989 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15990 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15991 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15992 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15993 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15994 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15995 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15996 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15997 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15998 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15999 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16000 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16001 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16002 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16003 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16004 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16005 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16006 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16007 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16008 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16009 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16010 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16011 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16012 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16013 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16014 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16015 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16016 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16017 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16018 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16019 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16020 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16021 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16022 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16023 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16024 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16025 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16026 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16027 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16028 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16029 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16030 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16031 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16032 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16033 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16034 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16035 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16036 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16037 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16038 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16039 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16040 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16041
16042 LTCC='$LTCC'
16043 LTCFLAGS='$LTCFLAGS'
16044 compiler='$compiler_DEFAULT'
16045
16046 # Quote evaled strings.
16047 for var in SED \
16048 GREP \
16049 EGREP \
16050 FGREP \
16051 LD \
16052 NM \
16053 LN_S \
16054 lt_SP2NL \
16055 lt_NL2SP \
16056 reload_flag \
16057 OBJDUMP \
16058 deplibs_check_method \
16059 file_magic_cmd \
16060 AR \
16061 AR_FLAGS \
16062 STRIP \
16063 RANLIB \
16064 CC \
16065 CFLAGS \
16066 compiler \
16067 lt_cv_sys_global_symbol_pipe \
16068 lt_cv_sys_global_symbol_to_cdecl \
16069 lt_cv_sys_global_symbol_to_c_name_address \
16070 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16071 SHELL \
16072 ECHO \
16073 lt_prog_compiler_no_builtin_flag \
16074 lt_prog_compiler_wl \
16075 lt_prog_compiler_pic \
16076 lt_prog_compiler_static \
16077 lt_cv_prog_compiler_c_o \
16078 need_locks \
16079 DSYMUTIL \
16080 NMEDIT \
16081 LIPO \
16082 OTOOL \
16083 OTOOL64 \
16084 shrext_cmds \
16085 export_dynamic_flag_spec \
16086 whole_archive_flag_spec \
16087 compiler_needs_object \
16088 with_gnu_ld \
16089 allow_undefined_flag \
16090 no_undefined_flag \
16091 hardcode_libdir_flag_spec \
16092 hardcode_libdir_flag_spec_ld \
16093 hardcode_libdir_separator \
16094 fix_srcfile_path \
16095 exclude_expsyms \
16096 include_expsyms \
16097 file_list_spec \
16098 variables_saved_for_relink \
16099 libname_spec \
16100 library_names_spec \
16101 soname_spec \
16102 finish_eval \
16103 old_striplib \
16104 striplib; do
16105 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16106 *[\\\\\\\`\\"\\\$]*)
16107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16108 ;;
16109 *)
16110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16111 ;;
16112 esac
16113 done
16114
16115 # Double-quote double-evaled strings.
16116 for var in reload_cmds \
16117 old_postinstall_cmds \
16118 old_postuninstall_cmds \
16119 old_archive_cmds \
16120 extract_expsyms_cmds \
16121 old_archive_from_new_cmds \
16122 old_archive_from_expsyms_cmds \
16123 archive_cmds \
16124 archive_expsym_cmds \
16125 module_cmds \
16126 module_expsym_cmds \
16127 export_symbols_cmds \
16128 prelink_cmds \
16129 postinstall_cmds \
16130 postuninstall_cmds \
16131 finish_cmds \
16132 sys_lib_search_path_spec \
16133 sys_lib_dlsearch_path_spec; do
16134 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16135 *[\\\\\\\`\\"\\\$]*)
16136 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16137 ;;
16138 *)
16139 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16140 ;;
16141 esac
16142 done
16143
16144 # Fix-up fallback echo if it was mangled by the above quoting rules.
16145 case \$lt_ECHO in
16146 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16147 ;;
16148 esac
16149
16150 ac_aux_dir='$ac_aux_dir'
16151 xsi_shell='$xsi_shell'
16152 lt_shell_append='$lt_shell_append'
16153
16154 # See if we are running on zsh, and set the options which allow our
16155 # commands through without removal of \ escapes INIT.
16156 if test -n "\${ZSH_VERSION+set}" ; then
16157 setopt NO_GLOB_SUBST
16158 fi
16159
16160
16161 PACKAGE='$PACKAGE'
16162 VERSION='$VERSION'
16163 TIMESTAMP='$TIMESTAMP'
16164 RM='$RM'
16165 ofile='$ofile'
16166
16167
16168
16169
16170 _ACEOF
16171
16172 cat >>$CONFIG_STATUS <<\_ACEOF
16173
16174 # Handling of arguments.
16175 for ac_config_target in $ac_config_targets
16176 do
16177 case $ac_config_target in
16178 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16179 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16180 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16181 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16182 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16183 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16184 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16185 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16186 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16187
16188 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16189 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16190 { (exit 1); exit 1; }; };;
16191 esac
16192 done
16193
16194
16195 # If the user did not use the arguments to specify the items to instantiate,
16196 # then the envvar interface is used. Set only those that are not.
16197 # We use the long form for the default assignment because of an extremely
16198 # bizarre bug on SunOS 4.1.3.
16199 if $ac_need_defaults; then
16200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16201 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16202 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16203 fi
16204
16205 # Have a temporary directory for convenience. Make it in the build tree
16206 # simply because there is no reason against having it here, and in addition,
16207 # creating and moving files from /tmp can sometimes cause problems.
16208 # Hook for its removal unless debugging.
16209 # Note that there is a small window in which the directory will not be cleaned:
16210 # after its creation but before its name has been assigned to `$tmp'.
16211 $debug ||
16212 {
16213 tmp=
16214 trap 'exit_status=$?
16215 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16216 ' 0
16217 trap '{ (exit 1); exit 1; }' 1 2 13 15
16218 }
16219 # Create a (secure) tmp directory for tmp files.
16220
16221 {
16222 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16223 test -n "$tmp" && test -d "$tmp"
16224 } ||
16225 {
16226 tmp=./conf$$-$RANDOM
16227 (umask 077 && mkdir "$tmp")
16228 } ||
16229 {
16230 echo "$me: cannot create a temporary directory in ." >&2
16231 { (exit 1); exit 1; }
16232 }
16233
16234 #
16235 # Set up the sed scripts for CONFIG_FILES section.
16236 #
16237
16238 # No need to generate the scripts if there are no CONFIG_FILES.
16239 # This happens for instance when ./config.status config.h
16240 if test -n "$CONFIG_FILES"; then
16241
16242 _ACEOF
16243
16244
16245
16246 ac_delim='%!_!# '
16247 for ac_last_try in false false false false false :; do
16248 cat >conf$$subs.sed <<_ACEOF
16249 SHELL!$SHELL$ac_delim
16250 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16251 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16252 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16253 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16254 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16255 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16256 exec_prefix!$exec_prefix$ac_delim
16257 prefix!$prefix$ac_delim
16258 program_transform_name!$program_transform_name$ac_delim
16259 bindir!$bindir$ac_delim
16260 sbindir!$sbindir$ac_delim
16261 libexecdir!$libexecdir$ac_delim
16262 datarootdir!$datarootdir$ac_delim
16263 datadir!$datadir$ac_delim
16264 sysconfdir!$sysconfdir$ac_delim
16265 sharedstatedir!$sharedstatedir$ac_delim
16266 localstatedir!$localstatedir$ac_delim
16267 includedir!$includedir$ac_delim
16268 oldincludedir!$oldincludedir$ac_delim
16269 docdir!$docdir$ac_delim
16270 infodir!$infodir$ac_delim
16271 htmldir!$htmldir$ac_delim
16272 dvidir!$dvidir$ac_delim
16273 pdfdir!$pdfdir$ac_delim
16274 psdir!$psdir$ac_delim
16275 libdir!$libdir$ac_delim
16276 localedir!$localedir$ac_delim
16277 mandir!$mandir$ac_delim
16278 DEFS!$DEFS$ac_delim
16279 ECHO_C!$ECHO_C$ac_delim
16280 ECHO_N!$ECHO_N$ac_delim
16281 ECHO_T!$ECHO_T$ac_delim
16282 LIBS!$LIBS$ac_delim
16283 build_alias!$build_alias$ac_delim
16284 host_alias!$host_alias$ac_delim
16285 target_alias!$target_alias$ac_delim
16286 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16287 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16288 INSTALL_DATA!$INSTALL_DATA$ac_delim
16289 am__isrc!$am__isrc$ac_delim
16290 CYGPATH_W!$CYGPATH_W$ac_delim
16291 PACKAGE!$PACKAGE$ac_delim
16292 VERSION!$VERSION$ac_delim
16293 ACLOCAL!$ACLOCAL$ac_delim
16294 AUTOCONF!$AUTOCONF$ac_delim
16295 AUTOMAKE!$AUTOMAKE$ac_delim
16296 AUTOHEADER!$AUTOHEADER$ac_delim
16297 MAKEINFO!$MAKEINFO$ac_delim
16298 install_sh!$install_sh$ac_delim
16299 STRIP!$STRIP$ac_delim
16300 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16301 mkdir_p!$mkdir_p$ac_delim
16302 AWK!$AWK$ac_delim
16303 SET_MAKE!$SET_MAKE$ac_delim
16304 am__leading_dot!$am__leading_dot$ac_delim
16305 AMTAR!$AMTAR$ac_delim
16306 am__tar!$am__tar$ac_delim
16307 am__untar!$am__untar$ac_delim
16308 build!$build$ac_delim
16309 build_cpu!$build_cpu$ac_delim
16310 build_vendor!$build_vendor$ac_delim
16311 build_os!$build_os$ac_delim
16312 host!$host$ac_delim
16313 host_cpu!$host_cpu$ac_delim
16314 host_vendor!$host_vendor$ac_delim
16315 host_os!$host_os$ac_delim
16316 MINGW!$MINGW$ac_delim
16317 MINGW_TRUE!$MINGW_TRUE$ac_delim
16318 MINGW_FALSE!$MINGW_FALSE$ac_delim
16319 pkgdatadir!$pkgdatadir$ac_delim
16320 fsect!$fsect$ac_delim
16321 FSECT5_TRUE!$FSECT5_TRUE$ac_delim
16322 FSECT5_FALSE!$FSECT5_FALSE$ac_delim
16323 WARNINGS!$WARNINGS$ac_delim
16324 CC!$CC$ac_delim
16325 CFLAGS!$CFLAGS$ac_delim
16326 LDFLAGS!$LDFLAGS$ac_delim
16327 CPPFLAGS!$CPPFLAGS$ac_delim
16328 ac_ct_CC!$ac_ct_CC$ac_delim
16329 EXEEXT!$EXEEXT$ac_delim
16330 OBJEXT!$OBJEXT$ac_delim
16331 DEPDIR!$DEPDIR$ac_delim
16332 am__include!$am__include$ac_delim
16333 am__quote!$am__quote$ac_delim
16334 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16335 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16336 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16337 CCDEPMODE!$CCDEPMODE$ac_delim
16338 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16339 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16340 LN_S!$LN_S$ac_delim
16341 LIBTOOL!$LIBTOOL$ac_delim
16342 SED!$SED$ac_delim
16343 GREP!$GREP$ac_delim
16344 EGREP!$EGREP$ac_delim
16345 FGREP!$FGREP$ac_delim
16346 _ACEOF
16347
16348 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16349 break
16350 elif $ac_last_try; then
16351 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16352 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16353 { (exit 1); exit 1; }; }
16354 else
16355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16356 fi
16357 done
16358
16359 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16360 if test -n "$ac_eof"; then
16361 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16362 ac_eof=`expr $ac_eof + 1`
16363 fi
16364
16365 cat >>$CONFIG_STATUS <<_ACEOF
16366 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16368 _ACEOF
16369 sed '
16370 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16371 s/^/s,@/; s/!/@,|#_!!_#|/
16372 :n
16373 t n
16374 s/'"$ac_delim"'$/,g/; t
16375 s/$/\\/; p
16376 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16377 ' >>$CONFIG_STATUS <conf$$subs.sed
16378 rm -f conf$$subs.sed
16379 cat >>$CONFIG_STATUS <<_ACEOF
16380 CEOF$ac_eof
16381 _ACEOF
16382
16383
16384 ac_delim='%!_!# '
16385 for ac_last_try in false false false false false :; do
16386 cat >conf$$subs.sed <<_ACEOF
16387 LD!$LD$ac_delim
16388 DUMPBIN!$DUMPBIN$ac_delim
16389 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
16390 NM!$NM$ac_delim
16391 OBJDUMP!$OBJDUMP$ac_delim
16392 AR!$AR$ac_delim
16393 RANLIB!$RANLIB$ac_delim
16394 lt_ECHO!$lt_ECHO$ac_delim
16395 DSYMUTIL!$DSYMUTIL$ac_delim
16396 NMEDIT!$NMEDIT$ac_delim
16397 LIPO!$LIPO$ac_delim
16398 OTOOL!$OTOOL$ac_delim
16399 OTOOL64!$OTOOL64$ac_delim
16400 CPP!$CPP$ac_delim
16401 LIBOBJS!$LIBOBJS$ac_delim
16402 IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
16403 IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
16404 LTLIBOBJS!$LTLIBOBJS$ac_delim
16405 _ACEOF
16406
16407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
16408 break
16409 elif $ac_last_try; then
16410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16412 { (exit 1); exit 1; }; }
16413 else
16414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16415 fi
16416 done
16417
16418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16419 if test -n "$ac_eof"; then
16420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16421 ac_eof=`expr $ac_eof + 1`
16422 fi
16423
16424 cat >>$CONFIG_STATUS <<_ACEOF
16425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16427 _ACEOF
16428 sed '
16429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16430 s/^/s,@/; s/!/@,|#_!!_#|/
16431 :n
16432 t n
16433 s/'"$ac_delim"'$/,g/; t
16434 s/$/\\/; p
16435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16436 ' >>$CONFIG_STATUS <conf$$subs.sed
16437 rm -f conf$$subs.sed
16438 cat >>$CONFIG_STATUS <<_ACEOF
16439 :end
16440 s/|#_!!_#|//g
16441 CEOF$ac_eof
16442 _ACEOF
16443
16444
16445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16447 # trailing colons and then remove the whole line if VPATH becomes empty
16448 # (actually we leave an empty line to preserve line numbers).
16449 if test "x$srcdir" = x.; then
16450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16451 s/:*\$(srcdir):*/:/
16452 s/:*\${srcdir}:*/:/
16453 s/:*@srcdir@:*/:/
16454 s/^\([^=]*=[ ]*\):*/\1/
16455 s/:*$//
16456 s/^[^=]*=[ ]*$//
16457 }'
16458 fi
16459
16460 cat >>$CONFIG_STATUS <<\_ACEOF
16461 fi # test -n "$CONFIG_FILES"
16462
16463
16464 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16465 do
16466 case $ac_tag in
16467 :[FHLC]) ac_mode=$ac_tag; continue;;
16468 esac
16469 case $ac_mode$ac_tag in
16470 :[FHL]*:*);;
16471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16473 { (exit 1); exit 1; }; };;
16474 :[FH]-) ac_tag=-:-;;
16475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16476 esac
16477 ac_save_IFS=$IFS
16478 IFS=:
16479 set x $ac_tag
16480 IFS=$ac_save_IFS
16481 shift
16482 ac_file=$1
16483 shift
16484
16485 case $ac_mode in
16486 :L) ac_source=$1;;
16487 :[FH])
16488 ac_file_inputs=
16489 for ac_f
16490 do
16491 case $ac_f in
16492 -) ac_f="$tmp/stdin";;
16493 *) # Look for the file first in the build tree, then in the source tree
16494 # (if the path is not absolute). The absolute path cannot be DOS-style,
16495 # because $ac_f cannot contain `:'.
16496 test -f "$ac_f" ||
16497 case $ac_f in
16498 [\\/$]*) false;;
16499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16500 esac ||
16501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16503 { (exit 1); exit 1; }; };;
16504 esac
16505 ac_file_inputs="$ac_file_inputs $ac_f"
16506 done
16507
16508 # Let's still pretend it is `configure' which instantiates (i.e., don't
16509 # use $as_me), people would be surprised to read:
16510 # /* config.h. Generated by config.status. */
16511 configure_input="Generated from "`IFS=:
16512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16513 if test x"$ac_file" != x-; then
16514 configure_input="$ac_file. $configure_input"
16515 { echo "$as_me:$LINENO: creating $ac_file" >&5
16516 echo "$as_me: creating $ac_file" >&6;}
16517 fi
16518
16519 case $ac_tag in
16520 *:-:* | *:-) cat >"$tmp/stdin";;
16521 esac
16522 ;;
16523 esac
16524
16525 ac_dir=`$as_dirname -- "$ac_file" ||
16526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16527 X"$ac_file" : 'X\(//\)[^/]' \| \
16528 X"$ac_file" : 'X\(//\)$' \| \
16529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16530 echo X"$ac_file" |
16531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16532 s//\1/
16533 q
16534 }
16535 /^X\(\/\/\)[^/].*/{
16536 s//\1/
16537 q
16538 }
16539 /^X\(\/\/\)$/{
16540 s//\1/
16541 q
16542 }
16543 /^X\(\/\).*/{
16544 s//\1/
16545 q
16546 }
16547 s/.*/./; q'`
16548 { as_dir="$ac_dir"
16549 case $as_dir in #(
16550 -*) as_dir=./$as_dir;;
16551 esac
16552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16553 as_dirs=
16554 while :; do
16555 case $as_dir in #(
16556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16557 *) as_qdir=$as_dir;;
16558 esac
16559 as_dirs="'$as_qdir' $as_dirs"
16560 as_dir=`$as_dirname -- "$as_dir" ||
16561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16562 X"$as_dir" : 'X\(//\)[^/]' \| \
16563 X"$as_dir" : 'X\(//\)$' \| \
16564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16565 echo X"$as_dir" |
16566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16567 s//\1/
16568 q
16569 }
16570 /^X\(\/\/\)[^/].*/{
16571 s//\1/
16572 q
16573 }
16574 /^X\(\/\/\)$/{
16575 s//\1/
16576 q
16577 }
16578 /^X\(\/\).*/{
16579 s//\1/
16580 q
16581 }
16582 s/.*/./; q'`
16583 test -d "$as_dir" && break
16584 done
16585 test -z "$as_dirs" || eval "mkdir $as_dirs"
16586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16588 { (exit 1); exit 1; }; }; }
16589 ac_builddir=.
16590
16591 case "$ac_dir" in
16592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16593 *)
16594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16595 # A ".." for each directory in $ac_dir_suffix.
16596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16597 case $ac_top_builddir_sub in
16598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16600 esac ;;
16601 esac
16602 ac_abs_top_builddir=$ac_pwd
16603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16604 # for backward compatibility:
16605 ac_top_builddir=$ac_top_build_prefix
16606
16607 case $srcdir in
16608 .) # We are building in place.
16609 ac_srcdir=.
16610 ac_top_srcdir=$ac_top_builddir_sub
16611 ac_abs_top_srcdir=$ac_pwd ;;
16612 [\\/]* | ?:[\\/]* ) # Absolute name.
16613 ac_srcdir=$srcdir$ac_dir_suffix;
16614 ac_top_srcdir=$srcdir
16615 ac_abs_top_srcdir=$srcdir ;;
16616 *) # Relative name.
16617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16618 ac_top_srcdir=$ac_top_build_prefix$srcdir
16619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16620 esac
16621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16622
16623
16624 case $ac_mode in
16625 :F)
16626 #
16627 # CONFIG_FILE
16628 #
16629
16630 case $INSTALL in
16631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16633 esac
16634 ac_MKDIR_P=$MKDIR_P
16635 case $MKDIR_P in
16636 [\\/$]* | ?:[\\/]* ) ;;
16637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16638 esac
16639 _ACEOF
16640
16641 cat >>$CONFIG_STATUS <<\_ACEOF
16642 # If the template does not know about datarootdir, expand it.
16643 # FIXME: This hack should be removed a few years after 2.60.
16644 ac_datarootdir_hack=; ac_datarootdir_seen=
16645
16646 case `sed -n '/datarootdir/ {
16647 p
16648 q
16649 }
16650 /@datadir@/p
16651 /@docdir@/p
16652 /@infodir@/p
16653 /@localedir@/p
16654 /@mandir@/p
16655 ' $ac_file_inputs` in
16656 *datarootdir*) ac_datarootdir_seen=yes;;
16657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16658 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16659 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16660 _ACEOF
16661 cat >>$CONFIG_STATUS <<_ACEOF
16662 ac_datarootdir_hack='
16663 s&@datadir@&$datadir&g
16664 s&@docdir@&$docdir&g
16665 s&@infodir@&$infodir&g
16666 s&@localedir@&$localedir&g
16667 s&@mandir@&$mandir&g
16668 s&\\\${datarootdir}&$datarootdir&g' ;;
16669 esac
16670 _ACEOF
16671
16672 # Neutralize VPATH when `$srcdir' = `.'.
16673 # Shell code in configure.ac might set extrasub.
16674 # FIXME: do we really want to maintain this feature?
16675 cat >>$CONFIG_STATUS <<_ACEOF
16676 sed "$ac_vpsub
16677 $extrasub
16678 _ACEOF
16679 cat >>$CONFIG_STATUS <<\_ACEOF
16680 :t
16681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16682 s&@configure_input@&$configure_input&;t t
16683 s&@top_builddir@&$ac_top_builddir_sub&;t t
16684 s&@srcdir@&$ac_srcdir&;t t
16685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16686 s&@top_srcdir@&$ac_top_srcdir&;t t
16687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16688 s&@builddir@&$ac_builddir&;t t
16689 s&@abs_builddir@&$ac_abs_builddir&;t t
16690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16691 s&@INSTALL@&$ac_INSTALL&;t t
16692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16693 $ac_datarootdir_hack
16694 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16695
16696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16697 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16699 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16700 which seems to be undefined. Please make sure it is defined." >&5
16701 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16702 which seems to be undefined. Please make sure it is defined." >&2;}
16703
16704 rm -f "$tmp/stdin"
16705 case $ac_file in
16706 -) cat "$tmp/out"; rm -f "$tmp/out";;
16707 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16708 esac
16709 ;;
16710 :H)
16711 #
16712 # CONFIG_HEADER
16713 #
16714 _ACEOF
16715
16716 # Transform confdefs.h into a sed script `conftest.defines', that
16717 # substitutes the proper values into config.h.in to produce config.h.
16718 rm -f conftest.defines conftest.tail
16719 # First, append a space to every undef/define line, to ease matching.
16720 echo 's/$/ /' >conftest.defines
16721 # Then, protect against being on the right side of a sed subst, or in
16722 # an unquoted here document, in config.status. If some macros were
16723 # called several times there might be several #defines for the same
16724 # symbol, which is useless. But do not sort them, since the last
16725 # AC_DEFINE must be honored.
16726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16727 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16728 # NAME is the cpp macro being defined, VALUE is the value it is being given.
16729 # PARAMS is the parameter list in the macro definition--in most cases, it's
16730 # just an empty string.
16731 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16732 ac_dB='\\)[ (].*,\\1define\\2'
16733 ac_dC=' '
16734 ac_dD=' ,'
16735
16736 uniq confdefs.h |
16737 sed -n '
16738 t rset
16739 :rset
16740 s/^[ ]*#[ ]*define[ ][ ]*//
16741 t ok
16742 d
16743 :ok
16744 s/[\\&,]/\\&/g
16745 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16746 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16747 ' >>conftest.defines
16748
16749 # Remove the space that was appended to ease matching.
16750 # Then replace #undef with comments. This is necessary, for
16751 # example, in the case of _POSIX_SOURCE, which is predefined and required
16752 # on some systems where configure will not decide to define it.
16753 # (The regexp can be short, since the line contains either #define or #undef.)
16754 echo 's/ $//
16755 s,^[ #]*u.*,/* & */,' >>conftest.defines
16756
16757 # Break up conftest.defines:
16758 ac_max_sed_lines=50
16759
16760 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16761 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16762 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16763 # et cetera.
16764 ac_in='$ac_file_inputs'
16765 ac_out='"$tmp/out1"'
16766 ac_nxt='"$tmp/out2"'
16767
16768 while :
16769 do
16770 # Write a here document:
16771 cat >>$CONFIG_STATUS <<_ACEOF
16772 # First, check the format of the line:
16773 cat >"\$tmp/defines.sed" <<\\CEOF
16774 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16775 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16776 b
16777 :def
16778 _ACEOF
16779 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16780 echo 'CEOF
16781 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16782 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16783 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16784 grep . conftest.tail >/dev/null || break
16785 rm -f conftest.defines
16786 mv conftest.tail conftest.defines
16787 done
16788 rm -f conftest.defines conftest.tail
16789
16790 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16791 cat >>$CONFIG_STATUS <<\_ACEOF
16792 if test x"$ac_file" != x-; then
16793 echo "/* $configure_input */" >"$tmp/config.h"
16794 cat "$ac_result" >>"$tmp/config.h"
16795 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16796 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16797 echo "$as_me: $ac_file is unchanged" >&6;}
16798 else
16799 rm -f $ac_file
16800 mv "$tmp/config.h" $ac_file
16801 fi
16802 else
16803 echo "/* $configure_input */"
16804 cat "$ac_result"
16805 fi
16806 rm -f "$tmp/out12"
16807 # Compute $ac_file's index in $config_headers.
16808 _am_stamp_count=1
16809 for _am_header in $config_headers :; do
16810 case $_am_header in
16811 $ac_file | $ac_file:* )
16812 break ;;
16813 * )
16814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16815 esac
16816 done
16817 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16818 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16819 X$ac_file : 'X\(//\)[^/]' \| \
16820 X$ac_file : 'X\(//\)$' \| \
16821 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16822 echo X$ac_file |
16823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16824 s//\1/
16825 q
16826 }
16827 /^X\(\/\/\)[^/].*/{
16828 s//\1/
16829 q
16830 }
16831 /^X\(\/\/\)$/{
16832 s//\1/
16833 q
16834 }
16835 /^X\(\/\).*/{
16836 s//\1/
16837 q
16838 }
16839 s/.*/./; q'`/stamp-h$_am_stamp_count
16840 ;;
16841
16842 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16843 echo "$as_me: executing $ac_file commands" >&6;}
16844 ;;
16845 esac
16846
16847
16848 case $ac_file$ac_mode in
16849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16850 # Strip MF so we end up with the name of the file.
16851 mf=`echo "$mf" | sed -e 's/:.*$//'`
16852 # Check whether this is an Automake generated Makefile or not.
16853 # We used to match only the files named `Makefile.in', but
16854 # some people rename them; so instead we look at the file content.
16855 # Grep'ing the first line is not enough: some people post-process
16856 # each Makefile.in and add a new line on top of each file to say so.
16857 # Grep'ing the whole file is not good either: AIX grep has a line
16858 # limit of 2048, but all sed's we know have understand at least 4000.
16859 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
16860 dirpart=`$as_dirname -- "$mf" ||
16861 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16862 X"$mf" : 'X\(//\)[^/]' \| \
16863 X"$mf" : 'X\(//\)$' \| \
16864 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16865 echo X"$mf" |
16866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16867 s//\1/
16868 q
16869 }
16870 /^X\(\/\/\)[^/].*/{
16871 s//\1/
16872 q
16873 }
16874 /^X\(\/\/\)$/{
16875 s//\1/
16876 q
16877 }
16878 /^X\(\/\).*/{
16879 s//\1/
16880 q
16881 }
16882 s/.*/./; q'`
16883 else
16884 continue
16885 fi
16886 # Extract the definition of DEPDIR, am__include, and am__quote
16887 # from the Makefile without running `make'.
16888 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16889 test -z "$DEPDIR" && continue
16890 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16891 test -z "am__include" && continue
16892 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16893 # When using ansi2knr, U may be empty or an underscore; expand it
16894 U=`sed -n 's/^U = //p' < "$mf"`
16895 # Find all dependency output files, they are included files with
16896 # $(DEPDIR) in their names. We invoke sed twice because it is the
16897 # simplest approach to changing $(DEPDIR) to its actual value in the
16898 # expansion.
16899 for file in `sed -n "
16900 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16901 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16902 # Make sure the directory exists.
16903 test -f "$dirpart/$file" && continue
16904 fdir=`$as_dirname -- "$file" ||
16905 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906 X"$file" : 'X\(//\)[^/]' \| \
16907 X"$file" : 'X\(//\)$' \| \
16908 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16909 echo X"$file" |
16910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16911 s//\1/
16912 q
16913 }
16914 /^X\(\/\/\)[^/].*/{
16915 s//\1/
16916 q
16917 }
16918 /^X\(\/\/\)$/{
16919 s//\1/
16920 q
16921 }
16922 /^X\(\/\).*/{
16923 s//\1/
16924 q
16925 }
16926 s/.*/./; q'`
16927 { as_dir=$dirpart/$fdir
16928 case $as_dir in #(
16929 -*) as_dir=./$as_dir;;
16930 esac
16931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16932 as_dirs=
16933 while :; do
16934 case $as_dir in #(
16935 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16936 *) as_qdir=$as_dir;;
16937 esac
16938 as_dirs="'$as_qdir' $as_dirs"
16939 as_dir=`$as_dirname -- "$as_dir" ||
16940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16941 X"$as_dir" : 'X\(//\)[^/]' \| \
16942 X"$as_dir" : 'X\(//\)$' \| \
16943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16944 echo X"$as_dir" |
16945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16946 s//\1/
16947 q
16948 }
16949 /^X\(\/\/\)[^/].*/{
16950 s//\1/
16951 q
16952 }
16953 /^X\(\/\/\)$/{
16954 s//\1/
16955 q
16956 }
16957 /^X\(\/\).*/{
16958 s//\1/
16959 q
16960 }
16961 s/.*/./; q'`
16962 test -d "$as_dir" && break
16963 done
16964 test -z "$as_dirs" || eval "mkdir $as_dirs"
16965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16967 { (exit 1); exit 1; }; }; }
16968 # echo "creating $dirpart/$file"
16969 echo '# dummy' > "$dirpart/$file"
16970 done
16971 done
16972 ;;
16973 "libtool":C)
16974
16975 # See if we are running on zsh, and set the options which allow our
16976 # commands through without removal of \ escapes.
16977 if test -n "${ZSH_VERSION+set}" ; then
16978 setopt NO_GLOB_SUBST
16979 fi
16980
16981 cfgfile="${ofile}T"
16982 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16983 $RM "$cfgfile"
16984
16985 cat <<_LT_EOF >> "$cfgfile"
16986 #! $SHELL
16987
16988 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16989 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16991 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16992 #
16993 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16994 # 2006, 2007, 2008 Free Software Foundation, Inc.
16995 # Written by Gordon Matzigkeit, 1996
16996 #
16997 # This file is part of GNU Libtool.
16998 #
16999 # GNU Libtool is free software; you can redistribute it and/or
17000 # modify it under the terms of the GNU General Public License as
17001 # published by the Free Software Foundation; either version 2 of
17002 # the License, or (at your option) any later version.
17003 #
17004 # As a special exception to the GNU General Public License,
17005 # if you distribute this file as part of a program or library that
17006 # is built using GNU Libtool, you may include this file under the
17007 # same distribution terms that you use for the rest of that program.
17008 #
17009 # GNU Libtool is distributed in the hope that it will be useful,
17010 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17012 # GNU General Public License for more details.
17013 #
17014 # You should have received a copy of the GNU General Public License
17015 # along with GNU Libtool; see the file COPYING. If not, a copy
17016 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17017 # obtained by writing to the Free Software Foundation, Inc.,
17018 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17019
17020
17021 # The names of the tagged configurations supported by this script.
17022 available_tags=""
17023
17024 # ### BEGIN LIBTOOL CONFIG
17025
17026 # Which release of libtool.m4 was used?
17027 macro_version=$macro_version
17028 macro_revision=$macro_revision
17029
17030 # Whether or not to build shared libraries.
17031 build_libtool_libs=$enable_shared
17032
17033 # Whether or not to build static libraries.
17034 build_old_libs=$enable_static
17035
17036 # What type of objects to build.
17037 pic_mode=$pic_mode
17038
17039 # Whether or not to optimize for fast installation.
17040 fast_install=$enable_fast_install
17041
17042 # The host system.
17043 host_alias=$host_alias
17044 host=$host
17045 host_os=$host_os
17046
17047 # The build system.
17048 build_alias=$build_alias
17049 build=$build
17050 build_os=$build_os
17051
17052 # A sed program that does not truncate output.
17053 SED=$lt_SED
17054
17055 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17056 Xsed="\$SED -e 1s/^X//"
17057
17058 # A grep program that handles long lines.
17059 GREP=$lt_GREP
17060
17061 # An ERE matcher.
17062 EGREP=$lt_EGREP
17063
17064 # A literal string matcher.
17065 FGREP=$lt_FGREP
17066
17067 # A BSD- or MS-compatible name lister.
17068 NM=$lt_NM
17069
17070 # Whether we need soft or hard links.
17071 LN_S=$lt_LN_S
17072
17073 # What is the maximum length of a command?
17074 max_cmd_len=$max_cmd_len
17075
17076 # Object file suffix (normally "o").
17077 objext=$ac_objext
17078
17079 # Executable file suffix (normally "").
17080 exeext=$exeext
17081
17082 # whether the shell understands "unset".
17083 lt_unset=$lt_unset
17084
17085 # turn spaces into newlines.
17086 SP2NL=$lt_lt_SP2NL
17087
17088 # turn newlines into spaces.
17089 NL2SP=$lt_lt_NL2SP
17090
17091 # How to create reloadable object files.
17092 reload_flag=$lt_reload_flag
17093 reload_cmds=$lt_reload_cmds
17094
17095 # An object symbol dumper.
17096 OBJDUMP=$lt_OBJDUMP
17097
17098 # Method to check whether dependent libraries are shared objects.
17099 deplibs_check_method=$lt_deplibs_check_method
17100
17101 # Command to use when deplibs_check_method == "file_magic".
17102 file_magic_cmd=$lt_file_magic_cmd
17103
17104 # The archiver.
17105 AR=$lt_AR
17106 AR_FLAGS=$lt_AR_FLAGS
17107
17108 # A symbol stripping program.
17109 STRIP=$lt_STRIP
17110
17111 # Commands used to install an old-style archive.
17112 RANLIB=$lt_RANLIB
17113 old_postinstall_cmds=$lt_old_postinstall_cmds
17114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17115
17116 # A C compiler.
17117 LTCC=$lt_CC
17118
17119 # LTCC compiler flags.
17120 LTCFLAGS=$lt_CFLAGS
17121
17122 # Take the output of nm and produce a listing of raw symbols and C names.
17123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17124
17125 # Transform the output of nm in a proper C declaration.
17126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17127
17128 # Transform the output of nm in a C name address pair.
17129 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17130
17131 # Transform the output of nm in a C name address pair when lib prefix is needed.
17132 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17133
17134 # The name of the directory that contains temporary libtool files.
17135 objdir=$objdir
17136
17137 # Shell to use when invoking shell scripts.
17138 SHELL=$lt_SHELL
17139
17140 # An echo program that does not interpret backslashes.
17141 ECHO=$lt_ECHO
17142
17143 # Used to examine libraries when file_magic_cmd begins with "file".
17144 MAGIC_CMD=$MAGIC_CMD
17145
17146 # Must we lock files when doing compilation?
17147 need_locks=$lt_need_locks
17148
17149 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17150 DSYMUTIL=$lt_DSYMUTIL
17151
17152 # Tool to change global to local symbols on Mac OS X.
17153 NMEDIT=$lt_NMEDIT
17154
17155 # Tool to manipulate fat objects and archives on Mac OS X.
17156 LIPO=$lt_LIPO
17157
17158 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17159 OTOOL=$lt_OTOOL
17160
17161 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17162 OTOOL64=$lt_OTOOL64
17163
17164 # Old archive suffix (normally "a").
17165 libext=$libext
17166
17167 # Shared library suffix (normally ".so").
17168 shrext_cmds=$lt_shrext_cmds
17169
17170 # The commands to extract the exported symbol list from a shared archive.
17171 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17172
17173 # Variables whose values should be saved in libtool wrapper scripts and
17174 # restored at link time.
17175 variables_saved_for_relink=$lt_variables_saved_for_relink
17176
17177 # Do we need the "lib" prefix for modules?
17178 need_lib_prefix=$need_lib_prefix
17179
17180 # Do we need a version for libraries?
17181 need_version=$need_version
17182
17183 # Library versioning type.
17184 version_type=$version_type
17185
17186 # Shared library runtime path variable.
17187 runpath_var=$runpath_var
17188
17189 # Shared library path variable.
17190 shlibpath_var=$shlibpath_var
17191
17192 # Is shlibpath searched before the hard-coded library search path?
17193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17194
17195 # Format of library name prefix.
17196 libname_spec=$lt_libname_spec
17197
17198 # List of archive names. First name is the real one, the rest are links.
17199 # The last name is the one that the linker finds with -lNAME
17200 library_names_spec=$lt_library_names_spec
17201
17202 # The coded name of the library, if different from the real name.
17203 soname_spec=$lt_soname_spec
17204
17205 # Command to use after installation of a shared archive.
17206 postinstall_cmds=$lt_postinstall_cmds
17207
17208 # Command to use after uninstallation of a shared archive.
17209 postuninstall_cmds=$lt_postuninstall_cmds
17210
17211 # Commands used to finish a libtool library installation in a directory.
17212 finish_cmds=$lt_finish_cmds
17213
17214 # As "finish_cmds", except a single script fragment to be evaled but
17215 # not shown.
17216 finish_eval=$lt_finish_eval
17217
17218 # Whether we should hardcode library paths into libraries.
17219 hardcode_into_libs=$hardcode_into_libs
17220
17221 # Compile-time system search path for libraries.
17222 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17223
17224 # Run-time system search path for libraries.
17225 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17226
17227 # Whether dlopen is supported.
17228 dlopen_support=$enable_dlopen
17229
17230 # Whether dlopen of programs is supported.
17231 dlopen_self=$enable_dlopen_self
17232
17233 # Whether dlopen of statically linked programs is supported.
17234 dlopen_self_static=$enable_dlopen_self_static
17235
17236 # Commands to strip libraries.
17237 old_striplib=$lt_old_striplib
17238 striplib=$lt_striplib
17239
17240
17241 # The linker used to build libraries.
17242 LD=$lt_LD
17243
17244 # Commands used to build an old-style archive.
17245 old_archive_cmds=$lt_old_archive_cmds
17246
17247 # A language specific compiler.
17248 CC=$lt_compiler
17249
17250 # Is the compiler the GNU compiler?
17251 with_gcc=$GCC
17252
17253 # Compiler flag to turn off builtin functions.
17254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17255
17256 # How to pass a linker flag through the compiler.
17257 wl=$lt_lt_prog_compiler_wl
17258
17259 # Additional compiler flags for building library objects.
17260 pic_flag=$lt_lt_prog_compiler_pic
17261
17262 # Compiler flag to prevent dynamic linking.
17263 link_static_flag=$lt_lt_prog_compiler_static
17264
17265 # Does compiler simultaneously support -c and -o options?
17266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17267
17268 # Whether or not to add -lc for building shared libraries.
17269 build_libtool_need_lc=$archive_cmds_need_lc
17270
17271 # Whether or not to disallow shared libs when runtime libs are static.
17272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17273
17274 # Compiler flag to allow reflexive dlopens.
17275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17276
17277 # Compiler flag to generate shared objects directly from archives.
17278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17279
17280 # Whether the compiler copes with passing no objects directly.
17281 compiler_needs_object=$lt_compiler_needs_object
17282
17283 # Create an old-style archive from a shared archive.
17284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17285
17286 # Create a temporary old-style archive to link instead of a shared archive.
17287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17288
17289 # Commands used to build a shared archive.
17290 archive_cmds=$lt_archive_cmds
17291 archive_expsym_cmds=$lt_archive_expsym_cmds
17292
17293 # Commands used to build a loadable module if different from building
17294 # a shared archive.
17295 module_cmds=$lt_module_cmds
17296 module_expsym_cmds=$lt_module_expsym_cmds
17297
17298 # Whether we are building with GNU ld or not.
17299 with_gnu_ld=$lt_with_gnu_ld
17300
17301 # Flag that allows shared libraries with undefined symbols to be built.
17302 allow_undefined_flag=$lt_allow_undefined_flag
17303
17304 # Flag that enforces no undefined symbols.
17305 no_undefined_flag=$lt_no_undefined_flag
17306
17307 # Flag to hardcode \$libdir into a binary during linking.
17308 # This must work even if \$libdir does not exist
17309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17310
17311 # If ld is used when linking, flag to hardcode \$libdir into a binary
17312 # during linking. This must work even if \$libdir does not exist.
17313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17314
17315 # Whether we need a single "-rpath" flag with a separated argument.
17316 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17317
17318 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17319 # DIR into the resulting binary.
17320 hardcode_direct=$hardcode_direct
17321
17322 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17323 # DIR into the resulting binary and the resulting library dependency is
17324 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17325 # library is relocated.
17326 hardcode_direct_absolute=$hardcode_direct_absolute
17327
17328 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17329 # into the resulting binary.
17330 hardcode_minus_L=$hardcode_minus_L
17331
17332 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17333 # into the resulting binary.
17334 hardcode_shlibpath_var=$hardcode_shlibpath_var
17335
17336 # Set to "yes" if building a shared library automatically hardcodes DIR
17337 # into the library and all subsequent libraries and executables linked
17338 # against it.
17339 hardcode_automatic=$hardcode_automatic
17340
17341 # Set to yes if linker adds runtime paths of dependent libraries
17342 # to runtime path list.
17343 inherit_rpath=$inherit_rpath
17344
17345 # Whether libtool must link a program against all its dependency libraries.
17346 link_all_deplibs=$link_all_deplibs
17347
17348 # Fix the shell variable \$srcfile for the compiler.
17349 fix_srcfile_path=$lt_fix_srcfile_path
17350
17351 # Set to "yes" if exported symbols are required.
17352 always_export_symbols=$always_export_symbols
17353
17354 # The commands to list exported symbols.
17355 export_symbols_cmds=$lt_export_symbols_cmds
17356
17357 # Symbols that should not be listed in the preloaded symbols.
17358 exclude_expsyms=$lt_exclude_expsyms
17359
17360 # Symbols that must always be exported.
17361 include_expsyms=$lt_include_expsyms
17362
17363 # Commands necessary for linking programs (against libraries) with templates.
17364 prelink_cmds=$lt_prelink_cmds
17365
17366 # Specify filename containing input files.
17367 file_list_spec=$lt_file_list_spec
17368
17369 # How to hardcode a shared library path into an executable.
17370 hardcode_action=$hardcode_action
17371
17372 # ### END LIBTOOL CONFIG
17373
17374 _LT_EOF
17375
17376 case $host_os in
17377 aix3*)
17378 cat <<\_LT_EOF >> "$cfgfile"
17379 # AIX sometimes has problems with the GCC collect2 program. For some
17380 # reason, if we set the COLLECT_NAMES environment variable, the problems
17381 # vanish in a puff of smoke.
17382 if test "X${COLLECT_NAMES+set}" != Xset; then
17383 COLLECT_NAMES=
17384 export COLLECT_NAMES
17385 fi
17386 _LT_EOF
17387 ;;
17388 esac
17389
17390
17391 ltmain="$ac_aux_dir/ltmain.sh"
17392
17393
17394 # We use sed instead of cat because bash on DJGPP gets confused if
17395 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17396 # text mode, it properly converts lines to CR/LF. This bash problem
17397 # is reportedly fixed, but why not run on old versions too?
17398 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17399 || (rm -f "$cfgfile"; exit 1)
17400
17401 case $xsi_shell in
17402 yes)
17403 cat << \_LT_EOF >> "$cfgfile"
17404
17405 # func_dirname file append nondir_replacement
17406 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17407 # otherwise set result to NONDIR_REPLACEMENT.
17408 func_dirname ()
17409 {
17410 case ${1} in
17411 */*) func_dirname_result="${1%/*}${2}" ;;
17412 * ) func_dirname_result="${3}" ;;
17413 esac
17414 }
17415
17416 # func_basename file
17417 func_basename ()
17418 {
17419 func_basename_result="${1##*/}"
17420 }
17421
17422 # func_dirname_and_basename file append nondir_replacement
17423 # perform func_basename and func_dirname in a single function
17424 # call:
17425 # dirname: Compute the dirname of FILE. If nonempty,
17426 # add APPEND to the result, otherwise set result
17427 # to NONDIR_REPLACEMENT.
17428 # value returned in "$func_dirname_result"
17429 # basename: Compute filename of FILE.
17430 # value retuned in "$func_basename_result"
17431 # Implementation must be kept synchronized with func_dirname
17432 # and func_basename. For efficiency, we do not delegate to
17433 # those functions but instead duplicate the functionality here.
17434 func_dirname_and_basename ()
17435 {
17436 case ${1} in
17437 */*) func_dirname_result="${1%/*}${2}" ;;
17438 * ) func_dirname_result="${3}" ;;
17439 esac
17440 func_basename_result="${1##*/}"
17441 }
17442
17443 # func_stripname prefix suffix name
17444 # strip PREFIX and SUFFIX off of NAME.
17445 # PREFIX and SUFFIX must not contain globbing or regex special
17446 # characters, hashes, percent signs, but SUFFIX may contain a leading
17447 # dot (in which case that matches only a dot).
17448 func_stripname ()
17449 {
17450 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17451 # positional parameters, so assign one to ordinary parameter first.
17452 func_stripname_result=${3}
17453 func_stripname_result=${func_stripname_result#"${1}"}
17454 func_stripname_result=${func_stripname_result%"${2}"}
17455 }
17456
17457 # func_opt_split
17458 func_opt_split ()
17459 {
17460 func_opt_split_opt=${1%%=*}
17461 func_opt_split_arg=${1#*=}
17462 }
17463
17464 # func_lo2o object
17465 func_lo2o ()
17466 {
17467 case ${1} in
17468 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17469 *) func_lo2o_result=${1} ;;
17470 esac
17471 }
17472
17473 # func_xform libobj-or-source
17474 func_xform ()
17475 {
17476 func_xform_result=${1%.*}.lo
17477 }
17478
17479 # func_arith arithmetic-term...
17480 func_arith ()
17481 {
17482 func_arith_result=$(( $* ))
17483 }
17484
17485 # func_len string
17486 # STRING may not start with a hyphen.
17487 func_len ()
17488 {
17489 func_len_result=${#1}
17490 }
17491
17492 _LT_EOF
17493 ;;
17494 *) # Bourne compatible functions.
17495 cat << \_LT_EOF >> "$cfgfile"
17496
17497 # func_dirname file append nondir_replacement
17498 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17499 # otherwise set result to NONDIR_REPLACEMENT.
17500 func_dirname ()
17501 {
17502 # Extract subdirectory from the argument.
17503 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17504 if test "X$func_dirname_result" = "X${1}"; then
17505 func_dirname_result="${3}"
17506 else
17507 func_dirname_result="$func_dirname_result${2}"
17508 fi
17509 }
17510
17511 # func_basename file
17512 func_basename ()
17513 {
17514 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17515 }
17516
17517
17518 # func_stripname prefix suffix name
17519 # strip PREFIX and SUFFIX off of NAME.
17520 # PREFIX and SUFFIX must not contain globbing or regex special
17521 # characters, hashes, percent signs, but SUFFIX may contain a leading
17522 # dot (in which case that matches only a dot).
17523 # func_strip_suffix prefix name
17524 func_stripname ()
17525 {
17526 case ${2} in
17527 .*) func_stripname_result=`$ECHO "X${3}" \
17528 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17529 *) func_stripname_result=`$ECHO "X${3}" \
17530 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17531 esac
17532 }
17533
17534 # sed scripts:
17535 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17536 my_sed_long_arg='1s/^-[^=]*=//'
17537
17538 # func_opt_split
17539 func_opt_split ()
17540 {
17541 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17542 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17543 }
17544
17545 # func_lo2o object
17546 func_lo2o ()
17547 {
17548 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17549 }
17550
17551 # func_xform libobj-or-source
17552 func_xform ()
17553 {
17554 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17555 }
17556
17557 # func_arith arithmetic-term...
17558 func_arith ()
17559 {
17560 func_arith_result=`expr "$@"`
17561 }
17562
17563 # func_len string
17564 # STRING may not start with a hyphen.
17565 func_len ()
17566 {
17567 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17568 }
17569
17570 _LT_EOF
17571 esac
17572
17573 case $lt_shell_append in
17574 yes)
17575 cat << \_LT_EOF >> "$cfgfile"
17576
17577 # func_append var value
17578 # Append VALUE to the end of shell variable VAR.
17579 func_append ()
17580 {
17581 eval "$1+=\$2"
17582 }
17583 _LT_EOF
17584 ;;
17585 *)
17586 cat << \_LT_EOF >> "$cfgfile"
17587
17588 # func_append var value
17589 # Append VALUE to the end of shell variable VAR.
17590 func_append ()
17591 {
17592 eval "$1=\$$1\$2"
17593 }
17594
17595 _LT_EOF
17596 ;;
17597 esac
17598
17599
17600 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17601 || (rm -f "$cfgfile"; exit 1)
17602
17603 mv -f "$cfgfile" "$ofile" ||
17604 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17605 chmod +x "$ofile"
17606
17607 ;;
17608
17609 esac
17610 done # for ac_tag
17611
17612
17613 { (exit 0); exit 0; }
17614 _ACEOF
17615 chmod +x $CONFIG_STATUS
17616 ac_clean_files=$ac_clean_files_save
17617
17618
17619 # configure is writing to config.log, and then calls config.status.
17620 # config.status does its own redirection, appending to config.log.
17621 # Unfortunately, on DOS this fails, as config.log is still kept open
17622 # by configure, so config.status won't be able to write to it; its
17623 # output is simply discarded. So we exec the FD to /dev/null,
17624 # effectively closing config.log, so it can be properly (re)opened and
17625 # appended to by config.status. When coming back to configure, we
17626 # need to make the FD available again.
17627 if test "$no_create" != yes; then
17628 ac_cs_success=:
17629 ac_config_status_args=
17630 test "$silent" = yes &&
17631 ac_config_status_args="$ac_config_status_args --quiet"
17632 exec 5>/dev/null
17633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17634 exec 5>>config.log
17635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17636 # would make configure fail if this is the last instruction.
17637 $ac_cs_success || { (exit 1); exit 1; }
17638 fi
17639
17640