Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libltdl 2.2.6.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libltdl'
747 PACKAGE_TARNAME='libltdl'
748 PACKAGE_VERSION='2.2.6'
749 PACKAGE_STRING='libltdl 2.2.6'
750 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
751
752 ac_unique_file="ltdl.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LTDLOPEN
793 LT_CONFIG_H
794 CONVENIENCE_LTDL_FALSE
795 CONVENIENCE_LTDL_TRUE
796 INSTALL_LTDL_FALSE
797 INSTALL_LTDL_TRUE
798 ARGZ_H
799 LIBOBJS
800 sys_symbol_underscore
801 LIBADD_DL
802 LT_DLPREOPEN
803 LIBADD_DLD_LINK
804 LIBADD_SHL_LOAD
805 LIBADD_DLOPEN
806 LT_DLLOADERS
807 CPP
808 OTOOL64
809 OTOOL
810 LIPO
811 NMEDIT
812 DSYMUTIL
813 lt_ECHO
814 RANLIB
815 AR
816 LN_S
817 NM
818 ac_ct_DUMPBIN
819 DUMPBIN
820 LD
821 FGREP
822 EGREP
823 GREP
824 SED
825 am__fastdepCC_FALSE
826 am__fastdepCC_TRUE
827 CCDEPMODE
828 AMDEPBACKSLASH
829 AMDEP_FALSE
830 AMDEP_TRUE
831 am__quote
832 am__include
833 DEPDIR
834 OBJEXT
835 EXEEXT
836 ac_ct_CC
837 CPPFLAGS
838 LDFLAGS
839 CFLAGS
840 CC
841 host_os
842 host_vendor
843 host_cpu
844 host
845 build_os
846 build_vendor
847 build_cpu
848 build
849 LIBTOOL
850 OBJDUMP
851 DLLTOOL
852 AS
853 am__untar
854 am__tar
855 AMTAR
856 am__leading_dot
857 SET_MAKE
858 AWK
859 mkdir_p
860 MKDIR_P
861 INSTALL_STRIP_PROGRAM
862 STRIP
863 install_sh
864 MAKEINFO
865 AUTOHEADER
866 AUTOMAKE
867 AUTOCONF
868 ACLOCAL
869 VERSION
870 PACKAGE
871 CYGPATH_W
872 am__isrc
873 INSTALL_DATA
874 INSTALL_SCRIPT
875 INSTALL_PROGRAM
876 target_alias
877 host_alias
878 build_alias
879 LIBS
880 ECHO_T
881 ECHO_N
882 ECHO_C
883 DEFS
884 mandir
885 localedir
886 libdir
887 psdir
888 pdfdir
889 dvidir
890 htmldir
891 infodir
892 docdir
893 oldincludedir
894 includedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files=''
914 ac_user_opts='
915 enable_option_checking
916 enable_shared
917 enable_static
918 with_pic
919 enable_fast_install
920 enable_dependency_tracking
921 with_gnu_ld
922 enable_libtool_lock
923 enable_ltdl_install
924 '
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CPP'
934
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
993 fi
994
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1030
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1064
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1101
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1106
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1136
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1210
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1269
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1286
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1321
1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1323 Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1332 { (exit 1); exit 1; }; }
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1335
1336 *)
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 ;;
1343
1344 esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1350 { (exit 1); exit 1; }; }
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1381 { (exit 1); exit 1; }; }
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1412 { (exit 1); exit 1; }; }
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1415 { (exit 1); exit 1; }; }
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1448 fi
1449 else
1450 ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1455 { (exit 1); exit 1; }; }
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1460 { (exit 1); exit 1; }; }
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures libltdl 2.2.6 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1540
1541 cat <<\_ACEOF
1542
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of libltdl 2.2.6:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-shared[=PKGS] build shared libraries [default=yes]
1565 --enable-static[=PKGS] build static libraries [default=yes]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --enable-ltdl-install install libltdl
1572
1573 Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 Report bugs to <bug-libtool@gnu.org>.
1594 _ACEOF
1595 ac_status=$?
1596 fi
1597
1598 if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601 test -d "$ac_dir" ||
1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603 continue
1604 ac_builddir=.
1605
1606 case "$ac_dir" in
1607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *)
1609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1610 # A ".." for each directory in $ac_dir_suffix.
1611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 esac ;;
1616 esac
1617 ac_abs_top_builddir=$ac_pwd
1618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619 # for backward compatibility:
1620 ac_top_builddir=$ac_top_build_prefix
1621
1622 case $srcdir in
1623 .) # We are building in place.
1624 ac_srcdir=.
1625 ac_top_srcdir=$ac_top_builddir_sub
1626 ac_abs_top_srcdir=$ac_pwd ;;
1627 [\\/]* | ?:[\\/]* ) # Absolute name.
1628 ac_srcdir=$srcdir$ac_dir_suffix;
1629 ac_top_srcdir=$srcdir
1630 ac_abs_top_srcdir=$srcdir ;;
1631 *) # Relative name.
1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635 esac
1636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638 cd "$ac_dir" || { ac_status=$?; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure" --help=recursive
1646 else
1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 fi || ac_status=$?
1649 cd "$ac_pwd" || { ac_status=$?; break; }
1650 done
1651 fi
1652
1653 test -n "$ac_init_help" && exit $ac_status
1654 if $ac_init_version; then
1655 cat <<\_ACEOF
1656 libltdl configure 2.2.6
1657 generated by GNU Autoconf 2.63
1658
1659 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1660 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664 exit
1665 fi
1666 cat >config.log <<_ACEOF
1667 This file contains any messages produced by compilers while
1668 running configure, to aid debugging if configure makes a mistake.
1669
1670 It was created by libltdl $as_me 2.2.6, which was
1671 generated by GNU Autoconf 2.63. Invocation command line was
1672
1673 $ $0 $@
1674
1675 _ACEOF
1676 exec 5>>config.log
1677 {
1678 cat <<_ASUNAME
1679 ## --------- ##
1680 ## Platform. ##
1681 ## --------- ##
1682
1683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688
1689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691
1692 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1693 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1696 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1697 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1698 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699
1700 _ASUNAME
1701
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1704 do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
1707 $as_echo "PATH: $as_dir"
1708 done
1709 IFS=$as_save_IFS
1710
1711 } >&5
1712
1713 cat >&5 <<_ACEOF
1714
1715
1716 ## ----------- ##
1717 ## Core tests. ##
1718 ## ----------- ##
1719
1720 _ACEOF
1721
1722
1723 # Keep a trace of the command line.
1724 # Strip out --no-create and --no-recursion so they do not pile up.
1725 # Strip out --silent because we don't want to record it for future runs.
1726 # Also quote any args containing shell meta-characters.
1727 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_configure_args=
1729 ac_configure_args0=
1730 ac_configure_args1=
1731 ac_must_keep_next=false
1732 for ac_pass in 1 2
1733 do
1734 for ac_arg
1735 do
1736 case $ac_arg in
1737 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739 | -silent | --silent | --silen | --sile | --sil)
1740 continue ;;
1741 *\'*)
1742 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743 esac
1744 case $ac_pass in
1745 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746 2)
1747 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748 if test $ac_must_keep_next = true; then
1749 ac_must_keep_next=false # Got value, back to normal.
1750 else
1751 case $ac_arg in
1752 *=* | --config-cache | -C | -disable-* | --disable-* \
1753 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755 | -with-* | --with-* | -without-* | --without-* | --x)
1756 case "$ac_configure_args0 " in
1757 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 esac
1759 ;;
1760 -* ) ac_must_keep_next=true ;;
1761 esac
1762 fi
1763 ac_configure_args="$ac_configure_args '$ac_arg'"
1764 ;;
1765 esac
1766 done
1767 done
1768 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770
1771 # When interrupted or exit'd, cleanup temporary files, and complete
1772 # config.log. We remove comments because anyway the quotes in there
1773 # would cause problems or look ugly.
1774 # WARNING: Use '\'' to represent an apostrophe within the trap.
1775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776 trap 'exit_status=$?
1777 # Save into config.log some information that might help in debugging.
1778 {
1779 echo
1780
1781 cat <<\_ASBOX
1782 ## ---------------- ##
1783 ## Cache variables. ##
1784 ## ---------------- ##
1785 _ASBOX
1786 echo
1787 # The following way of writing the cache mishandles newlines in values,
1788 (
1789 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790 eval ac_val=\$$ac_var
1791 case $ac_val in #(
1792 *${as_nl}*)
1793 case $ac_var in #(
1794 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1795 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1796 esac
1797 case $ac_var in #(
1798 _ | IFS | as_nl) ;; #(
1799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1800 *) $as_unset $ac_var ;;
1801 esac ;;
1802 esac
1803 done
1804 (set) 2>&1 |
1805 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806 *${as_nl}ac_space=\ *)
1807 sed -n \
1808 "s/'\''/'\''\\\\'\'''\''/g;
1809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810 ;; #(
1811 *)
1812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813 ;;
1814 esac |
1815 sort
1816 )
1817 echo
1818
1819 cat <<\_ASBOX
1820 ## ----------------- ##
1821 ## Output variables. ##
1822 ## ----------------- ##
1823 _ASBOX
1824 echo
1825 for ac_var in $ac_subst_vars
1826 do
1827 eval ac_val=\$$ac_var
1828 case $ac_val in
1829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 esac
1831 $as_echo "$ac_var='\''$ac_val'\''"
1832 done | sort
1833 echo
1834
1835 if test -n "$ac_subst_files"; then
1836 cat <<\_ASBOX
1837 ## ------------------- ##
1838 ## File substitutions. ##
1839 ## ------------------- ##
1840 _ASBOX
1841 echo
1842 for ac_var in $ac_subst_files
1843 do
1844 eval ac_val=\$$ac_var
1845 case $ac_val in
1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 esac
1848 $as_echo "$ac_var='\''$ac_val'\''"
1849 done | sort
1850 echo
1851 fi
1852
1853 if test -s confdefs.h; then
1854 cat <<\_ASBOX
1855 ## ----------- ##
1856 ## confdefs.h. ##
1857 ## ----------- ##
1858 _ASBOX
1859 echo
1860 cat confdefs.h
1861 echo
1862 fi
1863 test "$ac_signal" != 0 &&
1864 $as_echo "$as_me: caught signal $ac_signal"
1865 $as_echo "$as_me: exit $exit_status"
1866 } >&5
1867 rm -f core *.core core.conftest.* &&
1868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869 exit $exit_status
1870 ' 0
1871 for ac_signal in 1 2 13 15; do
1872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 done
1874 ac_signal=0
1875
1876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1877 rm -f -r conftest* confdefs.h
1878
1879 # Predefined preprocessor variables.
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_STRING "$PACKAGE_STRING"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 _ACEOF
1904
1905
1906 # Let the site file select an alternate cache file if it wants to.
1907 # Prefer an explicitly selected file to automatically selected ones.
1908 ac_site_file1=NONE
1909 ac_site_file2=NONE
1910 if test -n "$CONFIG_SITE"; then
1911 ac_site_file1=$CONFIG_SITE
1912 elif test "x$prefix" != xNONE; then
1913 ac_site_file1=$prefix/share/config.site
1914 ac_site_file2=$prefix/etc/config.site
1915 else
1916 ac_site_file1=$ac_default_prefix/share/config.site
1917 ac_site_file2=$ac_default_prefix/etc/config.site
1918 fi
1919 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1920 do
1921 test "x$ac_site_file" = xNONE && continue
1922 if test -r "$ac_site_file"; then
1923 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1927 fi
1928 done
1929
1930 if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935 $as_echo "$as_me: loading cache $cache_file" >&6;}
1936 case $cache_file in
1937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
1939 esac
1940 fi
1941 else
1942 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943 $as_echo "$as_me: creating cache $cache_file" >&6;}
1944 >$cache_file
1945 fi
1946
1947 # Check that the precious variables saved in the cache have kept the same
1948 # value.
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w=`echo x $ac_old_val`
1969 ac_new_val_w=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted=:
1974 else
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\$ac_old_val
1978 fi
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1983 fi;;
1984 esac
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
1988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 esac
1995 fi
1996 done
1997 if $ac_cache_corrupted; then
1998 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004 { (exit 1); exit 1; }; }
2005 fi
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031 ac_ext=c
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036
2037
2038 ac_config_headers="$ac_config_headers config.h:config-h.in"
2039
2040
2041 ac_aux_dir=
2042 for ac_dir in config "$srcdir"/config; do
2043 if test -f "$ac_dir/install-sh"; then
2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 break
2047 elif test -f "$ac_dir/install.sh"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 break
2051 elif test -f "$ac_dir/shtool"; then
2052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2054 break
2055 fi
2056 done
2057 if test -z "$ac_aux_dir"; then
2058 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2059 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2060 { (exit 1); exit 1; }; }
2061 fi
2062
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070
2071
2072
2073
2074
2075
2076
2077
2078 # I am me!
2079
2080
2081 ## ------------------------ ##
2082 ## Automake Initialisation. ##
2083 ## ------------------------ ##
2084
2085 am__api_version='1.11'
2086
2087 # Find a good install program. We prefer a C program (faster),
2088 # so one script is as good as another. But avoid the broken or
2089 # incompatible versions:
2090 # SysV /etc/install, /usr/sbin/install
2091 # SunOS /usr/etc/install
2092 # IRIX /sbin/install
2093 # AIX /bin/install
2094 # AmigaOS /C/install, which installs bootblocks on floppy discs
2095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098 # OS/2's system install, which has a completely different semantic
2099 # ./install, which can be erroneously created by make from ./install.sh.
2100 # Reject install programs that cannot install multiple files.
2101 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2102 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 $as_echo_n "(cached) " >&6
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 # Account for people who put trailing slashes in PATH elements.
2113 case $as_dir/ in
2114 ./ | .// | /cC/* | \
2115 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2116 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2117 /usr/ucb/* ) ;;
2118 *)
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2121 # by default.
2122 for ac_prog in ginstall scoinst install; do
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2125 if test $ac_prog = install &&
2126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2128 :
2129 elif test $ac_prog = install &&
2130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2132 :
2133 else
2134 rm -rf conftest.one conftest.two conftest.dir
2135 echo one > conftest.one
2136 echo two > conftest.two
2137 mkdir conftest.dir
2138 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2139 test -s conftest.one && test -s conftest.two &&
2140 test -s conftest.dir/conftest.one &&
2141 test -s conftest.dir/conftest.two
2142 then
2143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2144 break 3
2145 fi
2146 fi
2147 fi
2148 done
2149 done
2150 ;;
2151 esac
2152
2153 done
2154 IFS=$as_save_IFS
2155
2156 rm -rf conftest.one conftest.two conftest.dir
2157
2158 fi
2159 if test "${ac_cv_path_install+set}" = set; then
2160 INSTALL=$ac_cv_path_install
2161 else
2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for INSTALL within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 INSTALL=$ac_install_sh
2167 fi
2168 fi
2169 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2170 $as_echo "$INSTALL" >&6; }
2171
2172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173 # It thinks the first close brace ends the variable substitution.
2174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2175
2176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2177
2178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2179
2180 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2181 $as_echo_n "checking whether build environment is sane... " >&6; }
2182 # Just in case
2183 sleep 1
2184 echo timestamp > conftest.file
2185 # Reject unsafe characters in $srcdir or the absolute working directory
2186 # name. Accept space and tab only in the latter.
2187 am_lf='
2188 '
2189 case `pwd` in
2190 *[\\\"\#\$\&\'\`$am_lf]*)
2191 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2192 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2193 { (exit 1); exit 1; }; };;
2194 esac
2195 case $srcdir in
2196 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2197 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2198 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2199 { (exit 1); exit 1; }; };;
2200 esac
2201
2202 # Do `set' in a subshell so we don't clobber the current shell's
2203 # arguments. Must try -L first in case configure is actually a
2204 # symlink; some systems play weird games with the mod time of symlinks
2205 # (eg FreeBSD returns the mod time of the symlink's containing
2206 # directory).
2207 if (
2208 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2209 if test "$*" = "X"; then
2210 # -L didn't work.
2211 set X `ls -t "$srcdir/configure" conftest.file`
2212 fi
2213 rm -f conftest.file
2214 if test "$*" != "X $srcdir/configure conftest.file" \
2215 && test "$*" != "X conftest.file $srcdir/configure"; then
2216
2217 # If neither matched, then we have a broken ls. This can happen
2218 # if, for instance, CONFIG_SHELL is bash and it inherits a
2219 # broken ls alias from the environment. This has actually
2220 # happened. Such a system could not be considered "sane".
2221 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2222 alias in your environment" >&5
2223 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2224 alias in your environment" >&2;}
2225 { (exit 1); exit 1; }; }
2226 fi
2227
2228 test "$2" = conftest.file
2229 )
2230 then
2231 # Ok.
2232 :
2233 else
2234 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2235 Check your system clock" >&5
2236 $as_echo "$as_me: error: newly created file is older than distributed files!
2237 Check your system clock" >&2;}
2238 { (exit 1); exit 1; }; }
2239 fi
2240 { $as_echo "$as_me:$LINENO: result: yes" >&5
2241 $as_echo "yes" >&6; }
2242 test "$program_prefix" != NONE &&
2243 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2244 # Use a double $ so make ignores it.
2245 test "$program_suffix" != NONE &&
2246 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2247 # Double any \ or $.
2248 # By default was `s,x,x', remove it if useless.
2249 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2250 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2251
2252 # expand $ac_aux_dir to an absolute path
2253 am_aux_dir=`cd $ac_aux_dir && pwd`
2254
2255 if test x"${MISSING+set}" != xset; then
2256 case $am_aux_dir in
2257 *\ * | *\ *)
2258 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2259 *)
2260 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2261 esac
2262 fi
2263 # Use eval to expand $SHELL
2264 if eval "$MISSING --run true"; then
2265 am_missing_run="$MISSING --run "
2266 else
2267 am_missing_run=
2268 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2269 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2270 fi
2271
2272 if test x"${install_sh}" != xset; then
2273 case $am_aux_dir in
2274 *\ * | *\ *)
2275 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2276 *)
2277 install_sh="\${SHELL} $am_aux_dir/install-sh"
2278 esac
2279 fi
2280
2281 # Installed binaries are usually stripped using `strip' when the user
2282 # run `make install-strip'. However `strip' might not be the right
2283 # tool to use in cross-compilation environments, therefore Automake
2284 # will honor the `STRIP' environment variable to overrule this program.
2285 if test "$cross_compiling" != no; then
2286 if test -n "$ac_tool_prefix"; then
2287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2288 set dummy ${ac_tool_prefix}strip; ac_word=$2
2289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 $as_echo_n "checking for $ac_word... " >&6; }
2291 if test "${ac_cv_prog_STRIP+set}" = set; then
2292 $as_echo_n "(cached) " >&6
2293 else
2294 if test -n "$STRIP"; then
2295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2307 fi
2308 done
2309 done
2310 IFS=$as_save_IFS
2311
2312 fi
2313 fi
2314 STRIP=$ac_cv_prog_STRIP
2315 if test -n "$STRIP"; then
2316 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2317 $as_echo "$STRIP" >&6; }
2318 else
2319 { $as_echo "$as_me:$LINENO: result: no" >&5
2320 $as_echo "no" >&6; }
2321 fi
2322
2323
2324 fi
2325 if test -z "$ac_cv_prog_STRIP"; then
2326 ac_ct_STRIP=$STRIP
2327 # Extract the first word of "strip", so it can be a program name with args.
2328 set dummy strip; ac_word=$2
2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 $as_echo_n "checking for $ac_word... " >&6; }
2331 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2332 $as_echo_n "(cached) " >&6
2333 else
2334 if test -n "$ac_ct_STRIP"; then
2335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_ac_ct_STRIP="strip"
2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348 done
2349 done
2350 IFS=$as_save_IFS
2351
2352 fi
2353 fi
2354 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2355 if test -n "$ac_ct_STRIP"; then
2356 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2357 $as_echo "$ac_ct_STRIP" >&6; }
2358 else
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
2361 fi
2362
2363 if test "x$ac_ct_STRIP" = x; then
2364 STRIP=":"
2365 else
2366 case $cross_compiling:$ac_tool_warned in
2367 yes:)
2368 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2370 ac_tool_warned=yes ;;
2371 esac
2372 STRIP=$ac_ct_STRIP
2373 fi
2374 else
2375 STRIP="$ac_cv_prog_STRIP"
2376 fi
2377
2378 fi
2379 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2380
2381 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2382 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2383 if test -z "$MKDIR_P"; then
2384 if test "${ac_cv_path_mkdir+set}" = set; then
2385 $as_echo_n "(cached) " >&6
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2389 do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_prog in mkdir gmkdir; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2395 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2396 'mkdir (GNU coreutils) '* | \
2397 'mkdir (coreutils) '* | \
2398 'mkdir (fileutils) '4.1*)
2399 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2400 break 3;;
2401 esac
2402 done
2403 done
2404 done
2405 IFS=$as_save_IFS
2406
2407 fi
2408
2409 if test "${ac_cv_path_mkdir+set}" = set; then
2410 MKDIR_P="$ac_cv_path_mkdir -p"
2411 else
2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for MKDIR_P within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 test -d ./--version && rmdir ./--version
2417 MKDIR_P="$ac_install_sh -d"
2418 fi
2419 fi
2420 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2421 $as_echo "$MKDIR_P" >&6; }
2422
2423 mkdir_p="$MKDIR_P"
2424 case $mkdir_p in
2425 [\\/$]* | ?:[\\/]*) ;;
2426 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2427 esac
2428
2429 for ac_prog in gawk mawk nawk awk
2430 do
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432 set dummy $ac_prog; ac_word=$2
2433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 $as_echo_n "checking for $ac_word... " >&6; }
2435 if test "${ac_cv_prog_AWK+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2437 else
2438 if test -n "$AWK"; then
2439 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_AWK="$ac_prog"
2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456 fi
2457 fi
2458 AWK=$ac_cv_prog_AWK
2459 if test -n "$AWK"; then
2460 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2461 $as_echo "$AWK" >&6; }
2462 else
2463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464 $as_echo "no" >&6; }
2465 fi
2466
2467
2468 test -n "$AWK" && break
2469 done
2470
2471 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2472 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2473 set x ${MAKE-make}
2474 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2475 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2476 $as_echo_n "(cached) " >&6
2477 else
2478 cat >conftest.make <<\_ACEOF
2479 SHELL = /bin/sh
2480 all:
2481 @echo '@@@%%%=$(MAKE)=@@@%%%'
2482 _ACEOF
2483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2484 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2485 *@@@%%%=?*=@@@%%%*)
2486 eval ac_cv_prog_make_${ac_make}_set=yes;;
2487 *)
2488 eval ac_cv_prog_make_${ac_make}_set=no;;
2489 esac
2490 rm -f conftest.make
2491 fi
2492 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2493 { $as_echo "$as_me:$LINENO: result: yes" >&5
2494 $as_echo "yes" >&6; }
2495 SET_MAKE=
2496 else
2497 { $as_echo "$as_me:$LINENO: result: no" >&5
2498 $as_echo "no" >&6; }
2499 SET_MAKE="MAKE=${MAKE-make}"
2500 fi
2501
2502 rm -rf .tst 2>/dev/null
2503 mkdir .tst 2>/dev/null
2504 if test -d .tst; then
2505 am__leading_dot=.
2506 else
2507 am__leading_dot=_
2508 fi
2509 rmdir .tst 2>/dev/null
2510
2511 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2512 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2513 # is not polluted with repeated "-I."
2514 am__isrc=' -I$(srcdir)'
2515 # test to see if srcdir already configured
2516 if test -f $srcdir/config.status; then
2517 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2518 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2519 { (exit 1); exit 1; }; }
2520 fi
2521 fi
2522
2523 # test whether we have cygpath
2524 if test -z "$CYGPATH_W"; then
2525 if (cygpath --version) >/dev/null 2>/dev/null; then
2526 CYGPATH_W='cygpath -w'
2527 else
2528 CYGPATH_W=echo
2529 fi
2530 fi
2531
2532
2533 # Define the identity of the package.
2534 PACKAGE='libltdl'
2535 VERSION='2.2.6'
2536
2537
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE "$PACKAGE"
2540 _ACEOF
2541
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define VERSION "$VERSION"
2545 _ACEOF
2546
2547 # Some tools Automake needs.
2548
2549 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2550
2551
2552 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2553
2554
2555 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2556
2557
2558 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2559
2560
2561 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2562
2563 # We need awk for the "check" target. The system "awk" is bad on
2564 # some platforms.
2565 # Always define AMTAR for backward compatibility.
2566
2567 AMTAR=${AMTAR-"${am_missing_run}tar"}
2568
2569 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2570
2571
2572
2573
2574
2575
2576
2577 ## ------------------------------- ##
2578 ## Libtool specific configuration. ##
2579 ## ------------------------------- ##
2580 pkgdatadir='${datadir}'"/${PACKAGE}"
2581
2582
2583 ## ----------------------- ##
2584 ## Libtool initialisation. ##
2585 ## ----------------------- ##
2586 case `pwd` in
2587 *\ * | *\ *)
2588 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2589 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2590 esac
2591
2592
2593
2594 macro_version='2.2.6'
2595 macro_revision='1.3012'
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609 ltmain="$ac_aux_dir/ltmain.sh"
2610
2611 # Make sure we can run config.sub.
2612 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2613 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2614 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2615 { (exit 1); exit 1; }; }
2616
2617 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2618 $as_echo_n "checking build system type... " >&6; }
2619 if test "${ac_cv_build+set}" = set; then
2620 $as_echo_n "(cached) " >&6
2621 else
2622 ac_build_alias=$build_alias
2623 test "x$ac_build_alias" = x &&
2624 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2625 test "x$ac_build_alias" = x &&
2626 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2627 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2628 { (exit 1); exit 1; }; }
2629 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2630 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2631 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2632 { (exit 1); exit 1; }; }
2633
2634 fi
2635 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2636 $as_echo "$ac_cv_build" >&6; }
2637 case $ac_cv_build in
2638 *-*-*) ;;
2639 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2640 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2641 { (exit 1); exit 1; }; };;
2642 esac
2643 build=$ac_cv_build
2644 ac_save_IFS=$IFS; IFS='-'
2645 set x $ac_cv_build
2646 shift
2647 build_cpu=$1
2648 build_vendor=$2
2649 shift; shift
2650 # Remember, the first character of IFS is used to create $*,
2651 # except with old shells:
2652 build_os=$*
2653 IFS=$ac_save_IFS
2654 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2655
2656
2657 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2658 $as_echo_n "checking host system type... " >&6; }
2659 if test "${ac_cv_host+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test "x$host_alias" = x; then
2663 ac_cv_host=$ac_cv_build
2664 else
2665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2666 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2667 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2668 { (exit 1); exit 1; }; }
2669 fi
2670
2671 fi
2672 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2673 $as_echo "$ac_cv_host" >&6; }
2674 case $ac_cv_host in
2675 *-*-*) ;;
2676 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2677 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2678 { (exit 1); exit 1; }; };;
2679 esac
2680 host=$ac_cv_host
2681 ac_save_IFS=$IFS; IFS='-'
2682 set x $ac_cv_host
2683 shift
2684 host_cpu=$1
2685 host_vendor=$2
2686 shift; shift
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2689 host_os=$*
2690 IFS=$ac_save_IFS
2691 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2692
2693
2694 DEPDIR="${am__leading_dot}deps"
2695
2696 ac_config_commands="$ac_config_commands depfiles"
2697
2698
2699 am_make=${MAKE-make}
2700 cat > confinc << 'END'
2701 am__doit:
2702 @echo this is the am__doit target
2703 .PHONY: am__doit
2704 END
2705 # If we don't find an include directive, just comment out the code.
2706 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2707 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2708 am__include="#"
2709 am__quote=
2710 _am_result=none
2711 # First try GNU make style include.
2712 echo "include confinc" > confmf
2713 # Ignore all kinds of additional output from `make'.
2714 case `$am_make -s -f confmf 2> /dev/null` in #(
2715 *the\ am__doit\ target*)
2716 am__include=include
2717 am__quote=
2718 _am_result=GNU
2719 ;;
2720 esac
2721 # Now try BSD make style include.
2722 if test "$am__include" = "#"; then
2723 echo '.include "confinc"' > confmf
2724 case `$am_make -s -f confmf 2> /dev/null` in #(
2725 *the\ am__doit\ target*)
2726 am__include=.include
2727 am__quote="\""
2728 _am_result=BSD
2729 ;;
2730 esac
2731 fi
2732
2733
2734 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2735 $as_echo "$_am_result" >&6; }
2736 rm -f confinc confmf
2737
2738 # Check whether --enable-dependency-tracking was given.
2739 if test "${enable_dependency_tracking+set}" = set; then
2740 enableval=$enable_dependency_tracking;
2741 fi
2742
2743 if test "x$enable_dependency_tracking" != xno; then
2744 am_depcomp="$ac_aux_dir/depcomp"
2745 AMDEPBACKSLASH='\'
2746 fi
2747 if test "x$enable_dependency_tracking" != xno; then
2748 AMDEP_TRUE=
2749 AMDEP_FALSE='#'
2750 else
2751 AMDEP_TRUE='#'
2752 AMDEP_FALSE=
2753 fi
2754
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:$LINENO: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$ac_cv_prog_CC"; then
2801 ac_ct_CC=$CC
2802 # Extract the first word of "gcc", so it can be a program name with args.
2803 set dummy gcc; ac_word=$2
2804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CC="gcc"
2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 $as_echo "$ac_ct_CC" >&6; }
2833 else
2834 { $as_echo "$as_me:$LINENO: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845 ac_tool_warned=yes ;;
2846 esac
2847 CC=$ac_ct_CC
2848 fi
2849 else
2850 CC="$ac_cv_prog_CC"
2851 fi
2852
2853 if test -z "$CC"; then
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}cc; ac_word=$2
2857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}cc"
2873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887 { $as_echo "$as_me:$LINENO: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892 fi
2893 fi
2894 if test -z "$CC"; then
2895 # Extract the first word of "cc", so it can be a program name with args.
2896 set dummy cc; ac_word=$2
2897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 ac_prog_rejected=no
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914 ac_prog_rejected=yes
2915 continue
2916 fi
2917 ac_cv_prog_CC="cc"
2918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 if test $ac_prog_rejected = yes; then
2926 # We found a bogon in the path, so make sure we never use it.
2927 set dummy $ac_cv_prog_CC
2928 shift
2929 if test $# != 0; then
2930 # We chose a different compiler from the bogus one.
2931 # However, it has the same basename, so the bogon will be chosen
2932 # first if we set CC to just the basename; use the full file name.
2933 shift
2934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 fi
2936 fi
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2943 else
2944 { $as_echo "$as_me:$LINENO: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 fi
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 for ac_prog in cl.exe
2953 do
2954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_CC+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:$LINENO: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 test -n "$CC" && break
2992 done
2993 fi
2994 if test -z "$CC"; then
2995 ac_ct_CC=$CC
2996 for ac_prog in cl.exe
2997 do
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_CC="$ac_prog"
3016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026 if test -n "$ac_ct_CC"; then
3027 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3028 $as_echo "$ac_ct_CC" >&6; }
3029 else
3030 { $as_echo "$as_me:$LINENO: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 test -n "$ac_ct_CC" && break
3036 done
3037
3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3048 fi
3049 fi
3050
3051 fi
3052
3053
3054 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3057 See \`config.log' for more details." >&5
3058 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details." >&2;}
3060 { (exit 1); exit 1; }; }; }
3061
3062 # Provide some information about the compiler.
3063 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3064 set X $ac_compile
3065 ac_compiler=$2
3066 { (ac_try="$ac_compiler --version >&5"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072 $as_echo "$ac_try_echo") >&5
3073 (eval "$ac_compiler --version >&5") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }
3077 { (ac_try="$ac_compiler -v >&5"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_compiler -v >&5") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088 { (ac_try="$ac_compiler -V >&5"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_compiler -V >&5") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }
3099
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106
3107 int
3108 main ()
3109 {
3110
3111 ;
3112 return 0;
3113 }
3114 _ACEOF
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3119 # of exeext.
3120 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
3127 ac_rmfiles=
3128 for ac_file in $ac_files
3129 do
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
3134 done
3135 rm -f $ac_rmfiles
3136
3137 if { (ac_try="$ac_link_default"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144 (eval "$ac_link_default") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; then
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3152 # Autoconf.
3153 for ac_file in $ac_files ''
3154 do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 fi
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
3173 break;;
3174 * )
3175 break;;
3176 esac
3177 done
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
3180 else
3181 ac_file=''
3182 fi
3183
3184 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3185 $as_echo "$ac_file" >&6; }
3186 if test -z "$ac_file"; then
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3193 See \`config.log' for more details." >&5
3194 $as_echo "$as_me: error: C compiler cannot create executables
3195 See \`config.log' for more details." >&2;}
3196 { (exit 77); exit 77; }; }; }
3197 fi
3198
3199 ac_exeext=$ac_cv_exeext
3200
3201 # Check that the compiler produces executables we can run. If not, either
3202 # the compiler is broken, or we cross compile.
3203 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3204 $as_echo_n "checking whether the C compiler works... " >&6; }
3205 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3206 # If not cross compiling, check that we can run a simple program.
3207 if test "$cross_compiling" != yes; then
3208 if { ac_try='./$ac_file'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 cross_compiling=no
3220 else
3221 if test "$cross_compiling" = maybe; then
3222 cross_compiling=yes
3223 else
3224 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3227 If you meant to cross compile, use \`--host'.
3228 See \`config.log' for more details." >&5
3229 $as_echo "$as_me: error: cannot run C compiled programs.
3230 If you meant to cross compile, use \`--host'.
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }; }
3233 fi
3234 fi
3235 fi
3236 { $as_echo "$as_me:$LINENO: result: yes" >&5
3237 $as_echo "yes" >&6; }
3238
3239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3240 ac_clean_files=$ac_clean_files_save
3241 # Check that the compiler produces executables we can run. If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3244 $as_echo_n "checking whether we are cross compiling... " >&6; }
3245 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3246 $as_echo "$cross_compiling" >&6; }
3247
3248 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3249 $as_echo_n "checking for suffix of executables... " >&6; }
3250 if { (ac_try="$ac_link"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257 (eval "$ac_link") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; then
3261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3262 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3263 # work properly (i.e., refer to `conftest.exe'), while it won't with
3264 # `rm'.
3265 for ac_file in conftest.exe conftest conftest.*; do
3266 test -f "$ac_file" || continue
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 break;;
3271 * ) break;;
3272 esac
3273 done
3274 else
3275 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3278 See \`config.log' for more details." >&5
3279 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3280 See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }; }
3282 fi
3283
3284 rm -f conftest$ac_cv_exeext
3285 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3287
3288 rm -f conftest.$ac_ext
3289 EXEEXT=$ac_cv_exeext
3290 ac_exeext=$EXEEXT
3291 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3292 $as_echo_n "checking for suffix of object files... " >&6; }
3293 if test "${ac_cv_objext+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3295 else
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.o conftest.obj
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319 (eval "$ac_compile") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; then
3323 for ac_file in conftest.o conftest.obj conftest.*; do
3324 test -f "$ac_file" || continue;
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328 break;;
3329 esac
3330 done
3331 else
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }; }
3342 fi
3343
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345 fi
3346 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h. */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361
3362 int
3363 main ()
3364 {
3365 #ifndef __GNUC__
3366 choke me
3367 #endif
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_compiler_gnu=yes
3392 else
3393 $as_echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 ac_compiler_gnu=no
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3401
3402 fi
3403 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3404 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3405 if test $ac_compiler_gnu = yes; then
3406 GCC=yes
3407 else
3408 GCC=
3409 fi
3410 ac_test_CFLAGS=${CFLAGS+set}
3411 ac_save_CFLAGS=$CFLAGS
3412 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3414 if test "${ac_cv_prog_cc_g+set}" = set; then
3415 $as_echo_n "(cached) " >&6
3416 else
3417 ac_save_c_werror_flag=$ac_c_werror_flag
3418 ac_c_werror_flag=yes
3419 ac_cv_prog_cc_g=no
3420 CFLAGS="-g"
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext
3437 if { (ac_try="$ac_compile"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3443 $as_echo "$ac_try_echo") >&5
3444 (eval "$ac_compile") 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && {
3451 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3454 ac_cv_prog_cc_g=yes
3455 else
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 CFLAGS=""
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3493 :
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3499 CFLAGS="-g"
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 ac_cv_prog_cc_g=yes
3534 else
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538
3539 fi
3540
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 fi
3543
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3549 fi
3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3551 $as_echo "$ac_cv_prog_cc_g" >&6; }
3552 if test "$ac_test_CFLAGS" = set; then
3553 CFLAGS=$ac_save_CFLAGS
3554 elif test $ac_cv_prog_cc_g = yes; then
3555 if test "$GCC" = yes; then
3556 CFLAGS="-g -O2"
3557 else
3558 CFLAGS="-g"
3559 fi
3560 else
3561 if test "$GCC" = yes; then
3562 CFLAGS="-O2"
3563 else
3564 CFLAGS=
3565 fi
3566 fi
3567 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3569 if test "${ac_cv_prog_cc_c89+set}" = set; then
3570 $as_echo_n "(cached) " >&6
3571 else
3572 ac_cv_prog_cc_c89=no
3573 ac_save_CC=$CC
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580 #include <stdarg.h>
3581 #include <stdio.h>
3582 #include <sys/types.h>
3583 #include <sys/stat.h>
3584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585 struct buf { int x; };
3586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587 static char *e (p, i)
3588 char **p;
3589 int i;
3590 {
3591 return p[i];
3592 }
3593 static char *f (char * (*g) (char **, int), char **p, ...)
3594 {
3595 char *s;
3596 va_list v;
3597 va_start (v,p);
3598 s = g (p, va_arg (v,int));
3599 va_end (v);
3600 return s;
3601 }
3602
3603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3604 function prototypes and stuff, but not '\xHH' hex character constants.
3605 These don't provoke an error unfortunately, instead are silently treated
3606 as 'x'. The following induces an error, until -std is added to get
3607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3608 array size at least. It's necessary to write '\x00'==0 to get something
3609 that's true only with -std. */
3610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611
3612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3613 inside strings and character constants. */
3614 #define FOO(x) 'x'
3615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616
3617 int test (int i, double x);
3618 struct s1 {int (*f) (int a);};
3619 struct s2 {int (*f) (double a);};
3620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621 int argc;
3622 char **argv;
3623 int
3624 main ()
3625 {
3626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3633 do
3634 CC="$ac_save_CC $ac_arg"
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_compile") 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest.$ac_objext; then
3653 ac_cv_prog_cc_c89=$ac_arg
3654 else
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658
3659 fi
3660
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3663 done
3664 rm -f conftest.$ac_ext
3665 CC=$ac_save_CC
3666
3667 fi
3668 # AC_CACHE_VAL
3669 case "x$ac_cv_prog_cc_c89" in
3670 x)
3671 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3673 xno)
3674 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3676 *)
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3680 esac
3681
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689 depcc="$CC" am_compiler_list=
3690
3691 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3692 $as_echo_n "checking dependency style of $depcc... " >&6; }
3693 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3697 # We make a subdir and do the tests there. Otherwise we can end up
3698 # making bogus files that we don't know about and never remove. For
3699 # instance it was reported that on HP-UX the gcc test will end up
3700 # making a dummy file named `D' -- because `-MD' means `put the output
3701 # in D'.
3702 mkdir conftest.dir
3703 # Copy depcomp to subdir because otherwise we won't find it if we're
3704 # using a relative directory.
3705 cp "$am_depcomp" conftest.dir
3706 cd conftest.dir
3707 # We will build objects and dependencies in a subdirectory because
3708 # it helps to detect inapplicable dependency modes. For instance
3709 # both Tru64's cc and ICC support -MD to output dependencies as a
3710 # side effect of compilation, but ICC will put the dependencies in
3711 # the current directory while Tru64 will put them in the object
3712 # directory.
3713 mkdir sub
3714
3715 am_cv_CC_dependencies_compiler_type=none
3716 if test "$am_compiler_list" = ""; then
3717 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3718 fi
3719 am__universal=false
3720 case " $depcc " in #(
3721 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3722 esac
3723
3724 for depmode in $am_compiler_list; do
3725 # Setup a source with many dependencies, because some compilers
3726 # like to wrap large dependency lists on column 80 (with \), and
3727 # we should not choose a depcomp mode which is confused by this.
3728 #
3729 # We need to recreate these files for each test, as the compiler may
3730 # overwrite some of them when testing with obscure command lines.
3731 # This happens at least with the AIX C compiler.
3732 : > sub/conftest.c
3733 for i in 1 2 3 4 5 6; do
3734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3736 # Solaris 8's {/usr,}/bin/sh.
3737 touch sub/conftst$i.h
3738 done
3739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3740
3741 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3742 # mode. It turns out that the SunPro C++ compiler does not properly
3743 # handle `-M -o', and we need to detect this. Also, some Intel
3744 # versions had trouble with output in subdirs
3745 am__obj=sub/conftest.${OBJEXT-o}
3746 am__minus_obj="-o $am__obj"
3747 case $depmode in
3748 gcc)
3749 # This depmode causes a compiler race in universal mode.
3750 test "$am__universal" = false || continue
3751 ;;
3752 nosideeffect)
3753 # after this tag, mechanisms are not by side-effect, so they'll
3754 # only be used when explicitly requested
3755 if test "x$enable_dependency_tracking" = xyes; then
3756 continue
3757 else
3758 break
3759 fi
3760 ;;
3761 msvisualcpp | msvcmsys)
3762 # This compiler won't grok `-c -o', but also, the minuso test has
3763 # not run yet. These depmodes are late enough in the game, and
3764 # so weak that their functioning should not be impacted.
3765 am__obj=conftest.${OBJEXT-o}
3766 am__minus_obj=
3767 ;;
3768 none) break ;;
3769 esac
3770 if depmode=$depmode \
3771 source=sub/conftest.c object=$am__obj \
3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3774 >/dev/null 2>conftest.err &&
3775 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3777 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3778 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3779 # icc doesn't choke on unknown options, it will just issue warnings
3780 # or remarks (even with -Werror). So we grep stderr for any message
3781 # that says an option was ignored or not supported.
3782 # When given -MP, icc 7.0 and 7.1 complain thusly:
3783 # icc: Command line warning: ignoring option '-M'; no argument required
3784 # The diagnosis changed in icc 8.0:
3785 # icc: Command line remark: option '-MP' not supported
3786 if (grep 'ignoring option' conftest.err ||
3787 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3788 am_cv_CC_dependencies_compiler_type=$depmode
3789 break
3790 fi
3791 fi
3792 done
3793
3794 cd ..
3795 rm -rf conftest.dir
3796 else
3797 am_cv_CC_dependencies_compiler_type=none
3798 fi
3799
3800 fi
3801 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3802 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3803 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3804
3805 if
3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3808 am__fastdepCC_TRUE=
3809 am__fastdepCC_FALSE='#'
3810 else
3811 am__fastdepCC_TRUE='#'
3812 am__fastdepCC_FALSE=
3813 fi
3814
3815
3816 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3817 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3818 if test "${ac_cv_path_SED+set}" = set; then
3819 $as_echo_n "(cached) " >&6
3820 else
3821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3822 for ac_i in 1 2 3 4 5 6 7; do
3823 ac_script="$ac_script$as_nl$ac_script"
3824 done
3825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3826 $as_unset ac_script || ac_script=
3827 if test -z "$SED"; then
3828 ac_path_SED_found=false
3829 # Loop through the user's path and test for each of PROGNAME-LIST
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_prog in sed gsed; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3838 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3839 # Check for GNU ac_path_SED and select it if it is found.
3840 # Check for GNU $ac_path_SED
3841 case `"$ac_path_SED" --version 2>&1` in
3842 *GNU*)
3843 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3844 *)
3845 ac_count=0
3846 $as_echo_n 0123456789 >"conftest.in"
3847 while :
3848 do
3849 cat "conftest.in" "conftest.in" >"conftest.tmp"
3850 mv "conftest.tmp" "conftest.in"
3851 cp "conftest.in" "conftest.nl"
3852 $as_echo '' >> "conftest.nl"
3853 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3855 ac_count=`expr $ac_count + 1`
3856 if test $ac_count -gt ${ac_path_SED_max-0}; then
3857 # Best one so far, save it but keep looking for a better one
3858 ac_cv_path_SED="$ac_path_SED"
3859 ac_path_SED_max=$ac_count
3860 fi
3861 # 10*(2^10) chars as input seems more than enough
3862 test $ac_count -gt 10 && break
3863 done
3864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3865 esac
3866
3867 $ac_path_SED_found && break 3
3868 done
3869 done
3870 done
3871 IFS=$as_save_IFS
3872 if test -z "$ac_cv_path_SED"; then
3873 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3874 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3875 { (exit 1); exit 1; }; }
3876 fi
3877 else
3878 ac_cv_path_SED=$SED
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3883 $as_echo "$ac_cv_path_SED" >&6; }
3884 SED="$ac_cv_path_SED"
3885 rm -f conftest.sed
3886
3887 test -z "$SED" && SED=sed
3888 Xsed="$SED -e 1s/^X//"
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3901 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3902 if test "${ac_cv_path_GREP+set}" = set; then
3903 $as_echo_n "(cached) " >&6
3904 else
3905 if test -z "$GREP"; then
3906 ac_path_GREP_found=false
3907 # Loop through the user's path and test for each of PROGNAME-LIST
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910 do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_prog in grep ggrep; do
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3916 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3917 # Check for GNU ac_path_GREP and select it if it is found.
3918 # Check for GNU $ac_path_GREP
3919 case `"$ac_path_GREP" --version 2>&1` in
3920 *GNU*)
3921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3922 *)
3923 ac_count=0
3924 $as_echo_n 0123456789 >"conftest.in"
3925 while :
3926 do
3927 cat "conftest.in" "conftest.in" >"conftest.tmp"
3928 mv "conftest.tmp" "conftest.in"
3929 cp "conftest.in" "conftest.nl"
3930 $as_echo 'GREP' >> "conftest.nl"
3931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3933 ac_count=`expr $ac_count + 1`
3934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3935 # Best one so far, save it but keep looking for a better one
3936 ac_cv_path_GREP="$ac_path_GREP"
3937 ac_path_GREP_max=$ac_count
3938 fi
3939 # 10*(2^10) chars as input seems more than enough
3940 test $ac_count -gt 10 && break
3941 done
3942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943 esac
3944
3945 $ac_path_GREP_found && break 3
3946 done
3947 done
3948 done
3949 IFS=$as_save_IFS
3950 if test -z "$ac_cv_path_GREP"; then
3951 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3952 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3953 { (exit 1); exit 1; }; }
3954 fi
3955 else
3956 ac_cv_path_GREP=$GREP
3957 fi
3958
3959 fi
3960 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3961 $as_echo "$ac_cv_path_GREP" >&6; }
3962 GREP="$ac_cv_path_GREP"
3963
3964
3965 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3966 $as_echo_n "checking for egrep... " >&6; }
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3971 then ac_cv_path_EGREP="$GREP -E"
3972 else
3973 if test -z "$EGREP"; then
3974 ac_path_EGREP_found=false
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_prog in egrep; do
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3984 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3985 # Check for GNU ac_path_EGREP and select it if it is found.
3986 # Check for GNU $ac_path_EGREP
3987 case `"$ac_path_EGREP" --version 2>&1` in
3988 *GNU*)
3989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990 *)
3991 ac_count=0
3992 $as_echo_n 0123456789 >"conftest.in"
3993 while :
3994 do
3995 cat "conftest.in" "conftest.in" >"conftest.tmp"
3996 mv "conftest.tmp" "conftest.in"
3997 cp "conftest.in" "conftest.nl"
3998 $as_echo 'EGREP' >> "conftest.nl"
3999 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001 ac_count=`expr $ac_count + 1`
4002 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4003 # Best one so far, save it but keep looking for a better one
4004 ac_cv_path_EGREP="$ac_path_EGREP"
4005 ac_path_EGREP_max=$ac_count
4006 fi
4007 # 10*(2^10) chars as input seems more than enough
4008 test $ac_count -gt 10 && break
4009 done
4010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 esac
4012
4013 $ac_path_EGREP_found && break 3
4014 done
4015 done
4016 done
4017 IFS=$as_save_IFS
4018 if test -z "$ac_cv_path_EGREP"; then
4019 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021 { (exit 1); exit 1; }; }
4022 fi
4023 else
4024 ac_cv_path_EGREP=$EGREP
4025 fi
4026
4027 fi
4028 fi
4029 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030 $as_echo "$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4032
4033
4034 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4035 $as_echo_n "checking for fgrep... " >&6; }
4036 if test "${ac_cv_path_FGREP+set}" = set; then
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4040 then ac_cv_path_FGREP="$GREP -F"
4041 else
4042 if test -z "$FGREP"; then
4043 ac_path_FGREP_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047 do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_prog in fgrep; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4053 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4054 # Check for GNU ac_path_FGREP and select it if it is found.
4055 # Check for GNU $ac_path_FGREP
4056 case `"$ac_path_FGREP" --version 2>&1` in
4057 *GNU*)
4058 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4059 *)
4060 ac_count=0
4061 $as_echo_n 0123456789 >"conftest.in"
4062 while :
4063 do
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
4067 $as_echo 'FGREP' >> "conftest.nl"
4068 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070 ac_count=`expr $ac_count + 1`
4071 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_FGREP="$ac_path_FGREP"
4074 ac_path_FGREP_max=$ac_count
4075 fi
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4078 done
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080 esac
4081
4082 $ac_path_FGREP_found && break 3
4083 done
4084 done
4085 done
4086 IFS=$as_save_IFS
4087 if test -z "$ac_cv_path_FGREP"; then
4088 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4089 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4090 { (exit 1); exit 1; }; }
4091 fi
4092 else
4093 ac_cv_path_FGREP=$FGREP
4094 fi
4095
4096 fi
4097 fi
4098 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4099 $as_echo "$ac_cv_path_FGREP" >&6; }
4100 FGREP="$ac_cv_path_FGREP"
4101
4102
4103 test -z "$GREP" && GREP=grep
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123 # Check whether --with-gnu-ld was given.
4124 if test "${with_gnu_ld+set}" = set; then
4125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4126 else
4127 with_gnu_ld=no
4128 fi
4129
4130 ac_prog=ld
4131 if test "$GCC" = yes; then
4132 # Check if gcc -print-prog-name=ld gives a path.
4133 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4134 $as_echo_n "checking for ld used by $CC... " >&6; }
4135 case $host in
4136 *-*-mingw*)
4137 # gcc leaves a trailing carriage return which upsets mingw
4138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4139 *)
4140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4141 esac
4142 case $ac_prog in
4143 # Accept absolute paths.
4144 [\\/]* | ?:[\\/]*)
4145 re_direlt='/[^/][^/]*/\.\./'
4146 # Canonicalize the pathname of ld
4147 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4148 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4149 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4150 done
4151 test -z "$LD" && LD="$ac_prog"
4152 ;;
4153 "")
4154 # If it fails, then pretend we aren't using GCC.
4155 ac_prog=ld
4156 ;;
4157 *)
4158 # If it is relative, then search for the first ld in PATH.
4159 with_gnu_ld=unknown
4160 ;;
4161 esac
4162 elif test "$with_gnu_ld" = yes; then
4163 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4164 $as_echo_n "checking for GNU ld... " >&6; }
4165 else
4166 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4167 $as_echo_n "checking for non-GNU ld... " >&6; }
4168 fi
4169 if test "${lt_cv_path_LD+set}" = set; then
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -z "$LD"; then
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH; do
4175 IFS="$lt_save_ifs"
4176 test -z "$ac_dir" && ac_dir=.
4177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4178 lt_cv_path_LD="$ac_dir/$ac_prog"
4179 # Check to see if the program is GNU ld. I'd rather use --version,
4180 # but apparently some variants of GNU ld only accept -v.
4181 # Break only if it was the GNU/non-GNU ld that we prefer.
4182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4183 *GNU* | *'with BFD'*)
4184 test "$with_gnu_ld" != no && break
4185 ;;
4186 *)
4187 test "$with_gnu_ld" != yes && break
4188 ;;
4189 esac
4190 fi
4191 done
4192 IFS="$lt_save_ifs"
4193 else
4194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4195 fi
4196 fi
4197
4198 LD="$lt_cv_path_LD"
4199 if test -n "$LD"; then
4200 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4201 $as_echo "$LD" >&6; }
4202 else
4203 { $as_echo "$as_me:$LINENO: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4207 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4208 { (exit 1); exit 1; }; }
4209 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4210 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4212 $as_echo_n "(cached) " >&6
4213 else
4214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4215 case `$LD -v 2>&1 </dev/null` in
4216 *GNU* | *'with BFD'*)
4217 lt_cv_prog_gnu_ld=yes
4218 ;;
4219 *)
4220 lt_cv_prog_gnu_ld=no
4221 ;;
4222 esac
4223 fi
4224 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4225 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4226 with_gnu_ld=$lt_cv_prog_gnu_ld
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4237 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4238 if test "${lt_cv_path_NM+set}" = set; then
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$NM"; then
4242 # Let the user override the test.
4243 lt_cv_path_NM="$NM"
4244 else
4245 lt_nm_to_check="${ac_tool_prefix}nm"
4246 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4247 lt_nm_to_check="$lt_nm_to_check nm"
4248 fi
4249 for lt_tmp_nm in $lt_nm_to_check; do
4250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4251 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4252 IFS="$lt_save_ifs"
4253 test -z "$ac_dir" && ac_dir=.
4254 tmp_nm="$ac_dir/$lt_tmp_nm"
4255 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4256 # Check to see if the nm accepts a BSD-compat flag.
4257 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4258 # nm: unknown option "B" ignored
4259 # Tru64's nm complains that /dev/null is an invalid object file
4260 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4261 */dev/null* | *'Invalid file or object type'*)
4262 lt_cv_path_NM="$tmp_nm -B"
4263 break
4264 ;;
4265 *)
4266 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4267 */dev/null*)
4268 lt_cv_path_NM="$tmp_nm -p"
4269 break
4270 ;;
4271 *)
4272 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4273 continue # so that we can try to find one that supports BSD flags
4274 ;;
4275 esac
4276 ;;
4277 esac
4278 fi
4279 done
4280 IFS="$lt_save_ifs"
4281 done
4282 : ${lt_cv_path_NM=no}
4283 fi
4284 fi
4285 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4286 $as_echo "$lt_cv_path_NM" >&6; }
4287 if test "$lt_cv_path_NM" != "no"; then
4288 NM="$lt_cv_path_NM"
4289 else
4290 # Didn't find any BSD compatible name lister, look for dumpbin.
4291 if test -n "$ac_tool_prefix"; then
4292 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4293 do
4294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4296 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$DUMPBIN"; then
4302 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi
4320 fi
4321 DUMPBIN=$ac_cv_prog_DUMPBIN
4322 if test -n "$DUMPBIN"; then
4323 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4324 $as_echo "$DUMPBIN" >&6; }
4325 else
4326 { $as_echo "$as_me:$LINENO: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330
4331 test -n "$DUMPBIN" && break
4332 done
4333 fi
4334 if test -z "$DUMPBIN"; then
4335 ac_ct_DUMPBIN=$DUMPBIN
4336 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4337 do
4338 # Extract the first word of "$ac_prog", so it can be a program name with args.
4339 set dummy $ac_prog; ac_word=$2
4340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -n "$ac_ct_DUMPBIN"; then
4346 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4347 else
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363 fi
4364 fi
4365 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4366 if test -n "$ac_ct_DUMPBIN"; then
4367 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4368 $as_echo "$ac_ct_DUMPBIN" >&6; }
4369 else
4370 { $as_echo "$as_me:$LINENO: result: no" >&5
4371 $as_echo "no" >&6; }
4372 fi
4373
4374
4375 test -n "$ac_ct_DUMPBIN" && break
4376 done
4377
4378 if test "x$ac_ct_DUMPBIN" = x; then
4379 DUMPBIN=":"
4380 else
4381 case $cross_compiling:$ac_tool_warned in
4382 yes:)
4383 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385 ac_tool_warned=yes ;;
4386 esac
4387 DUMPBIN=$ac_ct_DUMPBIN
4388 fi
4389 fi
4390
4391
4392 if test "$DUMPBIN" != ":"; then
4393 NM="$DUMPBIN"
4394 fi
4395 fi
4396 test -z "$NM" && NM=nm
4397
4398
4399
4400
4401
4402
4403 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4404 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4405 if test "${lt_cv_nm_interface+set}" = set; then
4406 $as_echo_n "(cached) " >&6
4407 else
4408 lt_cv_nm_interface="BSD nm"
4409 echo "int some_variable = 0;" > conftest.$ac_ext
4410 (eval echo "\"\$as_me:4410: $ac_compile\"" >&5)
4411 (eval "$ac_compile" 2>conftest.err)
4412 cat conftest.err >&5
4413 (eval echo "\"\$as_me:4413: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4414 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4415 cat conftest.err >&5
4416 (eval echo "\"\$as_me:4416: output\"" >&5)
4417 cat conftest.out >&5
4418 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4419 lt_cv_nm_interface="MS dumpbin"
4420 fi
4421 rm -f conftest*
4422 fi
4423 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4424 $as_echo "$lt_cv_nm_interface" >&6; }
4425
4426 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4427 $as_echo_n "checking whether ln -s works... " >&6; }
4428 LN_S=$as_ln_s
4429 if test "$LN_S" = "ln -s"; then
4430 { $as_echo "$as_me:$LINENO: result: yes" >&5
4431 $as_echo "yes" >&6; }
4432 else
4433 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4434 $as_echo "no, using $LN_S" >&6; }
4435 fi
4436
4437 # find the maximum length of command line arguments
4438 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4439 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4440 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4441 $as_echo_n "(cached) " >&6
4442 else
4443 i=0
4444 teststring="ABCD"
4445
4446 case $build_os in
4447 msdosdjgpp*)
4448 # On DJGPP, this test can blow up pretty badly due to problems in libc
4449 # (any single argument exceeding 2000 bytes causes a buffer overrun
4450 # during glob expansion). Even if it were fixed, the result of this
4451 # check would be larger than it should be.
4452 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4453 ;;
4454
4455 gnu*)
4456 # Under GNU Hurd, this test is not required because there is
4457 # no limit to the length of command line arguments.
4458 # Libtool will interpret -1 as no limit whatsoever
4459 lt_cv_sys_max_cmd_len=-1;
4460 ;;
4461
4462 cygwin* | mingw* | cegcc*)
4463 # On Win9x/ME, this test blows up -- it succeeds, but takes
4464 # about 5 minutes as the teststring grows exponentially.
4465 # Worse, since 9x/ME are not pre-emptively multitasking,
4466 # you end up with a "frozen" computer, even though with patience
4467 # the test eventually succeeds (with a max line length of 256k).
4468 # Instead, let's just punt: use the minimum linelength reported by
4469 # all of the supported platforms: 8192 (on NT/2K/XP).
4470 lt_cv_sys_max_cmd_len=8192;
4471 ;;
4472
4473 amigaos*)
4474 # On AmigaOS with pdksh, this test takes hours, literally.
4475 # So we just punt and use a minimum line length of 8192.
4476 lt_cv_sys_max_cmd_len=8192;
4477 ;;
4478
4479 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4480 # This has been around since 386BSD, at least. Likely further.
4481 if test -x /sbin/sysctl; then
4482 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4483 elif test -x /usr/sbin/sysctl; then
4484 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4485 else
4486 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4487 fi
4488 # And add a safety zone
4489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4491 ;;
4492
4493 interix*)
4494 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4495 lt_cv_sys_max_cmd_len=196608
4496 ;;
4497
4498 osf*)
4499 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4500 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4501 # nice to cause kernel panics so lets avoid the loop below.
4502 # First set a reasonable default.
4503 lt_cv_sys_max_cmd_len=16384
4504 #
4505 if test -x /sbin/sysconfig; then
4506 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4507 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4508 esac
4509 fi
4510 ;;
4511 sco3.2v5*)
4512 lt_cv_sys_max_cmd_len=102400
4513 ;;
4514 sysv5* | sco5v6* | sysv4.2uw2*)
4515 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4516 if test -n "$kargmax"; then
4517 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4518 else
4519 lt_cv_sys_max_cmd_len=32768
4520 fi
4521 ;;
4522 *)
4523 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4524 if test -n "$lt_cv_sys_max_cmd_len"; then
4525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4527 else
4528 # Make teststring a little bigger before we do anything with it.
4529 # a 1K string should be a reasonable start.
4530 for i in 1 2 3 4 5 6 7 8 ; do
4531 teststring=$teststring$teststring
4532 done
4533 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4534 # If test is not a shell built-in, we'll probably end up computing a
4535 # maximum length that is only half of the actual maximum length, but
4536 # we can't tell.
4537 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4538 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4539 test $i != 17 # 1/2 MB should be enough
4540 do
4541 i=`expr $i + 1`
4542 teststring=$teststring$teststring
4543 done
4544 # Only check the string length outside the loop.
4545 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4546 teststring=
4547 # Add a significant safety factor because C++ compilers can tack on
4548 # massive amounts of additional arguments before passing them to the
4549 # linker. It appears as though 1/2 is a usable value.
4550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4551 fi
4552 ;;
4553 esac
4554
4555 fi
4556
4557 if test -n $lt_cv_sys_max_cmd_len ; then
4558 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4559 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4560 else
4561 { $as_echo "$as_me:$LINENO: result: none" >&5
4562 $as_echo "none" >&6; }
4563 fi
4564 max_cmd_len=$lt_cv_sys_max_cmd_len
4565
4566
4567
4568
4569
4570
4571 : ${CP="cp -f"}
4572 : ${MV="mv -f"}
4573 : ${RM="rm -f"}
4574
4575 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4576 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4577 # Try some XSI features
4578 xsi_shell=no
4579 ( _lt_dummy="a/b/c"
4580 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4581 = c,a/b,, \
4582 && eval 'test $(( 1 + 1 )) -eq 2 \
4583 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4584 && xsi_shell=yes
4585 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4586 $as_echo "$xsi_shell" >&6; }
4587
4588
4589 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4590 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4591 lt_shell_append=no
4592 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4593 >/dev/null 2>&1 \
4594 && lt_shell_append=yes
4595 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4596 $as_echo "$lt_shell_append" >&6; }
4597
4598
4599 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4600 lt_unset=unset
4601 else
4602 lt_unset=false
4603 fi
4604
4605
4606
4607
4608
4609 # test EBCDIC or ASCII
4610 case `echo X|tr X '\101'` in
4611 A) # ASCII based system
4612 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4613 lt_SP2NL='tr \040 \012'
4614 lt_NL2SP='tr \015\012 \040\040'
4615 ;;
4616 *) # EBCDIC based system
4617 lt_SP2NL='tr \100 \n'
4618 lt_NL2SP='tr \r\n \100\100'
4619 ;;
4620 esac
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4631 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4632 if test "${lt_cv_ld_reload_flag+set}" = set; then
4633 $as_echo_n "(cached) " >&6
4634 else
4635 lt_cv_ld_reload_flag='-r'
4636 fi
4637 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4638 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4639 reload_flag=$lt_cv_ld_reload_flag
4640 case $reload_flag in
4641 "" | " "*) ;;
4642 *) reload_flag=" $reload_flag" ;;
4643 esac
4644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4645 case $host_os in
4646 darwin*)
4647 if test "$GCC" = yes; then
4648 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4649 else
4650 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4651 fi
4652 ;;
4653 esac
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663 if test -n "$ac_tool_prefix"; then
4664 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4665 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$OBJDUMP"; then
4672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 OBJDUMP=$ac_cv_prog_OBJDUMP
4692 if test -n "$OBJDUMP"; then
4693 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4694 $as_echo "$OBJDUMP" >&6; }
4695 else
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700
4701 fi
4702 if test -z "$ac_cv_prog_OBJDUMP"; then
4703 ac_ct_OBJDUMP=$OBJDUMP
4704 # Extract the first word of "objdump", so it can be a program name with args.
4705 set dummy objdump; ac_word=$2
4706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$ac_ct_OBJDUMP"; then
4712 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4732 if test -n "$ac_ct_OBJDUMP"; then
4733 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4734 $as_echo "$ac_ct_OBJDUMP" >&6; }
4735 else
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4738 fi
4739
4740 if test "x$ac_ct_OBJDUMP" = x; then
4741 OBJDUMP="false"
4742 else
4743 case $cross_compiling:$ac_tool_warned in
4744 yes:)
4745 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4747 ac_tool_warned=yes ;;
4748 esac
4749 OBJDUMP=$ac_ct_OBJDUMP
4750 fi
4751 else
4752 OBJDUMP="$ac_cv_prog_OBJDUMP"
4753 fi
4754
4755 test -z "$OBJDUMP" && OBJDUMP=objdump
4756
4757
4758
4759
4760
4761
4762 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4763 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4764 if test "${lt_cv_deplibs_check_method+set}" = set; then
4765 $as_echo_n "(cached) " >&6
4766 else
4767 lt_cv_file_magic_cmd='$MAGIC_CMD'
4768 lt_cv_file_magic_test_file=
4769 lt_cv_deplibs_check_method='unknown'
4770 # Need to set the preceding variable on all platforms that support
4771 # interlibrary dependencies.
4772 # 'none' -- dependencies not supported.
4773 # `unknown' -- same as none, but documents that we really don't know.
4774 # 'pass_all' -- all dependencies passed with no checks.
4775 # 'test_compile' -- check by making test program.
4776 # 'file_magic [[regex]]' -- check by looking for files in library path
4777 # which responds to the $file_magic_cmd with a given extended regex.
4778 # If you have `file' or equivalent on your system and you're not sure
4779 # whether `pass_all' will *always* work, you probably want this one.
4780
4781 case $host_os in
4782 aix[4-9]*)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
4785
4786 beos*)
4787 lt_cv_deplibs_check_method=pass_all
4788 ;;
4789
4790 bsdi[45]*)
4791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4792 lt_cv_file_magic_cmd='/usr/bin/file -L'
4793 lt_cv_file_magic_test_file=/shlib/libc.so
4794 ;;
4795
4796 cygwin*)
4797 # func_win32_libid is a shell function defined in ltmain.sh
4798 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4799 lt_cv_file_magic_cmd='func_win32_libid'
4800 ;;
4801
4802 mingw* | pw32*)
4803 # Base MSYS/MinGW do not provide the 'file' command needed by
4804 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4805 # unless we find 'file', for example because we are cross-compiling.
4806 if ( file / ) >/dev/null 2>&1; then
4807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4808 lt_cv_file_magic_cmd='func_win32_libid'
4809 else
4810 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4811 lt_cv_file_magic_cmd='$OBJDUMP -f'
4812 fi
4813 ;;
4814
4815 cegcc)
4816 # use the weaker test based on 'objdump'. See mingw*.
4817 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4818 lt_cv_file_magic_cmd='$OBJDUMP -f'
4819 ;;
4820
4821 darwin* | rhapsody*)
4822 lt_cv_deplibs_check_method=pass_all
4823 ;;
4824
4825 freebsd* | dragonfly*)
4826 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4827 case $host_cpu in
4828 i*86 )
4829 # Not sure whether the presence of OpenBSD here was a mistake.
4830 # Let's accept both of them until this is cleared up.
4831 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4832 lt_cv_file_magic_cmd=/usr/bin/file
4833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4834 ;;
4835 esac
4836 else
4837 lt_cv_deplibs_check_method=pass_all
4838 fi
4839 ;;
4840
4841 gnu*)
4842 lt_cv_deplibs_check_method=pass_all
4843 ;;
4844
4845 hpux10.20* | hpux11*)
4846 lt_cv_file_magic_cmd=/usr/bin/file
4847 case $host_cpu in
4848 ia64*)
4849 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4850 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4851 ;;
4852 hppa*64*)
4853 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]'
4854 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4855 ;;
4856 *)
4857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4858 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4859 ;;
4860 esac
4861 ;;
4862
4863 interix[3-9]*)
4864 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4866 ;;
4867
4868 irix5* | irix6* | nonstopux*)
4869 case $LD in
4870 *-32|*"-32 ") libmagic=32-bit;;
4871 *-n32|*"-n32 ") libmagic=N32;;
4872 *-64|*"-64 ") libmagic=64-bit;;
4873 *) libmagic=never-match;;
4874 esac
4875 lt_cv_deplibs_check_method=pass_all
4876 ;;
4877
4878 # This must be Linux ELF.
4879 linux* | k*bsd*-gnu)
4880 lt_cv_deplibs_check_method=pass_all
4881 ;;
4882
4883 netbsd*)
4884 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4886 else
4887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4888 fi
4889 ;;
4890
4891 newos6*)
4892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4893 lt_cv_file_magic_cmd=/usr/bin/file
4894 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4895 ;;
4896
4897 *nto* | *qnx*)
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
4900
4901 openbsd*)
4902 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4904 else
4905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4906 fi
4907 ;;
4908
4909 osf3* | osf4* | osf5*)
4910 lt_cv_deplibs_check_method=pass_all
4911 ;;
4912
4913 rdos*)
4914 lt_cv_deplibs_check_method=pass_all
4915 ;;
4916
4917 solaris*)
4918 lt_cv_deplibs_check_method=pass_all
4919 ;;
4920
4921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4922 lt_cv_deplibs_check_method=pass_all
4923 ;;
4924
4925 sysv4 | sysv4.3*)
4926 case $host_vendor in
4927 motorola)
4928 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]'
4929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4930 ;;
4931 ncr)
4932 lt_cv_deplibs_check_method=pass_all
4933 ;;
4934 sequent)
4935 lt_cv_file_magic_cmd='/bin/file'
4936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4937 ;;
4938 sni)
4939 lt_cv_file_magic_cmd='/bin/file'
4940 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4941 lt_cv_file_magic_test_file=/lib/libc.so
4942 ;;
4943 siemens)
4944 lt_cv_deplibs_check_method=pass_all
4945 ;;
4946 pc)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949 esac
4950 ;;
4951
4952 tpf*)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
4955 esac
4956
4957 fi
4958 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4959 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4960 file_magic_cmd=$lt_cv_file_magic_cmd
4961 deplibs_check_method=$lt_cv_deplibs_check_method
4962 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}ar; ac_word=$2
4978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_prog_AR+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$AR"; then
4984 ac_cv_prog_AR="$AR" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_AR="${ac_tool_prefix}ar"
4994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997 done
4998 done
4999 IFS=$as_save_IFS
5000
5001 fi
5002 fi
5003 AR=$ac_cv_prog_AR
5004 if test -n "$AR"; then
5005 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5006 $as_echo "$AR" >&6; }
5007 else
5008 { $as_echo "$as_me:$LINENO: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012
5013 fi
5014 if test -z "$ac_cv_prog_AR"; then
5015 ac_ct_AR=$AR
5016 # Extract the first word of "ar", so it can be a program name with args.
5017 set dummy ar; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$ac_ct_AR"; then
5024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_ac_ct_AR="ar"
5034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5044 if test -n "$ac_ct_AR"; then
5045 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5046 $as_echo "$ac_ct_AR" >&6; }
5047 else
5048 { $as_echo "$as_me:$LINENO: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051
5052 if test "x$ac_ct_AR" = x; then
5053 AR="false"
5054 else
5055 case $cross_compiling:$ac_tool_warned in
5056 yes:)
5057 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059 ac_tool_warned=yes ;;
5060 esac
5061 AR=$ac_ct_AR
5062 fi
5063 else
5064 AR="$ac_cv_prog_AR"
5065 fi
5066
5067 test -z "$AR" && AR=ar
5068 test -z "$AR_FLAGS" && AR_FLAGS=cru
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080 if test -n "$ac_tool_prefix"; then
5081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5082 set dummy ${ac_tool_prefix}strip; ac_word=$2
5083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_STRIP+set}" = set; then
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$STRIP"; then
5089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102 done
5103 done
5104 IFS=$as_save_IFS
5105
5106 fi
5107 fi
5108 STRIP=$ac_cv_prog_STRIP
5109 if test -n "$STRIP"; then
5110 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5111 $as_echo "$STRIP" >&6; }
5112 else
5113 { $as_echo "$as_me:$LINENO: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116
5117
5118 fi
5119 if test -z "$ac_cv_prog_STRIP"; then
5120 ac_ct_STRIP=$STRIP
5121 # Extract the first word of "strip", so it can be a program name with args.
5122 set dummy strip; ac_word=$2
5123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$ac_ct_STRIP"; then
5129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_ac_ct_STRIP="strip"
5139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5149 if test -n "$ac_ct_STRIP"; then
5150 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5151 $as_echo "$ac_ct_STRIP" >&6; }
5152 else
5153 { $as_echo "$as_me:$LINENO: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157 if test "x$ac_ct_STRIP" = x; then
5158 STRIP=":"
5159 else
5160 case $cross_compiling:$ac_tool_warned in
5161 yes:)
5162 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164 ac_tool_warned=yes ;;
5165 esac
5166 STRIP=$ac_ct_STRIP
5167 fi
5168 else
5169 STRIP="$ac_cv_prog_STRIP"
5170 fi
5171
5172 test -z "$STRIP" && STRIP=:
5173
5174
5175
5176
5177
5178
5179 if test -n "$ac_tool_prefix"; then
5180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_prog_RANLIB+set}" = set; then
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$RANLIB"; then
5188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 fi
5206 fi
5207 RANLIB=$ac_cv_prog_RANLIB
5208 if test -n "$RANLIB"; then
5209 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5210 $as_echo "$RANLIB" >&6; }
5211 else
5212 { $as_echo "$as_me:$LINENO: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216
5217 fi
5218 if test -z "$ac_cv_prog_RANLIB"; then
5219 ac_ct_RANLIB=$RANLIB
5220 # Extract the first word of "ranlib", so it can be a program name with args.
5221 set dummy ranlib; ac_word=$2
5222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5225 $as_echo_n "(cached) " >&6
5226 else
5227 if test -n "$ac_ct_RANLIB"; then
5228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_ac_ct_RANLIB="ranlib"
5238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241 done
5242 done
5243 IFS=$as_save_IFS
5244
5245 fi
5246 fi
5247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5248 if test -n "$ac_ct_RANLIB"; then
5249 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5250 $as_echo "$ac_ct_RANLIB" >&6; }
5251 else
5252 { $as_echo "$as_me:$LINENO: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255
5256 if test "x$ac_ct_RANLIB" = x; then
5257 RANLIB=":"
5258 else
5259 case $cross_compiling:$ac_tool_warned in
5260 yes:)
5261 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263 ac_tool_warned=yes ;;
5264 esac
5265 RANLIB=$ac_ct_RANLIB
5266 fi
5267 else
5268 RANLIB="$ac_cv_prog_RANLIB"
5269 fi
5270
5271 test -z "$RANLIB" && RANLIB=:
5272
5273
5274
5275
5276
5277
5278 # Determine commands to create old-style static archives.
5279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5280 old_postinstall_cmds='chmod 644 $oldlib'
5281 old_postuninstall_cmds=
5282
5283 if test -n "$RANLIB"; then
5284 case $host_os in
5285 openbsd*)
5286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5287 ;;
5288 *)
5289 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5290 ;;
5291 esac
5292 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5293 fi
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
5327
5328 # If no C compiler was specified, use CC.
5329 LTCC=${LTCC-"$CC"}
5330
5331 # If no C compiler flags were specified, use CFLAGS.
5332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5333
5334 # Allow CC to be a program name with arguments.
5335 compiler=$CC
5336
5337
5338 # Check for command to grab the raw symbol name followed by C symbol from nm.
5339 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5340 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5341 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5343 else
5344
5345 # These are sane defaults that work on at least a few old systems.
5346 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5347
5348 # Character class describing NM global symbol codes.
5349 symcode='[BCDEGRST]'
5350
5351 # Regexp to match symbols that can be accessed directly from C.
5352 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5353
5354 # Define system-specific variables.
5355 case $host_os in
5356 aix*)
5357 symcode='[BCDT]'
5358 ;;
5359 cygwin* | mingw* | pw32* | cegcc*)
5360 symcode='[ABCDGISTW]'
5361 ;;
5362 hpux*)
5363 if test "$host_cpu" = ia64; then
5364 symcode='[ABCDEGRST]'
5365 fi
5366 ;;
5367 irix* | nonstopux*)
5368 symcode='[BCDEGRST]'
5369 ;;
5370 osf*)
5371 symcode='[BCDEGQRST]'
5372 ;;
5373 solaris*)
5374 symcode='[BDRT]'
5375 ;;
5376 sco3.2v5*)
5377 symcode='[DT]'
5378 ;;
5379 sysv4.2uw2*)
5380 symcode='[DT]'
5381 ;;
5382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5383 symcode='[ABDT]'
5384 ;;
5385 sysv4)
5386 symcode='[DFNSTU]'
5387 ;;
5388 esac
5389
5390 # If we're using GNU nm, then use its standard symbol codes.
5391 case `$NM -V 2>&1` in
5392 *GNU* | *'with BFD'*)
5393 symcode='[ABCDGIRSTW]' ;;
5394 esac
5395
5396 # Transform an extracted symbol line into a proper C declaration.
5397 # Some systems (esp. on ia64) link data and code symbols differently,
5398 # so use this general approach.
5399 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5400
5401 # Transform an extracted symbol line into symbol name and symbol address
5402 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5403 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'"
5404
5405 # Handle CRLF in mingw tool chain
5406 opt_cr=
5407 case $build_os in
5408 mingw*)
5409 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5410 ;;
5411 esac
5412
5413 # Try without a prefix underscore, then with it.
5414 for ac_symprfx in "" "_"; do
5415
5416 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5417 symxfrm="\\1 $ac_symprfx\\2 \\2"
5418
5419 # Write the raw and C identifiers.
5420 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5421 # Fake it for dumpbin and say T for any non-static function
5422 # and D for any global variable.
5423 # Also find C++ and __fastcall symbols from MSVC++,
5424 # which start with @ or ?.
5425 lt_cv_sys_global_symbol_pipe="$AWK '"\
5426 " {last_section=section; section=\$ 3};"\
5427 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5428 " \$ 0!~/External *\|/{next};"\
5429 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5430 " {if(hide[section]) next};"\
5431 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5432 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5433 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5434 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5435 " ' prfx=^$ac_symprfx"
5436 else
5437 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5438 fi
5439
5440 # Check to see that the pipe works correctly.
5441 pipe_works=no
5442
5443 rm -f conftest*
5444 cat > conftest.$ac_ext <<_LT_EOF
5445 #ifdef __cplusplus
5446 extern "C" {
5447 #endif
5448 char nm_test_var;
5449 void nm_test_func(void);
5450 void nm_test_func(void){}
5451 #ifdef __cplusplus
5452 }
5453 #endif
5454 int main(){nm_test_var='a';nm_test_func();return(0);}
5455 _LT_EOF
5456
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>&5
5459 ac_status=$?
5460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; then
5462 # Now try to grab the symbols.
5463 nlist=conftest.nm
5464 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5465 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && test -s "$nlist"; then
5469 # Try sorting and uniquifying the output.
5470 if sort "$nlist" | uniq > "$nlist"T; then
5471 mv -f "$nlist"T "$nlist"
5472 else
5473 rm -f "$nlist"T
5474 fi
5475
5476 # Make sure that we snagged all the symbols we need.
5477 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5478 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5479 cat <<_LT_EOF > conftest.$ac_ext
5480 #ifdef __cplusplus
5481 extern "C" {
5482 #endif
5483
5484 _LT_EOF
5485 # Now generate the symbol file.
5486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5487
5488 cat <<_LT_EOF >> conftest.$ac_ext
5489
5490 /* The mapping between symbol names and symbols. */
5491 const struct {
5492 const char *name;
5493 void *address;
5494 }
5495 lt__PROGRAM__LTX_preloaded_symbols[] =
5496 {
5497 { "@PROGRAM@", (void *) 0 },
5498 _LT_EOF
5499 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5500 cat <<\_LT_EOF >> conftest.$ac_ext
5501 {0, (void *) 0}
5502 };
5503
5504 /* This works around a problem in FreeBSD linker */
5505 #ifdef FREEBSD_WORKAROUND
5506 static const void *lt_preloaded_setup() {
5507 return lt__PROGRAM__LTX_preloaded_symbols;
5508 }
5509 #endif
5510
5511 #ifdef __cplusplus
5512 }
5513 #endif
5514 _LT_EOF
5515 # Now try linking the two files.
5516 mv conftest.$ac_objext conftstm.$ac_objext
5517 lt_save_LIBS="$LIBS"
5518 lt_save_CFLAGS="$CFLAGS"
5519 LIBS="conftstm.$ac_objext"
5520 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522 (eval $ac_link) 2>&5
5523 ac_status=$?
5524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5526 pipe_works=yes
5527 fi
5528 LIBS="$lt_save_LIBS"
5529 CFLAGS="$lt_save_CFLAGS"
5530 else
5531 echo "cannot find nm_test_func in $nlist" >&5
5532 fi
5533 else
5534 echo "cannot find nm_test_var in $nlist" >&5
5535 fi
5536 else
5537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5538 fi
5539 else
5540 echo "$progname: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5542 fi
5543 rm -rf conftest* conftst*
5544
5545 # Do not use the global_symbol_pipe unless it works.
5546 if test "$pipe_works" = yes; then
5547 break
5548 else
5549 lt_cv_sys_global_symbol_pipe=
5550 fi
5551 done
5552
5553 fi
5554
5555 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5556 lt_cv_sys_global_symbol_to_cdecl=
5557 fi
5558 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5559 { $as_echo "$as_me:$LINENO: result: failed" >&5
5560 $as_echo "failed" >&6; }
5561 else
5562 { $as_echo "$as_me:$LINENO: result: ok" >&5
5563 $as_echo "ok" >&6; }
5564 fi
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588 # Check whether --enable-libtool-lock was given.
5589 if test "${enable_libtool_lock+set}" = set; then
5590 enableval=$enable_libtool_lock;
5591 fi
5592
5593 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5594
5595 # Some flags need to be propagated to the compiler or linker for good
5596 # libtool support.
5597 case $host in
5598 ia64-*-hpux*)
5599 # Find out which ABI we are using.
5600 echo 'int i;' > conftest.$ac_ext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>&5
5603 ac_status=$?
5604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; then
5606 case `/usr/bin/file conftest.$ac_objext` in
5607 *ELF-32*)
5608 HPUX_IA64_MODE="32"
5609 ;;
5610 *ELF-64*)
5611 HPUX_IA64_MODE="64"
5612 ;;
5613 esac
5614 fi
5615 rm -rf conftest*
5616 ;;
5617 *-*-irix6*)
5618 # Find out which ABI we are using.
5619 echo '#line 5619 "configure"' > conftest.$ac_ext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5622 ac_status=$?
5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; then
5625 if test "$lt_cv_prog_gnu_ld" = yes; then
5626 case `/usr/bin/file conftest.$ac_objext` in
5627 *32-bit*)
5628 LD="${LD-ld} -melf32bsmip"
5629 ;;
5630 *N32*)
5631 LD="${LD-ld} -melf32bmipn32"
5632 ;;
5633 *64-bit*)
5634 LD="${LD-ld} -melf64bmip"
5635 ;;
5636 esac
5637 else
5638 case `/usr/bin/file conftest.$ac_objext` in
5639 *32-bit*)
5640 LD="${LD-ld} -32"
5641 ;;
5642 *N32*)
5643 LD="${LD-ld} -n32"
5644 ;;
5645 *64-bit*)
5646 LD="${LD-ld} -64"
5647 ;;
5648 esac
5649 fi
5650 fi
5651 rm -rf conftest*
5652 ;;
5653
5654 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5655 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5656 # Find out which ABI we are using.
5657 echo 'int i;' > conftest.$ac_ext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>&5
5660 ac_status=$?
5661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; then
5663 case `/usr/bin/file conftest.o` in
5664 *32-bit*)
5665 case $host in
5666 x86_64-*kfreebsd*-gnu)
5667 LD="${LD-ld} -m elf_i386_fbsd"
5668 ;;
5669 x86_64-*linux*)
5670 LD="${LD-ld} -m elf_i386"
5671 ;;
5672 ppc64-*linux*|powerpc64-*linux*)
5673 LD="${LD-ld} -m elf32ppclinux"
5674 ;;
5675 s390x-*linux*)
5676 LD="${LD-ld} -m elf_s390"
5677 ;;
5678 sparc64-*linux*)
5679 LD="${LD-ld} -m elf32_sparc"
5680 ;;
5681 esac
5682 ;;
5683 *64-bit*)
5684 case $host in
5685 x86_64-*kfreebsd*-gnu)
5686 LD="${LD-ld} -m elf_x86_64_fbsd"
5687 ;;
5688 x86_64-*linux*)
5689 LD="${LD-ld} -m elf_x86_64"
5690 ;;
5691 ppc*-*linux*|powerpc*-*linux*)
5692 LD="${LD-ld} -m elf64ppc"
5693 ;;
5694 s390*-*linux*|s390*-*tpf*)
5695 LD="${LD-ld} -m elf64_s390"
5696 ;;
5697 sparc*-*linux*)
5698 LD="${LD-ld} -m elf64_sparc"
5699 ;;
5700 esac
5701 ;;
5702 esac
5703 fi
5704 rm -rf conftest*
5705 ;;
5706
5707 *-*-sco3.2v5*)
5708 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5709 SAVE_CFLAGS="$CFLAGS"
5710 CFLAGS="$CFLAGS -belf"
5711 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5712 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5713 if test "${lt_cv_cc_needs_belf+set}" = set; then
5714 $as_echo_n "(cached) " >&6
5715 else
5716 ac_ext=c
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728
5729 int
5730 main ()
5731 {
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_link") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest$ac_exeext && {
5755 test "$cross_compiling" = yes ||
5756 $as_test_x conftest$ac_exeext
5757 }; then
5758 lt_cv_cc_needs_belf=yes
5759 else
5760 $as_echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 lt_cv_cc_needs_belf=no
5764 fi
5765
5766 rm -rf conftest.dSYM
5767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5768 conftest$ac_exeext conftest.$ac_ext
5769 ac_ext=c
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774
5775 fi
5776 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5777 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5778 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5779 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5780 CFLAGS="$SAVE_CFLAGS"
5781 fi
5782 ;;
5783 sparc*-*solaris*)
5784 # Find out which ABI we are using.
5785 echo 'int i;' > conftest.$ac_ext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>&5
5788 ac_status=$?
5789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; then
5791 case `/usr/bin/file conftest.o` in
5792 *64-bit*)
5793 case $lt_cv_prog_gnu_ld in
5794 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5795 *)
5796 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5797 LD="${LD-ld} -64"
5798 fi
5799 ;;
5800 esac
5801 ;;
5802 esac
5803 fi
5804 rm -rf conftest*
5805 ;;
5806 esac
5807
5808 need_locks="$enable_libtool_lock"
5809
5810
5811 case $host_os in
5812 rhapsody* | darwin*)
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5815 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$DSYMUTIL"; then
5822 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5842 if test -n "$DSYMUTIL"; then
5843 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5844 $as_echo "$DSYMUTIL" >&6; }
5845 else
5846 { $as_echo "$as_me:$LINENO: result: no" >&5
5847 $as_echo "no" >&6; }
5848 fi
5849
5850
5851 fi
5852 if test -z "$ac_cv_prog_DSYMUTIL"; then
5853 ac_ct_DSYMUTIL=$DSYMUTIL
5854 # Extract the first word of "dsymutil", so it can be a program name with args.
5855 set dummy dsymutil; ac_word=$2
5856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$ac_ct_DSYMUTIL"; then
5862 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5882 if test -n "$ac_ct_DSYMUTIL"; then
5883 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5884 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5885 else
5886 { $as_echo "$as_me:$LINENO: result: no" >&5
5887 $as_echo "no" >&6; }
5888 fi
5889
5890 if test "x$ac_ct_DSYMUTIL" = x; then
5891 DSYMUTIL=":"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894 yes:)
5895 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897 ac_tool_warned=yes ;;
5898 esac
5899 DSYMUTIL=$ac_ct_DSYMUTIL
5900 fi
5901 else
5902 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5903 fi
5904
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$NMEDIT"; then
5914 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 NMEDIT=$ac_cv_prog_NMEDIT
5934 if test -n "$NMEDIT"; then
5935 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5936 $as_echo "$NMEDIT" >&6; }
5937 else
5938 { $as_echo "$as_me:$LINENO: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942
5943 fi
5944 if test -z "$ac_cv_prog_NMEDIT"; then
5945 ac_ct_NMEDIT=$NMEDIT
5946 # Extract the first word of "nmedit", so it can be a program name with args.
5947 set dummy nmedit; ac_word=$2
5948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if test -n "$ac_ct_NMEDIT"; then
5954 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967 done
5968 done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5974 if test -n "$ac_ct_NMEDIT"; then
5975 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5976 $as_echo "$ac_ct_NMEDIT" >&6; }
5977 else
5978 { $as_echo "$as_me:$LINENO: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982 if test "x$ac_ct_NMEDIT" = x; then
5983 NMEDIT=":"
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986 yes:)
5987 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991 NMEDIT=$ac_ct_NMEDIT
5992 fi
5993 else
5994 NMEDIT="$ac_cv_prog_NMEDIT"
5995 fi
5996
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if test "${ac_cv_prog_LIPO+set}" = set; then
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test -n "$LIPO"; then
6006 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 LIPO=$ac_cv_prog_LIPO
6026 if test -n "$LIPO"; then
6027 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6028 $as_echo "$LIPO" >&6; }
6029 else
6030 { $as_echo "$as_me:$LINENO: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_LIPO"; then
6037 ac_ct_LIPO=$LIPO
6038 # Extract the first word of "lipo", so it can be a program name with args.
6039 set dummy lipo; ac_word=$2
6040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$ac_ct_LIPO"; then
6046 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_LIPO="lipo"
6056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6066 if test -n "$ac_ct_LIPO"; then
6067 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6068 $as_echo "$ac_ct_LIPO" >&6; }
6069 else
6070 { $as_echo "$as_me:$LINENO: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074 if test "x$ac_ct_LIPO" = x; then
6075 LIPO=":"
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6082 esac
6083 LIPO=$ac_ct_LIPO
6084 fi
6085 else
6086 LIPO="$ac_cv_prog_LIPO"
6087 fi
6088
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}otool; ac_word=$2
6092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if test "${ac_cv_prog_OTOOL+set}" = set; then
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$OTOOL"; then
6098 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 OTOOL=$ac_cv_prog_OTOOL
6118 if test -n "$OTOOL"; then
6119 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6120 $as_echo "$OTOOL" >&6; }
6121 else
6122 { $as_echo "$as_me:$LINENO: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125
6126
6127 fi
6128 if test -z "$ac_cv_prog_OTOOL"; then
6129 ac_ct_OTOOL=$OTOOL
6130 # Extract the first word of "otool", so it can be a program name with args.
6131 set dummy otool; ac_word=$2
6132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$ac_ct_OTOOL"; then
6138 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_ac_ct_OTOOL="otool"
6148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6158 if test -n "$ac_ct_OTOOL"; then
6159 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6160 $as_echo "$ac_ct_OTOOL" >&6; }
6161 else
6162 { $as_echo "$as_me:$LINENO: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166 if test "x$ac_ct_OTOOL" = x; then
6167 OTOOL=":"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170 yes:)
6171 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173 ac_tool_warned=yes ;;
6174 esac
6175 OTOOL=$ac_ct_OTOOL
6176 fi
6177 else
6178 OTOOL="$ac_cv_prog_OTOOL"
6179 fi
6180
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$OTOOL64"; then
6190 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 OTOOL64=$ac_cv_prog_OTOOL64
6210 if test -n "$OTOOL64"; then
6211 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6212 $as_echo "$OTOOL64" >&6; }
6213 else
6214 { $as_echo "$as_me:$LINENO: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219 fi
6220 if test -z "$ac_cv_prog_OTOOL64"; then
6221 ac_ct_OTOOL64=$OTOOL64
6222 # Extract the first word of "otool64", so it can be a program name with args.
6223 set dummy otool64; ac_word=$2
6224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$ac_ct_OTOOL64"; then
6230 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_OTOOL64="otool64"
6240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6250 if test -n "$ac_ct_OTOOL64"; then
6251 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6252 $as_echo "$ac_ct_OTOOL64" >&6; }
6253 else
6254 { $as_echo "$as_me:$LINENO: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258 if test "x$ac_ct_OTOOL64" = x; then
6259 OTOOL64=":"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267 OTOOL64=$ac_ct_OTOOL64
6268 fi
6269 else
6270 OTOOL64="$ac_cv_prog_OTOOL64"
6271 fi
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
6298
6299 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6300 $as_echo_n "checking for -single_module linker flag... " >&6; }
6301 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6303 else
6304 lt_cv_apple_cc_single_mod=no
6305 if test -z "${LT_MULTI_MODULE}"; then
6306 # By default we will add the -single_module flag. You can override
6307 # by either setting the environment variable LT_MULTI_MODULE
6308 # non-empty at configure time, or by adding -multi_module to the
6309 # link flags.
6310 rm -rf libconftest.dylib*
6311 echo "int foo(void){return 1;}" > conftest.c
6312 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6313 -dynamiclib -Wl,-single_module conftest.c" >&5
6314 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6315 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6316 _lt_result=$?
6317 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6318 lt_cv_apple_cc_single_mod=yes
6319 else
6320 cat conftest.err >&5
6321 fi
6322 rm -rf libconftest.dylib*
6323 rm -f conftest.*
6324 fi
6325 fi
6326 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6327 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6328 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6329 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6330 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6332 else
6333 lt_cv_ld_exported_symbols_list=no
6334 save_LDFLAGS=$LDFLAGS
6335 echo "_main" > conftest.sym
6336 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343
6344 int
6345 main ()
6346 {
6347
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (ac_try="$ac_link"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_link") 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest$ac_exeext && {
6370 test "$cross_compiling" = yes ||
6371 $as_test_x conftest$ac_exeext
6372 }; then
6373 lt_cv_ld_exported_symbols_list=yes
6374 else
6375 $as_echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 lt_cv_ld_exported_symbols_list=no
6379 fi
6380
6381 rm -rf conftest.dSYM
6382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LDFLAGS="$save_LDFLAGS"
6385
6386 fi
6387 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6388 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6389 case $host_os in
6390 rhapsody* | darwin1.[012])
6391 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6392 darwin1.*)
6393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6394 darwin*) # darwin 5.x on
6395 # if running on 10.5 or later, the deployment target defaults
6396 # to the OS version, if on x86, and 10.4, the deployment
6397 # target defaults to 10.4. Don't you love it?
6398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6399 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6400 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6401 10.[012]*)
6402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6403 10.*)
6404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6405 esac
6406 ;;
6407 esac
6408 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6409 _lt_dar_single_mod='$single_module'
6410 fi
6411 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6412 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6413 else
6414 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6415 fi
6416 if test "$DSYMUTIL" != ":"; then
6417 _lt_dsymutil='~$DSYMUTIL $lib || :'
6418 else
6419 _lt_dsymutil=
6420 fi
6421 ;;
6422 esac
6423
6424 ac_ext=c
6425 ac_cpp='$CPP $CPPFLAGS'
6426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6431 # On Suns, sometimes $CPP names a directory.
6432 if test -n "$CPP" && test -d "$CPP"; then
6433 CPP=
6434 fi
6435 if test -z "$CPP"; then
6436 if test "${ac_cv_prog_CPP+set}" = set; then
6437 $as_echo_n "(cached) " >&6
6438 else
6439 # Double quotes because CPP needs to be expanded
6440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6441 do
6442 ac_preproc_ok=false
6443 for ac_c_preproc_warn_flag in '' yes
6444 do
6445 # Use a header file that comes with gcc, so configuring glibc
6446 # with a fresh cross-compiler works.
6447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448 # <limits.h> exists even on freestanding compilers.
6449 # On the NeXT, cc -E runs the code through the compiler's parser,
6450 # not just through cpp. "Syntax error" is here to catch this case.
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h. */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #ifdef __STDC__
6458 # include <limits.h>
6459 #else
6460 # include <assert.h>
6461 #endif
6462 Syntax error
6463 _ACEOF
6464 if { (ac_try="$ac_cpp conftest.$ac_ext"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6470 $as_echo "$ac_try_echo") >&5
6471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null && {
6478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 }; then
6481 :
6482 else
6483 $as_echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 # Broken: fails on valid input.
6487 continue
6488 fi
6489
6490 rm -f conftest.err conftest.$ac_ext
6491
6492 # OK, works on sane cases. Now check whether nonexistent headers
6493 # can be detected and how.
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <ac_nonexistent.h>
6501 _ACEOF
6502 if { (ac_try="$ac_cpp conftest.$ac_ext"
6503 case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506 esac
6507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6508 $as_echo "$ac_try_echo") >&5
6509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } >/dev/null && {
6516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 }; then
6519 # Broken: success on invalid input.
6520 continue
6521 else
6522 $as_echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 # Passes both tests.
6526 ac_preproc_ok=:
6527 break
6528 fi
6529
6530 rm -f conftest.err conftest.$ac_ext
6531
6532 done
6533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6534 rm -f conftest.err conftest.$ac_ext
6535 if $ac_preproc_ok; then
6536 break
6537 fi
6538
6539 done
6540 ac_cv_prog_CPP=$CPP
6541
6542 fi
6543 CPP=$ac_cv_prog_CPP
6544 else
6545 ac_cv_prog_CPP=$CPP
6546 fi
6547 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6548 $as_echo "$CPP" >&6; }
6549 ac_preproc_ok=false
6550 for ac_c_preproc_warn_flag in '' yes
6551 do
6552 # Use a header file that comes with gcc, so configuring glibc
6553 # with a fresh cross-compiler works.
6554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6555 # <limits.h> exists even on freestanding compilers.
6556 # On the NeXT, cc -E runs the code through the compiler's parser,
6557 # not just through cpp. "Syntax error" is here to catch this case.
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 #ifdef __STDC__
6565 # include <limits.h>
6566 #else
6567 # include <assert.h>
6568 #endif
6569 Syntax error
6570 _ACEOF
6571 if { (ac_try="$ac_cpp conftest.$ac_ext"
6572 case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6577 $as_echo "$ac_try_echo") >&5
6578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } >/dev/null && {
6585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 }; then
6588 :
6589 else
6590 $as_echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 # Broken: fails on valid input.
6594 continue
6595 fi
6596
6597 rm -f conftest.err conftest.$ac_ext
6598
6599 # OK, works on sane cases. Now check whether nonexistent headers
6600 # can be detected and how.
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <ac_nonexistent.h>
6608 _ACEOF
6609 if { (ac_try="$ac_cpp conftest.$ac_ext"
6610 case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613 esac
6614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615 $as_echo "$ac_try_echo") >&5
6616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null && {
6623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 }; then
6626 # Broken: success on invalid input.
6627 continue
6628 else
6629 $as_echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632 # Passes both tests.
6633 ac_preproc_ok=:
6634 break
6635 fi
6636
6637 rm -f conftest.err conftest.$ac_ext
6638
6639 done
6640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6641 rm -f conftest.err conftest.$ac_ext
6642 if $ac_preproc_ok; then
6643 :
6644 else
6645 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6647 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6648 See \`config.log' for more details." >&5
6649 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6650 See \`config.log' for more details." >&2;}
6651 { (exit 1); exit 1; }; }; }
6652 fi
6653
6654 ac_ext=c
6655 ac_cpp='$CPP $CPPFLAGS'
6656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659
6660
6661 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6662 $as_echo_n "checking for ANSI C header files... " >&6; }
6663 if test "${ac_cv_header_stdc+set}" = set; then
6664 $as_echo_n "(cached) " >&6
6665 else
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <stdlib.h>
6673 #include <stdarg.h>
6674 #include <string.h>
6675 #include <float.h>
6676
6677 int
6678 main ()
6679 {
6680
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext
6686 if { (ac_try="$ac_compile"
6687 case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690 esac
6691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692 $as_echo "$ac_try_echo") >&5
6693 (eval "$ac_compile") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest.$ac_objext; then
6703 ac_cv_header_stdc=yes
6704 else
6705 $as_echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ac_cv_header_stdc=no
6709 fi
6710
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712
6713 if test $ac_cv_header_stdc = yes; then
6714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 #include <string.h>
6722
6723 _ACEOF
6724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725 $EGREP "memchr" >/dev/null 2>&1; then
6726 :
6727 else
6728 ac_cv_header_stdc=no
6729 fi
6730 rm -f conftest*
6731
6732 fi
6733
6734 if test $ac_cv_header_stdc = yes; then
6735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #include <stdlib.h>
6743
6744 _ACEOF
6745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746 $EGREP "free" >/dev/null 2>&1; then
6747 :
6748 else
6749 ac_cv_header_stdc=no
6750 fi
6751 rm -f conftest*
6752
6753 fi
6754
6755 if test $ac_cv_header_stdc = yes; then
6756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6757 if test "$cross_compiling" = yes; then
6758 :
6759 else
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <ctype.h>
6767 #include <stdlib.h>
6768 #if ((' ' & 0x0FF) == 0x020)
6769 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6770 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6771 #else
6772 # define ISLOWER(c) \
6773 (('a' <= (c) && (c) <= 'i') \
6774 || ('j' <= (c) && (c) <= 'r') \
6775 || ('s' <= (c) && (c) <= 'z'))
6776 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6777 #endif
6778
6779 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6780 int
6781 main ()
6782 {
6783 int i;
6784 for (i = 0; i < 256; i++)
6785 if (XOR (islower (i), ISLOWER (i))
6786 || toupper (i) != TOUPPER (i))
6787 return 2;
6788 return 0;
6789 }
6790 _ACEOF
6791 rm -f conftest$ac_exeext
6792 if { (ac_try="$ac_link"
6793 case "(($ac_try" in
6794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6795 *) ac_try_echo=$ac_try;;
6796 esac
6797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6798 $as_echo "$ac_try_echo") >&5
6799 (eval "$ac_link") 2>&5
6800 ac_status=$?
6801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6803 { (case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_try") 2>&5
6810 ac_status=$?
6811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 :
6814 else
6815 $as_echo "$as_me: program exited with status $ac_status" >&5
6816 $as_echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ( exit $ac_status )
6820 ac_cv_header_stdc=no
6821 fi
6822 rm -rf conftest.dSYM
6823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6824 fi
6825
6826
6827 fi
6828 fi
6829 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6830 $as_echo "$ac_cv_header_stdc" >&6; }
6831 if test $ac_cv_header_stdc = yes; then
6832
6833 cat >>confdefs.h <<\_ACEOF
6834 #define STDC_HEADERS 1
6835 _ACEOF
6836
6837 fi
6838
6839 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6850 inttypes.h stdint.h unistd.h
6851 do
6852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6854 $as_echo_n "checking for $ac_header... " >&6; }
6855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6856 $as_echo_n "(cached) " >&6
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6865
6866 #include <$ac_header>
6867 _ACEOF
6868 rm -f conftest.$ac_objext
6869 if { (ac_try="$ac_compile"
6870 case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6873 esac
6874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6875 $as_echo "$ac_try_echo") >&5
6876 (eval "$ac_compile") 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
6884 test ! -s conftest.err
6885 } && test -s conftest.$ac_objext; then
6886 eval "$as_ac_Header=yes"
6887 else
6888 $as_echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 eval "$as_ac_Header=no"
6892 fi
6893
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895 fi
6896 ac_res=`eval 'as_val=${'$as_ac_Header'}
6897 $as_echo "$as_val"'`
6898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6899 $as_echo "$ac_res" >&6; }
6900 as_val=`eval 'as_val=${'$as_ac_Header'}
6901 $as_echo "$as_val"'`
6902 if test "x$as_val" = x""yes; then
6903 cat >>confdefs.h <<_ACEOF
6904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6905 _ACEOF
6906
6907 fi
6908
6909 done
6910
6911
6912
6913 for ac_header in dlfcn.h
6914 do
6915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6917 $as_echo_n "checking for $ac_header... " >&6; }
6918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6919 $as_echo_n "(cached) " >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6928
6929 #include <$ac_header>
6930 _ACEOF
6931 rm -f conftest.$ac_objext
6932 if { (ac_try="$ac_compile"
6933 case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936 esac
6937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6938 $as_echo "$ac_try_echo") >&5
6939 (eval "$ac_compile") 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && {
6946 test -z "$ac_c_werror_flag" ||
6947 test ! -s conftest.err
6948 } && test -s conftest.$ac_objext; then
6949 eval "$as_ac_Header=yes"
6950 else
6951 $as_echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 eval "$as_ac_Header=no"
6955 fi
6956
6957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958 fi
6959 ac_res=`eval 'as_val=${'$as_ac_Header'}
6960 $as_echo "$as_val"'`
6961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6962 $as_echo "$ac_res" >&6; }
6963 as_val=`eval 'as_val=${'$as_ac_Header'}
6964 $as_echo "$as_val"'`
6965 if test "x$as_val" = x""yes; then
6966 cat >>confdefs.h <<_ACEOF
6967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6968 _ACEOF
6969
6970 fi
6971
6972 done
6973
6974
6975
6976 # Set options
6977 enable_dlopen=yes
6978 enable_win32_dll=yes
6979
6980 case $host in
6981 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}as; ac_word=$2
6985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_prog_AS+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$AS"; then
6991 ac_cv_prog_AS="$AS" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_AS="${ac_tool_prefix}as"
7001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 AS=$ac_cv_prog_AS
7011 if test -n "$AS"; then
7012 { $as_echo "$as_me:$LINENO: result: $AS" >&5
7013 $as_echo "$AS" >&6; }
7014 else
7015 { $as_echo "$as_me:$LINENO: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019
7020 fi
7021 if test -z "$ac_cv_prog_AS"; then
7022 ac_ct_AS=$AS
7023 # Extract the first word of "as", so it can be a program name with args.
7024 set dummy as; ac_word=$2
7025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test -n "$ac_ct_AS"; then
7031 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_ac_ct_AS="as"
7041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7043 fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7051 if test -n "$ac_ct_AS"; then
7052 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7053 $as_echo "$ac_ct_AS" >&6; }
7054 else
7055 { $as_echo "$as_me:$LINENO: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059 if test "x$ac_ct_AS" = x; then
7060 AS="false"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068 AS=$ac_ct_AS
7069 fi
7070 else
7071 AS="$ac_cv_prog_AS"
7072 fi
7073
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -n "$DLLTOOL"; then
7083 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 DLLTOOL=$ac_cv_prog_DLLTOOL
7103 if test -n "$DLLTOOL"; then
7104 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7105 $as_echo "$DLLTOOL" >&6; }
7106 else
7107 { $as_echo "$as_me:$LINENO: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_DLLTOOL"; then
7114 ac_ct_DLLTOOL=$DLLTOOL
7115 # Extract the first word of "dlltool", so it can be a program name with args.
7116 set dummy dlltool; ac_word=$2
7117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7120 $as_echo_n "(cached) " >&6
7121 else
7122 if test -n "$ac_ct_DLLTOOL"; then
7123 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7143 if test -n "$ac_ct_DLLTOOL"; then
7144 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7145 $as_echo "$ac_ct_DLLTOOL" >&6; }
7146 else
7147 { $as_echo "$as_me:$LINENO: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151 if test "x$ac_ct_DLLTOOL" = x; then
7152 DLLTOOL="false"
7153 else
7154 case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 DLLTOOL=$ac_ct_DLLTOOL
7161 fi
7162 else
7163 DLLTOOL="$ac_cv_prog_DLLTOOL"
7164 fi
7165
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7173 else
7174 if test -n "$OBJDUMP"; then
7175 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 OBJDUMP=$ac_cv_prog_OBJDUMP
7195 if test -n "$OBJDUMP"; then
7196 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7197 $as_echo "$OBJDUMP" >&6; }
7198 else
7199 { $as_echo "$as_me:$LINENO: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_OBJDUMP"; then
7206 ac_ct_OBJDUMP=$OBJDUMP
7207 # Extract the first word of "objdump", so it can be a program name with args.
7208 set dummy objdump; ac_word=$2
7209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7212 $as_echo_n "(cached) " >&6
7213 else
7214 if test -n "$ac_ct_OBJDUMP"; then
7215 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7235 if test -n "$ac_ct_OBJDUMP"; then
7236 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7237 $as_echo "$ac_ct_OBJDUMP" >&6; }
7238 else
7239 { $as_echo "$as_me:$LINENO: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243 if test "x$ac_ct_OBJDUMP" = x; then
7244 OBJDUMP="false"
7245 else
7246 case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252 OBJDUMP=$ac_ct_OBJDUMP
7253 fi
7254 else
7255 OBJDUMP="$ac_cv_prog_OBJDUMP"
7256 fi
7257
7258 ;;
7259 esac
7260
7261 test -z "$AS" && AS=as
7262
7263
7264
7265
7266
7267 test -z "$DLLTOOL" && DLLTOOL=dlltool
7268
7269
7270
7271
7272
7273 test -z "$OBJDUMP" && OBJDUMP=objdump
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 # Check whether --enable-shared was given.
7284 if test "${enable_shared+set}" = set; then
7285 enableval=$enable_shared; p=${PACKAGE-default}
7286 case $enableval in
7287 yes) enable_shared=yes ;;
7288 no) enable_shared=no ;;
7289 *)
7290 enable_shared=no
7291 # Look at the argument we got. We use all the common list separators.
7292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7293 for pkg in $enableval; do
7294 IFS="$lt_save_ifs"
7295 if test "X$pkg" = "X$p"; then
7296 enable_shared=yes
7297 fi
7298 done
7299 IFS="$lt_save_ifs"
7300 ;;
7301 esac
7302 else
7303 enable_shared=yes
7304 fi
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 # Check whether --enable-static was given.
7315 if test "${enable_static+set}" = set; then
7316 enableval=$enable_static; p=${PACKAGE-default}
7317 case $enableval in
7318 yes) enable_static=yes ;;
7319 no) enable_static=no ;;
7320 *)
7321 enable_static=no
7322 # Look at the argument we got. We use all the common list separators.
7323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7324 for pkg in $enableval; do
7325 IFS="$lt_save_ifs"
7326 if test "X$pkg" = "X$p"; then
7327 enable_static=yes
7328 fi
7329 done
7330 IFS="$lt_save_ifs"
7331 ;;
7332 esac
7333 else
7334 enable_static=yes
7335 fi
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346 # Check whether --with-pic was given.
7347 if test "${with_pic+set}" = set; then
7348 withval=$with_pic; pic_mode="$withval"
7349 else
7350 pic_mode=default
7351 fi
7352
7353
7354 test -z "$pic_mode" && pic_mode=default
7355
7356
7357
7358
7359
7360
7361
7362 # Check whether --enable-fast-install was given.
7363 if test "${enable_fast_install+set}" = set; then
7364 enableval=$enable_fast_install; p=${PACKAGE-default}
7365 case $enableval in
7366 yes) enable_fast_install=yes ;;
7367 no) enable_fast_install=no ;;
7368 *)
7369 enable_fast_install=no
7370 # Look at the argument we got. We use all the common list separators.
7371 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7372 for pkg in $enableval; do
7373 IFS="$lt_save_ifs"
7374 if test "X$pkg" = "X$p"; then
7375 enable_fast_install=yes
7376 fi
7377 done
7378 IFS="$lt_save_ifs"
7379 ;;
7380 esac
7381 else
7382 enable_fast_install=yes
7383 fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 # This can be used to rebuild libtool when needed
7396 LIBTOOL_DEPS="$ltmain"
7397
7398 # Always use our own libtool.
7399 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 test -z "$LN_S" && LN_S="ln -s"
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 if test -n "${ZSH_VERSION+set}" ; then
7441 setopt NO_GLOB_SUBST
7442 fi
7443
7444 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7445 $as_echo_n "checking for objdir... " >&6; }
7446 if test "${lt_cv_objdir+set}" = set; then
7447 $as_echo_n "(cached) " >&6
7448 else
7449 rm -f .libs 2>/dev/null
7450 mkdir .libs 2>/dev/null
7451 if test -d .libs; then
7452 lt_cv_objdir=.libs
7453 else
7454 # MS-DOS does not allow filenames that begin with a dot.
7455 lt_cv_objdir=_libs
7456 fi
7457 rmdir .libs 2>/dev/null
7458 fi
7459 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7460 $as_echo "$lt_cv_objdir" >&6; }
7461 objdir=$lt_cv_objdir
7462
7463
7464
7465
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define LT_OBJDIR "$lt_cv_objdir/"
7469 _ACEOF
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487 case $host_os in
7488 aix3*)
7489 # AIX sometimes has problems with the GCC collect2 program. For some
7490 # reason, if we set the COLLECT_NAMES environment variable, the problems
7491 # vanish in a puff of smoke.
7492 if test "X${COLLECT_NAMES+set}" != Xset; then
7493 COLLECT_NAMES=
7494 export COLLECT_NAMES
7495 fi
7496 ;;
7497 esac
7498
7499 # Sed substitution that helps us do robust quoting. It backslashifies
7500 # metacharacters that are still active within double-quoted strings.
7501 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7502
7503 # Same as above, but do not quote variable references.
7504 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7505
7506 # Sed substitution to delay expansion of an escaped shell variable in a
7507 # double_quote_subst'ed string.
7508 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7509
7510 # Sed substitution to delay expansion of an escaped single quote.
7511 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7512
7513 # Sed substitution to avoid accidental globbing in evaled expressions
7514 no_glob_subst='s/\*/\\\*/g'
7515
7516 # Global variables:
7517 ofile=libtool
7518 can_build_shared=yes
7519
7520 # All known linkers require a `.a' archive for static linking (except MSVC,
7521 # which needs '.lib').
7522 libext=a
7523
7524 with_gnu_ld="$lt_cv_prog_gnu_ld"
7525
7526 old_CC="$CC"
7527 old_CFLAGS="$CFLAGS"
7528
7529 # Set sane defaults for various variables
7530 test -z "$CC" && CC=cc
7531 test -z "$LTCC" && LTCC=$CC
7532 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7533 test -z "$LD" && LD=ld
7534 test -z "$ac_objext" && ac_objext=o
7535
7536 for cc_temp in $compiler""; do
7537 case $cc_temp in
7538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7540 \-*) ;;
7541 *) break;;
7542 esac
7543 done
7544 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7545
7546
7547 # Only perform the check for file, if the check method requires it
7548 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7549 case $deplibs_check_method in
7550 file_magic*)
7551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7552 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7553 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7556 else
7557 case $MAGIC_CMD in
7558 [\\/*] | ?:[\\/]*)
7559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7560 ;;
7561 *)
7562 lt_save_MAGIC_CMD="$MAGIC_CMD"
7563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7565 for ac_dir in $ac_dummy; do
7566 IFS="$lt_save_ifs"
7567 test -z "$ac_dir" && ac_dir=.
7568 if test -f $ac_dir/${ac_tool_prefix}file; then
7569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7570 if test -n "$file_magic_test_file"; then
7571 case $deplibs_check_method in
7572 "file_magic "*)
7573 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7576 $EGREP "$file_magic_regex" > /dev/null; then
7577 :
7578 else
7579 cat <<_LT_EOF 1>&2
7580
7581 *** Warning: the command libtool uses to detect shared libraries,
7582 *** $file_magic_cmd, produces output that libtool cannot recognize.
7583 *** The result is that libtool may fail to recognize shared libraries
7584 *** as such. This will affect the creation of libtool libraries that
7585 *** depend on shared libraries, but programs linked with such libtool
7586 *** libraries will work regardless of this problem. Nevertheless, you
7587 *** may want to report the problem to your system manager and/or to
7588 *** bug-libtool@gnu.org
7589
7590 _LT_EOF
7591 fi ;;
7592 esac
7593 fi
7594 break
7595 fi
7596 done
7597 IFS="$lt_save_ifs"
7598 MAGIC_CMD="$lt_save_MAGIC_CMD"
7599 ;;
7600 esac
7601 fi
7602
7603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604 if test -n "$MAGIC_CMD"; then
7605 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7606 $as_echo "$MAGIC_CMD" >&6; }
7607 else
7608 { $as_echo "$as_me:$LINENO: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613
7614
7615
7616 if test -z "$lt_cv_path_MAGIC_CMD"; then
7617 if test -n "$ac_tool_prefix"; then
7618 { $as_echo "$as_me:$LINENO: checking for file" >&5
7619 $as_echo_n "checking for file... " >&6; }
7620 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7621 $as_echo_n "(cached) " >&6
7622 else
7623 case $MAGIC_CMD in
7624 [\\/*] | ?:[\\/]*)
7625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7626 ;;
7627 *)
7628 lt_save_MAGIC_CMD="$MAGIC_CMD"
7629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631 for ac_dir in $ac_dummy; do
7632 IFS="$lt_save_ifs"
7633 test -z "$ac_dir" && ac_dir=.
7634 if test -f $ac_dir/file; then
7635 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7636 if test -n "$file_magic_test_file"; then
7637 case $deplibs_check_method in
7638 "file_magic "*)
7639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642 $EGREP "$file_magic_regex" > /dev/null; then
7643 :
7644 else
7645 cat <<_LT_EOF 1>&2
7646
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such. This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem. Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7655
7656 _LT_EOF
7657 fi ;;
7658 esac
7659 fi
7660 break
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 MAGIC_CMD="$lt_save_MAGIC_CMD"
7665 ;;
7666 esac
7667 fi
7668
7669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670 if test -n "$MAGIC_CMD"; then
7671 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7672 $as_echo "$MAGIC_CMD" >&6; }
7673 else
7674 { $as_echo "$as_me:$LINENO: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678
7679 else
7680 MAGIC_CMD=:
7681 fi
7682 fi
7683
7684 fi
7685 ;;
7686 esac
7687
7688 # Use C for the default configuration in the libtool script
7689
7690 lt_save_CC="$CC"
7691 ac_ext=c
7692 ac_cpp='$CPP $CPPFLAGS'
7693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697
7698 # Source file extension for C test sources.
7699 ac_ext=c
7700
7701 # Object file extension for compiled C test sources.
7702 objext=o
7703 objext=$objext
7704
7705 # Code to be used in simple compile tests
7706 lt_simple_compile_test_code="int some_variable = 0;"
7707
7708 # Code to be used in simple link tests
7709 lt_simple_link_test_code='int main(){return(0);}'
7710
7711
7712
7713
7714
7715
7716
7717 # If no C compiler was specified, use CC.
7718 LTCC=${LTCC-"$CC"}
7719
7720 # If no C compiler flags were specified, use CFLAGS.
7721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7722
7723 # Allow CC to be a program name with arguments.
7724 compiler=$CC
7725
7726 # Save the default compiler, since it gets overwritten when the other
7727 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7728 compiler_DEFAULT=$CC
7729
7730 # save warnings/boilerplate of simple test code
7731 ac_outfile=conftest.$ac_objext
7732 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734 _lt_compiler_boilerplate=`cat conftest.err`
7735 $RM conftest*
7736
7737 ac_outfile=conftest.$ac_objext
7738 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7740 _lt_linker_boilerplate=`cat conftest.err`
7741 $RM -r conftest*
7742
7743
7744 ## CAVEAT EMPTOR:
7745 ## There is no encapsulation within the following macros, do not change
7746 ## the running order or otherwise move them around unless you know exactly
7747 ## what you are doing...
7748 if test -n "$compiler"; then
7749
7750 lt_prog_compiler_no_builtin_flag=
7751
7752 if test "$GCC" = yes; then
7753 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7754
7755 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7756 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7758 $as_echo_n "(cached) " >&6
7759 else
7760 lt_cv_prog_compiler_rtti_exceptions=no
7761 ac_outfile=conftest.$ac_objext
7762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7763 lt_compiler_flag="-fno-rtti -fno-exceptions"
7764 # Insert the option either (1) after the last *FLAGS variable, or
7765 # (2) before a word containing "conftest.", or (3) at the end.
7766 # Note that $ac_compile itself does not contain backslashes and begins
7767 # with a dollar sign (not a hyphen), so the echo should work correctly.
7768 # The option is referenced via a variable to avoid confusing sed.
7769 lt_compile=`echo "$ac_compile" | $SED \
7770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7772 -e 's:$: $lt_compiler_flag:'`
7773 (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
7774 (eval "$lt_compile" 2>conftest.err)
7775 ac_status=$?
7776 cat conftest.err >&5
7777 echo "$as_me:7777: \$? = $ac_status" >&5
7778 if (exit $ac_status) && test -s "$ac_outfile"; then
7779 # The compiler can only warn and ignore the option if not recognized
7780 # So say no if there are warnings other than the usual output.
7781 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7784 lt_cv_prog_compiler_rtti_exceptions=yes
7785 fi
7786 fi
7787 $RM conftest*
7788
7789 fi
7790 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7791 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7792
7793 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7794 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7795 else
7796 :
7797 fi
7798
7799 fi
7800
7801
7802
7803
7804
7805
7806 lt_prog_compiler_wl=
7807 lt_prog_compiler_pic=
7808 lt_prog_compiler_static=
7809
7810 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7811 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7812
7813 if test "$GCC" = yes; then
7814 lt_prog_compiler_wl='-Wl,'
7815 lt_prog_compiler_static='-static'
7816
7817 case $host_os in
7818 aix*)
7819 # All AIX code is PIC.
7820 if test "$host_cpu" = ia64; then
7821 # AIX 5 now supports IA64 processor
7822 lt_prog_compiler_static='-Bstatic'
7823 fi
7824 ;;
7825
7826 amigaos*)
7827 case $host_cpu in
7828 powerpc)
7829 # see comment about AmigaOS4 .so support
7830 lt_prog_compiler_pic='-fPIC'
7831 ;;
7832 m68k)
7833 # FIXME: we need at least 68020 code to build shared libraries, but
7834 # adding the `-m68020' flag to GCC prevents building anything better,
7835 # like `-m68040'.
7836 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7837 ;;
7838 esac
7839 ;;
7840
7841 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7842 # PIC is the default for these OSes.
7843 ;;
7844
7845 mingw* | cygwin* | pw32* | os2* | cegcc*)
7846 # This hack is so that the source file can tell whether it is being
7847 # built for inclusion in a dll (and should export symbols for example).
7848 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7849 # (--disable-auto-import) libraries
7850 lt_prog_compiler_pic='-DDLL_EXPORT'
7851 ;;
7852
7853 darwin* | rhapsody*)
7854 # PIC is the default on this platform
7855 # Common symbols not allowed in MH_DYLIB files
7856 lt_prog_compiler_pic='-fno-common'
7857 ;;
7858
7859 hpux*)
7860 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7861 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7862 # sets the default TLS model and affects inlining.
7863 case $host_cpu in
7864 hppa*64*)
7865 # +Z the default
7866 ;;
7867 *)
7868 lt_prog_compiler_pic='-fPIC'
7869 ;;
7870 esac
7871 ;;
7872
7873 interix[3-9]*)
7874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7875 # Instead, we relocate shared libraries at runtime.
7876 ;;
7877
7878 msdosdjgpp*)
7879 # Just because we use GCC doesn't mean we suddenly get shared libraries
7880 # on systems that don't support them.
7881 lt_prog_compiler_can_build_shared=no
7882 enable_shared=no
7883 ;;
7884
7885 *nto* | *qnx*)
7886 # QNX uses GNU C++, but need to define -shared option too, otherwise
7887 # it will coredump.
7888 lt_prog_compiler_pic='-fPIC -shared'
7889 ;;
7890
7891 sysv4*MP*)
7892 if test -d /usr/nec; then
7893 lt_prog_compiler_pic=-Kconform_pic
7894 fi
7895 ;;
7896
7897 *)
7898 lt_prog_compiler_pic='-fPIC'
7899 ;;
7900 esac
7901 else
7902 # PORTME Check for flag to pass linker flags through the system compiler.
7903 case $host_os in
7904 aix*)
7905 lt_prog_compiler_wl='-Wl,'
7906 if test "$host_cpu" = ia64; then
7907 # AIX 5 now supports IA64 processor
7908 lt_prog_compiler_static='-Bstatic'
7909 else
7910 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7911 fi
7912 ;;
7913
7914 mingw* | cygwin* | pw32* | os2* | cegcc*)
7915 # This hack is so that the source file can tell whether it is being
7916 # built for inclusion in a dll (and should export symbols for example).
7917 lt_prog_compiler_pic='-DDLL_EXPORT'
7918 ;;
7919
7920 hpux9* | hpux10* | hpux11*)
7921 lt_prog_compiler_wl='-Wl,'
7922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7923 # not for PA HP-UX.
7924 case $host_cpu in
7925 hppa*64*|ia64*)
7926 # +Z the default
7927 ;;
7928 *)
7929 lt_prog_compiler_pic='+Z'
7930 ;;
7931 esac
7932 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7933 lt_prog_compiler_static='${wl}-a ${wl}archive'
7934 ;;
7935
7936 irix5* | irix6* | nonstopux*)
7937 lt_prog_compiler_wl='-Wl,'
7938 # PIC (with -KPIC) is the default.
7939 lt_prog_compiler_static='-non_shared'
7940 ;;
7941
7942 linux* | k*bsd*-gnu)
7943 case $cc_basename in
7944 # old Intel for x86_64 which still supported -KPIC.
7945 ecc*)
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_pic='-KPIC'
7948 lt_prog_compiler_static='-static'
7949 ;;
7950 # icc used to be incompatible with GCC.
7951 # ICC 10 doesn't accept -KPIC any more.
7952 icc* | ifort*)
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-fPIC'
7955 lt_prog_compiler_static='-static'
7956 ;;
7957 # Lahey Fortran 8.1.
7958 lf95*)
7959 lt_prog_compiler_wl='-Wl,'
7960 lt_prog_compiler_pic='--shared'
7961 lt_prog_compiler_static='--static'
7962 ;;
7963 pgcc* | pgf77* | pgf90* | pgf95*)
7964 # Portland Group compilers (*not* the Pentium gcc compiler,
7965 # which looks to be a dead project)
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_pic='-fpic'
7968 lt_prog_compiler_static='-Bstatic'
7969 ;;
7970 ccc*)
7971 lt_prog_compiler_wl='-Wl,'
7972 # All Alpha code is PIC.
7973 lt_prog_compiler_static='-non_shared'
7974 ;;
7975 xl*)
7976 # IBM XL C 8.0/Fortran 10.1 on PPC
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-qpic'
7979 lt_prog_compiler_static='-qstaticlink'
7980 ;;
7981 *)
7982 case `$CC -V 2>&1 | sed 5q` in
7983 *Sun\ C*)
7984 # Sun C 5.9
7985 lt_prog_compiler_pic='-KPIC'
7986 lt_prog_compiler_static='-Bstatic'
7987 lt_prog_compiler_wl='-Wl,'
7988 ;;
7989 *Sun\ F*)
7990 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 lt_prog_compiler_wl=''
7994 ;;
7995 esac
7996 ;;
7997 esac
7998 ;;
7999
8000 newsos6)
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-Bstatic'
8003 ;;
8004
8005 *nto* | *qnx*)
8006 # QNX uses GNU C++, but need to define -shared option too, otherwise
8007 # it will coredump.
8008 lt_prog_compiler_pic='-fPIC -shared'
8009 ;;
8010
8011 osf3* | osf4* | osf5*)
8012 lt_prog_compiler_wl='-Wl,'
8013 # All OSF/1 code is PIC.
8014 lt_prog_compiler_static='-non_shared'
8015 ;;
8016
8017 rdos*)
8018 lt_prog_compiler_static='-non_shared'
8019 ;;
8020
8021 solaris*)
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8024 case $cc_basename in
8025 f77* | f90* | f95*)
8026 lt_prog_compiler_wl='-Qoption ld ';;
8027 *)
8028 lt_prog_compiler_wl='-Wl,';;
8029 esac
8030 ;;
8031
8032 sunos4*)
8033 lt_prog_compiler_wl='-Qoption ld '
8034 lt_prog_compiler_pic='-PIC'
8035 lt_prog_compiler_static='-Bstatic'
8036 ;;
8037
8038 sysv4 | sysv4.2uw2* | sysv4.3*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8042 ;;
8043
8044 sysv4*MP*)
8045 if test -d /usr/nec ;then
8046 lt_prog_compiler_pic='-Kconform_pic'
8047 lt_prog_compiler_static='-Bstatic'
8048 fi
8049 ;;
8050
8051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
8055 ;;
8056
8057 unicos*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_can_build_shared=no
8060 ;;
8061
8062 uts4*)
8063 lt_prog_compiler_pic='-pic'
8064 lt_prog_compiler_static='-Bstatic'
8065 ;;
8066
8067 *)
8068 lt_prog_compiler_can_build_shared=no
8069 ;;
8070 esac
8071 fi
8072
8073 case $host_os in
8074 # For platforms which do not support PIC, -DPIC is meaningless:
8075 *djgpp*)
8076 lt_prog_compiler_pic=
8077 ;;
8078 *)
8079 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8080 ;;
8081 esac
8082 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8083 $as_echo "$lt_prog_compiler_pic" >&6; }
8084
8085
8086
8087
8088
8089
8090 #
8091 # Check to make sure the PIC flag actually works.
8092 #
8093 if test -n "$lt_prog_compiler_pic"; then
8094 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8095 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8096 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8097 $as_echo_n "(cached) " >&6
8098 else
8099 lt_cv_prog_compiler_pic_works=no
8100 ac_outfile=conftest.$ac_objext
8101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8102 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8103 # Insert the option either (1) after the last *FLAGS variable, or
8104 # (2) before a word containing "conftest.", or (3) at the end.
8105 # Note that $ac_compile itself does not contain backslashes and begins
8106 # with a dollar sign (not a hyphen), so the echo should work correctly.
8107 # The option is referenced via a variable to avoid confusing sed.
8108 lt_compile=`echo "$ac_compile" | $SED \
8109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8111 -e 's:$: $lt_compiler_flag:'`
8112 (eval echo "\"\$as_me:8112: $lt_compile\"" >&5)
8113 (eval "$lt_compile" 2>conftest.err)
8114 ac_status=$?
8115 cat conftest.err >&5
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 if (exit $ac_status) && test -s "$ac_outfile"; then
8118 # The compiler can only warn and ignore the option if not recognized
8119 # So say no if there are warnings other than the usual output.
8120 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8123 lt_cv_prog_compiler_pic_works=yes
8124 fi
8125 fi
8126 $RM conftest*
8127
8128 fi
8129 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8130 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8131
8132 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8133 case $lt_prog_compiler_pic in
8134 "" | " "*) ;;
8135 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8136 esac
8137 else
8138 lt_prog_compiler_pic=
8139 lt_prog_compiler_can_build_shared=no
8140 fi
8141
8142 fi
8143
8144
8145
8146
8147
8148
8149 #
8150 # Check to make sure the static flag actually works.
8151 #
8152 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8153 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8154 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8155 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8156 $as_echo_n "(cached) " >&6
8157 else
8158 lt_cv_prog_compiler_static_works=no
8159 save_LDFLAGS="$LDFLAGS"
8160 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8161 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8162 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8163 # The linker can only warn and ignore the option if not recognized
8164 # So say no if there are warnings
8165 if test -s conftest.err; then
8166 # Append any errors to the config.log.
8167 cat conftest.err 1>&5
8168 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8170 if diff conftest.exp conftest.er2 >/dev/null; then
8171 lt_cv_prog_compiler_static_works=yes
8172 fi
8173 else
8174 lt_cv_prog_compiler_static_works=yes
8175 fi
8176 fi
8177 $RM -r conftest*
8178 LDFLAGS="$save_LDFLAGS"
8179
8180 fi
8181 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8182 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8183
8184 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8185 :
8186 else
8187 lt_prog_compiler_static=
8188 fi
8189
8190
8191
8192
8193
8194
8195
8196 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8198 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8199 $as_echo_n "(cached) " >&6
8200 else
8201 lt_cv_prog_compiler_c_o=no
8202 $RM -r conftest 2>/dev/null
8203 mkdir conftest
8204 cd conftest
8205 mkdir out
8206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8207
8208 lt_compiler_flag="-o out/conftest2.$ac_objext"
8209 # Insert the option either (1) after the last *FLAGS variable, or
8210 # (2) before a word containing "conftest.", or (3) at the end.
8211 # Note that $ac_compile itself does not contain backslashes and begins
8212 # with a dollar sign (not a hyphen), so the echo should work correctly.
8213 lt_compile=`echo "$ac_compile" | $SED \
8214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216 -e 's:$: $lt_compiler_flag:'`
8217 (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
8218 (eval "$lt_compile" 2>out/conftest.err)
8219 ac_status=$?
8220 cat out/conftest.err >&5
8221 echo "$as_me:8221: \$? = $ac_status" >&5
8222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8223 then
8224 # The compiler can only warn and ignore the option if not recognized
8225 # So say no if there are warnings
8226 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8229 lt_cv_prog_compiler_c_o=yes
8230 fi
8231 fi
8232 chmod u+w . 2>&5
8233 $RM conftest*
8234 # SGI C++ compiler will create directory out/ii_files/ for
8235 # template instantiation
8236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8237 $RM out/* && rmdir out
8238 cd ..
8239 $RM -r conftest
8240 $RM conftest*
8241
8242 fi
8243 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8245
8246
8247
8248
8249
8250
8251 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8253 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8254 $as_echo_n "(cached) " >&6
8255 else
8256 lt_cv_prog_compiler_c_o=no
8257 $RM -r conftest 2>/dev/null
8258 mkdir conftest
8259 cd conftest
8260 mkdir out
8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8262
8263 lt_compiler_flag="-o out/conftest2.$ac_objext"
8264 # Insert the option either (1) after the last *FLAGS variable, or
8265 # (2) before a word containing "conftest.", or (3) at the end.
8266 # Note that $ac_compile itself does not contain backslashes and begins
8267 # with a dollar sign (not a hyphen), so the echo should work correctly.
8268 lt_compile=`echo "$ac_compile" | $SED \
8269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271 -e 's:$: $lt_compiler_flag:'`
8272 (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
8273 (eval "$lt_compile" 2>out/conftest.err)
8274 ac_status=$?
8275 cat out/conftest.err >&5
8276 echo "$as_me:8276: \$? = $ac_status" >&5
8277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8278 then
8279 # The compiler can only warn and ignore the option if not recognized
8280 # So say no if there are warnings
8281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8284 lt_cv_prog_compiler_c_o=yes
8285 fi
8286 fi
8287 chmod u+w . 2>&5
8288 $RM conftest*
8289 # SGI C++ compiler will create directory out/ii_files/ for
8290 # template instantiation
8291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8292 $RM out/* && rmdir out
8293 cd ..
8294 $RM -r conftest
8295 $RM conftest*
8296
8297 fi
8298 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8300
8301
8302
8303
8304 hard_links="nottested"
8305 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8306 # do not overwrite the value of need_locks provided by the user
8307 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8308 $as_echo_n "checking if we can lock with hard links... " >&6; }
8309 hard_links=yes
8310 $RM conftest*
8311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8312 touch conftest.a
8313 ln conftest.a conftest.b 2>&5 || hard_links=no
8314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8315 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8316 $as_echo "$hard_links" >&6; }
8317 if test "$hard_links" = no; then
8318 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8319 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8320 need_locks=warn
8321 fi
8322 else
8323 need_locks=no
8324 fi
8325
8326
8327
8328
8329
8330
8331 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8332 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8333
8334 runpath_var=
8335 allow_undefined_flag=
8336 always_export_symbols=no
8337 archive_cmds=
8338 archive_expsym_cmds=
8339 compiler_needs_object=no
8340 enable_shared_with_static_runtimes=no
8341 export_dynamic_flag_spec=
8342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8343 hardcode_automatic=no
8344 hardcode_direct=no
8345 hardcode_direct_absolute=no
8346 hardcode_libdir_flag_spec=
8347 hardcode_libdir_flag_spec_ld=
8348 hardcode_libdir_separator=
8349 hardcode_minus_L=no
8350 hardcode_shlibpath_var=unsupported
8351 inherit_rpath=no
8352 link_all_deplibs=unknown
8353 module_cmds=
8354 module_expsym_cmds=
8355 old_archive_from_new_cmds=
8356 old_archive_from_expsyms_cmds=
8357 thread_safe_flag_spec=
8358 whole_archive_flag_spec=
8359 # include_expsyms should be a list of space-separated symbols to be *always*
8360 # included in the symbol list
8361 include_expsyms=
8362 # exclude_expsyms can be an extended regexp of symbols to exclude
8363 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8364 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8365 # as well as any symbol that contains `d'.
8366 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8367 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8368 # platforms (ab)use it in PIC code, but their linkers get confused if
8369 # the symbol is explicitly referenced. Since portable code cannot
8370 # rely on this symbol name, it's probably fine to never include it in
8371 # preloaded symbol tables.
8372 # Exclude shared library initialization/finalization symbols.
8373 extract_expsyms_cmds=
8374
8375 case $host_os in
8376 cygwin* | mingw* | pw32* | cegcc*)
8377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8378 # When not using gcc, we currently assume that we are using
8379 # Microsoft Visual C++.
8380 if test "$GCC" != yes; then
8381 with_gnu_ld=no
8382 fi
8383 ;;
8384 interix*)
8385 # we just hope/assume this is gcc and not c89 (= MSVC++)
8386 with_gnu_ld=yes
8387 ;;
8388 openbsd*)
8389 with_gnu_ld=no
8390 ;;
8391 esac
8392
8393 ld_shlibs=yes
8394 if test "$with_gnu_ld" = yes; then
8395 # If archive_cmds runs LD, not CC, wlarc should be empty
8396 wlarc='${wl}'
8397
8398 # Set some defaults for GNU ld with shared library support. These
8399 # are reset later if shared libraries are not supported. Putting them
8400 # here allows them to be overridden if necessary.
8401 runpath_var=LD_RUN_PATH
8402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8403 export_dynamic_flag_spec='${wl}--export-dynamic'
8404 # ancient GNU ld didn't support --whole-archive et. al.
8405 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8406 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8407 else
8408 whole_archive_flag_spec=
8409 fi
8410 supports_anon_versioning=no
8411 case `$LD -v 2>&1` in
8412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8415 *\ 2.11.*) ;; # other 2.11 versions
8416 *) supports_anon_versioning=yes ;;
8417 esac
8418
8419 # See if GNU ld supports shared libraries.
8420 case $host_os in
8421 aix[3-9]*)
8422 # On AIX/PPC, the GNU linker is very broken
8423 if test "$host_cpu" != ia64; then
8424 ld_shlibs=no
8425 cat <<_LT_EOF 1>&2
8426
8427 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8428 *** to be unable to reliably create shared libraries on AIX.
8429 *** Therefore, libtool is disabling shared libraries support. If you
8430 *** really care for shared libraries, you may want to modify your PATH
8431 *** so that a non-GNU linker is found, and then restart.
8432
8433 _LT_EOF
8434 fi
8435 ;;
8436
8437 amigaos*)
8438 case $host_cpu in
8439 powerpc)
8440 # see comment about AmigaOS4 .so support
8441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442 archive_expsym_cmds=''
8443 ;;
8444 m68k)
8445 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)'
8446 hardcode_libdir_flag_spec='-L$libdir'
8447 hardcode_minus_L=yes
8448 ;;
8449 esac
8450 ;;
8451
8452 beos*)
8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454 allow_undefined_flag=unsupported
8455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8456 # support --undefined. This deserves some investigation. FIXME
8457 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8458 else
8459 ld_shlibs=no
8460 fi
8461 ;;
8462
8463 cygwin* | mingw* | pw32* | cegcc*)
8464 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8465 # as there is no search path for DLLs.
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 allow_undefined_flag=unsupported
8468 always_export_symbols=no
8469 enable_shared_with_static_runtimes=yes
8470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8471
8472 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8474 # If the export-symbols file already is a .def file (1st line
8475 # is EXPORTS), use it as is; otherwise, prepend...
8476 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8477 cp $export_symbols $output_objdir/$soname.def;
8478 else
8479 echo EXPORTS > $output_objdir/$soname.def;
8480 cat $export_symbols >> $output_objdir/$soname.def;
8481 fi~
8482 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8483 else
8484 ld_shlibs=no
8485 fi
8486 ;;
8487
8488 interix[3-9]*)
8489 hardcode_direct=no
8490 hardcode_shlibpath_var=no
8491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8492 export_dynamic_flag_spec='${wl}-E'
8493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8494 # Instead, shared libraries are loaded at an image base (0x10000000 by
8495 # default) and relocated if they conflict, which is a slow very memory
8496 # consuming and fragmenting process. To avoid this, we pick a random,
8497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8500 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'
8501 ;;
8502
8503 gnu* | linux* | tpf* | k*bsd*-gnu)
8504 tmp_diet=no
8505 if test "$host_os" = linux-dietlibc; then
8506 case $cc_basename in
8507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8508 esac
8509 fi
8510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8511 && test "$tmp_diet" = no
8512 then
8513 tmp_addflag=
8514 tmp_sharedflag='-shared'
8515 case $cc_basename,$host_cpu in
8516 pgcc*) # Portland Group C compiler
8517 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'
8518 tmp_addflag=' $pic_flag'
8519 ;;
8520 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8521 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'
8522 tmp_addflag=' $pic_flag -Mnomain' ;;
8523 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8524 tmp_addflag=' -i_dynamic' ;;
8525 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8526 tmp_addflag=' -i_dynamic -nofor_main' ;;
8527 ifc* | ifort*) # Intel Fortran compiler
8528 tmp_addflag=' -nofor_main' ;;
8529 lf95*) # Lahey Fortran 8.1
8530 whole_archive_flag_spec=
8531 tmp_sharedflag='--shared' ;;
8532 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8533 tmp_sharedflag='-qmkshrobj'
8534 tmp_addflag= ;;
8535 esac
8536 case `$CC -V 2>&1 | sed 5q` in
8537 *Sun\ C*) # Sun C 5.9
8538 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'
8539 compiler_needs_object=yes
8540 tmp_sharedflag='-G' ;;
8541 *Sun\ F*) # Sun Fortran 8.3
8542 tmp_sharedflag='-G' ;;
8543 esac
8544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545
8546 if test "x$supports_anon_versioning" = xyes; then
8547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8549 echo "local: *; };" >> $output_objdir/$libname.ver~
8550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8551 fi
8552
8553 case $cc_basename in
8554 xlf*)
8555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8557 hardcode_libdir_flag_spec=
8558 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8559 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8560 if test "x$supports_anon_versioning" = xyes; then
8561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8563 echo "local: *; };" >> $output_objdir/$libname.ver~
8564 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8565 fi
8566 ;;
8567 esac
8568 else
8569 ld_shlibs=no
8570 fi
8571 ;;
8572
8573 netbsd*)
8574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8575 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8576 wlarc=
8577 else
8578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8580 fi
8581 ;;
8582
8583 solaris*)
8584 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8585 ld_shlibs=no
8586 cat <<_LT_EOF 1>&2
8587
8588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8589 *** create shared libraries on Solaris systems. Therefore, libtool
8590 *** is disabling shared libraries support. We urge you to upgrade GNU
8591 *** binutils to release 2.9.1 or newer. Another option is to modify
8592 *** your PATH or compiler configuration so that the native linker is
8593 *** used, and then restart.
8594
8595 _LT_EOF
8596 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8599 else
8600 ld_shlibs=no
8601 fi
8602 ;;
8603
8604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8605 case `$LD -v 2>&1` in
8606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8607 ld_shlibs=no
8608 cat <<_LT_EOF 1>&2
8609
8610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8611 *** reliably create shared libraries on SCO systems. Therefore, libtool
8612 *** is disabling shared libraries support. We urge you to upgrade GNU
8613 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8614 *** your PATH or compiler configuration so that the native linker is
8615 *** used, and then restart.
8616
8617 _LT_EOF
8618 ;;
8619 *)
8620 # For security reasons, it is highly recommended that you always
8621 # use absolute paths for naming shared libraries, and exclude the
8622 # DT_RUNPATH tag from executables and libraries. But doing so
8623 # requires that you compile everything twice, which is a pain.
8624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8628 else
8629 ld_shlibs=no
8630 fi
8631 ;;
8632 esac
8633 ;;
8634
8635 sunos4*)
8636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8637 wlarc=
8638 hardcode_direct=yes
8639 hardcode_shlibpath_var=no
8640 ;;
8641
8642 *)
8643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8646 else
8647 ld_shlibs=no
8648 fi
8649 ;;
8650 esac
8651
8652 if test "$ld_shlibs" = no; then
8653 runpath_var=
8654 hardcode_libdir_flag_spec=
8655 export_dynamic_flag_spec=
8656 whole_archive_flag_spec=
8657 fi
8658 else
8659 # PORTME fill in a description of your system's linker (not GNU ld)
8660 case $host_os in
8661 aix3*)
8662 allow_undefined_flag=unsupported
8663 always_export_symbols=yes
8664 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'
8665 # Note: this linker hardcodes the directories in LIBPATH if there
8666 # are no directories specified by -L.
8667 hardcode_minus_L=yes
8668 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8669 # Neither direct hardcoding nor static linking is supported with a
8670 # broken collect2.
8671 hardcode_direct=unsupported
8672 fi
8673 ;;
8674
8675 aix[4-9]*)
8676 if test "$host_cpu" = ia64; then
8677 # On IA64, the linker does run time linking by default, so we don't
8678 # have to do anything special.
8679 aix_use_runtimelinking=no
8680 exp_sym_flag='-Bexport'
8681 no_entry_flag=""
8682 else
8683 # If we're using GNU nm, then we don't want the "-C" option.
8684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8685 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8686 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'
8687 else
8688 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'
8689 fi
8690 aix_use_runtimelinking=no
8691
8692 # Test if we are trying to use run time linking or normal
8693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8694 # need to do runtime linking.
8695 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8696 for ld_flag in $LDFLAGS; do
8697 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8698 aix_use_runtimelinking=yes
8699 break
8700 fi
8701 done
8702 ;;
8703 esac
8704
8705 exp_sym_flag='-bexport'
8706 no_entry_flag='-bnoentry'
8707 fi
8708
8709 # When large executables or shared objects are built, AIX ld can
8710 # have problems creating the table of contents. If linking a library
8711 # or program results in "error TOC overflow" add -mminimal-toc to
8712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8714
8715 archive_cmds=''
8716 hardcode_direct=yes
8717 hardcode_direct_absolute=yes
8718 hardcode_libdir_separator=':'
8719 link_all_deplibs=yes
8720 file_list_spec='${wl}-f,'
8721
8722 if test "$GCC" = yes; then
8723 case $host_os in aix4.[012]|aix4.[012].*)
8724 # We only want to do this on AIX 4.2 and lower, the check
8725 # below for broken collect2 doesn't work under 4.3+
8726 collect2name=`${CC} -print-prog-name=collect2`
8727 if test -f "$collect2name" &&
8728 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8729 then
8730 # We have reworked collect2
8731 :
8732 else
8733 # We have old collect2
8734 hardcode_direct=unsupported
8735 # It fails to find uninstalled libraries when the uninstalled
8736 # path is not listed in the libpath. Setting hardcode_minus_L
8737 # to unsupported forces relinking
8738 hardcode_minus_L=yes
8739 hardcode_libdir_flag_spec='-L$libdir'
8740 hardcode_libdir_separator=
8741 fi
8742 ;;
8743 esac
8744 shared_flag='-shared'
8745 if test "$aix_use_runtimelinking" = yes; then
8746 shared_flag="$shared_flag "'${wl}-G'
8747 fi
8748 else
8749 # not using gcc
8750 if test "$host_cpu" = ia64; then
8751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8752 # chokes on -Wl,-G. The following line is correct:
8753 shared_flag='-G'
8754 else
8755 if test "$aix_use_runtimelinking" = yes; then
8756 shared_flag='${wl}-G'
8757 else
8758 shared_flag='${wl}-bM:SRE'
8759 fi
8760 fi
8761 fi
8762
8763 export_dynamic_flag_spec='${wl}-bexpall'
8764 # It seems that -bexpall does not export symbols beginning with
8765 # underscore (_), so it is better to generate a list of symbols to export.
8766 always_export_symbols=yes
8767 if test "$aix_use_runtimelinking" = yes; then
8768 # Warning - without using the other runtime loading flags (-brtl),
8769 # -berok will link without error, but may produce a broken library.
8770 allow_undefined_flag='-berok'
8771 # Determine the default libpath from the value encoded in an
8772 # empty executable.
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779
8780 int
8781 main ()
8782 {
8783
8784 ;
8785 return 0;
8786 }
8787 _ACEOF
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8790 case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793 esac
8794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8795 $as_echo "$ac_try_echo") >&5
8796 (eval "$ac_link") 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8805 } && test -s conftest$ac_exeext && {
8806 test "$cross_compiling" = yes ||
8807 $as_test_x conftest$ac_exeext
8808 }; then
8809
8810 lt_aix_libpath_sed='
8811 /Import File Strings/,/^$/ {
8812 /^0/ {
8813 s/^0 *\(.*\)$/\1/
8814 p
8815 }
8816 }'
8817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8818 # Check for a 64-bit object if we didn't find anything.
8819 if test -z "$aix_libpath"; then
8820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8821 fi
8822 else
8823 $as_echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8825
8826
8827 fi
8828
8829 rm -rf conftest.dSYM
8830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8833
8834 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8835 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"
8836 else
8837 if test "$host_cpu" = ia64; then
8838 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8839 allow_undefined_flag="-z nodefs"
8840 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"
8841 else
8842 # Determine the default libpath from the value encoded in an
8843 # empty executable.
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850
8851 int
8852 main ()
8853 {
8854
8855 ;
8856 return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (ac_try="$ac_link"
8861 case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864 esac
8865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866 $as_echo "$ac_try_echo") >&5
8867 (eval "$ac_link") 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } && {
8874 test -z "$ac_c_werror_flag" ||
8875 test ! -s conftest.err
8876 } && test -s conftest$ac_exeext && {
8877 test "$cross_compiling" = yes ||
8878 $as_test_x conftest$ac_exeext
8879 }; then
8880
8881 lt_aix_libpath_sed='
8882 /Import File Strings/,/^$/ {
8883 /^0/ {
8884 s/^0 *\(.*\)$/\1/
8885 p
8886 }
8887 }'
8888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 # Check for a 64-bit object if we didn't find anything.
8890 if test -z "$aix_libpath"; then
8891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 fi
8893 else
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897
8898 fi
8899
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8908 no_undefined_flag=' ${wl}-bernotok'
8909 allow_undefined_flag=' ${wl}-berok'
8910 # Exported symbols can be pulled into shared objects from archives
8911 whole_archive_flag_spec='$convenience'
8912 archive_cmds_need_lc=yes
8913 # This is similar to how AIX traditionally builds its shared libraries.
8914 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'
8915 fi
8916 fi
8917 ;;
8918
8919 amigaos*)
8920 case $host_cpu in
8921 powerpc)
8922 # see comment about AmigaOS4 .so support
8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 archive_expsym_cmds=''
8925 ;;
8926 m68k)
8927 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)'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_minus_L=yes
8930 ;;
8931 esac
8932 ;;
8933
8934 bsdi[45]*)
8935 export_dynamic_flag_spec=-rdynamic
8936 ;;
8937
8938 cygwin* | mingw* | pw32* | cegcc*)
8939 # When not using gcc, we currently assume that we are using
8940 # Microsoft Visual C++.
8941 # hardcode_libdir_flag_spec is actually meaningless, as there is
8942 # no search path for DLLs.
8943 hardcode_libdir_flag_spec=' '
8944 allow_undefined_flag=unsupported
8945 # Tell ltmain to make .lib files, not .a files.
8946 libext=lib
8947 # Tell ltmain to make .dll files, not .so files.
8948 shrext_cmds=".dll"
8949 # FIXME: Setting linknames here is a bad hack.
8950 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8951 # The linker will automatically build a .lib file if we build a DLL.
8952 old_archive_from_new_cmds='true'
8953 # FIXME: Should let the user specify the lib program.
8954 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8955 fix_srcfile_path='`cygpath -w "$srcfile"`'
8956 enable_shared_with_static_runtimes=yes
8957 ;;
8958
8959 darwin* | rhapsody*)
8960
8961
8962 archive_cmds_need_lc=no
8963 hardcode_direct=no
8964 hardcode_automatic=yes
8965 hardcode_shlibpath_var=unsupported
8966 whole_archive_flag_spec=''
8967 link_all_deplibs=yes
8968 allow_undefined_flag="$_lt_dar_allow_undefined"
8969 case $cc_basename in
8970 ifort*) _lt_dar_can_shared=yes ;;
8971 *) _lt_dar_can_shared=$GCC ;;
8972 esac
8973 if test "$_lt_dar_can_shared" = "yes"; then
8974 output_verbose_link_cmd=echo
8975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8977 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}"
8978 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}"
8979
8980 else
8981 ld_shlibs=no
8982 fi
8983
8984 ;;
8985
8986 dgux*)
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8990 ;;
8991
8992 freebsd1*)
8993 ld_shlibs=no
8994 ;;
8995
8996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8997 # support. Future versions do this automatically, but an explicit c++rt0.o
8998 # does not break anything, and helps significantly (at the cost of a little
8999 # extra space).
9000 freebsd2.2*)
9001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9002 hardcode_libdir_flag_spec='-R$libdir'
9003 hardcode_direct=yes
9004 hardcode_shlibpath_var=no
9005 ;;
9006
9007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9008 freebsd2*)
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_direct=yes
9011 hardcode_minus_L=yes
9012 hardcode_shlibpath_var=no
9013 ;;
9014
9015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9016 freebsd* | dragonfly*)
9017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9018 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9021 ;;
9022
9023 hpux9*)
9024 if test "$GCC" = yes; then
9025 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'
9026 else
9027 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'
9028 fi
9029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030 hardcode_libdir_separator=:
9031 hardcode_direct=yes
9032
9033 # hardcode_minus_L: Not really in the search PATH,
9034 # but as the default location of the library.
9035 hardcode_minus_L=yes
9036 export_dynamic_flag_spec='${wl}-E'
9037 ;;
9038
9039 hpux10*)
9040 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9041 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9042 else
9043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9044 fi
9045 if test "$with_gnu_ld" = no; then
9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047 hardcode_libdir_flag_spec_ld='+b $libdir'
9048 hardcode_libdir_separator=:
9049 hardcode_direct=yes
9050 hardcode_direct_absolute=yes
9051 export_dynamic_flag_spec='${wl}-E'
9052 # hardcode_minus_L: Not really in the search PATH,
9053 # but as the default location of the library.
9054 hardcode_minus_L=yes
9055 fi
9056 ;;
9057
9058 hpux11*)
9059 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9060 case $host_cpu in
9061 hppa*64*)
9062 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 ;;
9064 ia64*)
9065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066 ;;
9067 *)
9068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9069 ;;
9070 esac
9071 else
9072 case $host_cpu in
9073 hppa*64*)
9074 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 ;;
9076 ia64*)
9077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9078 ;;
9079 *)
9080 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9081 ;;
9082 esac
9083 fi
9084 if test "$with_gnu_ld" = no; then
9085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9086 hardcode_libdir_separator=:
9087
9088 case $host_cpu in
9089 hppa*64*|ia64*)
9090 hardcode_direct=no
9091 hardcode_shlibpath_var=no
9092 ;;
9093 *)
9094 hardcode_direct=yes
9095 hardcode_direct_absolute=yes
9096 export_dynamic_flag_spec='${wl}-E'
9097
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9101 ;;
9102 esac
9103 fi
9104 ;;
9105
9106 irix5* | irix6* | nonstopux*)
9107 if test "$GCC" = yes; then
9108 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'
9109 # Try to use the -exported_symbol ld option, if it does not
9110 # work, assume that -exports_file does not work either and
9111 # implicitly export all symbols.
9112 save_LDFLAGS="$LDFLAGS"
9113 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9114 cat >conftest.$ac_ext <<_ACEOF
9115 int foo(void) {}
9116 _ACEOF
9117 rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (ac_try="$ac_link"
9119 case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122 esac
9123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9124 $as_echo "$ac_try_echo") >&5
9125 (eval "$ac_link") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest$ac_exeext && {
9135 test "$cross_compiling" = yes ||
9136 $as_test_x conftest$ac_exeext
9137 }; then
9138 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'
9139
9140 else
9141 $as_echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9143
9144
9145 fi
9146
9147 rm -rf conftest.dSYM
9148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9149 conftest$ac_exeext conftest.$ac_ext
9150 LDFLAGS="$save_LDFLAGS"
9151 else
9152 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'
9153 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'
9154 fi
9155 archive_cmds_need_lc='no'
9156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157 hardcode_libdir_separator=:
9158 inherit_rpath=yes
9159 link_all_deplibs=yes
9160 ;;
9161
9162 netbsd*)
9163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9165 else
9166 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9167 fi
9168 hardcode_libdir_flag_spec='-R$libdir'
9169 hardcode_direct=yes
9170 hardcode_shlibpath_var=no
9171 ;;
9172
9173 newsos6)
9174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175 hardcode_direct=yes
9176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177 hardcode_libdir_separator=:
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 *nto* | *qnx*)
9182 ;;
9183
9184 openbsd*)
9185 if test -f /usr/libexec/ld.so; then
9186 hardcode_direct=yes
9187 hardcode_shlibpath_var=no
9188 hardcode_direct_absolute=yes
9189 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9191 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193 export_dynamic_flag_spec='${wl}-E'
9194 else
9195 case $host_os in
9196 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198 hardcode_libdir_flag_spec='-R$libdir'
9199 ;;
9200 *)
9201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9203 ;;
9204 esac
9205 fi
9206 else
9207 ld_shlibs=no
9208 fi
9209 ;;
9210
9211 os2*)
9212 hardcode_libdir_flag_spec='-L$libdir'
9213 hardcode_minus_L=yes
9214 allow_undefined_flag=unsupported
9215 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'
9216 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9217 ;;
9218
9219 osf3*)
9220 if test "$GCC" = yes; then
9221 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9222 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'
9223 else
9224 allow_undefined_flag=' -expect_unresolved \*'
9225 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'
9226 fi
9227 archive_cmds_need_lc='no'
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 ;;
9231
9232 osf4* | osf5*) # as osf3* with the addition of -msym flag
9233 if test "$GCC" = yes; then
9234 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9235 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'
9236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237 else
9238 allow_undefined_flag=' -expect_unresolved \*'
9239 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'
9240 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~
9241 $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'
9242
9243 # Both c and cxx compiler support -rpath directly
9244 hardcode_libdir_flag_spec='-rpath $libdir'
9245 fi
9246 archive_cmds_need_lc='no'
9247 hardcode_libdir_separator=:
9248 ;;
9249
9250 solaris*)
9251 no_undefined_flag=' -z defs'
9252 if test "$GCC" = yes; then
9253 wlarc='${wl}'
9254 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9256 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9257 else
9258 case `$CC -V 2>&1` in
9259 *"Compilers 5.0"*)
9260 wlarc=''
9261 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9263 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9264 ;;
9265 *)
9266 wlarc='${wl}'
9267 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9270 ;;
9271 esac
9272 fi
9273 hardcode_libdir_flag_spec='-R$libdir'
9274 hardcode_shlibpath_var=no
9275 case $host_os in
9276 solaris2.[0-5] | solaris2.[0-5].*) ;;
9277 *)
9278 # The compiler driver will combine and reorder linker options,
9279 # but understands `-z linker_flag'. GCC discards it without `$wl',
9280 # but is careful enough not to reorder.
9281 # Supported since Solaris 2.6 (maybe 2.5.1?)
9282 if test "$GCC" = yes; then
9283 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9284 else
9285 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9286 fi
9287 ;;
9288 esac
9289 link_all_deplibs=yes
9290 ;;
9291
9292 sunos4*)
9293 if test "x$host_vendor" = xsequent; then
9294 # Use $CC to link under sequent, because it throws in some extra .o
9295 # files that make .init and .fini sections work.
9296 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297 else
9298 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9299 fi
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_direct=yes
9302 hardcode_minus_L=yes
9303 hardcode_shlibpath_var=no
9304 ;;
9305
9306 sysv4)
9307 case $host_vendor in
9308 sni)
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_direct=yes # is this really true???
9311 ;;
9312 siemens)
9313 ## LD is ld it makes a PLAMLIB
9314 ## CC just makes a GrossModule.
9315 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9316 reload_cmds='$CC -r -o $output$reload_objs'
9317 hardcode_direct=no
9318 ;;
9319 motorola)
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9322 ;;
9323 esac
9324 runpath_var='LD_RUN_PATH'
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 sysv4.3*)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_shlibpath_var=no
9331 export_dynamic_flag_spec='-Bexport'
9332 ;;
9333
9334 sysv4*MP*)
9335 if test -d /usr/nec; then
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_shlibpath_var=no
9338 runpath_var=LD_RUN_PATH
9339 hardcode_runpath_var=yes
9340 ld_shlibs=yes
9341 fi
9342 ;;
9343
9344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9345 no_undefined_flag='${wl}-z,text'
9346 archive_cmds_need_lc=no
9347 hardcode_shlibpath_var=no
9348 runpath_var='LD_RUN_PATH'
9349
9350 if test "$GCC" = yes; then
9351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 fi
9357 ;;
9358
9359 sysv5* | sco3.2v5* | sco5v6*)
9360 # Note: We can NOT use -z defs as we might desire, because we do not
9361 # link with -lc, and that would cause any symbols used from libc to
9362 # always be unresolved, which means just about no library would
9363 # ever link correctly. If we're not using GNU ld we use -z text
9364 # though, which does catch some bad symbols but isn't as heavy-handed
9365 # as -z defs.
9366 no_undefined_flag='${wl}-z,text'
9367 allow_undefined_flag='${wl}-z,nodefs'
9368 archive_cmds_need_lc=no
9369 hardcode_shlibpath_var=no
9370 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9371 hardcode_libdir_separator=':'
9372 link_all_deplibs=yes
9373 export_dynamic_flag_spec='${wl}-Bexport'
9374 runpath_var='LD_RUN_PATH'
9375
9376 if test "$GCC" = yes; then
9377 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 else
9380 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 fi
9383 ;;
9384
9385 uts4*)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 *)
9392 ld_shlibs=no
9393 ;;
9394 esac
9395
9396 if test x$host_vendor = xsni; then
9397 case $host in
9398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9399 export_dynamic_flag_spec='${wl}-Blargedynsym'
9400 ;;
9401 esac
9402 fi
9403 fi
9404
9405 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9406 $as_echo "$ld_shlibs" >&6; }
9407 test "$ld_shlibs" = no && can_build_shared=no
9408
9409 with_gnu_ld=$with_gnu_ld
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425 #
9426 # Do we need to explicitly link libc?
9427 #
9428 case "x$archive_cmds_need_lc" in
9429 x|xyes)
9430 # Assume -lc should be added
9431 archive_cmds_need_lc=yes
9432
9433 if test "$enable_shared" = yes && test "$GCC" = yes; then
9434 case $archive_cmds in
9435 *'~'*)
9436 # FIXME: we may have to deal with multi-command sequences.
9437 ;;
9438 '$CC '*)
9439 # Test whether the compiler implicitly links with -lc since on some
9440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9441 # to ld, don't add -lc before -lgcc.
9442 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9443 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9444 $RM conftest*
9445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9446
9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448 (eval $ac_compile) 2>&5
9449 ac_status=$?
9450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } 2>conftest.err; then
9452 soname=conftest
9453 lib=conftest
9454 libobjs=conftest.$ac_objext
9455 deplibs=
9456 wl=$lt_prog_compiler_wl
9457 pic_flag=$lt_prog_compiler_pic
9458 compiler_flags=-v
9459 linker_flags=-v
9460 verstring=
9461 output_objdir=.
9462 libname=conftest
9463 lt_save_allow_undefined_flag=$allow_undefined_flag
9464 allow_undefined_flag=
9465 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9467 ac_status=$?
9468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }
9470 then
9471 archive_cmds_need_lc=no
9472 else
9473 archive_cmds_need_lc=yes
9474 fi
9475 allow_undefined_flag=$lt_save_allow_undefined_flag
9476 else
9477 cat conftest.err 1>&5
9478 fi
9479 $RM conftest*
9480 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9481 $as_echo "$archive_cmds_need_lc" >&6; }
9482 ;;
9483 esac
9484 fi
9485 ;;
9486 esac
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9645 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9646
9647 if test "$GCC" = yes; then
9648 case $host_os in
9649 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9650 *) lt_awk_arg="/^libraries:/" ;;
9651 esac
9652 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9653 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9654 # if the path contains ";" then we assume it to be the separator
9655 # otherwise default to the standard path separator (i.e. ":") - it is
9656 # assumed that no part of a normal pathname contains ";" but that should
9657 # okay in the real world where ";" in dirpaths is itself problematic.
9658 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9659 else
9660 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 fi
9662 # Ok, now we have the path, separated by spaces, we can step through it
9663 # and add multilib dir if necessary.
9664 lt_tmp_lt_search_path_spec=
9665 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9666 for lt_sys_path in $lt_search_path_spec; do
9667 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9669 else
9670 test -d "$lt_sys_path" && \
9671 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9672 fi
9673 done
9674 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9675 BEGIN {RS=" "; FS="/|\n";} {
9676 lt_foo="";
9677 lt_count=0;
9678 for (lt_i = NF; lt_i > 0; lt_i--) {
9679 if ($lt_i != "" && $lt_i != ".") {
9680 if ($lt_i == "..") {
9681 lt_count++;
9682 } else {
9683 if (lt_count == 0) {
9684 lt_foo="/" $lt_i lt_foo;
9685 } else {
9686 lt_count--;
9687 }
9688 }
9689 }
9690 }
9691 if (lt_foo != "") { lt_freq[lt_foo]++; }
9692 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9693 }'`
9694 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9695 else
9696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9697 fi
9698 library_names_spec=
9699 libname_spec='lib$name'
9700 soname_spec=
9701 shrext_cmds=".so"
9702 postinstall_cmds=
9703 postuninstall_cmds=
9704 finish_cmds=
9705 finish_eval=
9706 shlibpath_var=
9707 shlibpath_overrides_runpath=unknown
9708 version_type=none
9709 dynamic_linker="$host_os ld.so"
9710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711 need_lib_prefix=unknown
9712 hardcode_into_libs=no
9713
9714 # when you set need_version to no, make sure it does not cause -set_version
9715 # flags to be left without arguments
9716 need_version=unknown
9717
9718 case $host_os in
9719 aix3*)
9720 version_type=linux
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9722 shlibpath_var=LIBPATH
9723
9724 # AIX 3 has no versioning support, so we append a major version to the name.
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 ;;
9727
9728 aix[4-9]*)
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 hardcode_into_libs=yes
9733 if test "$host_cpu" = ia64; then
9734 # AIX 5 supports IA64
9735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9736 shlibpath_var=LD_LIBRARY_PATH
9737 else
9738 # With GCC up to 2.95.x, collect2 would create an import file
9739 # for dependence libraries. The import file would start with
9740 # the line `#! .'. This would cause the generated library to
9741 # depend on `.', always an invalid library. This was fixed in
9742 # development snapshots of GCC prior to 3.0.
9743 case $host_os in
9744 aix4 | aix4.[01] | aix4.[01].*)
9745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9746 echo ' yes '
9747 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9748 :
9749 else
9750 can_build_shared=no
9751 fi
9752 ;;
9753 esac
9754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9755 # soname into executable. Probably we can add versioning support to
9756 # collect2, so additional links can be useful in future.
9757 if test "$aix_use_runtimelinking" = yes; then
9758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9759 # instead of lib<name>.a to let people know that these are not
9760 # typical AIX shared libraries.
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 else
9763 # We preserve .a as extension for shared libraries through AIX4.2
9764 # and later when we are not doing run time linking.
9765 library_names_spec='${libname}${release}.a $libname.a'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 fi
9768 shlibpath_var=LIBPATH
9769 fi
9770 ;;
9771
9772 amigaos*)
9773 case $host_cpu in
9774 powerpc)
9775 # Since July 2007 AmigaOS4 officially supports .so libraries.
9776 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 ;;
9779 m68k)
9780 library_names_spec='$libname.ixlibrary $libname.a'
9781 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9782 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'
9783 ;;
9784 esac
9785 ;;
9786
9787 beos*)
9788 library_names_spec='${libname}${shared_ext}'
9789 dynamic_linker="$host_os ld.so"
9790 shlibpath_var=LIBRARY_PATH
9791 ;;
9792
9793 bsdi[45]*)
9794 version_type=linux
9795 need_version=no
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9802 # the default ld.so.conf also contains /usr/contrib/lib and
9803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9804 # libtool to hard-code these into programs
9805 ;;
9806
9807 cygwin* | mingw* | pw32* | cegcc*)
9808 version_type=windows
9809 shrext_cmds=".dll"
9810 need_version=no
9811 need_lib_prefix=no
9812
9813 case $GCC,$host_os in
9814 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9815 library_names_spec='$libname.dll.a'
9816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9817 postinstall_cmds='base_file=`basename \${file}`~
9818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9819 dldir=$destdir/`dirname \$dlpath`~
9820 test -d \$dldir || mkdir -p \$dldir~
9821 $install_prog $dir/$dlname \$dldir/$dlname~
9822 chmod a+x \$dldir/$dlname~
9823 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9824 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9825 fi'
9826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9827 dlpath=$dir/\$dldll~
9828 $RM \$dlpath'
9829 shlibpath_overrides_runpath=yes
9830
9831 case $host_os in
9832 cygwin*)
9833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9836 ;;
9837 mingw* | cegcc*)
9838 # MinGW DLLs use traditional 'lib' prefix
9839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9840 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9841 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9842 # It is most probably a Windows format PATH printed by
9843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9844 # path with ; separators, and with drive letters. We can handle the
9845 # drive letters (cygwin fileutils understands them), so leave them,
9846 # especially as we might pass files found there to a mingw objdump,
9847 # which wouldn't understand a cygwinified path. Ahh.
9848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9849 else
9850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9851 fi
9852 ;;
9853 pw32*)
9854 # pw32 DLLs use 'pw' prefix rather than 'lib'
9855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9856 ;;
9857 esac
9858 ;;
9859
9860 *)
9861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9862 ;;
9863 esac
9864 dynamic_linker='Win32 ld.exe'
9865 # FIXME: first we should search . and the directory the executable is in
9866 shlibpath_var=PATH
9867 ;;
9868
9869 darwin* | rhapsody*)
9870 dynamic_linker="$host_os dyld"
9871 version_type=darwin
9872 need_lib_prefix=no
9873 need_version=no
9874 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9875 soname_spec='${libname}${release}${major}$shared_ext'
9876 shlibpath_overrides_runpath=yes
9877 shlibpath_var=DYLD_LIBRARY_PATH
9878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9879
9880 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9882 ;;
9883
9884 dgux*)
9885 version_type=linux
9886 need_lib_prefix=no
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 ;;
9892
9893 freebsd1*)
9894 dynamic_linker=no
9895 ;;
9896
9897 freebsd* | dragonfly*)
9898 # DragonFly does not have aout. When/if they implement a new
9899 # versioning mechanism, adjust this.
9900 if test -x /usr/bin/objformat; then
9901 objformat=`/usr/bin/objformat`
9902 else
9903 case $host_os in
9904 freebsd[123]*) objformat=aout ;;
9905 *) objformat=elf ;;
9906 esac
9907 fi
9908 version_type=freebsd-$objformat
9909 case $version_type in
9910 freebsd-elf*)
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9912 need_version=no
9913 need_lib_prefix=no
9914 ;;
9915 freebsd-*)
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9917 need_version=yes
9918 ;;
9919 esac
9920 shlibpath_var=LD_LIBRARY_PATH
9921 case $host_os in
9922 freebsd2*)
9923 shlibpath_overrides_runpath=yes
9924 ;;
9925 freebsd3.[01]* | freebsdelf3.[01]*)
9926 shlibpath_overrides_runpath=yes
9927 hardcode_into_libs=yes
9928 ;;
9929 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9930 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9931 shlibpath_overrides_runpath=no
9932 hardcode_into_libs=yes
9933 ;;
9934 *) # from 4.6 on, and DragonFly
9935 shlibpath_overrides_runpath=yes
9936 hardcode_into_libs=yes
9937 ;;
9938 esac
9939 ;;
9940
9941 gnu*)
9942 version_type=linux
9943 need_lib_prefix=no
9944 need_version=no
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 hardcode_into_libs=yes
9949 ;;
9950
9951 hpux9* | hpux10* | hpux11*)
9952 # Give a soname corresponding to the major version so that dld.sl refuses to
9953 # link against other versions.
9954 version_type=sunos
9955 need_lib_prefix=no
9956 need_version=no
9957 case $host_cpu in
9958 ia64*)
9959 shrext_cmds='.so'
9960 hardcode_into_libs=yes
9961 dynamic_linker="$host_os dld.so"
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 if test "X$HPUX_IA64_MODE" = X32; then
9967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9968 else
9969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9970 fi
9971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9972 ;;
9973 hppa*64*)
9974 shrext_cmds='.sl'
9975 hardcode_into_libs=yes
9976 dynamic_linker="$host_os dld.sl"
9977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9983 ;;
9984 *)
9985 shrext_cmds='.sl'
9986 dynamic_linker="$host_os dld.sl"
9987 shlibpath_var=SHLIB_PATH
9988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990 soname_spec='${libname}${release}${shared_ext}$major'
9991 ;;
9992 esac
9993 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9994 postinstall_cmds='chmod 555 $lib'
9995 ;;
9996
9997 interix[3-9]*)
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 shlibpath_overrides_runpath=no
10006 hardcode_into_libs=yes
10007 ;;
10008
10009 irix5* | irix6* | nonstopux*)
10010 case $host_os in
10011 nonstopux*) version_type=nonstopux ;;
10012 *)
10013 if test "$lt_cv_prog_gnu_ld" = yes; then
10014 version_type=linux
10015 else
10016 version_type=irix
10017 fi ;;
10018 esac
10019 need_lib_prefix=no
10020 need_version=no
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 case $host_os in
10024 irix5* | nonstopux*)
10025 libsuff= shlibsuff=
10026 ;;
10027 *)
10028 case $LD in # libtool.m4 will add one of these switches to LD
10029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10030 libsuff= shlibsuff= libmagic=32-bit;;
10031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10032 libsuff=32 shlibsuff=N32 libmagic=N32;;
10033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10035 *) libsuff= shlibsuff= libmagic=never-match;;
10036 esac
10037 ;;
10038 esac
10039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10040 shlibpath_overrides_runpath=no
10041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10043 hardcode_into_libs=yes
10044 ;;
10045
10046 # No shared lib support for Linux oldld, aout, or coff.
10047 linux*oldld* | linux*aout* | linux*coff*)
10048 dynamic_linker=no
10049 ;;
10050
10051 # This must be Linux ELF.
10052 linux* | k*bsd*-gnu)
10053 version_type=linux
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=no
10061 # Some binutils ld are patched to set DT_RUNPATH
10062 save_LDFLAGS=$LDFLAGS
10063 save_libdir=$libdir
10064 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10065 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h. */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10072
10073 int
10074 main ()
10075 {
10076
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10086 esac
10087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10088 $as_echo "$ac_try_echo") >&5
10089 (eval "$ac_link") 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest$ac_exeext && {
10099 test "$cross_compiling" = yes ||
10100 $as_test_x conftest$ac_exeext
10101 }; then
10102 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10103 shlibpath_overrides_runpath=yes
10104 fi
10105
10106 else
10107 $as_echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110
10111 fi
10112
10113 rm -rf conftest.dSYM
10114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LDFLAGS=$save_LDFLAGS
10117 libdir=$save_libdir
10118
10119 # This implies no fast_install, which is unacceptable.
10120 # Some rework will be needed to allow for fast_install
10121 # before this can be enabled.
10122 hardcode_into_libs=yes
10123
10124 # Add ABI-specific directories to the system library path.
10125 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10126
10127 # Append ld.so.conf contents to the search path
10128 if test -f /etc/ld.so.conf; then
10129 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' ' '`
10130 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10131 fi
10132
10133 # We used to test for /lib/ld.so.1 and disable shared libraries on
10134 # powerpc, because MkLinux only supported shared libraries with the
10135 # GNU dynamic linker. Since this was broken with cross compilers,
10136 # most powerpc-linux boxes support dynamic linking these days and
10137 # people can always --disable-shared, the test was removed, and we
10138 # assume the GNU/Linux dynamic linker is in use.
10139 dynamic_linker='GNU/Linux ld.so'
10140 ;;
10141
10142 netbsd*)
10143 version_type=sunos
10144 need_lib_prefix=no
10145 need_version=no
10146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10149 dynamic_linker='NetBSD (a.out) ld.so'
10150 else
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 dynamic_linker='NetBSD ld.elf_so'
10154 fi
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10157 hardcode_into_libs=yes
10158 ;;
10159
10160 newsos6)
10161 version_type=linux
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10165 ;;
10166
10167 *nto* | *qnx*)
10168 version_type=qnx
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=no
10175 hardcode_into_libs=yes
10176 dynamic_linker='ldqnx.so'
10177 ;;
10178
10179 openbsd*)
10180 version_type=sunos
10181 sys_lib_dlsearch_path_spec="/usr/lib"
10182 need_lib_prefix=no
10183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10184 case $host_os in
10185 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10186 *) need_version=no ;;
10187 esac
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10192 case $host_os in
10193 openbsd2.[89] | openbsd2.[89].*)
10194 shlibpath_overrides_runpath=no
10195 ;;
10196 *)
10197 shlibpath_overrides_runpath=yes
10198 ;;
10199 esac
10200 else
10201 shlibpath_overrides_runpath=yes
10202 fi
10203 ;;
10204
10205 os2*)
10206 libname_spec='$name'
10207 shrext_cmds=".dll"
10208 need_lib_prefix=no
10209 library_names_spec='$libname${shared_ext} $libname.a'
10210 dynamic_linker='OS/2 ld.exe'
10211 shlibpath_var=LIBPATH
10212 ;;
10213
10214 osf3* | osf4* | osf5*)
10215 version_type=osf
10216 need_lib_prefix=no
10217 need_version=no
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10222 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10223 ;;
10224
10225 rdos*)
10226 dynamic_linker=no
10227 ;;
10228
10229 solaris*)
10230 version_type=linux
10231 need_lib_prefix=no
10232 need_version=no
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 hardcode_into_libs=yes
10238 # ldd complains unless libraries are executable
10239 postinstall_cmds='chmod +x $lib'
10240 ;;
10241
10242 sunos4*)
10243 version_type=sunos
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath=yes
10248 if test "$with_gnu_ld" = yes; then
10249 need_lib_prefix=no
10250 fi
10251 need_version=yes
10252 ;;
10253
10254 sysv4 | sysv4.3*)
10255 version_type=linux
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 case $host_vendor in
10260 sni)
10261 shlibpath_overrides_runpath=no
10262 need_lib_prefix=no
10263 runpath_var=LD_RUN_PATH
10264 ;;
10265 siemens)
10266 need_lib_prefix=no
10267 ;;
10268 motorola)
10269 need_lib_prefix=no
10270 need_version=no
10271 shlibpath_overrides_runpath=no
10272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10273 ;;
10274 esac
10275 ;;
10276
10277 sysv4*MP*)
10278 if test -d /usr/nec ;then
10279 version_type=linux
10280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10281 soname_spec='$libname${shared_ext}.$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 fi
10284 ;;
10285
10286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10287 version_type=freebsd-elf
10288 need_lib_prefix=no
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10295 if test "$with_gnu_ld" = yes; then
10296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10297 else
10298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10299 case $host_os in
10300 sco3.2v5*)
10301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10302 ;;
10303 esac
10304 fi
10305 sys_lib_dlsearch_path_spec='/usr/lib'
10306 ;;
10307
10308 tpf*)
10309 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=no
10316 hardcode_into_libs=yes
10317 ;;
10318
10319 uts4*)
10320 version_type=linux
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 ;;
10325
10326 *)
10327 dynamic_linker=no
10328 ;;
10329 esac
10330 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10331 $as_echo "$dynamic_linker" >&6; }
10332 test "$dynamic_linker" = no && can_build_shared=no
10333
10334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10335 if test "$GCC" = yes; then
10336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10337 fi
10338
10339 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10340 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10341 fi
10342 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10343 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10344 fi
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10434 hardcode_action=
10435 if test -n "$hardcode_libdir_flag_spec" ||
10436 test -n "$runpath_var" ||
10437 test "X$hardcode_automatic" = "Xyes" ; then
10438
10439 # We can hardcode non-existent directories.
10440 if test "$hardcode_direct" != no &&
10441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10442 # have to relink, otherwise we might link with an installed library
10443 # when we should be linking with a yet-to-be-installed one
10444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10445 test "$hardcode_minus_L" != no; then
10446 # Linking always hardcodes the temporary library directory.
10447 hardcode_action=relink
10448 else
10449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10450 hardcode_action=immediate
10451 fi
10452 else
10453 # We cannot hardcode anything, or else we can only hardcode existing
10454 # directories.
10455 hardcode_action=unsupported
10456 fi
10457 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10458 $as_echo "$hardcode_action" >&6; }
10459
10460 if test "$hardcode_action" = relink ||
10461 test "$inherit_rpath" = yes; then
10462 # Fast installation is not supported
10463 enable_fast_install=no
10464 elif test "$shlibpath_overrides_runpath" = yes ||
10465 test "$enable_shared" = no; then
10466 # Fast installation is not necessary
10467 enable_fast_install=needless
10468 fi
10469
10470
10471
10472
10473
10474
10475 if test "x$enable_dlopen" != xyes; then
10476 enable_dlopen=unknown
10477 enable_dlopen_self=unknown
10478 enable_dlopen_self_static=unknown
10479 else
10480 lt_cv_dlopen=no
10481 lt_cv_dlopen_libs=
10482
10483 case $host_os in
10484 beos*)
10485 lt_cv_dlopen="load_add_on"
10486 lt_cv_dlopen_libs=
10487 lt_cv_dlopen_self=yes
10488 ;;
10489
10490 mingw* | pw32* | cegcc*)
10491 lt_cv_dlopen="LoadLibrary"
10492 lt_cv_dlopen_libs=
10493 ;;
10494
10495 cygwin*)
10496 lt_cv_dlopen="dlopen"
10497 lt_cv_dlopen_libs=
10498 ;;
10499
10500 darwin*)
10501 # if libdl is installed we need to link against it
10502 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10503 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10505 $as_echo_n "(cached) " >&6
10506 else
10507 ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-ldl $LIBS"
10509 cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h. */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515
10516 /* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10519 #ifdef __cplusplus
10520 extern "C"
10521 #endif
10522 char dlopen ();
10523 int
10524 main ()
10525 {
10526 return dlopen ();
10527 ;
10528 return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10538 $as_echo "$ac_try_echo") >&5
10539 (eval "$ac_link") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext && {
10549 test "$cross_compiling" = yes ||
10550 $as_test_x conftest$ac_exeext
10551 }; then
10552 ac_cv_lib_dl_dlopen=yes
10553 else
10554 $as_echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 ac_cv_lib_dl_dlopen=no
10558 fi
10559
10560 rm -rf conftest.dSYM
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10564 fi
10565 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10566 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10567 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10569 else
10570
10571 lt_cv_dlopen="dyld"
10572 lt_cv_dlopen_libs=
10573 lt_cv_dlopen_self=yes
10574
10575 fi
10576
10577 ;;
10578
10579 *)
10580 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10581 $as_echo_n "checking for shl_load... " >&6; }
10582 if test "${ac_cv_func_shl_load+set}" = set; then
10583 $as_echo_n "(cached) " >&6
10584 else
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10593 #define shl_load innocuous_shl_load
10594
10595 /* System header to define __stub macros and hopefully few prototypes,
10596 which can conflict with char shl_load (); below.
10597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10598 <limits.h> exists even on freestanding compilers. */
10599
10600 #ifdef __STDC__
10601 # include <limits.h>
10602 #else
10603 # include <assert.h>
10604 #endif
10605
10606 #undef shl_load
10607
10608 /* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10611 #ifdef __cplusplus
10612 extern "C"
10613 #endif
10614 char shl_load ();
10615 /* The GNU C library defines this for functions which it implements
10616 to always fail with ENOSYS. Some functions are actually named
10617 something starting with __ and the normal name is an alias. */
10618 #if defined __stub_shl_load || defined __stub___shl_load
10619 choke me
10620 #endif
10621
10622 int
10623 main ()
10624 {
10625 return shl_load ();
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10637 $as_echo "$ac_try_echo") >&5
10638 (eval "$ac_link") 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext && {
10648 test "$cross_compiling" = yes ||
10649 $as_test_x conftest$ac_exeext
10650 }; then
10651 ac_cv_func_shl_load=yes
10652 else
10653 $as_echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656 ac_cv_func_shl_load=no
10657 fi
10658
10659 rm -rf conftest.dSYM
10660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10661 conftest$ac_exeext conftest.$ac_ext
10662 fi
10663 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10664 $as_echo "$ac_cv_func_shl_load" >&6; }
10665 if test "x$ac_cv_func_shl_load" = x""yes; then
10666 lt_cv_dlopen="shl_load"
10667 else
10668 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10669 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10670 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10671 $as_echo_n "(cached) " >&6
10672 else
10673 ac_check_lib_save_LIBS=$LIBS
10674 LIBS="-ldld $LIBS"
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 char shl_load ();
10689 int
10690 main ()
10691 {
10692 return shl_load ();
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702 esac
10703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704 $as_echo "$ac_try_echo") >&5
10705 (eval "$ac_link") 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 } && test -s conftest$ac_exeext && {
10715 test "$cross_compiling" = yes ||
10716 $as_test_x conftest$ac_exeext
10717 }; then
10718 ac_cv_lib_dld_shl_load=yes
10719 else
10720 $as_echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722
10723 ac_cv_lib_dld_shl_load=no
10724 fi
10725
10726 rm -rf conftest.dSYM
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10730 fi
10731 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10732 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10733 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10735 else
10736 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10737 $as_echo_n "checking for dlopen... " >&6; }
10738 if test "${ac_cv_func_dlopen+set}" = set; then
10739 $as_echo_n "(cached) " >&6
10740 else
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10749 #define dlopen innocuous_dlopen
10750
10751 /* System header to define __stub macros and hopefully few prototypes,
10752 which can conflict with char dlopen (); below.
10753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10754 <limits.h> exists even on freestanding compilers. */
10755
10756 #ifdef __STDC__
10757 # include <limits.h>
10758 #else
10759 # include <assert.h>
10760 #endif
10761
10762 #undef dlopen
10763
10764 /* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 char dlopen ();
10771 /* The GNU C library defines this for functions which it implements
10772 to always fail with ENOSYS. Some functions are actually named
10773 something starting with __ and the normal name is an alias. */
10774 #if defined __stub_dlopen || defined __stub___dlopen
10775 choke me
10776 #endif
10777
10778 int
10779 main ()
10780 {
10781 return dlopen ();
10782 ;
10783 return 0;
10784 }
10785 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793 $as_echo "$ac_try_echo") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext && {
10804 test "$cross_compiling" = yes ||
10805 $as_test_x conftest$ac_exeext
10806 }; then
10807 ac_cv_func_dlopen=yes
10808 else
10809 $as_echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812 ac_cv_func_dlopen=no
10813 fi
10814
10815 rm -rf conftest.dSYM
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 fi
10819 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10820 $as_echo "$ac_cv_func_dlopen" >&6; }
10821 if test "x$ac_cv_func_dlopen" = x""yes; then
10822 lt_cv_dlopen="dlopen"
10823 else
10824 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10825 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10827 $as_echo_n "(cached) " >&6
10828 else
10829 ac_check_lib_save_LIBS=$LIBS
10830 LIBS="-ldl $LIBS"
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841 #ifdef __cplusplus
10842 extern "C"
10843 #endif
10844 char dlopen ();
10845 int
10846 main ()
10847 {
10848 return dlopen ();
10849 ;
10850 return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858 esac
10859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10860 $as_echo "$ac_try_echo") >&5
10861 (eval "$ac_link") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest$ac_exeext && {
10871 test "$cross_compiling" = yes ||
10872 $as_test_x conftest$ac_exeext
10873 }; then
10874 ac_cv_lib_dl_dlopen=yes
10875 else
10876 $as_echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_cv_lib_dl_dlopen=no
10880 fi
10881
10882 rm -rf conftest.dSYM
10883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10884 conftest$ac_exeext conftest.$ac_ext
10885 LIBS=$ac_check_lib_save_LIBS
10886 fi
10887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10888 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10889 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10890 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10891 else
10892 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10893 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10894 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10895 $as_echo_n "(cached) " >&6
10896 else
10897 ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-lsvld $LIBS"
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905
10906 /* Override any GCC internal prototype to avoid an error.
10907 Use char because int might match the return type of a GCC
10908 builtin and then its argument prototype would still apply. */
10909 #ifdef __cplusplus
10910 extern "C"
10911 #endif
10912 char dlopen ();
10913 int
10914 main ()
10915 {
10916 return dlopen ();
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 rm -f conftest.$ac_objext conftest$ac_exeext
10922 if { (ac_try="$ac_link"
10923 case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926 esac
10927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10928 $as_echo "$ac_try_echo") >&5
10929 (eval "$ac_link") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest$ac_exeext && {
10939 test "$cross_compiling" = yes ||
10940 $as_test_x conftest$ac_exeext
10941 }; then
10942 ac_cv_lib_svld_dlopen=yes
10943 else
10944 $as_echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 ac_cv_lib_svld_dlopen=no
10948 fi
10949
10950 rm -rf conftest.dSYM
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10956 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10957 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10959 else
10960 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10961 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldld $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char dld_link ();
10981 int
10982 main ()
10983 {
10984 return dld_link ();
10985 ;
10986 return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994 esac
10995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10996 $as_echo "$ac_try_echo") >&5
10997 (eval "$ac_link") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest$ac_exeext && {
11007 test "$cross_compiling" = yes ||
11008 $as_test_x conftest$ac_exeext
11009 }; then
11010 ac_cv_lib_dld_dld_link=yes
11011 else
11012 $as_echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 ac_cv_lib_dld_dld_link=no
11016 fi
11017
11018 rm -rf conftest.dSYM
11019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11024 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11025 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11026 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11027 fi
11028
11029
11030 fi
11031
11032
11033 fi
11034
11035
11036 fi
11037
11038
11039 fi
11040
11041
11042 fi
11043
11044 ;;
11045 esac
11046
11047 if test "x$lt_cv_dlopen" != xno; then
11048 enable_dlopen=yes
11049 else
11050 enable_dlopen=no
11051 fi
11052
11053 case $lt_cv_dlopen in
11054 dlopen)
11055 save_CPPFLAGS="$CPPFLAGS"
11056 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11057
11058 save_LDFLAGS="$LDFLAGS"
11059 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11060
11061 save_LIBS="$LIBS"
11062 LIBS="$lt_cv_dlopen_libs $LIBS"
11063
11064 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11065 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11066 if test "${lt_cv_dlopen_self+set}" = set; then
11067 $as_echo_n "(cached) " >&6
11068 else
11069 if test "$cross_compiling" = yes; then :
11070 lt_cv_dlopen_self=cross
11071 else
11072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11073 lt_status=$lt_dlunknown
11074 cat > conftest.$ac_ext <<_LT_EOF
11075 #line 11075 "configure"
11076 #include "confdefs.h"
11077
11078 #if HAVE_DLFCN_H
11079 #include <dlfcn.h>
11080 #endif
11081
11082 #include <stdio.h>
11083
11084 #ifdef RTLD_GLOBAL
11085 # define LT_DLGLOBAL RTLD_GLOBAL
11086 #else
11087 # ifdef DL_GLOBAL
11088 # define LT_DLGLOBAL DL_GLOBAL
11089 # else
11090 # define LT_DLGLOBAL 0
11091 # endif
11092 #endif
11093
11094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11095 find out it does not work in some platform. */
11096 #ifndef LT_DLLAZY_OR_NOW
11097 # ifdef RTLD_LAZY
11098 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11099 # else
11100 # ifdef DL_LAZY
11101 # define LT_DLLAZY_OR_NOW DL_LAZY
11102 # else
11103 # ifdef RTLD_NOW
11104 # define LT_DLLAZY_OR_NOW RTLD_NOW
11105 # else
11106 # ifdef DL_NOW
11107 # define LT_DLLAZY_OR_NOW DL_NOW
11108 # else
11109 # define LT_DLLAZY_OR_NOW 0
11110 # endif
11111 # endif
11112 # endif
11113 # endif
11114 #endif
11115
11116 void fnord() { int i=42;}
11117 int main ()
11118 {
11119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120 int status = $lt_dlunknown;
11121
11122 if (self)
11123 {
11124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11125 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11126 /* dlclose (self); */
11127 }
11128 else
11129 puts (dlerror ());
11130
11131 return status;
11132 }
11133 _LT_EOF
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>&5
11136 ac_status=$?
11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11139 (./conftest; exit; ) >&5 2>/dev/null
11140 lt_status=$?
11141 case x$lt_status in
11142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11145 esac
11146 else :
11147 # compilation failed
11148 lt_cv_dlopen_self=no
11149 fi
11150 fi
11151 rm -fr conftest*
11152
11153
11154 fi
11155 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11156 $as_echo "$lt_cv_dlopen_self" >&6; }
11157
11158 if test "x$lt_cv_dlopen_self" = xyes; then
11159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11160 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11161 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11162 if test "${lt_cv_dlopen_self_static+set}" = set; then
11163 $as_echo_n "(cached) " >&6
11164 else
11165 if test "$cross_compiling" = yes; then :
11166 lt_cv_dlopen_self_static=cross
11167 else
11168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169 lt_status=$lt_dlunknown
11170 cat > conftest.$ac_ext <<_LT_EOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11173
11174 #if HAVE_DLFCN_H
11175 #include <dlfcn.h>
11176 #endif
11177
11178 #include <stdio.h>
11179
11180 #ifdef RTLD_GLOBAL
11181 # define LT_DLGLOBAL RTLD_GLOBAL
11182 #else
11183 # ifdef DL_GLOBAL
11184 # define LT_DLGLOBAL DL_GLOBAL
11185 # else
11186 # define LT_DLGLOBAL 0
11187 # endif
11188 #endif
11189
11190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191 find out it does not work in some platform. */
11192 #ifndef LT_DLLAZY_OR_NOW
11193 # ifdef RTLD_LAZY
11194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11195 # else
11196 # ifdef DL_LAZY
11197 # define LT_DLLAZY_OR_NOW DL_LAZY
11198 # else
11199 # ifdef RTLD_NOW
11200 # define LT_DLLAZY_OR_NOW RTLD_NOW
11201 # else
11202 # ifdef DL_NOW
11203 # define LT_DLLAZY_OR_NOW DL_NOW
11204 # else
11205 # define LT_DLLAZY_OR_NOW 0
11206 # endif
11207 # endif
11208 # endif
11209 # endif
11210 #endif
11211
11212 void fnord() { int i=42;}
11213 int main ()
11214 {
11215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216 int status = $lt_dlunknown;
11217
11218 if (self)
11219 {
11220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11222 /* dlclose (self); */
11223 }
11224 else
11225 puts (dlerror ());
11226
11227 return status;
11228 }
11229 _LT_EOF
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11232 ac_status=$?
11233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11235 (./conftest; exit; ) >&5 2>/dev/null
11236 lt_status=$?
11237 case x$lt_status in
11238 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11239 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11240 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11241 esac
11242 else :
11243 # compilation failed
11244 lt_cv_dlopen_self_static=no
11245 fi
11246 fi
11247 rm -fr conftest*
11248
11249
11250 fi
11251 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11252 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11253 fi
11254
11255 CPPFLAGS="$save_CPPFLAGS"
11256 LDFLAGS="$save_LDFLAGS"
11257 LIBS="$save_LIBS"
11258 ;;
11259 esac
11260
11261 case $lt_cv_dlopen_self in
11262 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11263 *) enable_dlopen_self=unknown ;;
11264 esac
11265
11266 case $lt_cv_dlopen_self_static in
11267 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11268 *) enable_dlopen_self_static=unknown ;;
11269 esac
11270 fi
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288 striplib=
11289 old_striplib=
11290 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11291 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11292 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11293 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11294 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11295 { $as_echo "$as_me:$LINENO: result: yes" >&5
11296 $as_echo "yes" >&6; }
11297 else
11298 # FIXME - insert some real tests, host_os isn't really good enough
11299 case $host_os in
11300 darwin*)
11301 if test -n "$STRIP" ; then
11302 striplib="$STRIP -x"
11303 old_striplib="$STRIP -S"
11304 { $as_echo "$as_me:$LINENO: result: yes" >&5
11305 $as_echo "yes" >&6; }
11306 else
11307 { $as_echo "$as_me:$LINENO: result: no" >&5
11308 $as_echo "no" >&6; }
11309 fi
11310 ;;
11311 *)
11312 { $as_echo "$as_me:$LINENO: result: no" >&5
11313 $as_echo "no" >&6; }
11314 ;;
11315 esac
11316 fi
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329 # Report which library types will actually be built
11330 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11331 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11332 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11333 $as_echo "$can_build_shared" >&6; }
11334
11335 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11336 $as_echo_n "checking whether to build shared libraries... " >&6; }
11337 test "$can_build_shared" = "no" && enable_shared=no
11338
11339 # On AIX, shared libraries and static libraries use the same namespace, and
11340 # are all built from PIC.
11341 case $host_os in
11342 aix3*)
11343 test "$enable_shared" = yes && enable_static=no
11344 if test -n "$RANLIB"; then
11345 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11346 postinstall_cmds='$RANLIB $lib'
11347 fi
11348 ;;
11349
11350 aix[4-9]*)
11351 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11352 test "$enable_shared" = yes && enable_static=no
11353 fi
11354 ;;
11355 esac
11356 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11357 $as_echo "$enable_shared" >&6; }
11358
11359 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11360 $as_echo_n "checking whether to build static libraries... " >&6; }
11361 # Make sure either enable_shared or enable_static is yes.
11362 test "$enable_shared" = yes || enable_static=yes
11363 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11364 $as_echo "$enable_static" >&6; }
11365
11366
11367
11368
11369 fi
11370 ac_ext=c
11371 ac_cpp='$CPP $CPPFLAGS'
11372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11375
11376 CC="$lt_save_CC"
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390 ac_config_commands="$ac_config_commands libtool"
11391
11392
11393
11394
11395 # Only expand once:
11396
11397
11398 { $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
11399 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11400 if test "${libltdl_cv_shlibext+set}" = set; then
11401 $as_echo_n "(cached) " >&6
11402 else
11403
11404 module=yes
11405 eval libltdl_cv_shlibext=$shrext_cmds
11406
11407 fi
11408 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
11409 $as_echo "$libltdl_cv_shlibext" >&6; }
11410 if test -n "$libltdl_cv_shlibext"; then
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11414 _ACEOF
11415
11416 fi
11417
11418 { $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
11419 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11420 if test "${lt_cv_module_path_var+set}" = set; then
11421 $as_echo_n "(cached) " >&6
11422 else
11423 lt_cv_module_path_var="$shlibpath_var"
11424 fi
11425 { $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
11426 $as_echo "$lt_cv_module_path_var" >&6; }
11427 if test -n "$lt_cv_module_path_var"; then
11428
11429 cat >>confdefs.h <<_ACEOF
11430 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11431 _ACEOF
11432
11433 fi
11434
11435 { $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
11436 $as_echo_n "checking for the default library search path... " >&6; }
11437 if test "${lt_cv_sys_dlsearch_path+set}" = set; then
11438 $as_echo_n "(cached) " >&6
11439 else
11440 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11441 fi
11442 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
11443 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11444 if test -n "$lt_cv_sys_dlsearch_path"; then
11445 sys_dlsearch_path=
11446 for dir in $lt_cv_sys_dlsearch_path; do
11447 if test -z "$sys_dlsearch_path"; then
11448 sys_dlsearch_path="$dir"
11449 else
11450 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11451 fi
11452 done
11453
11454 cat >>confdefs.h <<_ACEOF
11455 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11456 _ACEOF
11457
11458 fi
11459
11460
11461 LT_DLLOADERS=
11462
11463
11464 ac_ext=c
11465 ac_cpp='$CPP $CPPFLAGS'
11466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11469
11470
11471 LIBADD_DLOPEN=
11472 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11473 $as_echo_n "checking for library containing dlopen... " >&6; }
11474 if test "${ac_cv_search_dlopen+set}" = set; then
11475 $as_echo_n "(cached) " >&6
11476 else
11477 ac_func_search_save_LIBS=$LIBS
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h. */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char dlopen ();
11492 int
11493 main ()
11494 {
11495 return dlopen ();
11496 ;
11497 return 0;
11498 }
11499 _ACEOF
11500 for ac_lib in '' dl; do
11501 if test -z "$ac_lib"; then
11502 ac_res="none required"
11503 else
11504 ac_res=-l$ac_lib
11505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11506 fi
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512 esac
11513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11514 $as_echo "$ac_try_echo") >&5
11515 (eval "$ac_link") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest$ac_exeext && {
11525 test "$cross_compiling" = yes ||
11526 $as_test_x conftest$ac_exeext
11527 }; then
11528 ac_cv_search_dlopen=$ac_res
11529 else
11530 $as_echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533
11534 fi
11535
11536 rm -rf conftest.dSYM
11537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538 conftest$ac_exeext
11539 if test "${ac_cv_search_dlopen+set}" = set; then
11540 break
11541 fi
11542 done
11543 if test "${ac_cv_search_dlopen+set}" = set; then
11544 :
11545 else
11546 ac_cv_search_dlopen=no
11547 fi
11548 rm conftest.$ac_ext
11549 LIBS=$ac_func_search_save_LIBS
11550 fi
11551 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11552 $as_echo "$ac_cv_search_dlopen" >&6; }
11553 ac_res=$ac_cv_search_dlopen
11554 if test "$ac_res" != no; then
11555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11556
11557 cat >>confdefs.h <<\_ACEOF
11558 #define HAVE_LIBDL 1
11559 _ACEOF
11560
11561 if test "$ac_cv_search_dlopen" != "none required" ; then
11562 LIBADD_DLOPEN="-ldl"
11563 fi
11564 libltdl_cv_lib_dl_dlopen="yes"
11565 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11566 else
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 #if HAVE_DLFCN_H
11574 # include <dlfcn.h>
11575 #endif
11576
11577 int
11578 main ()
11579 {
11580 dlopen(0, 0);
11581 ;
11582 return 0;
11583 }
11584 _ACEOF
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (ac_try="$ac_link"
11587 case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590 esac
11591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11592 $as_echo "$ac_try_echo") >&5
11593 (eval "$ac_link") 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_c_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest$ac_exeext && {
11603 test "$cross_compiling" = yes ||
11604 $as_test_x conftest$ac_exeext
11605 }; then
11606
11607 cat >>confdefs.h <<\_ACEOF
11608 #define HAVE_LIBDL 1
11609 _ACEOF
11610
11611 libltdl_cv_func_dlopen="yes"
11612 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11613 else
11614 $as_echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11618 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11619 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11620 $as_echo_n "(cached) " >&6
11621 else
11622 ac_check_lib_save_LIBS=$LIBS
11623 LIBS="-lsvld $LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char dlopen ();
11638 int
11639 main ()
11640 {
11641 return dlopen ();
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (ac_try="$ac_link"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext && {
11664 test "$cross_compiling" = yes ||
11665 $as_test_x conftest$ac_exeext
11666 }; then
11667 ac_cv_lib_svld_dlopen=yes
11668 else
11669 $as_echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 ac_cv_lib_svld_dlopen=no
11673 fi
11674
11675 rm -rf conftest.dSYM
11676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677 conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11679 fi
11680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11681 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11682 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11683
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_LIBDL 1
11686 _ACEOF
11687
11688 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11689 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11690 fi
11691
11692 fi
11693
11694 rm -rf conftest.dSYM
11695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11696 conftest$ac_exeext conftest.$ac_ext
11697 fi
11698
11699 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11700 then
11701 lt_save_LIBS="$LIBS"
11702 LIBS="$LIBS $LIBADD_DLOPEN"
11703
11704 for ac_func in dlerror
11705 do
11706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11708 $as_echo_n "checking for $ac_func... " >&6; }
11709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11710 $as_echo_n "(cached) " >&6
11711 else
11712 cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h. */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11720 #define $ac_func innocuous_$ac_func
11721
11722 /* System header to define __stub macros and hopefully few prototypes,
11723 which can conflict with char $ac_func (); below.
11724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11725 <limits.h> exists even on freestanding compilers. */
11726
11727 #ifdef __STDC__
11728 # include <limits.h>
11729 #else
11730 # include <assert.h>
11731 #endif
11732
11733 #undef $ac_func
11734
11735 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11738 #ifdef __cplusplus
11739 extern "C"
11740 #endif
11741 char $ac_func ();
11742 /* The GNU C library defines this for functions which it implements
11743 to always fail with ENOSYS. Some functions are actually named
11744 something starting with __ and the normal name is an alias. */
11745 #if defined __stub_$ac_func || defined __stub___$ac_func
11746 choke me
11747 #endif
11748
11749 int
11750 main ()
11751 {
11752 return $ac_func ();
11753 ;
11754 return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (ac_try="$ac_link"
11759 case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11762 esac
11763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11764 $as_echo "$ac_try_echo") >&5
11765 (eval "$ac_link") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
11774 } && test -s conftest$ac_exeext && {
11775 test "$cross_compiling" = yes ||
11776 $as_test_x conftest$ac_exeext
11777 }; then
11778 eval "$as_ac_var=yes"
11779 else
11780 $as_echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 eval "$as_ac_var=no"
11784 fi
11785
11786 rm -rf conftest.dSYM
11787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11788 conftest$ac_exeext conftest.$ac_ext
11789 fi
11790 ac_res=`eval 'as_val=${'$as_ac_var'}
11791 $as_echo "$as_val"'`
11792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11793 $as_echo "$ac_res" >&6; }
11794 as_val=`eval 'as_val=${'$as_ac_var'}
11795 $as_echo "$as_val"'`
11796 if test "x$as_val" = x""yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11800
11801 fi
11802 done
11803
11804 LIBS="$lt_save_LIBS"
11805 fi
11806
11807
11808 LIBADD_SHL_LOAD=
11809 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11810 $as_echo_n "checking for shl_load... " >&6; }
11811 if test "${ac_cv_func_shl_load+set}" = set; then
11812 $as_echo_n "(cached) " >&6
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11822 #define shl_load innocuous_shl_load
11823
11824 /* System header to define __stub macros and hopefully few prototypes,
11825 which can conflict with char shl_load (); below.
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827 <limits.h> exists even on freestanding compilers. */
11828
11829 #ifdef __STDC__
11830 # include <limits.h>
11831 #else
11832 # include <assert.h>
11833 #endif
11834
11835 #undef shl_load
11836
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11840 #ifdef __cplusplus
11841 extern "C"
11842 #endif
11843 char shl_load ();
11844 /* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
11847 #if defined __stub_shl_load || defined __stub___shl_load
11848 choke me
11849 #endif
11850
11851 int
11852 main ()
11853 {
11854 return shl_load ();
11855 ;
11856 return 0;
11857 }
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (ac_try="$ac_link"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864 esac
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867 (eval "$ac_link") 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest$ac_exeext && {
11877 test "$cross_compiling" = yes ||
11878 $as_test_x conftest$ac_exeext
11879 }; then
11880 ac_cv_func_shl_load=yes
11881 else
11882 $as_echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_cv_func_shl_load=no
11886 fi
11887
11888 rm -rf conftest.dSYM
11889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11890 conftest$ac_exeext conftest.$ac_ext
11891 fi
11892 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11893 $as_echo "$ac_cv_func_shl_load" >&6; }
11894 if test "x$ac_cv_func_shl_load" = x""yes; then
11895
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_SHL_LOAD 1
11898 _ACEOF
11899
11900 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11901 else
11902 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11903 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11904 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11905 $as_echo_n "(cached) " >&6
11906 else
11907 ac_check_lib_save_LIBS=$LIBS
11908 LIBS="-ldld $LIBS"
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h. */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11919 #ifdef __cplusplus
11920 extern "C"
11921 #endif
11922 char shl_load ();
11923 int
11924 main ()
11925 {
11926 return shl_load ();
11927 ;
11928 return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936 esac
11937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11938 $as_echo "$ac_try_echo") >&5
11939 (eval "$ac_link") 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest$ac_exeext && {
11949 test "$cross_compiling" = yes ||
11950 $as_test_x conftest$ac_exeext
11951 }; then
11952 ac_cv_lib_dld_shl_load=yes
11953 else
11954 $as_echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_cv_lib_dld_shl_load=no
11958 fi
11959
11960 rm -rf conftest.dSYM
11961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11964 fi
11965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11966 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11968
11969 cat >>confdefs.h <<\_ACEOF
11970 #define HAVE_SHL_LOAD 1
11971 _ACEOF
11972
11973 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11974 LIBADD_SHL_LOAD="-ldld"
11975 fi
11976
11977 fi
11978
11979
11980
11981 case $host_os in
11982 darwin[1567].*)
11983 # We only want this for pre-Mac OS X 10.4.
11984 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11985 $as_echo_n "checking for _dyld_func_lookup... " >&6; }
11986 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11987 $as_echo_n "(cached) " >&6
11988 else
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11997 #define _dyld_func_lookup innocuous__dyld_func_lookup
11998
11999 /* System header to define __stub macros and hopefully few prototypes,
12000 which can conflict with char _dyld_func_lookup (); below.
12001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12002 <limits.h> exists even on freestanding compilers. */
12003
12004 #ifdef __STDC__
12005 # include <limits.h>
12006 #else
12007 # include <assert.h>
12008 #endif
12009
12010 #undef _dyld_func_lookup
12011
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 char _dyld_func_lookup ();
12019 /* The GNU C library defines this for functions which it implements
12020 to always fail with ENOSYS. Some functions are actually named
12021 something starting with __ and the normal name is an alias. */
12022 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
12023 choke me
12024 #endif
12025
12026 int
12027 main ()
12028 {
12029 return _dyld_func_lookup ();
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (ac_try="$ac_link"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039 esac
12040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12041 $as_echo "$ac_try_echo") >&5
12042 (eval "$ac_link") 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } && {
12049 test -z "$ac_c_werror_flag" ||
12050 test ! -s conftest.err
12051 } && test -s conftest$ac_exeext && {
12052 test "$cross_compiling" = yes ||
12053 $as_test_x conftest$ac_exeext
12054 }; then
12055 ac_cv_func__dyld_func_lookup=yes
12056 else
12057 $as_echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060 ac_cv_func__dyld_func_lookup=no
12061 fi
12062
12063 rm -rf conftest.dSYM
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12066 fi
12067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
12068 $as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
12069 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
12070
12071 cat >>confdefs.h <<\_ACEOF
12072 #define HAVE_DYLD 1
12073 _ACEOF
12074
12075 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12076 fi
12077
12078 ;;
12079 beos*)
12080 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12081 ;;
12082 cygwin* | mingw* | os2* | pw32*)
12083 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
12084 $as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
12085 if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
12086 $as_echo_n "(cached) " >&6
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <sys/cygwin.h>
12095
12096 int
12097 main ()
12098 {
12099 #ifndef cygwin_conv_path
12100 (void) cygwin_conv_path;
12101 #endif
12102
12103 ;
12104 return 0;
12105 }
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (ac_try="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12114 $as_echo "$ac_try_echo") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest.$ac_objext; then
12125 ac_cv_have_decl_cygwin_conv_path=yes
12126 else
12127 $as_echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_have_decl_cygwin_conv_path=no
12131 fi
12132
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 fi
12135 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
12136 $as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
12137 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
12138
12139 cat >>confdefs.h <<_ACEOF
12140 #define HAVE_DECL_CYGWIN_CONV_PATH 1
12141 _ACEOF
12142
12143
12144 else
12145 cat >>confdefs.h <<_ACEOF
12146 #define HAVE_DECL_CYGWIN_CONV_PATH 0
12147 _ACEOF
12148
12149
12150 fi
12151
12152
12153 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12154 ;;
12155 esac
12156
12157 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12158 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12159 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-ldld $LIBS"
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char dld_link ();
12178 int
12179 main ()
12180 {
12181 return dld_link ();
12182 ;
12183 return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191 esac
12192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12193 $as_echo "$ac_try_echo") >&5
12194 (eval "$ac_link") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_c_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest$ac_exeext && {
12204 test "$cross_compiling" = yes ||
12205 $as_test_x conftest$ac_exeext
12206 }; then
12207 ac_cv_lib_dld_dld_link=yes
12208 else
12209 $as_echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 ac_cv_lib_dld_dld_link=no
12213 fi
12214
12215 rm -rf conftest.dSYM
12216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12217 conftest$ac_exeext conftest.$ac_ext
12218 LIBS=$ac_check_lib_save_LIBS
12219 fi
12220 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12221 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12222 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12223
12224 cat >>confdefs.h <<\_ACEOF
12225 #define HAVE_DLD 1
12226 _ACEOF
12227
12228 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12229 fi
12230
12231
12232
12233
12234 LT_DLPREOPEN=
12235 if test -n "$LT_DLLOADERS"
12236 then
12237 for lt_loader in $LT_DLLOADERS; do
12238 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12239 done
12240
12241 cat >>confdefs.h <<\_ACEOF
12242 #define HAVE_LIBDLLOADER 1
12243 _ACEOF
12244
12245 fi
12246
12247
12248 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12249
12250
12251 ac_ext=c
12252 ac_cpp='$CPP $CPPFLAGS'
12253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12256
12257
12258 { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
12259 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12260 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
12261 $as_echo_n "(cached) " >&6
12262 else
12263 lt_cv_sys_symbol_underscore=no
12264 cat > conftest.$ac_ext <<_LT_EOF
12265 void nm_test_func(){}
12266 int main(){nm_test_func;return 0;}
12267 _LT_EOF
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>&5
12270 ac_status=$?
12271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; then
12273 # Now try to grab the symbols.
12274 ac_nlist=conftest.nm
12275 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
12276 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12277 ac_status=$?
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && test -s "$ac_nlist"; then
12280 # See whether the symbols have a leading underscore.
12281 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12282 lt_cv_sys_symbol_underscore=yes
12283 else
12284 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12285 :
12286 else
12287 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12288 fi
12289 fi
12290 else
12291 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12292 fi
12293 else
12294 echo "configure: failed program was:" >&5
12295 cat conftest.c >&5
12296 fi
12297 rm -rf conftest*
12298
12299 fi
12300 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
12301 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12302 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12303
12304
12305 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12306 if test x"$libltdl_cv_func_dlopen" = xyes ||
12307 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12308 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
12309 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12310 if test "${libltdl_cv_need_uscore+set}" = set; then
12311 $as_echo_n "(cached) " >&6
12312 else
12313 libltdl_cv_need_uscore=unknown
12314 save_LIBS="$LIBS"
12315 LIBS="$LIBS $LIBADD_DLOPEN"
12316 if test "$cross_compiling" = yes; then :
12317 libltdl_cv_need_uscore=cross
12318 else
12319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12320 lt_status=$lt_dlunknown
12321 cat > conftest.$ac_ext <<_LT_EOF
12322 #line 12322 "configure"
12323 #include "confdefs.h"
12324
12325 #if HAVE_DLFCN_H
12326 #include <dlfcn.h>
12327 #endif
12328
12329 #include <stdio.h>
12330
12331 #ifdef RTLD_GLOBAL
12332 # define LT_DLGLOBAL RTLD_GLOBAL
12333 #else
12334 # ifdef DL_GLOBAL
12335 # define LT_DLGLOBAL DL_GLOBAL
12336 # else
12337 # define LT_DLGLOBAL 0
12338 # endif
12339 #endif
12340
12341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12342 find out it does not work in some platform. */
12343 #ifndef LT_DLLAZY_OR_NOW
12344 # ifdef RTLD_LAZY
12345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12346 # else
12347 # ifdef DL_LAZY
12348 # define LT_DLLAZY_OR_NOW DL_LAZY
12349 # else
12350 # ifdef RTLD_NOW
12351 # define LT_DLLAZY_OR_NOW RTLD_NOW
12352 # else
12353 # ifdef DL_NOW
12354 # define LT_DLLAZY_OR_NOW DL_NOW
12355 # else
12356 # define LT_DLLAZY_OR_NOW 0
12357 # endif
12358 # endif
12359 # endif
12360 # endif
12361 #endif
12362
12363 void fnord() { int i=42;}
12364 int main ()
12365 {
12366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12367 int status = $lt_dlunknown;
12368
12369 if (self)
12370 {
12371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12373 /* dlclose (self); */
12374 }
12375 else
12376 puts (dlerror ());
12377
12378 return status;
12379 }
12380 _LT_EOF
12381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382 (eval $ac_link) 2>&5
12383 ac_status=$?
12384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12386 (./conftest; exit; ) >&5 2>/dev/null
12387 lt_status=$?
12388 case x$lt_status in
12389 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12390 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12391 x$lt_dlunknown|x*) ;;
12392 esac
12393 else :
12394 # compilation failed
12395
12396 fi
12397 fi
12398 rm -fr conftest*
12399
12400 LIBS="$save_LIBS"
12401
12402 fi
12403 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
12404 $as_echo "$libltdl_cv_need_uscore" >&6; }
12405 fi
12406 fi
12407
12408 if test x"$libltdl_cv_need_uscore" = xyes; then
12409
12410 cat >>confdefs.h <<\_ACEOF
12411 #define NEED_USCORE 1
12412 _ACEOF
12413
12414 fi
12415
12416 { $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
12417 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12418 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
12419 $as_echo_n "(cached) " >&6
12420 else
12421 # PORTME does your system automatically load deplibs for dlopen?
12422 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12423 # For now, we just catch OSes we know something about -- in the
12424 # future, we'll try test this programmatically.
12425 lt_cv_sys_dlopen_deplibs=unknown
12426 case $host_os in
12427 aix3*|aix4.1.*|aix4.2.*)
12428 # Unknown whether this is true for these versions of AIX, but
12429 # we want this `case' here to explicitly catch those versions.
12430 lt_cv_sys_dlopen_deplibs=unknown
12431 ;;
12432 aix[4-9]*)
12433 lt_cv_sys_dlopen_deplibs=yes
12434 ;;
12435 amigaos*)
12436 case $host_cpu in
12437 powerpc)
12438 lt_cv_sys_dlopen_deplibs=no
12439 ;;
12440 esac
12441 ;;
12442 darwin*)
12443 # Assuming the user has installed a libdl from somewhere, this is true
12444 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12445 lt_cv_sys_dlopen_deplibs=yes
12446 ;;
12447 freebsd* | dragonfly*)
12448 lt_cv_sys_dlopen_deplibs=yes
12449 ;;
12450 gnu* | linux* | k*bsd*-gnu)
12451 # GNU and its variants, using gnu ld.so (Glibc)
12452 lt_cv_sys_dlopen_deplibs=yes
12453 ;;
12454 hpux10*|hpux11*)
12455 lt_cv_sys_dlopen_deplibs=yes
12456 ;;
12457 interix*)
12458 lt_cv_sys_dlopen_deplibs=yes
12459 ;;
12460 irix[12345]*|irix6.[01]*)
12461 # Catch all versions of IRIX before 6.2, and indicate that we don't
12462 # know how it worked for any of those versions.
12463 lt_cv_sys_dlopen_deplibs=unknown
12464 ;;
12465 irix*)
12466 # The case above catches anything before 6.2, and it's known that
12467 # at 6.2 and later dlopen does load deplibs.
12468 lt_cv_sys_dlopen_deplibs=yes
12469 ;;
12470 netbsd*)
12471 lt_cv_sys_dlopen_deplibs=yes
12472 ;;
12473 openbsd*)
12474 lt_cv_sys_dlopen_deplibs=yes
12475 ;;
12476 osf[1234]*)
12477 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12478 # it did *not* use an RPATH in a shared library to find objects the
12479 # library depends on, so we explicitly say `no'.
12480 lt_cv_sys_dlopen_deplibs=no
12481 ;;
12482 osf5.0|osf5.0a|osf5.1)
12483 # dlopen *does* load deplibs and with the right loader patch applied
12484 # it even uses RPATH in a shared library to search for shared objects
12485 # that the library depends on, but there's no easy way to know if that
12486 # patch is installed. Since this is the case, all we can really
12487 # say is unknown -- it depends on the patch being installed. If
12488 # it is, this changes to `yes'. Without it, it would be `no'.
12489 lt_cv_sys_dlopen_deplibs=unknown
12490 ;;
12491 osf*)
12492 # the two cases above should catch all versions of osf <= 5.1. Read
12493 # the comments above for what we know about them.
12494 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12495 # is used to find them so we can finally say `yes'.
12496 lt_cv_sys_dlopen_deplibs=yes
12497 ;;
12498 qnx*)
12499 lt_cv_sys_dlopen_deplibs=yes
12500 ;;
12501 solaris*)
12502 lt_cv_sys_dlopen_deplibs=yes
12503 ;;
12504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12505 libltdl_cv_sys_dlopen_deplibs=yes
12506 ;;
12507 esac
12508
12509 fi
12510 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
12511 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12512 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12513
12514 cat >>confdefs.h <<\_ACEOF
12515 #define LTDL_DLOPEN_DEPLIBS 1
12516 _ACEOF
12517
12518 fi
12519
12520 :
12521
12522
12523 for ac_header in argz.h
12524 do
12525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12526 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12527 $as_echo_n "checking for $ac_header... " >&6; }
12528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12529 $as_echo_n "(cached) " >&6
12530 else
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h. */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537 $ac_includes_default
12538
12539 #include <$ac_header>
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (ac_try="$ac_compile"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546 esac
12547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_compile") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest.$ac_objext; then
12559 eval "$as_ac_Header=yes"
12560 else
12561 $as_echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 eval "$as_ac_Header=no"
12565 fi
12566
12567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568 fi
12569 ac_res=`eval 'as_val=${'$as_ac_Header'}
12570 $as_echo "$as_val"'`
12571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12572 $as_echo "$ac_res" >&6; }
12573 as_val=`eval 'as_val=${'$as_ac_Header'}
12574 $as_echo "$as_val"'`
12575 if test "x$as_val" = x""yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12578 _ACEOF
12579
12580 fi
12581
12582 done
12583
12584
12585 { $as_echo "$as_me:$LINENO: checking for error_t" >&5
12586 $as_echo_n "checking for error_t... " >&6; }
12587 if test "${ac_cv_type_error_t+set}" = set; then
12588 $as_echo_n "(cached) " >&6
12589 else
12590 ac_cv_type_error_t=no
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #if defined(HAVE_ARGZ_H)
12598 # include <argz.h>
12599 #endif
12600
12601 int
12602 main ()
12603 {
12604 if (sizeof (error_t))
12605 return 0;
12606 ;
12607 return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext
12611 if { (ac_try="$ac_compile"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615 esac
12616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12617 $as_echo "$ac_try_echo") >&5
12618 (eval "$ac_compile") 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } && {
12625 test -z "$ac_c_werror_flag" ||
12626 test ! -s conftest.err
12627 } && test -s conftest.$ac_objext; then
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h. */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634 #if defined(HAVE_ARGZ_H)
12635 # include <argz.h>
12636 #endif
12637
12638 int
12639 main ()
12640 {
12641 if (sizeof ((error_t)))
12642 return 0;
12643 ;
12644 return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext
12648 if { (ac_try="$ac_compile"
12649 case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652 esac
12653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654 $as_echo "$ac_try_echo") >&5
12655 (eval "$ac_compile") 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } && {
12662 test -z "$ac_c_werror_flag" ||
12663 test ! -s conftest.err
12664 } && test -s conftest.$ac_objext; then
12665 :
12666 else
12667 $as_echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 ac_cv_type_error_t=yes
12671 fi
12672
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 else
12675 $as_echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678
12679 fi
12680
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 fi
12683 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12684 $as_echo "$ac_cv_type_error_t" >&6; }
12685 if test "x$ac_cv_type_error_t" = x""yes; then
12686
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_ERROR_T 1
12689 _ACEOF
12690
12691
12692 else
12693
12694 cat >>confdefs.h <<\_ACEOF
12695 #define error_t int
12696 _ACEOF
12697
12698
12699 cat >>confdefs.h <<\_ACEOF
12700 #define __error_t_defined 1
12701 _ACEOF
12702
12703 fi
12704
12705
12706 ARGZ_H=
12707
12708
12709
12710
12711
12712
12713
12714 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12715 argz_next argz_stringify
12716 do
12717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 $as_echo_n "checking for $ac_func... " >&6; }
12720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721 $as_echo_n "(cached) " >&6
12722 else
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731 #define $ac_func innocuous_$ac_func
12732
12733 /* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12737
12738 #ifdef __STDC__
12739 # include <limits.h>
12740 #else
12741 # include <assert.h>
12742 #endif
12743
12744 #undef $ac_func
12745
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char $ac_func ();
12753 /* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756 #if defined __stub_$ac_func || defined __stub___$ac_func
12757 choke me
12758 #endif
12759
12760 int
12761 main ()
12762 {
12763 return $ac_func ();
12764 ;
12765 return 0;
12766 }
12767 _ACEOF
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (ac_try="$ac_link"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773 esac
12774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775 $as_echo "$ac_try_echo") >&5
12776 (eval "$ac_link") 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && {
12783 test -z "$ac_c_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest$ac_exeext && {
12786 test "$cross_compiling" = yes ||
12787 $as_test_x conftest$ac_exeext
12788 }; then
12789 eval "$as_ac_var=yes"
12790 else
12791 $as_echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 eval "$as_ac_var=no"
12795 fi
12796
12797 rm -rf conftest.dSYM
12798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12799 conftest$ac_exeext conftest.$ac_ext
12800 fi
12801 ac_res=`eval 'as_val=${'$as_ac_var'}
12802 $as_echo "$as_val"'`
12803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12804 $as_echo "$ac_res" >&6; }
12805 as_val=`eval 'as_val=${'$as_ac_var'}
12806 $as_echo "$as_val"'`
12807 if test "x$as_val" = x""yes; then
12808 cat >>confdefs.h <<_ACEOF
12809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12810 _ACEOF
12811
12812 else
12813 ARGZ_H=argz.h; case " $LIBOBJS " in
12814 *" argz.$ac_objext "* ) ;;
12815 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12816 ;;
12817 esac
12818
12819 fi
12820 done
12821
12822
12823 if test -z "$ARGZ_H"; then
12824 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
12825 $as_echo_n "checking if argz actually works... " >&6; }
12826 if test "${lt_cv_sys_argz_works+set}" = set; then
12827 $as_echo_n "(cached) " >&6
12828 else
12829 case $host_os in #(
12830 *cygwin*)
12831 lt_cv_sys_argz_works=no
12832 if test "$cross_compiling" != no; then
12833 lt_cv_sys_argz_works="guessing no"
12834 else
12835 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12836 save_IFS=$IFS
12837 IFS=-.
12838 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12839 IFS=$save_IFS
12840 lt_os_major=${2-0}
12841 lt_os_minor=${3-0}
12842 lt_os_micro=${4-0}
12843 if test "$lt_os_major" -gt 1 \
12844 || { test "$lt_os_major" -eq 1 \
12845 && { test "$lt_os_minor" -gt 5 \
12846 || { test "$lt_os_minor" -eq 5 \
12847 && test "$lt_os_micro" -gt 24; }; }; }; then
12848 lt_cv_sys_argz_works=yes
12849 fi
12850 fi
12851 ;; #(
12852 *) lt_cv_sys_argz_works=yes ;;
12853 esac
12854 fi
12855 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
12856 $as_echo "$lt_cv_sys_argz_works" >&6; }
12857 if test $lt_cv_sys_argz_works = yes; then
12858
12859 cat >>confdefs.h <<\_ACEOF
12860 #define HAVE_WORKING_ARGZ 1
12861 _ACEOF
12862
12863 else
12864 ARGZ_H=argz.h
12865 case " $LIBOBJS " in
12866 *" argz.$ac_objext "* ) ;;
12867 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12868 ;;
12869 esac
12870
12871 fi
12872
12873 fi
12874
12875
12876
12877
12878 { $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
12879 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12880 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
12881 $as_echo_n "(cached) " >&6
12882 else
12883 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12884 libltdl_cv_preloaded_symbols=yes
12885 else
12886 libltdl_cv_preloaded_symbols=no
12887 fi
12888
12889 fi
12890 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
12891 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12892 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12893
12894 cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_PRELOADED_SYMBOLS 1
12896 _ACEOF
12897
12898 fi
12899
12900
12901
12902 # Check whether --enable-ltdl-install was given.
12903 if test "${enable_ltdl_install+set}" = set; then
12904 enableval=$enable_ltdl_install;
12905 fi
12906
12907
12908 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12909 *yes*) ;;
12910 *) enable_ltdl_convenience=yes ;;
12911 esac
12912
12913 if test x"${enable_ltdl_install-no}" != xno; then
12914 INSTALL_LTDL_TRUE=
12915 INSTALL_LTDL_FALSE='#'
12916 else
12917 INSTALL_LTDL_TRUE='#'
12918 INSTALL_LTDL_FALSE=
12919 fi
12920
12921 if test x"${enable_ltdl_convenience-no}" != xno; then
12922 CONVENIENCE_LTDL_TRUE=
12923 CONVENIENCE_LTDL_FALSE='#'
12924 else
12925 CONVENIENCE_LTDL_TRUE='#'
12926 CONVENIENCE_LTDL_FALSE=
12927 fi
12928
12929
12930
12931
12932
12933
12934 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12935 # the user used. This is so that ltdl.h can pick up the parent projects
12936 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12937 # definitions required by ltdl.c.
12938 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12949 do
12950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12952 $as_echo_n "checking for $ac_header... " >&6; }
12953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12954 $as_echo_n "(cached) " >&6
12955 else
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h. */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12962 $ac_includes_default
12963
12964 #include <$ac_header>
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (ac_try="$ac_compile"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971 esac
12972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12973 $as_echo "$ac_try_echo") >&5
12974 (eval "$ac_compile") 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } && {
12981 test -z "$ac_c_werror_flag" ||
12982 test ! -s conftest.err
12983 } && test -s conftest.$ac_objext; then
12984 eval "$as_ac_Header=yes"
12985 else
12986 $as_echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 eval "$as_ac_Header=no"
12990 fi
12991
12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 fi
12994 ac_res=`eval 'as_val=${'$as_ac_Header'}
12995 $as_echo "$as_val"'`
12996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12997 $as_echo "$ac_res" >&6; }
12998 as_val=`eval 'as_val=${'$as_ac_Header'}
12999 $as_echo "$as_val"'`
13000 if test "x$as_val" = x""yes; then
13001 cat >>confdefs.h <<_ACEOF
13002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13003 _ACEOF
13004
13005 fi
13006
13007 done
13008
13009
13010
13011
13012
13013 for ac_func in closedir opendir readdir
13014 do
13015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13016 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13017 $as_echo_n "checking for $ac_func... " >&6; }
13018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13019 $as_echo_n "(cached) " >&6
13020 else
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h. */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13029 #define $ac_func innocuous_$ac_func
13030
13031 /* System header to define __stub macros and hopefully few prototypes,
13032 which can conflict with char $ac_func (); below.
13033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13034 <limits.h> exists even on freestanding compilers. */
13035
13036 #ifdef __STDC__
13037 # include <limits.h>
13038 #else
13039 # include <assert.h>
13040 #endif
13041
13042 #undef $ac_func
13043
13044 /* Override any GCC internal prototype to avoid an error.
13045 Use char because int might match the return type of a GCC
13046 builtin and then its argument prototype would still apply. */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 char $ac_func ();
13051 /* The GNU C library defines this for functions which it implements
13052 to always fail with ENOSYS. Some functions are actually named
13053 something starting with __ and the normal name is an alias. */
13054 #if defined __stub_$ac_func || defined __stub___$ac_func
13055 choke me
13056 #endif
13057
13058 int
13059 main ()
13060 {
13061 return $ac_func ();
13062 ;
13063 return 0;
13064 }
13065 _ACEOF
13066 rm -f conftest.$ac_objext conftest$ac_exeext
13067 if { (ac_try="$ac_link"
13068 case "(($ac_try" in
13069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13070 *) ac_try_echo=$ac_try;;
13071 esac
13072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13073 $as_echo "$ac_try_echo") >&5
13074 (eval "$ac_link") 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest$ac_exeext && {
13084 test "$cross_compiling" = yes ||
13085 $as_test_x conftest$ac_exeext
13086 }; then
13087 eval "$as_ac_var=yes"
13088 else
13089 $as_echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092 eval "$as_ac_var=no"
13093 fi
13094
13095 rm -rf conftest.dSYM
13096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13097 conftest$ac_exeext conftest.$ac_ext
13098 fi
13099 ac_res=`eval 'as_val=${'$as_ac_var'}
13100 $as_echo "$as_val"'`
13101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13102 $as_echo "$ac_res" >&6; }
13103 as_val=`eval 'as_val=${'$as_ac_var'}
13104 $as_echo "$as_val"'`
13105 if test "x$as_val" = x""yes; then
13106 cat >>confdefs.h <<_ACEOF
13107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13108 _ACEOF
13109
13110 else
13111 case " $LIBOBJS " in
13112 *" lt__dirent.$ac_objext "* ) ;;
13113 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
13114 ;;
13115 esac
13116
13117 fi
13118 done
13119
13120
13121
13122 for ac_func in strlcat strlcpy
13123 do
13124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13125 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13126 $as_echo_n "checking for $ac_func... " >&6; }
13127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13128 $as_echo_n "(cached) " >&6
13129 else
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13138 #define $ac_func innocuous_$ac_func
13139
13140 /* System header to define __stub macros and hopefully few prototypes,
13141 which can conflict with char $ac_func (); below.
13142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13143 <limits.h> exists even on freestanding compilers. */
13144
13145 #ifdef __STDC__
13146 # include <limits.h>
13147 #else
13148 # include <assert.h>
13149 #endif
13150
13151 #undef $ac_func
13152
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156 #ifdef __cplusplus
13157 extern "C"
13158 #endif
13159 char $ac_func ();
13160 /* The GNU C library defines this for functions which it implements
13161 to always fail with ENOSYS. Some functions are actually named
13162 something starting with __ and the normal name is an alias. */
13163 #if defined __stub_$ac_func || defined __stub___$ac_func
13164 choke me
13165 #endif
13166
13167 int
13168 main ()
13169 {
13170 return $ac_func ();
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183 (eval "$ac_link") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest$ac_exeext && {
13193 test "$cross_compiling" = yes ||
13194 $as_test_x conftest$ac_exeext
13195 }; then
13196 eval "$as_ac_var=yes"
13197 else
13198 $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 eval "$as_ac_var=no"
13202 fi
13203
13204 rm -rf conftest.dSYM
13205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13206 conftest$ac_exeext conftest.$ac_ext
13207 fi
13208 ac_res=`eval 'as_val=${'$as_ac_var'}
13209 $as_echo "$as_val"'`
13210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13211 $as_echo "$ac_res" >&6; }
13212 as_val=`eval 'as_val=${'$as_ac_var'}
13213 $as_echo "$as_val"'`
13214 if test "x$as_val" = x""yes; then
13215 cat >>confdefs.h <<_ACEOF
13216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13217 _ACEOF
13218
13219 else
13220 case " $LIBOBJS " in
13221 *" lt__strl.$ac_objext "* ) ;;
13222 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
13223 ;;
13224 esac
13225
13226 fi
13227 done
13228
13229
13230
13231 cat >>confdefs.h <<_ACEOF
13232 #define LT_LIBEXT "$libext"
13233 _ACEOF
13234
13235
13236 name=ltdl
13237 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
13238
13239
13240
13241
13242 ## -------- ##
13243 ## Outputs. ##
13244 ## -------- ##
13245 ac_config_files="$ac_config_files Makefile"
13246
13247 cat >confcache <<\_ACEOF
13248 # This file is a shell script that caches the results of configure
13249 # tests run on this system so they can be shared between configure
13250 # scripts and configure runs, see configure's option --config-cache.
13251 # It is not useful on other systems. If it contains results you don't
13252 # want to keep, you may remove or edit it.
13253 #
13254 # config.status only pays attention to the cache file if you give it
13255 # the --recheck option to rerun configure.
13256 #
13257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13259 # following values.
13260
13261 _ACEOF
13262
13263 # The following way of writing the cache mishandles newlines in values,
13264 # but we know of no workaround that is simple, portable, and efficient.
13265 # So, we kill variables containing newlines.
13266 # Ultrix sh set writes to stderr and can't be redirected directly,
13267 # and sets the high bit in the cache file unless we assign to the vars.
13268 (
13269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13270 eval ac_val=\$$ac_var
13271 case $ac_val in #(
13272 *${as_nl}*)
13273 case $ac_var in #(
13274 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13276 esac
13277 case $ac_var in #(
13278 _ | IFS | as_nl) ;; #(
13279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13280 *) $as_unset $ac_var ;;
13281 esac ;;
13282 esac
13283 done
13284
13285 (set) 2>&1 |
13286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13287 *${as_nl}ac_space=\ *)
13288 # `set' does not quote correctly, so add quotes (double-quote
13289 # substitution turns \\\\ into \\, and sed turns \\ into \).
13290 sed -n \
13291 "s/'/'\\\\''/g;
13292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13293 ;; #(
13294 *)
13295 # `set' quotes correctly as required by POSIX, so do not add quotes.
13296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13297 ;;
13298 esac |
13299 sort
13300 ) |
13301 sed '
13302 /^ac_cv_env_/b end
13303 t clear
13304 :clear
13305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13306 t end
13307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13308 :end' >>confcache
13309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13310 if test -w "$cache_file"; then
13311 test "x$cache_file" != "x/dev/null" &&
13312 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13313 $as_echo "$as_me: updating cache $cache_file" >&6;}
13314 cat confcache >$cache_file
13315 else
13316 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13318 fi
13319 fi
13320 rm -f confcache
13321
13322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13323 # Let make expand exec_prefix.
13324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13325
13326 DEFS=-DHAVE_CONFIG_H
13327
13328 ac_libobjs=
13329 ac_ltlibobjs=
13330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13331 # 1. Remove the extension, and $U if already installed.
13332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13335 # will be set to the directory where LIBOBJS objects are built.
13336 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13337 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13338 done
13339 LIBOBJS=$ac_libobjs
13340
13341 LTLIBOBJS=$ac_ltlibobjs
13342
13343
13344 if test -n "$EXEEXT"; then
13345 am__EXEEXT_TRUE=
13346 am__EXEEXT_FALSE='#'
13347 else
13348 am__EXEEXT_TRUE='#'
13349 am__EXEEXT_FALSE=
13350 fi
13351
13352 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13353 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13354 Usually this means the macro was only invoked conditionally." >&5
13355 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13356 Usually this means the macro was only invoked conditionally." >&2;}
13357 { (exit 1); exit 1; }; }
13358 fi
13359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13360 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13361 Usually this means the macro was only invoked conditionally." >&5
13362 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13363 Usually this means the macro was only invoked conditionally." >&2;}
13364 { (exit 1); exit 1; }; }
13365 fi
13366 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13367 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
13368 Usually this means the macro was only invoked conditionally." >&5
13369 $as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
13370 Usually this means the macro was only invoked conditionally." >&2;}
13371 { (exit 1); exit 1; }; }
13372 fi
13373 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13374 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13375 Usually this means the macro was only invoked conditionally." >&5
13376 $as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13377 Usually this means the macro was only invoked conditionally." >&2;}
13378 { (exit 1); exit 1; }; }
13379 fi
13380 LT_CONFIG_H=config.h
13381
13382 : ${CONFIG_STATUS=./config.status}
13383 ac_write_fail=0
13384 ac_clean_files_save=$ac_clean_files
13385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13386 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13387 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13388 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13389 #! $SHELL
13390 # Generated by $as_me.
13391 # Run this file to recreate the current configuration.
13392 # Compiler output produced by configure, useful for debugging
13393 # configure, is in config.log if it exists.
13394
13395 debug=false
13396 ac_cs_recheck=false
13397 ac_cs_silent=false
13398 SHELL=\${CONFIG_SHELL-$SHELL}
13399 _ACEOF
13400
13401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13402 ## --------------------- ##
13403 ## M4sh Initialization. ##
13404 ## --------------------- ##
13405
13406 # Be more Bourne compatible
13407 DUALCASE=1; export DUALCASE # for MKS sh
13408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13409 emulate sh
13410 NULLCMD=:
13411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13412 # is contrary to our usage. Disable this feature.
13413 alias -g '${1+"$@"}'='"$@"'
13414 setopt NO_GLOB_SUBST
13415 else
13416 case `(set -o) 2>/dev/null` in
13417 *posix*) set -o posix ;;
13418 esac
13419
13420 fi
13421
13422
13423
13424
13425 # PATH needs CR
13426 # Avoid depending upon Character Ranges.
13427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13430 as_cr_digits='0123456789'
13431 as_cr_alnum=$as_cr_Letters$as_cr_digits
13432
13433 as_nl='
13434 '
13435 export as_nl
13436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13437 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13440 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13441 as_echo='printf %s\n'
13442 as_echo_n='printf %s'
13443 else
13444 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13445 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13446 as_echo_n='/usr/ucb/echo -n'
13447 else
13448 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13449 as_echo_n_body='eval
13450 arg=$1;
13451 case $arg in
13452 *"$as_nl"*)
13453 expr "X$arg" : "X\\(.*\\)$as_nl";
13454 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13455 esac;
13456 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13457 '
13458 export as_echo_n_body
13459 as_echo_n='sh -c $as_echo_n_body as_echo'
13460 fi
13461 export as_echo_body
13462 as_echo='sh -c $as_echo_body as_echo'
13463 fi
13464
13465 # The user is always right.
13466 if test "${PATH_SEPARATOR+set}" != set; then
13467 PATH_SEPARATOR=:
13468 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13469 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13470 PATH_SEPARATOR=';'
13471 }
13472 fi
13473
13474 # Support unset when possible.
13475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13476 as_unset=unset
13477 else
13478 as_unset=false
13479 fi
13480
13481
13482 # IFS
13483 # We need space, tab and new line, in precisely that order. Quoting is
13484 # there to prevent editors from complaining about space-tab.
13485 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13486 # splitting by setting IFS to empty value.)
13487 IFS=" "" $as_nl"
13488
13489 # Find who we are. Look in the path if we contain no directory separator.
13490 case $0 in
13491 *[\\/]* ) as_myself=$0 ;;
13492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13494 do
13495 IFS=$as_save_IFS
13496 test -z "$as_dir" && as_dir=.
13497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13498 done
13499 IFS=$as_save_IFS
13500
13501 ;;
13502 esac
13503 # We did not find ourselves, most probably we were run as `sh COMMAND'
13504 # in which case we are not to be found in the path.
13505 if test "x$as_myself" = x; then
13506 as_myself=$0
13507 fi
13508 if test ! -f "$as_myself"; then
13509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13510 { (exit 1); exit 1; }
13511 fi
13512
13513 # Work around bugs in pre-3.0 UWIN ksh.
13514 for as_var in ENV MAIL MAILPATH
13515 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13516 done
13517 PS1='$ '
13518 PS2='> '
13519 PS4='+ '
13520
13521 # NLS nuisances.
13522 LC_ALL=C
13523 export LC_ALL
13524 LANGUAGE=C
13525 export LANGUAGE
13526
13527 # Required to use basename.
13528 if expr a : '\(a\)' >/dev/null 2>&1 &&
13529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13530 as_expr=expr
13531 else
13532 as_expr=false
13533 fi
13534
13535 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13536 as_basename=basename
13537 else
13538 as_basename=false
13539 fi
13540
13541
13542 # Name of the executable.
13543 as_me=`$as_basename -- "$0" ||
13544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13545 X"$0" : 'X\(//\)$' \| \
13546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13547 $as_echo X/"$0" |
13548 sed '/^.*\/\([^/][^/]*\)\/*$/{
13549 s//\1/
13550 q
13551 }
13552 /^X\/\(\/\/\)$/{
13553 s//\1/
13554 q
13555 }
13556 /^X\/\(\/\).*/{
13557 s//\1/
13558 q
13559 }
13560 s/.*/./; q'`
13561
13562 # CDPATH.
13563 $as_unset CDPATH
13564
13565
13566
13567 as_lineno_1=$LINENO
13568 as_lineno_2=$LINENO
13569 test "x$as_lineno_1" != "x$as_lineno_2" &&
13570 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13571
13572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13573 # uniformly replaced by the line number. The first 'sed' inserts a
13574 # line-number line after each line using $LINENO; the second 'sed'
13575 # does the real work. The second script uses 'N' to pair each
13576 # line-number line with the line containing $LINENO, and appends
13577 # trailing '-' during substitution so that $LINENO is not a special
13578 # case at line end.
13579 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13580 # scripts with optimization help from Paolo Bonzini. Blame Lee
13581 # E. McMahon (1931-1989) for sed's syntax. :-)
13582 sed -n '
13583 p
13584 /[$]LINENO/=
13585 ' <$as_myself |
13586 sed '
13587 s/[$]LINENO.*/&-/
13588 t lineno
13589 b
13590 :lineno
13591 N
13592 :loop
13593 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13594 t loop
13595 s/-\n.*//
13596 ' >$as_me.lineno &&
13597 chmod +x "$as_me.lineno" ||
13598 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13599 { (exit 1); exit 1; }; }
13600
13601 # Don't try to exec as it changes $[0], causing all sort of problems
13602 # (the dirname of $[0] is not the place where we might find the
13603 # original and so on. Autoconf is especially sensitive to this).
13604 . "./$as_me.lineno"
13605 # Exit status is that of the last command.
13606 exit
13607 }
13608
13609
13610 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13611 as_dirname=dirname
13612 else
13613 as_dirname=false
13614 fi
13615
13616 ECHO_C= ECHO_N= ECHO_T=
13617 case `echo -n x` in
13618 -n*)
13619 case `echo 'x\c'` in
13620 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13621 *) ECHO_C='\c';;
13622 esac;;
13623 *)
13624 ECHO_N='-n';;
13625 esac
13626 if expr a : '\(a\)' >/dev/null 2>&1 &&
13627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13628 as_expr=expr
13629 else
13630 as_expr=false
13631 fi
13632
13633 rm -f conf$$ conf$$.exe conf$$.file
13634 if test -d conf$$.dir; then
13635 rm -f conf$$.dir/conf$$.file
13636 else
13637 rm -f conf$$.dir
13638 mkdir conf$$.dir 2>/dev/null
13639 fi
13640 if (echo >conf$$.file) 2>/dev/null; then
13641 if ln -s conf$$.file conf$$ 2>/dev/null; then
13642 as_ln_s='ln -s'
13643 # ... but there are two gotchas:
13644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13646 # In both cases, we have to default to `cp -p'.
13647 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13648 as_ln_s='cp -p'
13649 elif ln conf$$.file conf$$ 2>/dev/null; then
13650 as_ln_s=ln
13651 else
13652 as_ln_s='cp -p'
13653 fi
13654 else
13655 as_ln_s='cp -p'
13656 fi
13657 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13658 rmdir conf$$.dir 2>/dev/null
13659
13660 if mkdir -p . 2>/dev/null; then
13661 as_mkdir_p=:
13662 else
13663 test -d ./-p && rmdir ./-p
13664 as_mkdir_p=false
13665 fi
13666
13667 if test -x / >/dev/null 2>&1; then
13668 as_test_x='test -x'
13669 else
13670 if ls -dL / >/dev/null 2>&1; then
13671 as_ls_L_option=L
13672 else
13673 as_ls_L_option=
13674 fi
13675 as_test_x='
13676 eval sh -c '\''
13677 if test -d "$1"; then
13678 test -d "$1/.";
13679 else
13680 case $1 in
13681 -*)set "./$1";;
13682 esac;
13683 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13684 ???[sx]*):;;*)false;;esac;fi
13685 '\'' sh
13686 '
13687 fi
13688 as_executable_p=$as_test_x
13689
13690 # Sed expression to map a string onto a valid CPP name.
13691 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13692
13693 # Sed expression to map a string onto a valid variable name.
13694 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13695
13696
13697 exec 6>&1
13698
13699 # Save the log message, to keep $[0] and so on meaningful, and to
13700 # report actual input values of CONFIG_FILES etc. instead of their
13701 # values after options handling.
13702 ac_log="
13703 This file was extended by libltdl $as_me 2.2.6, which was
13704 generated by GNU Autoconf 2.63. Invocation command line was
13705
13706 CONFIG_FILES = $CONFIG_FILES
13707 CONFIG_HEADERS = $CONFIG_HEADERS
13708 CONFIG_LINKS = $CONFIG_LINKS
13709 CONFIG_COMMANDS = $CONFIG_COMMANDS
13710 $ $0 $@
13711
13712 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13713 "
13714
13715 _ACEOF
13716
13717 case $ac_config_files in *"
13718 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13719 esac
13720
13721 case $ac_config_headers in *"
13722 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13723 esac
13724
13725
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 # Files that config.status was made for.
13728 config_files="$ac_config_files"
13729 config_headers="$ac_config_headers"
13730 config_commands="$ac_config_commands"
13731
13732 _ACEOF
13733
13734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735 ac_cs_usage="\
13736 \`$as_me' instantiates files from templates according to the
13737 current configuration.
13738
13739 Usage: $0 [OPTION]... [FILE]...
13740
13741 -h, --help print this help, then exit
13742 -V, --version print version number and configuration settings, then exit
13743 -q, --quiet, --silent
13744 do not print progress messages
13745 -d, --debug don't remove temporary files
13746 --recheck update $as_me by reconfiguring in the same conditions
13747 --file=FILE[:TEMPLATE]
13748 instantiate the configuration file FILE
13749 --header=FILE[:TEMPLATE]
13750 instantiate the configuration header FILE
13751
13752 Configuration files:
13753 $config_files
13754
13755 Configuration headers:
13756 $config_headers
13757
13758 Configuration commands:
13759 $config_commands
13760
13761 Report bugs to <bug-autoconf@gnu.org>."
13762
13763 _ACEOF
13764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765 ac_cs_version="\\
13766 libltdl config.status 2.2.6
13767 configured by $0, generated by GNU Autoconf 2.63,
13768 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13769
13770 Copyright (C) 2008 Free Software Foundation, Inc.
13771 This config.status script is free software; the Free Software Foundation
13772 gives unlimited permission to copy, distribute and modify it."
13773
13774 ac_pwd='$ac_pwd'
13775 srcdir='$srcdir'
13776 INSTALL='$INSTALL'
13777 MKDIR_P='$MKDIR_P'
13778 AWK='$AWK'
13779 test -n "\$AWK" || AWK=awk
13780 _ACEOF
13781
13782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13783 # The default lists apply if the user does not specify any file.
13784 ac_need_defaults=:
13785 while test $# != 0
13786 do
13787 case $1 in
13788 --*=*)
13789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13790 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13791 ac_shift=:
13792 ;;
13793 *)
13794 ac_option=$1
13795 ac_optarg=$2
13796 ac_shift=shift
13797 ;;
13798 esac
13799
13800 case $ac_option in
13801 # Handling of the options.
13802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13803 ac_cs_recheck=: ;;
13804 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13805 $as_echo "$ac_cs_version"; exit ;;
13806 --debug | --debu | --deb | --de | --d | -d )
13807 debug=: ;;
13808 --file | --fil | --fi | --f )
13809 $ac_shift
13810 case $ac_optarg in
13811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13812 esac
13813 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13814 ac_need_defaults=false;;
13815 --header | --heade | --head | --hea )
13816 $ac_shift
13817 case $ac_optarg in
13818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13819 esac
13820 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13821 ac_need_defaults=false;;
13822 --he | --h)
13823 # Conflict between --help and --header
13824 { $as_echo "$as_me: error: ambiguous option: $1
13825 Try \`$0 --help' for more information." >&2
13826 { (exit 1); exit 1; }; };;
13827 --help | --hel | -h )
13828 $as_echo "$ac_cs_usage"; exit ;;
13829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13831 ac_cs_silent=: ;;
13832
13833 # This is an error.
13834 -*) { $as_echo "$as_me: error: unrecognized option: $1
13835 Try \`$0 --help' for more information." >&2
13836 { (exit 1); exit 1; }; } ;;
13837
13838 *) ac_config_targets="$ac_config_targets $1"
13839 ac_need_defaults=false ;;
13840
13841 esac
13842 shift
13843 done
13844
13845 ac_configure_extra_args=
13846
13847 if $ac_cs_silent; then
13848 exec 6>/dev/null
13849 ac_configure_extra_args="$ac_configure_extra_args --silent"
13850 fi
13851
13852 _ACEOF
13853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13854 if \$ac_cs_recheck; then
13855 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13856 shift
13857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13858 CONFIG_SHELL='$SHELL'
13859 export CONFIG_SHELL
13860 exec "\$@"
13861 fi
13862
13863 _ACEOF
13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865 exec 5>>config.log
13866 {
13867 echo
13868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13869 ## Running $as_me. ##
13870 _ASBOX
13871 $as_echo "$ac_log"
13872 } >&5
13873
13874 _ACEOF
13875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13876 #
13877 # INIT-COMMANDS
13878 #
13879 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13880
13881
13882 # The HP-UX ksh and POSIX shell print the target directory to stdout
13883 # if CDPATH is set.
13884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13885
13886 sed_quote_subst='$sed_quote_subst'
13887 double_quote_subst='$double_quote_subst'
13888 delay_variable_subst='$delay_variable_subst'
13889 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13890 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13891 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13892 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13893 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13894 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13895 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13896 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13897 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13898 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13899 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13900 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13901 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13902 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13903 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13904 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13905 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13906 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13907 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13908 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13909 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13910 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13911 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13912 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13913 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13914 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13915 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13916 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13917 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13918 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13919 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13920 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13921 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13922 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13923 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13924 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13925 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13926 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13927 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13928 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13929 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13930 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13931 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13932 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13933 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13934 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13935 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"`'
13936 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"`'
13937 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13938 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13939 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13940 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13941 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13942 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13943 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13944 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13945 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13946 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13947 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13948 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13949 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13950 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13951 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13952 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13953 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13954 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13955 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13956 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13957 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13958 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13959 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13960 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13961 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13962 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13963 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13964 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13965 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13966 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13967 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13968 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13969 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13970 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13971 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13972 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13973 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13974 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13975 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13976 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13977 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13978 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13979 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13980 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13981 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13982 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13983 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13984 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13985 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13986 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13987 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13988 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13989 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13990 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13991 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13992 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13993 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13994 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13995 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13996 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13997 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13998 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13999 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14000 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14001 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14002 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14003 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14004 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14005 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14006 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14007 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14008 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14009
14010 LTCC='$LTCC'
14011 LTCFLAGS='$LTCFLAGS'
14012 compiler='$compiler_DEFAULT'
14013
14014 # Quote evaled strings.
14015 for var in SED \
14016 GREP \
14017 EGREP \
14018 FGREP \
14019 LD \
14020 NM \
14021 LN_S \
14022 lt_SP2NL \
14023 lt_NL2SP \
14024 reload_flag \
14025 deplibs_check_method \
14026 file_magic_cmd \
14027 AR \
14028 AR_FLAGS \
14029 STRIP \
14030 RANLIB \
14031 CC \
14032 CFLAGS \
14033 compiler \
14034 lt_cv_sys_global_symbol_pipe \
14035 lt_cv_sys_global_symbol_to_cdecl \
14036 lt_cv_sys_global_symbol_to_c_name_address \
14037 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14038 SHELL \
14039 ECHO \
14040 lt_prog_compiler_no_builtin_flag \
14041 lt_prog_compiler_wl \
14042 lt_prog_compiler_pic \
14043 lt_prog_compiler_static \
14044 lt_cv_prog_compiler_c_o \
14045 need_locks \
14046 DSYMUTIL \
14047 NMEDIT \
14048 LIPO \
14049 OTOOL \
14050 OTOOL64 \
14051 shrext_cmds \
14052 export_dynamic_flag_spec \
14053 whole_archive_flag_spec \
14054 compiler_needs_object \
14055 with_gnu_ld \
14056 allow_undefined_flag \
14057 no_undefined_flag \
14058 hardcode_libdir_flag_spec \
14059 hardcode_libdir_flag_spec_ld \
14060 hardcode_libdir_separator \
14061 fix_srcfile_path \
14062 exclude_expsyms \
14063 include_expsyms \
14064 file_list_spec \
14065 variables_saved_for_relink \
14066 libname_spec \
14067 library_names_spec \
14068 soname_spec \
14069 finish_eval \
14070 old_striplib \
14071 striplib; do
14072 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14073 *[\\\\\\\`\\"\\\$]*)
14074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14075 ;;
14076 *)
14077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14078 ;;
14079 esac
14080 done
14081
14082 # Double-quote double-evaled strings.
14083 for var in reload_cmds \
14084 old_postinstall_cmds \
14085 old_postuninstall_cmds \
14086 old_archive_cmds \
14087 extract_expsyms_cmds \
14088 old_archive_from_new_cmds \
14089 old_archive_from_expsyms_cmds \
14090 archive_cmds \
14091 archive_expsym_cmds \
14092 module_cmds \
14093 module_expsym_cmds \
14094 export_symbols_cmds \
14095 prelink_cmds \
14096 postinstall_cmds \
14097 postuninstall_cmds \
14098 finish_cmds \
14099 sys_lib_search_path_spec \
14100 sys_lib_dlsearch_path_spec; do
14101 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14102 *[\\\\\\\`\\"\\\$]*)
14103 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14104 ;;
14105 *)
14106 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14107 ;;
14108 esac
14109 done
14110
14111 # Fix-up fallback echo if it was mangled by the above quoting rules.
14112 case \$lt_ECHO in
14113 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14114 ;;
14115 esac
14116
14117 ac_aux_dir='$ac_aux_dir'
14118 xsi_shell='$xsi_shell'
14119 lt_shell_append='$lt_shell_append'
14120
14121 # See if we are running on zsh, and set the options which allow our
14122 # commands through without removal of \ escapes INIT.
14123 if test -n "\${ZSH_VERSION+set}" ; then
14124 setopt NO_GLOB_SUBST
14125 fi
14126
14127
14128 PACKAGE='$PACKAGE'
14129 VERSION='$VERSION'
14130 TIMESTAMP='$TIMESTAMP'
14131 RM='$RM'
14132 ofile='$ofile'
14133
14134
14135
14136
14137 _ACEOF
14138
14139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14140
14141 # Handling of arguments.
14142 for ac_config_target in $ac_config_targets
14143 do
14144 case $ac_config_target in
14145 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
14146 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14147 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14149
14150 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14151 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14152 { (exit 1); exit 1; }; };;
14153 esac
14154 done
14155
14156
14157 # If the user did not use the arguments to specify the items to instantiate,
14158 # then the envvar interface is used. Set only those that are not.
14159 # We use the long form for the default assignment because of an extremely
14160 # bizarre bug on SunOS 4.1.3.
14161 if $ac_need_defaults; then
14162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14165 fi
14166
14167 # Have a temporary directory for convenience. Make it in the build tree
14168 # simply because there is no reason against having it here, and in addition,
14169 # creating and moving files from /tmp can sometimes cause problems.
14170 # Hook for its removal unless debugging.
14171 # Note that there is a small window in which the directory will not be cleaned:
14172 # after its creation but before its name has been assigned to `$tmp'.
14173 $debug ||
14174 {
14175 tmp=
14176 trap 'exit_status=$?
14177 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14178 ' 0
14179 trap '{ (exit 1); exit 1; }' 1 2 13 15
14180 }
14181 # Create a (secure) tmp directory for tmp files.
14182
14183 {
14184 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14185 test -n "$tmp" && test -d "$tmp"
14186 } ||
14187 {
14188 tmp=./conf$$-$RANDOM
14189 (umask 077 && mkdir "$tmp")
14190 } ||
14191 {
14192 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14193 { (exit 1); exit 1; }
14194 }
14195
14196 # Set up the scripts for CONFIG_FILES section.
14197 # No need to generate them if there are no CONFIG_FILES.
14198 # This happens for instance with `./config.status config.h'.
14199 if test -n "$CONFIG_FILES"; then
14200
14201
14202 ac_cr=' '
14203 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14204 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14205 ac_cs_awk_cr='\\r'
14206 else
14207 ac_cs_awk_cr=$ac_cr
14208 fi
14209
14210 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14211 _ACEOF
14212
14213
14214 {
14215 echo "cat >conf$$subs.awk <<_ACEOF" &&
14216 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14217 echo "_ACEOF"
14218 } >conf$$subs.sh ||
14219 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14220 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14221 { (exit 1); exit 1; }; }
14222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14223 ac_delim='%!_!# '
14224 for ac_last_try in false false false false false :; do
14225 . ./conf$$subs.sh ||
14226 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14227 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14228 { (exit 1); exit 1; }; }
14229
14230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14231 if test $ac_delim_n = $ac_delim_num; then
14232 break
14233 elif $ac_last_try; then
14234 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14235 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14236 { (exit 1); exit 1; }; }
14237 else
14238 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14239 fi
14240 done
14241 rm -f conf$$subs.sh
14242
14243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14244 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14245 _ACEOF
14246 sed -n '
14247 h
14248 s/^/S["/; s/!.*/"]=/
14249 p
14250 g
14251 s/^[^!]*!//
14252 :repl
14253 t repl
14254 s/'"$ac_delim"'$//
14255 t delim
14256 :nl
14257 h
14258 s/\(.\{148\}\).*/\1/
14259 t more1
14260 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14261 p
14262 n
14263 b repl
14264 :more1
14265 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14266 p
14267 g
14268 s/.\{148\}//
14269 t nl
14270 :delim
14271 h
14272 s/\(.\{148\}\).*/\1/
14273 t more2
14274 s/["\\]/\\&/g; s/^/"/; s/$/"/
14275 p
14276 b
14277 :more2
14278 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14279 p
14280 g
14281 s/.\{148\}//
14282 t delim
14283 ' <conf$$subs.awk | sed '
14284 /^[^""]/{
14285 N
14286 s/\n//
14287 }
14288 ' >>$CONFIG_STATUS || ac_write_fail=1
14289 rm -f conf$$subs.awk
14290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14291 _ACAWK
14292 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14293 for (key in S) S_is_set[key] = 1
14294 FS = "\a"
14295
14296 }
14297 {
14298 line = $ 0
14299 nfields = split(line, field, "@")
14300 substed = 0
14301 len = length(field[1])
14302 for (i = 2; i < nfields; i++) {
14303 key = field[i]
14304 keylen = length(key)
14305 if (S_is_set[key]) {
14306 value = S[key]
14307 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14308 len += length(value) + length(field[++i])
14309 substed = 1
14310 } else
14311 len += 1 + keylen
14312 }
14313
14314 print line
14315 }
14316
14317 _ACAWK
14318 _ACEOF
14319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14320 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14321 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14322 else
14323 cat
14324 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14325 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14326 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14327 { (exit 1); exit 1; }; }
14328 _ACEOF
14329
14330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14332 # trailing colons and then remove the whole line if VPATH becomes empty
14333 # (actually we leave an empty line to preserve line numbers).
14334 if test "x$srcdir" = x.; then
14335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14336 s/:*\$(srcdir):*/:/
14337 s/:*\${srcdir}:*/:/
14338 s/:*@srcdir@:*/:/
14339 s/^\([^=]*=[ ]*\):*/\1/
14340 s/:*$//
14341 s/^[^=]*=[ ]*$//
14342 }'
14343 fi
14344
14345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14346 fi # test -n "$CONFIG_FILES"
14347
14348 # Set up the scripts for CONFIG_HEADERS section.
14349 # No need to generate them if there are no CONFIG_HEADERS.
14350 # This happens for instance with `./config.status Makefile'.
14351 if test -n "$CONFIG_HEADERS"; then
14352 cat >"$tmp/defines.awk" <<\_ACAWK ||
14353 BEGIN {
14354 _ACEOF
14355
14356 # Transform confdefs.h into an awk script `defines.awk', embedded as
14357 # here-document in config.status, that substitutes the proper values into
14358 # config.h.in to produce config.h.
14359
14360 # Create a delimiter string that does not exist in confdefs.h, to ease
14361 # handling of long lines.
14362 ac_delim='%!_!# '
14363 for ac_last_try in false false :; do
14364 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14365 if test -z "$ac_t"; then
14366 break
14367 elif $ac_last_try; then
14368 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14369 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14370 { (exit 1); exit 1; }; }
14371 else
14372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14373 fi
14374 done
14375
14376 # For the awk script, D is an array of macro values keyed by name,
14377 # likewise P contains macro parameters if any. Preserve backslash
14378 # newline sequences.
14379
14380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14381 sed -n '
14382 s/.\{148\}/&'"$ac_delim"'/g
14383 t rset
14384 :rset
14385 s/^[ ]*#[ ]*define[ ][ ]*/ /
14386 t def
14387 d
14388 :def
14389 s/\\$//
14390 t bsnl
14391 s/["\\]/\\&/g
14392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14393 D["\1"]=" \3"/p
14394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14395 d
14396 :bsnl
14397 s/["\\]/\\&/g
14398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14399 D["\1"]=" \3\\\\\\n"\\/p
14400 t cont
14401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14402 t cont
14403 d
14404 :cont
14405 n
14406 s/.\{148\}/&'"$ac_delim"'/g
14407 t clear
14408 :clear
14409 s/\\$//
14410 t bsnlc
14411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14412 d
14413 :bsnlc
14414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14415 b cont
14416 ' <confdefs.h | sed '
14417 s/'"$ac_delim"'/"\\\
14418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14419
14420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14421 for (key in D) D_is_set[key] = 1
14422 FS = "\a"
14423 }
14424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14425 line = \$ 0
14426 split(line, arg, " ")
14427 if (arg[1] == "#") {
14428 defundef = arg[2]
14429 mac1 = arg[3]
14430 } else {
14431 defundef = substr(arg[1], 2)
14432 mac1 = arg[2]
14433 }
14434 split(mac1, mac2, "(") #)
14435 macro = mac2[1]
14436 prefix = substr(line, 1, index(line, defundef) - 1)
14437 if (D_is_set[macro]) {
14438 # Preserve the white space surrounding the "#".
14439 print prefix "define", macro P[macro] D[macro]
14440 next
14441 } else {
14442 # Replace #undef with comments. This is necessary, for example,
14443 # in the case of _POSIX_SOURCE, which is predefined and required
14444 # on some systems where configure will not decide to define it.
14445 if (defundef == "undef") {
14446 print "/*", prefix defundef, macro, "*/"
14447 next
14448 }
14449 }
14450 }
14451 { print }
14452 _ACAWK
14453 _ACEOF
14454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14455 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14456 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14457 { (exit 1); exit 1; }; }
14458 fi # test -n "$CONFIG_HEADERS"
14459
14460
14461 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14462 shift
14463 for ac_tag
14464 do
14465 case $ac_tag in
14466 :[FHLC]) ac_mode=$ac_tag; continue;;
14467 esac
14468 case $ac_mode$ac_tag in
14469 :[FHL]*:*);;
14470 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14471 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14472 { (exit 1); exit 1; }; };;
14473 :[FH]-) ac_tag=-:-;;
14474 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14475 esac
14476 ac_save_IFS=$IFS
14477 IFS=:
14478 set x $ac_tag
14479 IFS=$ac_save_IFS
14480 shift
14481 ac_file=$1
14482 shift
14483
14484 case $ac_mode in
14485 :L) ac_source=$1;;
14486 :[FH])
14487 ac_file_inputs=
14488 for ac_f
14489 do
14490 case $ac_f in
14491 -) ac_f="$tmp/stdin";;
14492 *) # Look for the file first in the build tree, then in the source tree
14493 # (if the path is not absolute). The absolute path cannot be DOS-style,
14494 # because $ac_f cannot contain `:'.
14495 test -f "$ac_f" ||
14496 case $ac_f in
14497 [\\/$]*) false;;
14498 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14499 esac ||
14500 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14501 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14502 { (exit 1); exit 1; }; };;
14503 esac
14504 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14505 ac_file_inputs="$ac_file_inputs '$ac_f'"
14506 done
14507
14508 # Let's still pretend it is `configure' which instantiates (i.e., don't
14509 # use $as_me), people would be surprised to read:
14510 # /* config.h. Generated by config.status. */
14511 configure_input='Generated from '`
14512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14513 `' by configure.'
14514 if test x"$ac_file" != x-; then
14515 configure_input="$ac_file. $configure_input"
14516 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14517 $as_echo "$as_me: creating $ac_file" >&6;}
14518 fi
14519 # Neutralize special characters interpreted by sed in replacement strings.
14520 case $configure_input in #(
14521 *\&* | *\|* | *\\* )
14522 ac_sed_conf_input=`$as_echo "$configure_input" |
14523 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14524 *) ac_sed_conf_input=$configure_input;;
14525 esac
14526
14527 case $ac_tag in
14528 *:-:* | *:-) cat >"$tmp/stdin" \
14529 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14530 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14531 { (exit 1); exit 1; }; } ;;
14532 esac
14533 ;;
14534 esac
14535
14536 ac_dir=`$as_dirname -- "$ac_file" ||
14537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14538 X"$ac_file" : 'X\(//\)[^/]' \| \
14539 X"$ac_file" : 'X\(//\)$' \| \
14540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14541 $as_echo X"$ac_file" |
14542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14543 s//\1/
14544 q
14545 }
14546 /^X\(\/\/\)[^/].*/{
14547 s//\1/
14548 q
14549 }
14550 /^X\(\/\/\)$/{
14551 s//\1/
14552 q
14553 }
14554 /^X\(\/\).*/{
14555 s//\1/
14556 q
14557 }
14558 s/.*/./; q'`
14559 { as_dir="$ac_dir"
14560 case $as_dir in #(
14561 -*) as_dir=./$as_dir;;
14562 esac
14563 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14564 as_dirs=
14565 while :; do
14566 case $as_dir in #(
14567 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14568 *) as_qdir=$as_dir;;
14569 esac
14570 as_dirs="'$as_qdir' $as_dirs"
14571 as_dir=`$as_dirname -- "$as_dir" ||
14572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14573 X"$as_dir" : 'X\(//\)[^/]' \| \
14574 X"$as_dir" : 'X\(//\)$' \| \
14575 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14576 $as_echo X"$as_dir" |
14577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14578 s//\1/
14579 q
14580 }
14581 /^X\(\/\/\)[^/].*/{
14582 s//\1/
14583 q
14584 }
14585 /^X\(\/\/\)$/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\).*/{
14590 s//\1/
14591 q
14592 }
14593 s/.*/./; q'`
14594 test -d "$as_dir" && break
14595 done
14596 test -z "$as_dirs" || eval "mkdir $as_dirs"
14597 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14598 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14599 { (exit 1); exit 1; }; }; }
14600 ac_builddir=.
14601
14602 case "$ac_dir" in
14603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14604 *)
14605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14606 # A ".." for each directory in $ac_dir_suffix.
14607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14608 case $ac_top_builddir_sub in
14609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14611 esac ;;
14612 esac
14613 ac_abs_top_builddir=$ac_pwd
14614 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14615 # for backward compatibility:
14616 ac_top_builddir=$ac_top_build_prefix
14617
14618 case $srcdir in
14619 .) # We are building in place.
14620 ac_srcdir=.
14621 ac_top_srcdir=$ac_top_builddir_sub
14622 ac_abs_top_srcdir=$ac_pwd ;;
14623 [\\/]* | ?:[\\/]* ) # Absolute name.
14624 ac_srcdir=$srcdir$ac_dir_suffix;
14625 ac_top_srcdir=$srcdir
14626 ac_abs_top_srcdir=$srcdir ;;
14627 *) # Relative name.
14628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14629 ac_top_srcdir=$ac_top_build_prefix$srcdir
14630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14631 esac
14632 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14633
14634
14635 case $ac_mode in
14636 :F)
14637 #
14638 # CONFIG_FILE
14639 #
14640
14641 case $INSTALL in
14642 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14643 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14644 esac
14645 ac_MKDIR_P=$MKDIR_P
14646 case $MKDIR_P in
14647 [\\/$]* | ?:[\\/]* ) ;;
14648 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14649 esac
14650 _ACEOF
14651
14652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14653 # If the template does not know about datarootdir, expand it.
14654 # FIXME: This hack should be removed a few years after 2.60.
14655 ac_datarootdir_hack=; ac_datarootdir_seen=
14656
14657 ac_sed_dataroot='
14658 /datarootdir/ {
14659 p
14660 q
14661 }
14662 /@datadir@/p
14663 /@docdir@/p
14664 /@infodir@/p
14665 /@localedir@/p
14666 /@mandir@/p
14667 '
14668 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14669 *datarootdir*) ac_datarootdir_seen=yes;;
14670 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14671 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14672 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14673 _ACEOF
14674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14675 ac_datarootdir_hack='
14676 s&@datadir@&$datadir&g
14677 s&@docdir@&$docdir&g
14678 s&@infodir@&$infodir&g
14679 s&@localedir@&$localedir&g
14680 s&@mandir@&$mandir&g
14681 s&\\\${datarootdir}&$datarootdir&g' ;;
14682 esac
14683 _ACEOF
14684
14685 # Neutralize VPATH when `$srcdir' = `.'.
14686 # Shell code in configure.ac might set extrasub.
14687 # FIXME: do we really want to maintain this feature?
14688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14689 ac_sed_extra="$ac_vpsub
14690 $extrasub
14691 _ACEOF
14692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14693 :t
14694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14695 s|@configure_input@|$ac_sed_conf_input|;t t
14696 s&@top_builddir@&$ac_top_builddir_sub&;t t
14697 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14698 s&@srcdir@&$ac_srcdir&;t t
14699 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14700 s&@top_srcdir@&$ac_top_srcdir&;t t
14701 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14702 s&@builddir@&$ac_builddir&;t t
14703 s&@abs_builddir@&$ac_abs_builddir&;t t
14704 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14705 s&@INSTALL@&$ac_INSTALL&;t t
14706 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14707 $ac_datarootdir_hack
14708 "
14709 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14710 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14711 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14712 { (exit 1); exit 1; }; }
14713
14714 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14715 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14717 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14718 which seems to be undefined. Please make sure it is defined." >&5
14719 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14720 which seems to be undefined. Please make sure it is defined." >&2;}
14721
14722 rm -f "$tmp/stdin"
14723 case $ac_file in
14724 -) cat "$tmp/out" && rm -f "$tmp/out";;
14725 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14726 esac \
14727 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14728 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14729 { (exit 1); exit 1; }; }
14730 ;;
14731 :H)
14732 #
14733 # CONFIG_HEADER
14734 #
14735 if test x"$ac_file" != x-; then
14736 {
14737 $as_echo "/* $configure_input */" \
14738 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14739 } >"$tmp/config.h" \
14740 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14741 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14742 { (exit 1); exit 1; }; }
14743 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14744 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14745 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14746 else
14747 rm -f "$ac_file"
14748 mv "$tmp/config.h" "$ac_file" \
14749 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14750 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14751 { (exit 1); exit 1; }; }
14752 fi
14753 else
14754 $as_echo "/* $configure_input */" \
14755 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14756 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14757 $as_echo "$as_me: error: could not create -" >&2;}
14758 { (exit 1); exit 1; }; }
14759 fi
14760 # Compute "$ac_file"'s index in $config_headers.
14761 _am_arg="$ac_file"
14762 _am_stamp_count=1
14763 for _am_header in $config_headers :; do
14764 case $_am_header in
14765 $_am_arg | $_am_arg:* )
14766 break ;;
14767 * )
14768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14769 esac
14770 done
14771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14773 X"$_am_arg" : 'X\(//\)[^/]' \| \
14774 X"$_am_arg" : 'X\(//\)$' \| \
14775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14776 $as_echo X"$_am_arg" |
14777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14778 s//\1/
14779 q
14780 }
14781 /^X\(\/\/\)[^/].*/{
14782 s//\1/
14783 q
14784 }
14785 /^X\(\/\/\)$/{
14786 s//\1/
14787 q
14788 }
14789 /^X\(\/\).*/{
14790 s//\1/
14791 q
14792 }
14793 s/.*/./; q'`/stamp-h$_am_stamp_count
14794 ;;
14795
14796 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14797 $as_echo "$as_me: executing $ac_file commands" >&6;}
14798 ;;
14799 esac
14800
14801
14802 case $ac_file$ac_mode in
14803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14804 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14805 # are listed without --file. Let's play safe and only enable the eval
14806 # if we detect the quoting.
14807 case $CONFIG_FILES in
14808 *\'*) eval set x "$CONFIG_FILES" ;;
14809 *) set x $CONFIG_FILES ;;
14810 esac
14811 shift
14812 for mf
14813 do
14814 # Strip MF so we end up with the name of the file.
14815 mf=`echo "$mf" | sed -e 's/:.*$//'`
14816 # Check whether this is an Automake generated Makefile or not.
14817 # We used to match only the files named `Makefile.in', but
14818 # some people rename them; so instead we look at the file content.
14819 # Grep'ing the first line is not enough: some people post-process
14820 # each Makefile.in and add a new line on top of each file to say so.
14821 # Grep'ing the whole file is not good either: AIX grep has a line
14822 # limit of 2048, but all sed's we know have understand at least 4000.
14823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14824 dirpart=`$as_dirname -- "$mf" ||
14825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$mf" : 'X\(//\)[^/]' \| \
14827 X"$mf" : 'X\(//\)$' \| \
14828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14829 $as_echo X"$mf" |
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\(\/\/\)[^/].*/{
14835 s//\1/
14836 q
14837 }
14838 /^X\(\/\/\)$/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\).*/{
14843 s//\1/
14844 q
14845 }
14846 s/.*/./; q'`
14847 else
14848 continue
14849 fi
14850 # Extract the definition of DEPDIR, am__include, and am__quote
14851 # from the Makefile without running `make'.
14852 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14853 test -z "$DEPDIR" && continue
14854 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14855 test -z "am__include" && continue
14856 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14857 # When using ansi2knr, U may be empty or an underscore; expand it
14858 U=`sed -n 's/^U = //p' < "$mf"`
14859 # Find all dependency output files, they are included files with
14860 # $(DEPDIR) in their names. We invoke sed twice because it is the
14861 # simplest approach to changing $(DEPDIR) to its actual value in the
14862 # expansion.
14863 for file in `sed -n "
14864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14866 # Make sure the directory exists.
14867 test -f "$dirpart/$file" && continue
14868 fdir=`$as_dirname -- "$file" ||
14869 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14870 X"$file" : 'X\(//\)[^/]' \| \
14871 X"$file" : 'X\(//\)$' \| \
14872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14873 $as_echo X"$file" |
14874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14875 s//\1/
14876 q
14877 }
14878 /^X\(\/\/\)[^/].*/{
14879 s//\1/
14880 q
14881 }
14882 /^X\(\/\/\)$/{
14883 s//\1/
14884 q
14885 }
14886 /^X\(\/\).*/{
14887 s//\1/
14888 q
14889 }
14890 s/.*/./; q'`
14891 { as_dir=$dirpart/$fdir
14892 case $as_dir in #(
14893 -*) as_dir=./$as_dir;;
14894 esac
14895 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14896 as_dirs=
14897 while :; do
14898 case $as_dir in #(
14899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14900 *) as_qdir=$as_dir;;
14901 esac
14902 as_dirs="'$as_qdir' $as_dirs"
14903 as_dir=`$as_dirname -- "$as_dir" ||
14904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14905 X"$as_dir" : 'X\(//\)[^/]' \| \
14906 X"$as_dir" : 'X\(//\)$' \| \
14907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14908 $as_echo X"$as_dir" |
14909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14910 s//\1/
14911 q
14912 }
14913 /^X\(\/\/\)[^/].*/{
14914 s//\1/
14915 q
14916 }
14917 /^X\(\/\/\)$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\).*/{
14922 s//\1/
14923 q
14924 }
14925 s/.*/./; q'`
14926 test -d "$as_dir" && break
14927 done
14928 test -z "$as_dirs" || eval "mkdir $as_dirs"
14929 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14930 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14931 { (exit 1); exit 1; }; }; }
14932 # echo "creating $dirpart/$file"
14933 echo '# dummy' > "$dirpart/$file"
14934 done
14935 done
14936 }
14937 ;;
14938 "libtool":C)
14939
14940 # See if we are running on zsh, and set the options which allow our
14941 # commands through without removal of \ escapes.
14942 if test -n "${ZSH_VERSION+set}" ; then
14943 setopt NO_GLOB_SUBST
14944 fi
14945
14946 cfgfile="${ofile}T"
14947 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14948 $RM "$cfgfile"
14949
14950 cat <<_LT_EOF >> "$cfgfile"
14951 #! $SHELL
14952
14953 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14954 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14956 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14957 #
14958 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14959 # 2006, 2007, 2008 Free Software Foundation, Inc.
14960 # Written by Gordon Matzigkeit, 1996
14961 #
14962 # This file is part of GNU Libtool.
14963 #
14964 # GNU Libtool is free software; you can redistribute it and/or
14965 # modify it under the terms of the GNU General Public License as
14966 # published by the Free Software Foundation; either version 2 of
14967 # the License, or (at your option) any later version.
14968 #
14969 # As a special exception to the GNU General Public License,
14970 # if you distribute this file as part of a program or library that
14971 # is built using GNU Libtool, you may include this file under the
14972 # same distribution terms that you use for the rest of that program.
14973 #
14974 # GNU Libtool is distributed in the hope that it will be useful,
14975 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14976 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14977 # GNU General Public License for more details.
14978 #
14979 # You should have received a copy of the GNU General Public License
14980 # along with GNU Libtool; see the file COPYING. If not, a copy
14981 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14982 # obtained by writing to the Free Software Foundation, Inc.,
14983 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14984
14985
14986 # The names of the tagged configurations supported by this script.
14987 available_tags=""
14988
14989 # ### BEGIN LIBTOOL CONFIG
14990
14991 # Which release of libtool.m4 was used?
14992 macro_version=$macro_version
14993 macro_revision=$macro_revision
14994
14995 # Assembler program.
14996 AS=$AS
14997
14998 # DLL creation program.
14999 DLLTOOL=$DLLTOOL
15000
15001 # Object dumper program.
15002 OBJDUMP=$OBJDUMP
15003
15004 # Whether or not to build shared libraries.
15005 build_libtool_libs=$enable_shared
15006
15007 # Whether or not to build static libraries.
15008 build_old_libs=$enable_static
15009
15010 # What type of objects to build.
15011 pic_mode=$pic_mode
15012
15013 # Whether or not to optimize for fast installation.
15014 fast_install=$enable_fast_install
15015
15016 # The host system.
15017 host_alias=$host_alias
15018 host=$host
15019 host_os=$host_os
15020
15021 # The build system.
15022 build_alias=$build_alias
15023 build=$build
15024 build_os=$build_os
15025
15026 # A sed program that does not truncate output.
15027 SED=$lt_SED
15028
15029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15030 Xsed="\$SED -e 1s/^X//"
15031
15032 # A grep program that handles long lines.
15033 GREP=$lt_GREP
15034
15035 # An ERE matcher.
15036 EGREP=$lt_EGREP
15037
15038 # A literal string matcher.
15039 FGREP=$lt_FGREP
15040
15041 # A BSD- or MS-compatible name lister.
15042 NM=$lt_NM
15043
15044 # Whether we need soft or hard links.
15045 LN_S=$lt_LN_S
15046
15047 # What is the maximum length of a command?
15048 max_cmd_len=$max_cmd_len
15049
15050 # Object file suffix (normally "o").
15051 objext=$ac_objext
15052
15053 # Executable file suffix (normally "").
15054 exeext=$exeext
15055
15056 # whether the shell understands "unset".
15057 lt_unset=$lt_unset
15058
15059 # turn spaces into newlines.
15060 SP2NL=$lt_lt_SP2NL
15061
15062 # turn newlines into spaces.
15063 NL2SP=$lt_lt_NL2SP
15064
15065 # How to create reloadable object files.
15066 reload_flag=$lt_reload_flag
15067 reload_cmds=$lt_reload_cmds
15068
15069 # Method to check whether dependent libraries are shared objects.
15070 deplibs_check_method=$lt_deplibs_check_method
15071
15072 # Command to use when deplibs_check_method == "file_magic".
15073 file_magic_cmd=$lt_file_magic_cmd
15074
15075 # The archiver.
15076 AR=$lt_AR
15077 AR_FLAGS=$lt_AR_FLAGS
15078
15079 # A symbol stripping program.
15080 STRIP=$lt_STRIP
15081
15082 # Commands used to install an old-style archive.
15083 RANLIB=$lt_RANLIB
15084 old_postinstall_cmds=$lt_old_postinstall_cmds
15085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15086
15087 # A C compiler.
15088 LTCC=$lt_CC
15089
15090 # LTCC compiler flags.
15091 LTCFLAGS=$lt_CFLAGS
15092
15093 # Take the output of nm and produce a listing of raw symbols and C names.
15094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15095
15096 # Transform the output of nm in a proper C declaration.
15097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15098
15099 # Transform the output of nm in a C name address pair.
15100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15101
15102 # Transform the output of nm in a C name address pair when lib prefix is needed.
15103 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15104
15105 # The name of the directory that contains temporary libtool files.
15106 objdir=$objdir
15107
15108 # Shell to use when invoking shell scripts.
15109 SHELL=$lt_SHELL
15110
15111 # An echo program that does not interpret backslashes.
15112 ECHO=$lt_ECHO
15113
15114 # Used to examine libraries when file_magic_cmd begins with "file".
15115 MAGIC_CMD=$MAGIC_CMD
15116
15117 # Must we lock files when doing compilation?
15118 need_locks=$lt_need_locks
15119
15120 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15121 DSYMUTIL=$lt_DSYMUTIL
15122
15123 # Tool to change global to local symbols on Mac OS X.
15124 NMEDIT=$lt_NMEDIT
15125
15126 # Tool to manipulate fat objects and archives on Mac OS X.
15127 LIPO=$lt_LIPO
15128
15129 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15130 OTOOL=$lt_OTOOL
15131
15132 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15133 OTOOL64=$lt_OTOOL64
15134
15135 # Old archive suffix (normally "a").
15136 libext=$libext
15137
15138 # Shared library suffix (normally ".so").
15139 shrext_cmds=$lt_shrext_cmds
15140
15141 # The commands to extract the exported symbol list from a shared archive.
15142 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15143
15144 # Variables whose values should be saved in libtool wrapper scripts and
15145 # restored at link time.
15146 variables_saved_for_relink=$lt_variables_saved_for_relink
15147
15148 # Do we need the "lib" prefix for modules?
15149 need_lib_prefix=$need_lib_prefix
15150
15151 # Do we need a version for libraries?
15152 need_version=$need_version
15153
15154 # Library versioning type.
15155 version_type=$version_type
15156
15157 # Shared library runtime path variable.
15158 runpath_var=$runpath_var
15159
15160 # Shared library path variable.
15161 shlibpath_var=$shlibpath_var
15162
15163 # Is shlibpath searched before the hard-coded library search path?
15164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15165
15166 # Format of library name prefix.
15167 libname_spec=$lt_libname_spec
15168
15169 # List of archive names. First name is the real one, the rest are links.
15170 # The last name is the one that the linker finds with -lNAME
15171 library_names_spec=$lt_library_names_spec
15172
15173 # The coded name of the library, if different from the real name.
15174 soname_spec=$lt_soname_spec
15175
15176 # Command to use after installation of a shared archive.
15177 postinstall_cmds=$lt_postinstall_cmds
15178
15179 # Command to use after uninstallation of a shared archive.
15180 postuninstall_cmds=$lt_postuninstall_cmds
15181
15182 # Commands used to finish a libtool library installation in a directory.
15183 finish_cmds=$lt_finish_cmds
15184
15185 # As "finish_cmds", except a single script fragment to be evaled but
15186 # not shown.
15187 finish_eval=$lt_finish_eval
15188
15189 # Whether we should hardcode library paths into libraries.
15190 hardcode_into_libs=$hardcode_into_libs
15191
15192 # Compile-time system search path for libraries.
15193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15194
15195 # Run-time system search path for libraries.
15196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15197
15198 # Whether dlopen is supported.
15199 dlopen_support=$enable_dlopen
15200
15201 # Whether dlopen of programs is supported.
15202 dlopen_self=$enable_dlopen_self
15203
15204 # Whether dlopen of statically linked programs is supported.
15205 dlopen_self_static=$enable_dlopen_self_static
15206
15207 # Commands to strip libraries.
15208 old_striplib=$lt_old_striplib
15209 striplib=$lt_striplib
15210
15211
15212 # The linker used to build libraries.
15213 LD=$lt_LD
15214
15215 # Commands used to build an old-style archive.
15216 old_archive_cmds=$lt_old_archive_cmds
15217
15218 # A language specific compiler.
15219 CC=$lt_compiler
15220
15221 # Is the compiler the GNU compiler?
15222 with_gcc=$GCC
15223
15224 # Compiler flag to turn off builtin functions.
15225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15226
15227 # How to pass a linker flag through the compiler.
15228 wl=$lt_lt_prog_compiler_wl
15229
15230 # Additional compiler flags for building library objects.
15231 pic_flag=$lt_lt_prog_compiler_pic
15232
15233 # Compiler flag to prevent dynamic linking.
15234 link_static_flag=$lt_lt_prog_compiler_static
15235
15236 # Does compiler simultaneously support -c and -o options?
15237 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15238
15239 # Whether or not to add -lc for building shared libraries.
15240 build_libtool_need_lc=$archive_cmds_need_lc
15241
15242 # Whether or not to disallow shared libs when runtime libs are static.
15243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15244
15245 # Compiler flag to allow reflexive dlopens.
15246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15247
15248 # Compiler flag to generate shared objects directly from archives.
15249 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15250
15251 # Whether the compiler copes with passing no objects directly.
15252 compiler_needs_object=$lt_compiler_needs_object
15253
15254 # Create an old-style archive from a shared archive.
15255 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15256
15257 # Create a temporary old-style archive to link instead of a shared archive.
15258 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15259
15260 # Commands used to build a shared archive.
15261 archive_cmds=$lt_archive_cmds
15262 archive_expsym_cmds=$lt_archive_expsym_cmds
15263
15264 # Commands used to build a loadable module if different from building
15265 # a shared archive.
15266 module_cmds=$lt_module_cmds
15267 module_expsym_cmds=$lt_module_expsym_cmds
15268
15269 # Whether we are building with GNU ld or not.
15270 with_gnu_ld=$lt_with_gnu_ld
15271
15272 # Flag that allows shared libraries with undefined symbols to be built.
15273 allow_undefined_flag=$lt_allow_undefined_flag
15274
15275 # Flag that enforces no undefined symbols.
15276 no_undefined_flag=$lt_no_undefined_flag
15277
15278 # Flag to hardcode \$libdir into a binary during linking.
15279 # This must work even if \$libdir does not exist
15280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15281
15282 # If ld is used when linking, flag to hardcode \$libdir into a binary
15283 # during linking. This must work even if \$libdir does not exist.
15284 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15285
15286 # Whether we need a single "-rpath" flag with a separated argument.
15287 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15288
15289 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15290 # DIR into the resulting binary.
15291 hardcode_direct=$hardcode_direct
15292
15293 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15294 # DIR into the resulting binary and the resulting library dependency is
15295 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15296 # library is relocated.
15297 hardcode_direct_absolute=$hardcode_direct_absolute
15298
15299 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15300 # into the resulting binary.
15301 hardcode_minus_L=$hardcode_minus_L
15302
15303 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15304 # into the resulting binary.
15305 hardcode_shlibpath_var=$hardcode_shlibpath_var
15306
15307 # Set to "yes" if building a shared library automatically hardcodes DIR
15308 # into the library and all subsequent libraries and executables linked
15309 # against it.
15310 hardcode_automatic=$hardcode_automatic
15311
15312 # Set to yes if linker adds runtime paths of dependent libraries
15313 # to runtime path list.
15314 inherit_rpath=$inherit_rpath
15315
15316 # Whether libtool must link a program against all its dependency libraries.
15317 link_all_deplibs=$link_all_deplibs
15318
15319 # Fix the shell variable \$srcfile for the compiler.
15320 fix_srcfile_path=$lt_fix_srcfile_path
15321
15322 # Set to "yes" if exported symbols are required.
15323 always_export_symbols=$always_export_symbols
15324
15325 # The commands to list exported symbols.
15326 export_symbols_cmds=$lt_export_symbols_cmds
15327
15328 # Symbols that should not be listed in the preloaded symbols.
15329 exclude_expsyms=$lt_exclude_expsyms
15330
15331 # Symbols that must always be exported.
15332 include_expsyms=$lt_include_expsyms
15333
15334 # Commands necessary for linking programs (against libraries) with templates.
15335 prelink_cmds=$lt_prelink_cmds
15336
15337 # Specify filename containing input files.
15338 file_list_spec=$lt_file_list_spec
15339
15340 # How to hardcode a shared library path into an executable.
15341 hardcode_action=$hardcode_action
15342
15343 # ### END LIBTOOL CONFIG
15344
15345 _LT_EOF
15346
15347 case $host_os in
15348 aix3*)
15349 cat <<\_LT_EOF >> "$cfgfile"
15350 # AIX sometimes has problems with the GCC collect2 program. For some
15351 # reason, if we set the COLLECT_NAMES environment variable, the problems
15352 # vanish in a puff of smoke.
15353 if test "X${COLLECT_NAMES+set}" != Xset; then
15354 COLLECT_NAMES=
15355 export COLLECT_NAMES
15356 fi
15357 _LT_EOF
15358 ;;
15359 esac
15360
15361
15362 ltmain="$ac_aux_dir/ltmain.sh"
15363
15364
15365 # We use sed instead of cat because bash on DJGPP gets confused if
15366 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15367 # text mode, it properly converts lines to CR/LF. This bash problem
15368 # is reportedly fixed, but why not run on old versions too?
15369 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15370 || (rm -f "$cfgfile"; exit 1)
15371
15372 case $xsi_shell in
15373 yes)
15374 cat << \_LT_EOF >> "$cfgfile"
15375
15376 # func_dirname file append nondir_replacement
15377 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15378 # otherwise set result to NONDIR_REPLACEMENT.
15379 func_dirname ()
15380 {
15381 case ${1} in
15382 */*) func_dirname_result="${1%/*}${2}" ;;
15383 * ) func_dirname_result="${3}" ;;
15384 esac
15385 }
15386
15387 # func_basename file
15388 func_basename ()
15389 {
15390 func_basename_result="${1##*/}"
15391 }
15392
15393 # func_dirname_and_basename file append nondir_replacement
15394 # perform func_basename and func_dirname in a single function
15395 # call:
15396 # dirname: Compute the dirname of FILE. If nonempty,
15397 # add APPEND to the result, otherwise set result
15398 # to NONDIR_REPLACEMENT.
15399 # value returned in "$func_dirname_result"
15400 # basename: Compute filename of FILE.
15401 # value retuned in "$func_basename_result"
15402 # Implementation must be kept synchronized with func_dirname
15403 # and func_basename. For efficiency, we do not delegate to
15404 # those functions but instead duplicate the functionality here.
15405 func_dirname_and_basename ()
15406 {
15407 case ${1} in
15408 */*) func_dirname_result="${1%/*}${2}" ;;
15409 * ) func_dirname_result="${3}" ;;
15410 esac
15411 func_basename_result="${1##*/}"
15412 }
15413
15414 # func_stripname prefix suffix name
15415 # strip PREFIX and SUFFIX off of NAME.
15416 # PREFIX and SUFFIX must not contain globbing or regex special
15417 # characters, hashes, percent signs, but SUFFIX may contain a leading
15418 # dot (in which case that matches only a dot).
15419 func_stripname ()
15420 {
15421 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15422 # positional parameters, so assign one to ordinary parameter first.
15423 func_stripname_result=${3}
15424 func_stripname_result=${func_stripname_result#"${1}"}
15425 func_stripname_result=${func_stripname_result%"${2}"}
15426 }
15427
15428 # func_opt_split
15429 func_opt_split ()
15430 {
15431 func_opt_split_opt=${1%%=*}
15432 func_opt_split_arg=${1#*=}
15433 }
15434
15435 # func_lo2o object
15436 func_lo2o ()
15437 {
15438 case ${1} in
15439 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15440 *) func_lo2o_result=${1} ;;
15441 esac
15442 }
15443
15444 # func_xform libobj-or-source
15445 func_xform ()
15446 {
15447 func_xform_result=${1%.*}.lo
15448 }
15449
15450 # func_arith arithmetic-term...
15451 func_arith ()
15452 {
15453 func_arith_result=$(( $* ))
15454 }
15455
15456 # func_len string
15457 # STRING may not start with a hyphen.
15458 func_len ()
15459 {
15460 func_len_result=${#1}
15461 }
15462
15463 _LT_EOF
15464 ;;
15465 *) # Bourne compatible functions.
15466 cat << \_LT_EOF >> "$cfgfile"
15467
15468 # func_dirname file append nondir_replacement
15469 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15470 # otherwise set result to NONDIR_REPLACEMENT.
15471 func_dirname ()
15472 {
15473 # Extract subdirectory from the argument.
15474 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15475 if test "X$func_dirname_result" = "X${1}"; then
15476 func_dirname_result="${3}"
15477 else
15478 func_dirname_result="$func_dirname_result${2}"
15479 fi
15480 }
15481
15482 # func_basename file
15483 func_basename ()
15484 {
15485 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15486 }
15487
15488
15489 # func_stripname prefix suffix name
15490 # strip PREFIX and SUFFIX off of NAME.
15491 # PREFIX and SUFFIX must not contain globbing or regex special
15492 # characters, hashes, percent signs, but SUFFIX may contain a leading
15493 # dot (in which case that matches only a dot).
15494 # func_strip_suffix prefix name
15495 func_stripname ()
15496 {
15497 case ${2} in
15498 .*) func_stripname_result=`$ECHO "X${3}" \
15499 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15500 *) func_stripname_result=`$ECHO "X${3}" \
15501 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15502 esac
15503 }
15504
15505 # sed scripts:
15506 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15507 my_sed_long_arg='1s/^-[^=]*=//'
15508
15509 # func_opt_split
15510 func_opt_split ()
15511 {
15512 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15513 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15514 }
15515
15516 # func_lo2o object
15517 func_lo2o ()
15518 {
15519 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15520 }
15521
15522 # func_xform libobj-or-source
15523 func_xform ()
15524 {
15525 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15526 }
15527
15528 # func_arith arithmetic-term...
15529 func_arith ()
15530 {
15531 func_arith_result=`expr "$@"`
15532 }
15533
15534 # func_len string
15535 # STRING may not start with a hyphen.
15536 func_len ()
15537 {
15538 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15539 }
15540
15541 _LT_EOF
15542 esac
15543
15544 case $lt_shell_append in
15545 yes)
15546 cat << \_LT_EOF >> "$cfgfile"
15547
15548 # func_append var value
15549 # Append VALUE to the end of shell variable VAR.
15550 func_append ()
15551 {
15552 eval "$1+=\$2"
15553 }
15554 _LT_EOF
15555 ;;
15556 *)
15557 cat << \_LT_EOF >> "$cfgfile"
15558
15559 # func_append var value
15560 # Append VALUE to the end of shell variable VAR.
15561 func_append ()
15562 {
15563 eval "$1=\$$1\$2"
15564 }
15565
15566 _LT_EOF
15567 ;;
15568 esac
15569
15570
15571 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15572 || (rm -f "$cfgfile"; exit 1)
15573
15574 mv -f "$cfgfile" "$ofile" ||
15575 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15576 chmod +x "$ofile"
15577
15578 ;;
15579
15580 esac
15581 done # for ac_tag
15582
15583
15584 { (exit 0); exit 0; }
15585 _ACEOF
15586 chmod +x $CONFIG_STATUS
15587 ac_clean_files=$ac_clean_files_save
15588
15589 test $ac_write_fail = 0 ||
15590 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15591 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15592 { (exit 1); exit 1; }; }
15593
15594
15595 # configure is writing to config.log, and then calls config.status.
15596 # config.status does its own redirection, appending to config.log.
15597 # Unfortunately, on DOS this fails, as config.log is still kept open
15598 # by configure, so config.status won't be able to write to it; its
15599 # output is simply discarded. So we exec the FD to /dev/null,
15600 # effectively closing config.log, so it can be properly (re)opened and
15601 # appended to by config.status. When coming back to configure, we
15602 # need to make the FD available again.
15603 if test "$no_create" != yes; then
15604 ac_cs_success=:
15605 ac_config_status_args=
15606 test "$silent" = yes &&
15607 ac_config_status_args="$ac_config_status_args --quiet"
15608 exec 5>/dev/null
15609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15610 exec 5>>config.log
15611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15612 # would make configure fail if this is the last instruction.
15613 $ac_cs_success || { (exit 1); exit 1; }
15614 fi
15615 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15616 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15617 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15618 fi
15619