Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for eb 4.4.3.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell [email protected] about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='eb'
745 PACKAGE_TARNAME='eb'
746 PACKAGE_VERSION='4.4.3'
747 PACKAGE_STRING='eb 4.4.3'
748 PACKAGE_BUGREPORT=''
749
750 ac_unique_file="eb/eb.c"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 # include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 # include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='LTLIBOBJS
788 EBCONF_EBLIBS
789 EBCONF_EBINCS
790 EBCONF_INTLLIBS
791 EBCONF_INTLINCS
792 PTHREAD_LDFLAGS
793 PTHREAD_CFLAGS
794 PTHREAD_CPPFLAGS
795 ENABLE_PTHREAD
796 EBCONF_ZLIBLIBS
797 EBCONF_ZLIBINCS
798 EXEEXT_EXE_FALSE
799 EXEEXT_EXE_TRUE
800 LIBOBJS
801 ENABLE_EBNET_FALSE
802 ENABLE_EBNET_TRUE
803 ENABLE_EBNET
804 ZLIBDEPS
805 ZLIBLIBS
806 ZLIBINCS
807 pkgdocdir
808 ENABLE_SAMPLES_FALSE
809 ENABLE_SAMPLES_TRUE
810 MSGMERGE
811 XGETTEXT
812 MSGFMT
813 INTLLIBS
814 INTLINCS
815 ENABLE_NLS
816 ICONVLIBS
817 ICONVINCS
818 PERL
819 CPP
820 OTOOL64
821 OTOOL
822 LIPO
823 NMEDIT
824 DSYMUTIL
825 lt_ECHO
826 RANLIB
827 AR
828 OBJDUMP
829 LN_S
830 NM
831 ac_ct_DUMPBIN
832 DUMPBIN
833 LD
834 FGREP
835 EGREP
836 GREP
837 SED
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 LIBTOOL
847 am__fastdepCC_FALSE
848 am__fastdepCC_TRUE
849 CCDEPMODE
850 AMDEPBACKSLASH
851 AMDEP_FALSE
852 AMDEP_TRUE
853 am__quote
854 am__include
855 DEPDIR
856 OBJEXT
857 EXEEXT
858 ac_ct_CC
859 CPPFLAGS
860 LDFLAGS
861 CFLAGS
862 CC
863 MAILING_ADDRESS
864 EB_VERSION_MINOR
865 EB_VERSION_MAJOR
866 LIBEB_VERSION_INFO
867 am__untar
868 am__tar
869 AMTAR
870 am__leading_dot
871 SET_MAKE
872 AWK
873 mkdir_p
874 MKDIR_P
875 INSTALL_STRIP_PROGRAM
876 STRIP
877 install_sh
878 MAKEINFO
879 AUTOHEADER
880 AUTOMAKE
881 AUTOCONF
882 ACLOCAL
883 VERSION
884 PACKAGE
885 CYGPATH_W
886 am__isrc
887 INSTALL_DATA
888 INSTALL_SCRIPT
889 INSTALL_PROGRAM
890 target_alias
891 host_alias
892 build_alias
893 LIBS
894 ECHO_T
895 ECHO_N
896 ECHO_C
897 DEFS
898 mandir
899 localedir
900 libdir
901 psdir
902 pdfdir
903 dvidir
904 htmldir
905 infodir
906 docdir
907 oldincludedir
908 includedir
909 localstatedir
910 sharedstatedir
911 sysconfdir
912 datadir
913 datarootdir
914 libexecdir
915 sbindir
916 bindir
917 program_transform_name
918 prefix
919 exec_prefix
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files=''
928 ac_user_opts='
929 enable_option_checking
930 enable_dependency_tracking
931 enable_shared
932 enable_static
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 enable_largefile
938 enable_nls
939 with_gettext_includes
940 with_gettext_libraries
941 with_iconv_includes
942 with_iconv_libraries
943 enable_samples
944 enable_pthread
945 with_pthread_cppflags
946 with_pthread_cflags
947 with_pthread_ldflags
948 with_pkgdocdir
949 with_zlib_includes
950 with_zlib_libraries
951 enable_ebnet
952 enable_ipv6
953 '
954 ac_precious_vars='build_alias
955 host_alias
956 target_alias
957 CC
958 CFLAGS
959 LDFLAGS
960 LIBS
961 CPPFLAGS
962 CPP'
963
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1022 fi
1023
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1028
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031 case $ac_dashdash$ac_option in
1032 --)
1033 ac_dashdash=yes ;;
1034
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1039
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1044
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1051
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1054
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1059
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1066
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=no ;;
1083
1084 -docdir | --docdir | --docdi | --doc | --do)
1085 ac_prev=docdir ;;
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1088
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 ac_prev=dvidir ;;
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1093
1094 -enable-* | --enable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1119
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1123
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1130
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1135
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1141
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1148
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1153
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1158
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1165
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1170
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1177
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1182
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1186
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1190
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1194
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1203
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1208
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1215
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1222
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1239
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1244
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1249
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1253
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1259
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1270
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1275
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1280
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1287
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1292
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1295
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1298
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=\$ac_optarg ;;
1315
1316 -without-* | --without-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321 { (exit 1); exit 1; }; }
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1325 *"
1326 "with_$ac_useropt"
1327 "*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval with_$ac_useropt=no ;;
1332
1333 --x)
1334 # Obsolete; use --with-x.
1335 with_x=yes ;;
1336
1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338 | --x-incl | --x-inc | --x-in | --x-i)
1339 ac_prev=x_includes ;;
1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342 x_includes=$ac_optarg ;;
1343
1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346 ac_prev=x_libraries ;;
1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349 x_libraries=$ac_optarg ;;
1350
1351 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352 Try \`$0 --help' for more information." >&2
1353 { (exit 1); exit 1; }; }
1354 ;;
1355
1356 *=*)
1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361 { (exit 1); exit 1; }; }
1362 eval $ac_envvar=\$ac_optarg
1363 export $ac_envvar ;;
1364
1365 *)
1366 # FIXME: should be removed in autoconf 3.0.
1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371 ;;
1372
1373 esac
1374 done
1375
1376 if test -n "$ac_prev"; then
1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379 { (exit 1); exit 1; }; }
1380 fi
1381
1382 if test -n "$ac_unrecognized_opts"; then
1383 case $enable_option_checking in
1384 no) ;;
1385 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386 { (exit 1); exit 1; }; } ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1396 do
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410 { (exit 1); exit 1; }; }
1411 done
1412
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1416 build=$build_alias
1417 host=$host_alias
1418 target=$target_alias
1419
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x; then
1422 if test "x$build_alias" = x; then
1423 cross_compiling=maybe
1424 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425 If a cross compiler is detected then cross compile mode will be used." >&2
1426 elif test "x$build_alias" != "x$host_alias"; then
1427 cross_compiling=yes
1428 fi
1429 fi
1430
1431 ac_tool_prefix=
1432 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433
1434 test "$silent" = yes && exec 6>/dev/null
1435
1436
1437 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438 ac_ls_di=`ls -di .` &&
1439 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1441 { (exit 1); exit 1; }; }
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444 { (exit 1); exit 1; }; }
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\).*/{
1470 s//\1/
1471 q
1472 }
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1477 fi
1478 else
1479 ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484 { (exit 1); exit 1; }; }
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489 { (exit 1); exit 1; }; }
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1494 fi
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1507
1508 #
1509 # Report the --help message.
1510 #
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 \`configure' configures eb 4.4.3 to adapt to many kinds of systems.
1516
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1521
1522 Defaults for the options are specified in brackets.
1523
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1540
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1545
1546 For better control, use the options below.
1547
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/eb]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1569
1570 cat <<\_ACEOF
1571
1572 Program names:
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1576
1577 System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 _ACEOF
1581 fi
1582
1583 if test -n "$ac_init_help"; then
1584 case $ac_init_help in
1585 short | recursive ) echo "Configuration of eb 4.4.3:";;
1586 esac
1587 cat <<\_ACEOF
1588
1589 Optional Features:
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --disable-dependency-tracking speeds up one-time build
1594 --enable-dependency-tracking do not reject slow dependency extractors
1595 --enable-shared[=PKGS] build shared libraries [default=yes]
1596 --enable-static[=PKGS] build static libraries [default=yes]
1597 --enable-fast-install[=PKGS]
1598 optimize for fast installation [default=yes]
1599 --disable-libtool-lock avoid locking (might break parallel builds)
1600 --disable-largefile omit support for large files
1601 --enable-nls Native Language Support [yes]
1602 --enable-samples compile sample programs default=no
1603 --enable-pthread build pthread safe libraries [no]
1604 --enable-ebnet EBNET support [yes]
1605 --enable-ipv6 IPv6 support for EBNET [yes] (if the system
1606 supports IPv6)
1607
1608 Optional Packages:
1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1611 --with-pic try to use only PIC/non-PIC objects [default=use
1612 both]
1613 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1614 --with-gettext-includes=DIR
1615 gettext include files are in DIR
1616 --with-gettext-libraries=DIR
1617 gettext library files are in DIR
1618 --with-iconv-includes=DIR
1619 iconv include files are in DIR
1620 --with-iconv-libraries=DIR
1621 iconv library files are in DIR
1622 --with-pthread-cppflags=FLAGS
1623 additional CPPFLAGS for pthread support
1624 --with-pthread-cflags=FLAGS
1625 additional CFLAGS for pthread support
1626 --with-pthread-ldflags=FLAGS
1627 additional LDFLAGS for pthread support
1628 --with-pkgdocdir=DIR HTML documents in DIR [default=DATADIR/eb/doc]
1629 --with-zlib-includes=DIR
1630 zlib include files are in DIR
1631 --with-zlib-libraries=DIR
1632 zlib library files are in DIR
1633
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1642 CPP C preprocessor
1643
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1646
1647 _ACEOF
1648 ac_status=$?
1649 fi
1650
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
1657 ac_builddir=.
1658
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *)
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1674
1675 case $srcdir in
1676 .) # We are building in place.
1677 ac_srcdir=.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1699 else
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1703 done
1704 fi
1705
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708 cat <<\_ACEOF
1709 eb configure 4.4.3
1710 generated by GNU Autoconf 2.63
1711
1712 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1713 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717 exit
1718 fi
1719 cat >config.log <<_ACEOF
1720 This file contains any messages produced by compilers while
1721 running configure, to aid debugging if configure makes a mistake.
1722
1723 It was created by eb $as_me 4.4.3, which was
1724 generated by GNU Autoconf 2.63. Invocation command line was
1725
1726 $ $0 $@
1727
1728 _ACEOF
1729 exec 5>>config.log
1730 {
1731 cat <<_ASUNAME
1732 ## --------- ##
1733 ## Platform. ##
1734 ## --------- ##
1735
1736 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1737 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1738 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1739 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1740 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1741
1742 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1743 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1744
1745 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1746 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1747 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1748 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1749 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1750 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1751 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1752
1753 _ASUNAME
1754
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 $as_echo "PATH: $as_dir"
1761 done
1762 IFS=$as_save_IFS
1763
1764 } >&5
1765
1766 cat >&5 <<_ACEOF
1767
1768
1769 ## ----------- ##
1770 ## Core tests. ##
1771 ## ----------- ##
1772
1773 _ACEOF
1774
1775
1776 # Keep a trace of the command line.
1777 # Strip out --no-create and --no-recursion so they do not pile up.
1778 # Strip out --silent because we don't want to record it for future runs.
1779 # Also quote any args containing shell meta-characters.
1780 # Make two passes to allow for proper duplicate-argument suppression.
1781 ac_configure_args=
1782 ac_configure_args0=
1783 ac_configure_args1=
1784 ac_must_keep_next=false
1785 for ac_pass in 1 2
1786 do
1787 for ac_arg
1788 do
1789 case $ac_arg in
1790 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1792 | -silent | --silent | --silen | --sile | --sil)
1793 continue ;;
1794 *\'*)
1795 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 esac
1797 case $ac_pass in
1798 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1799 2)
1800 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1801 if test $ac_must_keep_next = true; then
1802 ac_must_keep_next=false # Got value, back to normal.
1803 else
1804 case $ac_arg in
1805 *=* | --config-cache | -C | -disable-* | --disable-* \
1806 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1807 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1808 | -with-* | --with-* | -without-* | --without-* | --x)
1809 case "$ac_configure_args0 " in
1810 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1811 esac
1812 ;;
1813 -* ) ac_must_keep_next=true ;;
1814 esac
1815 fi
1816 ac_configure_args="$ac_configure_args '$ac_arg'"
1817 ;;
1818 esac
1819 done
1820 done
1821 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1822 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1823
1824 # When interrupted or exit'd, cleanup temporary files, and complete
1825 # config.log. We remove comments because anyway the quotes in there
1826 # would cause problems or look ugly.
1827 # WARNING: Use '\'' to represent an apostrophe within the trap.
1828 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1829 trap 'exit_status=$?
1830 # Save into config.log some information that might help in debugging.
1831 {
1832 echo
1833
1834 cat <<\_ASBOX
1835 ## ---------------- ##
1836 ## Cache variables. ##
1837 ## ---------------- ##
1838 _ASBOX
1839 echo
1840 # The following way of writing the cache mishandles newlines in values,
1841 (
1842 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1843 eval ac_val=\$$ac_var
1844 case $ac_val in #(
1845 *${as_nl}*)
1846 case $ac_var in #(
1847 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1849 esac
1850 case $ac_var in #(
1851 _ | IFS | as_nl) ;; #(
1852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1853 *) $as_unset $ac_var ;;
1854 esac ;;
1855 esac
1856 done
1857 (set) 2>&1 |
1858 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1859 *${as_nl}ac_space=\ *)
1860 sed -n \
1861 "s/'\''/'\''\\\\'\'''\''/g;
1862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1863 ;; #(
1864 *)
1865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1866 ;;
1867 esac |
1868 sort
1869 )
1870 echo
1871
1872 cat <<\_ASBOX
1873 ## ----------------- ##
1874 ## Output variables. ##
1875 ## ----------------- ##
1876 _ASBOX
1877 echo
1878 for ac_var in $ac_subst_vars
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
1885 done | sort
1886 echo
1887
1888 if test -n "$ac_subst_files"; then
1889 cat <<\_ASBOX
1890 ## ------------------- ##
1891 ## File substitutions. ##
1892 ## ------------------- ##
1893 _ASBOX
1894 echo
1895 for ac_var in $ac_subst_files
1896 do
1897 eval ac_val=\$$ac_var
1898 case $ac_val in
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 esac
1901 $as_echo "$ac_var='\''$ac_val'\''"
1902 done | sort
1903 echo
1904 fi
1905
1906 if test -s confdefs.h; then
1907 cat <<\_ASBOX
1908 ## ----------- ##
1909 ## confdefs.h. ##
1910 ## ----------- ##
1911 _ASBOX
1912 echo
1913 cat confdefs.h
1914 echo
1915 fi
1916 test "$ac_signal" != 0 &&
1917 $as_echo "$as_me: caught signal $ac_signal"
1918 $as_echo "$as_me: exit $exit_status"
1919 } >&5
1920 rm -f core *.core core.conftest.* &&
1921 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1922 exit $exit_status
1923 ' 0
1924 for ac_signal in 1 2 13 15; do
1925 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1926 done
1927 ac_signal=0
1928
1929 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1930 rm -f -r conftest* confdefs.h
1931
1932 # Predefined preprocessor variables.
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_NAME "$PACKAGE_NAME"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_STRING "$PACKAGE_STRING"
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1956 _ACEOF
1957
1958
1959 # Let the site file select an alternate cache file if it wants to.
1960 # Prefer an explicitly selected file to automatically selected ones.
1961 ac_site_file1=NONE
1962 ac_site_file2=NONE
1963 if test -n "$CONFIG_SITE"; then
1964 ac_site_file1=$CONFIG_SITE
1965 elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1968 else
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1971 fi
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1973 do
1974 test "x$ac_site_file" = xNONE && continue
1975 if test -r "$ac_site_file"; then
1976 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file"
1980 fi
1981 done
1982
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special
1985 # files actually), so we avoid doing that.
1986 if test -f "$cache_file"; then
1987 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
1989 case $cache_file in
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1992 esac
1993 fi
1994 else
1995 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
1997 >$cache_file
1998 fi
1999
2000 # Check that the precious variables saved in the cache have kept the same
2001 # value.
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2009 set,)
2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,set)
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,);;
2018 *)
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2027 else
2028 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2031 fi
2032 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2036 fi;;
2037 esac
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2040 case $ac_new_val in
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2043 esac
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2047 esac
2048 fi
2049 done
2050 if $ac_cache_corrupted; then
2051 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084 ac_ext=c
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089
2090
2091
2092
2093 am__api_version='1.10'
2094
2095 ac_aux_dir=
2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2098 ac_aux_dir=$ac_dir
2099 ac_install_sh="$ac_aux_dir/install-sh -c"
2100 break
2101 elif test -f "$ac_dir/install.sh"; then
2102 ac_aux_dir=$ac_dir
2103 ac_install_sh="$ac_aux_dir/install.sh -c"
2104 break
2105 elif test -f "$ac_dir/shtool"; then
2106 ac_aux_dir=$ac_dir
2107 ac_install_sh="$ac_aux_dir/shtool install -c"
2108 break
2109 fi
2110 done
2111 if test -z "$ac_aux_dir"; then
2112 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2113 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2114 { (exit 1); exit 1; }; }
2115 fi
2116
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2124
2125
2126 # Find a good install program. We prefer a C program (faster),
2127 # so one script is as good as another. But avoid the broken or
2128 # incompatible versions:
2129 # SysV /etc/install, /usr/sbin/install
2130 # SunOS /usr/etc/install
2131 # IRIX /sbin/install
2132 # AIX /bin/install
2133 # AmigaOS /C/install, which installs bootblocks on floppy discs
2134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2137 # OS/2's system install, which has a completely different semantic
2138 # ./install, which can be erroneously created by make from ./install.sh.
2139 # Reject install programs that cannot install multiple files.
2140 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2141 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2142 if test -z "$INSTALL"; then
2143 if test "${ac_cv_path_install+set}" = set; then
2144 $as_echo_n "(cached) " >&6
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 # Account for people who put trailing slashes in PATH elements.
2152 case $as_dir/ in
2153 ./ | .// | /cC/* | \
2154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2155 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2156 /usr/ucb/* ) ;;
2157 *)
2158 # OSF1 and SCO ODT 3.0 have their own names for install.
2159 # Don't use installbsd from OSF since it installs stuff as root
2160 # by default.
2161 for ac_prog in ginstall scoinst install; do
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2164 if test $ac_prog = install &&
2165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166 # AIX install. It has an incompatible calling convention.
2167 :
2168 elif test $ac_prog = install &&
2169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170 # program-specific install script used by HP pwplus--don't use.
2171 :
2172 else
2173 rm -rf conftest.one conftest.two conftest.dir
2174 echo one > conftest.one
2175 echo two > conftest.two
2176 mkdir conftest.dir
2177 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2178 test -s conftest.one && test -s conftest.two &&
2179 test -s conftest.dir/conftest.one &&
2180 test -s conftest.dir/conftest.two
2181 then
2182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2183 break 3
2184 fi
2185 fi
2186 fi
2187 done
2188 done
2189 ;;
2190 esac
2191
2192 done
2193 IFS=$as_save_IFS
2194
2195 rm -rf conftest.one conftest.two conftest.dir
2196
2197 fi
2198 if test "${ac_cv_path_install+set}" = set; then
2199 INSTALL=$ac_cv_path_install
2200 else
2201 # As a last resort, use the slow shell script. Don't cache a
2202 # value for INSTALL within a source directory, because that will
2203 # break other packages using the cache if that directory is
2204 # removed, or if the value is a relative name.
2205 INSTALL=$ac_install_sh
2206 fi
2207 fi
2208 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2209 $as_echo "$INSTALL" >&6; }
2210
2211 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2212 # It thinks the first close brace ends the variable substitution.
2213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2214
2215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2216
2217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2218
2219 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2220 $as_echo_n "checking whether build environment is sane... " >&6; }
2221 # Just in case
2222 sleep 1
2223 echo timestamp > conftest.file
2224 # Do `set' in a subshell so we don't clobber the current shell's
2225 # arguments. Must try -L first in case configure is actually a
2226 # symlink; some systems play weird games with the mod time of symlinks
2227 # (eg FreeBSD returns the mod time of the symlink's containing
2228 # directory).
2229 if (
2230 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2231 if test "$*" = "X"; then
2232 # -L didn't work.
2233 set X `ls -t $srcdir/configure conftest.file`
2234 fi
2235 rm -f conftest.file
2236 if test "$*" != "X $srcdir/configure conftest.file" \
2237 && test "$*" != "X conftest.file $srcdir/configure"; then
2238
2239 # If neither matched, then we have a broken ls. This can happen
2240 # if, for instance, CONFIG_SHELL is bash and it inherits a
2241 # broken ls alias from the environment. This has actually
2242 # happened. Such a system could not be considered "sane".
2243 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2244 alias in your environment" >&5
2245 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2246 alias in your environment" >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249
2250 test "$2" = conftest.file
2251 )
2252 then
2253 # Ok.
2254 :
2255 else
2256 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2257 Check your system clock" >&5
2258 $as_echo "$as_me: error: newly created file is older than distributed files!
2259 Check your system clock" >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262 { $as_echo "$as_me:$LINENO: result: yes" >&5
2263 $as_echo "yes" >&6; }
2264 test "$program_prefix" != NONE &&
2265 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2266 # Use a double $ so make ignores it.
2267 test "$program_suffix" != NONE &&
2268 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2269 # Double any \ or $.
2270 # By default was `s,x,x', remove it if useless.
2271 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2272 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2273
2274 # expand $ac_aux_dir to an absolute path
2275 am_aux_dir=`cd $ac_aux_dir && pwd`
2276
2277 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2278 # Use eval to expand $SHELL
2279 if eval "$MISSING --run true"; then
2280 am_missing_run="$MISSING --run "
2281 else
2282 am_missing_run=
2283 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2284 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2285 fi
2286
2287 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2288 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2289 if test -z "$MKDIR_P"; then
2290 if test "${ac_cv_path_mkdir+set}" = set; then
2291 $as_echo_n "(cached) " >&6
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_prog in mkdir gmkdir; do
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2301 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2302 'mkdir (GNU coreutils) '* | \
2303 'mkdir (coreutils) '* | \
2304 'mkdir (fileutils) '4.1*)
2305 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2306 break 3;;
2307 esac
2308 done
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 fi
2314
2315 if test "${ac_cv_path_mkdir+set}" = set; then
2316 MKDIR_P="$ac_cv_path_mkdir -p"
2317 else
2318 # As a last resort, use the slow shell script. Don't cache a
2319 # value for MKDIR_P within a source directory, because that will
2320 # break other packages using the cache if that directory is
2321 # removed, or if the value is a relative name.
2322 test -d ./--version && rmdir ./--version
2323 MKDIR_P="$ac_install_sh -d"
2324 fi
2325 fi
2326 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2327 $as_echo "$MKDIR_P" >&6; }
2328
2329 mkdir_p="$MKDIR_P"
2330 case $mkdir_p in
2331 [\\/$]* | ?:[\\/]*) ;;
2332 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2333 esac
2334
2335 for ac_prog in gawk mawk nawk awk
2336 do
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if test "${ac_cv_prog_AWK+set}" = set; then
2342 $as_echo_n "(cached) " >&6
2343 else
2344 if test -n "$AWK"; then
2345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_AWK="$ac_prog"
2355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2357 fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 AWK=$ac_cv_prog_AWK
2365 if test -n "$AWK"; then
2366 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2367 $as_echo "$AWK" >&6; }
2368 else
2369 { $as_echo "$as_me:$LINENO: result: no" >&5
2370 $as_echo "no" >&6; }
2371 fi
2372
2373
2374 test -n "$AWK" && break
2375 done
2376
2377 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2378 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2379 set x ${MAKE-make}
2380 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2381 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2382 $as_echo_n "(cached) " >&6
2383 else
2384 cat >conftest.make <<\_ACEOF
2385 SHELL = /bin/sh
2386 all:
2387 @echo '@@@%%%=$(MAKE)=@@@%%%'
2388 _ACEOF
2389 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2390 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2391 *@@@%%%=?*=@@@%%%*)
2392 eval ac_cv_prog_make_${ac_make}_set=yes;;
2393 *)
2394 eval ac_cv_prog_make_${ac_make}_set=no;;
2395 esac
2396 rm -f conftest.make
2397 fi
2398 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2399 { $as_echo "$as_me:$LINENO: result: yes" >&5
2400 $as_echo "yes" >&6; }
2401 SET_MAKE=
2402 else
2403 { $as_echo "$as_me:$LINENO: result: no" >&5
2404 $as_echo "no" >&6; }
2405 SET_MAKE="MAKE=${MAKE-make}"
2406 fi
2407
2408 rm -rf .tst 2>/dev/null
2409 mkdir .tst 2>/dev/null
2410 if test -d .tst; then
2411 am__leading_dot=.
2412 else
2413 am__leading_dot=_
2414 fi
2415 rmdir .tst 2>/dev/null
2416
2417 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2418 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2419 # is not polluted with repeated "-I."
2420 am__isrc=' -I$(srcdir)'
2421 # test to see if srcdir already configured
2422 if test -f $srcdir/config.status; then
2423 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2424 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2425 { (exit 1); exit 1; }; }
2426 fi
2427 fi
2428
2429 # test whether we have cygpath
2430 if test -z "$CYGPATH_W"; then
2431 if (cygpath --version) >/dev/null 2>/dev/null; then
2432 CYGPATH_W='cygpath -w'
2433 else
2434 CYGPATH_W=echo
2435 fi
2436 fi
2437
2438
2439 # Define the identity of the package.
2440 PACKAGE='eb'
2441 VERSION='4.4.3'
2442
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE "$PACKAGE"
2446 _ACEOF
2447
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define VERSION "$VERSION"
2451 _ACEOF
2452
2453 # Some tools Automake needs.
2454
2455 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2456
2457
2458 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2459
2460
2461 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2462
2463
2464 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2465
2466
2467 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2468
2469 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2470
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'. However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_STRIP+set}" = set; then
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502 fi
2503 fi
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2508 else
2509 { $as_echo "$as_me:$LINENO: result: no" >&5
2510 $as_echo "no" >&6; }
2511 fi
2512
2513
2514 fi
2515 if test -z "$ac_cv_prog_STRIP"; then
2516 ac_ct_STRIP=$STRIP
2517 # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2522 $as_echo_n "(cached) " >&6
2523 else
2524 if test -n "$ac_ct_STRIP"; then
2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_ac_ct_STRIP="strip"
2535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2548 else
2549 { $as_echo "$as_me:$LINENO: result: no" >&5
2550 $as_echo "no" >&6; }
2551 fi
2552
2553 if test "x$ac_ct_STRIP" = x; then
2554 STRIP=":"
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562 STRIP=$ac_ct_STRIP
2563 fi
2564 else
2565 STRIP="$ac_cv_prog_STRIP"
2566 fi
2567
2568 fi
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570
2571 # We need awk for the "check" target. The system "awk" is bad on
2572 # some platforms.
2573 # Always define AMTAR for backward compatibility.
2574
2575 AMTAR=${AMTAR-"${am_missing_run}tar"}
2576
2577 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2578
2579
2580
2581
2582
2583
2584 LIBEB_VERSION_INFO=16:0:0
2585
2586
2587 EB_VERSION_MAJOR=4
2588 EB_VERSION_MINOR=4
2589
2590
2591
2592 MAILING_ADDRESS='[email protected]'
2593
2594
2595 cat >>confdefs.h <<_ACEOF
2596 #define MAILING_ADDRESS "$MAILING_ADDRESS"
2597 _ACEOF
2598
2599
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 CC=$ac_cv_prog_CC
2634 if test -n "$CC"; then
2635 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2637 else
2638 { $as_echo "$as_me:$LINENO: result: no" >&5
2639 $as_echo "no" >&6; }
2640 fi
2641
2642
2643 fi
2644 if test -z "$ac_cv_prog_CC"; then
2645 ac_ct_CC=$CC
2646 # Extract the first word of "gcc", so it can be a program name with args.
2647 set dummy gcc; ac_word=$2
2648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_ac_ct_CC="gcc"
2664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 $as_echo "$ac_ct_CC" >&6; }
2677 else
2678 { $as_echo "$as_me:$LINENO: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682 if test "x$ac_ct_CC" = x; then
2683 CC=""
2684 else
2685 case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691 CC=$ac_ct_CC
2692 fi
2693 else
2694 CC="$ac_cv_prog_CC"
2695 fi
2696
2697 if test -z "$CC"; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}cc; ac_word=$2
2701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_CC="${ac_tool_prefix}cc"
2717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2729 $as_echo "$CC" >&6; }
2730 else
2731 { $as_echo "$as_me:$LINENO: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735
2736 fi
2737 fi
2738 if test -z "$CC"; then
2739 # Extract the first word of "cc", so it can be a program name with args.
2740 set dummy cc; ac_word=$2
2741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 ac_prog_rejected=no
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2758 ac_prog_rejected=yes
2759 continue
2760 fi
2761 ac_cv_prog_CC="cc"
2762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 if test $ac_prog_rejected = yes; then
2770 # We found a bogon in the path, so make sure we never use it.
2771 set dummy $ac_cv_prog_CC
2772 shift
2773 if test $# != 0; then
2774 # We chose a different compiler from the bogus one.
2775 # However, it has the same basename, so the bogon will be chosen
2776 # first if we set CC to just the basename; use the full file name.
2777 shift
2778 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2779 fi
2780 fi
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2787 else
2788 { $as_echo "$as_me:$LINENO: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 fi
2794 if test -z "$CC"; then
2795 if test -n "$ac_tool_prefix"; then
2796 for ac_prog in cl.exe
2797 do
2798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_CC+set}" = set; then
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 CC=$ac_cv_prog_CC
2826 if test -n "$CC"; then
2827 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2828 $as_echo "$CC" >&6; }
2829 else
2830 { $as_echo "$as_me:$LINENO: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 test -n "$CC" && break
2836 done
2837 fi
2838 if test -z "$CC"; then
2839 ac_ct_CC=$CC
2840 for ac_prog in cl.exe
2841 do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_ac_ct_CC="$ac_prog"
2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2872 $as_echo "$ac_ct_CC" >&6; }
2873 else
2874 { $as_echo "$as_me:$LINENO: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879 test -n "$ac_ct_CC" && break
2880 done
2881
2882 if test "x$ac_ct_CC" = x; then
2883 CC=""
2884 else
2885 case $cross_compiling:$ac_tool_warned in
2886 yes:)
2887 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2889 ac_tool_warned=yes ;;
2890 esac
2891 CC=$ac_ct_CC
2892 fi
2893 fi
2894
2895 fi
2896
2897
2898 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2901 See \`config.log' for more details." >&5
2902 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }; }
2905
2906 # Provide some information about the compiler.
2907 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2908 set X $ac_compile
2909 ac_compiler=$2
2910 { (ac_try="$ac_compiler --version >&5"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916 $as_echo "$ac_try_echo") >&5
2917 (eval "$ac_compiler --version >&5") 2>&5
2918 ac_status=$?
2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (ac_try="$ac_compiler -v >&5"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927 $as_echo "$ac_try_echo") >&5
2928 (eval "$ac_compiler -v >&5") 2>&5
2929 ac_status=$?
2930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (ac_try="$ac_compiler -V >&5"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2938 $as_echo "$ac_try_echo") >&5
2939 (eval "$ac_compiler -V >&5") 2>&5
2940 ac_status=$?
2941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
2943
2944 cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950
2951 int
2952 main ()
2953 {
2954
2955 ;
2956 return 0;
2957 }
2958 _ACEOF
2959 ac_clean_files_save=$ac_clean_files
2960 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2961 # Try to create an executable without -o first, disregard a.out.
2962 # It will help us diagnose broken compilers, and finding out an intuition
2963 # of exeext.
2964 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2965 $as_echo_n "checking for C compiler default output file name... " >&6; }
2966 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2967
2968 # The possible output files:
2969 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2970
2971 ac_rmfiles=
2972 for ac_file in $ac_files
2973 do
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2976 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2977 esac
2978 done
2979 rm -f $ac_rmfiles
2980
2981 if { (ac_try="$ac_link_default"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988 (eval "$ac_link_default") 2>&5
2989 ac_status=$?
2990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2993 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2994 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2995 # so that the user can short-circuit this test for compilers unknown to
2996 # Autoconf.
2997 for ac_file in $ac_files ''
2998 do
2999 test -f "$ac_file" || continue
3000 case $ac_file in
3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3002 ;;
3003 [ab].out )
3004 # We found the default executable, but exeext='' is most
3005 # certainly right.
3006 break;;
3007 *.* )
3008 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3009 then :; else
3010 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011 fi
3012 # We set ac_cv_exeext here because the later test for it is not
3013 # safe: cross compilers may not add the suffix if given an `-o'
3014 # argument, so we may need to know it at that point already.
3015 # Even if this section looks crufty: it has the advantage of
3016 # actually working.
3017 break;;
3018 * )
3019 break;;
3020 esac
3021 done
3022 test "$ac_cv_exeext" = no && ac_cv_exeext=
3023
3024 else
3025 ac_file=''
3026 fi
3027
3028 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3029 $as_echo "$ac_file" >&6; }
3030 if test -z "$ac_file"; then
3031 $as_echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3037 See \`config.log' for more details." >&5
3038 $as_echo "$as_me: error: C compiler cannot create executables
3039 See \`config.log' for more details." >&2;}
3040 { (exit 77); exit 77; }; }; }
3041 fi
3042
3043 ac_exeext=$ac_cv_exeext
3044
3045 # Check that the compiler produces executables we can run. If not, either
3046 # the compiler is broken, or we cross compile.
3047 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3048 $as_echo_n "checking whether the C compiler works... " >&6; }
3049 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3050 # If not cross compiling, check that we can run a simple program.
3051 if test "$cross_compiling" != yes; then
3052 if { ac_try='./$ac_file'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058 $as_echo "$ac_try_echo") >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3063 cross_compiling=no
3064 else
3065 if test "$cross_compiling" = maybe; then
3066 cross_compiling=yes
3067 else
3068 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3071 If you meant to cross compile, use \`--host'.
3072 See \`config.log' for more details." >&5
3073 $as_echo "$as_me: error: cannot run C compiled programs.
3074 If you meant to cross compile, use \`--host'.
3075 See \`config.log' for more details." >&2;}
3076 { (exit 1); exit 1; }; }; }
3077 fi
3078 fi
3079 fi
3080 { $as_echo "$as_me:$LINENO: result: yes" >&5
3081 $as_echo "yes" >&6; }
3082
3083 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3084 ac_clean_files=$ac_clean_files_save
3085 # Check that the compiler produces executables we can run. If not, either
3086 # the compiler is broken, or we cross compile.
3087 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3088 $as_echo_n "checking whether we are cross compiling... " >&6; }
3089 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3090 $as_echo "$cross_compiling" >&6; }
3091
3092 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3093 $as_echo_n "checking for suffix of executables... " >&6; }
3094 if { (ac_try="$ac_link"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100 $as_echo "$ac_try_echo") >&5
3101 (eval "$ac_link") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3107 # work properly (i.e., refer to `conftest.exe'), while it won't with
3108 # `rm'.
3109 for ac_file in conftest.exe conftest conftest.*; do
3110 test -f "$ac_file" || continue
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 break;;
3115 * ) break;;
3116 esac
3117 done
3118 else
3119 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3122 See \`config.log' for more details." >&5
3123 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3124 See \`config.log' for more details." >&2;}
3125 { (exit 1); exit 1; }; }; }
3126 fi
3127
3128 rm -f conftest$ac_cv_exeext
3129 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3130 $as_echo "$ac_cv_exeext" >&6; }
3131
3132 rm -f conftest.$ac_ext
3133 EXEEXT=$ac_cv_exeext
3134 ac_exeext=$EXEEXT
3135 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3136 $as_echo_n "checking for suffix of object files... " >&6; }
3137 if test "${ac_cv_objext+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3139 else
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146
3147 int
3148 main ()
3149 {
3150
3151 ;
3152 return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.o conftest.obj
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162 $as_echo "$ac_try_echo") >&5
3163 (eval "$ac_compile") 2>&5
3164 ac_status=$?
3165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; then
3167 for ac_file in conftest.o conftest.obj conftest.*; do
3168 test -f "$ac_file" || continue;
3169 case $ac_file in
3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3171 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3172 break;;
3173 esac
3174 done
3175 else
3176 $as_echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&5
3183 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3184 See \`config.log' for more details." >&2;}
3185 { (exit 1); exit 1; }; }; }
3186 fi
3187
3188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189 fi
3190 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3191 $as_echo "$ac_cv_objext" >&6; }
3192 OBJEXT=$ac_cv_objext
3193 ac_objext=$OBJEXT
3194 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3197 $as_echo_n "(cached) " >&6
3198 else
3199 cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h. */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209 #ifndef __GNUC__
3210 choke me
3211 #endif
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225 (eval "$ac_compile") 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } && {
3232 test -z "$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest.$ac_objext; then
3235 ac_compiler_gnu=yes
3236 else
3237 $as_echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 ac_compiler_gnu=no
3241 fi
3242
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3245
3246 fi
3247 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3248 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3249 if test $ac_compiler_gnu = yes; then
3250 GCC=yes
3251 else
3252 GCC=
3253 fi
3254 ac_test_CFLAGS=${CFLAGS+set}
3255 ac_save_CFLAGS=$CFLAGS
3256 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3257 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3258 if test "${ac_cv_prog_cc_g+set}" = set; then
3259 $as_echo_n "(cached) " >&6
3260 else
3261 ac_save_c_werror_flag=$ac_c_werror_flag
3262 ac_c_werror_flag=yes
3263 ac_cv_prog_cc_g=no
3264 CFLAGS="-g"
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271
3272 int
3273 main ()
3274 {
3275
3276 ;
3277 return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287 $as_echo "$ac_try_echo") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } && {
3295 test -z "$ac_c_werror_flag" ||
3296 test ! -s conftest.err
3297 } && test -s conftest.$ac_objext; then
3298 ac_cv_prog_cc_g=yes
3299 else
3300 $as_echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 CFLAGS=""
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310
3311 int
3312 main ()
3313 {
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326 $as_echo "$ac_try_echo") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
3337 :
3338 else
3339 $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 ac_c_werror_flag=$ac_save_c_werror_flag
3343 CFLAGS="-g"
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350
3351 int
3352 main ()
3353 {
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3377 ac_cv_prog_cc_g=yes
3378 else
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382
3383 fi
3384
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
3393 fi
3394 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3395 $as_echo "$ac_cv_prog_cc_g" >&6; }
3396 if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3400 CFLAGS="-g -O2"
3401 else
3402 CFLAGS="-g"
3403 fi
3404 else
3405 if test "$GCC" = yes; then
3406 CFLAGS="-O2"
3407 else
3408 CFLAGS=
3409 fi
3410 fi
3411 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3412 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3413 if test "${ac_cv_prog_cc_c89+set}" = set; then
3414 $as_echo_n "(cached) " >&6
3415 else
3416 ac_cv_prog_cc_c89=no
3417 ac_save_CC=$CC
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <stdarg.h>
3425 #include <stdio.h>
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3432 char **p;
3433 int i;
3434 {
3435 return p[i];
3436 }
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3438 {
3439 char *s;
3440 va_list v;
3441 va_start (v,p);
3442 s = g (p, va_arg (v,int));
3443 va_end (v);
3444 return s;
3445 }
3446
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3458 #define FOO(x) 'x'
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465 int argc;
3466 char **argv;
3467 int
3468 main ()
3469 {
3470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477 do
3478 CC="$ac_save_CC $ac_arg"
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_prog_cc_c89=$ac_arg
3498 else
3499 $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext
3506 test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 done
3508 rm -f conftest.$ac_ext
3509 CC=$ac_save_CC
3510
3511 fi
3512 # AC_CACHE_VAL
3513 case "x$ac_cv_prog_cc_c89" in
3514 x)
3515 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3516 $as_echo "none needed" >&6; } ;;
3517 xno)
3518 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3519 $as_echo "unsupported" >&6; } ;;
3520 *)
3521 CC="$CC $ac_cv_prog_cc_c89"
3522 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3524 esac
3525
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 DEPDIR="${am__leading_dot}deps"
3533
3534 ac_config_commands="$ac_config_commands depfiles"
3535
3536
3537 am_make=${MAKE-make}
3538 cat > confinc << 'END'
3539 am__doit:
3540 @echo done
3541 .PHONY: am__doit
3542 END
3543 # If we don't find an include directive, just comment out the code.
3544 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3545 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3546 am__include="#"
3547 am__quote=
3548 _am_result=none
3549 # First try GNU make style include.
3550 echo "include confinc" > confmf
3551 # We grep out `Entering directory' and `Leaving directory'
3552 # messages which can occur if `w' ends up in MAKEFLAGS.
3553 # In particular we don't look at `^make:' because GNU make might
3554 # be invoked under some other name (usually "gmake"), in which
3555 # case it prints its new name instead of `make'.
3556 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3557 am__include=include
3558 am__quote=
3559 _am_result=GNU
3560 fi
3561 # Now try BSD make style include.
3562 if test "$am__include" = "#"; then
3563 echo '.include "confinc"' > confmf
3564 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3565 am__include=.include
3566 am__quote="\""
3567 _am_result=BSD
3568 fi
3569 fi
3570
3571
3572 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3573 $as_echo "$_am_result" >&6; }
3574 rm -f confinc confmf
3575
3576 # Check whether --enable-dependency-tracking was given.
3577 if test "${enable_dependency_tracking+set}" = set; then
3578 enableval=$enable_dependency_tracking;
3579 fi
3580
3581 if test "x$enable_dependency_tracking" != xno; then
3582 am_depcomp="$ac_aux_dir/depcomp"
3583 AMDEPBACKSLASH='\'
3584 fi
3585 if test "x$enable_dependency_tracking" != xno; then
3586 AMDEP_TRUE=
3587 AMDEP_FALSE='#'
3588 else
3589 AMDEP_TRUE='#'
3590 AMDEP_FALSE=
3591 fi
3592
3593
3594
3595 depcc="$CC" am_compiler_list=
3596
3597 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3598 $as_echo_n "checking dependency style of $depcc... " >&6; }
3599 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3600 $as_echo_n "(cached) " >&6
3601 else
3602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3603 # We make a subdir and do the tests there. Otherwise we can end up
3604 # making bogus files that we don't know about and never remove. For
3605 # instance it was reported that on HP-UX the gcc test will end up
3606 # making a dummy file named `D' -- because `-MD' means `put the output
3607 # in D'.
3608 mkdir conftest.dir
3609 # Copy depcomp to subdir because otherwise we won't find it if we're
3610 # using a relative directory.
3611 cp "$am_depcomp" conftest.dir
3612 cd conftest.dir
3613 # We will build objects and dependencies in a subdirectory because
3614 # it helps to detect inapplicable dependency modes. For instance
3615 # both Tru64's cc and ICC support -MD to output dependencies as a
3616 # side effect of compilation, but ICC will put the dependencies in
3617 # the current directory while Tru64 will put them in the object
3618 # directory.
3619 mkdir sub
3620
3621 am_cv_CC_dependencies_compiler_type=none
3622 if test "$am_compiler_list" = ""; then
3623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3624 fi
3625 for depmode in $am_compiler_list; do
3626 # Setup a source with many dependencies, because some compilers
3627 # like to wrap large dependency lists on column 80 (with \), and
3628 # we should not choose a depcomp mode which is confused by this.
3629 #
3630 # We need to recreate these files for each test, as the compiler may
3631 # overwrite some of them when testing with obscure command lines.
3632 # This happens at least with the AIX C compiler.
3633 : > sub/conftest.c
3634 for i in 1 2 3 4 5 6; do
3635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3636 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3637 # Solaris 8's {/usr,}/bin/sh.
3638 touch sub/conftst$i.h
3639 done
3640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3641
3642 case $depmode in
3643 nosideeffect)
3644 # after this tag, mechanisms are not by side-effect, so they'll
3645 # only be used when explicitly requested
3646 if test "x$enable_dependency_tracking" = xyes; then
3647 continue
3648 else
3649 break
3650 fi
3651 ;;
3652 none) break ;;
3653 esac
3654 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3655 # mode. It turns out that the SunPro C++ compiler does not properly
3656 # handle `-M -o', and we need to detect this.
3657 if depmode=$depmode \
3658 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3660 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3661 >/dev/null 2>conftest.err &&
3662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3664 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3666 # icc doesn't choke on unknown options, it will just issue warnings
3667 # or remarks (even with -Werror). So we grep stderr for any message
3668 # that says an option was ignored or not supported.
3669 # When given -MP, icc 7.0 and 7.1 complain thusly:
3670 # icc: Command line warning: ignoring option '-M'; no argument required
3671 # The diagnosis changed in icc 8.0:
3672 # icc: Command line remark: option '-MP' not supported
3673 if (grep 'ignoring option' conftest.err ||
3674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3675 am_cv_CC_dependencies_compiler_type=$depmode
3676 break
3677 fi
3678 fi
3679 done
3680
3681 cd ..
3682 rm -rf conftest.dir
3683 else
3684 am_cv_CC_dependencies_compiler_type=none
3685 fi
3686
3687 fi
3688 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3691
3692 if
3693 test "x$enable_dependency_tracking" != xno \
3694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3695 am__fastdepCC_TRUE=
3696 am__fastdepCC_FALSE='#'
3697 else
3698 am__fastdepCC_TRUE='#'
3699 am__fastdepCC_FALSE=
3700 fi
3701
3702
3703 case `pwd` in
3704 *\ * | *\ *)
3705 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3706 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3707 esac
3708
3709
3710
3711 macro_version='2.2.6'
3712 macro_revision='1.3012'
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726 ltmain="$ac_aux_dir/ltmain.sh"
3727
3728 # Make sure we can run config.sub.
3729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3730 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3731 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3732 { (exit 1); exit 1; }; }
3733
3734 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3735 $as_echo_n "checking build system type... " >&6; }
3736 if test "${ac_cv_build+set}" = set; then
3737 $as_echo_n "(cached) " >&6
3738 else
3739 ac_build_alias=$build_alias
3740 test "x$ac_build_alias" = x &&
3741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3742 test "x$ac_build_alias" = x &&
3743 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3744 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3745 { (exit 1); exit 1; }; }
3746 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3747 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3748 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3749 { (exit 1); exit 1; }; }
3750
3751 fi
3752 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3753 $as_echo "$ac_cv_build" >&6; }
3754 case $ac_cv_build in
3755 *-*-*) ;;
3756 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3757 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3758 { (exit 1); exit 1; }; };;
3759 esac
3760 build=$ac_cv_build
3761 ac_save_IFS=$IFS; IFS='-'
3762 set x $ac_cv_build
3763 shift
3764 build_cpu=$1
3765 build_vendor=$2
3766 shift; shift
3767 # Remember, the first character of IFS is used to create $*,
3768 # except with old shells:
3769 build_os=$*
3770 IFS=$ac_save_IFS
3771 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3772
3773
3774 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3775 $as_echo_n "checking host system type... " >&6; }
3776 if test "${ac_cv_host+set}" = set; then
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if test "x$host_alias" = x; then
3780 ac_cv_host=$ac_cv_build
3781 else
3782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3783 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3784 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3785 { (exit 1); exit 1; }; }
3786 fi
3787
3788 fi
3789 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3790 $as_echo "$ac_cv_host" >&6; }
3791 case $ac_cv_host in
3792 *-*-*) ;;
3793 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3794 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3795 { (exit 1); exit 1; }; };;
3796 esac
3797 host=$ac_cv_host
3798 ac_save_IFS=$IFS; IFS='-'
3799 set x $ac_cv_host
3800 shift
3801 host_cpu=$1
3802 host_vendor=$2
3803 shift; shift
3804 # Remember, the first character of IFS is used to create $*,
3805 # except with old shells:
3806 host_os=$*
3807 IFS=$ac_save_IFS
3808 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3809
3810
3811 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3812 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3813 if test "${ac_cv_path_SED+set}" = set; then
3814 $as_echo_n "(cached) " >&6
3815 else
3816 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3817 for ac_i in 1 2 3 4 5 6 7; do
3818 ac_script="$ac_script$as_nl$ac_script"
3819 done
3820 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3821 $as_unset ac_script || ac_script=
3822 if test -z "$SED"; then
3823 ac_path_SED_found=false
3824 # Loop through the user's path and test for each of PROGNAME-LIST
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 for ac_prog in sed gsed; do
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3833 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3834 # Check for GNU ac_path_SED and select it if it is found.
3835 # Check for GNU $ac_path_SED
3836 case `"$ac_path_SED" --version 2>&1` in
3837 *GNU*)
3838 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3839 *)
3840 ac_count=0
3841 $as_echo_n 0123456789 >"conftest.in"
3842 while :
3843 do
3844 cat "conftest.in" "conftest.in" >"conftest.tmp"
3845 mv "conftest.tmp" "conftest.in"
3846 cp "conftest.in" "conftest.nl"
3847 $as_echo '' >> "conftest.nl"
3848 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3850 ac_count=`expr $ac_count + 1`
3851 if test $ac_count -gt ${ac_path_SED_max-0}; then
3852 # Best one so far, save it but keep looking for a better one
3853 ac_cv_path_SED="$ac_path_SED"
3854 ac_path_SED_max=$ac_count
3855 fi
3856 # 10*(2^10) chars as input seems more than enough
3857 test $ac_count -gt 10 && break
3858 done
3859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3860 esac
3861
3862 $ac_path_SED_found && break 3
3863 done
3864 done
3865 done
3866 IFS=$as_save_IFS
3867 if test -z "$ac_cv_path_SED"; then
3868 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3869 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3870 { (exit 1); exit 1; }; }
3871 fi
3872 else
3873 ac_cv_path_SED=$SED
3874 fi
3875
3876 fi
3877 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3878 $as_echo "$ac_cv_path_SED" >&6; }
3879 SED="$ac_cv_path_SED"
3880 rm -f conftest.sed
3881
3882 test -z "$SED" && SED=sed
3883 Xsed="$SED -e 1s/^X//"
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3897 if test "${ac_cv_path_GREP+set}" = set; then
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -z "$GREP"; then
3901 ac_path_GREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3905 do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in grep ggrep; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3911 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3912 # Check for GNU ac_path_GREP and select it if it is found.
3913 # Check for GNU $ac_path_GREP
3914 case `"$ac_path_GREP" --version 2>&1` in
3915 *GNU*)
3916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3917 *)
3918 ac_count=0
3919 $as_echo_n 0123456789 >"conftest.in"
3920 while :
3921 do
3922 cat "conftest.in" "conftest.in" >"conftest.tmp"
3923 mv "conftest.tmp" "conftest.in"
3924 cp "conftest.in" "conftest.nl"
3925 $as_echo 'GREP' >> "conftest.nl"
3926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928 ac_count=`expr $ac_count + 1`
3929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3930 # Best one so far, save it but keep looking for a better one
3931 ac_cv_path_GREP="$ac_path_GREP"
3932 ac_path_GREP_max=$ac_count
3933 fi
3934 # 10*(2^10) chars as input seems more than enough
3935 test $ac_count -gt 10 && break
3936 done
3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 esac
3939
3940 $ac_path_GREP_found && break 3
3941 done
3942 done
3943 done
3944 IFS=$as_save_IFS
3945 if test -z "$ac_cv_path_GREP"; then
3946 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3947 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3948 { (exit 1); exit 1; }; }
3949 fi
3950 else
3951 ac_cv_path_GREP=$GREP
3952 fi
3953
3954 fi
3955 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3956 $as_echo "$ac_cv_path_GREP" >&6; }
3957 GREP="$ac_cv_path_GREP"
3958
3959
3960 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3961 $as_echo_n "checking for egrep... " >&6; }
3962 if test "${ac_cv_path_EGREP+set}" = set; then
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3966 then ac_cv_path_EGREP="$GREP -E"
3967 else
3968 if test -z "$EGREP"; then
3969 ac_path_EGREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in egrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3980 # Check for GNU ac_path_EGREP and select it if it is found.
3981 # Check for GNU $ac_path_EGREP
3982 case `"$ac_path_EGREP" --version 2>&1` in
3983 *GNU*)
3984 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3985 *)
3986 ac_count=0
3987 $as_echo_n 0123456789 >"conftest.in"
3988 while :
3989 do
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 $as_echo 'EGREP' >> "conftest.nl"
3994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 ac_count=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_EGREP="$ac_path_EGREP"
4000 ac_path_EGREP_max=$ac_count
4001 fi
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4004 done
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4007
4008 $ac_path_EGREP_found && break 3
4009 done
4010 done
4011 done
4012 IFS=$as_save_IFS
4013 if test -z "$ac_cv_path_EGREP"; then
4014 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4015 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4016 { (exit 1); exit 1; }; }
4017 fi
4018 else
4019 ac_cv_path_EGREP=$EGREP
4020 fi
4021
4022 fi
4023 fi
4024 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4025 $as_echo "$ac_cv_path_EGREP" >&6; }
4026 EGREP="$ac_cv_path_EGREP"
4027
4028
4029 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4030 $as_echo_n "checking for fgrep... " >&6; }
4031 if test "${ac_cv_path_FGREP+set}" = set; then
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4035 then ac_cv_path_FGREP="$GREP -F"
4036 else
4037 if test -z "$FGREP"; then
4038 ac_path_FGREP_found=false
4039 # Loop through the user's path and test for each of PROGNAME-LIST
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4042 do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_prog in fgrep; do
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4048 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4049 # Check for GNU ac_path_FGREP and select it if it is found.
4050 # Check for GNU $ac_path_FGREP
4051 case `"$ac_path_FGREP" --version 2>&1` in
4052 *GNU*)
4053 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4054 *)
4055 ac_count=0
4056 $as_echo_n 0123456789 >"conftest.in"
4057 while :
4058 do
4059 cat "conftest.in" "conftest.in" >"conftest.tmp"
4060 mv "conftest.tmp" "conftest.in"
4061 cp "conftest.in" "conftest.nl"
4062 $as_echo 'FGREP' >> "conftest.nl"
4063 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4065 ac_count=`expr $ac_count + 1`
4066 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4067 # Best one so far, save it but keep looking for a better one
4068 ac_cv_path_FGREP="$ac_path_FGREP"
4069 ac_path_FGREP_max=$ac_count
4070 fi
4071 # 10*(2^10) chars as input seems more than enough
4072 test $ac_count -gt 10 && break
4073 done
4074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4075 esac
4076
4077 $ac_path_FGREP_found && break 3
4078 done
4079 done
4080 done
4081 IFS=$as_save_IFS
4082 if test -z "$ac_cv_path_FGREP"; then
4083 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4086 fi
4087 else
4088 ac_cv_path_FGREP=$FGREP
4089 fi
4090
4091 fi
4092 fi
4093 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4094 $as_echo "$ac_cv_path_FGREP" >&6; }
4095 FGREP="$ac_cv_path_FGREP"
4096
4097
4098 test -z "$GREP" && GREP=grep
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118 # Check whether --with-gnu-ld was given.
4119 if test "${with_gnu_ld+set}" = set; then
4120 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4121 else
4122 with_gnu_ld=no
4123 fi
4124
4125 ac_prog=ld
4126 if test "$GCC" = yes; then
4127 # Check if gcc -print-prog-name=ld gives a path.
4128 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4129 $as_echo_n "checking for ld used by $CC... " >&6; }
4130 case $host in
4131 *-*-mingw*)
4132 # gcc leaves a trailing carriage return which upsets mingw
4133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4134 *)
4135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4136 esac
4137 case $ac_prog in
4138 # Accept absolute paths.
4139 [\\/]* | ?:[\\/]*)
4140 re_direlt='/[^/][^/]*/\.\./'
4141 # Canonicalize the pathname of ld
4142 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4143 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4144 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4145 done
4146 test -z "$LD" && LD="$ac_prog"
4147 ;;
4148 "")
4149 # If it fails, then pretend we aren't using GCC.
4150 ac_prog=ld
4151 ;;
4152 *)
4153 # If it is relative, then search for the first ld in PATH.
4154 with_gnu_ld=unknown
4155 ;;
4156 esac
4157 elif test "$with_gnu_ld" = yes; then
4158 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4159 $as_echo_n "checking for GNU ld... " >&6; }
4160 else
4161 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4162 $as_echo_n "checking for non-GNU ld... " >&6; }
4163 fi
4164 if test "${lt_cv_path_LD+set}" = set; then
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -z "$LD"; then
4168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4169 for ac_dir in $PATH; do
4170 IFS="$lt_save_ifs"
4171 test -z "$ac_dir" && ac_dir=.
4172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4173 lt_cv_path_LD="$ac_dir/$ac_prog"
4174 # Check to see if the program is GNU ld. I'd rather use --version,
4175 # but apparently some variants of GNU ld only accept -v.
4176 # Break only if it was the GNU/non-GNU ld that we prefer.
4177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4178 *GNU* | *'with BFD'*)
4179 test "$with_gnu_ld" != no && break
4180 ;;
4181 *)
4182 test "$with_gnu_ld" != yes && break
4183 ;;
4184 esac
4185 fi
4186 done
4187 IFS="$lt_save_ifs"
4188 else
4189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4190 fi
4191 fi
4192
4193 LD="$lt_cv_path_LD"
4194 if test -n "$LD"; then
4195 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4196 $as_echo "$LD" >&6; }
4197 else
4198 { $as_echo "$as_me:$LINENO: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4202 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4203 { (exit 1); exit 1; }; }
4204 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4205 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4208 else
4209 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4210 case `$LD -v 2>&1 </dev/null` in
4211 *GNU* | *'with BFD'*)
4212 lt_cv_prog_gnu_ld=yes
4213 ;;
4214 *)
4215 lt_cv_prog_gnu_ld=no
4216 ;;
4217 esac
4218 fi
4219 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4220 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4221 with_gnu_ld=$lt_cv_prog_gnu_ld
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4232 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4233 if test "${lt_cv_path_NM+set}" = set; then
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$NM"; then
4237 # Let the user override the test.
4238 lt_cv_path_NM="$NM"
4239 else
4240 lt_nm_to_check="${ac_tool_prefix}nm"
4241 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4242 lt_nm_to_check="$lt_nm_to_check nm"
4243 fi
4244 for lt_tmp_nm in $lt_nm_to_check; do
4245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4246 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4247 IFS="$lt_save_ifs"
4248 test -z "$ac_dir" && ac_dir=.
4249 tmp_nm="$ac_dir/$lt_tmp_nm"
4250 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4251 # Check to see if the nm accepts a BSD-compat flag.
4252 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4253 # nm: unknown option "B" ignored
4254 # Tru64's nm complains that /dev/null is an invalid object file
4255 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4256 */dev/null* | *'Invalid file or object type'*)
4257 lt_cv_path_NM="$tmp_nm -B"
4258 break
4259 ;;
4260 *)
4261 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4262 */dev/null*)
4263 lt_cv_path_NM="$tmp_nm -p"
4264 break
4265 ;;
4266 *)
4267 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4268 continue # so that we can try to find one that supports BSD flags
4269 ;;
4270 esac
4271 ;;
4272 esac
4273 fi
4274 done
4275 IFS="$lt_save_ifs"
4276 done
4277 : ${lt_cv_path_NM=no}
4278 fi
4279 fi
4280 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4281 $as_echo "$lt_cv_path_NM" >&6; }
4282 if test "$lt_cv_path_NM" != "no"; then
4283 NM="$lt_cv_path_NM"
4284 else
4285 # Didn't find any BSD compatible name lister, look for dumpbin.
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4288 do
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$DUMPBIN"; then
4297 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 DUMPBIN=$ac_cv_prog_DUMPBIN
4317 if test -n "$DUMPBIN"; then
4318 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4319 $as_echo "$DUMPBIN" >&6; }
4320 else
4321 { $as_echo "$as_me:$LINENO: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326 test -n "$DUMPBIN" && break
4327 done
4328 fi
4329 if test -z "$DUMPBIN"; then
4330 ac_ct_DUMPBIN=$DUMPBIN
4331 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4332 do
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$ac_ct_DUMPBIN"; then
4341 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4361 if test -n "$ac_ct_DUMPBIN"; then
4362 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4363 $as_echo "$ac_ct_DUMPBIN" >&6; }
4364 else
4365 { $as_echo "$as_me:$LINENO: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 test -n "$ac_ct_DUMPBIN" && break
4371 done
4372
4373 if test "x$ac_ct_DUMPBIN" = x; then
4374 DUMPBIN=":"
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377 yes:)
4378 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4381 esac
4382 DUMPBIN=$ac_ct_DUMPBIN
4383 fi
4384 fi
4385
4386
4387 if test "$DUMPBIN" != ":"; then
4388 NM="$DUMPBIN"
4389 fi
4390 fi
4391 test -z "$NM" && NM=nm
4392
4393
4394
4395
4396
4397
4398 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4399 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4400 if test "${lt_cv_nm_interface+set}" = set; then
4401 $as_echo_n "(cached) " >&6
4402 else
4403 lt_cv_nm_interface="BSD nm"
4404 echo "int some_variable = 0;" > conftest.$ac_ext
4405 (eval echo "\"\$as_me:4405: $ac_compile\"" >&5)
4406 (eval "$ac_compile" 2>conftest.err)
4407 cat conftest.err >&5
4408 (eval echo "\"\$as_me:4408: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4409 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4410 cat conftest.err >&5
4411 (eval echo "\"\$as_me:4411: output\"" >&5)
4412 cat conftest.out >&5
4413 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4414 lt_cv_nm_interface="MS dumpbin"
4415 fi
4416 rm -f conftest*
4417 fi
4418 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4419 $as_echo "$lt_cv_nm_interface" >&6; }
4420
4421 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4422 $as_echo_n "checking whether ln -s works... " >&6; }
4423 LN_S=$as_ln_s
4424 if test "$LN_S" = "ln -s"; then
4425 { $as_echo "$as_me:$LINENO: result: yes" >&5
4426 $as_echo "yes" >&6; }
4427 else
4428 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4429 $as_echo "no, using $LN_S" >&6; }
4430 fi
4431
4432 # find the maximum length of command line arguments
4433 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4434 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4435 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4437 else
4438 i=0
4439 teststring="ABCD"
4440
4441 case $build_os in
4442 msdosdjgpp*)
4443 # On DJGPP, this test can blow up pretty badly due to problems in libc
4444 # (any single argument exceeding 2000 bytes causes a buffer overrun
4445 # during glob expansion). Even if it were fixed, the result of this
4446 # check would be larger than it should be.
4447 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4448 ;;
4449
4450 gnu*)
4451 # Under GNU Hurd, this test is not required because there is
4452 # no limit to the length of command line arguments.
4453 # Libtool will interpret -1 as no limit whatsoever
4454 lt_cv_sys_max_cmd_len=-1;
4455 ;;
4456
4457 cygwin* | mingw* | cegcc*)
4458 # On Win9x/ME, this test blows up -- it succeeds, but takes
4459 # about 5 minutes as the teststring grows exponentially.
4460 # Worse, since 9x/ME are not pre-emptively multitasking,
4461 # you end up with a "frozen" computer, even though with patience
4462 # the test eventually succeeds (with a max line length of 256k).
4463 # Instead, let's just punt: use the minimum linelength reported by
4464 # all of the supported platforms: 8192 (on NT/2K/XP).
4465 lt_cv_sys_max_cmd_len=8192;
4466 ;;
4467
4468 amigaos*)
4469 # On AmigaOS with pdksh, this test takes hours, literally.
4470 # So we just punt and use a minimum line length of 8192.
4471 lt_cv_sys_max_cmd_len=8192;
4472 ;;
4473
4474 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4475 # This has been around since 386BSD, at least. Likely further.
4476 if test -x /sbin/sysctl; then
4477 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4478 elif test -x /usr/sbin/sysctl; then
4479 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4480 else
4481 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4482 fi
4483 # And add a safety zone
4484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4486 ;;
4487
4488 interix*)
4489 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4490 lt_cv_sys_max_cmd_len=196608
4491 ;;
4492
4493 osf*)
4494 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4495 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4496 # nice to cause kernel panics so lets avoid the loop below.
4497 # First set a reasonable default.
4498 lt_cv_sys_max_cmd_len=16384
4499 #
4500 if test -x /sbin/sysconfig; then
4501 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4502 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4503 esac
4504 fi
4505 ;;
4506 sco3.2v5*)
4507 lt_cv_sys_max_cmd_len=102400
4508 ;;
4509 sysv5* | sco5v6* | sysv4.2uw2*)
4510 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4511 if test -n "$kargmax"; then
4512 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4513 else
4514 lt_cv_sys_max_cmd_len=32768
4515 fi
4516 ;;
4517 *)
4518 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4519 if test -n "$lt_cv_sys_max_cmd_len"; then
4520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4522 else
4523 # Make teststring a little bigger before we do anything with it.
4524 # a 1K string should be a reasonable start.
4525 for i in 1 2 3 4 5 6 7 8 ; do
4526 teststring=$teststring$teststring
4527 done
4528 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4529 # If test is not a shell built-in, we'll probably end up computing a
4530 # maximum length that is only half of the actual maximum length, but
4531 # we can't tell.
4532 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4533 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4534 test $i != 17 # 1/2 MB should be enough
4535 do
4536 i=`expr $i + 1`
4537 teststring=$teststring$teststring
4538 done
4539 # Only check the string length outside the loop.
4540 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4541 teststring=
4542 # Add a significant safety factor because C++ compilers can tack on
4543 # massive amounts of additional arguments before passing them to the
4544 # linker. It appears as though 1/2 is a usable value.
4545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4546 fi
4547 ;;
4548 esac
4549
4550 fi
4551
4552 if test -n $lt_cv_sys_max_cmd_len ; then
4553 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4554 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4555 else
4556 { $as_echo "$as_me:$LINENO: result: none" >&5
4557 $as_echo "none" >&6; }
4558 fi
4559 max_cmd_len=$lt_cv_sys_max_cmd_len
4560
4561
4562
4563
4564
4565
4566 : ${CP="cp -f"}
4567 : ${MV="mv -f"}
4568 : ${RM="rm -f"}
4569
4570 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4571 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4572 # Try some XSI features
4573 xsi_shell=no
4574 ( _lt_dummy="a/b/c"
4575 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4576 = c,a/b,, \
4577 && eval 'test $(( 1 + 1 )) -eq 2 \
4578 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4579 && xsi_shell=yes
4580 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4581 $as_echo "$xsi_shell" >&6; }
4582
4583
4584 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4585 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4586 lt_shell_append=no
4587 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4588 >/dev/null 2>&1 \
4589 && lt_shell_append=yes
4590 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4591 $as_echo "$lt_shell_append" >&6; }
4592
4593
4594 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4595 lt_unset=unset
4596 else
4597 lt_unset=false
4598 fi
4599
4600
4601
4602
4603
4604 # test EBCDIC or ASCII
4605 case `echo X|tr X '\101'` in
4606 A) # ASCII based system
4607 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4608 lt_SP2NL='tr \040 \012'
4609 lt_NL2SP='tr \015\012 \040\040'
4610 ;;
4611 *) # EBCDIC based system
4612 lt_SP2NL='tr \100 \n'
4613 lt_NL2SP='tr \r\n \100\100'
4614 ;;
4615 esac
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4626 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4627 if test "${lt_cv_ld_reload_flag+set}" = set; then
4628 $as_echo_n "(cached) " >&6
4629 else
4630 lt_cv_ld_reload_flag='-r'
4631 fi
4632 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4633 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4634 reload_flag=$lt_cv_ld_reload_flag
4635 case $reload_flag in
4636 "" | " "*) ;;
4637 *) reload_flag=" $reload_flag" ;;
4638 esac
4639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4640 case $host_os in
4641 darwin*)
4642 if test "$GCC" = yes; then
4643 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4644 else
4645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4646 fi
4647 ;;
4648 esac
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$OBJDUMP"; then
4667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 OBJDUMP=$ac_cv_prog_OBJDUMP
4687 if test -n "$OBJDUMP"; then
4688 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4689 $as_echo "$OBJDUMP" >&6; }
4690 else
4691 { $as_echo "$as_me:$LINENO: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695
4696 fi
4697 if test -z "$ac_cv_prog_OBJDUMP"; then
4698 ac_ct_OBJDUMP=$OBJDUMP
4699 # Extract the first word of "objdump", so it can be a program name with args.
4700 set dummy objdump; ac_word=$2
4701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$ac_ct_OBJDUMP"; then
4707 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4727 if test -n "$ac_ct_OBJDUMP"; then
4728 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4729 $as_echo "$ac_ct_OBJDUMP" >&6; }
4730 else
4731 { $as_echo "$as_me:$LINENO: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735 if test "x$ac_ct_OBJDUMP" = x; then
4736 OBJDUMP="false"
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4743 esac
4744 OBJDUMP=$ac_ct_OBJDUMP
4745 fi
4746 else
4747 OBJDUMP="$ac_cv_prog_OBJDUMP"
4748 fi
4749
4750 test -z "$OBJDUMP" && OBJDUMP=objdump
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4761 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4762 if test "${lt_cv_deplibs_check_method+set}" = set; then
4763 $as_echo_n "(cached) " >&6
4764 else
4765 lt_cv_file_magic_cmd='$MAGIC_CMD'
4766 lt_cv_file_magic_test_file=
4767 lt_cv_deplibs_check_method='unknown'
4768 # Need to set the preceding variable on all platforms that support
4769 # interlibrary dependencies.
4770 # 'none' -- dependencies not supported.
4771 # `unknown' -- same as none, but documents that we really don't know.
4772 # 'pass_all' -- all dependencies passed with no checks.
4773 # 'test_compile' -- check by making test program.
4774 # 'file_magic [[regex]]' -- check by looking for files in library path
4775 # which responds to the $file_magic_cmd with a given extended regex.
4776 # If you have `file' or equivalent on your system and you're not sure
4777 # whether `pass_all' will *always* work, you probably want this one.
4778
4779 case $host_os in
4780 aix[4-9]*)
4781 lt_cv_deplibs_check_method=pass_all
4782 ;;
4783
4784 beos*)
4785 lt_cv_deplibs_check_method=pass_all
4786 ;;
4787
4788 bsdi[45]*)
4789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4790 lt_cv_file_magic_cmd='/usr/bin/file -L'
4791 lt_cv_file_magic_test_file=/shlib/libc.so
4792 ;;
4793
4794 cygwin*)
4795 # func_win32_libid is a shell function defined in ltmain.sh
4796 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4797 lt_cv_file_magic_cmd='func_win32_libid'
4798 ;;
4799
4800 mingw* | pw32*)
4801 # Base MSYS/MinGW do not provide the 'file' command needed by
4802 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4803 # unless we find 'file', for example because we are cross-compiling.
4804 if ( file / ) >/dev/null 2>&1; then
4805 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4806 lt_cv_file_magic_cmd='func_win32_libid'
4807 else
4808 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4809 lt_cv_file_magic_cmd='$OBJDUMP -f'
4810 fi
4811 ;;
4812
4813 cegcc)
4814 # use the weaker test based on 'objdump'. See mingw*.
4815 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4816 lt_cv_file_magic_cmd='$OBJDUMP -f'
4817 ;;
4818
4819 darwin* | rhapsody*)
4820 lt_cv_deplibs_check_method=pass_all
4821 ;;
4822
4823 freebsd* | dragonfly*)
4824 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4825 case $host_cpu in
4826 i*86 )
4827 # Not sure whether the presence of OpenBSD here was a mistake.
4828 # Let's accept both of them until this is cleared up.
4829 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4830 lt_cv_file_magic_cmd=/usr/bin/file
4831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4832 ;;
4833 esac
4834 else
4835 lt_cv_deplibs_check_method=pass_all
4836 fi
4837 ;;
4838
4839 gnu*)
4840 lt_cv_deplibs_check_method=pass_all
4841 ;;
4842
4843 hpux10.20* | hpux11*)
4844 lt_cv_file_magic_cmd=/usr/bin/file
4845 case $host_cpu in
4846 ia64*)
4847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4848 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4849 ;;
4850 hppa*64*)
4851 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]'
4852 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4853 ;;
4854 *)
4855 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4856 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4857 ;;
4858 esac
4859 ;;
4860
4861 interix[3-9]*)
4862 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4864 ;;
4865
4866 irix5* | irix6* | nonstopux*)
4867 case $LD in
4868 *-32|*"-32 ") libmagic=32-bit;;
4869 *-n32|*"-n32 ") libmagic=N32;;
4870 *-64|*"-64 ") libmagic=64-bit;;
4871 *) libmagic=never-match;;
4872 esac
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875
4876 # This must be Linux ELF.
4877 linux* | k*bsd*-gnu)
4878 lt_cv_deplibs_check_method=pass_all
4879 ;;
4880
4881 netbsd*)
4882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4884 else
4885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4886 fi
4887 ;;
4888
4889 newos6*)
4890 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4891 lt_cv_file_magic_cmd=/usr/bin/file
4892 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4893 ;;
4894
4895 *nto* | *qnx*)
4896 lt_cv_deplibs_check_method=pass_all
4897 ;;
4898
4899 openbsd*)
4900 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4902 else
4903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4904 fi
4905 ;;
4906
4907 osf3* | osf4* | osf5*)
4908 lt_cv_deplibs_check_method=pass_all
4909 ;;
4910
4911 rdos*)
4912 lt_cv_deplibs_check_method=pass_all
4913 ;;
4914
4915 solaris*)
4916 lt_cv_deplibs_check_method=pass_all
4917 ;;
4918
4919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4920 lt_cv_deplibs_check_method=pass_all
4921 ;;
4922
4923 sysv4 | sysv4.3*)
4924 case $host_vendor in
4925 motorola)
4926 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]'
4927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4928 ;;
4929 ncr)
4930 lt_cv_deplibs_check_method=pass_all
4931 ;;
4932 sequent)
4933 lt_cv_file_magic_cmd='/bin/file'
4934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4935 ;;
4936 sni)
4937 lt_cv_file_magic_cmd='/bin/file'
4938 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4939 lt_cv_file_magic_test_file=/lib/libc.so
4940 ;;
4941 siemens)
4942 lt_cv_deplibs_check_method=pass_all
4943 ;;
4944 pc)
4945 lt_cv_deplibs_check_method=pass_all
4946 ;;
4947 esac
4948 ;;
4949
4950 tpf*)
4951 lt_cv_deplibs_check_method=pass_all
4952 ;;
4953 esac
4954
4955 fi
4956 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4957 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4958 file_magic_cmd=$lt_cv_file_magic_cmd
4959 deplibs_check_method=$lt_cv_deplibs_check_method
4960 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 if test -n "$ac_tool_prefix"; then
4974 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}ar; ac_word=$2
4976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_AR+set}" = set; then
4979 $as_echo_n "(cached) " >&6
4980 else
4981 if test -n "$AR"; then
4982 ac_cv_prog_AR="$AR" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_AR="${ac_tool_prefix}ar"
4992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4994 fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 AR=$ac_cv_prog_AR
5002 if test -n "$AR"; then
5003 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5004 $as_echo "$AR" >&6; }
5005 else
5006 { $as_echo "$as_me:$LINENO: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010
5011 fi
5012 if test -z "$ac_cv_prog_AR"; then
5013 ac_ct_AR=$AR
5014 # Extract the first word of "ar", so it can be a program name with args.
5015 set dummy ar; ac_word=$2
5016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -n "$ac_ct_AR"; then
5022 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_ac_ct_AR="ar"
5032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5042 if test -n "$ac_ct_AR"; then
5043 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5044 $as_echo "$ac_ct_AR" >&6; }
5045 else
5046 { $as_echo "$as_me:$LINENO: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050 if test "x$ac_ct_AR" = x; then
5051 AR="false"
5052 else
5053 case $cross_compiling:$ac_tool_warned in
5054 yes:)
5055 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057 ac_tool_warned=yes ;;
5058 esac
5059 AR=$ac_ct_AR
5060 fi
5061 else
5062 AR="$ac_cv_prog_AR"
5063 fi
5064
5065 test -z "$AR" && AR=ar
5066 test -z "$AR_FLAGS" && AR_FLAGS=cru
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}strip; ac_word=$2
5081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_STRIP+set}" = set; then
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$STRIP"; then
5087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5099 fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104 fi
5105 fi
5106 STRIP=$ac_cv_prog_STRIP
5107 if test -n "$STRIP"; then
5108 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5109 $as_echo "$STRIP" >&6; }
5110 else
5111 { $as_echo "$as_me:$LINENO: result: no" >&5
5112 $as_echo "no" >&6; }
5113 fi
5114
5115
5116 fi
5117 if test -z "$ac_cv_prog_STRIP"; then
5118 ac_ct_STRIP=$STRIP
5119 # Extract the first word of "strip", so it can be a program name with args.
5120 set dummy strip; ac_word=$2
5121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -n "$ac_ct_STRIP"; then
5127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_ac_ct_STRIP="strip"
5137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5147 if test -n "$ac_ct_STRIP"; then
5148 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5149 $as_echo "$ac_ct_STRIP" >&6; }
5150 else
5151 { $as_echo "$as_me:$LINENO: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155 if test "x$ac_ct_STRIP" = x; then
5156 STRIP=":"
5157 else
5158 case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164 STRIP=$ac_ct_STRIP
5165 fi
5166 else
5167 STRIP="$ac_cv_prog_STRIP"
5168 fi
5169
5170 test -z "$STRIP" && STRIP=:
5171
5172
5173
5174
5175
5176
5177 if test -n "$ac_tool_prefix"; then
5178 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_prog_RANLIB+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$RANLIB"; then
5186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 RANLIB=$ac_cv_prog_RANLIB
5206 if test -n "$RANLIB"; then
5207 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5208 $as_echo "$RANLIB" >&6; }
5209 else
5210 { $as_echo "$as_me:$LINENO: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 fi
5216 if test -z "$ac_cv_prog_RANLIB"; then
5217 ac_ct_RANLIB=$RANLIB
5218 # Extract the first word of "ranlib", so it can be a program name with args.
5219 set dummy ranlib; ac_word=$2
5220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$ac_ct_RANLIB"; then
5226 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_RANLIB="ranlib"
5236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5246 if test -n "$ac_ct_RANLIB"; then
5247 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5248 $as_echo "$ac_ct_RANLIB" >&6; }
5249 else
5250 { $as_echo "$as_me:$LINENO: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254 if test "x$ac_ct_RANLIB" = x; then
5255 RANLIB=":"
5256 else
5257 case $cross_compiling:$ac_tool_warned in
5258 yes:)
5259 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261 ac_tool_warned=yes ;;
5262 esac
5263 RANLIB=$ac_ct_RANLIB
5264 fi
5265 else
5266 RANLIB="$ac_cv_prog_RANLIB"
5267 fi
5268
5269 test -z "$RANLIB" && RANLIB=:
5270
5271
5272
5273
5274
5275
5276 # Determine commands to create old-style static archives.
5277 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5278 old_postinstall_cmds='chmod 644 $oldlib'
5279 old_postuninstall_cmds=
5280
5281 if test -n "$RANLIB"; then
5282 case $host_os in
5283 openbsd*)
5284 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5285 ;;
5286 *)
5287 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5288 ;;
5289 esac
5290 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5291 fi
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326 # If no C compiler was specified, use CC.
5327 LTCC=${LTCC-"$CC"}
5328
5329 # If no C compiler flags were specified, use CFLAGS.
5330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5331
5332 # Allow CC to be a program name with arguments.
5333 compiler=$CC
5334
5335
5336 # Check for command to grab the raw symbol name followed by C symbol from nm.
5337 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5338 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5339 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5340 $as_echo_n "(cached) " >&6
5341 else
5342
5343 # These are sane defaults that work on at least a few old systems.
5344 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5345
5346 # Character class describing NM global symbol codes.
5347 symcode='[BCDEGRST]'
5348
5349 # Regexp to match symbols that can be accessed directly from C.
5350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5351
5352 # Define system-specific variables.
5353 case $host_os in
5354 aix*)
5355 symcode='[BCDT]'
5356 ;;
5357 cygwin* | mingw* | pw32* | cegcc*)
5358 symcode='[ABCDGISTW]'
5359 ;;
5360 hpux*)
5361 if test "$host_cpu" = ia64; then
5362 symcode='[ABCDEGRST]'
5363 fi
5364 ;;
5365 irix* | nonstopux*)
5366 symcode='[BCDEGRST]'
5367 ;;
5368 osf*)
5369 symcode='[BCDEGQRST]'
5370 ;;
5371 solaris*)
5372 symcode='[BDRT]'
5373 ;;
5374 sco3.2v5*)
5375 symcode='[DT]'
5376 ;;
5377 sysv4.2uw2*)
5378 symcode='[DT]'
5379 ;;
5380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5381 symcode='[ABDT]'
5382 ;;
5383 sysv4)
5384 symcode='[DFNSTU]'
5385 ;;
5386 esac
5387
5388 # If we're using GNU nm, then use its standard symbol codes.
5389 case `$NM -V 2>&1` in
5390 *GNU* | *'with BFD'*)
5391 symcode='[ABCDGIRSTW]' ;;
5392 esac
5393
5394 # Transform an extracted symbol line into a proper C declaration.
5395 # Some systems (esp. on ia64) link data and code symbols differently,
5396 # so use this general approach.
5397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5398
5399 # Transform an extracted symbol line into symbol name and symbol address
5400 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5401 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'"
5402
5403 # Handle CRLF in mingw tool chain
5404 opt_cr=
5405 case $build_os in
5406 mingw*)
5407 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5408 ;;
5409 esac
5410
5411 # Try without a prefix underscore, then with it.
5412 for ac_symprfx in "" "_"; do
5413
5414 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5415 symxfrm="\\1 $ac_symprfx\\2 \\2"
5416
5417 # Write the raw and C identifiers.
5418 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5419 # Fake it for dumpbin and say T for any non-static function
5420 # and D for any global variable.
5421 # Also find C++ and __fastcall symbols from MSVC++,
5422 # which start with @ or ?.
5423 lt_cv_sys_global_symbol_pipe="$AWK '"\
5424 " {last_section=section; section=\$ 3};"\
5425 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5426 " \$ 0!~/External *\|/{next};"\
5427 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5428 " {if(hide[section]) next};"\
5429 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5430 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5431 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5432 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5433 " ' prfx=^$ac_symprfx"
5434 else
5435 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5436 fi
5437
5438 # Check to see that the pipe works correctly.
5439 pipe_works=no
5440
5441 rm -f conftest*
5442 cat > conftest.$ac_ext <<_LT_EOF
5443 #ifdef __cplusplus
5444 extern "C" {
5445 #endif
5446 char nm_test_var;
5447 void nm_test_func(void);
5448 void nm_test_func(void){}
5449 #ifdef __cplusplus
5450 }
5451 #endif
5452 int main(){nm_test_var='a';nm_test_func();return(0);}
5453 _LT_EOF
5454
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>&5
5457 ac_status=$?
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; then
5460 # Now try to grab the symbols.
5461 nlist=conftest.nm
5462 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5463 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5464 ac_status=$?
5465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && test -s "$nlist"; then
5467 # Try sorting and uniquifying the output.
5468 if sort "$nlist" | uniq > "$nlist"T; then
5469 mv -f "$nlist"T "$nlist"
5470 else
5471 rm -f "$nlist"T
5472 fi
5473
5474 # Make sure that we snagged all the symbols we need.
5475 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5476 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5477 cat <<_LT_EOF > conftest.$ac_ext
5478 #ifdef __cplusplus
5479 extern "C" {
5480 #endif
5481
5482 _LT_EOF
5483 # Now generate the symbol file.
5484 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5485
5486 cat <<_LT_EOF >> conftest.$ac_ext
5487
5488 /* The mapping between symbol names and symbols. */
5489 const struct {
5490 const char *name;
5491 void *address;
5492 }
5493 lt__PROGRAM__LTX_preloaded_symbols[] =
5494 {
5495 { "@PROGRAM@", (void *) 0 },
5496 _LT_EOF
5497 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5498 cat <<\_LT_EOF >> conftest.$ac_ext
5499 {0, (void *) 0}
5500 };
5501
5502 /* This works around a problem in FreeBSD linker */
5503 #ifdef FREEBSD_WORKAROUND
5504 static const void *lt_preloaded_setup() {
5505 return lt__PROGRAM__LTX_preloaded_symbols;
5506 }
5507 #endif
5508
5509 #ifdef __cplusplus
5510 }
5511 #endif
5512 _LT_EOF
5513 # Now try linking the two files.
5514 mv conftest.$ac_objext conftstm.$ac_objext
5515 lt_save_LIBS="$LIBS"
5516 lt_save_CFLAGS="$CFLAGS"
5517 LIBS="conftstm.$ac_objext"
5518 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5521 ac_status=$?
5522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5524 pipe_works=yes
5525 fi
5526 LIBS="$lt_save_LIBS"
5527 CFLAGS="$lt_save_CFLAGS"
5528 else
5529 echo "cannot find nm_test_func in $nlist" >&5
5530 fi
5531 else
5532 echo "cannot find nm_test_var in $nlist" >&5
5533 fi
5534 else
5535 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5536 fi
5537 else
5538 echo "$progname: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 fi
5541 rm -rf conftest* conftst*
5542
5543 # Do not use the global_symbol_pipe unless it works.
5544 if test "$pipe_works" = yes; then
5545 break
5546 else
5547 lt_cv_sys_global_symbol_pipe=
5548 fi
5549 done
5550
5551 fi
5552
5553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5554 lt_cv_sys_global_symbol_to_cdecl=
5555 fi
5556 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5557 { $as_echo "$as_me:$LINENO: result: failed" >&5
5558 $as_echo "failed" >&6; }
5559 else
5560 { $as_echo "$as_me:$LINENO: result: ok" >&5
5561 $as_echo "ok" >&6; }
5562 fi
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 # Check whether --enable-libtool-lock was given.
5587 if test "${enable_libtool_lock+set}" = set; then
5588 enableval=$enable_libtool_lock;
5589 fi
5590
5591 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5592
5593 # Some flags need to be propagated to the compiler or linker for good
5594 # libtool support.
5595 case $host in
5596 ia64-*-hpux*)
5597 # Find out which ABI we are using.
5598 echo 'int i;' > conftest.$ac_ext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>&5
5601 ac_status=$?
5602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; then
5604 case `/usr/bin/file conftest.$ac_objext` in
5605 *ELF-32*)
5606 HPUX_IA64_MODE="32"
5607 ;;
5608 *ELF-64*)
5609 HPUX_IA64_MODE="64"
5610 ;;
5611 esac
5612 fi
5613 rm -rf conftest*
5614 ;;
5615 *-*-irix6*)
5616 # Find out which ABI we are using.
5617 echo '#line 5617 "configure"' > conftest.$ac_ext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>&5
5620 ac_status=$?
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; then
5623 if test "$lt_cv_prog_gnu_ld" = yes; then
5624 case `/usr/bin/file conftest.$ac_objext` in
5625 *32-bit*)
5626 LD="${LD-ld} -melf32bsmip"
5627 ;;
5628 *N32*)
5629 LD="${LD-ld} -melf32bmipn32"
5630 ;;
5631 *64-bit*)
5632 LD="${LD-ld} -melf64bmip"
5633 ;;
5634 esac
5635 else
5636 case `/usr/bin/file conftest.$ac_objext` in
5637 *32-bit*)
5638 LD="${LD-ld} -32"
5639 ;;
5640 *N32*)
5641 LD="${LD-ld} -n32"
5642 ;;
5643 *64-bit*)
5644 LD="${LD-ld} -64"
5645 ;;
5646 esac
5647 fi
5648 fi
5649 rm -rf conftest*
5650 ;;
5651
5652 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5653 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5654 # Find out which ABI we are using.
5655 echo 'int i;' > conftest.$ac_ext
5656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5657 (eval $ac_compile) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; then
5661 case `/usr/bin/file conftest.o` in
5662 *32-bit*)
5663 case $host in
5664 x86_64-*kfreebsd*-gnu)
5665 LD="${LD-ld} -m elf_i386_fbsd"
5666 ;;
5667 x86_64-*linux*)
5668 LD="${LD-ld} -m elf_i386"
5669 ;;
5670 ppc64-*linux*|powerpc64-*linux*)
5671 LD="${LD-ld} -m elf32ppclinux"
5672 ;;
5673 s390x-*linux*)
5674 LD="${LD-ld} -m elf_s390"
5675 ;;
5676 sparc64-*linux*)
5677 LD="${LD-ld} -m elf32_sparc"
5678 ;;
5679 esac
5680 ;;
5681 *64-bit*)
5682 case $host in
5683 x86_64-*kfreebsd*-gnu)
5684 LD="${LD-ld} -m elf_x86_64_fbsd"
5685 ;;
5686 x86_64-*linux*)
5687 LD="${LD-ld} -m elf_x86_64"
5688 ;;
5689 ppc*-*linux*|powerpc*-*linux*)
5690 LD="${LD-ld} -m elf64ppc"
5691 ;;
5692 s390*-*linux*|s390*-*tpf*)
5693 LD="${LD-ld} -m elf64_s390"
5694 ;;
5695 sparc*-*linux*)
5696 LD="${LD-ld} -m elf64_sparc"
5697 ;;
5698 esac
5699 ;;
5700 esac
5701 fi
5702 rm -rf conftest*
5703 ;;
5704
5705 *-*-sco3.2v5*)
5706 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5707 SAVE_CFLAGS="$CFLAGS"
5708 CFLAGS="$CFLAGS -belf"
5709 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5710 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5711 if test "${lt_cv_cc_needs_belf+set}" = set; then
5712 $as_echo_n "(cached) " >&6
5713 else
5714 ac_ext=c
5715 ac_cpp='$CPP $CPPFLAGS'
5716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5719
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726
5727 int
5728 main ()
5729 {
5730
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (ac_try="$ac_link"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742 $as_echo "$ac_try_echo") >&5
5743 (eval "$ac_link") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest$ac_exeext && {
5753 test "$cross_compiling" = yes ||
5754 $as_test_x conftest$ac_exeext
5755 }; then
5756 lt_cv_cc_needs_belf=yes
5757 else
5758 $as_echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 lt_cv_cc_needs_belf=no
5762 fi
5763
5764 rm -rf conftest.dSYM
5765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5766 conftest$ac_exeext conftest.$ac_ext
5767 ac_ext=c
5768 ac_cpp='$CPP $CPPFLAGS'
5769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772
5773 fi
5774 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5775 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5776 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5777 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5778 CFLAGS="$SAVE_CFLAGS"
5779 fi
5780 ;;
5781 sparc*-*solaris*)
5782 # Find out which ABI we are using.
5783 echo 'int i;' > conftest.$ac_ext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>&5
5786 ac_status=$?
5787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; then
5789 case `/usr/bin/file conftest.o` in
5790 *64-bit*)
5791 case $lt_cv_prog_gnu_ld in
5792 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5793 *)
5794 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5795 LD="${LD-ld} -64"
5796 fi
5797 ;;
5798 esac
5799 ;;
5800 esac
5801 fi
5802 rm -rf conftest*
5803 ;;
5804 esac
5805
5806 need_locks="$enable_libtool_lock"
5807
5808
5809 case $host_os in
5810 rhapsody* | darwin*)
5811 if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5813 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$DSYMUTIL"; then
5820 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5840 if test -n "$DSYMUTIL"; then
5841 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5842 $as_echo "$DSYMUTIL" >&6; }
5843 else
5844 { $as_echo "$as_me:$LINENO: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848
5849 fi
5850 if test -z "$ac_cv_prog_DSYMUTIL"; then
5851 ac_ct_DSYMUTIL=$DSYMUTIL
5852 # Extract the first word of "dsymutil", so it can be a program name with args.
5853 set dummy dsymutil; ac_word=$2
5854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -n "$ac_ct_DSYMUTIL"; then
5860 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5880 if test -n "$ac_ct_DSYMUTIL"; then
5881 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5882 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5883 else
5884 { $as_echo "$as_me:$LINENO: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888 if test "x$ac_ct_DSYMUTIL" = x; then
5889 DSYMUTIL=":"
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 DSYMUTIL=$ac_ct_DSYMUTIL
5898 fi
5899 else
5900 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5901 fi
5902
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$NMEDIT"; then
5912 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5922 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 NMEDIT=$ac_cv_prog_NMEDIT
5932 if test -n "$NMEDIT"; then
5933 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5934 $as_echo "$NMEDIT" >&6; }
5935 else
5936 { $as_echo "$as_me:$LINENO: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_NMEDIT"; then
5943 ac_ct_NMEDIT=$NMEDIT
5944 # Extract the first word of "nmedit", so it can be a program name with args.
5945 set dummy nmedit; ac_word=$2
5946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_NMEDIT"; then
5952 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5972 if test -n "$ac_ct_NMEDIT"; then
5973 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5974 $as_echo "$ac_ct_NMEDIT" >&6; }
5975 else
5976 { $as_echo "$as_me:$LINENO: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980 if test "x$ac_ct_NMEDIT" = x; then
5981 NMEDIT=":"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987 ac_tool_warned=yes ;;
5988 esac
5989 NMEDIT=$ac_ct_NMEDIT
5990 fi
5991 else
5992 NMEDIT="$ac_cv_prog_NMEDIT"
5993 fi
5994
5995 if test -n "$ac_tool_prefix"; then
5996 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_LIPO+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$LIPO"; then
6004 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 LIPO=$ac_cv_prog_LIPO
6024 if test -n "$LIPO"; then
6025 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6026 $as_echo "$LIPO" >&6; }
6027 else
6028 { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033 fi
6034 if test -z "$ac_cv_prog_LIPO"; then
6035 ac_ct_LIPO=$LIPO
6036 # Extract the first word of "lipo", so it can be a program name with args.
6037 set dummy lipo; ac_word=$2
6038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_LIPO"; then
6044 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_ac_ct_LIPO="lipo"
6054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6064 if test -n "$ac_ct_LIPO"; then
6065 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6066 $as_echo "$ac_ct_LIPO" >&6; }
6067 else
6068 { $as_echo "$as_me:$LINENO: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072 if test "x$ac_ct_LIPO" = x; then
6073 LIPO=":"
6074 else
6075 case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081 LIPO=$ac_ct_LIPO
6082 fi
6083 else
6084 LIPO="$ac_cv_prog_LIPO"
6085 fi
6086
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}otool; ac_word=$2
6090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_OTOOL+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$OTOOL"; then
6096 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 OTOOL=$ac_cv_prog_OTOOL
6116 if test -n "$OTOOL"; then
6117 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6118 $as_echo "$OTOOL" >&6; }
6119 else
6120 { $as_echo "$as_me:$LINENO: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_OTOOL"; then
6127 ac_ct_OTOOL=$OTOOL
6128 # Extract the first word of "otool", so it can be a program name with args.
6129 set dummy otool; ac_word=$2
6130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$ac_ct_OTOOL"; then
6136 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_ac_ct_OTOOL="otool"
6146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6156 if test -n "$ac_ct_OTOOL"; then
6157 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6158 $as_echo "$ac_ct_OTOOL" >&6; }
6159 else
6160 { $as_echo "$as_me:$LINENO: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164 if test "x$ac_ct_OTOOL" = x; then
6165 OTOOL=":"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 OTOOL=$ac_ct_OTOOL
6174 fi
6175 else
6176 OTOOL="$ac_cv_prog_OTOOL"
6177 fi
6178
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$OTOOL64"; then
6188 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 OTOOL64=$ac_cv_prog_OTOOL64
6208 if test -n "$OTOOL64"; then
6209 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6210 $as_echo "$OTOOL64" >&6; }
6211 else
6212 { $as_echo "$as_me:$LINENO: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217 fi
6218 if test -z "$ac_cv_prog_OTOOL64"; then
6219 ac_ct_OTOOL64=$OTOOL64
6220 # Extract the first word of "otool64", so it can be a program name with args.
6221 set dummy otool64; ac_word=$2
6222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -n "$ac_ct_OTOOL64"; then
6228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_ac_ct_OTOOL64="otool64"
6238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6248 if test -n "$ac_ct_OTOOL64"; then
6249 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6250 $as_echo "$ac_ct_OTOOL64" >&6; }
6251 else
6252 { $as_echo "$as_me:$LINENO: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256 if test "x$ac_ct_OTOOL64" = x; then
6257 OTOOL64=":"
6258 else
6259 case $cross_compiling:$ac_tool_warned in
6260 yes:)
6261 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263 ac_tool_warned=yes ;;
6264 esac
6265 OTOOL64=$ac_ct_OTOOL64
6266 fi
6267 else
6268 OTOOL64="$ac_cv_prog_OTOOL64"
6269 fi
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6298 $as_echo_n "checking for -single_module linker flag... " >&6; }
6299 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6301 else
6302 lt_cv_apple_cc_single_mod=no
6303 if test -z "${LT_MULTI_MODULE}"; then
6304 # By default we will add the -single_module flag. You can override
6305 # by either setting the environment variable LT_MULTI_MODULE
6306 # non-empty at configure time, or by adding -multi_module to the
6307 # link flags.
6308 rm -rf libconftest.dylib*
6309 echo "int foo(void){return 1;}" > conftest.c
6310 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6311 -dynamiclib -Wl,-single_module conftest.c" >&5
6312 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6313 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6314 _lt_result=$?
6315 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6316 lt_cv_apple_cc_single_mod=yes
6317 else
6318 cat conftest.err >&5
6319 fi
6320 rm -rf libconftest.dylib*
6321 rm -f conftest.*
6322 fi
6323 fi
6324 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6325 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6326 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6327 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6328 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6329 $as_echo_n "(cached) " >&6
6330 else
6331 lt_cv_ld_exported_symbols_list=no
6332 save_LDFLAGS=$LDFLAGS
6333 echo "_main" > conftest.sym
6334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341
6342 int
6343 main ()
6344 {
6345
6346 ;
6347 return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext conftest$ac_exeext
6351 if { (ac_try="$ac_link"
6352 case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6357 $as_echo "$ac_try_echo") >&5
6358 (eval "$ac_link") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest$ac_exeext && {
6368 test "$cross_compiling" = yes ||
6369 $as_test_x conftest$ac_exeext
6370 }; then
6371 lt_cv_ld_exported_symbols_list=yes
6372 else
6373 $as_echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 lt_cv_ld_exported_symbols_list=no
6377 fi
6378
6379 rm -rf conftest.dSYM
6380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6381 conftest$ac_exeext conftest.$ac_ext
6382 LDFLAGS="$save_LDFLAGS"
6383
6384 fi
6385 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6386 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6387 case $host_os in
6388 rhapsody* | darwin1.[012])
6389 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6390 darwin1.*)
6391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6392 darwin*) # darwin 5.x on
6393 # if running on 10.5 or later, the deployment target defaults
6394 # to the OS version, if on x86, and 10.4, the deployment
6395 # target defaults to 10.4. Don't you love it?
6396 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6397 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6398 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6399 10.[012]*)
6400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6401 10.*)
6402 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6403 esac
6404 ;;
6405 esac
6406 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6407 _lt_dar_single_mod='$single_module'
6408 fi
6409 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6410 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6411 else
6412 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6413 fi
6414 if test "$DSYMUTIL" != ":"; then
6415 _lt_dsymutil='~$DSYMUTIL $lib || :'
6416 else
6417 _lt_dsymutil=
6418 fi
6419 ;;
6420 esac
6421
6422 ac_ext=c
6423 ac_cpp='$CPP $CPPFLAGS'
6424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6429 # On Suns, sometimes $CPP names a directory.
6430 if test -n "$CPP" && test -d "$CPP"; then
6431 CPP=
6432 fi
6433 if test -z "$CPP"; then
6434 if test "${ac_cv_prog_CPP+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6436 else
6437 # Double quotes because CPP needs to be expanded
6438 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6439 do
6440 ac_preproc_ok=false
6441 for ac_c_preproc_warn_flag in '' yes
6442 do
6443 # Use a header file that comes with gcc, so configuring glibc
6444 # with a fresh cross-compiler works.
6445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446 # <limits.h> exists even on freestanding compilers.
6447 # On the NeXT, cc -E runs the code through the compiler's parser,
6448 # not just through cpp. "Syntax error" is here to catch this case.
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #ifdef __STDC__
6456 # include <limits.h>
6457 #else
6458 # include <assert.h>
6459 #endif
6460 Syntax error
6461 _ACEOF
6462 if { (ac_try="$ac_cpp conftest.$ac_ext"
6463 case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6468 $as_echo "$ac_try_echo") >&5
6469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } >/dev/null && {
6476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 }; then
6479 :
6480 else
6481 $as_echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 # Broken: fails on valid input.
6485 continue
6486 fi
6487
6488 rm -f conftest.err conftest.$ac_ext
6489
6490 # OK, works on sane cases. Now check whether nonexistent headers
6491 # can be detected and how.
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <ac_nonexistent.h>
6499 _ACEOF
6500 if { (ac_try="$ac_cpp conftest.$ac_ext"
6501 case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6504 esac
6505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506 $as_echo "$ac_try_echo") >&5
6507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } >/dev/null && {
6514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 }; then
6517 # Broken: success on invalid input.
6518 continue
6519 else
6520 $as_echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523 # Passes both tests.
6524 ac_preproc_ok=:
6525 break
6526 fi
6527
6528 rm -f conftest.err conftest.$ac_ext
6529
6530 done
6531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6532 rm -f conftest.err conftest.$ac_ext
6533 if $ac_preproc_ok; then
6534 break
6535 fi
6536
6537 done
6538 ac_cv_prog_CPP=$CPP
6539
6540 fi
6541 CPP=$ac_cv_prog_CPP
6542 else
6543 ac_cv_prog_CPP=$CPP
6544 fi
6545 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6546 $as_echo "$CPP" >&6; }
6547 ac_preproc_ok=false
6548 for ac_c_preproc_warn_flag in '' yes
6549 do
6550 # Use a header file that comes with gcc, so configuring glibc
6551 # with a fresh cross-compiler works.
6552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6553 # <limits.h> exists even on freestanding compilers.
6554 # On the NeXT, cc -E runs the code through the compiler's parser,
6555 # not just through cpp. "Syntax error" is here to catch this case.
6556 cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 #ifdef __STDC__
6563 # include <limits.h>
6564 #else
6565 # include <assert.h>
6566 #endif
6567 Syntax error
6568 _ACEOF
6569 if { (ac_try="$ac_cpp conftest.$ac_ext"
6570 case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573 esac
6574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575 $as_echo "$ac_try_echo") >&5
6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev/null && {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 }; then
6586 :
6587 else
6588 $as_echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 # Broken: fails on valid input.
6592 continue
6593 fi
6594
6595 rm -f conftest.err conftest.$ac_ext
6596
6597 # OK, works on sane cases. Now check whether nonexistent headers
6598 # can be detected and how.
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 #include <ac_nonexistent.h>
6606 _ACEOF
6607 if { (ac_try="$ac_cpp conftest.$ac_ext"
6608 case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611 esac
6612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613 $as_echo "$ac_try_echo") >&5
6614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null && {
6621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 }; then
6624 # Broken: success on invalid input.
6625 continue
6626 else
6627 $as_echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 # Passes both tests.
6631 ac_preproc_ok=:
6632 break
6633 fi
6634
6635 rm -f conftest.err conftest.$ac_ext
6636
6637 done
6638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6639 rm -f conftest.err conftest.$ac_ext
6640 if $ac_preproc_ok; then
6641 :
6642 else
6643 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6645 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6646 See \`config.log' for more details." >&5
6647 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6648 See \`config.log' for more details." >&2;}
6649 { (exit 1); exit 1; }; }; }
6650 fi
6651
6652 ac_ext=c
6653 ac_cpp='$CPP $CPPFLAGS'
6654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657
6658
6659 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6660 $as_echo_n "checking for ANSI C header files... " >&6; }
6661 if test "${ac_cv_header_stdc+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <stdlib.h>
6671 #include <stdarg.h>
6672 #include <string.h>
6673 #include <float.h>
6674
6675 int
6676 main ()
6677 {
6678
6679 ;
6680 return 0;
6681 }
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6685 case "(($ac_try" in
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6688 esac
6689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6690 $as_echo "$ac_try_echo") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && {
6698 test -z "$ac_c_werror_flag" ||
6699 test ! -s conftest.err
6700 } && test -s conftest.$ac_objext; then
6701 ac_cv_header_stdc=yes
6702 else
6703 $as_echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ac_cv_header_stdc=no
6707 fi
6708
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710
6711 if test $ac_cv_header_stdc = yes; then
6712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 #include <string.h>
6720
6721 _ACEOF
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 $EGREP "memchr" >/dev/null 2>&1; then
6724 :
6725 else
6726 ac_cv_header_stdc=no
6727 fi
6728 rm -f conftest*
6729
6730 fi
6731
6732 if test $ac_cv_header_stdc = yes; then
6733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <stdlib.h>
6741
6742 _ACEOF
6743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744 $EGREP "free" >/dev/null 2>&1; then
6745 :
6746 else
6747 ac_cv_header_stdc=no
6748 fi
6749 rm -f conftest*
6750
6751 fi
6752
6753 if test $ac_cv_header_stdc = yes; then
6754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6755 if test "$cross_compiling" = yes; then
6756 :
6757 else
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <ctype.h>
6765 #include <stdlib.h>
6766 #if ((' ' & 0x0FF) == 0x020)
6767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6769 #else
6770 # define ISLOWER(c) \
6771 (('a' <= (c) && (c) <= 'i') \
6772 || ('j' <= (c) && (c) <= 'r') \
6773 || ('s' <= (c) && (c) <= 'z'))
6774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6775 #endif
6776
6777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6778 int
6779 main ()
6780 {
6781 int i;
6782 for (i = 0; i < 256; i++)
6783 if (XOR (islower (i), ISLOWER (i))
6784 || toupper (i) != TOUPPER (i))
6785 return 2;
6786 return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest$ac_exeext
6790 if { (ac_try="$ac_link"
6791 case "(($ac_try" in
6792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793 *) ac_try_echo=$ac_try;;
6794 esac
6795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6796 $as_echo "$ac_try_echo") >&5
6797 (eval "$ac_link") 2>&5
6798 ac_status=$?
6799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6801 { (case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6806 $as_echo "$ac_try_echo") >&5
6807 (eval "$ac_try") 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 :
6812 else
6813 $as_echo "$as_me: program exited with status $ac_status" >&5
6814 $as_echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 ( exit $ac_status )
6818 ac_cv_header_stdc=no
6819 fi
6820 rm -rf conftest.dSYM
6821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6822 fi
6823
6824
6825 fi
6826 fi
6827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6828 $as_echo "$ac_cv_header_stdc" >&6; }
6829 if test $ac_cv_header_stdc = yes; then
6830
6831 cat >>confdefs.h <<\_ACEOF
6832 #define STDC_HEADERS 1
6833 _ACEOF
6834
6835 fi
6836
6837 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6848 inttypes.h stdint.h unistd.h
6849 do
6850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6851 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6852 $as_echo_n "checking for $ac_header... " >&6; }
6853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6854 $as_echo_n "(cached) " >&6
6855 else
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 $ac_includes_default
6863
6864 #include <$ac_header>
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873 $as_echo "$ac_try_echo") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 eval "$as_ac_Header=yes"
6885 else
6886 $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889 eval "$as_ac_Header=no"
6890 fi
6891
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 fi
6894 ac_res=`eval 'as_val=${'$as_ac_Header'}
6895 $as_echo "$as_val"'`
6896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6897 $as_echo "$ac_res" >&6; }
6898 as_val=`eval 'as_val=${'$as_ac_Header'}
6899 $as_echo "$as_val"'`
6900 if test "x$as_val" = x""yes; then
6901 cat >>confdefs.h <<_ACEOF
6902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6903 _ACEOF
6904
6905 fi
6906
6907 done
6908
6909
6910
6911 for ac_header in dlfcn.h
6912 do
6913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6915 $as_echo_n "checking for $ac_header... " >&6; }
6916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6917 $as_echo_n "(cached) " >&6
6918 else
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 $ac_includes_default
6926
6927 #include <$ac_header>
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (ac_try="$ac_compile"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6936 $as_echo "$ac_try_echo") >&5
6937 (eval "$ac_compile") 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest.$ac_objext; then
6947 eval "$as_ac_Header=yes"
6948 else
6949 $as_echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 eval "$as_ac_Header=no"
6953 fi
6954
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 fi
6957 ac_res=`eval 'as_val=${'$as_ac_Header'}
6958 $as_echo "$as_val"'`
6959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6960 $as_echo "$ac_res" >&6; }
6961 as_val=`eval 'as_val=${'$as_ac_Header'}
6962 $as_echo "$as_val"'`
6963 if test "x$as_val" = x""yes; then
6964 cat >>confdefs.h <<_ACEOF
6965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6966 _ACEOF
6967
6968 fi
6969
6970 done
6971
6972
6973
6974 # Set options
6975
6976
6977
6978 enable_dlopen=no
6979
6980
6981 enable_win32_dll=no
6982
6983
6984 # Check whether --enable-shared was given.
6985 if test "${enable_shared+set}" = set; then
6986 enableval=$enable_shared; p=${PACKAGE-default}
6987 case $enableval in
6988 yes) enable_shared=yes ;;
6989 no) enable_shared=no ;;
6990 *)
6991 enable_shared=no
6992 # Look at the argument we got. We use all the common list separators.
6993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6994 for pkg in $enableval; do
6995 IFS="$lt_save_ifs"
6996 if test "X$pkg" = "X$p"; then
6997 enable_shared=yes
6998 fi
6999 done
7000 IFS="$lt_save_ifs"
7001 ;;
7002 esac
7003 else
7004 enable_shared=yes
7005 fi
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 # Check whether --enable-static was given.
7016 if test "${enable_static+set}" = set; then
7017 enableval=$enable_static; p=${PACKAGE-default}
7018 case $enableval in
7019 yes) enable_static=yes ;;
7020 no) enable_static=no ;;
7021 *)
7022 enable_static=no
7023 # Look at the argument we got. We use all the common list separators.
7024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7025 for pkg in $enableval; do
7026 IFS="$lt_save_ifs"
7027 if test "X$pkg" = "X$p"; then
7028 enable_static=yes
7029 fi
7030 done
7031 IFS="$lt_save_ifs"
7032 ;;
7033 esac
7034 else
7035 enable_static=yes
7036 fi
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 # Check whether --with-pic was given.
7048 if test "${with_pic+set}" = set; then
7049 withval=$with_pic; pic_mode="$withval"
7050 else
7051 pic_mode=default
7052 fi
7053
7054
7055 test -z "$pic_mode" && pic_mode=default
7056
7057
7058
7059
7060
7061
7062
7063 # Check whether --enable-fast-install was given.
7064 if test "${enable_fast_install+set}" = set; then
7065 enableval=$enable_fast_install; p=${PACKAGE-default}
7066 case $enableval in
7067 yes) enable_fast_install=yes ;;
7068 no) enable_fast_install=no ;;
7069 *)
7070 enable_fast_install=no
7071 # Look at the argument we got. We use all the common list separators.
7072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7073 for pkg in $enableval; do
7074 IFS="$lt_save_ifs"
7075 if test "X$pkg" = "X$p"; then
7076 enable_fast_install=yes
7077 fi
7078 done
7079 IFS="$lt_save_ifs"
7080 ;;
7081 esac
7082 else
7083 enable_fast_install=yes
7084 fi
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096 # This can be used to rebuild libtool when needed
7097 LIBTOOL_DEPS="$ltmain"
7098
7099 # Always use our own libtool.
7100 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126 test -z "$LN_S" && LN_S="ln -s"
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141 if test -n "${ZSH_VERSION+set}" ; then
7142 setopt NO_GLOB_SUBST
7143 fi
7144
7145 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7146 $as_echo_n "checking for objdir... " >&6; }
7147 if test "${lt_cv_objdir+set}" = set; then
7148 $as_echo_n "(cached) " >&6
7149 else
7150 rm -f .libs 2>/dev/null
7151 mkdir .libs 2>/dev/null
7152 if test -d .libs; then
7153 lt_cv_objdir=.libs
7154 else
7155 # MS-DOS does not allow filenames that begin with a dot.
7156 lt_cv_objdir=_libs
7157 fi
7158 rmdir .libs 2>/dev/null
7159 fi
7160 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7161 $as_echo "$lt_cv_objdir" >&6; }
7162 objdir=$lt_cv_objdir
7163
7164
7165
7166
7167
7168 cat >>confdefs.h <<_ACEOF
7169 #define LT_OBJDIR "$lt_cv_objdir/"
7170 _ACEOF
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188 case $host_os in
7189 aix3*)
7190 # AIX sometimes has problems with the GCC collect2 program. For some
7191 # reason, if we set the COLLECT_NAMES environment variable, the problems
7192 # vanish in a puff of smoke.
7193 if test "X${COLLECT_NAMES+set}" != Xset; then
7194 COLLECT_NAMES=
7195 export COLLECT_NAMES
7196 fi
7197 ;;
7198 esac
7199
7200 # Sed substitution that helps us do robust quoting. It backslashifies
7201 # metacharacters that are still active within double-quoted strings.
7202 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7203
7204 # Same as above, but do not quote variable references.
7205 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7206
7207 # Sed substitution to delay expansion of an escaped shell variable in a
7208 # double_quote_subst'ed string.
7209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7210
7211 # Sed substitution to delay expansion of an escaped single quote.
7212 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7213
7214 # Sed substitution to avoid accidental globbing in evaled expressions
7215 no_glob_subst='s/\*/\\\*/g'
7216
7217 # Global variables:
7218 ofile=libtool
7219 can_build_shared=yes
7220
7221 # All known linkers require a `.a' archive for static linking (except MSVC,
7222 # which needs '.lib').
7223 libext=a
7224
7225 with_gnu_ld="$lt_cv_prog_gnu_ld"
7226
7227 old_CC="$CC"
7228 old_CFLAGS="$CFLAGS"
7229
7230 # Set sane defaults for various variables
7231 test -z "$CC" && CC=cc
7232 test -z "$LTCC" && LTCC=$CC
7233 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7234 test -z "$LD" && LD=ld
7235 test -z "$ac_objext" && ac_objext=o
7236
7237 for cc_temp in $compiler""; do
7238 case $cc_temp in
7239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7241 \-*) ;;
7242 *) break;;
7243 esac
7244 done
7245 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7246
7247
7248 # Only perform the check for file, if the check method requires it
7249 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7250 case $deplibs_check_method in
7251 file_magic*)
7252 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7253 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7254 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7255 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7256 $as_echo_n "(cached) " >&6
7257 else
7258 case $MAGIC_CMD in
7259 [\\/*] | ?:[\\/]*)
7260 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7261 ;;
7262 *)
7263 lt_save_MAGIC_CMD="$MAGIC_CMD"
7264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7265 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7266 for ac_dir in $ac_dummy; do
7267 IFS="$lt_save_ifs"
7268 test -z "$ac_dir" && ac_dir=.
7269 if test -f $ac_dir/${ac_tool_prefix}file; then
7270 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7271 if test -n "$file_magic_test_file"; then
7272 case $deplibs_check_method in
7273 "file_magic "*)
7274 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7275 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7276 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7277 $EGREP "$file_magic_regex" > /dev/null; then
7278 :
7279 else
7280 cat <<_LT_EOF 1>&2
7281
7282 *** Warning: the command libtool uses to detect shared libraries,
7283 *** $file_magic_cmd, produces output that libtool cannot recognize.
7284 *** The result is that libtool may fail to recognize shared libraries
7285 *** as such. This will affect the creation of libtool libraries that
7286 *** depend on shared libraries, but programs linked with such libtool
7287 *** libraries will work regardless of this problem. Nevertheless, you
7288 *** may want to report the problem to your system manager and/or to
7289 *** [email protected]
7290
7291 _LT_EOF
7292 fi ;;
7293 esac
7294 fi
7295 break
7296 fi
7297 done
7298 IFS="$lt_save_ifs"
7299 MAGIC_CMD="$lt_save_MAGIC_CMD"
7300 ;;
7301 esac
7302 fi
7303
7304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7305 if test -n "$MAGIC_CMD"; then
7306 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7307 $as_echo "$MAGIC_CMD" >&6; }
7308 else
7309 { $as_echo "$as_me:$LINENO: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313
7314
7315
7316
7317 if test -z "$lt_cv_path_MAGIC_CMD"; then
7318 if test -n "$ac_tool_prefix"; then
7319 { $as_echo "$as_me:$LINENO: checking for file" >&5
7320 $as_echo_n "checking for file... " >&6; }
7321 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7322 $as_echo_n "(cached) " >&6
7323 else
7324 case $MAGIC_CMD in
7325 [\\/*] | ?:[\\/]*)
7326 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7327 ;;
7328 *)
7329 lt_save_MAGIC_CMD="$MAGIC_CMD"
7330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7331 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7332 for ac_dir in $ac_dummy; do
7333 IFS="$lt_save_ifs"
7334 test -z "$ac_dir" && ac_dir=.
7335 if test -f $ac_dir/file; then
7336 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7337 if test -n "$file_magic_test_file"; then
7338 case $deplibs_check_method in
7339 "file_magic "*)
7340 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7343 $EGREP "$file_magic_regex" > /dev/null; then
7344 :
7345 else
7346 cat <<_LT_EOF 1>&2
7347
7348 *** Warning: the command libtool uses to detect shared libraries,
7349 *** $file_magic_cmd, produces output that libtool cannot recognize.
7350 *** The result is that libtool may fail to recognize shared libraries
7351 *** as such. This will affect the creation of libtool libraries that
7352 *** depend on shared libraries, but programs linked with such libtool
7353 *** libraries will work regardless of this problem. Nevertheless, you
7354 *** may want to report the problem to your system manager and/or to
7355 *** [email protected]
7356
7357 _LT_EOF
7358 fi ;;
7359 esac
7360 fi
7361 break
7362 fi
7363 done
7364 IFS="$lt_save_ifs"
7365 MAGIC_CMD="$lt_save_MAGIC_CMD"
7366 ;;
7367 esac
7368 fi
7369
7370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7371 if test -n "$MAGIC_CMD"; then
7372 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7373 $as_echo "$MAGIC_CMD" >&6; }
7374 else
7375 { $as_echo "$as_me:$LINENO: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379
7380 else
7381 MAGIC_CMD=:
7382 fi
7383 fi
7384
7385 fi
7386 ;;
7387 esac
7388
7389 # Use C for the default configuration in the libtool script
7390
7391 lt_save_CC="$CC"
7392 ac_ext=c
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397
7398
7399 # Source file extension for C test sources.
7400 ac_ext=c
7401
7402 # Object file extension for compiled C test sources.
7403 objext=o
7404 objext=$objext
7405
7406 # Code to be used in simple compile tests
7407 lt_simple_compile_test_code="int some_variable = 0;"
7408
7409 # Code to be used in simple link tests
7410 lt_simple_link_test_code='int main(){return(0);}'
7411
7412
7413
7414
7415
7416
7417
7418 # If no C compiler was specified, use CC.
7419 LTCC=${LTCC-"$CC"}
7420
7421 # If no C compiler flags were specified, use CFLAGS.
7422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7423
7424 # Allow CC to be a program name with arguments.
7425 compiler=$CC
7426
7427 # Save the default compiler, since it gets overwritten when the other
7428 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7429 compiler_DEFAULT=$CC
7430
7431 # save warnings/boilerplate of simple test code
7432 ac_outfile=conftest.$ac_objext
7433 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7434 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7435 _lt_compiler_boilerplate=`cat conftest.err`
7436 $RM conftest*
7437
7438 ac_outfile=conftest.$ac_objext
7439 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7440 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7441 _lt_linker_boilerplate=`cat conftest.err`
7442 $RM -r conftest*
7443
7444
7445 ## CAVEAT EMPTOR:
7446 ## There is no encapsulation within the following macros, do not change
7447 ## the running order or otherwise move them around unless you know exactly
7448 ## what you are doing...
7449 if test -n "$compiler"; then
7450
7451 lt_prog_compiler_no_builtin_flag=
7452
7453 if test "$GCC" = yes; then
7454 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7455
7456 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7457 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7458 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7459 $as_echo_n "(cached) " >&6
7460 else
7461 lt_cv_prog_compiler_rtti_exceptions=no
7462 ac_outfile=conftest.$ac_objext
7463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7464 lt_compiler_flag="-fno-rtti -fno-exceptions"
7465 # Insert the option either (1) after the last *FLAGS variable, or
7466 # (2) before a word containing "conftest.", or (3) at the end.
7467 # Note that $ac_compile itself does not contain backslashes and begins
7468 # with a dollar sign (not a hyphen), so the echo should work correctly.
7469 # The option is referenced via a variable to avoid confusing sed.
7470 lt_compile=`echo "$ac_compile" | $SED \
7471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7473 -e 's:$: $lt_compiler_flag:'`
7474 (eval echo "\"\$as_me:7474: $lt_compile\"" >&5)
7475 (eval "$lt_compile" 2>conftest.err)
7476 ac_status=$?
7477 cat conftest.err >&5
7478 echo "$as_me:7478: \$? = $ac_status" >&5
7479 if (exit $ac_status) && test -s "$ac_outfile"; then
7480 # The compiler can only warn and ignore the option if not recognized
7481 # So say no if there are warnings other than the usual output.
7482 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7485 lt_cv_prog_compiler_rtti_exceptions=yes
7486 fi
7487 fi
7488 $RM conftest*
7489
7490 fi
7491 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7492 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7493
7494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7496 else
7497 :
7498 fi
7499
7500 fi
7501
7502
7503
7504
7505
7506
7507 lt_prog_compiler_wl=
7508 lt_prog_compiler_pic=
7509 lt_prog_compiler_static=
7510
7511 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7512 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7513
7514 if test "$GCC" = yes; then
7515 lt_prog_compiler_wl='-Wl,'
7516 lt_prog_compiler_static='-static'
7517
7518 case $host_os in
7519 aix*)
7520 # All AIX code is PIC.
7521 if test "$host_cpu" = ia64; then
7522 # AIX 5 now supports IA64 processor
7523 lt_prog_compiler_static='-Bstatic'
7524 fi
7525 ;;
7526
7527 amigaos*)
7528 case $host_cpu in
7529 powerpc)
7530 # see comment about AmigaOS4 .so support
7531 lt_prog_compiler_pic='-fPIC'
7532 ;;
7533 m68k)
7534 # FIXME: we need at least 68020 code to build shared libraries, but
7535 # adding the `-m68020' flag to GCC prevents building anything better,
7536 # like `-m68040'.
7537 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7538 ;;
7539 esac
7540 ;;
7541
7542 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7543 # PIC is the default for these OSes.
7544 ;;
7545
7546 mingw* | cygwin* | pw32* | os2* | cegcc*)
7547 # This hack is so that the source file can tell whether it is being
7548 # built for inclusion in a dll (and should export symbols for example).
7549 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7550 # (--disable-auto-import) libraries
7551 lt_prog_compiler_pic='-DDLL_EXPORT'
7552 ;;
7553
7554 darwin* | rhapsody*)
7555 # PIC is the default on this platform
7556 # Common symbols not allowed in MH_DYLIB files
7557 lt_prog_compiler_pic='-fno-common'
7558 ;;
7559
7560 hpux*)
7561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7563 # sets the default TLS model and affects inlining.
7564 case $host_cpu in
7565 hppa*64*)
7566 # +Z the default
7567 ;;
7568 *)
7569 lt_prog_compiler_pic='-fPIC'
7570 ;;
7571 esac
7572 ;;
7573
7574 interix[3-9]*)
7575 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7576 # Instead, we relocate shared libraries at runtime.
7577 ;;
7578
7579 msdosdjgpp*)
7580 # Just because we use GCC doesn't mean we suddenly get shared libraries
7581 # on systems that don't support them.
7582 lt_prog_compiler_can_build_shared=no
7583 enable_shared=no
7584 ;;
7585
7586 *nto* | *qnx*)
7587 # QNX uses GNU C++, but need to define -shared option too, otherwise
7588 # it will coredump.
7589 lt_prog_compiler_pic='-fPIC -shared'
7590 ;;
7591
7592 sysv4*MP*)
7593 if test -d /usr/nec; then
7594 lt_prog_compiler_pic=-Kconform_pic
7595 fi
7596 ;;
7597
7598 *)
7599 lt_prog_compiler_pic='-fPIC'
7600 ;;
7601 esac
7602 else
7603 # PORTME Check for flag to pass linker flags through the system compiler.
7604 case $host_os in
7605 aix*)
7606 lt_prog_compiler_wl='-Wl,'
7607 if test "$host_cpu" = ia64; then
7608 # AIX 5 now supports IA64 processor
7609 lt_prog_compiler_static='-Bstatic'
7610 else
7611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7612 fi
7613 ;;
7614
7615 mingw* | cygwin* | pw32* | os2* | cegcc*)
7616 # This hack is so that the source file can tell whether it is being
7617 # built for inclusion in a dll (and should export symbols for example).
7618 lt_prog_compiler_pic='-DDLL_EXPORT'
7619 ;;
7620
7621 hpux9* | hpux10* | hpux11*)
7622 lt_prog_compiler_wl='-Wl,'
7623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7624 # not for PA HP-UX.
7625 case $host_cpu in
7626 hppa*64*|ia64*)
7627 # +Z the default
7628 ;;
7629 *)
7630 lt_prog_compiler_pic='+Z'
7631 ;;
7632 esac
7633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7634 lt_prog_compiler_static='${wl}-a ${wl}archive'
7635 ;;
7636
7637 irix5* | irix6* | nonstopux*)
7638 lt_prog_compiler_wl='-Wl,'
7639 # PIC (with -KPIC) is the default.
7640 lt_prog_compiler_static='-non_shared'
7641 ;;
7642
7643 linux* | k*bsd*-gnu)
7644 case $cc_basename in
7645 # old Intel for x86_64 which still supported -KPIC.
7646 ecc*)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-KPIC'
7649 lt_prog_compiler_static='-static'
7650 ;;
7651 # icc used to be incompatible with GCC.
7652 # ICC 10 doesn't accept -KPIC any more.
7653 icc* | ifort*)
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_pic='-fPIC'
7656 lt_prog_compiler_static='-static'
7657 ;;
7658 # Lahey Fortran 8.1.
7659 lf95*)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='--shared'
7662 lt_prog_compiler_static='--static'
7663 ;;
7664 pgcc* | pgf77* | pgf90* | pgf95*)
7665 # Portland Group compilers (*not* the Pentium gcc compiler,
7666 # which looks to be a dead project)
7667 lt_prog_compiler_wl='-Wl,'
7668 lt_prog_compiler_pic='-fpic'
7669 lt_prog_compiler_static='-Bstatic'
7670 ;;
7671 ccc*)
7672 lt_prog_compiler_wl='-Wl,'
7673 # All Alpha code is PIC.
7674 lt_prog_compiler_static='-non_shared'
7675 ;;
7676 xl*)
7677 # IBM XL C 8.0/Fortran 10.1 on PPC
7678 lt_prog_compiler_wl='-Wl,'
7679 lt_prog_compiler_pic='-qpic'
7680 lt_prog_compiler_static='-qstaticlink'
7681 ;;
7682 *)
7683 case `$CC -V 2>&1 | sed 5q` in
7684 *Sun\ C*)
7685 # Sun C 5.9
7686 lt_prog_compiler_pic='-KPIC'
7687 lt_prog_compiler_static='-Bstatic'
7688 lt_prog_compiler_wl='-Wl,'
7689 ;;
7690 *Sun\ F*)
7691 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7692 lt_prog_compiler_pic='-KPIC'
7693 lt_prog_compiler_static='-Bstatic'
7694 lt_prog_compiler_wl=''
7695 ;;
7696 esac
7697 ;;
7698 esac
7699 ;;
7700
7701 newsos6)
7702 lt_prog_compiler_pic='-KPIC'
7703 lt_prog_compiler_static='-Bstatic'
7704 ;;
7705
7706 *nto* | *qnx*)
7707 # QNX uses GNU C++, but need to define -shared option too, otherwise
7708 # it will coredump.
7709 lt_prog_compiler_pic='-fPIC -shared'
7710 ;;
7711
7712 osf3* | osf4* | osf5*)
7713 lt_prog_compiler_wl='-Wl,'
7714 # All OSF/1 code is PIC.
7715 lt_prog_compiler_static='-non_shared'
7716 ;;
7717
7718 rdos*)
7719 lt_prog_compiler_static='-non_shared'
7720 ;;
7721
7722 solaris*)
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-Bstatic'
7725 case $cc_basename in
7726 f77* | f90* | f95*)
7727 lt_prog_compiler_wl='-Qoption ld ';;
7728 *)
7729 lt_prog_compiler_wl='-Wl,';;
7730 esac
7731 ;;
7732
7733 sunos4*)
7734 lt_prog_compiler_wl='-Qoption ld '
7735 lt_prog_compiler_pic='-PIC'
7736 lt_prog_compiler_static='-Bstatic'
7737 ;;
7738
7739 sysv4 | sysv4.2uw2* | sysv4.3*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 ;;
7744
7745 sysv4*MP*)
7746 if test -d /usr/nec ;then
7747 lt_prog_compiler_pic='-Kconform_pic'
7748 lt_prog_compiler_static='-Bstatic'
7749 fi
7750 ;;
7751
7752 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 ;;
7757
7758 unicos*)
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_can_build_shared=no
7761 ;;
7762
7763 uts4*)
7764 lt_prog_compiler_pic='-pic'
7765 lt_prog_compiler_static='-Bstatic'
7766 ;;
7767
7768 *)
7769 lt_prog_compiler_can_build_shared=no
7770 ;;
7771 esac
7772 fi
7773
7774 case $host_os in
7775 # For platforms which do not support PIC, -DPIC is meaningless:
7776 *djgpp*)
7777 lt_prog_compiler_pic=
7778 ;;
7779 *)
7780 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7781 ;;
7782 esac
7783 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7784 $as_echo "$lt_prog_compiler_pic" >&6; }
7785
7786
7787
7788
7789
7790
7791 #
7792 # Check to make sure the PIC flag actually works.
7793 #
7794 if test -n "$lt_prog_compiler_pic"; then
7795 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7796 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7797 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7798 $as_echo_n "(cached) " >&6
7799 else
7800 lt_cv_prog_compiler_pic_works=no
7801 ac_outfile=conftest.$ac_objext
7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7803 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7804 # Insert the option either (1) after the last *FLAGS variable, or
7805 # (2) before a word containing "conftest.", or (3) at the end.
7806 # Note that $ac_compile itself does not contain backslashes and begins
7807 # with a dollar sign (not a hyphen), so the echo should work correctly.
7808 # The option is referenced via a variable to avoid confusing sed.
7809 lt_compile=`echo "$ac_compile" | $SED \
7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814 (eval "$lt_compile" 2>conftest.err)
7815 ac_status=$?
7816 cat conftest.err >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 if (exit $ac_status) && test -s "$ac_outfile"; then
7819 # The compiler can only warn and ignore the option if not recognized
7820 # So say no if there are warnings other than the usual output.
7821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7824 lt_cv_prog_compiler_pic_works=yes
7825 fi
7826 fi
7827 $RM conftest*
7828
7829 fi
7830 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7831 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7832
7833 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7834 case $lt_prog_compiler_pic in
7835 "" | " "*) ;;
7836 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7837 esac
7838 else
7839 lt_prog_compiler_pic=
7840 lt_prog_compiler_can_build_shared=no
7841 fi
7842
7843 fi
7844
7845
7846
7847
7848
7849
7850 #
7851 # Check to make sure the static flag actually works.
7852 #
7853 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7854 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7855 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7856 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7858 else
7859 lt_cv_prog_compiler_static_works=no
7860 save_LDFLAGS="$LDFLAGS"
7861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7862 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7864 # The linker can only warn and ignore the option if not recognized
7865 # So say no if there are warnings
7866 if test -s conftest.err; then
7867 # Append any errors to the config.log.
7868 cat conftest.err 1>&5
7869 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7871 if diff conftest.exp conftest.er2 >/dev/null; then
7872 lt_cv_prog_compiler_static_works=yes
7873 fi
7874 else
7875 lt_cv_prog_compiler_static_works=yes
7876 fi
7877 fi
7878 $RM -r conftest*
7879 LDFLAGS="$save_LDFLAGS"
7880
7881 fi
7882 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7883 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7884
7885 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7886 :
7887 else
7888 lt_prog_compiler_static=
7889 fi
7890
7891
7892
7893
7894
7895
7896
7897 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7900 $as_echo_n "(cached) " >&6
7901 else
7902 lt_cv_prog_compiler_c_o=no
7903 $RM -r conftest 2>/dev/null
7904 mkdir conftest
7905 cd conftest
7906 mkdir out
7907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7908
7909 lt_compiler_flag="-o out/conftest2.$ac_objext"
7910 # Insert the option either (1) after the last *FLAGS variable, or
7911 # (2) before a word containing "conftest.", or (3) at the end.
7912 # Note that $ac_compile itself does not contain backslashes and begins
7913 # with a dollar sign (not a hyphen), so the echo should work correctly.
7914 lt_compile=`echo "$ac_compile" | $SED \
7915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7917 -e 's:$: $lt_compiler_flag:'`
7918 (eval echo "\"\$as_me:7918: $lt_compile\"" >&5)
7919 (eval "$lt_compile" 2>out/conftest.err)
7920 ac_status=$?
7921 cat out/conftest.err >&5
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7924 then
7925 # The compiler can only warn and ignore the option if not recognized
7926 # So say no if there are warnings
7927 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7930 lt_cv_prog_compiler_c_o=yes
7931 fi
7932 fi
7933 chmod u+w . 2>&5
7934 $RM conftest*
7935 # SGI C++ compiler will create directory out/ii_files/ for
7936 # template instantiation
7937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7938 $RM out/* && rmdir out
7939 cd ..
7940 $RM -r conftest
7941 $RM conftest*
7942
7943 fi
7944 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7946
7947
7948
7949
7950
7951
7952 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7953 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7954 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7956 else
7957 lt_cv_prog_compiler_c_o=no
7958 $RM -r conftest 2>/dev/null
7959 mkdir conftest
7960 cd conftest
7961 mkdir out
7962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963
7964 lt_compiler_flag="-o out/conftest2.$ac_objext"
7965 # Insert the option either (1) after the last *FLAGS variable, or
7966 # (2) before a word containing "conftest.", or (3) at the end.
7967 # Note that $ac_compile itself does not contain backslashes and begins
7968 # with a dollar sign (not a hyphen), so the echo should work correctly.
7969 lt_compile=`echo "$ac_compile" | $SED \
7970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7972 -e 's:$: $lt_compiler_flag:'`
7973 (eval echo "\"\$as_me:7973: $lt_compile\"" >&5)
7974 (eval "$lt_compile" 2>out/conftest.err)
7975 ac_status=$?
7976 cat out/conftest.err >&5
7977 echo "$as_me:7977: \$? = $ac_status" >&5
7978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7979 then
7980 # The compiler can only warn and ignore the option if not recognized
7981 # So say no if there are warnings
7982 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7985 lt_cv_prog_compiler_c_o=yes
7986 fi
7987 fi
7988 chmod u+w . 2>&5
7989 $RM conftest*
7990 # SGI C++ compiler will create directory out/ii_files/ for
7991 # template instantiation
7992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7993 $RM out/* && rmdir out
7994 cd ..
7995 $RM -r conftest
7996 $RM conftest*
7997
7998 fi
7999 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8000 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8001
8002
8003
8004
8005 hard_links="nottested"
8006 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8007 # do not overwrite the value of need_locks provided by the user
8008 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8009 $as_echo_n "checking if we can lock with hard links... " >&6; }
8010 hard_links=yes
8011 $RM conftest*
8012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8013 touch conftest.a
8014 ln conftest.a conftest.b 2>&5 || hard_links=no
8015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8016 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8017 $as_echo "$hard_links" >&6; }
8018 if test "$hard_links" = no; then
8019 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8020 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8021 need_locks=warn
8022 fi
8023 else
8024 need_locks=no
8025 fi
8026
8027
8028
8029
8030
8031
8032 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8034
8035 runpath_var=
8036 allow_undefined_flag=
8037 always_export_symbols=no
8038 archive_cmds=
8039 archive_expsym_cmds=
8040 compiler_needs_object=no
8041 enable_shared_with_static_runtimes=no
8042 export_dynamic_flag_spec=
8043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8044 hardcode_automatic=no
8045 hardcode_direct=no
8046 hardcode_direct_absolute=no
8047 hardcode_libdir_flag_spec=
8048 hardcode_libdir_flag_spec_ld=
8049 hardcode_libdir_separator=
8050 hardcode_minus_L=no
8051 hardcode_shlibpath_var=unsupported
8052 inherit_rpath=no
8053 link_all_deplibs=unknown
8054 module_cmds=
8055 module_expsym_cmds=
8056 old_archive_from_new_cmds=
8057 old_archive_from_expsyms_cmds=
8058 thread_safe_flag_spec=
8059 whole_archive_flag_spec=
8060 # include_expsyms should be a list of space-separated symbols to be *always*
8061 # included in the symbol list
8062 include_expsyms=
8063 # exclude_expsyms can be an extended regexp of symbols to exclude
8064 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8066 # as well as any symbol that contains `d'.
8067 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8069 # platforms (ab)use it in PIC code, but their linkers get confused if
8070 # the symbol is explicitly referenced. Since portable code cannot
8071 # rely on this symbol name, it's probably fine to never include it in
8072 # preloaded symbol tables.
8073 # Exclude shared library initialization/finalization symbols.
8074 extract_expsyms_cmds=
8075
8076 case $host_os in
8077 cygwin* | mingw* | pw32* | cegcc*)
8078 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8079 # When not using gcc, we currently assume that we are using
8080 # Microsoft Visual C++.
8081 if test "$GCC" != yes; then
8082 with_gnu_ld=no
8083 fi
8084 ;;
8085 interix*)
8086 # we just hope/assume this is gcc and not c89 (= MSVC++)
8087 with_gnu_ld=yes
8088 ;;
8089 openbsd*)
8090 with_gnu_ld=no
8091 ;;
8092 esac
8093
8094 ld_shlibs=yes
8095 if test "$with_gnu_ld" = yes; then
8096 # If archive_cmds runs LD, not CC, wlarc should be empty
8097 wlarc='${wl}'
8098
8099 # Set some defaults for GNU ld with shared library support. These
8100 # are reset later if shared libraries are not supported. Putting them
8101 # here allows them to be overridden if necessary.
8102 runpath_var=LD_RUN_PATH
8103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8104 export_dynamic_flag_spec='${wl}--export-dynamic'
8105 # ancient GNU ld didn't support --whole-archive et. al.
8106 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8107 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8108 else
8109 whole_archive_flag_spec=
8110 fi
8111 supports_anon_versioning=no
8112 case `$LD -v 2>&1` in
8113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8116 *\ 2.11.*) ;; # other 2.11 versions
8117 *) supports_anon_versioning=yes ;;
8118 esac
8119
8120 # See if GNU ld supports shared libraries.
8121 case $host_os in
8122 aix[3-9]*)
8123 # On AIX/PPC, the GNU linker is very broken
8124 if test "$host_cpu" != ia64; then
8125 ld_shlibs=no
8126 cat <<_LT_EOF 1>&2
8127
8128 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8129 *** to be unable to reliably create shared libraries on AIX.
8130 *** Therefore, libtool is disabling shared libraries support. If you
8131 *** really care for shared libraries, you may want to modify your PATH
8132 *** so that a non-GNU linker is found, and then restart.
8133
8134 _LT_EOF
8135 fi
8136 ;;
8137
8138 amigaos*)
8139 case $host_cpu in
8140 powerpc)
8141 # see comment about AmigaOS4 .so support
8142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8143 archive_expsym_cmds=''
8144 ;;
8145 m68k)
8146 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)'
8147 hardcode_libdir_flag_spec='-L$libdir'
8148 hardcode_minus_L=yes
8149 ;;
8150 esac
8151 ;;
8152
8153 beos*)
8154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8155 allow_undefined_flag=unsupported
8156 # Joseph Beckenbach <[email protected]> says some releases of gcc
8157 # support --undefined. This deserves some investigation. FIXME
8158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159 else
8160 ld_shlibs=no
8161 fi
8162 ;;
8163
8164 cygwin* | mingw* | pw32* | cegcc*)
8165 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8166 # as there is no search path for DLLs.
8167 hardcode_libdir_flag_spec='-L$libdir'
8168 allow_undefined_flag=unsupported
8169 always_export_symbols=no
8170 enable_shared_with_static_runtimes=yes
8171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8172
8173 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175 # If the export-symbols file already is a .def file (1st line
8176 # is EXPORTS), use it as is; otherwise, prepend...
8177 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8178 cp $export_symbols $output_objdir/$soname.def;
8179 else
8180 echo EXPORTS > $output_objdir/$soname.def;
8181 cat $export_symbols >> $output_objdir/$soname.def;
8182 fi~
8183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 interix[3-9]*)
8190 hardcode_direct=no
8191 hardcode_shlibpath_var=no
8192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8193 export_dynamic_flag_spec='${wl}-E'
8194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8195 # Instead, shared libraries are loaded at an image base (0x10000000 by
8196 # default) and relocated if they conflict, which is a slow very memory
8197 # consuming and fragmenting process. To avoid this, we pick a random,
8198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8201 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'
8202 ;;
8203
8204 gnu* | linux* | tpf* | k*bsd*-gnu)
8205 tmp_diet=no
8206 if test "$host_os" = linux-dietlibc; then
8207 case $cc_basename in
8208 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8209 esac
8210 fi
8211 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8212 && test "$tmp_diet" = no
8213 then
8214 tmp_addflag=
8215 tmp_sharedflag='-shared'
8216 case $cc_basename,$host_cpu in
8217 pgcc*) # Portland Group C compiler
8218 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'
8219 tmp_addflag=' $pic_flag'
8220 ;;
8221 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8222 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'
8223 tmp_addflag=' $pic_flag -Mnomain' ;;
8224 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8225 tmp_addflag=' -i_dynamic' ;;
8226 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8227 tmp_addflag=' -i_dynamic -nofor_main' ;;
8228 ifc* | ifort*) # Intel Fortran compiler
8229 tmp_addflag=' -nofor_main' ;;
8230 lf95*) # Lahey Fortran 8.1
8231 whole_archive_flag_spec=
8232 tmp_sharedflag='--shared' ;;
8233 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8234 tmp_sharedflag='-qmkshrobj'
8235 tmp_addflag= ;;
8236 esac
8237 case `$CC -V 2>&1 | sed 5q` in
8238 *Sun\ C*) # Sun C 5.9
8239 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'
8240 compiler_needs_object=yes
8241 tmp_sharedflag='-G' ;;
8242 *Sun\ F*) # Sun Fortran 8.3
8243 tmp_sharedflag='-G' ;;
8244 esac
8245 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246
8247 if test "x$supports_anon_versioning" = xyes; then
8248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8250 echo "local: *; };" >> $output_objdir/$libname.ver~
8251 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8252 fi
8253
8254 case $cc_basename in
8255 xlf*)
8256 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8257 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8258 hardcode_libdir_flag_spec=
8259 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8260 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8261 if test "x$supports_anon_versioning" = xyes; then
8262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8264 echo "local: *; };" >> $output_objdir/$libname.ver~
8265 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8266 fi
8267 ;;
8268 esac
8269 else
8270 ld_shlibs=no
8271 fi
8272 ;;
8273
8274 netbsd*)
8275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8276 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8277 wlarc=
8278 else
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281 fi
8282 ;;
8283
8284 solaris*)
8285 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8286 ld_shlibs=no
8287 cat <<_LT_EOF 1>&2
8288
8289 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8290 *** create shared libraries on Solaris systems. Therefore, libtool
8291 *** is disabling shared libraries support. We urge you to upgrade GNU
8292 *** binutils to release 2.9.1 or newer. Another option is to modify
8293 *** your PATH or compiler configuration so that the native linker is
8294 *** used, and then restart.
8295
8296 _LT_EOF
8297 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300 else
8301 ld_shlibs=no
8302 fi
8303 ;;
8304
8305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8306 case `$LD -v 2>&1` in
8307 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8308 ld_shlibs=no
8309 cat <<_LT_EOF 1>&2
8310
8311 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8312 *** reliably create shared libraries on SCO systems. Therefore, libtool
8313 *** is disabling shared libraries support. We urge you to upgrade GNU
8314 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8315 *** your PATH or compiler configuration so that the native linker is
8316 *** used, and then restart.
8317
8318 _LT_EOF
8319 ;;
8320 *)
8321 # For security reasons, it is highly recommended that you always
8322 # use absolute paths for naming shared libraries, and exclude the
8323 # DT_RUNPATH tag from executables and libraries. But doing so
8324 # requires that you compile everything twice, which is a pain.
8325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8329 else
8330 ld_shlibs=no
8331 fi
8332 ;;
8333 esac
8334 ;;
8335
8336 sunos4*)
8337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8338 wlarc=
8339 hardcode_direct=yes
8340 hardcode_shlibpath_var=no
8341 ;;
8342
8343 *)
8344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8347 else
8348 ld_shlibs=no
8349 fi
8350 ;;
8351 esac
8352
8353 if test "$ld_shlibs" = no; then
8354 runpath_var=
8355 hardcode_libdir_flag_spec=
8356 export_dynamic_flag_spec=
8357 whole_archive_flag_spec=
8358 fi
8359 else
8360 # PORTME fill in a description of your system's linker (not GNU ld)
8361 case $host_os in
8362 aix3*)
8363 allow_undefined_flag=unsupported
8364 always_export_symbols=yes
8365 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'
8366 # Note: this linker hardcodes the directories in LIBPATH if there
8367 # are no directories specified by -L.
8368 hardcode_minus_L=yes
8369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8370 # Neither direct hardcoding nor static linking is supported with a
8371 # broken collect2.
8372 hardcode_direct=unsupported
8373 fi
8374 ;;
8375
8376 aix[4-9]*)
8377 if test "$host_cpu" = ia64; then
8378 # On IA64, the linker does run time linking by default, so we don't
8379 # have to do anything special.
8380 aix_use_runtimelinking=no
8381 exp_sym_flag='-Bexport'
8382 no_entry_flag=""
8383 else
8384 # If we're using GNU nm, then we don't want the "-C" option.
8385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8386 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8387 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'
8388 else
8389 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'
8390 fi
8391 aix_use_runtimelinking=no
8392
8393 # Test if we are trying to use run time linking or normal
8394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8395 # need to do runtime linking.
8396 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8397 for ld_flag in $LDFLAGS; do
8398 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8399 aix_use_runtimelinking=yes
8400 break
8401 fi
8402 done
8403 ;;
8404 esac
8405
8406 exp_sym_flag='-bexport'
8407 no_entry_flag='-bnoentry'
8408 fi
8409
8410 # When large executables or shared objects are built, AIX ld can
8411 # have problems creating the table of contents. If linking a library
8412 # or program results in "error TOC overflow" add -mminimal-toc to
8413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8415
8416 archive_cmds=''
8417 hardcode_direct=yes
8418 hardcode_direct_absolute=yes
8419 hardcode_libdir_separator=':'
8420 link_all_deplibs=yes
8421 file_list_spec='${wl}-f,'
8422
8423 if test "$GCC" = yes; then
8424 case $host_os in aix4.[012]|aix4.[012].*)
8425 # We only want to do this on AIX 4.2 and lower, the check
8426 # below for broken collect2 doesn't work under 4.3+
8427 collect2name=`${CC} -print-prog-name=collect2`
8428 if test -f "$collect2name" &&
8429 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8430 then
8431 # We have reworked collect2
8432 :
8433 else
8434 # We have old collect2
8435 hardcode_direct=unsupported
8436 # It fails to find uninstalled libraries when the uninstalled
8437 # path is not listed in the libpath. Setting hardcode_minus_L
8438 # to unsupported forces relinking
8439 hardcode_minus_L=yes
8440 hardcode_libdir_flag_spec='-L$libdir'
8441 hardcode_libdir_separator=
8442 fi
8443 ;;
8444 esac
8445 shared_flag='-shared'
8446 if test "$aix_use_runtimelinking" = yes; then
8447 shared_flag="$shared_flag "'${wl}-G'
8448 fi
8449 else
8450 # not using gcc
8451 if test "$host_cpu" = ia64; then
8452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8453 # chokes on -Wl,-G. The following line is correct:
8454 shared_flag='-G'
8455 else
8456 if test "$aix_use_runtimelinking" = yes; then
8457 shared_flag='${wl}-G'
8458 else
8459 shared_flag='${wl}-bM:SRE'
8460 fi
8461 fi
8462 fi
8463
8464 export_dynamic_flag_spec='${wl}-bexpall'
8465 # It seems that -bexpall does not export symbols beginning with
8466 # underscore (_), so it is better to generate a list of symbols to export.
8467 always_export_symbols=yes
8468 if test "$aix_use_runtimelinking" = yes; then
8469 # Warning - without using the other runtime loading flags (-brtl),
8470 # -berok will link without error, but may produce a broken library.
8471 allow_undefined_flag='-berok'
8472 # Determine the default libpath from the value encoded in an
8473 # empty executable.
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480
8481 int
8482 main ()
8483 {
8484
8485 ;
8486 return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (ac_try="$ac_link"
8491 case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8496 $as_echo "$ac_try_echo") >&5
8497 (eval "$ac_link") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest$ac_exeext && {
8507 test "$cross_compiling" = yes ||
8508 $as_test_x conftest$ac_exeext
8509 }; then
8510
8511 lt_aix_libpath_sed='
8512 /Import File Strings/,/^$/ {
8513 /^0/ {
8514 s/^0 *\(.*\)$/\1/
8515 p
8516 }
8517 }'
8518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8519 # Check for a 64-bit object if we didn't find anything.
8520 if test -z "$aix_libpath"; then
8521 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8522 fi
8523 else
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527
8528 fi
8529
8530 rm -rf conftest.dSYM
8531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8532 conftest$ac_exeext conftest.$ac_ext
8533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8534
8535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8536 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"
8537 else
8538 if test "$host_cpu" = ia64; then
8539 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8540 allow_undefined_flag="-z nodefs"
8541 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"
8542 else
8543 # Determine the default libpath from the value encoded in an
8544 # empty executable.
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551
8552 int
8553 main ()
8554 {
8555
8556 ;
8557 return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (ac_try="$ac_link"
8562 case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565 esac
8566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8567 $as_echo "$ac_try_echo") >&5
8568 (eval "$ac_link") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest$ac_exeext && {
8578 test "$cross_compiling" = yes ||
8579 $as_test_x conftest$ac_exeext
8580 }; then
8581
8582 lt_aix_libpath_sed='
8583 /Import File Strings/,/^$/ {
8584 /^0/ {
8585 s/^0 *\(.*\)$/\1/
8586 p
8587 }
8588 }'
8589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8590 # Check for a 64-bit object if we didn't find anything.
8591 if test -z "$aix_libpath"; then
8592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8593 fi
8594 else
8595 $as_echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598
8599 fi
8600
8601 rm -rf conftest.dSYM
8602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8603 conftest$ac_exeext conftest.$ac_ext
8604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8605
8606 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8607 # Warning - without using the other run time loading flags,
8608 # -berok will link without error, but may produce a broken library.
8609 no_undefined_flag=' ${wl}-bernotok'
8610 allow_undefined_flag=' ${wl}-berok'
8611 # Exported symbols can be pulled into shared objects from archives
8612 whole_archive_flag_spec='$convenience'
8613 archive_cmds_need_lc=yes
8614 # This is similar to how AIX traditionally builds its shared libraries.
8615 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'
8616 fi
8617 fi
8618 ;;
8619
8620 amigaos*)
8621 case $host_cpu in
8622 powerpc)
8623 # see comment about AmigaOS4 .so support
8624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625 archive_expsym_cmds=''
8626 ;;
8627 m68k)
8628 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)'
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 hardcode_minus_L=yes
8631 ;;
8632 esac
8633 ;;
8634
8635 bsdi[45]*)
8636 export_dynamic_flag_spec=-rdynamic
8637 ;;
8638
8639 cygwin* | mingw* | pw32* | cegcc*)
8640 # When not using gcc, we currently assume that we are using
8641 # Microsoft Visual C++.
8642 # hardcode_libdir_flag_spec is actually meaningless, as there is
8643 # no search path for DLLs.
8644 hardcode_libdir_flag_spec=' '
8645 allow_undefined_flag=unsupported
8646 # Tell ltmain to make .lib files, not .a files.
8647 libext=lib
8648 # Tell ltmain to make .dll files, not .so files.
8649 shrext_cmds=".dll"
8650 # FIXME: Setting linknames here is a bad hack.
8651 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8652 # The linker will automatically build a .lib file if we build a DLL.
8653 old_archive_from_new_cmds='true'
8654 # FIXME: Should let the user specify the lib program.
8655 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8656 fix_srcfile_path='`cygpath -w "$srcfile"`'
8657 enable_shared_with_static_runtimes=yes
8658 ;;
8659
8660 darwin* | rhapsody*)
8661
8662
8663 archive_cmds_need_lc=no
8664 hardcode_direct=no
8665 hardcode_automatic=yes
8666 hardcode_shlibpath_var=unsupported
8667 whole_archive_flag_spec=''
8668 link_all_deplibs=yes
8669 allow_undefined_flag="$_lt_dar_allow_undefined"
8670 case $cc_basename in
8671 ifort*) _lt_dar_can_shared=yes ;;
8672 *) _lt_dar_can_shared=$GCC ;;
8673 esac
8674 if test "$_lt_dar_can_shared" = "yes"; then
8675 output_verbose_link_cmd=echo
8676 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8677 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8678 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}"
8679 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}"
8680
8681 else
8682 ld_shlibs=no
8683 fi
8684
8685 ;;
8686
8687 dgux*)
8688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_libdir_flag_spec='-L$libdir'
8690 hardcode_shlibpath_var=no
8691 ;;
8692
8693 freebsd1*)
8694 ld_shlibs=no
8695 ;;
8696
8697 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8698 # support. Future versions do this automatically, but an explicit c++rt0.o
8699 # does not break anything, and helps significantly (at the cost of a little
8700 # extra space).
8701 freebsd2.2*)
8702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8703 hardcode_libdir_flag_spec='-R$libdir'
8704 hardcode_direct=yes
8705 hardcode_shlibpath_var=no
8706 ;;
8707
8708 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8709 freebsd2*)
8710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711 hardcode_direct=yes
8712 hardcode_minus_L=yes
8713 hardcode_shlibpath_var=no
8714 ;;
8715
8716 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8717 freebsd* | dragonfly*)
8718 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8719 hardcode_libdir_flag_spec='-R$libdir'
8720 hardcode_direct=yes
8721 hardcode_shlibpath_var=no
8722 ;;
8723
8724 hpux9*)
8725 if test "$GCC" = yes; then
8726 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'
8727 else
8728 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'
8729 fi
8730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8731 hardcode_libdir_separator=:
8732 hardcode_direct=yes
8733
8734 # hardcode_minus_L: Not really in the search PATH,
8735 # but as the default location of the library.
8736 hardcode_minus_L=yes
8737 export_dynamic_flag_spec='${wl}-E'
8738 ;;
8739
8740 hpux10*)
8741 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8743 else
8744 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8745 fi
8746 if test "$with_gnu_ld" = no; then
8747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8748 hardcode_libdir_flag_spec_ld='+b $libdir'
8749 hardcode_libdir_separator=:
8750 hardcode_direct=yes
8751 hardcode_direct_absolute=yes
8752 export_dynamic_flag_spec='${wl}-E'
8753 # hardcode_minus_L: Not really in the search PATH,
8754 # but as the default location of the library.
8755 hardcode_minus_L=yes
8756 fi
8757 ;;
8758
8759 hpux11*)
8760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8761 case $host_cpu in
8762 hppa*64*)
8763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8764 ;;
8765 ia64*)
8766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8767 ;;
8768 *)
8769 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8770 ;;
8771 esac
8772 else
8773 case $host_cpu in
8774 hppa*64*)
8775 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 ;;
8777 ia64*)
8778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8779 ;;
8780 *)
8781 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8782 ;;
8783 esac
8784 fi
8785 if test "$with_gnu_ld" = no; then
8786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8787 hardcode_libdir_separator=:
8788
8789 case $host_cpu in
8790 hppa*64*|ia64*)
8791 hardcode_direct=no
8792 hardcode_shlibpath_var=no
8793 ;;
8794 *)
8795 hardcode_direct=yes
8796 hardcode_direct_absolute=yes
8797 export_dynamic_flag_spec='${wl}-E'
8798
8799 # hardcode_minus_L: Not really in the search PATH,
8800 # but as the default location of the library.
8801 hardcode_minus_L=yes
8802 ;;
8803 esac
8804 fi
8805 ;;
8806
8807 irix5* | irix6* | nonstopux*)
8808 if test "$GCC" = yes; then
8809 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'
8810 # Try to use the -exported_symbol ld option, if it does not
8811 # work, assume that -exports_file does not work either and
8812 # implicitly export all symbols.
8813 save_LDFLAGS="$LDFLAGS"
8814 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8815 cat >conftest.$ac_ext <<_ACEOF
8816 int foo(void) {}
8817 _ACEOF
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (ac_try="$ac_link"
8820 case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823 esac
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_link") 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest$ac_exeext && {
8836 test "$cross_compiling" = yes ||
8837 $as_test_x conftest$ac_exeext
8838 }; then
8839 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'
8840
8841 else
8842 $as_echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845
8846 fi
8847
8848 rm -rf conftest.dSYM
8849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8850 conftest$ac_exeext conftest.$ac_ext
8851 LDFLAGS="$save_LDFLAGS"
8852 else
8853 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'
8854 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'
8855 fi
8856 archive_cmds_need_lc='no'
8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8858 hardcode_libdir_separator=:
8859 inherit_rpath=yes
8860 link_all_deplibs=yes
8861 ;;
8862
8863 netbsd*)
8864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8866 else
8867 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8868 fi
8869 hardcode_libdir_flag_spec='-R$libdir'
8870 hardcode_direct=yes
8871 hardcode_shlibpath_var=no
8872 ;;
8873
8874 newsos6)
8875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876 hardcode_direct=yes
8877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8878 hardcode_libdir_separator=:
8879 hardcode_shlibpath_var=no
8880 ;;
8881
8882 *nto* | *qnx*)
8883 ;;
8884
8885 openbsd*)
8886 if test -f /usr/libexec/ld.so; then
8887 hardcode_direct=yes
8888 hardcode_shlibpath_var=no
8889 hardcode_direct_absolute=yes
8890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8894 export_dynamic_flag_spec='${wl}-E'
8895 else
8896 case $host_os in
8897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_libdir_flag_spec='-R$libdir'
8900 ;;
8901 *)
8902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8904 ;;
8905 esac
8906 fi
8907 else
8908 ld_shlibs=no
8909 fi
8910 ;;
8911
8912 os2*)
8913 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_minus_L=yes
8915 allow_undefined_flag=unsupported
8916 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'
8917 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8918 ;;
8919
8920 osf3*)
8921 if test "$GCC" = yes; then
8922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8923 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'
8924 else
8925 allow_undefined_flag=' -expect_unresolved \*'
8926 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'
8927 fi
8928 archive_cmds_need_lc='no'
8929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930 hardcode_libdir_separator=:
8931 ;;
8932
8933 osf4* | osf5*) # as osf3* with the addition of -msym flag
8934 if test "$GCC" = yes; then
8935 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8936 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'
8937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8938 else
8939 allow_undefined_flag=' -expect_unresolved \*'
8940 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'
8941 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~
8942 $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'
8943
8944 # Both c and cxx compiler support -rpath directly
8945 hardcode_libdir_flag_spec='-rpath $libdir'
8946 fi
8947 archive_cmds_need_lc='no'
8948 hardcode_libdir_separator=:
8949 ;;
8950
8951 solaris*)
8952 no_undefined_flag=' -z defs'
8953 if test "$GCC" = yes; then
8954 wlarc='${wl}'
8955 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8957 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8958 else
8959 case `$CC -V 2>&1` in
8960 *"Compilers 5.0"*)
8961 wlarc=''
8962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8965 ;;
8966 *)
8967 wlarc='${wl}'
8968 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8970 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8971 ;;
8972 esac
8973 fi
8974 hardcode_libdir_flag_spec='-R$libdir'
8975 hardcode_shlibpath_var=no
8976 case $host_os in
8977 solaris2.[0-5] | solaris2.[0-5].*) ;;
8978 *)
8979 # The compiler driver will combine and reorder linker options,
8980 # but understands `-z linker_flag'. GCC discards it without `$wl',
8981 # but is careful enough not to reorder.
8982 # Supported since Solaris 2.6 (maybe 2.5.1?)
8983 if test "$GCC" = yes; then
8984 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8985 else
8986 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8987 fi
8988 ;;
8989 esac
8990 link_all_deplibs=yes
8991 ;;
8992
8993 sunos4*)
8994 if test "x$host_vendor" = xsequent; then
8995 # Use $CC to link under sequent, because it throws in some extra .o
8996 # files that make .init and .fini sections work.
8997 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8998 else
8999 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9000 fi
9001 hardcode_libdir_flag_spec='-L$libdir'
9002 hardcode_direct=yes
9003 hardcode_minus_L=yes
9004 hardcode_shlibpath_var=no
9005 ;;
9006
9007 sysv4)
9008 case $host_vendor in
9009 sni)
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_direct=yes # is this really true???
9012 ;;
9013 siemens)
9014 ## LD is ld it makes a PLAMLIB
9015 ## CC just makes a GrossModule.
9016 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9017 reload_cmds='$CC -r -o $output$reload_objs'
9018 hardcode_direct=no
9019 ;;
9020 motorola)
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9023 ;;
9024 esac
9025 runpath_var='LD_RUN_PATH'
9026 hardcode_shlibpath_var=no
9027 ;;
9028
9029 sysv4.3*)
9030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_shlibpath_var=no
9032 export_dynamic_flag_spec='-Bexport'
9033 ;;
9034
9035 sysv4*MP*)
9036 if test -d /usr/nec; then
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_shlibpath_var=no
9039 runpath_var=LD_RUN_PATH
9040 hardcode_runpath_var=yes
9041 ld_shlibs=yes
9042 fi
9043 ;;
9044
9045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9046 no_undefined_flag='${wl}-z,text'
9047 archive_cmds_need_lc=no
9048 hardcode_shlibpath_var=no
9049 runpath_var='LD_RUN_PATH'
9050
9051 if test "$GCC" = yes; then
9052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054 else
9055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9057 fi
9058 ;;
9059
9060 sysv5* | sco3.2v5* | sco5v6*)
9061 # Note: We can NOT use -z defs as we might desire, because we do not
9062 # link with -lc, and that would cause any symbols used from libc to
9063 # always be unresolved, which means just about no library would
9064 # ever link correctly. If we're not using GNU ld we use -z text
9065 # though, which does catch some bad symbols but isn't as heavy-handed
9066 # as -z defs.
9067 no_undefined_flag='${wl}-z,text'
9068 allow_undefined_flag='${wl}-z,nodefs'
9069 archive_cmds_need_lc=no
9070 hardcode_shlibpath_var=no
9071 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9072 hardcode_libdir_separator=':'
9073 link_all_deplibs=yes
9074 export_dynamic_flag_spec='${wl}-Bexport'
9075 runpath_var='LD_RUN_PATH'
9076
9077 if test "$GCC" = yes; then
9078 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080 else
9081 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 fi
9084 ;;
9085
9086 uts4*)
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_libdir_flag_spec='-L$libdir'
9089 hardcode_shlibpath_var=no
9090 ;;
9091
9092 *)
9093 ld_shlibs=no
9094 ;;
9095 esac
9096
9097 if test x$host_vendor = xsni; then
9098 case $host in
9099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9100 export_dynamic_flag_spec='${wl}-Blargedynsym'
9101 ;;
9102 esac
9103 fi
9104 fi
9105
9106 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9107 $as_echo "$ld_shlibs" >&6; }
9108 test "$ld_shlibs" = no && can_build_shared=no
9109
9110 with_gnu_ld=$with_gnu_ld
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126 #
9127 # Do we need to explicitly link libc?
9128 #
9129 case "x$archive_cmds_need_lc" in
9130 x|xyes)
9131 # Assume -lc should be added
9132 archive_cmds_need_lc=yes
9133
9134 if test "$enable_shared" = yes && test "$GCC" = yes; then
9135 case $archive_cmds in
9136 *'~'*)
9137 # FIXME: we may have to deal with multi-command sequences.
9138 ;;
9139 '$CC '*)
9140 # Test whether the compiler implicitly links with -lc since on some
9141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9142 # to ld, don't add -lc before -lgcc.
9143 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9144 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9145 $RM conftest*
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>&5
9150 ac_status=$?
9151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } 2>conftest.err; then
9153 soname=conftest
9154 lib=conftest
9155 libobjs=conftest.$ac_objext
9156 deplibs=
9157 wl=$lt_prog_compiler_wl
9158 pic_flag=$lt_prog_compiler_pic
9159 compiler_flags=-v
9160 linker_flags=-v
9161 verstring=
9162 output_objdir=.
9163 libname=conftest
9164 lt_save_allow_undefined_flag=$allow_undefined_flag
9165 allow_undefined_flag=
9166 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9167 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9168 ac_status=$?
9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }
9171 then
9172 archive_cmds_need_lc=no
9173 else
9174 archive_cmds_need_lc=yes
9175 fi
9176 allow_undefined_flag=$lt_save_allow_undefined_flag
9177 else
9178 cat conftest.err 1>&5
9179 fi
9180 $RM conftest*
9181 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9182 $as_echo "$archive_cmds_need_lc" >&6; }
9183 ;;
9184 esac
9185 fi
9186 ;;
9187 esac
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9346 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9347
9348 if test "$GCC" = yes; then
9349 case $host_os in
9350 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9351 *) lt_awk_arg="/^libraries:/" ;;
9352 esac
9353 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9354 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9355 # if the path contains ";" then we assume it to be the separator
9356 # otherwise default to the standard path separator (i.e. ":") - it is
9357 # assumed that no part of a normal pathname contains ";" but that should
9358 # okay in the real world where ";" in dirpaths is itself problematic.
9359 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9360 else
9361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9362 fi
9363 # Ok, now we have the path, separated by spaces, we can step through it
9364 # and add multilib dir if necessary.
9365 lt_tmp_lt_search_path_spec=
9366 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9367 for lt_sys_path in $lt_search_path_spec; do
9368 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9370 else
9371 test -d "$lt_sys_path" && \
9372 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9373 fi
9374 done
9375 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9376 BEGIN {RS=" "; FS="/|\n";} {
9377 lt_foo="";
9378 lt_count=0;
9379 for (lt_i = NF; lt_i > 0; lt_i--) {
9380 if ($lt_i != "" && $lt_i != ".") {
9381 if ($lt_i == "..") {
9382 lt_count++;
9383 } else {
9384 if (lt_count == 0) {
9385 lt_foo="/" $lt_i lt_foo;
9386 } else {
9387 lt_count--;
9388 }
9389 }
9390 }
9391 }
9392 if (lt_foo != "") { lt_freq[lt_foo]++; }
9393 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9394 }'`
9395 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9396 else
9397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9398 fi
9399 library_names_spec=
9400 libname_spec='lib$name'
9401 soname_spec=
9402 shrext_cmds=".so"
9403 postinstall_cmds=
9404 postuninstall_cmds=
9405 finish_cmds=
9406 finish_eval=
9407 shlibpath_var=
9408 shlibpath_overrides_runpath=unknown
9409 version_type=none
9410 dynamic_linker="$host_os ld.so"
9411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9412 need_lib_prefix=unknown
9413 hardcode_into_libs=no
9414
9415 # when you set need_version to no, make sure it does not cause -set_version
9416 # flags to be left without arguments
9417 need_version=unknown
9418
9419 case $host_os in
9420 aix3*)
9421 version_type=linux
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9423 shlibpath_var=LIBPATH
9424
9425 # AIX 3 has no versioning support, so we append a major version to the name.
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 ;;
9428
9429 aix[4-9]*)
9430 version_type=linux
9431 need_lib_prefix=no
9432 need_version=no
9433 hardcode_into_libs=yes
9434 if test "$host_cpu" = ia64; then
9435 # AIX 5 supports IA64
9436 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 else
9439 # With GCC up to 2.95.x, collect2 would create an import file
9440 # for dependence libraries. The import file would start with
9441 # the line `#! .'. This would cause the generated library to
9442 # depend on `.', always an invalid library. This was fixed in
9443 # development snapshots of GCC prior to 3.0.
9444 case $host_os in
9445 aix4 | aix4.[01] | aix4.[01].*)
9446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9447 echo ' yes '
9448 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9449 :
9450 else
9451 can_build_shared=no
9452 fi
9453 ;;
9454 esac
9455 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9456 # soname into executable. Probably we can add versioning support to
9457 # collect2, so additional links can be useful in future.
9458 if test "$aix_use_runtimelinking" = yes; then
9459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9460 # instead of lib<name>.a to let people know that these are not
9461 # typical AIX shared libraries.
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 else
9464 # We preserve .a as extension for shared libraries through AIX4.2
9465 # and later when we are not doing run time linking.
9466 library_names_spec='${libname}${release}.a $libname.a'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 fi
9469 shlibpath_var=LIBPATH
9470 fi
9471 ;;
9472
9473 amigaos*)
9474 case $host_cpu in
9475 powerpc)
9476 # Since July 2007 AmigaOS4 officially supports .so libraries.
9477 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479 ;;
9480 m68k)
9481 library_names_spec='$libname.ixlibrary $libname.a'
9482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9483 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'
9484 ;;
9485 esac
9486 ;;
9487
9488 beos*)
9489 library_names_spec='${libname}${shared_ext}'
9490 dynamic_linker="$host_os ld.so"
9491 shlibpath_var=LIBRARY_PATH
9492 ;;
9493
9494 bsdi[45]*)
9495 version_type=linux
9496 need_version=no
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9503 # the default ld.so.conf also contains /usr/contrib/lib and
9504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9505 # libtool to hard-code these into programs
9506 ;;
9507
9508 cygwin* | mingw* | pw32* | cegcc*)
9509 version_type=windows
9510 shrext_cmds=".dll"
9511 need_version=no
9512 need_lib_prefix=no
9513
9514 case $GCC,$host_os in
9515 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9516 library_names_spec='$libname.dll.a'
9517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9518 postinstall_cmds='base_file=`basename \${file}`~
9519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9520 dldir=$destdir/`dirname \$dlpath`~
9521 test -d \$dldir || mkdir -p \$dldir~
9522 $install_prog $dir/$dlname \$dldir/$dlname~
9523 chmod a+x \$dldir/$dlname~
9524 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9525 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9526 fi'
9527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9528 dlpath=$dir/\$dldll~
9529 $RM \$dlpath'
9530 shlibpath_overrides_runpath=yes
9531
9532 case $host_os in
9533 cygwin*)
9534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9536 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9537 ;;
9538 mingw* | cegcc*)
9539 # MinGW DLLs use traditional 'lib' prefix
9540 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9541 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9542 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9543 # It is most probably a Windows format PATH printed by
9544 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9545 # path with ; separators, and with drive letters. We can handle the
9546 # drive letters (cygwin fileutils understands them), so leave them,
9547 # especially as we might pass files found there to a mingw objdump,
9548 # which wouldn't understand a cygwinified path. Ahh.
9549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9550 else
9551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9552 fi
9553 ;;
9554 pw32*)
9555 # pw32 DLLs use 'pw' prefix rather than 'lib'
9556 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9557 ;;
9558 esac
9559 ;;
9560
9561 *)
9562 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9563 ;;
9564 esac
9565 dynamic_linker='Win32 ld.exe'
9566 # FIXME: first we should search . and the directory the executable is in
9567 shlibpath_var=PATH
9568 ;;
9569
9570 darwin* | rhapsody*)
9571 dynamic_linker="$host_os dyld"
9572 version_type=darwin
9573 need_lib_prefix=no
9574 need_version=no
9575 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9576 soname_spec='${libname}${release}${major}$shared_ext'
9577 shlibpath_overrides_runpath=yes
9578 shlibpath_var=DYLD_LIBRARY_PATH
9579 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9580
9581 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9582 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9583 ;;
9584
9585 dgux*)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 ;;
9593
9594 freebsd1*)
9595 dynamic_linker=no
9596 ;;
9597
9598 freebsd* | dragonfly*)
9599 # DragonFly does not have aout. When/if they implement a new
9600 # versioning mechanism, adjust this.
9601 if test -x /usr/bin/objformat; then
9602 objformat=`/usr/bin/objformat`
9603 else
9604 case $host_os in
9605 freebsd[123]*) objformat=aout ;;
9606 *) objformat=elf ;;
9607 esac
9608 fi
9609 version_type=freebsd-$objformat
9610 case $version_type in
9611 freebsd-elf*)
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9613 need_version=no
9614 need_lib_prefix=no
9615 ;;
9616 freebsd-*)
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9618 need_version=yes
9619 ;;
9620 esac
9621 shlibpath_var=LD_LIBRARY_PATH
9622 case $host_os in
9623 freebsd2*)
9624 shlibpath_overrides_runpath=yes
9625 ;;
9626 freebsd3.[01]* | freebsdelf3.[01]*)
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9629 ;;
9630 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9631 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9632 shlibpath_overrides_runpath=no
9633 hardcode_into_libs=yes
9634 ;;
9635 *) # from 4.6 on, and DragonFly
9636 shlibpath_overrides_runpath=yes
9637 hardcode_into_libs=yes
9638 ;;
9639 esac
9640 ;;
9641
9642 gnu*)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 hardcode_into_libs=yes
9650 ;;
9651
9652 hpux9* | hpux10* | hpux11*)
9653 # Give a soname corresponding to the major version so that dld.sl refuses to
9654 # link against other versions.
9655 version_type=sunos
9656 need_lib_prefix=no
9657 need_version=no
9658 case $host_cpu in
9659 ia64*)
9660 shrext_cmds='.so'
9661 hardcode_into_libs=yes
9662 dynamic_linker="$host_os dld.so"
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 if test "X$HPUX_IA64_MODE" = X32; then
9668 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9669 else
9670 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9671 fi
9672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9673 ;;
9674 hppa*64*)
9675 shrext_cmds='.sl'
9676 hardcode_into_libs=yes
9677 dynamic_linker="$host_os dld.sl"
9678 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9683 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9684 ;;
9685 *)
9686 shrext_cmds='.sl'
9687 dynamic_linker="$host_os dld.sl"
9688 shlibpath_var=SHLIB_PATH
9689 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 ;;
9693 esac
9694 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9695 postinstall_cmds='chmod 555 $lib'
9696 ;;
9697
9698 interix[3-9]*)
9699 version_type=linux
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=no
9707 hardcode_into_libs=yes
9708 ;;
9709
9710 irix5* | irix6* | nonstopux*)
9711 case $host_os in
9712 nonstopux*) version_type=nonstopux ;;
9713 *)
9714 if test "$lt_cv_prog_gnu_ld" = yes; then
9715 version_type=linux
9716 else
9717 version_type=irix
9718 fi ;;
9719 esac
9720 need_lib_prefix=no
9721 need_version=no
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9724 case $host_os in
9725 irix5* | nonstopux*)
9726 libsuff= shlibsuff=
9727 ;;
9728 *)
9729 case $LD in # libtool.m4 will add one of these switches to LD
9730 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9731 libsuff= shlibsuff= libmagic=32-bit;;
9732 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9733 libsuff=32 shlibsuff=N32 libmagic=N32;;
9734 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9735 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9736 *) libsuff= shlibsuff= libmagic=never-match;;
9737 esac
9738 ;;
9739 esac
9740 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9741 shlibpath_overrides_runpath=no
9742 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9743 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9744 hardcode_into_libs=yes
9745 ;;
9746
9747 # No shared lib support for Linux oldld, aout, or coff.
9748 linux*oldld* | linux*aout* | linux*coff*)
9749 dynamic_linker=no
9750 ;;
9751
9752 # This must be Linux ELF.
9753 linux* | k*bsd*-gnu)
9754 version_type=linux
9755 need_lib_prefix=no
9756 need_version=no
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9760 shlibpath_var=LD_LIBRARY_PATH
9761 shlibpath_overrides_runpath=no
9762 # Some binutils ld are patched to set DT_RUNPATH
9763 save_LDFLAGS=$LDFLAGS
9764 save_libdir=$libdir
9765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h. */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773
9774 int
9775 main ()
9776 {
9777
9778 ;
9779 return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9789 $as_echo "$ac_try_echo") >&5
9790 (eval "$ac_link") 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext && {
9800 test "$cross_compiling" = yes ||
9801 $as_test_x conftest$ac_exeext
9802 }; then
9803 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9804 shlibpath_overrides_runpath=yes
9805 fi
9806
9807 else
9808 $as_echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811
9812 fi
9813
9814 rm -rf conftest.dSYM
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LDFLAGS=$save_LDFLAGS
9818 libdir=$save_libdir
9819
9820 # This implies no fast_install, which is unacceptable.
9821 # Some rework will be needed to allow for fast_install
9822 # before this can be enabled.
9823 hardcode_into_libs=yes
9824
9825 # Append ld.so.conf contents to the search path
9826 if test -f /etc/ld.so.conf; then
9827 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' ' '`
9828 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9829 fi
9830
9831 # We used to test for /lib/ld.so.1 and disable shared libraries on
9832 # powerpc, because MkLinux only supported shared libraries with the
9833 # GNU dynamic linker. Since this was broken with cross compilers,
9834 # most powerpc-linux boxes support dynamic linking these days and
9835 # people can always --disable-shared, the test was removed, and we
9836 # assume the GNU/Linux dynamic linker is in use.
9837 dynamic_linker='GNU/Linux ld.so'
9838 ;;
9839
9840 netbsd*)
9841 version_type=sunos
9842 need_lib_prefix=no
9843 need_version=no
9844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9847 dynamic_linker='NetBSD (a.out) ld.so'
9848 else
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 dynamic_linker='NetBSD ld.elf_so'
9852 fi
9853 shlibpath_var=LD_LIBRARY_PATH
9854 shlibpath_overrides_runpath=yes
9855 hardcode_into_libs=yes
9856 ;;
9857
9858 newsos6)
9859 version_type=linux
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 shlibpath_overrides_runpath=yes
9863 ;;
9864
9865 *nto* | *qnx*)
9866 version_type=qnx
9867 need_lib_prefix=no
9868 need_version=no
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 shlibpath_overrides_runpath=no
9873 hardcode_into_libs=yes
9874 dynamic_linker='ldqnx.so'
9875 ;;
9876
9877 openbsd*)
9878 version_type=sunos
9879 sys_lib_dlsearch_path_spec="/usr/lib"
9880 need_lib_prefix=no
9881 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9882 case $host_os in
9883 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9884 *) need_version=no ;;
9885 esac
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9890 case $host_os in
9891 openbsd2.[89] | openbsd2.[89].*)
9892 shlibpath_overrides_runpath=no
9893 ;;
9894 *)
9895 shlibpath_overrides_runpath=yes
9896 ;;
9897 esac
9898 else
9899 shlibpath_overrides_runpath=yes
9900 fi
9901 ;;
9902
9903 os2*)
9904 libname_spec='$name'
9905 shrext_cmds=".dll"
9906 need_lib_prefix=no
9907 library_names_spec='$libname${shared_ext} $libname.a'
9908 dynamic_linker='OS/2 ld.exe'
9909 shlibpath_var=LIBPATH
9910 ;;
9911
9912 osf3* | osf4* | osf5*)
9913 version_type=osf
9914 need_lib_prefix=no
9915 need_version=no
9916 soname_spec='${libname}${release}${shared_ext}$major'
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9920 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9921 ;;
9922
9923 rdos*)
9924 dynamic_linker=no
9925 ;;
9926
9927 solaris*)
9928 version_type=linux
9929 need_lib_prefix=no
9930 need_version=no
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 shlibpath_overrides_runpath=yes
9935 hardcode_into_libs=yes
9936 # ldd complains unless libraries are executable
9937 postinstall_cmds='chmod +x $lib'
9938 ;;
9939
9940 sunos4*)
9941 version_type=sunos
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9943 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9944 shlibpath_var=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath=yes
9946 if test "$with_gnu_ld" = yes; then
9947 need_lib_prefix=no
9948 fi
9949 need_version=yes
9950 ;;
9951
9952 sysv4 | sysv4.3*)
9953 version_type=linux
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 case $host_vendor in
9958 sni)
9959 shlibpath_overrides_runpath=no
9960 need_lib_prefix=no
9961 runpath_var=LD_RUN_PATH
9962 ;;
9963 siemens)
9964 need_lib_prefix=no
9965 ;;
9966 motorola)
9967 need_lib_prefix=no
9968 need_version=no
9969 shlibpath_overrides_runpath=no
9970 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9971 ;;
9972 esac
9973 ;;
9974
9975 sysv4*MP*)
9976 if test -d /usr/nec ;then
9977 version_type=linux
9978 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9979 soname_spec='$libname${shared_ext}.$major'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 fi
9982 ;;
9983
9984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9985 version_type=freebsd-elf
9986 need_lib_prefix=no
9987 need_version=no
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9993 if test "$with_gnu_ld" = yes; then
9994 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9995 else
9996 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9997 case $host_os in
9998 sco3.2v5*)
9999 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10000 ;;
10001 esac
10002 fi
10003 sys_lib_dlsearch_path_spec='/usr/lib'
10004 ;;
10005
10006 tpf*)
10007 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10008 version_type=linux
10009 need_lib_prefix=no
10010 need_version=no
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 shlibpath_overrides_runpath=no
10014 hardcode_into_libs=yes
10015 ;;
10016
10017 uts4*)
10018 version_type=linux
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 ;;
10023
10024 *)
10025 dynamic_linker=no
10026 ;;
10027 esac
10028 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10029 $as_echo "$dynamic_linker" >&6; }
10030 test "$dynamic_linker" = no && can_build_shared=no
10031
10032 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10033 if test "$GCC" = yes; then
10034 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10035 fi
10036
10037 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10038 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10039 fi
10040 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10041 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10042 fi
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10131 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10132 hardcode_action=
10133 if test -n "$hardcode_libdir_flag_spec" ||
10134 test -n "$runpath_var" ||
10135 test "X$hardcode_automatic" = "Xyes" ; then
10136
10137 # We can hardcode non-existent directories.
10138 if test "$hardcode_direct" != no &&
10139 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10140 # have to relink, otherwise we might link with an installed library
10141 # when we should be linking with a yet-to-be-installed one
10142 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10143 test "$hardcode_minus_L" != no; then
10144 # Linking always hardcodes the temporary library directory.
10145 hardcode_action=relink
10146 else
10147 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10148 hardcode_action=immediate
10149 fi
10150 else
10151 # We cannot hardcode anything, or else we can only hardcode existing
10152 # directories.
10153 hardcode_action=unsupported
10154 fi
10155 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10156 $as_echo "$hardcode_action" >&6; }
10157
10158 if test "$hardcode_action" = relink ||
10159 test "$inherit_rpath" = yes; then
10160 # Fast installation is not supported
10161 enable_fast_install=no
10162 elif test "$shlibpath_overrides_runpath" = yes ||
10163 test "$enable_shared" = no; then
10164 # Fast installation is not necessary
10165 enable_fast_install=needless
10166 fi
10167
10168
10169
10170
10171
10172
10173 if test "x$enable_dlopen" != xyes; then
10174 enable_dlopen=unknown
10175 enable_dlopen_self=unknown
10176 enable_dlopen_self_static=unknown
10177 else
10178 lt_cv_dlopen=no
10179 lt_cv_dlopen_libs=
10180
10181 case $host_os in
10182 beos*)
10183 lt_cv_dlopen="load_add_on"
10184 lt_cv_dlopen_libs=
10185 lt_cv_dlopen_self=yes
10186 ;;
10187
10188 mingw* | pw32* | cegcc*)
10189 lt_cv_dlopen="LoadLibrary"
10190 lt_cv_dlopen_libs=
10191 ;;
10192
10193 cygwin*)
10194 lt_cv_dlopen="dlopen"
10195 lt_cv_dlopen_libs=
10196 ;;
10197
10198 darwin*)
10199 # if libdl is installed we need to link against it
10200 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203 $as_echo_n "(cached) " >&6
10204 else
10205 ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-ldl $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h. */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char dlopen ();
10221 int
10222 main ()
10223 {
10224 return dlopen ();
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234 esac
10235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10236 $as_echo "$ac_try_echo") >&5
10237 (eval "$ac_link") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } && {
10244 test -z "$ac_c_werror_flag" ||
10245 test ! -s conftest.err
10246 } && test -s conftest$ac_exeext && {
10247 test "$cross_compiling" = yes ||
10248 $as_test_x conftest$ac_exeext
10249 }; then
10250 ac_cv_lib_dl_dlopen=yes
10251 else
10252 $as_echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255 ac_cv_lib_dl_dlopen=no
10256 fi
10257
10258 rm -rf conftest.dSYM
10259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_lib_save_LIBS
10262 fi
10263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10265 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10267 else
10268
10269 lt_cv_dlopen="dyld"
10270 lt_cv_dlopen_libs=
10271 lt_cv_dlopen_self=yes
10272
10273 fi
10274
10275 ;;
10276
10277 *)
10278 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10279 $as_echo_n "checking for shl_load... " >&6; }
10280 if test "${ac_cv_func_shl_load+set}" = set; then
10281 $as_echo_n "(cached) " >&6
10282 else
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10291 #define shl_load innocuous_shl_load
10292
10293 /* System header to define __stub macros and hopefully few prototypes,
10294 which can conflict with char shl_load (); below.
10295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10296 <limits.h> exists even on freestanding compilers. */
10297
10298 #ifdef __STDC__
10299 # include <limits.h>
10300 #else
10301 # include <assert.h>
10302 #endif
10303
10304 #undef shl_load
10305
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char shl_load ();
10313 /* The GNU C library defines this for functions which it implements
10314 to always fail with ENOSYS. Some functions are actually named
10315 something starting with __ and the normal name is an alias. */
10316 #if defined __stub_shl_load || defined __stub___shl_load
10317 choke me
10318 #endif
10319
10320 int
10321 main ()
10322 {
10323 return shl_load ();
10324 ;
10325 return 0;
10326 }
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10335 $as_echo "$ac_try_echo") >&5
10336 (eval "$ac_link") 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext && {
10346 test "$cross_compiling" = yes ||
10347 $as_test_x conftest$ac_exeext
10348 }; then
10349 ac_cv_func_shl_load=yes
10350 else
10351 $as_echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354 ac_cv_func_shl_load=no
10355 fi
10356
10357 rm -rf conftest.dSYM
10358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10359 conftest$ac_exeext conftest.$ac_ext
10360 fi
10361 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10362 $as_echo "$ac_cv_func_shl_load" >&6; }
10363 if test "x$ac_cv_func_shl_load" = x""yes; then
10364 lt_cv_dlopen="shl_load"
10365 else
10366 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10367 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10368 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10369 $as_echo_n "(cached) " >&6
10370 else
10371 ac_check_lib_save_LIBS=$LIBS
10372 LIBS="-ldld $LIBS"
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379
10380 /* Override any GCC internal prototype to avoid an error.
10381 Use char because int might match the return type of a GCC
10382 builtin and then its argument prototype would still apply. */
10383 #ifdef __cplusplus
10384 extern "C"
10385 #endif
10386 char shl_load ();
10387 int
10388 main ()
10389 {
10390 return shl_load ();
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10402 $as_echo "$ac_try_echo") >&5
10403 (eval "$ac_link") 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext && {
10413 test "$cross_compiling" = yes ||
10414 $as_test_x conftest$ac_exeext
10415 }; then
10416 ac_cv_lib_dld_shl_load=yes
10417 else
10418 $as_echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_cv_lib_dld_shl_load=no
10422 fi
10423
10424 rm -rf conftest.dSYM
10425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10428 fi
10429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10430 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10431 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10433 else
10434 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10435 $as_echo_n "checking for dlopen... " >&6; }
10436 if test "${ac_cv_func_dlopen+set}" = set; then
10437 $as_echo_n "(cached) " >&6
10438 else
10439 cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h. */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10447 #define dlopen innocuous_dlopen
10448
10449 /* System header to define __stub macros and hopefully few prototypes,
10450 which can conflict with char dlopen (); below.
10451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10452 <limits.h> exists even on freestanding compilers. */
10453
10454 #ifdef __STDC__
10455 # include <limits.h>
10456 #else
10457 # include <assert.h>
10458 #endif
10459
10460 #undef dlopen
10461
10462 /* Override any GCC internal prototype to avoid an error.
10463 Use char because int might match the return type of a GCC
10464 builtin and then its argument prototype would still apply. */
10465 #ifdef __cplusplus
10466 extern "C"
10467 #endif
10468 char dlopen ();
10469 /* The GNU C library defines this for functions which it implements
10470 to always fail with ENOSYS. Some functions are actually named
10471 something starting with __ and the normal name is an alias. */
10472 #if defined __stub_dlopen || defined __stub___dlopen
10473 choke me
10474 #endif
10475
10476 int
10477 main ()
10478 {
10479 return dlopen ();
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10491 $as_echo "$ac_try_echo") >&5
10492 (eval "$ac_link") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest$ac_exeext && {
10502 test "$cross_compiling" = yes ||
10503 $as_test_x conftest$ac_exeext
10504 }; then
10505 ac_cv_func_dlopen=yes
10506 else
10507 $as_echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 ac_cv_func_dlopen=no
10511 fi
10512
10513 rm -rf conftest.dSYM
10514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10515 conftest$ac_exeext conftest.$ac_ext
10516 fi
10517 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10518 $as_echo "$ac_cv_func_dlopen" >&6; }
10519 if test "x$ac_cv_func_dlopen" = x""yes; then
10520 lt_cv_dlopen="dlopen"
10521 else
10522 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10523 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10525 $as_echo_n "(cached) " >&6
10526 else
10527 ac_check_lib_save_LIBS=$LIBS
10528 LIBS="-ldl $LIBS"
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h. */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535
10536 /* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 char dlopen ();
10543 int
10544 main ()
10545 {
10546 return dlopen ();
10547 ;
10548 return 0;
10549 }
10550 _ACEOF
10551 rm -f conftest.$ac_objext conftest$ac_exeext
10552 if { (ac_try="$ac_link"
10553 case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10556 esac
10557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10558 $as_echo "$ac_try_echo") >&5
10559 (eval "$ac_link") 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest$ac_exeext && {
10569 test "$cross_compiling" = yes ||
10570 $as_test_x conftest$ac_exeext
10571 }; then
10572 ac_cv_lib_dl_dlopen=yes
10573 else
10574 $as_echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 ac_cv_lib_dl_dlopen=no
10578 fi
10579
10580 rm -rf conftest.dSYM
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10584 fi
10585 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10587 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10589 else
10590 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10591 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10592 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10593 $as_echo_n "(cached) " >&6
10594 else
10595 ac_check_lib_save_LIBS=$LIBS
10596 LIBS="-lsvld $LIBS"
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h. */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603
10604 /* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 char dlopen ();
10611 int
10612 main ()
10613 {
10614 return dlopen ();
10615 ;
10616 return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (ac_try="$ac_link"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624 esac
10625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10626 $as_echo "$ac_try_echo") >&5
10627 (eval "$ac_link") 2>conftest.er1
10628 ac_status=$?
10629 grep -v '^ *+' conftest.er1 >conftest.err
10630 rm -f conftest.er1
10631 cat conftest.err >&5
10632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } && {
10634 test -z "$ac_c_werror_flag" ||
10635 test ! -s conftest.err
10636 } && test -s conftest$ac_exeext && {
10637 test "$cross_compiling" = yes ||
10638 $as_test_x conftest$ac_exeext
10639 }; then
10640 ac_cv_lib_svld_dlopen=yes
10641 else
10642 $as_echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_cv_lib_svld_dlopen=no
10646 fi
10647
10648 rm -rf conftest.dSYM
10649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10654 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10655 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10657 else
10658 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10659 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10660 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10662 else
10663 ac_check_lib_save_LIBS=$LIBS
10664 LIBS="-ldld $LIBS"
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char dld_link ();
10679 int
10680 main ()
10681 {
10682 return dld_link ();
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (ac_try="$ac_link"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692 esac
10693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10694 $as_echo "$ac_try_echo") >&5
10695 (eval "$ac_link") 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest$ac_exeext && {
10705 test "$cross_compiling" = yes ||
10706 $as_test_x conftest$ac_exeext
10707 }; then
10708 ac_cv_lib_dld_dld_link=yes
10709 else
10710 $as_echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 ac_cv_lib_dld_dld_link=no
10714 fi
10715
10716 rm -rf conftest.dSYM
10717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10722 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10723 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10724 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10725 fi
10726
10727
10728 fi
10729
10730
10731 fi
10732
10733
10734 fi
10735
10736
10737 fi
10738
10739
10740 fi
10741
10742 ;;
10743 esac
10744
10745 if test "x$lt_cv_dlopen" != xno; then
10746 enable_dlopen=yes
10747 else
10748 enable_dlopen=no
10749 fi
10750
10751 case $lt_cv_dlopen in
10752 dlopen)
10753 save_CPPFLAGS="$CPPFLAGS"
10754 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10755
10756 save_LDFLAGS="$LDFLAGS"
10757 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10758
10759 save_LIBS="$LIBS"
10760 LIBS="$lt_cv_dlopen_libs $LIBS"
10761
10762 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10763 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10764 if test "${lt_cv_dlopen_self+set}" = set; then
10765 $as_echo_n "(cached) " >&6
10766 else
10767 if test "$cross_compiling" = yes; then :
10768 lt_cv_dlopen_self=cross
10769 else
10770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10771 lt_status=$lt_dlunknown
10772 cat > conftest.$ac_ext <<_LT_EOF
10773 #line 10773 "configure"
10774 #include "confdefs.h"
10775
10776 #if HAVE_DLFCN_H
10777 #include <dlfcn.h>
10778 #endif
10779
10780 #include <stdio.h>
10781
10782 #ifdef RTLD_GLOBAL
10783 # define LT_DLGLOBAL RTLD_GLOBAL
10784 #else
10785 # ifdef DL_GLOBAL
10786 # define LT_DLGLOBAL DL_GLOBAL
10787 # else
10788 # define LT_DLGLOBAL 0
10789 # endif
10790 #endif
10791
10792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10793 find out it does not work in some platform. */
10794 #ifndef LT_DLLAZY_OR_NOW
10795 # ifdef RTLD_LAZY
10796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10797 # else
10798 # ifdef DL_LAZY
10799 # define LT_DLLAZY_OR_NOW DL_LAZY
10800 # else
10801 # ifdef RTLD_NOW
10802 # define LT_DLLAZY_OR_NOW RTLD_NOW
10803 # else
10804 # ifdef DL_NOW
10805 # define LT_DLLAZY_OR_NOW DL_NOW
10806 # else
10807 # define LT_DLLAZY_OR_NOW 0
10808 # endif
10809 # endif
10810 # endif
10811 # endif
10812 #endif
10813
10814 void fnord() { int i=42;}
10815 int main ()
10816 {
10817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10818 int status = $lt_dlunknown;
10819
10820 if (self)
10821 {
10822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10823 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10824 /* dlclose (self); */
10825 }
10826 else
10827 puts (dlerror ());
10828
10829 return status;
10830 }
10831 _LT_EOF
10832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10833 (eval $ac_link) 2>&5
10834 ac_status=$?
10835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10837 (./conftest; exit; ) >&5 2>/dev/null
10838 lt_status=$?
10839 case x$lt_status in
10840 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10841 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10842 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10843 esac
10844 else :
10845 # compilation failed
10846 lt_cv_dlopen_self=no
10847 fi
10848 fi
10849 rm -fr conftest*
10850
10851
10852 fi
10853 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10854 $as_echo "$lt_cv_dlopen_self" >&6; }
10855
10856 if test "x$lt_cv_dlopen_self" = xyes; then
10857 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10858 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10859 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10860 if test "${lt_cv_dlopen_self_static+set}" = set; then
10861 $as_echo_n "(cached) " >&6
10862 else
10863 if test "$cross_compiling" = yes; then :
10864 lt_cv_dlopen_self_static=cross
10865 else
10866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10867 lt_status=$lt_dlunknown
10868 cat > conftest.$ac_ext <<_LT_EOF
10869 #line 10869 "configure"
10870 #include "confdefs.h"
10871
10872 #if HAVE_DLFCN_H
10873 #include <dlfcn.h>
10874 #endif
10875
10876 #include <stdio.h>
10877
10878 #ifdef RTLD_GLOBAL
10879 # define LT_DLGLOBAL RTLD_GLOBAL
10880 #else
10881 # ifdef DL_GLOBAL
10882 # define LT_DLGLOBAL DL_GLOBAL
10883 # else
10884 # define LT_DLGLOBAL 0
10885 # endif
10886 #endif
10887
10888 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10889 find out it does not work in some platform. */
10890 #ifndef LT_DLLAZY_OR_NOW
10891 # ifdef RTLD_LAZY
10892 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10893 # else
10894 # ifdef DL_LAZY
10895 # define LT_DLLAZY_OR_NOW DL_LAZY
10896 # else
10897 # ifdef RTLD_NOW
10898 # define LT_DLLAZY_OR_NOW RTLD_NOW
10899 # else
10900 # ifdef DL_NOW
10901 # define LT_DLLAZY_OR_NOW DL_NOW
10902 # else
10903 # define LT_DLLAZY_OR_NOW 0
10904 # endif
10905 # endif
10906 # endif
10907 # endif
10908 #endif
10909
10910 void fnord() { int i=42;}
10911 int main ()
10912 {
10913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914 int status = $lt_dlunknown;
10915
10916 if (self)
10917 {
10918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920 /* dlclose (self); */
10921 }
10922 else
10923 puts (dlerror ());
10924
10925 return status;
10926 }
10927 _LT_EOF
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>&5
10930 ac_status=$?
10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10933 (./conftest; exit; ) >&5 2>/dev/null
10934 lt_status=$?
10935 case x$lt_status in
10936 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10937 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10938 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10939 esac
10940 else :
10941 # compilation failed
10942 lt_cv_dlopen_self_static=no
10943 fi
10944 fi
10945 rm -fr conftest*
10946
10947
10948 fi
10949 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10950 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10951 fi
10952
10953 CPPFLAGS="$save_CPPFLAGS"
10954 LDFLAGS="$save_LDFLAGS"
10955 LIBS="$save_LIBS"
10956 ;;
10957 esac
10958
10959 case $lt_cv_dlopen_self in
10960 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10961 *) enable_dlopen_self=unknown ;;
10962 esac
10963
10964 case $lt_cv_dlopen_self_static in
10965 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10966 *) enable_dlopen_self_static=unknown ;;
10967 esac
10968 fi
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986 striplib=
10987 old_striplib=
10988 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10989 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10990 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10991 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10992 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10993 { $as_echo "$as_me:$LINENO: result: yes" >&5
10994 $as_echo "yes" >&6; }
10995 else
10996 # FIXME - insert some real tests, host_os isn't really good enough
10997 case $host_os in
10998 darwin*)
10999 if test -n "$STRIP" ; then
11000 striplib="$STRIP -x"
11001 old_striplib="$STRIP -S"
11002 { $as_echo "$as_me:$LINENO: result: yes" >&5
11003 $as_echo "yes" >&6; }
11004 else
11005 { $as_echo "$as_me:$LINENO: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008 ;;
11009 *)
11010 { $as_echo "$as_me:$LINENO: result: no" >&5
11011 $as_echo "no" >&6; }
11012 ;;
11013 esac
11014 fi
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027 # Report which library types will actually be built
11028 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11029 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11030 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11031 $as_echo "$can_build_shared" >&6; }
11032
11033 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11034 $as_echo_n "checking whether to build shared libraries... " >&6; }
11035 test "$can_build_shared" = "no" && enable_shared=no
11036
11037 # On AIX, shared libraries and static libraries use the same namespace, and
11038 # are all built from PIC.
11039 case $host_os in
11040 aix3*)
11041 test "$enable_shared" = yes && enable_static=no
11042 if test -n "$RANLIB"; then
11043 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11044 postinstall_cmds='$RANLIB $lib'
11045 fi
11046 ;;
11047
11048 aix[4-9]*)
11049 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11050 test "$enable_shared" = yes && enable_static=no
11051 fi
11052 ;;
11053 esac
11054 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11055 $as_echo "$enable_shared" >&6; }
11056
11057 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11058 $as_echo_n "checking whether to build static libraries... " >&6; }
11059 # Make sure either enable_shared or enable_static is yes.
11060 test "$enable_shared" = yes || enable_static=yes
11061 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11062 $as_echo "$enable_static" >&6; }
11063
11064
11065
11066
11067 fi
11068 ac_ext=c
11069 ac_cpp='$CPP $CPPFLAGS'
11070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11073
11074 CC="$lt_save_CC"
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088 ac_config_commands="$ac_config_commands libtool"
11089
11090
11091
11092
11093 # Only expand once:
11094
11095
11096 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11097 $as_echo_n "checking whether ln -s works... " >&6; }
11098 LN_S=$as_ln_s
11099 if test "$LN_S" = "ln -s"; then
11100 { $as_echo "$as_me:$LINENO: result: yes" >&5
11101 $as_echo "yes" >&6; }
11102 else
11103 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11104 $as_echo "no, using $LN_S" >&6; }
11105 fi
11106
11107 # Find a good install program. We prefer a C program (faster),
11108 # so one script is as good as another. But avoid the broken or
11109 # incompatible versions:
11110 # SysV /etc/install, /usr/sbin/install
11111 # SunOS /usr/etc/install
11112 # IRIX /sbin/install
11113 # AIX /bin/install
11114 # AmigaOS /C/install, which installs bootblocks on floppy discs
11115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11118 # OS/2's system install, which has a completely different semantic
11119 # ./install, which can be erroneously created by make from ./install.sh.
11120 # Reject install programs that cannot install multiple files.
11121 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11122 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11123 if test -z "$INSTALL"; then
11124 if test "${ac_cv_path_install+set}" = set; then
11125 $as_echo_n "(cached) " >&6
11126 else
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11129 do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 # Account for people who put trailing slashes in PATH elements.
11133 case $as_dir/ in
11134 ./ | .// | /cC/* | \
11135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11136 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11137 /usr/ucb/* ) ;;
11138 *)
11139 # OSF1 and SCO ODT 3.0 have their own names for install.
11140 # Don't use installbsd from OSF since it installs stuff as root
11141 # by default.
11142 for ac_prog in ginstall scoinst install; do
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11145 if test $ac_prog = install &&
11146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11147 # AIX install. It has an incompatible calling convention.
11148 :
11149 elif test $ac_prog = install &&
11150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11151 # program-specific install script used by HP pwplus--don't use.
11152 :
11153 else
11154 rm -rf conftest.one conftest.two conftest.dir
11155 echo one > conftest.one
11156 echo two > conftest.two
11157 mkdir conftest.dir
11158 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11159 test -s conftest.one && test -s conftest.two &&
11160 test -s conftest.dir/conftest.one &&
11161 test -s conftest.dir/conftest.two
11162 then
11163 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11164 break 3
11165 fi
11166 fi
11167 fi
11168 done
11169 done
11170 ;;
11171 esac
11172
11173 done
11174 IFS=$as_save_IFS
11175
11176 rm -rf conftest.one conftest.two conftest.dir
11177
11178 fi
11179 if test "${ac_cv_path_install+set}" = set; then
11180 INSTALL=$ac_cv_path_install
11181 else
11182 # As a last resort, use the slow shell script. Don't cache a
11183 # value for INSTALL within a source directory, because that will
11184 # break other packages using the cache if that directory is
11185 # removed, or if the value is a relative name.
11186 INSTALL=$ac_install_sh
11187 fi
11188 fi
11189 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11190 $as_echo "$INSTALL" >&6; }
11191
11192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11193 # It thinks the first close brace ends the variable substitution.
11194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11195
11196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11197
11198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11199
11200
11201 # Extract the first word of "perl", so it can be a program name with args.
11202 set dummy perl; ac_word=$2
11203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if test "${ac_cv_path_PERL+set}" = set; then
11206 $as_echo_n "(cached) " >&6
11207 else
11208 case $PERL in
11209 [\\/]* | ?:[\\/]*)
11210 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11211 ;;
11212 *)
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11215 do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224 done
11225 done
11226 IFS=$as_save_IFS
11227
11228 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
11229 ;;
11230 esac
11231 fi
11232 PERL=$ac_cv_path_PERL
11233 if test -n "$PERL"; then
11234 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11235 $as_echo "$PERL" >&6; }
11236 else
11237 { $as_echo "$as_me:$LINENO: result: no" >&5
11238 $as_echo "no" >&6; }
11239 fi
11240
11241
11242 if test "$PERL" = no; then
11243 { $as_echo "$as_me:$LINENO: WARNING: perl not found" >&5
11244 $as_echo "$as_me: WARNING: perl not found" >&2;}
11245 PERL=/usr/bin/perl
11246 fi
11247
11248 # Check whether --enable-largefile was given.
11249 if test "${enable_largefile+set}" = set; then
11250 enableval=$enable_largefile;
11251 fi
11252
11253 if test "$enable_largefile" != no; then
11254
11255 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
11256 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11257 if test "${ac_cv_sys_largefile_CC+set}" = set; then
11258 $as_echo_n "(cached) " >&6
11259 else
11260 ac_cv_sys_largefile_CC=no
11261 if test "$GCC" != yes; then
11262 ac_save_CC=$CC
11263 while :; do
11264 # IRIX 6.2 and later do not support large files by default,
11265 # so use the C compiler's -n32 option if that helps.
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 #include <sys/types.h>
11273 /* Check that off_t can represent 2**63 - 1 correctly.
11274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11275 since some C++ compilers masquerading as C compilers
11276 incorrectly reject 9223372036854775807. */
11277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11279 && LARGE_OFF_T % 2147483647 == 1)
11280 ? 1 : -1];
11281 int
11282 main ()
11283 {
11284
11285 ;
11286 return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294 esac
11295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11296 $as_echo "$ac_try_echo") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest.$ac_objext; then
11307 break
11308 else
11309 $as_echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312
11313 fi
11314
11315 rm -f core conftest.err conftest.$ac_objext
11316 CC="$CC -n32"
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11322 esac
11323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11324 $as_echo "$ac_try_echo") >&5
11325 (eval "$ac_compile") 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && {
11332 test -z "$ac_c_werror_flag" ||
11333 test ! -s conftest.err
11334 } && test -s conftest.$ac_objext; then
11335 ac_cv_sys_largefile_CC=' -n32'; break
11336 else
11337 $as_echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340
11341 fi
11342
11343 rm -f core conftest.err conftest.$ac_objext
11344 break
11345 done
11346 CC=$ac_save_CC
11347 rm -f conftest.$ac_ext
11348 fi
11349 fi
11350 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
11351 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11352 if test "$ac_cv_sys_largefile_CC" != no; then
11353 CC=$CC$ac_cv_sys_largefile_CC
11354 fi
11355
11356 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11357 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11359 $as_echo_n "(cached) " >&6
11360 else
11361 while :; do
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 #include <sys/types.h>
11369 /* Check that off_t can represent 2**63 - 1 correctly.
11370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11371 since some C++ compilers masquerading as C compilers
11372 incorrectly reject 9223372036854775807. */
11373 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11375 && LARGE_OFF_T % 2147483647 == 1)
11376 ? 1 : -1];
11377 int
11378 main ()
11379 {
11380
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (ac_try="$ac_compile"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11392 $as_echo "$ac_try_echo") >&5
11393 (eval "$ac_compile") 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } && {
11400 test -z "$ac_c_werror_flag" ||
11401 test ! -s conftest.err
11402 } && test -s conftest.$ac_objext; then
11403 ac_cv_sys_file_offset_bits=no; break
11404 else
11405 $as_echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11407
11408
11409 fi
11410
11411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 #define _FILE_OFFSET_BITS 64
11419 #include <sys/types.h>
11420 /* Check that off_t can represent 2**63 - 1 correctly.
11421 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11422 since some C++ compilers masquerading as C compilers
11423 incorrectly reject 9223372036854775807. */
11424 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11426 && LARGE_OFF_T % 2147483647 == 1)
11427 ? 1 : -1];
11428 int
11429 main ()
11430 {
11431
11432 ;
11433 return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (ac_try="$ac_compile"
11438 case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11441 esac
11442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11443 $as_echo "$ac_try_echo") >&5
11444 (eval "$ac_compile") 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } && {
11451 test -z "$ac_c_werror_flag" ||
11452 test ! -s conftest.err
11453 } && test -s conftest.$ac_objext; then
11454 ac_cv_sys_file_offset_bits=64; break
11455 else
11456 $as_echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11458
11459
11460 fi
11461
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463 ac_cv_sys_file_offset_bits=unknown
11464 break
11465 done
11466 fi
11467 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11468 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11469 case $ac_cv_sys_file_offset_bits in #(
11470 no | unknown) ;;
11471 *)
11472 cat >>confdefs.h <<_ACEOF
11473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11474 _ACEOF
11475 ;;
11476 esac
11477 rm -rf conftest*
11478 if test $ac_cv_sys_file_offset_bits = unknown; then
11479 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
11480 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11481 if test "${ac_cv_sys_large_files+set}" = set; then
11482 $as_echo_n "(cached) " >&6
11483 else
11484 while :; do
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 #include <sys/types.h>
11492 /* Check that off_t can represent 2**63 - 1 correctly.
11493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11494 since some C++ compilers masquerading as C compilers
11495 incorrectly reject 9223372036854775807. */
11496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11498 && LARGE_OFF_T % 2147483647 == 1)
11499 ? 1 : -1];
11500 int
11501 main ()
11502 {
11503
11504 ;
11505 return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513 esac
11514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11515 $as_echo "$ac_try_echo") >&5
11516 (eval "$ac_compile") 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && {
11523 test -z "$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11525 } && test -s conftest.$ac_objext; then
11526 ac_cv_sys_large_files=no; break
11527 else
11528 $as_echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531
11532 fi
11533
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 #define _LARGE_FILES 1
11542 #include <sys/types.h>
11543 /* Check that off_t can represent 2**63 - 1 correctly.
11544 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11545 since some C++ compilers masquerading as C compilers
11546 incorrectly reject 9223372036854775807. */
11547 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11548 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11549 && LARGE_OFF_T % 2147483647 == 1)
11550 ? 1 : -1];
11551 int
11552 main ()
11553 {
11554
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext
11560 if { (ac_try="$ac_compile"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564 esac
11565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11566 $as_echo "$ac_try_echo") >&5
11567 (eval "$ac_compile") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest.$ac_objext; then
11577 ac_cv_sys_large_files=1; break
11578 else
11579 $as_echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582
11583 fi
11584
11585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586 ac_cv_sys_large_files=unknown
11587 break
11588 done
11589 fi
11590 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11591 $as_echo "$ac_cv_sys_large_files" >&6; }
11592 case $ac_cv_sys_large_files in #(
11593 no | unknown) ;;
11594 *)
11595 cat >>confdefs.h <<_ACEOF
11596 #define _LARGE_FILES $ac_cv_sys_large_files
11597 _ACEOF
11598 ;;
11599 esac
11600 rm -rf conftest*
11601 fi
11602 fi
11603
11604
11605 { $as_echo "$as_me:$LINENO: checking for ll modifier of printf" >&5
11606 $as_echo_n "checking for ll modifier of printf... " >&6; }
11607 if test "${ac_cv_func_printf_ll+set}" = set; then
11608 $as_echo_n "(cached) " >&6
11609 else
11610 if test "$cross_compiling" = yes; then
11611 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11613 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11614 See \`config.log' for more details." >&5
11615 $as_echo "$as_me: error: cannot run test program while cross compiling
11616 See \`config.log' for more details." >&2;}
11617 { (exit 1); exit 1; }; }; }
11618 else
11619 cat >conftest.$ac_ext <<_ACEOF
11620
11621 #include <stdio.h>
11622 #include <string.h>
11623 #include <limits.h>
11624 int main() {
11625 char buffer[128];
11626 sprintf(buffer, "%llx", (unsigned long long) 1 << 32);
11627 return (strcmp(buffer, "100000000") == 0) ? 0 : 1;
11628 }
11629
11630 _ACEOF
11631 rm -f conftest$ac_exeext
11632 if { (ac_try="$ac_link"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11638 $as_echo "$ac_try_echo") >&5
11639 (eval "$ac_link") 2>&5
11640 ac_status=$?
11641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11643 { (case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11646 esac
11647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11648 $as_echo "$ac_try_echo") >&5
11649 (eval "$ac_try") 2>&5
11650 ac_status=$?
11651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 ac_cv_func_printf_ll=yes
11654 else
11655 $as_echo "$as_me: program exited with status $ac_status" >&5
11656 $as_echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 ( exit $ac_status )
11660 ac_cv_func_printf_ll=no
11661 fi
11662 rm -rf conftest.dSYM
11663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11664 fi
11665
11666
11667 fi
11668 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_printf_ll" >&5
11669 $as_echo "$ac_cv_func_printf_ll" >&6; }
11670 { $as_echo "$as_me:$LINENO: checking for I64 modifier of printf" >&5
11671 $as_echo_n "checking for I64 modifier of printf... " >&6; }
11672 if test "${ac_cv_func_printf_i64+set}" = set; then
11673 $as_echo_n "(cached) " >&6
11674 else
11675 if test "$cross_compiling" = yes; then
11676 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11678 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11679 See \`config.log' for more details." >&5
11680 $as_echo "$as_me: error: cannot run test program while cross compiling
11681 See \`config.log' for more details." >&2;}
11682 { (exit 1); exit 1; }; }; }
11683 else
11684 cat >conftest.$ac_ext <<_ACEOF
11685
11686 #include <stdio.h>
11687 #include <string.h>
11688 #include <limits.h>
11689 int main() {
11690 char buffer[128];
11691 sprintf(buffer, "%I64x", (unsigned __int64) 1 << 32);
11692 return (strcmp(buffer, "100000000") == 0) ? 0 : 1;
11693 }
11694
11695 _ACEOF
11696 rm -f conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701 esac
11702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11703 $as_echo "$ac_try_echo") >&5
11704 (eval "$ac_link") 2>&5
11705 ac_status=$?
11706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11708 { (case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711 esac
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714 (eval "$ac_try") 2>&5
11715 ac_status=$?
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 ac_cv_func_printf_i64=yes
11719 else
11720 $as_echo "$as_me: program exited with status $ac_status" >&5
11721 $as_echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 ( exit $ac_status )
11725 ac_cv_func_printf_i64=no
11726 fi
11727 rm -rf conftest.dSYM
11728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11729 fi
11730
11731
11732 fi
11733 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_printf_i64" >&5
11734 $as_echo "$ac_cv_func_printf_i64" >&6; }
11735 if test "$ac_cv_func_printf_ll" = yes; then
11736
11737 cat >>confdefs.h <<\_ACEOF
11738 #define PRINTF_LL_MODIFIER 1
11739 _ACEOF
11740
11741 fi
11742 if test "$ac_cv_func_printf_i64" = yes; then
11743
11744 cat >>confdefs.h <<\_ACEOF
11745 #define PRINTF_I64_MODIFIER 1
11746 _ACEOF
11747
11748 fi
11749
11750 INTLINCS=
11751 INTLDEPS=
11752 INTLLIBS=
11753
11754
11755
11756
11757
11758
11759 for ac_header in locale.h nl_types.h
11760 do
11761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11764 $as_echo_n "checking for $ac_header... " >&6; }
11765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766 $as_echo_n "(cached) " >&6
11767 fi
11768 ac_res=`eval 'as_val=${'$as_ac_Header'}
11769 $as_echo "$as_val"'`
11770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11771 $as_echo "$ac_res" >&6; }
11772 else
11773 # Is the header compilable?
11774 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775 $as_echo_n "checking $ac_header usability... " >&6; }
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #include <$ac_header>
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790 esac
11791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.$ac_objext; then
11803 ac_header_compiler=yes
11804 else
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 ac_header_compiler=no
11809 fi
11810
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11813 $as_echo "$ac_header_compiler" >&6; }
11814
11815 # Is the header present?
11816 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11817 $as_echo_n "checking $ac_header presence... " >&6; }
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h. */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 #include <$ac_header>
11825 _ACEOF
11826 if { (ac_try="$ac_cpp conftest.$ac_ext"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830 esac
11831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832 $as_echo "$ac_try_echo") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null && {
11840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 }; then
11843 ac_header_preproc=yes
11844 else
11845 $as_echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 ac_header_preproc=no
11849 fi
11850
11851 rm -f conftest.err conftest.$ac_ext
11852 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11853 $as_echo "$ac_header_preproc" >&6; }
11854
11855 # So? What about this header?
11856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11857 yes:no: )
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11862 ac_header_preproc=yes
11863 ;;
11864 no:yes:* )
11865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11866 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11868 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11870 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11872 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11876 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11877
11878 ;;
11879 esac
11880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 $as_echo_n "checking for $ac_header... " >&6; }
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 $as_echo_n "(cached) " >&6
11884 else
11885 eval "$as_ac_Header=\$ac_header_preproc"
11886 fi
11887 ac_res=`eval 'as_val=${'$as_ac_Header'}
11888 $as_echo "$as_val"'`
11889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11890 $as_echo "$ac_res" >&6; }
11891
11892 fi
11893 as_val=`eval 'as_val=${'$as_ac_Header'}
11894 $as_echo "$as_val"'`
11895 if test "x$as_val" = x""yes; then
11896 cat >>confdefs.h <<_ACEOF
11897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11898 _ACEOF
11899
11900 fi
11901
11902 done
11903
11904
11905 for ac_func in setlocale
11906 do
11907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 $as_echo_n "checking for $ac_func... " >&6; }
11910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11911 $as_echo_n "(cached) " >&6
11912 else
11913 cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h. */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11921 #define $ac_func innocuous_$ac_func
11922
11923 /* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char $ac_func (); below.
11925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926 <limits.h> exists even on freestanding compilers. */
11927
11928 #ifdef __STDC__
11929 # include <limits.h>
11930 #else
11931 # include <assert.h>
11932 #endif
11933
11934 #undef $ac_func
11935
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char $ac_func ();
11943 /* The GNU C library defines this for functions which it implements
11944 to always fail with ENOSYS. Some functions are actually named
11945 something starting with __ and the normal name is an alias. */
11946 #if defined __stub_$ac_func || defined __stub___$ac_func
11947 choke me
11948 #endif
11949
11950 int
11951 main ()
11952 {
11953 return $ac_func ();
11954 ;
11955 return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965 $as_echo "$ac_try_echo") >&5
11966 (eval "$ac_link") 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } && {
11973 test -z "$ac_c_werror_flag" ||
11974 test ! -s conftest.err
11975 } && test -s conftest$ac_exeext && {
11976 test "$cross_compiling" = yes ||
11977 $as_test_x conftest$ac_exeext
11978 }; then
11979 eval "$as_ac_var=yes"
11980 else
11981 $as_echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 eval "$as_ac_var=no"
11985 fi
11986
11987 rm -rf conftest.dSYM
11988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11989 conftest$ac_exeext conftest.$ac_ext
11990 fi
11991 ac_res=`eval 'as_val=${'$as_ac_var'}
11992 $as_echo "$as_val"'`
11993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11994 $as_echo "$ac_res" >&6; }
11995 as_val=`eval 'as_val=${'$as_ac_var'}
11996 $as_echo "$as_val"'`
11997 if test "x$as_val" = x""yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12000 _ACEOF
12001
12002 fi
12003 done
12004
12005
12006 if test $ac_cv_header_locale_h = yes; then
12007 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12008 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12009 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12010 $as_echo_n "(cached) " >&6
12011 else
12012 cat >conftest.$ac_ext <<_ACEOF
12013
12014 #include <locale.h>
12015 int
12016 main()
12017 {
12018 return LC_MESSAGES;
12019 }
12020
12021 _ACEOF
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (ac_try="$ac_link"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027 esac
12028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12029 $as_echo "$ac_try_echo") >&5
12030 (eval "$ac_link") 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } && {
12037 test -z "$ac_c_werror_flag" ||
12038 test ! -s conftest.err
12039 } && test -s conftest$ac_exeext && {
12040 test "$cross_compiling" = yes ||
12041 $as_test_x conftest$ac_exeext
12042 }; then
12043 am_cv_val_LC_MESSAGES=yes
12044 else
12045 $as_echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 am_cv_val_LC_MESSAGES=no
12049 fi
12050
12051 rm -rf conftest.dSYM
12052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053 conftest$ac_exeext conftest.$ac_ext
12054 fi
12055 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12056 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12057 if test $am_cv_val_LC_MESSAGES = yes; then
12058
12059 cat >>confdefs.h <<\_ACEOF
12060 #define HAVE_LC_MESSAGES 1
12061 _ACEOF
12062
12063 fi
12064 fi
12065
12066 # Check whether --enable-nls was given.
12067 if test "${enable_nls+set}" = set; then
12068 enableval=$enable_nls; ENABLE_NLS=$enableval
12069 else
12070 ENABLE_NLS=auto
12071 fi
12072
12073
12074
12075 # Check whether --with-gettext-includes was given.
12076 if test "${with_gettext_includes+set}" = set; then
12077 withval=$with_gettext_includes; gettext_includes="-I${withval}"
12078 else
12079 gettext_includes=''
12080 fi
12081
12082
12083
12084 # Check whether --with-gettext-libraries was given.
12085 if test "${with_gettext_libraries+set}" = set; then
12086 withval=$with_gettext_libraries; gettext_libraries="-L${withval}"
12087 else
12088 gettext_libraries=''
12089 fi
12090
12091
12092
12093 # Check whether --with-iconv-includes was given.
12094 if test "${with_iconv_includes+set}" = set; then
12095 withval=$with_iconv_includes; iconv_includes="-I${withval}"
12096 else
12097 iconv_includes=''
12098 fi
12099
12100
12101
12102 # Check whether --with-iconv-libraries was given.
12103 if test "${with_iconv_libraries+set}" = set; then
12104 withval=$with_iconv_libraries; iconv_libraries="-L${withval}"
12105 else
12106 iconv_libraries=''
12107 fi
12108
12109
12110 ICONVINCS=
12111 ICONVLIBS=
12112 save_CPPFLAGS=$CPPFLAGS
12113 save_LIBS=$LIBS
12114 CPPFLAGS="$save_CPPFLAGS $iconv_includes"
12115 LIBS="$save_LIBS $iconv_libraries"
12116 { $as_echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
12117 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
12118 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
12119 $as_echo_n "(cached) " >&6
12120 else
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-liconv $LIBS"
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h. */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129
12130 /* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char iconv_open ();
12137 int
12138 main ()
12139 {
12140 return iconv_open ();
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (ac_try="$ac_link"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150 esac
12151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12152 $as_echo "$ac_try_echo") >&5
12153 (eval "$ac_link") 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest$ac_exeext && {
12163 test "$cross_compiling" = yes ||
12164 $as_test_x conftest$ac_exeext
12165 }; then
12166 ac_cv_lib_iconv_iconv_open=yes
12167 else
12168 $as_echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_cv_lib_iconv_iconv_open=no
12172 fi
12173
12174 rm -rf conftest.dSYM
12175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12178 fi
12179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
12180 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
12181 if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then
12182 ICONVLIBS="$iconv_libraries -liconv"; LIBS="$LIBS -liconv"
12183 fi
12184
12185
12186
12187 for ac_func in iconv_open locale_charset
12188 do
12189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12190 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12191 $as_echo_n "checking for $ac_func... " >&6; }
12192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12193 $as_echo_n "(cached) " >&6
12194 else
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h. */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12203 #define $ac_func innocuous_$ac_func
12204
12205 /* System header to define __stub macros and hopefully few prototypes,
12206 which can conflict with char $ac_func (); below.
12207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12208 <limits.h> exists even on freestanding compilers. */
12209
12210 #ifdef __STDC__
12211 # include <limits.h>
12212 #else
12213 # include <assert.h>
12214 #endif
12215
12216 #undef $ac_func
12217
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char $ac_func ();
12225 /* The GNU C library defines this for functions which it implements
12226 to always fail with ENOSYS. Some functions are actually named
12227 something starting with __ and the normal name is an alias. */
12228 #if defined __stub_$ac_func || defined __stub___$ac_func
12229 choke me
12230 #endif
12231
12232 int
12233 main ()
12234 {
12235 return $ac_func ();
12236 ;
12237 return 0;
12238 }
12239 _ACEOF
12240 rm -f conftest.$ac_objext conftest$ac_exeext
12241 if { (ac_try="$ac_link"
12242 case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12247 $as_echo "$ac_try_echo") >&5
12248 (eval "$ac_link") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } && {
12255 test -z "$ac_c_werror_flag" ||
12256 test ! -s conftest.err
12257 } && test -s conftest$ac_exeext && {
12258 test "$cross_compiling" = yes ||
12259 $as_test_x conftest$ac_exeext
12260 }; then
12261 eval "$as_ac_var=yes"
12262 else
12263 $as_echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 eval "$as_ac_var=no"
12267 fi
12268
12269 rm -rf conftest.dSYM
12270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12271 conftest$ac_exeext conftest.$ac_ext
12272 fi
12273 ac_res=`eval 'as_val=${'$as_ac_var'}
12274 $as_echo "$as_val"'`
12275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12276 $as_echo "$ac_res" >&6; }
12277 as_val=`eval 'as_val=${'$as_ac_var'}
12278 $as_echo "$as_val"'`
12279 if test "x$as_val" = x""yes; then
12280 cat >>confdefs.h <<_ACEOF
12281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12282 _ACEOF
12283
12284 fi
12285 done
12286
12287
12288
12289 for ac_header in iconv.h libcharset.h
12290 do
12291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12293 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 $as_echo_n "checking for $ac_header... " >&6; }
12295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296 $as_echo_n "(cached) " >&6
12297 fi
12298 ac_res=`eval 'as_val=${'$as_ac_Header'}
12299 $as_echo "$as_val"'`
12300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12301 $as_echo "$ac_res" >&6; }
12302 else
12303 # Is the header compilable?
12304 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12305 $as_echo_n "checking $ac_header usability... " >&6; }
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 $ac_includes_default
12313 #include <$ac_header>
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (ac_try="$ac_compile"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12322 $as_echo "$ac_try_echo") >&5
12323 (eval "$ac_compile") 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && {
12330 test -z "$ac_c_werror_flag" ||
12331 test ! -s conftest.err
12332 } && test -s conftest.$ac_objext; then
12333 ac_header_compiler=yes
12334 else
12335 $as_echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_header_compiler=no
12339 fi
12340
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12343 $as_echo "$ac_header_compiler" >&6; }
12344
12345 # Is the header present?
12346 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12347 $as_echo_n "checking $ac_header presence... " >&6; }
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #include <$ac_header>
12355 _ACEOF
12356 if { (ac_try="$ac_cpp conftest.$ac_ext"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12362 $as_echo "$ac_try_echo") >&5
12363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } >/dev/null && {
12370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12371 test ! -s conftest.err
12372 }; then
12373 ac_header_preproc=yes
12374 else
12375 $as_echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_header_preproc=no
12379 fi
12380
12381 rm -f conftest.err conftest.$ac_ext
12382 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12383 $as_echo "$ac_header_preproc" >&6; }
12384
12385 # So? What about this header?
12386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12387 yes:no: )
12388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12389 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12392 ac_header_preproc=yes
12393 ;;
12394 no:yes:* )
12395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12396 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12398 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12400 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12402 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12406 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12407
12408 ;;
12409 esac
12410 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12411 $as_echo_n "checking for $ac_header... " >&6; }
12412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12413 $as_echo_n "(cached) " >&6
12414 else
12415 eval "$as_ac_Header=\$ac_header_preproc"
12416 fi
12417 ac_res=`eval 'as_val=${'$as_ac_Header'}
12418 $as_echo "$as_val"'`
12419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12420 $as_echo "$ac_res" >&6; }
12421
12422 fi
12423 as_val=`eval 'as_val=${'$as_ac_Header'}
12424 $as_echo "$as_val"'`
12425 if test "x$as_val" = x""yes; then
12426 cat >>confdefs.h <<_ACEOF
12427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12428 _ACEOF
12429
12430 fi
12431
12432 done
12433
12434 if test $ac_cv_func_iconv_open != no; then
12435 ICONVINCS="$iconv_includes"
12436 fi
12437 CPPFLAGS=$save_CPPFLAGS
12438 LIBS=$save_LIBS
12439
12440
12441
12442 INTLINCS=
12443 INTLLIBS=
12444 try_nls=no
12445
12446 { $as_echo "$as_me:$LINENO: checking for NLS support" >&5
12447 $as_echo_n "checking for NLS support... " >&6; }
12448
12449 if test $ENABLE_NLS != no; then
12450 save_CPPFLAGS=$CPPFLAGS
12451 save_LIBS=$LIBS
12452
12453 CPPFLAGS="$save_CPPFLAGS $gettext_includes"
12454 LIBS="$save_LIBS $gettext_libraries -lintl $iconv_libraries -liconv"
12455 cat >conftest.$ac_ext <<_ACEOF
12456
12457 #include <stdio.h>
12458 #ifdef ENABLE_NLS
12459 #undef ENABLE_NLS
12460 #endif
12461 #define ENABLE_NLS 1
12462 #ifdef HAVE_LOCALE_H
12463 #include <locale.h>
12464 #endif
12465 #include <libintl.h>
12466
12467 int
12468 main()
12469 {
12470 #ifdef HAVE_SETLOCALE
12471 setlocale(LC_ALL, "");
12472 #endif
12473 bindtextdomain("gttest", ".locale");
12474 textdomain("gttest");
12475 gettext("foo");
12476 return 0;
12477 }
12478
12479 _ACEOF
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (ac_try="$ac_link"
12482 case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12485 esac
12486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12487 $as_echo "$ac_try_echo") >&5
12488 (eval "$ac_link") 2>conftest.er1
12489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && {
12495 test -z "$ac_c_werror_flag" ||
12496 test ! -s conftest.err
12497 } && test -s conftest$ac_exeext && {
12498 test "$cross_compiling" = yes ||
12499 $as_test_x conftest$ac_exeext
12500 }; then
12501 try_nls=yes
12502 else
12503 $as_echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 try_nls=no
12507 fi
12508
12509 rm -rf conftest.dSYM
12510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12511 conftest$ac_exeext conftest.$ac_ext
12512
12513 if test "$try_nls" = yes; then
12514 INTLINCS="$gettext_includes"
12515 INTLLIBS="$gettext_libraries -lintl $iconv_libraries -liconv"
12516 fi
12517
12518 if test "$try_nls" = no; then
12519 CPPFLAGS="$save_CPPFLAGS $gettext_includes"
12520 LIBS="$save_LIBS $gettext_libraries -lintl"
12521 cat >conftest.$ac_ext <<_ACEOF
12522
12523 #include <stdio.h>
12524 #ifdef ENABLE_NLS
12525 #undef ENABLE_NLS
12526 #endif
12527 #define ENABLE_NLS 1
12528 #ifdef HAVE_LOCALE_H
12529 #include <locale.h>
12530 #endif
12531 #include <libintl.h>
12532
12533 int
12534 main()
12535 {
12536 #ifdef HAVE_SETLOCALE
12537 setlocale(LC_ALL, "");
12538 #endif
12539 bindtextdomain("gttest", ".locale");
12540 textdomain("gttest");
12541 gettext("foo");
12542 return 0;
12543 }
12544
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (ac_try="$ac_link"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12553 $as_echo "$ac_try_echo") >&5
12554 (eval "$ac_link") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest$ac_exeext && {
12564 test "$cross_compiling" = yes ||
12565 $as_test_x conftest$ac_exeext
12566 }; then
12567 try_nls=yes
12568 else
12569 $as_echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572 try_nls=no
12573 fi
12574
12575 rm -rf conftest.dSYM
12576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12577 conftest$ac_exeext conftest.$ac_ext
12578
12579 if test "$try_nls" = yes; then
12580 INTLINCS="$gettext_includes"
12581 INTLLIBS="$gettext_libraries -lintl"
12582 fi
12583 fi
12584
12585 if test "$try_nls" = no; then
12586 CPPFLAGS="$save_CPPFLAGS"
12587 LIBS="$save_LIBS $iconv_libraries -liconv"
12588 cat >conftest.$ac_ext <<_ACEOF
12589
12590 #include <stdio.h>
12591 #ifdef ENABLE_NLS
12592 #undef ENABLE_NLS
12593 #endif
12594 #define ENABLE_NLS 1
12595 #ifdef HAVE_LOCALE_H
12596 #include <locale.h>
12597 #endif
12598 #include <libintl.h>
12599
12600 int
12601 main()
12602 {
12603 #ifdef HAVE_SETLOCALE
12604 setlocale(LC_ALL, "");
12605 #endif
12606 bindtextdomain("gttest", ".locale");
12607 textdomain("gttest");
12608 gettext("foo");
12609 return 0;
12610 }
12611
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620 $as_echo "$ac_try_echo") >&5
12621 (eval "$ac_link") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest$ac_exeext && {
12631 test "$cross_compiling" = yes ||
12632 $as_test_x conftest$ac_exeext
12633 }; then
12634 try_nls=yes
12635 else
12636 $as_echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 try_nls=no
12640 fi
12641
12642 rm -rf conftest.dSYM
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12645
12646 if test "$try_nls" = yes; then
12647 INTLINCS=
12648 INTLLIBS="$iconv_libraries -liconv"
12649 fi
12650 fi
12651
12652 if test "$try_nls" = no; then
12653 CPPFLAGS="$save_CPPFLAGS"
12654 LIBS="$save_LIBS"
12655 cat >conftest.$ac_ext <<_ACEOF
12656
12657 #include <stdio.h>
12658 #ifdef ENABLE_NLS
12659 #undef ENABLE_NLS
12660 #endif
12661 #define ENABLE_NLS 1
12662 #ifdef HAVE_LOCALE_H
12663 #include <locale.h>
12664 #endif
12665 #include <libintl.h>
12666
12667 int
12668 main()
12669 {
12670 #ifdef HAVE_SETLOCALE
12671 setlocale(LC_ALL, "");
12672 #endif
12673 bindtextdomain("gttest", ".locale");
12674 textdomain("gttest");
12675 gettext("foo");
12676 return 0;
12677 }
12678
12679 _ACEOF
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12687 $as_echo "$ac_try_echo") >&5
12688 (eval "$ac_link") 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && {
12695 test -z "$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest$ac_exeext && {
12698 test "$cross_compiling" = yes ||
12699 $as_test_x conftest$ac_exeext
12700 }; then
12701 try_nls=yes
12702 else
12703 $as_echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 try_nls=no
12707 fi
12708
12709 rm -rf conftest.dSYM
12710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12711 conftest$ac_exeext conftest.$ac_ext
12712
12713 if test "$try_nls" = yes; then
12714 INTLINCS=
12715 INTLLIBS=
12716 fi
12717 fi
12718
12719 CPPFLAGS=$save_CPPFLAGS
12720 LIBS=$save_LIBS
12721 fi
12722
12723 if test $ENABLE_NLS = auto; then
12724 ENABLE_NLS=$try_nls
12725 fi
12726
12727 { $as_echo "$as_me:$LINENO: result: $try_nls" >&5
12728 $as_echo "$try_nls" >&6; }
12729
12730 if test $ENABLE_NLS = yes; then
12731 if test $try_nls = no; then
12732 { { $as_echo "$as_me:$LINENO: error: gettext not available" >&5
12733 $as_echo "$as_me: error: gettext not available" >&2;}
12734 { (exit 1); exit 1; }; }
12735 fi
12736 fi
12737
12738
12739
12740
12741 localedir='$(datadir)/locale'
12742
12743 if test $ENABLE_NLS = yes; then
12744
12745 cat >>confdefs.h <<\_ACEOF
12746 #define ENABLE_NLS 1
12747 _ACEOF
12748
12749 fi
12750
12751 for ac_prog in gmsgfmt msgfmt
12752 do
12753 # Extract the first word of "$ac_prog", so it can be a program name with args.
12754 set dummy $ac_prog; ac_word=$2
12755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if test "${ac_cv_path_MSGFMT+set}" = set; then
12758 $as_echo_n "(cached) " >&6
12759 else
12760 case $MSGFMT in
12761 [\\/]* | ?:[\\/]*)
12762 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12763 ;;
12764 *)
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12772 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778 IFS=$as_save_IFS
12779
12780 ;;
12781 esac
12782 fi
12783 MSGFMT=$ac_cv_path_MSGFMT
12784 if test -n "$MSGFMT"; then
12785 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12786 $as_echo "$MSGFMT" >&6; }
12787 else
12788 { $as_echo "$as_me:$LINENO: result: no" >&5
12789 $as_echo "no" >&6; }
12790 fi
12791
12792
12793 test -n "$MSGFMT" && break
12794 done
12795 test -n "$MSGFMT" || MSGFMT=":"
12796
12797 for ac_prog in gxgettext xgettext
12798 do
12799 # Extract the first word of "$ac_prog", so it can be a program name with args.
12800 set dummy $ac_prog; ac_word=$2
12801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12804 $as_echo_n "(cached) " >&6
12805 else
12806 case $XGETTEXT in
12807 [\\/]* | ?:[\\/]*)
12808 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12809 ;;
12810 *)
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822 done
12823 done
12824 IFS=$as_save_IFS
12825
12826 ;;
12827 esac
12828 fi
12829 XGETTEXT=$ac_cv_path_XGETTEXT
12830 if test -n "$XGETTEXT"; then
12831 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12832 $as_echo "$XGETTEXT" >&6; }
12833 else
12834 { $as_echo "$as_me:$LINENO: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838
12839 test -n "$XGETTEXT" && break
12840 done
12841 test -n "$XGETTEXT" || XGETTEXT=":"
12842
12843 MSGMERGE=msgmerge
12844
12845
12846
12847 # Check whether --enable-samples was given.
12848 if test "${enable_samples+set}" = set; then
12849 enableval=$enable_samples; case "${enableval}" in
12850 yes) samples=true ;;
12851 no) samples=false ;;
12852 *) { { $as_echo "$as_me:$LINENO: error: invalid argument to --enable-samples" >&5
12853 $as_echo "$as_me: error: invalid argument to --enable-samples" >&2;}
12854 { (exit 1); exit 1; }; } ;;
12855 esac
12856 else
12857 samples=false
12858 fi
12859
12860 if test ${samples} = true; then
12861 ENABLE_SAMPLES_TRUE=
12862 ENABLE_SAMPLES_FALSE='#'
12863 else
12864 ENABLE_SAMPLES_TRUE='#'
12865 ENABLE_SAMPLES_FALSE=
12866 fi
12867
12868
12869 # Check whether --enable-pthread was given.
12870 if test "${enable_pthread+set}" = set; then
12871 enableval=$enable_pthread; case "${enableval}" in
12872 yes) ENABLE_PTHREAD=yes ;;
12873 no) ENABLE_PTHREAD=no ;;
12874 *) { { $as_echo "$as_me:$LINENO: error: invalid argument to --enable-pthread" >&5
12875 $as_echo "$as_me: error: invalid argument to --enable-pthread" >&2;}
12876 { (exit 1); exit 1; }; } ;;
12877 esac
12878 else
12879 ENABLE_PTHREAD=no
12880 fi
12881
12882
12883
12884 # Check whether --with-pthread-cppflags was given.
12885 if test "${with_pthread_cppflags+set}" = set; then
12886 withval=$with_pthread_cppflags; PTHREAD_CPPFLAGS="${withval}"
12887 else
12888 PTHREAD_CPPFLAGS=''
12889 fi
12890
12891
12892
12893 # Check whether --with-pthread-cflags was given.
12894 if test "${with_pthread_cflags+set}" = set; then
12895 withval=$with_pthread_cflags; PTHREAD_CFLAGS="${withval}"
12896 else
12897 PTHREAD_CFLAGS=''
12898 fi
12899
12900
12901
12902 # Check whether --with-pthread-ldflags was given.
12903 if test "${with_pthread_ldflags+set}" = set; then
12904 withval=$with_pthread_ldflags; PTHREAD_LDFLAGS="${withval}"
12905 else
12906 PTHREAD_LDFLAGS=''
12907 fi
12908
12909
12910
12911 # Check whether --with-pkgdocdir was given.
12912 if test "${with_pkgdocdir+set}" = set; then
12913 withval=$with_pkgdocdir; pkgdocdir="${withval}"
12914 else
12915 pkgdocdir='${datadir}/eb/doc'
12916 fi
12917
12918
12919
12920 { $as_echo "$as_me:$LINENO: checking for pthread" >&5
12921 $as_echo_n "checking for pthread... " >&6; }
12922 if test $ENABLE_PTHREAD = no; then
12923 try_pthread=no
12924 else
12925 save_CPPFLAGS=$CPPFLAGS
12926 save_CFLAGS=$CFLAGS
12927 save_LDFLAGS=$LDFLAGS
12928 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
12929 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12930 LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS"
12931 cat >conftest.$ac_ext <<_ACEOF
12932
12933 #include <pthread.h>
12934 static pthread_mutex_t m=PTHREAD_MUTEX_INITIALIZER;
12935
12936 int
12937 main()
12938 {
12939 pthread_mutex_lock(&m);
12940 return 0;
12941 }
12942
12943 _ACEOF
12944 rm -f conftest.$ac_objext conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949 esac
12950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12951 $as_echo "$ac_try_echo") >&5
12952 (eval "$ac_link") 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } && {
12959 test -z "$ac_c_werror_flag" ||
12960 test ! -s conftest.err
12961 } && test -s conftest$ac_exeext && {
12962 test "$cross_compiling" = yes ||
12963 $as_test_x conftest$ac_exeext
12964 }; then
12965 try_pthread=yes
12966 else
12967 $as_echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12969
12970 try_pthread=no
12971 fi
12972
12973 rm -rf conftest.dSYM
12974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12975 conftest$ac_exeext conftest.$ac_ext
12976 CPPFLAGS=$save_CPPFLAGS
12977 CFLAGS=$save_CFLAGS
12978 LDFLAGS=$save_LDFLAGS
12979 fi
12980 { $as_echo "$as_me:$LINENO: result: $try_pthread" >&5
12981 $as_echo "$try_pthread" >&6; }
12982 if test $ENABLE_PTHREAD = yes; then
12983 if test $try_pthread = no; then
12984 { { $as_echo "$as_me:$LINENO: error: pthread not available" >&5
12985 $as_echo "$as_me: error: pthread not available" >&2;}
12986 { (exit 1); exit 1; }; }
12987 fi
12988 fi
12989
12990 if test $ENABLE_PTHREAD = yes; then
12991
12992 cat >>confdefs.h <<\_ACEOF
12993 #define ENABLE_PTHREAD 1
12994 _ACEOF
12995
12996 CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
12997 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12998 LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS"
12999 fi
13000
13001
13002 # Check whether --with-zlib-includes was given.
13003 if test "${with_zlib_includes+set}" = set; then
13004 withval=$with_zlib_includes; z_includedir="${withval}"
13005 else
13006 z_includedir=''
13007 fi
13008
13009
13010 if test "X$z_includedir" != X; then
13011 ZLIBINCS="-I$z_includedir"
13012 else
13013 ZLIBINCS=''
13014 fi
13015
13016
13017 # Check whether --with-zlib-libraries was given.
13018 if test "${with_zlib_libraries+set}" = set; then
13019 withval=$with_zlib_libraries; z_libdir="${withval}"
13020 else
13021 z_libdir=''
13022 fi
13023
13024
13025 if test "X$z_libdir" != X; then
13026 ZLIBLIBS="-L$z_libdir -lz"
13027 ZLIBDEPS=''
13028 else
13029 ZLIBLIBS='-lz'
13030 ZLIBDEPS=''
13031 fi
13032
13033 { $as_echo "$as_me:$LINENO: checking for zlib" >&5
13034 $as_echo_n "checking for zlib... " >&6; }
13035 save_CPPFLAGS=$CPPFLAGS
13036 save_LIBS=$LIBS
13037 CPPFLAGS="$CPPFLAGS $ZLIBINCS"
13038 LIBS="$LIBS $ZLIBLIBS"
13039 cat >conftest.$ac_ext <<_ACEOF
13040
13041 #include <zlib.h>
13042
13043 int
13044 main()
13045 {
13046 z_stream stream; inflate(&stream, Z_FINISH);
13047 return 0;
13048 }
13049
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (ac_try="$ac_link"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056 esac
13057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058 $as_echo "$ac_try_echo") >&5
13059 (eval "$ac_link") 2>conftest.er1
13060 ac_status=$?
13061 grep -v '^ *+' conftest.er1 >conftest.err
13062 rm -f conftest.er1
13063 cat conftest.err >&5
13064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest$ac_exeext && {
13069 test "$cross_compiling" = yes ||
13070 $as_test_x conftest$ac_exeext
13071 }; then
13072 try_zlib=yes
13073 else
13074 $as_echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 try_zlib=no
13078 fi
13079
13080 rm -rf conftest.dSYM
13081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13082 conftest$ac_exeext conftest.$ac_ext
13083 CPPFLAGS=$save_CPPFLAGS
13084 LIBS=$save_LIBS
13085 { $as_echo "$as_me:$LINENO: result: $try_zlib" >&5
13086 $as_echo "$try_zlib" >&6; }
13087 if test $try_zlib = no; then
13088 { { $as_echo "$as_me:$LINENO: error: zlib not found" >&5
13089 $as_echo "$as_me: error: zlib not found" >&2;}
13090 { (exit 1); exit 1; }; }
13091 fi
13092
13093
13094
13095
13096 # Check whether --enable-ebnet was given.
13097 if test "${enable_ebnet+set}" = set; then
13098 enableval=$enable_ebnet; ENABLE_EBNET="${enableval}"
13099 else
13100 ENABLE_EBNET='yes'
13101 fi
13102
13103
13104 if test X$ENABLE_EBNET = Xyes; then
13105 ENABLE_EBNET_TRUE=
13106 ENABLE_EBNET_FALSE='#'
13107 else
13108 ENABLE_EBNET_TRUE='#'
13109 ENABLE_EBNET_FALSE=
13110 fi
13111
13112
13113 # Check whether --enable-ipv6 was given.
13114 if test "${enable_ipv6+set}" = set; then
13115 enableval=$enable_ipv6; ENABLE_IPV6="${enableval}"
13116 else
13117 ENABLE_IPV6='auto'
13118 fi
13119
13120
13121
13122
13123
13124
13125
13126 for ac_header in direct.h langinfo.h mbstring.h pthread.h
13127 do
13128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13131 $as_echo_n "checking for $ac_header... " >&6; }
13132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13133 $as_echo_n "(cached) " >&6
13134 fi
13135 ac_res=`eval 'as_val=${'$as_ac_Header'}
13136 $as_echo "$as_val"'`
13137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13138 $as_echo "$ac_res" >&6; }
13139 else
13140 # Is the header compilable?
13141 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13142 $as_echo_n "checking $ac_header usability... " >&6; }
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h. */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 $ac_includes_default
13150 #include <$ac_header>
13151 _ACEOF
13152 rm -f conftest.$ac_objext
13153 if { (ac_try="$ac_compile"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13159 $as_echo "$ac_try_echo") >&5
13160 (eval "$ac_compile") 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } && {
13167 test -z "$ac_c_werror_flag" ||
13168 test ! -s conftest.err
13169 } && test -s conftest.$ac_objext; then
13170 ac_header_compiler=yes
13171 else
13172 $as_echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_header_compiler=no
13176 fi
13177
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13180 $as_echo "$ac_header_compiler" >&6; }
13181
13182 # Is the header present?
13183 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13184 $as_echo_n "checking $ac_header presence... " >&6; }
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <$ac_header>
13192 _ACEOF
13193 if { (ac_try="$ac_cpp conftest.$ac_ext"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } >/dev/null && {
13207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 }; then
13210 ac_header_preproc=yes
13211 else
13212 $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215 ac_header_preproc=no
13216 fi
13217
13218 rm -f conftest.err conftest.$ac_ext
13219 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13220 $as_echo "$ac_header_preproc" >&6; }
13221
13222 # So? What about this header?
13223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13224 yes:no: )
13225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13226 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13228 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13229 ac_header_preproc=yes
13230 ;;
13231 no:yes:* )
13232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13233 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13235 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13237 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13239 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13243 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13244
13245 ;;
13246 esac
13247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13248 $as_echo_n "checking for $ac_header... " >&6; }
13249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13250 $as_echo_n "(cached) " >&6
13251 else
13252 eval "$as_ac_Header=\$ac_header_preproc"
13253 fi
13254 ac_res=`eval 'as_val=${'$as_ac_Header'}
13255 $as_echo "$as_val"'`
13256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13257 $as_echo "$ac_res" >&6; }
13258
13259 fi
13260 as_val=`eval 'as_val=${'$as_ac_Header'}
13261 $as_echo "$as_val"'`
13262 if test "x$as_val" = x""yes; then
13263 cat >>confdefs.h <<_ACEOF
13264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13265 _ACEOF
13266
13267 fi
13268
13269 done
13270
13271
13272
13273
13274 { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
13275 $as_echo_n "checking for res_query in -lresolv... " >&6; }
13276 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
13277 $as_echo_n "(cached) " >&6
13278 else
13279 ac_check_lib_save_LIBS=$LIBS
13280 LIBS="-lresolv $LIBS"
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 char res_query ();
13295 int
13296 main ()
13297 {
13298 return res_query ();
13299 ;
13300 return 0;
13301 }
13302 _ACEOF
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (ac_try="$ac_link"
13305 case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311 (eval "$ac_link") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest$ac_exeext && {
13321 test "$cross_compiling" = yes ||
13322 $as_test_x conftest$ac_exeext
13323 }; then
13324 ac_cv_lib_resolv_res_query=yes
13325 else
13326 $as_echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13328
13329 ac_cv_lib_resolv_res_query=no
13330 fi
13331
13332 rm -rf conftest.dSYM
13333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13334 conftest$ac_exeext conftest.$ac_ext
13335 LIBS=$ac_check_lib_save_LIBS
13336 fi
13337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
13338 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
13339 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then
13340 cat >>confdefs.h <<_ACEOF
13341 #define HAVE_LIBRESOLV 1
13342 _ACEOF
13343
13344 LIBS="-lresolv $LIBS"
13345
13346 fi
13347
13348 if test "$ac_cv_lib_resolv_res_query" = no; then
13349
13350 { $as_echo "$as_me:$LINENO: checking for res_query in -lbind" >&5
13351 $as_echo_n "checking for res_query in -lbind... " >&6; }
13352 if test "${ac_cv_lib_bind_res_query+set}" = set; then
13353 $as_echo_n "(cached) " >&6
13354 else
13355 ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-lbind $LIBS"
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char res_query ();
13371 int
13372 main ()
13373 {
13374 return res_query ();
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386 $as_echo "$ac_try_echo") >&5
13387 (eval "$ac_link") 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest$ac_exeext && {
13397 test "$cross_compiling" = yes ||
13398 $as_test_x conftest$ac_exeext
13399 }; then
13400 ac_cv_lib_bind_res_query=yes
13401 else
13402 $as_echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_cv_lib_bind_res_query=no
13406 fi
13407
13408 rm -rf conftest.dSYM
13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13412 fi
13413 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_query" >&5
13414 $as_echo "$ac_cv_lib_bind_res_query" >&6; }
13415 if test "x$ac_cv_lib_bind_res_query" = x""yes; then
13416 cat >>confdefs.h <<_ACEOF
13417 #define HAVE_LIBBIND 1
13418 _ACEOF
13419
13420 LIBS="-lbind $LIBS"
13421
13422 fi
13423
13424 fi
13425
13426 { $as_echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
13427 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
13428 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
13429 $as_echo_n "(cached) " >&6
13430 else
13431 ac_check_lib_save_LIBS=$LIBS
13432 LIBS="-lnsl $LIBS"
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439
13440 /* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 char gethostname ();
13447 int
13448 main ()
13449 {
13450 return gethostname ();
13451 ;
13452 return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (ac_try="$ac_link"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13460 esac
13461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462 $as_echo "$ac_try_echo") >&5
13463 (eval "$ac_link") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext && {
13473 test "$cross_compiling" = yes ||
13474 $as_test_x conftest$ac_exeext
13475 }; then
13476 ac_cv_lib_nsl_gethostname=yes
13477 else
13478 $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_cv_lib_nsl_gethostname=no
13482 fi
13483
13484 rm -rf conftest.dSYM
13485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
13490 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
13491 if test "x$ac_cv_lib_nsl_gethostname" = x""yes; then
13492 cat >>confdefs.h <<_ACEOF
13493 #define HAVE_LIBNSL 1
13494 _ACEOF
13495
13496 LIBS="-lnsl $LIBS"
13497
13498 fi
13499
13500
13501 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13502 $as_echo_n "checking for socket in -lsocket... " >&6; }
13503 if test "${ac_cv_lib_socket_socket+set}" = set; then
13504 $as_echo_n "(cached) " >&6
13505 else
13506 ac_check_lib_save_LIBS=$LIBS
13507 LIBS="-lsocket $LIBS"
13508 cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h. */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514
13515 /* Override any GCC internal prototype to avoid an error.
13516 Use char because int might match the return type of a GCC
13517 builtin and then its argument prototype would still apply. */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 char socket ();
13522 int
13523 main ()
13524 {
13525 return socket ();
13526 ;
13527 return 0;
13528 }
13529 _ACEOF
13530 rm -f conftest.$ac_objext conftest$ac_exeext
13531 if { (ac_try="$ac_link"
13532 case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13535 esac
13536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13537 $as_echo "$ac_try_echo") >&5
13538 (eval "$ac_link") 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } && {
13545 test -z "$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13547 } && test -s conftest$ac_exeext && {
13548 test "$cross_compiling" = yes ||
13549 $as_test_x conftest$ac_exeext
13550 }; then
13551 ac_cv_lib_socket_socket=yes
13552 else
13553 $as_echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_cv_lib_socket_socket=no
13557 fi
13558
13559 rm -rf conftest.dSYM
13560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13561 conftest$ac_exeext conftest.$ac_ext
13562 LIBS=$ac_check_lib_save_LIBS
13563 fi
13564 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13565 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13566 if test "x$ac_cv_lib_socket_socket" = x""yes; then
13567 cat >>confdefs.h <<_ACEOF
13568 #define HAVE_LIBSOCKET 1
13569 _ACEOF
13570
13571 LIBS="-lsocket $LIBS"
13572
13573 fi
13574
13575
13576
13577
13578
13579
13580 for ac_func in nl_langinfo _getdcwd atoll _atoi64
13581 do
13582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13583 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13584 $as_echo_n "checking for $ac_func... " >&6; }
13585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13586 $as_echo_n "(cached) " >&6
13587 else
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h. */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13596 #define $ac_func innocuous_$ac_func
13597
13598 /* System header to define __stub macros and hopefully few prototypes,
13599 which can conflict with char $ac_func (); below.
13600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13601 <limits.h> exists even on freestanding compilers. */
13602
13603 #ifdef __STDC__
13604 # include <limits.h>
13605 #else
13606 # include <assert.h>
13607 #endif
13608
13609 #undef $ac_func
13610
13611 /* Override any GCC internal prototype to avoid an error.
13612 Use char because int might match the return type of a GCC
13613 builtin and then its argument prototype would still apply. */
13614 #ifdef __cplusplus
13615 extern "C"
13616 #endif
13617 char $ac_func ();
13618 /* The GNU C library defines this for functions which it implements
13619 to always fail with ENOSYS. Some functions are actually named
13620 something starting with __ and the normal name is an alias. */
13621 #if defined __stub_$ac_func || defined __stub___$ac_func
13622 choke me
13623 #endif
13624
13625 int
13626 main ()
13627 {
13628 return $ac_func ();
13629 ;
13630 return 0;
13631 }
13632 _ACEOF
13633 rm -f conftest.$ac_objext conftest$ac_exeext
13634 if { (ac_try="$ac_link"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638 esac
13639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13640 $as_echo "$ac_try_echo") >&5
13641 (eval "$ac_link") 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest$ac_exeext && {
13651 test "$cross_compiling" = yes ||
13652 $as_test_x conftest$ac_exeext
13653 }; then
13654 eval "$as_ac_var=yes"
13655 else
13656 $as_echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 eval "$as_ac_var=no"
13660 fi
13661
13662 rm -rf conftest.dSYM
13663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13664 conftest$ac_exeext conftest.$ac_ext
13665 fi
13666 ac_res=`eval 'as_val=${'$as_ac_var'}
13667 $as_echo "$as_val"'`
13668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13669 $as_echo "$ac_res" >&6; }
13670 as_val=`eval 'as_val=${'$as_ac_var'}
13671 $as_echo "$as_val"'`
13672 if test "x$as_val" = x""yes; then
13673 cat >>confdefs.h <<_ACEOF
13674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13675 _ACEOF
13676
13677 fi
13678 done
13679
13680
13681 for ac_func in strcasecmp
13682 do
13683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13685 $as_echo_n "checking for $ac_func... " >&6; }
13686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13687 $as_echo_n "(cached) " >&6
13688 else
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13697 #define $ac_func innocuous_$ac_func
13698
13699 /* System header to define __stub macros and hopefully few prototypes,
13700 which can conflict with char $ac_func (); below.
13701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13702 <limits.h> exists even on freestanding compilers. */
13703
13704 #ifdef __STDC__
13705 # include <limits.h>
13706 #else
13707 # include <assert.h>
13708 #endif
13709
13710 #undef $ac_func
13711
13712 /* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
13715 #ifdef __cplusplus
13716 extern "C"
13717 #endif
13718 char $ac_func ();
13719 /* The GNU C library defines this for functions which it implements
13720 to always fail with ENOSYS. Some functions are actually named
13721 something starting with __ and the normal name is an alias. */
13722 #if defined __stub_$ac_func || defined __stub___$ac_func
13723 choke me
13724 #endif
13725
13726 int
13727 main ()
13728 {
13729 return $ac_func ();
13730 ;
13731 return 0;
13732 }
13733 _ACEOF
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (ac_try="$ac_link"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13741 $as_echo "$ac_try_echo") >&5
13742 (eval "$ac_link") 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } && {
13749 test -z "$ac_c_werror_flag" ||
13750 test ! -s conftest.err
13751 } && test -s conftest$ac_exeext && {
13752 test "$cross_compiling" = yes ||
13753 $as_test_x conftest$ac_exeext
13754 }; then
13755 eval "$as_ac_var=yes"
13756 else
13757 $as_echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 eval "$as_ac_var=no"
13761 fi
13762
13763 rm -rf conftest.dSYM
13764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13765 conftest$ac_exeext conftest.$ac_ext
13766 fi
13767 ac_res=`eval 'as_val=${'$as_ac_var'}
13768 $as_echo "$as_val"'`
13769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13770 $as_echo "$ac_res" >&6; }
13771 as_val=`eval 'as_val=${'$as_ac_var'}
13772 $as_echo "$as_val"'`
13773 if test "x$as_val" = x""yes; then
13774 cat >>confdefs.h <<_ACEOF
13775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13776 _ACEOF
13777
13778 else
13779 case " $LIBOBJS " in
13780 *" $ac_func.$ac_objext "* ) ;;
13781 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13782 ;;
13783 esac
13784
13785 fi
13786 done
13787
13788
13789
13790 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
13791 $as_echo_n "checking for mode_t... " >&6; }
13792 if test "${ac_cv_type_mode_t+set}" = set; then
13793 $as_echo_n "(cached) " >&6
13794 else
13795 ac_cv_type_mode_t=no
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h. */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13803 int
13804 main ()
13805 {
13806 if (sizeof (mode_t))
13807 return 0;
13808 ;
13809 return 0;
13810 }
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (ac_try="$ac_compile"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817 esac
13818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13819 $as_echo "$ac_try_echo") >&5
13820 (eval "$ac_compile") 2>conftest.er1
13821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest.$ac_objext; then
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 int
13838 main ()
13839 {
13840 if (sizeof ((mode_t)))
13841 return 0;
13842 ;
13843 return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext
13847 if { (ac_try="$ac_compile"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851 esac
13852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13853 $as_echo "$ac_try_echo") >&5
13854 (eval "$ac_compile") 2>conftest.er1
13855 ac_status=$?
13856 grep -v '^ *+' conftest.er1 >conftest.err
13857 rm -f conftest.er1
13858 cat conftest.err >&5
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } && {
13861 test -z "$ac_c_werror_flag" ||
13862 test ! -s conftest.err
13863 } && test -s conftest.$ac_objext; then
13864 :
13865 else
13866 $as_echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 ac_cv_type_mode_t=yes
13870 fi
13871
13872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873 else
13874 $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877
13878 fi
13879
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881 fi
13882 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13883 $as_echo "$ac_cv_type_mode_t" >&6; }
13884 if test "x$ac_cv_type_mode_t" = x""yes; then
13885 :
13886 else
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define mode_t int
13890 _ACEOF
13891
13892 fi
13893
13894 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13895 $as_echo_n "checking for ssize_t... " >&6; }
13896 if test "${ac_cv_type_ssize_t+set}" = set; then
13897 $as_echo_n "(cached) " >&6
13898 else
13899 ac_cv_type_ssize_t=no
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 $ac_includes_default
13907 int
13908 main ()
13909 {
13910 if (sizeof (ssize_t))
13911 return 0;
13912 ;
13913 return 0;
13914 }
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921 esac
13922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13923 $as_echo "$ac_try_echo") >&5
13924 (eval "$ac_compile") 2>conftest.er1
13925 ac_status=$?
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
13929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && {
13931 test -z "$ac_c_werror_flag" ||
13932 test ! -s conftest.err
13933 } && test -s conftest.$ac_objext; then
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h. */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 $ac_includes_default
13941 int
13942 main ()
13943 {
13944 if (sizeof ((ssize_t)))
13945 return 0;
13946 ;
13947 return 0;
13948 }
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (ac_try="$ac_compile"
13952 case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13955 esac
13956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13957 $as_echo "$ac_try_echo") >&5
13958 (eval "$ac_compile") 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest.$ac_objext; then
13968 :
13969 else
13970 $as_echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973 ac_cv_type_ssize_t=yes
13974 fi
13975
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 else
13978 $as_echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981
13982 fi
13983
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 fi
13986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13987 $as_echo "$ac_cv_type_ssize_t" >&6; }
13988 if test "x$ac_cv_type_ssize_t" = x""yes; then
13989 :
13990 else
13991
13992 cat >>confdefs.h <<_ACEOF
13993 #define ssize_t int
13994 _ACEOF
13995
13996 fi
13997
13998
13999
14000
14001 if test X$ac_exeext = Xyes; then
14002 EXEEXT_EXE_TRUE=
14003 EXEEXT_EXE_FALSE='#'
14004 else
14005 EXEEXT_EXE_TRUE='#'
14006 EXEEXT_EXE_FALSE=
14007 fi
14008
14009 if test X$ac_exeext = X.exe; then
14010
14011 cat >>confdefs.h <<\_ACEOF
14012 #define EXEEXT_EXE 1
14013 _ACEOF
14014
14015 fi
14016
14017 if test "$ENABLE_EBNET" = yes; then
14018
14019 cat >>confdefs.h <<\_ACEOF
14020 #define ENABLE_EBNET 1
14021 _ACEOF
14022
14023
14024 { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
14025 $as_echo_n "checking for in_port_t... " >&6; }
14026 if test "${ac_cv_type_in_port_t+set}" = set; then
14027 $as_echo_n "(cached) " >&6
14028 else
14029 cat >conftest.$ac_ext <<_ACEOF
14030
14031 #include <sys/types.h>
14032 #include <sys/socket.h>
14033 #include <netinet/in.h>
14034 in_port_t in_port;
14035
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042 esac
14043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14044 $as_echo "$ac_try_echo") >&5
14045 (eval "$ac_compile") 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } && {
14052 test -z "$ac_c_werror_flag" ||
14053 test ! -s conftest.err
14054 } && test -s conftest.$ac_objext; then
14055 ac_cv_type_in_port_t=yes
14056 else
14057 $as_echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14059
14060 ac_cv_type_in_port_t=no
14061 fi
14062
14063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 fi
14065 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
14066 $as_echo "$ac_cv_type_in_port_t" >&6; }
14067 if test "$ac_cv_type_in_port_t" != yes; then
14068 ac_cv_sin_port_size=unknown
14069 if test "$cross_compiling" = yes; then
14070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14072 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14073 See \`config.log' for more details." >&5
14074 $as_echo "$as_me: error: cannot run test program while cross compiling
14075 See \`config.log' for more details." >&2;}
14076 { (exit 1); exit 1; }; }; }
14077 else
14078 cat >conftest.$ac_ext <<_ACEOF
14079
14080 #include <sys/types.h>
14081 #include <sys/socket.h>
14082 #include <netinet/in.h>
14083 int main() {
14084 struct sockaddr_in addr;
14085 return (sizeof(addr.sin_port) == sizeof(long)) ? 0 : 1;
14086 }
14087
14088 _ACEOF
14089 rm -f conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094 esac
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097 (eval "$ac_link") 2>&5
14098 ac_status=$?
14099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104 esac
14105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14106 $as_echo "$ac_try_echo") >&5
14107 (eval "$ac_try") 2>&5
14108 ac_status=$?
14109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_sin_port_size=long
14112 else
14113 $as_echo "$as_me: program exited with status $ac_status" >&5
14114 $as_echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 fi
14118 rm -rf conftest.dSYM
14119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14120 fi
14121
14122
14123 if test "$cross_compiling" = yes; then
14124 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14126 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14127 See \`config.log' for more details." >&5
14128 $as_echo "$as_me: error: cannot run test program while cross compiling
14129 See \`config.log' for more details." >&2;}
14130 { (exit 1); exit 1; }; }; }
14131 else
14132 cat >conftest.$ac_ext <<_ACEOF
14133
14134 #include <sys/types.h>
14135 #include <sys/socket.h>
14136 #include <netinet/in.h>
14137 int main() {
14138 struct sockaddr_in addr;
14139 return (sizeof(addr.sin_port) == sizeof(int)) ? 0 : 1;
14140 }
14141
14142 _ACEOF
14143 rm -f conftest$ac_exeext
14144 if { (ac_try="$ac_link"
14145 case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14148 esac
14149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14150 $as_echo "$ac_try_echo") >&5
14151 (eval "$ac_link") 2>&5
14152 ac_status=$?
14153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14155 { (case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158 esac
14159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14160 $as_echo "$ac_try_echo") >&5
14161 (eval "$ac_try") 2>&5
14162 ac_status=$?
14163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 ac_cv_sin_port_size=int
14166 else
14167 $as_echo "$as_me: program exited with status $ac_status" >&5
14168 $as_echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 fi
14172 rm -rf conftest.dSYM
14173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14174 fi
14175
14176
14177 if test "$cross_compiling" = yes; then
14178 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14180 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14181 See \`config.log' for more details." >&5
14182 $as_echo "$as_me: error: cannot run test program while cross compiling
14183 See \`config.log' for more details." >&2;}
14184 { (exit 1); exit 1; }; }; }
14185 else
14186 cat >conftest.$ac_ext <<_ACEOF
14187
14188 #include <sys/types.h>
14189 #include <sys/socket.h>
14190 #include <netinet/in.h>
14191 int main() {
14192 struct sockaddr_in addr;
14193 return (sizeof(addr.sin_port) == sizeof(short)) ? 0 : 1;
14194 }
14195
14196 _ACEOF
14197 rm -f conftest$ac_exeext
14198 if { (ac_try="$ac_link"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205 (eval "$ac_link") 2>&5
14206 ac_status=$?
14207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212 esac
14213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14214 $as_echo "$ac_try_echo") >&5
14215 (eval "$ac_try") 2>&5
14216 ac_status=$?
14217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 ac_cv_sin_port_size=short
14220 else
14221 $as_echo "$as_me: program exited with status $ac_status" >&5
14222 $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 fi
14226 rm -rf conftest.dSYM
14227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14228 fi
14229
14230
14231 if test "$cross_compiling" = yes; then
14232 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14234 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14235 See \`config.log' for more details." >&5
14236 $as_echo "$as_me: error: cannot run test program while cross compiling
14237 See \`config.log' for more details." >&2;}
14238 { (exit 1); exit 1; }; }; }
14239 else
14240 cat >conftest.$ac_ext <<_ACEOF
14241
14242 #include <sys/types.h>
14243 #include <sys/socket.h>
14244 #include <netinet/in.h>
14245 int main() {
14246 struct sockaddr_in addr;
14247 return (sizeof(addr.sin_port) == sizeof(char)) ? 0 : 1;
14248 }
14249
14250 _ACEOF
14251 rm -f conftest$ac_exeext
14252 if { (ac_try="$ac_link"
14253 case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256 esac
14257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14258 $as_echo "$ac_try_echo") >&5
14259 (eval "$ac_link") 2>&5
14260 ac_status=$?
14261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14263 { (case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14266 esac
14267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14268 $as_echo "$ac_try_echo") >&5
14269 (eval "$ac_try") 2>&5
14270 ac_status=$?
14271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_cv_sin_port_size=char
14274 else
14275 $as_echo "$as_me: program exited with status $ac_status" >&5
14276 $as_echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279 fi
14280 rm -rf conftest.dSYM
14281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14282 fi
14283
14284
14285 if test "$ac_cv_sin_port_size" = unknown; then
14286 { { $as_echo "$as_me:$LINENO: error: Failed to get size of sin_port in struct sockaddr_in." >&5
14287 $as_echo "$as_me: error: Failed to get size of sin_port in struct sockaddr_in." >&2;}
14288 { (exit 1); exit 1; }; }
14289 fi
14290
14291 cat >>confdefs.h <<_ACEOF
14292 #define in_port_t unsigned $ac_cv_sin_port_size
14293 _ACEOF
14294
14295 fi
14296 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
14297 $as_echo_n "checking for sa_family_t... " >&6; }
14298 if test "${ac_cv_type_sa_family_t+set}" = set; then
14299 $as_echo_n "(cached) " >&6
14300 else
14301 cat >conftest.$ac_ext <<_ACEOF
14302
14303 #include <sys/types.h>
14304 #include <sys/socket.h>
14305 sa_family_t sa_family;
14306
14307 _ACEOF
14308 rm -f conftest.$ac_objext
14309 if { (ac_try="$ac_compile"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14313 esac
14314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14315 $as_echo "$ac_try_echo") >&5
14316 (eval "$ac_compile") 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } && {
14323 test -z "$ac_c_werror_flag" ||
14324 test ! -s conftest.err
14325 } && test -s conftest.$ac_objext; then
14326 ac_cv_type_sa_family_t=yes
14327 else
14328 $as_echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 ac_cv_type_sa_family_t=no
14332 fi
14333
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
14337 $as_echo "$ac_cv_type_sa_family_t" >&6; }
14338 if test "$ac_cv_type_sa_family_t" != yes; then
14339 ac_cv_sa_family_size=unknown
14340 if test "$cross_compiling" = yes; then
14341 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14343 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14344 See \`config.log' for more details." >&5
14345 $as_echo "$as_me: error: cannot run test program while cross compiling
14346 See \`config.log' for more details." >&2;}
14347 { (exit 1); exit 1; }; }; }
14348 else
14349 cat >conftest.$ac_ext <<_ACEOF
14350
14351 #include <sys/types.h>
14352 #include <sys/socket.h>
14353 int main() {
14354 struct sockaddr addr;
14355 return (sizeof(addr.sa_family) == sizeof(long)) ? 0 : 1;
14356 }
14357
14358 _ACEOF
14359 rm -f conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364 esac
14365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14366 $as_echo "$ac_try_echo") >&5
14367 (eval "$ac_link") 2>&5
14368 ac_status=$?
14369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14376 $as_echo "$ac_try_echo") >&5
14377 (eval "$ac_try") 2>&5
14378 ac_status=$?
14379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_cv_sa_family_size=long
14382 else
14383 $as_echo "$as_me: program exited with status $ac_status" >&5
14384 $as_echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14386
14387 fi
14388 rm -rf conftest.dSYM
14389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14390 fi
14391
14392
14393 if test "$cross_compiling" = yes; then
14394 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14396 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14397 See \`config.log' for more details." >&5
14398 $as_echo "$as_me: error: cannot run test program while cross compiling
14399 See \`config.log' for more details." >&2;}
14400 { (exit 1); exit 1; }; }; }
14401 else
14402 cat >conftest.$ac_ext <<_ACEOF
14403
14404 #include <sys/types.h>
14405 #include <sys/socket.h>
14406 int main() {
14407 struct sockaddr addr;
14408 return (sizeof(addr.sa_family) == sizeof(int)) ? 0 : 1;
14409 }
14410
14411 _ACEOF
14412 rm -f conftest$ac_exeext
14413 if { (ac_try="$ac_link"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417 esac
14418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14419 $as_echo "$ac_try_echo") >&5
14420 (eval "$ac_link") 2>&5
14421 ac_status=$?
14422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14424 { (case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14427 esac
14428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14429 $as_echo "$ac_try_echo") >&5
14430 (eval "$ac_try") 2>&5
14431 ac_status=$?
14432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_cv_sa_family_size=int
14435 else
14436 $as_echo "$as_me: program exited with status $ac_status" >&5
14437 $as_echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 fi
14441 rm -rf conftest.dSYM
14442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14443 fi
14444
14445
14446 if test "$cross_compiling" = yes; then
14447 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14449 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14450 See \`config.log' for more details." >&5
14451 $as_echo "$as_me: error: cannot run test program while cross compiling
14452 See \`config.log' for more details." >&2;}
14453 { (exit 1); exit 1; }; }; }
14454 else
14455 cat >conftest.$ac_ext <<_ACEOF
14456
14457 #include <sys/types.h>
14458 #include <sys/socket.h>
14459 int main() {
14460 struct sockaddr addr;
14461 return (sizeof(addr.sa_family) == sizeof(short)) ? 0 : 1;
14462 }
14463
14464 _ACEOF
14465 rm -f conftest$ac_exeext
14466 if { (ac_try="$ac_link"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470 esac
14471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14472 $as_echo "$ac_try_echo") >&5
14473 (eval "$ac_link") 2>&5
14474 ac_status=$?
14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14477 { (case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14480 esac
14481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14482 $as_echo "$ac_try_echo") >&5
14483 (eval "$ac_try") 2>&5
14484 ac_status=$?
14485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_cv_sa_family_size=short
14488 else
14489 $as_echo "$as_me: program exited with status $ac_status" >&5
14490 $as_echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 fi
14494 rm -rf conftest.dSYM
14495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14496 fi
14497
14498
14499 if test "$cross_compiling" = yes; then
14500 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14502 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14503 See \`config.log' for more details." >&5
14504 $as_echo "$as_me: error: cannot run test program while cross compiling
14505 See \`config.log' for more details." >&2;}
14506 { (exit 1); exit 1; }; }; }
14507 else
14508 cat >conftest.$ac_ext <<_ACEOF
14509
14510 #include <sys/types.h>
14511 #include <sys/socket.h>
14512 int main() {
14513 struct sockaddr addr;
14514 return (sizeof(addr.sa_family) == sizeof(char)) ? 0 : 1;
14515 }
14516
14517 _ACEOF
14518 rm -f conftest$ac_exeext
14519 if { (ac_try="$ac_link"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523 esac
14524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14525 $as_echo "$ac_try_echo") >&5
14526 (eval "$ac_link") 2>&5
14527 ac_status=$?
14528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14530 { (case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14533 esac
14534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14535 $as_echo "$ac_try_echo") >&5
14536 (eval "$ac_try") 2>&5
14537 ac_status=$?
14538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_sa_family_size=char
14541 else
14542 $as_echo "$as_me: program exited with status $ac_status" >&5
14543 $as_echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 fi
14547 rm -rf conftest.dSYM
14548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14549 fi
14550
14551
14552 if test "$ac_cv_sa_family_size" = unknown; then
14553 { { $as_echo "$as_me:$LINENO: error: Failed to get size of sa_family in struct sockaddr." >&5
14554 $as_echo "$as_me: error: Failed to get size of sa_family in struct sockaddr." >&2;}
14555 { (exit 1); exit 1; }; }
14556 fi
14557
14558 cat >>confdefs.h <<_ACEOF
14559 #define sa_family_t unsigned $ac_cv_sa_family_size
14560 _ACEOF
14561
14562 fi
14563 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
14564 $as_echo_n "checking for socklen_t... " >&6; }
14565 if test "${ac_cv_type_socklen_t+set}" = set; then
14566 $as_echo_n "(cached) " >&6
14567 else
14568 cat >conftest.$ac_ext <<_ACEOF
14569
14570 #include <sys/types.h>
14571 #include <sys/socket.h>
14572 socklen_t socklen;
14573
14574 _ACEOF
14575 rm -f conftest.$ac_objext
14576 if { (ac_try="$ac_compile"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14582 $as_echo "$ac_try_echo") >&5
14583 (eval "$ac_compile") 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_c_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest.$ac_objext; then
14593 ac_cv_type_socklen_t=yes
14594 else
14595 $as_echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14597
14598 ac_cv_type_socklen_t=no
14599 fi
14600
14601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 fi
14603 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14604 $as_echo "$ac_cv_type_socklen_t" >&6; }
14605 if test "$ac_cv_type_socklen_t" != yes; then
14606
14607 cat >>confdefs.h <<\_ACEOF
14608 #define socklen_t int
14609 _ACEOF
14610
14611 fi
14612 { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14613 $as_echo_n "checking for struct in6_addr... " >&6; }
14614 if test "${ac_cv_struct_in6_addr+set}" = set; then
14615 $as_echo_n "(cached) " >&6
14616 else
14617 cat >conftest.$ac_ext <<_ACEOF
14618
14619 #include <sys/types.h>
14620 #include <sys/socket.h>
14621 #include <netinet/in.h>
14622 struct in6_addr address;
14623
14624 _ACEOF
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630 esac
14631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14632 $as_echo "$ac_try_echo") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
14643 ac_cv_struct_in6_addr=yes
14644 else
14645 $as_echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648 ac_cv_struct_in6_addr=no
14649 fi
14650
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 fi
14653 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_in6_addr" >&5
14654 $as_echo "$ac_cv_struct_in6_addr" >&6; }
14655 if test "$ac_cv_struct_in6_addr" = yes; then
14656
14657 cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_STRUCT_IN6_ADDR 1
14659 _ACEOF
14660
14661 fi
14662 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
14663 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
14664 if test "${ac_cv_struct_sockaddr_in6+set}" = set; then
14665 $as_echo_n "(cached) " >&6
14666 else
14667 cat >conftest.$ac_ext <<_ACEOF
14668
14669 #include <sys/types.h>
14670 #include <sys/socket.h>
14671 #include <netinet/in.h>
14672 struct sockaddr_in6 address;
14673
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14682 $as_echo "$ac_try_echo") >&5
14683 (eval "$ac_compile") 2>conftest.er1
14684 ac_status=$?
14685 grep -v '^ *+' conftest.er1 >conftest.err
14686 rm -f conftest.er1
14687 cat conftest.err >&5
14688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } && {
14690 test -z "$ac_c_werror_flag" ||
14691 test ! -s conftest.err
14692 } && test -s conftest.$ac_objext; then
14693 ac_cv_struct_sockaddr_in6=yes
14694 else
14695 $as_echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_cv_struct_sockaddr_in6=no
14699 fi
14700
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 fi
14703 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_in6" >&5
14704 $as_echo "$ac_cv_struct_sockaddr_in6" >&6; }
14705 if test "$ac_cv_struct_sockaddr_in6" = yes; then
14706
14707 cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_STRUCT_SOCKADDR_IN6 1
14709 _ACEOF
14710
14711 fi
14712 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14713 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
14714 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
14715 $as_echo_n "(cached) " >&6
14716 else
14717 cat >conftest.$ac_ext <<_ACEOF
14718
14719 #include <sys/types.h>
14720 #include <sys/socket.h>
14721 #include <netinet/in.h>
14722 struct sockaddr_storage address;
14723
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730 esac
14731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733 (eval "$ac_compile") 2>conftest.er1
14734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest.$ac_objext; then
14743 ac_cv_struct_sockaddr_storage=yes
14744 else
14745 $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 ac_cv_struct_sockaddr_storage=no
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 fi
14753 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
14754 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
14755 if test "$ac_cv_struct_sockaddr_storage" = yes; then
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14759 _ACEOF
14760
14761 fi
14762
14763 if test $ac_cv_struct_in6_addr = no; then
14764 ac_cv_decl_in6addr_any=no
14765 else
14766 { $as_echo "$as_me:$LINENO: checking for in6addr_any declaration in netinet/in.h" >&5
14767 $as_echo_n "checking for in6addr_any declaration in netinet/in.h... " >&6; }
14768 if test "${ac_cv_decl_in6addr_any+set}" = set; then
14769 $as_echo_n "(cached) " >&6
14770 else
14771 cat >conftest.$ac_ext <<_ACEOF
14772
14773 #include <sys/types.h>
14774 #include <sys/socket.h>
14775 #include <netinet/in.h>
14776
14777 void
14778 testfunc()
14779 {
14780 unsigned char *address;
14781 address = (char *)&in6addr_any;
14782 }
14783
14784 _ACEOF
14785 rm -f conftest.$ac_objext
14786 if { (ac_try="$ac_compile"
14787 case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790 esac
14791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14792 $as_echo "$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 $as_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_cv_decl_in6addr_any=yes
14804 else
14805 $as_echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_cv_decl_in6addr_any=no
14809 fi
14810
14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812 fi
14813 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_in6addr_any" >&5
14814 $as_echo "$ac_cv_decl_in6addr_any" >&6; }
14815 if test "$ac_cv_decl_in6addr_any" = yes; then
14816
14817 cat >>confdefs.h <<\_ACEOF
14818 #define IN6ADDR_ANY_DECLARED 1
14819 _ACEOF
14820
14821 fi
14822 fi
14823
14824 if test $ac_cv_struct_in6_addr = no; then
14825 ac_cv_decl_in6addr_loopback=no
14826 else
14827 { $as_echo "$as_me:$LINENO: checking for in6addr_loopback declaration in netinet/in.h" >&5
14828 $as_echo_n "checking for in6addr_loopback declaration in netinet/in.h... " >&6; }
14829 if test "${ac_cv_decl_in6addr_loopback+set}" = set; then
14830 $as_echo_n "(cached) " >&6
14831 else
14832 cat >conftest.$ac_ext <<_ACEOF
14833
14834 #include <sys/types.h>
14835 #include <sys/socket.h>
14836 #include <netinet/in.h>
14837
14838 int
14839 testfunc()
14840 {
14841 unsigned char *address;
14842 address = (char *)&in6addr_loopback;
14843 }
14844
14845 _ACEOF
14846 rm -f conftest.$ac_objext
14847 if { (ac_try="$ac_compile"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851 esac
14852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14853 $as_echo "$ac_try_echo") >&5
14854 (eval "$ac_compile") 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } && {
14861 test -z "$ac_c_werror_flag" ||
14862 test ! -s conftest.err
14863 } && test -s conftest.$ac_objext; then
14864 ac_cv_decl_in6addr_loopback=yes
14865 else
14866 $as_echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869 ac_cv_decl_in6addr_loopback=no
14870 fi
14871
14872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14873 fi
14874 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_in6addr_loopback" >&5
14875 $as_echo "$ac_cv_decl_in6addr_loopback" >&6; }
14876 if test "$ac_cv_decl_in6addr_loopback" = yes; then
14877
14878 cat >>confdefs.h <<\_ACEOF
14879 #define IN6ADDR_LOOPBACK_DECLARED 1
14880 _ACEOF
14881
14882 fi
14883 fi
14884
14885
14886
14887
14888 for ac_func in getaddrinfo getnameinfo gai_strerror
14889 do
14890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14892 $as_echo_n "checking for $ac_func... " >&6; }
14893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14894 $as_echo_n "(cached) " >&6
14895 else
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h. */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14904 #define $ac_func innocuous_$ac_func
14905
14906 /* System header to define __stub macros and hopefully few prototypes,
14907 which can conflict with char $ac_func (); below.
14908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14909 <limits.h> exists even on freestanding compilers. */
14910
14911 #ifdef __STDC__
14912 # include <limits.h>
14913 #else
14914 # include <assert.h>
14915 #endif
14916
14917 #undef $ac_func
14918
14919 /* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
14922 #ifdef __cplusplus
14923 extern "C"
14924 #endif
14925 char $ac_func ();
14926 /* The GNU C library defines this for functions which it implements
14927 to always fail with ENOSYS. Some functions are actually named
14928 something starting with __ and the normal name is an alias. */
14929 #if defined __stub_$ac_func || defined __stub___$ac_func
14930 choke me
14931 #endif
14932
14933 int
14934 main ()
14935 {
14936 return $ac_func ();
14937 ;
14938 return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14948 $as_echo "$ac_try_echo") >&5
14949 (eval "$ac_link") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest$ac_exeext && {
14959 test "$cross_compiling" = yes ||
14960 $as_test_x conftest$ac_exeext
14961 }; then
14962 eval "$as_ac_var=yes"
14963 else
14964 $as_echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 eval "$as_ac_var=no"
14968 fi
14969
14970 rm -rf conftest.dSYM
14971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14972 conftest$ac_exeext conftest.$ac_ext
14973 fi
14974 ac_res=`eval 'as_val=${'$as_ac_var'}
14975 $as_echo "$as_val"'`
14976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14977 $as_echo "$ac_res" >&6; }
14978 as_val=`eval 'as_val=${'$as_ac_var'}
14979 $as_echo "$as_val"'`
14980 if test "x$as_val" = x""yes; then
14981 cat >>confdefs.h <<_ACEOF
14982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14983 _ACEOF
14984
14985 fi
14986 done
14987
14988
14989 if test "$ENABLE_IPV6" = auto; then
14990 if test "$ac_cv_struct_in6_addr$ac_cv_func_getaddrinfo" = yesyes; then
14991 ENABLE_IPV6=yes
14992 else
14993 ENABLE_IPV6=no
14994 fi
14995 fi
14996
14997 { $as_echo "$as_me:$LINENO: checking for IPv6 support" >&5
14998 $as_echo_n "checking for IPv6 support... " >&6; }
14999 if test "$ENABLE_IPV6" = yes; then
15000 if test "$ac_cv_struct_in6_addr" = no; then
15001 { { $as_echo "$as_me:$LINENO: error: IPv6 not available" >&5
15002 $as_echo "$as_me: error: IPv6 not available" >&2;}
15003 { (exit 1); exit 1; }; }
15004 fi
15005 if test "${ac_cv_func_getaddrinfo}" = no; then
15006 { { $as_echo "$as_me:$LINENO: error: IPv6 not available" >&5
15007 $as_echo "$as_me: error: IPv6 not available" >&2;}
15008 { (exit 1); exit 1; }; }
15009 fi
15010
15011 cat >>confdefs.h <<\_ACEOF
15012 #define ENABLE_IPV6 1
15013 _ACEOF
15014
15015 fi
15016 { $as_echo "$as_me:$LINENO: result: $ENABLE_IPV6" >&5
15017 $as_echo "$ENABLE_IPV6" >&6; }
15018 fi
15019
15020 EBCONF_ZLIBINCS=$ZLIBINCS
15021 EBCONF_ZLIBLIBS=$ZLIBLIBS
15022
15023
15024
15025
15026
15027
15028
15029
15030 EBCONF_INTLINCS=$INTLINCS
15031 EBCONF_INTLLIBS=$INTLLIBS
15032
15033
15034
15035 EBCONF_EBINCS='-I$(includedir)'
15036 EBCONF_EBLIBS='-L$(libdir) -leb'
15037
15038
15039
15040 ac_config_headers="$ac_config_headers config.h"
15041
15042 ac_config_files="$ac_config_files Makefile eb/Makefile libebutils/Makefile ebappendix/Makefile ebfont/Makefile ebinfo/Makefile ebrefile/Makefile ebstopcode/Makefile ebzip/Makefile doc/Makefile po-eb/Makefile po-ebutils/Makefile m4/Makefile samples/Makefile"
15043
15044 cat >confcache <<\_ACEOF
15045 # This file is a shell script that caches the results of configure
15046 # tests run on this system so they can be shared between configure
15047 # scripts and configure runs, see configure's option --config-cache.
15048 # It is not useful on other systems. If it contains results you don't
15049 # want to keep, you may remove or edit it.
15050 #
15051 # config.status only pays attention to the cache file if you give it
15052 # the --recheck option to rerun configure.
15053 #
15054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15056 # following values.
15057
15058 _ACEOF
15059
15060 # The following way of writing the cache mishandles newlines in values,
15061 # but we know of no workaround that is simple, portable, and efficient.
15062 # So, we kill variables containing newlines.
15063 # Ultrix sh set writes to stderr and can't be redirected directly,
15064 # and sets the high bit in the cache file unless we assign to the vars.
15065 (
15066 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15067 eval ac_val=\$$ac_var
15068 case $ac_val in #(
15069 *${as_nl}*)
15070 case $ac_var in #(
15071 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15073 esac
15074 case $ac_var in #(
15075 _ | IFS | as_nl) ;; #(
15076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15077 *) $as_unset $ac_var ;;
15078 esac ;;
15079 esac
15080 done
15081
15082 (set) 2>&1 |
15083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15084 *${as_nl}ac_space=\ *)
15085 # `set' does not quote correctly, so add quotes (double-quote
15086 # substitution turns \\\\ into \\, and sed turns \\ into \).
15087 sed -n \
15088 "s/'/'\\\\''/g;
15089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15090 ;; #(
15091 *)
15092 # `set' quotes correctly as required by POSIX, so do not add quotes.
15093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15094 ;;
15095 esac |
15096 sort
15097 ) |
15098 sed '
15099 /^ac_cv_env_/b end
15100 t clear
15101 :clear
15102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15103 t end
15104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15105 :end' >>confcache
15106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15107 if test -w "$cache_file"; then
15108 test "x$cache_file" != "x/dev/null" &&
15109 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15110 $as_echo "$as_me: updating cache $cache_file" >&6;}
15111 cat confcache >$cache_file
15112 else
15113 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15114 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15115 fi
15116 fi
15117 rm -f confcache
15118
15119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15120 # Let make expand exec_prefix.
15121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15122
15123 DEFS=-DHAVE_CONFIG_H
15124
15125 ac_libobjs=
15126 ac_ltlibobjs=
15127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15128 # 1. Remove the extension, and $U if already installed.
15129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15130 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15132 # will be set to the directory where LIBOBJS objects are built.
15133 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15134 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15135 done
15136 LIBOBJS=$ac_libobjs
15137
15138 LTLIBOBJS=$ac_ltlibobjs
15139
15140
15141 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15142 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15143 Usually this means the macro was only invoked conditionally." >&5
15144 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15145 Usually this means the macro was only invoked conditionally." >&2;}
15146 { (exit 1); exit 1; }; }
15147 fi
15148 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15149 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15150 Usually this means the macro was only invoked conditionally." >&5
15151 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15152 Usually this means the macro was only invoked conditionally." >&2;}
15153 { (exit 1); exit 1; }; }
15154 fi
15155 if test -z "${ENABLE_SAMPLES_TRUE}" && test -z "${ENABLE_SAMPLES_FALSE}"; then
15156 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SAMPLES\" was never defined.
15157 Usually this means the macro was only invoked conditionally." >&5
15158 $as_echo "$as_me: error: conditional \"ENABLE_SAMPLES\" was never defined.
15159 Usually this means the macro was only invoked conditionally." >&2;}
15160 { (exit 1); exit 1; }; }
15161 fi
15162 if test -z "${ENABLE_EBNET_TRUE}" && test -z "${ENABLE_EBNET_FALSE}"; then
15163 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_EBNET\" was never defined.
15164 Usually this means the macro was only invoked conditionally." >&5
15165 $as_echo "$as_me: error: conditional \"ENABLE_EBNET\" was never defined.
15166 Usually this means the macro was only invoked conditionally." >&2;}
15167 { (exit 1); exit 1; }; }
15168 fi
15169 if test -z "${EXEEXT_EXE_TRUE}" && test -z "${EXEEXT_EXE_FALSE}"; then
15170 { { $as_echo "$as_me:$LINENO: error: conditional \"EXEEXT_EXE\" was never defined.
15171 Usually this means the macro was only invoked conditionally." >&5
15172 $as_echo "$as_me: error: conditional \"EXEEXT_EXE\" was never defined.
15173 Usually this means the macro was only invoked conditionally." >&2;}
15174 { (exit 1); exit 1; }; }
15175 fi
15176
15177 : ${CONFIG_STATUS=./config.status}
15178 ac_write_fail=0
15179 ac_clean_files_save=$ac_clean_files
15180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15181 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15183 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15184 #! $SHELL
15185 # Generated by $as_me.
15186 # Run this file to recreate the current configuration.
15187 # Compiler output produced by configure, useful for debugging
15188 # configure, is in config.log if it exists.
15189
15190 debug=false
15191 ac_cs_recheck=false
15192 ac_cs_silent=false
15193 SHELL=\${CONFIG_SHELL-$SHELL}
15194 _ACEOF
15195
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 ## --------------------- ##
15198 ## M4sh Initialization. ##
15199 ## --------------------- ##
15200
15201 # Be more Bourne compatible
15202 DUALCASE=1; export DUALCASE # for MKS sh
15203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15204 emulate sh
15205 NULLCMD=:
15206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15207 # is contrary to our usage. Disable this feature.
15208 alias -g '${1+"$@"}'='"$@"'
15209 setopt NO_GLOB_SUBST
15210 else
15211 case `(set -o) 2>/dev/null` in
15212 *posix*) set -o posix ;;
15213 esac
15214
15215 fi
15216
15217
15218
15219
15220 # PATH needs CR
15221 # Avoid depending upon Character Ranges.
15222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15225 as_cr_digits='0123456789'
15226 as_cr_alnum=$as_cr_Letters$as_cr_digits
15227
15228 as_nl='
15229 '
15230 export as_nl
15231 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15232 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15235 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15236 as_echo='printf %s\n'
15237 as_echo_n='printf %s'
15238 else
15239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15240 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15241 as_echo_n='/usr/ucb/echo -n'
15242 else
15243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15244 as_echo_n_body='eval
15245 arg=$1;
15246 case $arg in
15247 *"$as_nl"*)
15248 expr "X$arg" : "X\\(.*\\)$as_nl";
15249 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15250 esac;
15251 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15252 '
15253 export as_echo_n_body
15254 as_echo_n='sh -c $as_echo_n_body as_echo'
15255 fi
15256 export as_echo_body
15257 as_echo='sh -c $as_echo_body as_echo'
15258 fi
15259
15260 # The user is always right.
15261 if test "${PATH_SEPARATOR+set}" != set; then
15262 PATH_SEPARATOR=:
15263 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15264 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15265 PATH_SEPARATOR=';'
15266 }
15267 fi
15268
15269 # Support unset when possible.
15270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15271 as_unset=unset
15272 else
15273 as_unset=false
15274 fi
15275
15276
15277 # IFS
15278 # We need space, tab and new line, in precisely that order. Quoting is
15279 # there to prevent editors from complaining about space-tab.
15280 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15281 # splitting by setting IFS to empty value.)
15282 IFS=" "" $as_nl"
15283
15284 # Find who we are. Look in the path if we contain no directory separator.
15285 case $0 in
15286 *[\\/]* ) as_myself=$0 ;;
15287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288 for as_dir in $PATH
15289 do
15290 IFS=$as_save_IFS
15291 test -z "$as_dir" && as_dir=.
15292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15293 done
15294 IFS=$as_save_IFS
15295
15296 ;;
15297 esac
15298 # We did not find ourselves, most probably we were run as `sh COMMAND'
15299 # in which case we are not to be found in the path.
15300 if test "x$as_myself" = x; then
15301 as_myself=$0
15302 fi
15303 if test ! -f "$as_myself"; then
15304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15305 { (exit 1); exit 1; }
15306 fi
15307
15308 # Work around bugs in pre-3.0 UWIN ksh.
15309 for as_var in ENV MAIL MAILPATH
15310 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15311 done
15312 PS1='$ '
15313 PS2='> '
15314 PS4='+ '
15315
15316 # NLS nuisances.
15317 LC_ALL=C
15318 export LC_ALL
15319 LANGUAGE=C
15320 export LANGUAGE
15321
15322 # Required to use basename.
15323 if expr a : '\(a\)' >/dev/null 2>&1 &&
15324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15325 as_expr=expr
15326 else
15327 as_expr=false
15328 fi
15329
15330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15331 as_basename=basename
15332 else
15333 as_basename=false
15334 fi
15335
15336
15337 # Name of the executable.
15338 as_me=`$as_basename -- "$0" ||
15339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15340 X"$0" : 'X\(//\)$' \| \
15341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15342 $as_echo X/"$0" |
15343 sed '/^.*\/\([^/][^/]*\)\/*$/{
15344 s//\1/
15345 q
15346 }
15347 /^X\/\(\/\/\)$/{
15348 s//\1/
15349 q
15350 }
15351 /^X\/\(\/\).*/{
15352 s//\1/
15353 q
15354 }
15355 s/.*/./; q'`
15356
15357 # CDPATH.
15358 $as_unset CDPATH
15359
15360
15361
15362 as_lineno_1=$LINENO
15363 as_lineno_2=$LINENO
15364 test "x$as_lineno_1" != "x$as_lineno_2" &&
15365 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15366
15367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15368 # uniformly replaced by the line number. The first 'sed' inserts a
15369 # line-number line after each line using $LINENO; the second 'sed'
15370 # does the real work. The second script uses 'N' to pair each
15371 # line-number line with the line containing $LINENO, and appends
15372 # trailing '-' during substitution so that $LINENO is not a special
15373 # case at line end.
15374 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15375 # scripts with optimization help from Paolo Bonzini. Blame Lee
15376 # E. McMahon (1931-1989) for sed's syntax. :-)
15377 sed -n '
15378 p
15379 /[$]LINENO/=
15380 ' <$as_myself |
15381 sed '
15382 s/[$]LINENO.*/&-/
15383 t lineno
15384 b
15385 :lineno
15386 N
15387 :loop
15388 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15389 t loop
15390 s/-\n.*//
15391 ' >$as_me.lineno &&
15392 chmod +x "$as_me.lineno" ||
15393 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15394 { (exit 1); exit 1; }; }
15395
15396 # Don't try to exec as it changes $[0], causing all sort of problems
15397 # (the dirname of $[0] is not the place where we might find the
15398 # original and so on. Autoconf is especially sensitive to this).
15399 . "./$as_me.lineno"
15400 # Exit status is that of the last command.
15401 exit
15402 }
15403
15404
15405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15406 as_dirname=dirname
15407 else
15408 as_dirname=false
15409 fi
15410
15411 ECHO_C= ECHO_N= ECHO_T=
15412 case `echo -n x` in
15413 -n*)
15414 case `echo 'x\c'` in
15415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15416 *) ECHO_C='\c';;
15417 esac;;
15418 *)
15419 ECHO_N='-n';;
15420 esac
15421 if expr a : '\(a\)' >/dev/null 2>&1 &&
15422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15423 as_expr=expr
15424 else
15425 as_expr=false
15426 fi
15427
15428 rm -f conf$$ conf$$.exe conf$$.file
15429 if test -d conf$$.dir; then
15430 rm -f conf$$.dir/conf$$.file
15431 else
15432 rm -f conf$$.dir
15433 mkdir conf$$.dir 2>/dev/null
15434 fi
15435 if (echo >conf$$.file) 2>/dev/null; then
15436 if ln -s conf$$.file conf$$ 2>/dev/null; then
15437 as_ln_s='ln -s'
15438 # ... but there are two gotchas:
15439 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15440 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15441 # In both cases, we have to default to `cp -p'.
15442 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15443 as_ln_s='cp -p'
15444 elif ln conf$$.file conf$$ 2>/dev/null; then
15445 as_ln_s=ln
15446 else
15447 as_ln_s='cp -p'
15448 fi
15449 else
15450 as_ln_s='cp -p'
15451 fi
15452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15453 rmdir conf$$.dir 2>/dev/null
15454
15455 if mkdir -p . 2>/dev/null; then
15456 as_mkdir_p=:
15457 else
15458 test -d ./-p && rmdir ./-p
15459 as_mkdir_p=false
15460 fi
15461
15462 if test -x / >/dev/null 2>&1; then
15463 as_test_x='test -x'
15464 else
15465 if ls -dL / >/dev/null 2>&1; then
15466 as_ls_L_option=L
15467 else
15468 as_ls_L_option=
15469 fi
15470 as_test_x='
15471 eval sh -c '\''
15472 if test -d "$1"; then
15473 test -d "$1/.";
15474 else
15475 case $1 in
15476 -*)set "./$1";;
15477 esac;
15478 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15479 ???[sx]*):;;*)false;;esac;fi
15480 '\'' sh
15481 '
15482 fi
15483 as_executable_p=$as_test_x
15484
15485 # Sed expression to map a string onto a valid CPP name.
15486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15487
15488 # Sed expression to map a string onto a valid variable name.
15489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15490
15491
15492 exec 6>&1
15493
15494 # Save the log message, to keep $[0] and so on meaningful, and to
15495 # report actual input values of CONFIG_FILES etc. instead of their
15496 # values after options handling.
15497 ac_log="
15498 This file was extended by eb $as_me 4.4.3, which was
15499 generated by GNU Autoconf 2.63. Invocation command line was
15500
15501 CONFIG_FILES = $CONFIG_FILES
15502 CONFIG_HEADERS = $CONFIG_HEADERS
15503 CONFIG_LINKS = $CONFIG_LINKS
15504 CONFIG_COMMANDS = $CONFIG_COMMANDS
15505 $ $0 $@
15506
15507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15508 "
15509
15510 _ACEOF
15511
15512 case $ac_config_files in *"
15513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15514 esac
15515
15516 case $ac_config_headers in *"
15517 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15518 esac
15519
15520
15521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522 # Files that config.status was made for.
15523 config_files="$ac_config_files"
15524 config_headers="$ac_config_headers"
15525 config_commands="$ac_config_commands"
15526
15527 _ACEOF
15528
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 ac_cs_usage="\
15531 \`$as_me' instantiates files from templates according to the
15532 current configuration.
15533
15534 Usage: $0 [OPTION]... [FILE]...
15535
15536 -h, --help print this help, then exit
15537 -V, --version print version number and configuration settings, then exit
15538 -q, --quiet, --silent
15539 do not print progress messages
15540 -d, --debug don't remove temporary files
15541 --recheck update $as_me by reconfiguring in the same conditions
15542 --file=FILE[:TEMPLATE]
15543 instantiate the configuration file FILE
15544 --header=FILE[:TEMPLATE]
15545 instantiate the configuration header FILE
15546
15547 Configuration files:
15548 $config_files
15549
15550 Configuration headers:
15551 $config_headers
15552
15553 Configuration commands:
15554 $config_commands
15555
15556 Report bugs to <[email protected]>."
15557
15558 _ACEOF
15559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15560 ac_cs_version="\\
15561 eb config.status 4.4.3
15562 configured by $0, generated by GNU Autoconf 2.63,
15563 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15564
15565 Copyright (C) 2008 Free Software Foundation, Inc.
15566 This config.status script is free software; the Free Software Foundation
15567 gives unlimited permission to copy, distribute and modify it."
15568
15569 ac_pwd='$ac_pwd'
15570 srcdir='$srcdir'
15571 INSTALL='$INSTALL'
15572 MKDIR_P='$MKDIR_P'
15573 AWK='$AWK'
15574 test -n "\$AWK" || AWK=awk
15575 _ACEOF
15576
15577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15578 # The default lists apply if the user does not specify any file.
15579 ac_need_defaults=:
15580 while test $# != 0
15581 do
15582 case $1 in
15583 --*=*)
15584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15585 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15586 ac_shift=:
15587 ;;
15588 *)
15589 ac_option=$1
15590 ac_optarg=$2
15591 ac_shift=shift
15592 ;;
15593 esac
15594
15595 case $ac_option in
15596 # Handling of the options.
15597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15598 ac_cs_recheck=: ;;
15599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15600 $as_echo "$ac_cs_version"; exit ;;
15601 --debug | --debu | --deb | --de | --d | -d )
15602 debug=: ;;
15603 --file | --fil | --fi | --f )
15604 $ac_shift
15605 case $ac_optarg in
15606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15607 esac
15608 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15609 ac_need_defaults=false;;
15610 --header | --heade | --head | --hea )
15611 $ac_shift
15612 case $ac_optarg in
15613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15614 esac
15615 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15616 ac_need_defaults=false;;
15617 --he | --h)
15618 # Conflict between --help and --header
15619 { $as_echo "$as_me: error: ambiguous option: $1
15620 Try \`$0 --help' for more information." >&2
15621 { (exit 1); exit 1; }; };;
15622 --help | --hel | -h )
15623 $as_echo "$ac_cs_usage"; exit ;;
15624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15626 ac_cs_silent=: ;;
15627
15628 # This is an error.
15629 -*) { $as_echo "$as_me: error: unrecognized option: $1
15630 Try \`$0 --help' for more information." >&2
15631 { (exit 1); exit 1; }; } ;;
15632
15633 *) ac_config_targets="$ac_config_targets $1"
15634 ac_need_defaults=false ;;
15635
15636 esac
15637 shift
15638 done
15639
15640 ac_configure_extra_args=
15641
15642 if $ac_cs_silent; then
15643 exec 6>/dev/null
15644 ac_configure_extra_args="$ac_configure_extra_args --silent"
15645 fi
15646
15647 _ACEOF
15648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15649 if \$ac_cs_recheck; then
15650 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15651 shift
15652 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15653 CONFIG_SHELL='$SHELL'
15654 export CONFIG_SHELL
15655 exec "\$@"
15656 fi
15657
15658 _ACEOF
15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15660 exec 5>>config.log
15661 {
15662 echo
15663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15664 ## Running $as_me. ##
15665 _ASBOX
15666 $as_echo "$ac_log"
15667 } >&5
15668
15669 _ACEOF
15670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671 #
15672 # INIT-COMMANDS
15673 #
15674 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15675
15676
15677 # The HP-UX ksh and POSIX shell print the target directory to stdout
15678 # if CDPATH is set.
15679 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15680
15681 sed_quote_subst='$sed_quote_subst'
15682 double_quote_subst='$double_quote_subst'
15683 delay_variable_subst='$delay_variable_subst'
15684 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15685 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15686 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15687 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15688 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15689 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15690 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15691 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15692 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15693 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15694 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15695 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15696 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15697 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15698 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15699 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15700 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15701 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15702 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15703 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15704 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15705 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15706 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15707 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15708 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15709 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15710 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15711 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15712 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15713 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15714 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15715 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15716 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15717 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15718 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15719 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15720 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15721 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15722 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15723 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15724 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15725 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15726 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15727 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15728 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"`'
15729 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"`'
15730 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15731 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15732 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15733 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15734 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15735 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15736 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15737 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15738 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15739 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15740 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15741 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15742 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15743 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15744 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15745 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15746 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15747 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15748 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15749 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15750 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15751 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15752 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15753 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15754 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15755 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15756 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15757 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15758 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15759 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15760 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15761 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15762 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15763 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15764 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15765 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15766 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15767 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15768 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15769 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15770 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15771 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15772 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15773 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15774 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15775 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15776 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15777 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15778 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15779 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15780 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15781 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15782 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15783 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15784 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15785 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15786 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15787 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15788 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15789 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15790 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15791 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15792 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15793 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15794 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15795 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15796 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15797 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15798 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15799 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15800 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15801 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15802
15803 LTCC='$LTCC'
15804 LTCFLAGS='$LTCFLAGS'
15805 compiler='$compiler_DEFAULT'
15806
15807 # Quote evaled strings.
15808 for var in SED \
15809 GREP \
15810 EGREP \
15811 FGREP \
15812 LD \
15813 NM \
15814 LN_S \
15815 lt_SP2NL \
15816 lt_NL2SP \
15817 reload_flag \
15818 OBJDUMP \
15819 deplibs_check_method \
15820 file_magic_cmd \
15821 AR \
15822 AR_FLAGS \
15823 STRIP \
15824 RANLIB \
15825 CC \
15826 CFLAGS \
15827 compiler \
15828 lt_cv_sys_global_symbol_pipe \
15829 lt_cv_sys_global_symbol_to_cdecl \
15830 lt_cv_sys_global_symbol_to_c_name_address \
15831 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15832 SHELL \
15833 ECHO \
15834 lt_prog_compiler_no_builtin_flag \
15835 lt_prog_compiler_wl \
15836 lt_prog_compiler_pic \
15837 lt_prog_compiler_static \
15838 lt_cv_prog_compiler_c_o \
15839 need_locks \
15840 DSYMUTIL \
15841 NMEDIT \
15842 LIPO \
15843 OTOOL \
15844 OTOOL64 \
15845 shrext_cmds \
15846 export_dynamic_flag_spec \
15847 whole_archive_flag_spec \
15848 compiler_needs_object \
15849 with_gnu_ld \
15850 allow_undefined_flag \
15851 no_undefined_flag \
15852 hardcode_libdir_flag_spec \
15853 hardcode_libdir_flag_spec_ld \
15854 hardcode_libdir_separator \
15855 fix_srcfile_path \
15856 exclude_expsyms \
15857 include_expsyms \
15858 file_list_spec \
15859 variables_saved_for_relink \
15860 libname_spec \
15861 library_names_spec \
15862 soname_spec \
15863 finish_eval \
15864 old_striplib \
15865 striplib; do
15866 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15867 *[\\\\\\\`\\"\\\$]*)
15868 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15869 ;;
15870 *)
15871 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15872 ;;
15873 esac
15874 done
15875
15876 # Double-quote double-evaled strings.
15877 for var in reload_cmds \
15878 old_postinstall_cmds \
15879 old_postuninstall_cmds \
15880 old_archive_cmds \
15881 extract_expsyms_cmds \
15882 old_archive_from_new_cmds \
15883 old_archive_from_expsyms_cmds \
15884 archive_cmds \
15885 archive_expsym_cmds \
15886 module_cmds \
15887 module_expsym_cmds \
15888 export_symbols_cmds \
15889 prelink_cmds \
15890 postinstall_cmds \
15891 postuninstall_cmds \
15892 finish_cmds \
15893 sys_lib_search_path_spec \
15894 sys_lib_dlsearch_path_spec; do
15895 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15896 *[\\\\\\\`\\"\\\$]*)
15897 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15898 ;;
15899 *)
15900 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15901 ;;
15902 esac
15903 done
15904
15905 # Fix-up fallback echo if it was mangled by the above quoting rules.
15906 case \$lt_ECHO in
15907 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15908 ;;
15909 esac
15910
15911 ac_aux_dir='$ac_aux_dir'
15912 xsi_shell='$xsi_shell'
15913 lt_shell_append='$lt_shell_append'
15914
15915 # See if we are running on zsh, and set the options which allow our
15916 # commands through without removal of \ escapes INIT.
15917 if test -n "\${ZSH_VERSION+set}" ; then
15918 setopt NO_GLOB_SUBST
15919 fi
15920
15921
15922 PACKAGE='$PACKAGE'
15923 VERSION='$VERSION'
15924 TIMESTAMP='$TIMESTAMP'
15925 RM='$RM'
15926 ofile='$ofile'
15927
15928
15929
15930
15931 _ACEOF
15932
15933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15934
15935 # Handling of arguments.
15936 for ac_config_target in $ac_config_targets
15937 do
15938 case $ac_config_target in
15939 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15940 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15941 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15942 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15943 "eb/Makefile") CONFIG_FILES="$CONFIG_FILES eb/Makefile" ;;
15944 "libebutils/Makefile") CONFIG_FILES="$CONFIG_FILES libebutils/Makefile" ;;
15945 "ebappendix/Makefile") CONFIG_FILES="$CONFIG_FILES ebappendix/Makefile" ;;
15946 "ebfont/Makefile") CONFIG_FILES="$CONFIG_FILES ebfont/Makefile" ;;
15947 "ebinfo/Makefile") CONFIG_FILES="$CONFIG_FILES ebinfo/Makefile" ;;
15948 "ebrefile/Makefile") CONFIG_FILES="$CONFIG_FILES ebrefile/Makefile" ;;
15949 "ebstopcode/Makefile") CONFIG_FILES="$CONFIG_FILES ebstopcode/Makefile" ;;
15950 "ebzip/Makefile") CONFIG_FILES="$CONFIG_FILES ebzip/Makefile" ;;
15951 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15952 "po-eb/Makefile") CONFIG_FILES="$CONFIG_FILES po-eb/Makefile" ;;
15953 "po-ebutils/Makefile") CONFIG_FILES="$CONFIG_FILES po-ebutils/Makefile" ;;
15954 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15955 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
15956
15957 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15958 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15959 { (exit 1); exit 1; }; };;
15960 esac
15961 done
15962
15963
15964 # If the user did not use the arguments to specify the items to instantiate,
15965 # then the envvar interface is used. Set only those that are not.
15966 # We use the long form for the default assignment because of an extremely
15967 # bizarre bug on SunOS 4.1.3.
15968 if $ac_need_defaults; then
15969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15972 fi
15973
15974 # Have a temporary directory for convenience. Make it in the build tree
15975 # simply because there is no reason against having it here, and in addition,
15976 # creating and moving files from /tmp can sometimes cause problems.
15977 # Hook for its removal unless debugging.
15978 # Note that there is a small window in which the directory will not be cleaned:
15979 # after its creation but before its name has been assigned to `$tmp'.
15980 $debug ||
15981 {
15982 tmp=
15983 trap 'exit_status=$?
15984 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15985 ' 0
15986 trap '{ (exit 1); exit 1; }' 1 2 13 15
15987 }
15988 # Create a (secure) tmp directory for tmp files.
15989
15990 {
15991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15992 test -n "$tmp" && test -d "$tmp"
15993 } ||
15994 {
15995 tmp=./conf$$-$RANDOM
15996 (umask 077 && mkdir "$tmp")
15997 } ||
15998 {
15999 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16000 { (exit 1); exit 1; }
16001 }
16002
16003 # Set up the scripts for CONFIG_FILES section.
16004 # No need to generate them if there are no CONFIG_FILES.
16005 # This happens for instance with `./config.status config.h'.
16006 if test -n "$CONFIG_FILES"; then
16007
16008
16009 ac_cr=' '
16010 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16012 ac_cs_awk_cr='\\r'
16013 else
16014 ac_cs_awk_cr=$ac_cr
16015 fi
16016
16017 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16018 _ACEOF
16019
16020
16021 {
16022 echo "cat >conf$$subs.awk <<_ACEOF" &&
16023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16024 echo "_ACEOF"
16025 } >conf$$subs.sh ||
16026 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16027 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16028 { (exit 1); exit 1; }; }
16029 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16030 ac_delim='%!_!# '
16031 for ac_last_try in false false false false false :; do
16032 . ./conf$$subs.sh ||
16033 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16034 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16035 { (exit 1); exit 1; }; }
16036
16037 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16038 if test $ac_delim_n = $ac_delim_num; then
16039 break
16040 elif $ac_last_try; then
16041 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16042 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16043 { (exit 1); exit 1; }; }
16044 else
16045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16046 fi
16047 done
16048 rm -f conf$$subs.sh
16049
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16052 _ACEOF
16053 sed -n '
16054 h
16055 s/^/S["/; s/!.*/"]=/
16056 p
16057 g
16058 s/^[^!]*!//
16059 :repl
16060 t repl
16061 s/'"$ac_delim"'$//
16062 t delim
16063 :nl
16064 h
16065 s/\(.\{148\}\).*/\1/
16066 t more1
16067 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16068 p
16069 n
16070 b repl
16071 :more1
16072 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16073 p
16074 g
16075 s/.\{148\}//
16076 t nl
16077 :delim
16078 h
16079 s/\(.\{148\}\).*/\1/
16080 t more2
16081 s/["\\]/\\&/g; s/^/"/; s/$/"/
16082 p
16083 b
16084 :more2
16085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16086 p
16087 g
16088 s/.\{148\}//
16089 t delim
16090 ' <conf$$subs.awk | sed '
16091 /^[^""]/{
16092 N
16093 s/\n//
16094 }
16095 ' >>$CONFIG_STATUS || ac_write_fail=1
16096 rm -f conf$$subs.awk
16097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16098 _ACAWK
16099 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16100 for (key in S) S_is_set[key] = 1
16101 FS = ""
16102
16103 }
16104 {
16105 line = $ 0
16106 nfields = split(line, field, "@")
16107 substed = 0
16108 len = length(field[1])
16109 for (i = 2; i < nfields; i++) {
16110 key = field[i]
16111 keylen = length(key)
16112 if (S_is_set[key]) {
16113 value = S[key]
16114 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16115 len += length(value) + length(field[++i])
16116 substed = 1
16117 } else
16118 len += 1 + keylen
16119 }
16120
16121 print line
16122 }
16123
16124 _ACAWK
16125 _ACEOF
16126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16127 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16128 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16129 else
16130 cat
16131 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16132 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16133 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16134 { (exit 1); exit 1; }; }
16135 _ACEOF
16136
16137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16139 # trailing colons and then remove the whole line if VPATH becomes empty
16140 # (actually we leave an empty line to preserve line numbers).
16141 if test "x$srcdir" = x.; then
16142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16143 s/:*\$(srcdir):*/:/
16144 s/:*\${srcdir}:*/:/
16145 s/:*@srcdir@:*/:/
16146 s/^\([^=]*=[ ]*\):*/\1/
16147 s/:*$//
16148 s/^[^=]*=[ ]*$//
16149 }'
16150 fi
16151
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 fi # test -n "$CONFIG_FILES"
16154
16155 # Set up the scripts for CONFIG_HEADERS section.
16156 # No need to generate them if there are no CONFIG_HEADERS.
16157 # This happens for instance with `./config.status Makefile'.
16158 if test -n "$CONFIG_HEADERS"; then
16159 cat >"$tmp/defines.awk" <<\_ACAWK ||
16160 BEGIN {
16161 _ACEOF
16162
16163 # Transform confdefs.h into an awk script `defines.awk', embedded as
16164 # here-document in config.status, that substitutes the proper values into
16165 # config.h.in to produce config.h.
16166
16167 # Create a delimiter string that does not exist in confdefs.h, to ease
16168 # handling of long lines.
16169 ac_delim='%!_!# '
16170 for ac_last_try in false false :; do
16171 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16172 if test -z "$ac_t"; then
16173 break
16174 elif $ac_last_try; then
16175 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16176 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16177 { (exit 1); exit 1; }; }
16178 else
16179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16180 fi
16181 done
16182
16183 # For the awk script, D is an array of macro values keyed by name,
16184 # likewise P contains macro parameters if any. Preserve backslash
16185 # newline sequences.
16186
16187 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16188 sed -n '
16189 s/.\{148\}/&'"$ac_delim"'/g
16190 t rset
16191 :rset
16192 s/^[ ]*#[ ]*define[ ][ ]*/ /
16193 t def
16194 d
16195 :def
16196 s/\\$//
16197 t bsnl
16198 s/["\\]/\\&/g
16199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16200 D["\1"]=" \3"/p
16201 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16202 d
16203 :bsnl
16204 s/["\\]/\\&/g
16205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16206 D["\1"]=" \3\\\\\\n"\\/p
16207 t cont
16208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16209 t cont
16210 d
16211 :cont
16212 n
16213 s/.\{148\}/&'"$ac_delim"'/g
16214 t clear
16215 :clear
16216 s/\\$//
16217 t bsnlc
16218 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16219 d
16220 :bsnlc
16221 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16222 b cont
16223 ' <confdefs.h | sed '
16224 s/'"$ac_delim"'/"\\\
16225 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16226
16227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16228 for (key in D) D_is_set[key] = 1
16229 FS = ""
16230 }
16231 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16232 line = \$ 0
16233 split(line, arg, " ")
16234 if (arg[1] == "#") {
16235 defundef = arg[2]
16236 mac1 = arg[3]
16237 } else {
16238 defundef = substr(arg[1], 2)
16239 mac1 = arg[2]
16240 }
16241 split(mac1, mac2, "(") #)
16242 macro = mac2[1]
16243 prefix = substr(line, 1, index(line, defundef) - 1)
16244 if (D_is_set[macro]) {
16245 # Preserve the white space surrounding the "#".
16246 print prefix "define", macro P[macro] D[macro]
16247 next
16248 } else {
16249 # Replace #undef with comments. This is necessary, for example,
16250 # in the case of _POSIX_SOURCE, which is predefined and required
16251 # on some systems where configure will not decide to define it.
16252 if (defundef == "undef") {
16253 print "/*", prefix defundef, macro, "*/"
16254 next
16255 }
16256 }
16257 }
16258 { print }
16259 _ACAWK
16260 _ACEOF
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16263 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16264 { (exit 1); exit 1; }; }
16265 fi # test -n "$CONFIG_HEADERS"
16266
16267
16268 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16269 shift
16270 for ac_tag
16271 do
16272 case $ac_tag in
16273 :[FHLC]) ac_mode=$ac_tag; continue;;
16274 esac
16275 case $ac_mode$ac_tag in
16276 :[FHL]*:*);;
16277 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16278 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16279 { (exit 1); exit 1; }; };;
16280 :[FH]-) ac_tag=-:-;;
16281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16282 esac
16283 ac_save_IFS=$IFS
16284 IFS=:
16285 set x $ac_tag
16286 IFS=$ac_save_IFS
16287 shift
16288 ac_file=$1
16289 shift
16290
16291 case $ac_mode in
16292 :L) ac_source=$1;;
16293 :[FH])
16294 ac_file_inputs=
16295 for ac_f
16296 do
16297 case $ac_f in
16298 -) ac_f="$tmp/stdin";;
16299 *) # Look for the file first in the build tree, then in the source tree
16300 # (if the path is not absolute). The absolute path cannot be DOS-style,
16301 # because $ac_f cannot contain `:'.
16302 test -f "$ac_f" ||
16303 case $ac_f in
16304 [\\/$]*) false;;
16305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16306 esac ||
16307 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16308 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16309 { (exit 1); exit 1; }; };;
16310 esac
16311 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16312 ac_file_inputs="$ac_file_inputs '$ac_f'"
16313 done
16314
16315 # Let's still pretend it is `configure' which instantiates (i.e., don't
16316 # use $as_me), people would be surprised to read:
16317 # /* config.h. Generated by config.status. */
16318 configure_input='Generated from '`
16319 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16320 `' by configure.'
16321 if test x"$ac_file" != x-; then
16322 configure_input="$ac_file. $configure_input"
16323 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16324 $as_echo "$as_me: creating $ac_file" >&6;}
16325 fi
16326 # Neutralize special characters interpreted by sed in replacement strings.
16327 case $configure_input in #(
16328 *\&* | *\|* | *\\* )
16329 ac_sed_conf_input=`$as_echo "$configure_input" |
16330 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16331 *) ac_sed_conf_input=$configure_input;;
16332 esac
16333
16334 case $ac_tag in
16335 *:-:* | *:-) cat >"$tmp/stdin" \
16336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16338 { (exit 1); exit 1; }; } ;;
16339 esac
16340 ;;
16341 esac
16342
16343 ac_dir=`$as_dirname -- "$ac_file" ||
16344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16345 X"$ac_file" : 'X\(//\)[^/]' \| \
16346 X"$ac_file" : 'X\(//\)$' \| \
16347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16348 $as_echo X"$ac_file" |
16349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16350 s//\1/
16351 q
16352 }
16353 /^X\(\/\/\)[^/].*/{
16354 s//\1/
16355 q
16356 }
16357 /^X\(\/\/\)$/{
16358 s//\1/
16359 q
16360 }
16361 /^X\(\/\).*/{
16362 s//\1/
16363 q
16364 }
16365 s/.*/./; q'`
16366 { as_dir="$ac_dir"
16367 case $as_dir in #(
16368 -*) as_dir=./$as_dir;;
16369 esac
16370 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16371 as_dirs=
16372 while :; do
16373 case $as_dir in #(
16374 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16375 *) as_qdir=$as_dir;;
16376 esac
16377 as_dirs="'$as_qdir' $as_dirs"
16378 as_dir=`$as_dirname -- "$as_dir" ||
16379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16380 X"$as_dir" : 'X\(//\)[^/]' \| \
16381 X"$as_dir" : 'X\(//\)$' \| \
16382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16383 $as_echo X"$as_dir" |
16384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16385 s//\1/
16386 q
16387 }
16388 /^X\(\/\/\)[^/].*/{
16389 s//\1/
16390 q
16391 }
16392 /^X\(\/\/\)$/{
16393 s//\1/
16394 q
16395 }
16396 /^X\(\/\).*/{
16397 s//\1/
16398 q
16399 }
16400 s/.*/./; q'`
16401 test -d "$as_dir" && break
16402 done
16403 test -z "$as_dirs" || eval "mkdir $as_dirs"
16404 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16405 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16406 { (exit 1); exit 1; }; }; }
16407 ac_builddir=.
16408
16409 case "$ac_dir" in
16410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16411 *)
16412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16413 # A ".." for each directory in $ac_dir_suffix.
16414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16415 case $ac_top_builddir_sub in
16416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16418 esac ;;
16419 esac
16420 ac_abs_top_builddir=$ac_pwd
16421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16422 # for backward compatibility:
16423 ac_top_builddir=$ac_top_build_prefix
16424
16425 case $srcdir in
16426 .) # We are building in place.
16427 ac_srcdir=.
16428 ac_top_srcdir=$ac_top_builddir_sub
16429 ac_abs_top_srcdir=$ac_pwd ;;
16430 [\\/]* | ?:[\\/]* ) # Absolute name.
16431 ac_srcdir=$srcdir$ac_dir_suffix;
16432 ac_top_srcdir=$srcdir
16433 ac_abs_top_srcdir=$srcdir ;;
16434 *) # Relative name.
16435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16436 ac_top_srcdir=$ac_top_build_prefix$srcdir
16437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16438 esac
16439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16440
16441
16442 case $ac_mode in
16443 :F)
16444 #
16445 # CONFIG_FILE
16446 #
16447
16448 case $INSTALL in
16449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16451 esac
16452 ac_MKDIR_P=$MKDIR_P
16453 case $MKDIR_P in
16454 [\\/$]* | ?:[\\/]* ) ;;
16455 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16456 esac
16457 _ACEOF
16458
16459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460 # If the template does not know about datarootdir, expand it.
16461 # FIXME: This hack should be removed a few years after 2.60.
16462 ac_datarootdir_hack=; ac_datarootdir_seen=
16463
16464 ac_sed_dataroot='
16465 /datarootdir/ {
16466 p
16467 q
16468 }
16469 /@datadir@/p
16470 /@docdir@/p
16471 /@infodir@/p
16472 /@localedir@/p
16473 /@mandir@/p
16474 '
16475 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16476 *datarootdir*) ac_datarootdir_seen=yes;;
16477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16478 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16479 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16480 _ACEOF
16481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16482 ac_datarootdir_hack='
16483 s&@datadir@&$datadir&g
16484 s&@docdir@&$docdir&g
16485 s&@infodir@&$infodir&g
16486 s&@localedir@&$localedir&g
16487 s&@mandir@&$mandir&g
16488 s&\\\${datarootdir}&$datarootdir&g' ;;
16489 esac
16490 _ACEOF
16491
16492 # Neutralize VPATH when `$srcdir' = `.'.
16493 # Shell code in configure.ac might set extrasub.
16494 # FIXME: do we really want to maintain this feature?
16495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16496 ac_sed_extra="$ac_vpsub
16497 $extrasub
16498 _ACEOF
16499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16500 :t
16501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16502 s|@configure_input@|$ac_sed_conf_input|;t t
16503 s&@top_builddir@&$ac_top_builddir_sub&;t t
16504 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16505 s&@srcdir@&$ac_srcdir&;t t
16506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16507 s&@top_srcdir@&$ac_top_srcdir&;t t
16508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16509 s&@builddir@&$ac_builddir&;t t
16510 s&@abs_builddir@&$ac_abs_builddir&;t t
16511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16512 s&@INSTALL@&$ac_INSTALL&;t t
16513 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16514 $ac_datarootdir_hack
16515 "
16516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16517 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16518 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16519 { (exit 1); exit 1; }; }
16520
16521 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16522 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16524 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16525 which seems to be undefined. Please make sure it is defined." >&5
16526 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16527 which seems to be undefined. Please make sure it is defined." >&2;}
16528
16529 rm -f "$tmp/stdin"
16530 case $ac_file in
16531 -) cat "$tmp/out" && rm -f "$tmp/out";;
16532 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16533 esac \
16534 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16535 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16536 { (exit 1); exit 1; }; }
16537 ;;
16538 :H)
16539 #
16540 # CONFIG_HEADER
16541 #
16542 if test x"$ac_file" != x-; then
16543 {
16544 $as_echo "/* $configure_input */" \
16545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16546 } >"$tmp/config.h" \
16547 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16548 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16549 { (exit 1); exit 1; }; }
16550 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16551 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16552 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16553 else
16554 rm -f "$ac_file"
16555 mv "$tmp/config.h" "$ac_file" \
16556 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16557 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16558 { (exit 1); exit 1; }; }
16559 fi
16560 else
16561 $as_echo "/* $configure_input */" \
16562 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16563 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16564 $as_echo "$as_me: error: could not create -" >&2;}
16565 { (exit 1); exit 1; }; }
16566 fi
16567 # Compute "$ac_file"'s index in $config_headers.
16568 _am_arg="$ac_file"
16569 _am_stamp_count=1
16570 for _am_header in $config_headers :; do
16571 case $_am_header in
16572 $_am_arg | $_am_arg:* )
16573 break ;;
16574 * )
16575 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16576 esac
16577 done
16578 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16579 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16580 X"$_am_arg" : 'X\(//\)[^/]' \| \
16581 X"$_am_arg" : 'X\(//\)$' \| \
16582 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16583 $as_echo X"$_am_arg" |
16584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16585 s//\1/
16586 q
16587 }
16588 /^X\(\/\/\)[^/].*/{
16589 s//\1/
16590 q
16591 }
16592 /^X\(\/\/\)$/{
16593 s//\1/
16594 q
16595 }
16596 /^X\(\/\).*/{
16597 s//\1/
16598 q
16599 }
16600 s/.*/./; q'`/stamp-h$_am_stamp_count
16601 ;;
16602
16603 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16604 $as_echo "$as_me: executing $ac_file commands" >&6;}
16605 ;;
16606 esac
16607
16608
16609 case $ac_file$ac_mode in
16610 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
16611 # are listed without --file. Let's play safe and only enable the eval
16612 # if we detect the quoting.
16613 case $CONFIG_FILES in
16614 *\'*) eval set x "$CONFIG_FILES" ;;
16615 *) set x $CONFIG_FILES ;;
16616 esac
16617 shift
16618 for mf
16619 do
16620 # Strip MF so we end up with the name of the file.
16621 mf=`echo "$mf" | sed -e 's/:.*$//'`
16622 # Check whether this is an Automake generated Makefile or not.
16623 # We used to match only the files named `Makefile.in', but
16624 # some people rename them; so instead we look at the file content.
16625 # Grep'ing the first line is not enough: some people post-process
16626 # each Makefile.in and add a new line on top of each file to say so.
16627 # Grep'ing the whole file is not good either: AIX grep has a line
16628 # limit of 2048, but all sed's we know have understand at least 4000.
16629 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16630 dirpart=`$as_dirname -- "$mf" ||
16631 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16632 X"$mf" : 'X\(//\)[^/]' \| \
16633 X"$mf" : 'X\(//\)$' \| \
16634 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16635 $as_echo X"$mf" |
16636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16637 s//\1/
16638 q
16639 }
16640 /^X\(\/\/\)[^/].*/{
16641 s//\1/
16642 q
16643 }
16644 /^X\(\/\/\)$/{
16645 s//\1/
16646 q
16647 }
16648 /^X\(\/\).*/{
16649 s//\1/
16650 q
16651 }
16652 s/.*/./; q'`
16653 else
16654 continue
16655 fi
16656 # Extract the definition of DEPDIR, am__include, and am__quote
16657 # from the Makefile without running `make'.
16658 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16659 test -z "$DEPDIR" && continue
16660 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16661 test -z "am__include" && continue
16662 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16663 # When using ansi2knr, U may be empty or an underscore; expand it
16664 U=`sed -n 's/^U = //p' < "$mf"`
16665 # Find all dependency output files, they are included files with
16666 # $(DEPDIR) in their names. We invoke sed twice because it is the
16667 # simplest approach to changing $(DEPDIR) to its actual value in the
16668 # expansion.
16669 for file in `sed -n "
16670 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16671 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16672 # Make sure the directory exists.
16673 test -f "$dirpart/$file" && continue
16674 fdir=`$as_dirname -- "$file" ||
16675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16676 X"$file" : 'X\(//\)[^/]' \| \
16677 X"$file" : 'X\(//\)$' \| \
16678 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16679 $as_echo X"$file" |
16680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16681 s//\1/
16682 q
16683 }
16684 /^X\(\/\/\)[^/].*/{
16685 s//\1/
16686 q
16687 }
16688 /^X\(\/\/\)$/{
16689 s//\1/
16690 q
16691 }
16692 /^X\(\/\).*/{
16693 s//\1/
16694 q
16695 }
16696 s/.*/./; q'`
16697 { as_dir=$dirpart/$fdir
16698 case $as_dir in #(
16699 -*) as_dir=./$as_dir;;
16700 esac
16701 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16702 as_dirs=
16703 while :; do
16704 case $as_dir in #(
16705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16706 *) as_qdir=$as_dir;;
16707 esac
16708 as_dirs="'$as_qdir' $as_dirs"
16709 as_dir=`$as_dirname -- "$as_dir" ||
16710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16711 X"$as_dir" : 'X\(//\)[^/]' \| \
16712 X"$as_dir" : 'X\(//\)$' \| \
16713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16714 $as_echo X"$as_dir" |
16715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16716 s//\1/
16717 q
16718 }
16719 /^X\(\/\/\)[^/].*/{
16720 s//\1/
16721 q
16722 }
16723 /^X\(\/\/\)$/{
16724 s//\1/
16725 q
16726 }
16727 /^X\(\/\).*/{
16728 s//\1/
16729 q
16730 }
16731 s/.*/./; q'`
16732 test -d "$as_dir" && break
16733 done
16734 test -z "$as_dirs" || eval "mkdir $as_dirs"
16735 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16736 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16737 { (exit 1); exit 1; }; }; }
16738 # echo "creating $dirpart/$file"
16739 echo '# dummy' > "$dirpart/$file"
16740 done
16741 done
16742 ;;
16743 "libtool":C)
16744
16745 # See if we are running on zsh, and set the options which allow our
16746 # commands through without removal of \ escapes.
16747 if test -n "${ZSH_VERSION+set}" ; then
16748 setopt NO_GLOB_SUBST
16749 fi
16750
16751 cfgfile="${ofile}T"
16752 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16753 $RM "$cfgfile"
16754
16755 cat <<_LT_EOF >> "$cfgfile"
16756 #! $SHELL
16757
16758 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16759 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16761 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16762 #
16763 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16764 # 2006, 2007, 2008 Free Software Foundation, Inc.
16765 # Written by Gordon Matzigkeit, 1996
16766 #
16767 # This file is part of GNU Libtool.
16768 #
16769 # GNU Libtool is free software; you can redistribute it and/or
16770 # modify it under the terms of the GNU General Public License as
16771 # published by the Free Software Foundation; either version 2 of
16772 # the License, or (at your option) any later version.
16773 #
16774 # As a special exception to the GNU General Public License,
16775 # if you distribute this file as part of a program or library that
16776 # is built using GNU Libtool, you may include this file under the
16777 # same distribution terms that you use for the rest of that program.
16778 #
16779 # GNU Libtool is distributed in the hope that it will be useful,
16780 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16782 # GNU General Public License for more details.
16783 #
16784 # You should have received a copy of the GNU General Public License
16785 # along with GNU Libtool; see the file COPYING. If not, a copy
16786 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16787 # obtained by writing to the Free Software Foundation, Inc.,
16788 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16789
16790
16791 # The names of the tagged configurations supported by this script.
16792 available_tags=""
16793
16794 # ### BEGIN LIBTOOL CONFIG
16795
16796 # Which release of libtool.m4 was used?
16797 macro_version=$macro_version
16798 macro_revision=$macro_revision
16799
16800 # Whether or not to build shared libraries.
16801 build_libtool_libs=$enable_shared
16802
16803 # Whether or not to build static libraries.
16804 build_old_libs=$enable_static
16805
16806 # What type of objects to build.
16807 pic_mode=$pic_mode
16808
16809 # Whether or not to optimize for fast installation.
16810 fast_install=$enable_fast_install
16811
16812 # The host system.
16813 host_alias=$host_alias
16814 host=$host
16815 host_os=$host_os
16816
16817 # The build system.
16818 build_alias=$build_alias
16819 build=$build
16820 build_os=$build_os
16821
16822 # A sed program that does not truncate output.
16823 SED=$lt_SED
16824
16825 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16826 Xsed="\$SED -e 1s/^X//"
16827
16828 # A grep program that handles long lines.
16829 GREP=$lt_GREP
16830
16831 # An ERE matcher.
16832 EGREP=$lt_EGREP
16833
16834 # A literal string matcher.
16835 FGREP=$lt_FGREP
16836
16837 # A BSD- or MS-compatible name lister.
16838 NM=$lt_NM
16839
16840 # Whether we need soft or hard links.
16841 LN_S=$lt_LN_S
16842
16843 # What is the maximum length of a command?
16844 max_cmd_len=$max_cmd_len
16845
16846 # Object file suffix (normally "o").
16847 objext=$ac_objext
16848
16849 # Executable file suffix (normally "").
16850 exeext=$exeext
16851
16852 # whether the shell understands "unset".
16853 lt_unset=$lt_unset
16854
16855 # turn spaces into newlines.
16856 SP2NL=$lt_lt_SP2NL
16857
16858 # turn newlines into spaces.
16859 NL2SP=$lt_lt_NL2SP
16860
16861 # How to create reloadable object files.
16862 reload_flag=$lt_reload_flag
16863 reload_cmds=$lt_reload_cmds
16864
16865 # An object symbol dumper.
16866 OBJDUMP=$lt_OBJDUMP
16867
16868 # Method to check whether dependent libraries are shared objects.
16869 deplibs_check_method=$lt_deplibs_check_method
16870
16871 # Command to use when deplibs_check_method == "file_magic".
16872 file_magic_cmd=$lt_file_magic_cmd
16873
16874 # The archiver.
16875 AR=$lt_AR
16876 AR_FLAGS=$lt_AR_FLAGS
16877
16878 # A symbol stripping program.
16879 STRIP=$lt_STRIP
16880
16881 # Commands used to install an old-style archive.
16882 RANLIB=$lt_RANLIB
16883 old_postinstall_cmds=$lt_old_postinstall_cmds
16884 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16885
16886 # A C compiler.
16887 LTCC=$lt_CC
16888
16889 # LTCC compiler flags.
16890 LTCFLAGS=$lt_CFLAGS
16891
16892 # Take the output of nm and produce a listing of raw symbols and C names.
16893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16894
16895 # Transform the output of nm in a proper C declaration.
16896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16897
16898 # Transform the output of nm in a C name address pair.
16899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16900
16901 # Transform the output of nm in a C name address pair when lib prefix is needed.
16902 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16903
16904 # The name of the directory that contains temporary libtool files.
16905 objdir=$objdir
16906
16907 # Shell to use when invoking shell scripts.
16908 SHELL=$lt_SHELL
16909
16910 # An echo program that does not interpret backslashes.
16911 ECHO=$lt_ECHO
16912
16913 # Used to examine libraries when file_magic_cmd begins with "file".
16914 MAGIC_CMD=$MAGIC_CMD
16915
16916 # Must we lock files when doing compilation?
16917 need_locks=$lt_need_locks
16918
16919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16920 DSYMUTIL=$lt_DSYMUTIL
16921
16922 # Tool to change global to local symbols on Mac OS X.
16923 NMEDIT=$lt_NMEDIT
16924
16925 # Tool to manipulate fat objects and archives on Mac OS X.
16926 LIPO=$lt_LIPO
16927
16928 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16929 OTOOL=$lt_OTOOL
16930
16931 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16932 OTOOL64=$lt_OTOOL64
16933
16934 # Old archive suffix (normally "a").
16935 libext=$libext
16936
16937 # Shared library suffix (normally ".so").
16938 shrext_cmds=$lt_shrext_cmds
16939
16940 # The commands to extract the exported symbol list from a shared archive.
16941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16942
16943 # Variables whose values should be saved in libtool wrapper scripts and
16944 # restored at link time.
16945 variables_saved_for_relink=$lt_variables_saved_for_relink
16946
16947 # Do we need the "lib" prefix for modules?
16948 need_lib_prefix=$need_lib_prefix
16949
16950 # Do we need a version for libraries?
16951 need_version=$need_version
16952
16953 # Library versioning type.
16954 version_type=$version_type
16955
16956 # Shared library runtime path variable.
16957 runpath_var=$runpath_var
16958
16959 # Shared library path variable.
16960 shlibpath_var=$shlibpath_var
16961
16962 # Is shlibpath searched before the hard-coded library search path?
16963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16964
16965 # Format of library name prefix.
16966 libname_spec=$lt_libname_spec
16967
16968 # List of archive names. First name is the real one, the rest are links.
16969 # The last name is the one that the linker finds with -lNAME
16970 library_names_spec=$lt_library_names_spec
16971
16972 # The coded name of the library, if different from the real name.
16973 soname_spec=$lt_soname_spec
16974
16975 # Command to use after installation of a shared archive.
16976 postinstall_cmds=$lt_postinstall_cmds
16977
16978 # Command to use after uninstallation of a shared archive.
16979 postuninstall_cmds=$lt_postuninstall_cmds
16980
16981 # Commands used to finish a libtool library installation in a directory.
16982 finish_cmds=$lt_finish_cmds
16983
16984 # As "finish_cmds", except a single script fragment to be evaled but
16985 # not shown.
16986 finish_eval=$lt_finish_eval
16987
16988 # Whether we should hardcode library paths into libraries.
16989 hardcode_into_libs=$hardcode_into_libs
16990
16991 # Compile-time system search path for libraries.
16992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16993
16994 # Run-time system search path for libraries.
16995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16996
16997 # Whether dlopen is supported.
16998 dlopen_support=$enable_dlopen
16999
17000 # Whether dlopen of programs is supported.
17001 dlopen_self=$enable_dlopen_self
17002
17003 # Whether dlopen of statically linked programs is supported.
17004 dlopen_self_static=$enable_dlopen_self_static
17005
17006 # Commands to strip libraries.
17007 old_striplib=$lt_old_striplib
17008 striplib=$lt_striplib
17009
17010
17011 # The linker used to build libraries.
17012 LD=$lt_LD
17013
17014 # Commands used to build an old-style archive.
17015 old_archive_cmds=$lt_old_archive_cmds
17016
17017 # A language specific compiler.
17018 CC=$lt_compiler
17019
17020 # Is the compiler the GNU compiler?
17021 with_gcc=$GCC
17022
17023 # Compiler flag to turn off builtin functions.
17024 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17025
17026 # How to pass a linker flag through the compiler.
17027 wl=$lt_lt_prog_compiler_wl
17028
17029 # Additional compiler flags for building library objects.
17030 pic_flag=$lt_lt_prog_compiler_pic
17031
17032 # Compiler flag to prevent dynamic linking.
17033 link_static_flag=$lt_lt_prog_compiler_static
17034
17035 # Does compiler simultaneously support -c and -o options?
17036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17037
17038 # Whether or not to add -lc for building shared libraries.
17039 build_libtool_need_lc=$archive_cmds_need_lc
17040
17041 # Whether or not to disallow shared libs when runtime libs are static.
17042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17043
17044 # Compiler flag to allow reflexive dlopens.
17045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17046
17047 # Compiler flag to generate shared objects directly from archives.
17048 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17049
17050 # Whether the compiler copes with passing no objects directly.
17051 compiler_needs_object=$lt_compiler_needs_object
17052
17053 # Create an old-style archive from a shared archive.
17054 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17055
17056 # Create a temporary old-style archive to link instead of a shared archive.
17057 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17058
17059 # Commands used to build a shared archive.
17060 archive_cmds=$lt_archive_cmds
17061 archive_expsym_cmds=$lt_archive_expsym_cmds
17062
17063 # Commands used to build a loadable module if different from building
17064 # a shared archive.
17065 module_cmds=$lt_module_cmds
17066 module_expsym_cmds=$lt_module_expsym_cmds
17067
17068 # Whether we are building with GNU ld or not.
17069 with_gnu_ld=$lt_with_gnu_ld
17070
17071 # Flag that allows shared libraries with undefined symbols to be built.
17072 allow_undefined_flag=$lt_allow_undefined_flag
17073
17074 # Flag that enforces no undefined symbols.
17075 no_undefined_flag=$lt_no_undefined_flag
17076
17077 # Flag to hardcode \$libdir into a binary during linking.
17078 # This must work even if \$libdir does not exist
17079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17080
17081 # If ld is used when linking, flag to hardcode \$libdir into a binary
17082 # during linking. This must work even if \$libdir does not exist.
17083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17084
17085 # Whether we need a single "-rpath" flag with a separated argument.
17086 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17087
17088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17089 # DIR into the resulting binary.
17090 hardcode_direct=$hardcode_direct
17091
17092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17093 # DIR into the resulting binary and the resulting library dependency is
17094 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17095 # library is relocated.
17096 hardcode_direct_absolute=$hardcode_direct_absolute
17097
17098 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17099 # into the resulting binary.
17100 hardcode_minus_L=$hardcode_minus_L
17101
17102 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17103 # into the resulting binary.
17104 hardcode_shlibpath_var=$hardcode_shlibpath_var
17105
17106 # Set to "yes" if building a shared library automatically hardcodes DIR
17107 # into the library and all subsequent libraries and executables linked
17108 # against it.
17109 hardcode_automatic=$hardcode_automatic
17110
17111 # Set to yes if linker adds runtime paths of dependent libraries
17112 # to runtime path list.
17113 inherit_rpath=$inherit_rpath
17114
17115 # Whether libtool must link a program against all its dependency libraries.
17116 link_all_deplibs=$link_all_deplibs
17117
17118 # Fix the shell variable \$srcfile for the compiler.
17119 fix_srcfile_path=$lt_fix_srcfile_path
17120
17121 # Set to "yes" if exported symbols are required.
17122 always_export_symbols=$always_export_symbols
17123
17124 # The commands to list exported symbols.
17125 export_symbols_cmds=$lt_export_symbols_cmds
17126
17127 # Symbols that should not be listed in the preloaded symbols.
17128 exclude_expsyms=$lt_exclude_expsyms
17129
17130 # Symbols that must always be exported.
17131 include_expsyms=$lt_include_expsyms
17132
17133 # Commands necessary for linking programs (against libraries) with templates.
17134 prelink_cmds=$lt_prelink_cmds
17135
17136 # Specify filename containing input files.
17137 file_list_spec=$lt_file_list_spec
17138
17139 # How to hardcode a shared library path into an executable.
17140 hardcode_action=$hardcode_action
17141
17142 # ### END LIBTOOL CONFIG
17143
17144 _LT_EOF
17145
17146 case $host_os in
17147 aix3*)
17148 cat <<\_LT_EOF >> "$cfgfile"
17149 # AIX sometimes has problems with the GCC collect2 program. For some
17150 # reason, if we set the COLLECT_NAMES environment variable, the problems
17151 # vanish in a puff of smoke.
17152 if test "X${COLLECT_NAMES+set}" != Xset; then
17153 COLLECT_NAMES=
17154 export COLLECT_NAMES
17155 fi
17156 _LT_EOF
17157 ;;
17158 esac
17159
17160
17161 ltmain="$ac_aux_dir/ltmain.sh"
17162
17163
17164 # We use sed instead of cat because bash on DJGPP gets confused if
17165 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17166 # text mode, it properly converts lines to CR/LF. This bash problem
17167 # is reportedly fixed, but why not run on old versions too?
17168 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17169 || (rm -f "$cfgfile"; exit 1)
17170
17171 case $xsi_shell in
17172 yes)
17173 cat << \_LT_EOF >> "$cfgfile"
17174
17175 # func_dirname file append nondir_replacement
17176 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17177 # otherwise set result to NONDIR_REPLACEMENT.
17178 func_dirname ()
17179 {
17180 case ${1} in
17181 */*) func_dirname_result="${1%/*}${2}" ;;
17182 * ) func_dirname_result="${3}" ;;
17183 esac
17184 }
17185
17186 # func_basename file
17187 func_basename ()
17188 {
17189 func_basename_result="${1##*/}"
17190 }
17191
17192 # func_dirname_and_basename file append nondir_replacement
17193 # perform func_basename and func_dirname in a single function
17194 # call:
17195 # dirname: Compute the dirname of FILE. If nonempty,
17196 # add APPEND to the result, otherwise set result
17197 # to NONDIR_REPLACEMENT.
17198 # value returned in "$func_dirname_result"
17199 # basename: Compute filename of FILE.
17200 # value retuned in "$func_basename_result"
17201 # Implementation must be kept synchronized with func_dirname
17202 # and func_basename. For efficiency, we do not delegate to
17203 # those functions but instead duplicate the functionality here.
17204 func_dirname_and_basename ()
17205 {
17206 case ${1} in
17207 */*) func_dirname_result="${1%/*}${2}" ;;
17208 * ) func_dirname_result="${3}" ;;
17209 esac
17210 func_basename_result="${1##*/}"
17211 }
17212
17213 # func_stripname prefix suffix name
17214 # strip PREFIX and SUFFIX off of NAME.
17215 # PREFIX and SUFFIX must not contain globbing or regex special
17216 # characters, hashes, percent signs, but SUFFIX may contain a leading
17217 # dot (in which case that matches only a dot).
17218 func_stripname ()
17219 {
17220 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17221 # positional parameters, so assign one to ordinary parameter first.
17222 func_stripname_result=${3}
17223 func_stripname_result=${func_stripname_result#"${1}"}
17224 func_stripname_result=${func_stripname_result%"${2}"}
17225 }
17226
17227 # func_opt_split
17228 func_opt_split ()
17229 {
17230 func_opt_split_opt=${1%%=*}
17231 func_opt_split_arg=${1#*=}
17232 }
17233
17234 # func_lo2o object
17235 func_lo2o ()
17236 {
17237 case ${1} in
17238 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17239 *) func_lo2o_result=${1} ;;
17240 esac
17241 }
17242
17243 # func_xform libobj-or-source
17244 func_xform ()
17245 {
17246 func_xform_result=${1%.*}.lo
17247 }
17248
17249 # func_arith arithmetic-term...
17250 func_arith ()
17251 {
17252 func_arith_result=$(( $* ))
17253 }
17254
17255 # func_len string
17256 # STRING may not start with a hyphen.
17257 func_len ()
17258 {
17259 func_len_result=${#1}
17260 }
17261
17262 _LT_EOF
17263 ;;
17264 *) # Bourne compatible functions.
17265 cat << \_LT_EOF >> "$cfgfile"
17266
17267 # func_dirname file append nondir_replacement
17268 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17269 # otherwise set result to NONDIR_REPLACEMENT.
17270 func_dirname ()
17271 {
17272 # Extract subdirectory from the argument.
17273 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17274 if test "X$func_dirname_result" = "X${1}"; then
17275 func_dirname_result="${3}"
17276 else
17277 func_dirname_result="$func_dirname_result${2}"
17278 fi
17279 }
17280
17281 # func_basename file
17282 func_basename ()
17283 {
17284 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17285 }
17286
17287
17288 # func_stripname prefix suffix name
17289 # strip PREFIX and SUFFIX off of NAME.
17290 # PREFIX and SUFFIX must not contain globbing or regex special
17291 # characters, hashes, percent signs, but SUFFIX may contain a leading
17292 # dot (in which case that matches only a dot).
17293 # func_strip_suffix prefix name
17294 func_stripname ()
17295 {
17296 case ${2} in
17297 .*) func_stripname_result=`$ECHO "X${3}" \
17298 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17299 *) func_stripname_result=`$ECHO "X${3}" \
17300 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17301 esac
17302 }
17303
17304 # sed scripts:
17305 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17306 my_sed_long_arg='1s/^-[^=]*=//'
17307
17308 # func_opt_split
17309 func_opt_split ()
17310 {
17311 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17312 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17313 }
17314
17315 # func_lo2o object
17316 func_lo2o ()
17317 {
17318 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17319 }
17320
17321 # func_xform libobj-or-source
17322 func_xform ()
17323 {
17324 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17325 }
17326
17327 # func_arith arithmetic-term...
17328 func_arith ()
17329 {
17330 func_arith_result=`expr "$@"`
17331 }
17332
17333 # func_len string
17334 # STRING may not start with a hyphen.
17335 func_len ()
17336 {
17337 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17338 }
17339
17340 _LT_EOF
17341 esac
17342
17343 case $lt_shell_append in
17344 yes)
17345 cat << \_LT_EOF >> "$cfgfile"
17346
17347 # func_append var value
17348 # Append VALUE to the end of shell variable VAR.
17349 func_append ()
17350 {
17351 eval "$1+=\$2"
17352 }
17353 _LT_EOF
17354 ;;
17355 *)
17356 cat << \_LT_EOF >> "$cfgfile"
17357
17358 # func_append var value
17359 # Append VALUE to the end of shell variable VAR.
17360 func_append ()
17361 {
17362 eval "$1=\$$1\$2"
17363 }
17364
17365 _LT_EOF
17366 ;;
17367 esac
17368
17369
17370 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17371 || (rm -f "$cfgfile"; exit 1)
17372
17373 mv -f "$cfgfile" "$ofile" ||
17374 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17375 chmod +x "$ofile"
17376
17377 ;;
17378
17379 esac
17380 done # for ac_tag
17381
17382
17383 { (exit 0); exit 0; }
17384 _ACEOF
17385 chmod +x $CONFIG_STATUS
17386 ac_clean_files=$ac_clean_files_save
17387
17388 test $ac_write_fail = 0 ||
17389 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17390 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17391 { (exit 1); exit 1; }; }
17392
17393
17394 # configure is writing to config.log, and then calls config.status.
17395 # config.status does its own redirection, appending to config.log.
17396 # Unfortunately, on DOS this fails, as config.log is still kept open
17397 # by configure, so config.status won't be able to write to it; its
17398 # output is simply discarded. So we exec the FD to /dev/null,
17399 # effectively closing config.log, so it can be properly (re)opened and
17400 # appended to by config.status. When coming back to configure, we
17401 # need to make the FD available again.
17402 if test "$no_create" != yes; then
17403 ac_cs_success=:
17404 ac_config_status_args=
17405 test "$silent" = yes &&
17406 ac_config_status_args="$ac_config_status_args --quiet"
17407 exec 5>/dev/null
17408 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17409 exec 5>>config.log
17410 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17411 # would make configure fail if this is the last instruction.
17412 $ac_cs_success || { (exit 1); exit 1; }
17413 fi
17414 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17415 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17416 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17417 fi
17418