blob: 9b95eacee48745c4d7e729c7b680e89e91f6b483 [file] [log] [blame]
Austin Schuh405fa6c2015-09-06 18:13:55 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='LTLIBOBJS
787LIBOBJS
788CPP
789OTOOL64
790OTOOL
791LIPO
792NMEDIT
793DSYMUTIL
794lt_ECHO
795RANLIB
796AR
797OBJDUMP
798LN_S
799NM
800ac_ct_DUMPBIN
801DUMPBIN
802LD
803FGREP
804EGREP
805GREP
806SED
807host_os
808host_vendor
809host_cpu
810host
811build_os
812build_vendor
813build_cpu
814build
815LIBTOOL
816am__fastdepCC_FALSE
817am__fastdepCC_TRUE
818CCDEPMODE
819AMDEPBACKSLASH
820AMDEP_FALSE
821AMDEP_TRUE
822am__quote
823am__include
824DEPDIR
825OBJEXT
826EXEEXT
827ac_ct_CC
828CPPFLAGS
829LDFLAGS
830CFLAGS
831CC
832am__untar
833am__tar
834AMTAR
835am__leading_dot
836SET_MAKE
837AWK
838mkdir_p
839MKDIR_P
840INSTALL_STRIP_PROGRAM
841STRIP
842install_sh
843MAKEINFO
844AUTOHEADER
845AUTOMAKE
846AUTOCONF
847ACLOCAL
848VERSION
849PACKAGE
850CYGPATH_W
851am__isrc
852INSTALL_DATA
853INSTALL_SCRIPT
854INSTALL_PROGRAM
855target_alias
856host_alias
857build_alias
858LIBS
859ECHO_T
860ECHO_N
861ECHO_C
862DEFS
863mandir
864localedir
865libdir
866psdir
867pdfdir
868dvidir
869htmldir
870infodir
871docdir
872oldincludedir
873includedir
874localstatedir
875sharedstatedir
876sysconfdir
877datadir
878datarootdir
879libexecdir
880sbindir
881bindir
882program_transform_name
883prefix
884exec_prefix
885PACKAGE_BUGREPORT
886PACKAGE_STRING
887PACKAGE_VERSION
888PACKAGE_TARNAME
889PACKAGE_NAME
890PATH_SEPARATOR
891SHELL'
892ac_subst_files=''
893ac_user_opts='
894enable_option_checking
895enable_dependency_tracking
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900with_gnu_ld
901enable_libtool_lock
902'
903 ac_precious_vars='build_alias
904host_alias
905target_alias
906CC
907CFLAGS
908LDFLAGS
909LIBS
910CPPFLAGS
911CPP'
912
913
914# Initialize some variables set by options.
915ac_init_help=
916ac_init_version=false
917ac_unrecognized_opts=
918ac_unrecognized_sep=
919# The variables have the same names as the options, with
920# dashes changed to underlines.
921cache_file=/dev/null
922exec_prefix=NONE
923no_create=
924no_recursion=
925prefix=NONE
926program_prefix=NONE
927program_suffix=NONE
928program_transform_name=s,x,x,
929silent=
930site=
931srcdir=
932verbose=
933x_includes=NONE
934x_libraries=NONE
935
936# Installation directory options.
937# These are left unexpanded so users can "make install exec_prefix=/foo"
938# and all the variables that are supposed to be based on exec_prefix
939# by default will actually change.
940# Use braces instead of parens because sh, perl, etc. also accept them.
941# (The list follows the same order as the GNU Coding Standards.)
942bindir='${exec_prefix}/bin'
943sbindir='${exec_prefix}/sbin'
944libexecdir='${exec_prefix}/libexec'
945datarootdir='${prefix}/share'
946datadir='${datarootdir}'
947sysconfdir='${prefix}/etc'
948sharedstatedir='${prefix}/com'
949localstatedir='${prefix}/var'
950includedir='${prefix}/include'
951oldincludedir='/usr/include'
952docdir='${datarootdir}/doc/${PACKAGE}'
953infodir='${datarootdir}/info'
954htmldir='${docdir}'
955dvidir='${docdir}'
956pdfdir='${docdir}'
957psdir='${docdir}'
958libdir='${exec_prefix}/lib'
959localedir='${datarootdir}/locale'
960mandir='${datarootdir}/man'
961
962ac_prev=
963ac_dashdash=
964for ac_option
965do
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
971 fi
972
973 case $ac_option in
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *) ac_optarg=yes ;;
976 esac
977
978 # Accept the important Cygnus configure options, so we can diagnose typos.
979
980 case $ac_dashdash$ac_option in
981 --)
982 ac_dashdash=yes ;;
983
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
988
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
993
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1000
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1003
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1008
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1015
1016 -disable-* | --disable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1042
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053"enable_$ac_useropt"
1054"*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1079
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1084
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1114
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1188
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
1207 sbindir=$ac_optarg ;;
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
1218 sharedstatedir=$ac_optarg ;;
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
1223 site=$ac_optarg ;;
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1247
1248 -with-* | --with-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1264
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1270 { (exit 1); exit 1; }; }
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275"with_$ac_useropt"
1276"*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1301Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1303 ;;
1304
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320 ;;
1321
1322 esac
1323done
1324
1325if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1329fi
1330
1331if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1335 { (exit 1); exit 1; }; } ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 esac
1338fi
1339
1340# Check all directory arguments for consistency.
1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1345do
1346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
1348 case $ac_val in
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1352 esac
1353 # Be sure to have absolute directory names.
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1359 { (exit 1); exit 1; }; }
1360done
1361
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1377 fi
1378fi
1379
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
1384
1385
1386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1390 { (exit 1); exit 1; }; }
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1393 { (exit 1); exit 1; }; }
1394
1395
1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405$as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
1430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1433 { (exit 1); exit 1; }; }
1434fi
1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
1437 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1438 { (exit 1); exit 1; }; }
1439 pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464\`configure' configures this package to adapt to many kinds of systems.
1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE. See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483
1484Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
1486 [$ac_default_prefix]
1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 [PREFIX]
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1517_ACEOF
1518
1519 cat <<\_ACEOF
1520
1521Program names:
1522 --program-prefix=PREFIX prepend PREFIX to installed program names
1523 --program-suffix=SUFFIX append SUFFIX to installed program names
1524 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525
1526System types:
1527 --build=BUILD configure for building on BUILD [guessed]
1528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533
1534 cat <<\_ACEOF
1535
1536Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --disable-dependency-tracking speeds up one-time build
1541 --enable-dependency-tracking do not reject slow dependency extractors
1542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-static[=PKGS] build static libraries [default=yes]
1544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547
1548Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-pic try to use only PIC/non-PIC objects [default=use
1552 both]
1553 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1554
1555Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CPP C preprocessor
1564
1565Use these variables to override the choices made by `configure' or to help
1566it to find libraries and programs with nonstandard names/locations.
1567
1568_ACEOF
1569ac_status=$?
1570fi
1571
1572if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1579
1580case "$ac_dir" in
1581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582*)
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590esac
1591ac_abs_top_builddir=$ac_pwd
1592ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593# for backward compatibility:
1594ac_top_builddir=$ac_top_build_prefix
1595
1596case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609esac
1610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1620 else
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 fi || ac_status=$?
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1624 done
1625fi
1626
1627test -n "$ac_init_help" && exit $ac_status
1628if $ac_init_version; then
1629 cat <<\_ACEOF
1630configure
1631generated by GNU Autoconf 2.63
1632
1633Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16342002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635This configure script is free software; the Free Software Foundation
1636gives unlimited permission to copy, distribute and modify it.
1637_ACEOF
1638 exit
1639fi
1640cat >config.log <<_ACEOF
1641This file contains any messages produced by compilers while
1642running configure, to aid debugging if configure makes a mistake.
1643
1644It was created by $as_me, which was
1645generated by GNU Autoconf 2.63. Invocation command line was
1646
1647 $ $0 $@
1648
1649_ACEOF
1650exec 5>>config.log
1651{
1652cat <<_ASUNAME
1653## --------- ##
1654## Platform. ##
1655## --------- ##
1656
1657hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662
1663/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1665
1666/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1667/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1668/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1670/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1671/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1672/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1673
1674_ASUNAME
1675
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 $as_echo "PATH: $as_dir"
1682done
1683IFS=$as_save_IFS
1684
1685} >&5
1686
1687cat >&5 <<_ACEOF
1688
1689
1690## ----------- ##
1691## Core tests. ##
1692## ----------- ##
1693
1694_ACEOF
1695
1696
1697# Keep a trace of the command line.
1698# Strip out --no-create and --no-recursion so they do not pile up.
1699# Strip out --silent because we don't want to record it for future runs.
1700# Also quote any args containing shell meta-characters.
1701# Make two passes to allow for proper duplicate-argument suppression.
1702ac_configure_args=
1703ac_configure_args0=
1704ac_configure_args1=
1705ac_must_keep_next=false
1706for ac_pass in 1 2
1707do
1708 for ac_arg
1709 do
1710 case $ac_arg in
1711 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1713 | -silent | --silent | --silen | --sile | --sil)
1714 continue ;;
1715 *\'*)
1716 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 esac
1718 case $ac_pass in
1719 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720 2)
1721 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1722 if test $ac_must_keep_next = true; then
1723 ac_must_keep_next=false # Got value, back to normal.
1724 else
1725 case $ac_arg in
1726 *=* | --config-cache | -C | -disable-* | --disable-* \
1727 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1728 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1729 | -with-* | --with-* | -without-* | --without-* | --x)
1730 case "$ac_configure_args0 " in
1731 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1732 esac
1733 ;;
1734 -* ) ac_must_keep_next=true ;;
1735 esac
1736 fi
1737 ac_configure_args="$ac_configure_args '$ac_arg'"
1738 ;;
1739 esac
1740 done
1741done
1742$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1743$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744
1745# When interrupted or exit'd, cleanup temporary files, and complete
1746# config.log. We remove comments because anyway the quotes in there
1747# would cause problems or look ugly.
1748# WARNING: Use '\'' to represent an apostrophe within the trap.
1749# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750trap 'exit_status=$?
1751 # Save into config.log some information that might help in debugging.
1752 {
1753 echo
1754
1755 cat <<\_ASBOX
1756## ---------------- ##
1757## Cache variables. ##
1758## ---------------- ##
1759_ASBOX
1760 echo
1761 # The following way of writing the cache mishandles newlines in values,
1762(
1763 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764 eval ac_val=\$$ac_var
1765 case $ac_val in #(
1766 *${as_nl}*)
1767 case $ac_var in #(
1768 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1769$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1770 esac
1771 case $ac_var in #(
1772 _ | IFS | as_nl) ;; #(
1773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1774 *) $as_unset $ac_var ;;
1775 esac ;;
1776 esac
1777 done
1778 (set) 2>&1 |
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1781 sed -n \
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 ;; #(
1785 *)
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787 ;;
1788 esac |
1789 sort
1790)
1791 echo
1792
1793 cat <<\_ASBOX
1794## ----------------- ##
1795## Output variables. ##
1796## ----------------- ##
1797_ASBOX
1798 echo
1799 for ac_var in $ac_subst_vars
1800 do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in
1803 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 esac
1805 $as_echo "$ac_var='\''$ac_val'\''"
1806 done | sort
1807 echo
1808
1809 if test -n "$ac_subst_files"; then
1810 cat <<\_ASBOX
1811## ------------------- ##
1812## File substitutions. ##
1813## ------------------- ##
1814_ASBOX
1815 echo
1816 for ac_var in $ac_subst_files
1817 do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in
1820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 esac
1822 $as_echo "$ac_var='\''$ac_val'\''"
1823 done | sort
1824 echo
1825 fi
1826
1827 if test -s confdefs.h; then
1828 cat <<\_ASBOX
1829## ----------- ##
1830## confdefs.h. ##
1831## ----------- ##
1832_ASBOX
1833 echo
1834 cat confdefs.h
1835 echo
1836 fi
1837 test "$ac_signal" != 0 &&
1838 $as_echo "$as_me: caught signal $ac_signal"
1839 $as_echo "$as_me: exit $exit_status"
1840 } >&5
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843 exit $exit_status
1844' 0
1845for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847done
1848ac_signal=0
1849
1850# confdefs.h avoids OS command line length limits that DEFS can exceed.
1851rm -f -r conftest* confdefs.h
1852
1853# Predefined preprocessor variables.
1854
1855cat >>confdefs.h <<_ACEOF
1856#define PACKAGE_NAME "$PACKAGE_NAME"
1857_ACEOF
1858
1859
1860cat >>confdefs.h <<_ACEOF
1861#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862_ACEOF
1863
1864
1865cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_VERSION "$PACKAGE_VERSION"
1867_ACEOF
1868
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_STRING "$PACKAGE_STRING"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877_ACEOF
1878
1879
1880# Let the site file select an alternate cache file if it wants to.
1881# Prefer an explicitly selected file to automatically selected ones.
1882ac_site_file1=NONE
1883ac_site_file2=NONE
1884if test -n "$CONFIG_SITE"; then
1885 ac_site_file1=$CONFIG_SITE
1886elif test "x$prefix" != xNONE; then
1887 ac_site_file1=$prefix/share/config.site
1888 ac_site_file2=$prefix/etc/config.site
1889else
1890 ac_site_file1=$ac_default_prefix/share/config.site
1891 ac_site_file2=$ac_default_prefix/etc/config.site
1892fi
1893for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1894do
1895 test "x$ac_site_file" = xNONE && continue
1896 if test -r "$ac_site_file"; then
1897 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1900 . "$ac_site_file"
1901 fi
1902done
1903
1904if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909$as_echo "$as_me: loading cache $cache_file" >&6;}
1910 case $cache_file in
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1913 esac
1914 fi
1915else
1916 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917$as_echo "$as_me: creating cache $cache_file" >&6;}
1918 >$cache_file
1919fi
1920
1921# Check that the precious variables saved in the cache have kept the same
1922# value.
1923ac_cache_corrupted=false
1924for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1930 set,)
1931 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1934 ,set)
1935 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,);;
1939 *)
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 # differences in whitespace do not lead to failure.
1942 ac_old_val_w=`echo x $ac_old_val`
1943 ac_new_val_w=`echo x $ac_new_val`
1944 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1945 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 ac_cache_corrupted=:
1948 else
1949 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1950$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1951 eval $ac_var=\$ac_old_val
1952 fi
1953 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1954$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1955 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1956$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1957 fi;;
1958 esac
1959 # Pass precious variables to config.status.
1960 if test "$ac_new_set" = set; then
1961 case $ac_new_val in
1962 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 *) ac_arg=$ac_var=$ac_new_val ;;
1964 esac
1965 case " $ac_configure_args " in
1966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1967 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 esac
1969 fi
1970done
1971if $ac_cache_corrupted; then
1972 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1974 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978 { (exit 1); exit 1; }; }
1979fi
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997ac_ext=c
1998ac_cpp='$CPP $CPPFLAGS'
1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002
2003
2004
2005am__api_version='1.10'
2006
2007ac_aux_dir=
2008for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2009 if test -f "$ac_dir/install-sh"; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/install-sh -c"
2012 break
2013 elif test -f "$ac_dir/install.sh"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/install.sh -c"
2016 break
2017 elif test -f "$ac_dir/shtool"; then
2018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/shtool install -c"
2020 break
2021 fi
2022done
2023if test -z "$ac_aux_dir"; then
2024 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2025$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2026 { (exit 1); exit 1; }; }
2027fi
2028
2029# These three variables are undocumented and unsupported,
2030# and are intended to be withdrawn in a future Autoconf release.
2031# They can cause serious problems if a builder's source tree is in a directory
2032# whose full name contains unusual characters.
2033ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2034ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2035ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2036
2037
2038# Find a good install program. We prefer a C program (faster),
2039# so one script is as good as another. But avoid the broken or
2040# incompatible versions:
2041# SysV /etc/install, /usr/sbin/install
2042# SunOS /usr/etc/install
2043# IRIX /sbin/install
2044# AIX /bin/install
2045# AmigaOS /C/install, which installs bootblocks on floppy discs
2046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2047# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2049# OS/2's system install, which has a completely different semantic
2050# ./install, which can be erroneously created by make from ./install.sh.
2051# Reject install programs that cannot install multiple files.
2052{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2053$as_echo_n "checking for a BSD-compatible install... " >&6; }
2054if test -z "$INSTALL"; then
2055if test "${ac_cv_path_install+set}" = set; then
2056 $as_echo_n "(cached) " >&6
2057else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 # Account for people who put trailing slashes in PATH elements.
2064case $as_dir/ in
2065 ./ | .// | /cC/* | \
2066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2067 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2068 /usr/ucb/* ) ;;
2069 *)
2070 # OSF1 and SCO ODT 3.0 have their own names for install.
2071 # Don't use installbsd from OSF since it installs stuff as root
2072 # by default.
2073 for ac_prog in ginstall scoinst install; do
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2076 if test $ac_prog = install &&
2077 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2078 # AIX install. It has an incompatible calling convention.
2079 :
2080 elif test $ac_prog = install &&
2081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082 # program-specific install script used by HP pwplus--don't use.
2083 :
2084 else
2085 rm -rf conftest.one conftest.two conftest.dir
2086 echo one > conftest.one
2087 echo two > conftest.two
2088 mkdir conftest.dir
2089 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2090 test -s conftest.one && test -s conftest.two &&
2091 test -s conftest.dir/conftest.one &&
2092 test -s conftest.dir/conftest.two
2093 then
2094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2095 break 3
2096 fi
2097 fi
2098 fi
2099 done
2100 done
2101 ;;
2102esac
2103
2104done
2105IFS=$as_save_IFS
2106
2107rm -rf conftest.one conftest.two conftest.dir
2108
2109fi
2110 if test "${ac_cv_path_install+set}" = set; then
2111 INSTALL=$ac_cv_path_install
2112 else
2113 # As a last resort, use the slow shell script. Don't cache a
2114 # value for INSTALL within a source directory, because that will
2115 # break other packages using the cache if that directory is
2116 # removed, or if the value is a relative name.
2117 INSTALL=$ac_install_sh
2118 fi
2119fi
2120{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2121$as_echo "$INSTALL" >&6; }
2122
2123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2124# It thinks the first close brace ends the variable substitution.
2125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2126
2127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2128
2129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2130
2131{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2132$as_echo_n "checking whether build environment is sane... " >&6; }
2133# Just in case
2134sleep 1
2135echo timestamp > conftest.file
2136# Do `set' in a subshell so we don't clobber the current shell's
2137# arguments. Must try -L first in case configure is actually a
2138# symlink; some systems play weird games with the mod time of symlinks
2139# (eg FreeBSD returns the mod time of the symlink's containing
2140# directory).
2141if (
2142 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2143 if test "$*" = "X"; then
2144 # -L didn't work.
2145 set X `ls -t $srcdir/configure conftest.file`
2146 fi
2147 rm -f conftest.file
2148 if test "$*" != "X $srcdir/configure conftest.file" \
2149 && test "$*" != "X conftest.file $srcdir/configure"; then
2150
2151 # If neither matched, then we have a broken ls. This can happen
2152 # if, for instance, CONFIG_SHELL is bash and it inherits a
2153 # broken ls alias from the environment. This has actually
2154 # happened. Such a system could not be considered "sane".
2155 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2156alias in your environment" >&5
2157$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2158alias in your environment" >&2;}
2159 { (exit 1); exit 1; }; }
2160 fi
2161
2162 test "$2" = conftest.file
2163 )
2164then
2165 # Ok.
2166 :
2167else
2168 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2169Check your system clock" >&5
2170$as_echo "$as_me: error: newly created file is older than distributed files!
2171Check your system clock" >&2;}
2172 { (exit 1); exit 1; }; }
2173fi
2174{ $as_echo "$as_me:$LINENO: result: yes" >&5
2175$as_echo "yes" >&6; }
2176test "$program_prefix" != NONE &&
2177 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2178# Use a double $ so make ignores it.
2179test "$program_suffix" != NONE &&
2180 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2181# Double any \ or $.
2182# By default was `s,x,x', remove it if useless.
2183ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2184program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2185
2186# expand $ac_aux_dir to an absolute path
2187am_aux_dir=`cd $ac_aux_dir && pwd`
2188
2189test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2190# Use eval to expand $SHELL
2191if eval "$MISSING --run true"; then
2192 am_missing_run="$MISSING --run "
2193else
2194 am_missing_run=
2195 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2196$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2197fi
2198
2199{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2200$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2201if test -z "$MKDIR_P"; then
2202 if test "${ac_cv_path_mkdir+set}" = set; then
2203 $as_echo_n "(cached) " >&6
2204else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2207do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_prog in mkdir gmkdir; do
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2213 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2214 'mkdir (GNU coreutils) '* | \
2215 'mkdir (coreutils) '* | \
2216 'mkdir (fileutils) '4.1*)
2217 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2218 break 3;;
2219 esac
2220 done
2221 done
2222done
2223IFS=$as_save_IFS
2224
2225fi
2226
2227 if test "${ac_cv_path_mkdir+set}" = set; then
2228 MKDIR_P="$ac_cv_path_mkdir -p"
2229 else
2230 # As a last resort, use the slow shell script. Don't cache a
2231 # value for MKDIR_P within a source directory, because that will
2232 # break other packages using the cache if that directory is
2233 # removed, or if the value is a relative name.
2234 test -d ./--version && rmdir ./--version
2235 MKDIR_P="$ac_install_sh -d"
2236 fi
2237fi
2238{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2239$as_echo "$MKDIR_P" >&6; }
2240
2241mkdir_p="$MKDIR_P"
2242case $mkdir_p in
2243 [\\/$]* | ?:[\\/]*) ;;
2244 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2245esac
2246
2247for ac_prog in gawk mawk nawk awk
2248do
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250set dummy $ac_prog; ac_word=$2
2251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2252$as_echo_n "checking for $ac_word... " >&6; }
2253if test "${ac_cv_prog_AWK+set}" = set; then
2254 $as_echo_n "(cached) " >&6
2255else
2256 if test -n "$AWK"; then
2257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2258else
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_prog_AWK="$ac_prog"
2267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2269 fi
2270done
2271done
2272IFS=$as_save_IFS
2273
2274fi
2275fi
2276AWK=$ac_cv_prog_AWK
2277if test -n "$AWK"; then
2278 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2279$as_echo "$AWK" >&6; }
2280else
2281 { $as_echo "$as_me:$LINENO: result: no" >&5
2282$as_echo "no" >&6; }
2283fi
2284
2285
2286 test -n "$AWK" && break
2287done
2288
2289{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2290$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2291set x ${MAKE-make}
2292ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2293if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2294 $as_echo_n "(cached) " >&6
2295else
2296 cat >conftest.make <<\_ACEOF
2297SHELL = /bin/sh
2298all:
2299 @echo '@@@%%%=$(MAKE)=@@@%%%'
2300_ACEOF
2301# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2302case `${MAKE-make} -f conftest.make 2>/dev/null` in
2303 *@@@%%%=?*=@@@%%%*)
2304 eval ac_cv_prog_make_${ac_make}_set=yes;;
2305 *)
2306 eval ac_cv_prog_make_${ac_make}_set=no;;
2307esac
2308rm -f conftest.make
2309fi
2310if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2311 { $as_echo "$as_me:$LINENO: result: yes" >&5
2312$as_echo "yes" >&6; }
2313 SET_MAKE=
2314else
2315 { $as_echo "$as_me:$LINENO: result: no" >&5
2316$as_echo "no" >&6; }
2317 SET_MAKE="MAKE=${MAKE-make}"
2318fi
2319
2320rm -rf .tst 2>/dev/null
2321mkdir .tst 2>/dev/null
2322if test -d .tst; then
2323 am__leading_dot=.
2324else
2325 am__leading_dot=_
2326fi
2327rmdir .tst 2>/dev/null
2328
2329if test "`cd $srcdir && pwd`" != "`pwd`"; then
2330 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2331 # is not polluted with repeated "-I."
2332 am__isrc=' -I$(srcdir)'
2333 # test to see if srcdir already configured
2334 if test -f $srcdir/config.status; then
2335 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2336$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2339fi
2340
2341# test whether we have cygpath
2342if test -z "$CYGPATH_W"; then
2343 if (cygpath --version) >/dev/null 2>/dev/null; then
2344 CYGPATH_W='cygpath -w'
2345 else
2346 CYGPATH_W=echo
2347 fi
2348fi
2349
2350
2351# Define the identity of the package.
2352 PACKAGE=cddlib
2353 VERSION=0.94
2354
2355
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE "$PACKAGE"
2358_ACEOF
2359
2360
2361cat >>confdefs.h <<_ACEOF
2362#define VERSION "$VERSION"
2363_ACEOF
2364
2365# Some tools Automake needs.
2366
2367ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2368
2369
2370AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2371
2372
2373AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2374
2375
2376AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2377
2378
2379MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2380
2381install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2382
2383# Installed binaries are usually stripped using `strip' when the user
2384# run `make install-strip'. However `strip' might not be the right
2385# tool to use in cross-compilation environments, therefore Automake
2386# will honor the `STRIP' environment variable to overrule this program.
2387if test "$cross_compiling" != no; then
2388 if test -n "$ac_tool_prefix"; then
2389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2390set dummy ${ac_tool_prefix}strip; ac_word=$2
2391{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2392$as_echo_n "checking for $ac_word... " >&6; }
2393if test "${ac_cv_prog_STRIP+set}" = set; then
2394 $as_echo_n "(cached) " >&6
2395else
2396 if test -n "$STRIP"; then
2397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2409 fi
2410done
2411done
2412IFS=$as_save_IFS
2413
2414fi
2415fi
2416STRIP=$ac_cv_prog_STRIP
2417if test -n "$STRIP"; then
2418 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2419$as_echo "$STRIP" >&6; }
2420else
2421 { $as_echo "$as_me:$LINENO: result: no" >&5
2422$as_echo "no" >&6; }
2423fi
2424
2425
2426fi
2427if test -z "$ac_cv_prog_STRIP"; then
2428 ac_ct_STRIP=$STRIP
2429 # Extract the first word of "strip", so it can be a program name with args.
2430set dummy strip; ac_word=$2
2431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2432$as_echo_n "checking for $ac_word... " >&6; }
2433if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2434 $as_echo_n "(cached) " >&6
2435else
2436 if test -n "$ac_ct_STRIP"; then
2437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_ac_ct_STRIP="strip"
2447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450done
2451done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2457if test -n "$ac_ct_STRIP"; then
2458 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2459$as_echo "$ac_ct_STRIP" >&6; }
2460else
2461 { $as_echo "$as_me:$LINENO: result: no" >&5
2462$as_echo "no" >&6; }
2463fi
2464
2465 if test "x$ac_ct_STRIP" = x; then
2466 STRIP=":"
2467 else
2468 case $cross_compiling:$ac_tool_warned in
2469yes:)
2470{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2472ac_tool_warned=yes ;;
2473esac
2474 STRIP=$ac_ct_STRIP
2475 fi
2476else
2477 STRIP="$ac_cv_prog_STRIP"
2478fi
2479
2480fi
2481INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2482
2483# We need awk for the "check" target. The system "awk" is bad on
2484# some platforms.
2485# Always define AMTAR for backward compatibility.
2486
2487AMTAR=${AMTAR-"${am_missing_run}tar"}
2488
2489am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2490
2491
2492
2493
2494
2495
2496ac_ext=c
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}gcc; ac_word=$2
2504{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2505$as_echo_n "checking for $ac_word... " >&6; }
2506if test "${ac_cv_prog_CC+set}" = set; then
2507 $as_echo_n "(cached) " >&6
2508else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
2531 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2532$as_echo "$CC" >&6; }
2533else
2534 { $as_echo "$as_me:$LINENO: result: no" >&5
2535$as_echo "no" >&6; }
2536fi
2537
2538
2539fi
2540if test -z "$ac_cv_prog_CC"; then
2541 ac_ct_CC=$CC
2542 # Extract the first word of "gcc", so it can be a program name with args.
2543set dummy gcc; ac_word=$2
2544{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2545$as_echo_n "checking for $ac_word... " >&6; }
2546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547 $as_echo_n "(cached) " >&6
2548else
2549 if test -n "$ac_ct_CC"; then
2550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_ac_ct_CC="gcc"
2560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564done
2565IFS=$as_save_IFS
2566
2567fi
2568fi
2569ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570if test -n "$ac_ct_CC"; then
2571 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572$as_echo "$ac_ct_CC" >&6; }
2573else
2574 { $as_echo "$as_me:$LINENO: result: no" >&5
2575$as_echo "no" >&6; }
2576fi
2577
2578 if test "x$ac_ct_CC" = x; then
2579 CC=""
2580 else
2581 case $cross_compiling:$ac_tool_warned in
2582yes:)
2583{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2585ac_tool_warned=yes ;;
2586esac
2587 CC=$ac_ct_CC
2588 fi
2589else
2590 CC="$ac_cv_prog_CC"
2591fi
2592
2593if test -z "$CC"; then
2594 if test -n "$ac_tool_prefix"; then
2595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2596set dummy ${ac_tool_prefix}cc; ac_word=$2
2597{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
2599if test "${ac_cv_prog_CC+set}" = set; then
2600 $as_echo_n "(cached) " >&6
2601else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_CC="${ac_tool_prefix}cc"
2613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2615 fi
2616done
2617done
2618IFS=$as_save_IFS
2619
2620fi
2621fi
2622CC=$ac_cv_prog_CC
2623if test -n "$CC"; then
2624 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2625$as_echo "$CC" >&6; }
2626else
2627 { $as_echo "$as_me:$LINENO: result: no" >&5
2628$as_echo "no" >&6; }
2629fi
2630
2631
2632 fi
2633fi
2634if test -z "$CC"; then
2635 # Extract the first word of "cc", so it can be a program name with args.
2636set dummy cc; ac_word=$2
2637{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
2639if test "${ac_cv_prog_CC+set}" = set; then
2640 $as_echo_n "(cached) " >&6
2641else
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2644else
2645 ac_prog_rejected=no
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2654 ac_prog_rejected=yes
2655 continue
2656 fi
2657 ac_cv_prog_CC="cc"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661done
2662done
2663IFS=$as_save_IFS
2664
2665if test $ac_prog_rejected = yes; then
2666 # We found a bogon in the path, so make sure we never use it.
2667 set dummy $ac_cv_prog_CC
2668 shift
2669 if test $# != 0; then
2670 # We chose a different compiler from the bogus one.
2671 # However, it has the same basename, so the bogon will be chosen
2672 # first if we set CC to just the basename; use the full file name.
2673 shift
2674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2675 fi
2676fi
2677fi
2678fi
2679CC=$ac_cv_prog_CC
2680if test -n "$CC"; then
2681 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2682$as_echo "$CC" >&6; }
2683else
2684 { $as_echo "$as_me:$LINENO: result: no" >&5
2685$as_echo "no" >&6; }
2686fi
2687
2688
2689fi
2690if test -z "$CC"; then
2691 if test -n "$ac_tool_prefix"; then
2692 for ac_prog in cl.exe
2693 do
2694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697$as_echo_n "checking for $ac_word... " >&6; }
2698if test "${ac_cv_prog_CC+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2700else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703else
2704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705for as_dir in $PATH
2706do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715done
2716done
2717IFS=$as_save_IFS
2718
2719fi
2720fi
2721CC=$ac_cv_prog_CC
2722if test -n "$CC"; then
2723 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2724$as_echo "$CC" >&6; }
2725else
2726 { $as_echo "$as_me:$LINENO: result: no" >&5
2727$as_echo "no" >&6; }
2728fi
2729
2730
2731 test -n "$CC" && break
2732 done
2733fi
2734if test -z "$CC"; then
2735 ac_ct_CC=$CC
2736 for ac_prog in cl.exe
2737do
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739set dummy $ac_prog; ac_word=$2
2740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 $as_echo_n "(cached) " >&6
2744else
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_ac_ct_CC="$ac_prog"
2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765ac_ct_CC=$ac_cv_prog_ac_ct_CC
2766if test -n "$ac_ct_CC"; then
2767 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2768$as_echo "$ac_ct_CC" >&6; }
2769else
2770 { $as_echo "$as_me:$LINENO: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775 test -n "$ac_ct_CC" && break
2776done
2777
2778 if test "x$ac_ct_CC" = x; then
2779 CC=""
2780 else
2781 case $cross_compiling:$ac_tool_warned in
2782yes:)
2783{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2785ac_tool_warned=yes ;;
2786esac
2787 CC=$ac_ct_CC
2788 fi
2789fi
2790
2791fi
2792
2793
2794test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2797See \`config.log' for more details." >&5
2798$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2799See \`config.log' for more details." >&2;}
2800 { (exit 1); exit 1; }; }; }
2801
2802# Provide some information about the compiler.
2803$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2804set X $ac_compile
2805ac_compiler=$2
2806{ (ac_try="$ac_compiler --version >&5"
2807case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2812$as_echo "$ac_try_echo") >&5
2813 (eval "$ac_compiler --version >&5") 2>&5
2814 ac_status=$?
2815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
2817{ (ac_try="$ac_compiler -v >&5"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2823$as_echo "$ac_try_echo") >&5
2824 (eval "$ac_compiler -v >&5") 2>&5
2825 ac_status=$?
2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }
2828{ (ac_try="$ac_compiler -V >&5"
2829case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832esac
2833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2834$as_echo "$ac_try_echo") >&5
2835 (eval "$ac_compiler -V >&5") 2>&5
2836 ac_status=$?
2837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839
2840cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h. */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h. */
2846
2847int
2848main ()
2849{
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855ac_clean_files_save=$ac_clean_files
2856ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2857# Try to create an executable without -o first, disregard a.out.
2858# It will help us diagnose broken compilers, and finding out an intuition
2859# of exeext.
2860{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2861$as_echo_n "checking for C compiler default output file name... " >&6; }
2862ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2863
2864# The possible output files:
2865ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2866
2867ac_rmfiles=
2868for ac_file in $ac_files
2869do
2870 case $ac_file in
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2873 esac
2874done
2875rm -f $ac_rmfiles
2876
2877if { (ac_try="$ac_link_default"
2878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883$as_echo "$ac_try_echo") >&5
2884 (eval "$ac_link_default") 2>&5
2885 ac_status=$?
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890# in a Makefile. We should not override ac_cv_exeext if it was cached,
2891# so that the user can short-circuit this test for compilers unknown to
2892# Autoconf.
2893for ac_file in $ac_files ''
2894do
2895 test -f "$ac_file" || continue
2896 case $ac_file in
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2898 ;;
2899 [ab].out )
2900 # We found the default executable, but exeext='' is most
2901 # certainly right.
2902 break;;
2903 *.* )
2904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2905 then :; else
2906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907 fi
2908 # We set ac_cv_exeext here because the later test for it is not
2909 # safe: cross compilers may not add the suffix if given an `-o'
2910 # argument, so we may need to know it at that point already.
2911 # Even if this section looks crufty: it has the advantage of
2912 # actually working.
2913 break;;
2914 * )
2915 break;;
2916 esac
2917done
2918test "$ac_cv_exeext" = no && ac_cv_exeext=
2919
2920else
2921 ac_file=''
2922fi
2923
2924{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2925$as_echo "$ac_file" >&6; }
2926if test -z "$ac_file"; then
2927 $as_echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2933See \`config.log' for more details." >&5
2934$as_echo "$as_me: error: C compiler cannot create executables
2935See \`config.log' for more details." >&2;}
2936 { (exit 77); exit 77; }; }; }
2937fi
2938
2939ac_exeext=$ac_cv_exeext
2940
2941# Check that the compiler produces executables we can run. If not, either
2942# the compiler is broken, or we cross compile.
2943{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2944$as_echo_n "checking whether the C compiler works... " >&6; }
2945# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2946# If not cross compiling, check that we can run a simple program.
2947if test "$cross_compiling" != yes; then
2948 if { ac_try='./$ac_file'
2949 { (case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954$as_echo "$ac_try_echo") >&5
2955 (eval "$ac_try") 2>&5
2956 ac_status=$?
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 cross_compiling=no
2960 else
2961 if test "$cross_compiling" = maybe; then
2962 cross_compiling=yes
2963 else
2964 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2967If you meant to cross compile, use \`--host'.
2968See \`config.log' for more details." >&5
2969$as_echo "$as_me: error: cannot run C compiled programs.
2970If you meant to cross compile, use \`--host'.
2971See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }; }
2973 fi
2974 fi
2975fi
2976{ $as_echo "$as_me:$LINENO: result: yes" >&5
2977$as_echo "yes" >&6; }
2978
2979rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2980ac_clean_files=$ac_clean_files_save
2981# Check that the compiler produces executables we can run. If not, either
2982# the compiler is broken, or we cross compile.
2983{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2984$as_echo_n "checking whether we are cross compiling... " >&6; }
2985{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2986$as_echo "$cross_compiling" >&6; }
2987
2988{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2989$as_echo_n "checking for suffix of executables... " >&6; }
2990if { (ac_try="$ac_link"
2991case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2996$as_echo "$ac_try_echo") >&5
2997 (eval "$ac_link") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; then
3001 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3002# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3003# work properly (i.e., refer to `conftest.exe'), while it won't with
3004# `rm'.
3005for ac_file in conftest.exe conftest conftest.*; do
3006 test -f "$ac_file" || continue
3007 case $ac_file in
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3009 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010 break;;
3011 * ) break;;
3012 esac
3013done
3014else
3015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3018See \`config.log' for more details." >&5
3019$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3020See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }; }
3022fi
3023
3024rm -f conftest$ac_cv_exeext
3025{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3026$as_echo "$ac_cv_exeext" >&6; }
3027
3028rm -f conftest.$ac_ext
3029EXEEXT=$ac_cv_exeext
3030ac_exeext=$EXEEXT
3031{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3032$as_echo_n "checking for suffix of object files... " >&6; }
3033if test "${ac_cv_objext+set}" = set; then
3034 $as_echo_n "(cached) " >&6
3035else
3036 cat >conftest.$ac_ext <<_ACEOF
3037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
3042
3043int
3044main ()
3045{
3046
3047 ;
3048 return 0;
3049}
3050_ACEOF
3051rm -f conftest.o conftest.obj
3052if { (ac_try="$ac_compile"
3053case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058$as_echo "$ac_try_echo") >&5
3059 (eval "$ac_compile") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 for ac_file in conftest.o conftest.obj conftest.*; do
3064 test -f "$ac_file" || continue;
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3068 break;;
3069 esac
3070done
3071else
3072 $as_echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3078See \`config.log' for more details." >&5
3079$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3080See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }; }
3082fi
3083
3084rm -f conftest.$ac_cv_objext conftest.$ac_ext
3085fi
3086{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3087$as_echo "$ac_cv_objext" >&6; }
3088OBJEXT=$ac_cv_objext
3089ac_objext=$OBJEXT
3090{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3091$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3092if test "${ac_cv_c_compiler_gnu+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3094else
3095 cat >conftest.$ac_ext <<_ACEOF
3096/* confdefs.h. */
3097_ACEOF
3098cat confdefs.h >>conftest.$ac_ext
3099cat >>conftest.$ac_ext <<_ACEOF
3100/* end confdefs.h. */
3101
3102int
3103main ()
3104{
3105#ifndef __GNUC__
3106 choke me
3107#endif
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3120$as_echo "$ac_try_echo") >&5
3121 (eval "$ac_compile") 2>conftest.er1
3122 ac_status=$?
3123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } && {
3128 test -z "$ac_c_werror_flag" ||
3129 test ! -s conftest.err
3130 } && test -s conftest.$ac_objext; then
3131 ac_compiler_gnu=yes
3132else
3133 $as_echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136 ac_compiler_gnu=no
3137fi
3138
3139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140ac_cv_c_compiler_gnu=$ac_compiler_gnu
3141
3142fi
3143{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3144$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3145if test $ac_compiler_gnu = yes; then
3146 GCC=yes
3147else
3148 GCC=
3149fi
3150ac_test_CFLAGS=${CFLAGS+set}
3151ac_save_CFLAGS=$CFLAGS
3152{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3153$as_echo_n "checking whether $CC accepts -g... " >&6; }
3154if test "${ac_cv_prog_cc_g+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3156else
3157 ac_save_c_werror_flag=$ac_c_werror_flag
3158 ac_c_werror_flag=yes
3159 ac_cv_prog_cc_g=no
3160 CFLAGS="-g"
3161 cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext
3177if { (ac_try="$ac_compile"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3183$as_echo "$ac_try_echo") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3194 ac_cv_prog_cc_g=yes
3195else
3196 $as_echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 CFLAGS=""
3200 cat >conftest.$ac_ext <<_ACEOF
3201/* confdefs.h. */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h. */
3206
3207int
3208main ()
3209{
3210
3211 ;
3212 return 0;
3213}
3214_ACEOF
3215rm -f conftest.$ac_objext
3216if { (ac_try="$ac_compile"
3217case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3222$as_echo "$ac_try_echo") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 :
3234else
3235 $as_echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 ac_c_werror_flag=$ac_save_c_werror_flag
3239 CFLAGS="-g"
3240 cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (ac_try="$ac_compile"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
3261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262$as_echo "$ac_try_echo") >&5
3263 (eval "$ac_compile") 2>conftest.er1
3264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
3273 ac_cv_prog_cc_g=yes
3274else
3275 $as_echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278
3279fi
3280
3281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282fi
3283
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285fi
3286
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3289fi
3290{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3291$as_echo "$ac_cv_prog_cc_g" >&6; }
3292if test "$ac_test_CFLAGS" = set; then
3293 CFLAGS=$ac_save_CFLAGS
3294elif test $ac_cv_prog_cc_g = yes; then
3295 if test "$GCC" = yes; then
3296 CFLAGS="-g -O2"
3297 else
3298 CFLAGS="-g"
3299 fi
3300else
3301 if test "$GCC" = yes; then
3302 CFLAGS="-O2"
3303 else
3304 CFLAGS=
3305 fi
3306fi
3307{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3308$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3309if test "${ac_cv_prog_cc_c89+set}" = set; then
3310 $as_echo_n "(cached) " >&6
3311else
3312 ac_cv_prog_cc_c89=no
3313ac_save_CC=$CC
3314cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
3320#include <stdarg.h>
3321#include <stdio.h>
3322#include <sys/types.h>
3323#include <sys/stat.h>
3324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3325struct buf { int x; };
3326FILE * (*rcsopen) (struct buf *, struct stat *, int);
3327static char *e (p, i)
3328 char **p;
3329 int i;
3330{
3331 return p[i];
3332}
3333static char *f (char * (*g) (char **, int), char **p, ...)
3334{
3335 char *s;
3336 va_list v;
3337 va_start (v,p);
3338 s = g (p, va_arg (v,int));
3339 va_end (v);
3340 return s;
3341}
3342
3343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3344 function prototypes and stuff, but not '\xHH' hex character constants.
3345 These don't provoke an error unfortunately, instead are silently treated
3346 as 'x'. The following induces an error, until -std is added to get
3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3348 array size at least. It's necessary to write '\x00'==0 to get something
3349 that's true only with -std. */
3350int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351
3352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3353 inside strings and character constants. */
3354#define FOO(x) 'x'
3355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356
3357int test (int i, double x);
3358struct s1 {int (*f) (int a);};
3359struct s2 {int (*f) (double a);};
3360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3361int argc;
3362char **argv;
3363int
3364main ()
3365{
3366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3373do
3374 CC="$ac_save_CC $ac_arg"
3375 rm -f conftest.$ac_objext
3376if { (ac_try="$ac_compile"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382$as_echo "$ac_try_echo") >&5
3383 (eval "$ac_compile") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest.$ac_objext; then
3393 ac_cv_prog_cc_c89=$ac_arg
3394else
3395 $as_echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398
3399fi
3400
3401rm -f core conftest.err conftest.$ac_objext
3402 test "x$ac_cv_prog_cc_c89" != "xno" && break
3403done
3404rm -f conftest.$ac_ext
3405CC=$ac_save_CC
3406
3407fi
3408# AC_CACHE_VAL
3409case "x$ac_cv_prog_cc_c89" in
3410 x)
3411 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3412$as_echo "none needed" >&6; } ;;
3413 xno)
3414 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3415$as_echo "unsupported" >&6; } ;;
3416 *)
3417 CC="$CC $ac_cv_prog_cc_c89"
3418 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3419$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3420esac
3421
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428DEPDIR="${am__leading_dot}deps"
3429
3430ac_config_commands="$ac_config_commands depfiles"
3431
3432
3433am_make=${MAKE-make}
3434cat > confinc << 'END'
3435am__doit:
3436 @echo done
3437.PHONY: am__doit
3438END
3439# If we don't find an include directive, just comment out the code.
3440{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3441$as_echo_n "checking for style of include used by $am_make... " >&6; }
3442am__include="#"
3443am__quote=
3444_am_result=none
3445# First try GNU make style include.
3446echo "include confinc" > confmf
3447# We grep out `Entering directory' and `Leaving directory'
3448# messages which can occur if `w' ends up in MAKEFLAGS.
3449# In particular we don't look at `^make:' because GNU make might
3450# be invoked under some other name (usually "gmake"), in which
3451# case it prints its new name instead of `make'.
3452if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3453 am__include=include
3454 am__quote=
3455 _am_result=GNU
3456fi
3457# Now try BSD make style include.
3458if test "$am__include" = "#"; then
3459 echo '.include "confinc"' > confmf
3460 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3461 am__include=.include
3462 am__quote="\""
3463 _am_result=BSD
3464 fi
3465fi
3466
3467
3468{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3469$as_echo "$_am_result" >&6; }
3470rm -f confinc confmf
3471
3472# Check whether --enable-dependency-tracking was given.
3473if test "${enable_dependency_tracking+set}" = set; then
3474 enableval=$enable_dependency_tracking;
3475fi
3476
3477if test "x$enable_dependency_tracking" != xno; then
3478 am_depcomp="$ac_aux_dir/depcomp"
3479 AMDEPBACKSLASH='\'
3480fi
3481 if test "x$enable_dependency_tracking" != xno; then
3482 AMDEP_TRUE=
3483 AMDEP_FALSE='#'
3484else
3485 AMDEP_TRUE='#'
3486 AMDEP_FALSE=
3487fi
3488
3489
3490
3491depcc="$CC" am_compiler_list=
3492
3493{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3494$as_echo_n "checking dependency style of $depcc... " >&6; }
3495if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3496 $as_echo_n "(cached) " >&6
3497else
3498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3499 # We make a subdir and do the tests there. Otherwise we can end up
3500 # making bogus files that we don't know about and never remove. For
3501 # instance it was reported that on HP-UX the gcc test will end up
3502 # making a dummy file named `D' -- because `-MD' means `put the output
3503 # in D'.
3504 mkdir conftest.dir
3505 # Copy depcomp to subdir because otherwise we won't find it if we're
3506 # using a relative directory.
3507 cp "$am_depcomp" conftest.dir
3508 cd conftest.dir
3509 # We will build objects and dependencies in a subdirectory because
3510 # it helps to detect inapplicable dependency modes. For instance
3511 # both Tru64's cc and ICC support -MD to output dependencies as a
3512 # side effect of compilation, but ICC will put the dependencies in
3513 # the current directory while Tru64 will put them in the object
3514 # directory.
3515 mkdir sub
3516
3517 am_cv_CC_dependencies_compiler_type=none
3518 if test "$am_compiler_list" = ""; then
3519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3520 fi
3521 for depmode in $am_compiler_list; do
3522 # Setup a source with many dependencies, because some compilers
3523 # like to wrap large dependency lists on column 80 (with \), and
3524 # we should not choose a depcomp mode which is confused by this.
3525 #
3526 # We need to recreate these files for each test, as the compiler may
3527 # overwrite some of them when testing with obscure command lines.
3528 # This happens at least with the AIX C compiler.
3529 : > sub/conftest.c
3530 for i in 1 2 3 4 5 6; do
3531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3533 # Solaris 8's {/usr,}/bin/sh.
3534 touch sub/conftst$i.h
3535 done
3536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3537
3538 case $depmode in
3539 nosideeffect)
3540 # after this tag, mechanisms are not by side-effect, so they'll
3541 # only be used when explicitly requested
3542 if test "x$enable_dependency_tracking" = xyes; then
3543 continue
3544 else
3545 break
3546 fi
3547 ;;
3548 none) break ;;
3549 esac
3550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3551 # mode. It turns out that the SunPro C++ compiler does not properly
3552 # handle `-M -o', and we need to detect this.
3553 if depmode=$depmode \
3554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3557 >/dev/null 2>conftest.err &&
3558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3560 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3562 # icc doesn't choke on unknown options, it will just issue warnings
3563 # or remarks (even with -Werror). So we grep stderr for any message
3564 # that says an option was ignored or not supported.
3565 # When given -MP, icc 7.0 and 7.1 complain thusly:
3566 # icc: Command line warning: ignoring option '-M'; no argument required
3567 # The diagnosis changed in icc 8.0:
3568 # icc: Command line remark: option '-MP' not supported
3569 if (grep 'ignoring option' conftest.err ||
3570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3571 am_cv_CC_dependencies_compiler_type=$depmode
3572 break
3573 fi
3574 fi
3575 done
3576
3577 cd ..
3578 rm -rf conftest.dir
3579else
3580 am_cv_CC_dependencies_compiler_type=none
3581fi
3582
3583fi
3584{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3585$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3586CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3587
3588 if
3589 test "x$enable_dependency_tracking" != xno \
3590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3591 am__fastdepCC_TRUE=
3592 am__fastdepCC_FALSE='#'
3593else
3594 am__fastdepCC_TRUE='#'
3595 am__fastdepCC_FALSE=
3596fi
3597
3598
3599# Find a good install program. We prefer a C program (faster),
3600# so one script is as good as another. But avoid the broken or
3601# incompatible versions:
3602# SysV /etc/install, /usr/sbin/install
3603# SunOS /usr/etc/install
3604# IRIX /sbin/install
3605# AIX /bin/install
3606# AmigaOS /C/install, which installs bootblocks on floppy discs
3607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3610# OS/2's system install, which has a completely different semantic
3611# ./install, which can be erroneously created by make from ./install.sh.
3612# Reject install programs that cannot install multiple files.
3613{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3614$as_echo_n "checking for a BSD-compatible install... " >&6; }
3615if test -z "$INSTALL"; then
3616if test "${ac_cv_path_install+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3618else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620for as_dir in $PATH
3621do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 # Account for people who put trailing slashes in PATH elements.
3625case $as_dir/ in
3626 ./ | .// | /cC/* | \
3627 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3628 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3629 /usr/ucb/* ) ;;
3630 *)
3631 # OSF1 and SCO ODT 3.0 have their own names for install.
3632 # Don't use installbsd from OSF since it installs stuff as root
3633 # by default.
3634 for ac_prog in ginstall scoinst install; do
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3637 if test $ac_prog = install &&
3638 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3639 # AIX install. It has an incompatible calling convention.
3640 :
3641 elif test $ac_prog = install &&
3642 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3643 # program-specific install script used by HP pwplus--don't use.
3644 :
3645 else
3646 rm -rf conftest.one conftest.two conftest.dir
3647 echo one > conftest.one
3648 echo two > conftest.two
3649 mkdir conftest.dir
3650 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3651 test -s conftest.one && test -s conftest.two &&
3652 test -s conftest.dir/conftest.one &&
3653 test -s conftest.dir/conftest.two
3654 then
3655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3656 break 3
3657 fi
3658 fi
3659 fi
3660 done
3661 done
3662 ;;
3663esac
3664
3665done
3666IFS=$as_save_IFS
3667
3668rm -rf conftest.one conftest.two conftest.dir
3669
3670fi
3671 if test "${ac_cv_path_install+set}" = set; then
3672 INSTALL=$ac_cv_path_install
3673 else
3674 # As a last resort, use the slow shell script. Don't cache a
3675 # value for INSTALL within a source directory, because that will
3676 # break other packages using the cache if that directory is
3677 # removed, or if the value is a relative name.
3678 INSTALL=$ac_install_sh
3679 fi
3680fi
3681{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3682$as_echo "$INSTALL" >&6; }
3683
3684# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3685# It thinks the first close brace ends the variable substitution.
3686test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3687
3688test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3689
3690test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3691
3692case `pwd` in
3693 *\ * | *\ *)
3694 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3695$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3696esac
3697
3698
3699
3700macro_version='2.2.6b'
3701macro_revision='1.3017'
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715ltmain="$ac_aux_dir/ltmain.sh"
3716
3717# Make sure we can run config.sub.
3718$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3719 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3720$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3721 { (exit 1); exit 1; }; }
3722
3723{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3724$as_echo_n "checking build system type... " >&6; }
3725if test "${ac_cv_build+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3727else
3728 ac_build_alias=$build_alias
3729test "x$ac_build_alias" = x &&
3730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3731test "x$ac_build_alias" = x &&
3732 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3733$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3734 { (exit 1); exit 1; }; }
3735ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3736 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3737$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3738 { (exit 1); exit 1; }; }
3739
3740fi
3741{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3742$as_echo "$ac_cv_build" >&6; }
3743case $ac_cv_build in
3744*-*-*) ;;
3745*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3746$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3747 { (exit 1); exit 1; }; };;
3748esac
3749build=$ac_cv_build
3750ac_save_IFS=$IFS; IFS='-'
3751set x $ac_cv_build
3752shift
3753build_cpu=$1
3754build_vendor=$2
3755shift; shift
3756# Remember, the first character of IFS is used to create $*,
3757# except with old shells:
3758build_os=$*
3759IFS=$ac_save_IFS
3760case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3761
3762
3763{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3764$as_echo_n "checking host system type... " >&6; }
3765if test "${ac_cv_host+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3767else
3768 if test "x$host_alias" = x; then
3769 ac_cv_host=$ac_cv_build
3770else
3771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3772 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3773$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3774 { (exit 1); exit 1; }; }
3775fi
3776
3777fi
3778{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3779$as_echo "$ac_cv_host" >&6; }
3780case $ac_cv_host in
3781*-*-*) ;;
3782*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3783$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3784 { (exit 1); exit 1; }; };;
3785esac
3786host=$ac_cv_host
3787ac_save_IFS=$IFS; IFS='-'
3788set x $ac_cv_host
3789shift
3790host_cpu=$1
3791host_vendor=$2
3792shift; shift
3793# Remember, the first character of IFS is used to create $*,
3794# except with old shells:
3795host_os=$*
3796IFS=$ac_save_IFS
3797case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3798
3799
3800{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3802if test "${ac_cv_path_SED+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3804else
3805 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3806 for ac_i in 1 2 3 4 5 6 7; do
3807 ac_script="$ac_script$as_nl$ac_script"
3808 done
3809 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3810 $as_unset ac_script || ac_script=
3811 if test -z "$SED"; then
3812 ac_path_SED_found=false
3813 # Loop through the user's path and test for each of PROGNAME-LIST
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_prog in sed gsed; do
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3822 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3823# Check for GNU ac_path_SED and select it if it is found.
3824 # Check for GNU $ac_path_SED
3825case `"$ac_path_SED" --version 2>&1` in
3826*GNU*)
3827 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3828*)
3829 ac_count=0
3830 $as_echo_n 0123456789 >"conftest.in"
3831 while :
3832 do
3833 cat "conftest.in" "conftest.in" >"conftest.tmp"
3834 mv "conftest.tmp" "conftest.in"
3835 cp "conftest.in" "conftest.nl"
3836 $as_echo '' >> "conftest.nl"
3837 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3839 ac_count=`expr $ac_count + 1`
3840 if test $ac_count -gt ${ac_path_SED_max-0}; then
3841 # Best one so far, save it but keep looking for a better one
3842 ac_cv_path_SED="$ac_path_SED"
3843 ac_path_SED_max=$ac_count
3844 fi
3845 # 10*(2^10) chars as input seems more than enough
3846 test $ac_count -gt 10 && break
3847 done
3848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3849esac
3850
3851 $ac_path_SED_found && break 3
3852 done
3853 done
3854done
3855IFS=$as_save_IFS
3856 if test -z "$ac_cv_path_SED"; then
3857 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3858$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3859 { (exit 1); exit 1; }; }
3860 fi
3861else
3862 ac_cv_path_SED=$SED
3863fi
3864
3865fi
3866{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3867$as_echo "$ac_cv_path_SED" >&6; }
3868 SED="$ac_cv_path_SED"
3869 rm -f conftest.sed
3870
3871test -z "$SED" && SED=sed
3872Xsed="$SED -e 1s/^X//"
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3885$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886if test "${ac_cv_path_GREP+set}" = set; then
3887 $as_echo_n "(cached) " >&6
3888else
3889 if test -z "$GREP"; then
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3901# Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903case `"$ac_path_GREP" --version 2>&1` in
3904*GNU*)
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906*)
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3910 do
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 ac_count=`expr $ac_count + 1`
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3922 fi
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927esac
3928
3929 $ac_path_GREP_found && break 3
3930 done
3931 done
3932done
3933IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_GREP"; then
3935 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937 { (exit 1); exit 1; }; }
3938 fi
3939else
3940 ac_cv_path_GREP=$GREP
3941fi
3942
3943fi
3944{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3945$as_echo "$ac_cv_path_GREP" >&6; }
3946 GREP="$ac_cv_path_GREP"
3947
3948
3949{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3950$as_echo_n "checking for egrep... " >&6; }
3951if test "${ac_cv_path_EGREP+set}" = set; then
3952 $as_echo_n "(cached) " >&6
3953else
3954 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3955 then ac_cv_path_EGREP="$GREP -E"
3956 else
3957 if test -z "$EGREP"; then
3958 ac_path_EGREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3969# Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971case `"$ac_path_EGREP" --version 2>&1` in
3972*GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974*)
3975 ac_count=0
3976 $as_echo_n 0123456789 >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 $as_echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
3990 fi
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995esac
3996
3997 $ac_path_EGREP_found && break 3
3998 done
3999 done
4000done
4001IFS=$as_save_IFS
4002 if test -z "$ac_cv_path_EGREP"; then
4003 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4004$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4005 { (exit 1); exit 1; }; }
4006 fi
4007else
4008 ac_cv_path_EGREP=$EGREP
4009fi
4010
4011 fi
4012fi
4013{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4014$as_echo "$ac_cv_path_EGREP" >&6; }
4015 EGREP="$ac_cv_path_EGREP"
4016
4017
4018{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4019$as_echo_n "checking for fgrep... " >&6; }
4020if test "${ac_cv_path_FGREP+set}" = set; then
4021 $as_echo_n "(cached) " >&6
4022else
4023 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4024 then ac_cv_path_FGREP="$GREP -F"
4025 else
4026 if test -z "$FGREP"; then
4027 ac_path_FGREP_found=false
4028 # Loop through the user's path and test for each of PROGNAME-LIST
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4031do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_prog in fgrep; do
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4037 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4038# Check for GNU ac_path_FGREP and select it if it is found.
4039 # Check for GNU $ac_path_FGREP
4040case `"$ac_path_FGREP" --version 2>&1` in
4041*GNU*)
4042 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4043*)
4044 ac_count=0
4045 $as_echo_n 0123456789 >"conftest.in"
4046 while :
4047 do
4048 cat "conftest.in" "conftest.in" >"conftest.tmp"
4049 mv "conftest.tmp" "conftest.in"
4050 cp "conftest.in" "conftest.nl"
4051 $as_echo 'FGREP' >> "conftest.nl"
4052 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4054 ac_count=`expr $ac_count + 1`
4055 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4056 # Best one so far, save it but keep looking for a better one
4057 ac_cv_path_FGREP="$ac_path_FGREP"
4058 ac_path_FGREP_max=$ac_count
4059 fi
4060 # 10*(2^10) chars as input seems more than enough
4061 test $ac_count -gt 10 && break
4062 done
4063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064esac
4065
4066 $ac_path_FGREP_found && break 3
4067 done
4068 done
4069done
4070IFS=$as_save_IFS
4071 if test -z "$ac_cv_path_FGREP"; then
4072 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4075 fi
4076else
4077 ac_cv_path_FGREP=$FGREP
4078fi
4079
4080 fi
4081fi
4082{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4083$as_echo "$ac_cv_path_FGREP" >&6; }
4084 FGREP="$ac_cv_path_FGREP"
4085
4086
4087test -z "$GREP" && GREP=grep
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107# Check whether --with-gnu-ld was given.
4108if test "${with_gnu_ld+set}" = set; then
4109 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4110else
4111 with_gnu_ld=no
4112fi
4113
4114ac_prog=ld
4115if test "$GCC" = yes; then
4116 # Check if gcc -print-prog-name=ld gives a path.
4117 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4118$as_echo_n "checking for ld used by $CC... " >&6; }
4119 case $host in
4120 *-*-mingw*)
4121 # gcc leaves a trailing carriage return which upsets mingw
4122 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4123 *)
4124 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4125 esac
4126 case $ac_prog in
4127 # Accept absolute paths.
4128 [\\/]* | ?:[\\/]*)
4129 re_direlt='/[^/][^/]*/\.\./'
4130 # Canonicalize the pathname of ld
4131 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4132 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4133 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4134 done
4135 test -z "$LD" && LD="$ac_prog"
4136 ;;
4137 "")
4138 # If it fails, then pretend we aren't using GCC.
4139 ac_prog=ld
4140 ;;
4141 *)
4142 # If it is relative, then search for the first ld in PATH.
4143 with_gnu_ld=unknown
4144 ;;
4145 esac
4146elif test "$with_gnu_ld" = yes; then
4147 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4148$as_echo_n "checking for GNU ld... " >&6; }
4149else
4150 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4151$as_echo_n "checking for non-GNU ld... " >&6; }
4152fi
4153if test "${lt_cv_path_LD+set}" = set; then
4154 $as_echo_n "(cached) " >&6
4155else
4156 if test -z "$LD"; then
4157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4158 for ac_dir in $PATH; do
4159 IFS="$lt_save_ifs"
4160 test -z "$ac_dir" && ac_dir=.
4161 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4162 lt_cv_path_LD="$ac_dir/$ac_prog"
4163 # Check to see if the program is GNU ld. I'd rather use --version,
4164 # but apparently some variants of GNU ld only accept -v.
4165 # Break only if it was the GNU/non-GNU ld that we prefer.
4166 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4167 *GNU* | *'with BFD'*)
4168 test "$with_gnu_ld" != no && break
4169 ;;
4170 *)
4171 test "$with_gnu_ld" != yes && break
4172 ;;
4173 esac
4174 fi
4175 done
4176 IFS="$lt_save_ifs"
4177else
4178 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4179fi
4180fi
4181
4182LD="$lt_cv_path_LD"
4183if test -n "$LD"; then
4184 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4185$as_echo "$LD" >&6; }
4186else
4187 { $as_echo "$as_me:$LINENO: result: no" >&5
4188$as_echo "no" >&6; }
4189fi
4190test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4191$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4192 { (exit 1); exit 1; }; }
4193{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4194$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4195if test "${lt_cv_prog_gnu_ld+set}" = set; then
4196 $as_echo_n "(cached) " >&6
4197else
4198 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4199case `$LD -v 2>&1 </dev/null` in
4200*GNU* | *'with BFD'*)
4201 lt_cv_prog_gnu_ld=yes
4202 ;;
4203*)
4204 lt_cv_prog_gnu_ld=no
4205 ;;
4206esac
4207fi
4208{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4209$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4210with_gnu_ld=$lt_cv_prog_gnu_ld
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4221$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4222if test "${lt_cv_path_NM+set}" = set; then
4223 $as_echo_n "(cached) " >&6
4224else
4225 if test -n "$NM"; then
4226 # Let the user override the test.
4227 lt_cv_path_NM="$NM"
4228else
4229 lt_nm_to_check="${ac_tool_prefix}nm"
4230 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4231 lt_nm_to_check="$lt_nm_to_check nm"
4232 fi
4233 for lt_tmp_nm in $lt_nm_to_check; do
4234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4235 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4236 IFS="$lt_save_ifs"
4237 test -z "$ac_dir" && ac_dir=.
4238 tmp_nm="$ac_dir/$lt_tmp_nm"
4239 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4240 # Check to see if the nm accepts a BSD-compat flag.
4241 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242 # nm: unknown option "B" ignored
4243 # Tru64's nm complains that /dev/null is an invalid object file
4244 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4245 */dev/null* | *'Invalid file or object type'*)
4246 lt_cv_path_NM="$tmp_nm -B"
4247 break
4248 ;;
4249 *)
4250 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4251 */dev/null*)
4252 lt_cv_path_NM="$tmp_nm -p"
4253 break
4254 ;;
4255 *)
4256 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4257 continue # so that we can try to find one that supports BSD flags
4258 ;;
4259 esac
4260 ;;
4261 esac
4262 fi
4263 done
4264 IFS="$lt_save_ifs"
4265 done
4266 : ${lt_cv_path_NM=no}
4267fi
4268fi
4269{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4270$as_echo "$lt_cv_path_NM" >&6; }
4271if test "$lt_cv_path_NM" != "no"; then
4272 NM="$lt_cv_path_NM"
4273else
4274 # Didn't find any BSD compatible name lister, look for dumpbin.
4275 if test -n "$ac_tool_prefix"; then
4276 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4277 do
4278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4281$as_echo_n "checking for $ac_word... " >&6; }
4282if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4283 $as_echo_n "(cached) " >&6
4284else
4285 if test -n "$DUMPBIN"; then
4286 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299done
4300done
4301IFS=$as_save_IFS
4302
4303fi
4304fi
4305DUMPBIN=$ac_cv_prog_DUMPBIN
4306if test -n "$DUMPBIN"; then
4307 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4308$as_echo "$DUMPBIN" >&6; }
4309else
4310 { $as_echo "$as_me:$LINENO: result: no" >&5
4311$as_echo "no" >&6; }
4312fi
4313
4314
4315 test -n "$DUMPBIN" && break
4316 done
4317fi
4318if test -z "$DUMPBIN"; then
4319 ac_ct_DUMPBIN=$DUMPBIN
4320 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4321do
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323set dummy $ac_prog; ac_word=$2
4324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4325$as_echo_n "checking for $ac_word... " >&6; }
4326if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4327 $as_echo_n "(cached) " >&6
4328else
4329 if test -n "$ac_ct_DUMPBIN"; then
4330 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4342 fi
4343done
4344done
4345IFS=$as_save_IFS
4346
4347fi
4348fi
4349ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4350if test -n "$ac_ct_DUMPBIN"; then
4351 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4352$as_echo "$ac_ct_DUMPBIN" >&6; }
4353else
4354 { $as_echo "$as_me:$LINENO: result: no" >&5
4355$as_echo "no" >&6; }
4356fi
4357
4358
4359 test -n "$ac_ct_DUMPBIN" && break
4360done
4361
4362 if test "x$ac_ct_DUMPBIN" = x; then
4363 DUMPBIN=":"
4364 else
4365 case $cross_compiling:$ac_tool_warned in
4366yes:)
4367{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369ac_tool_warned=yes ;;
4370esac
4371 DUMPBIN=$ac_ct_DUMPBIN
4372 fi
4373fi
4374
4375
4376 if test "$DUMPBIN" != ":"; then
4377 NM="$DUMPBIN"
4378 fi
4379fi
4380test -z "$NM" && NM=nm
4381
4382
4383
4384
4385
4386
4387{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4388$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4389if test "${lt_cv_nm_interface+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4391else
4392 lt_cv_nm_interface="BSD nm"
4393 echo "int some_variable = 0;" > conftest.$ac_ext
4394 (eval echo "\"\$as_me:4394: $ac_compile\"" >&5)
4395 (eval "$ac_compile" 2>conftest.err)
4396 cat conftest.err >&5
4397 (eval echo "\"\$as_me:4397: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4398 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4399 cat conftest.err >&5
4400 (eval echo "\"\$as_me:4400: output\"" >&5)
4401 cat conftest.out >&5
4402 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4403 lt_cv_nm_interface="MS dumpbin"
4404 fi
4405 rm -f conftest*
4406fi
4407{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4408$as_echo "$lt_cv_nm_interface" >&6; }
4409
4410{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4411$as_echo_n "checking whether ln -s works... " >&6; }
4412LN_S=$as_ln_s
4413if test "$LN_S" = "ln -s"; then
4414 { $as_echo "$as_me:$LINENO: result: yes" >&5
4415$as_echo "yes" >&6; }
4416else
4417 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4418$as_echo "no, using $LN_S" >&6; }
4419fi
4420
4421# find the maximum length of command line arguments
4422{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4423$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4424if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426else
4427 i=0
4428 teststring="ABCD"
4429
4430 case $build_os in
4431 msdosdjgpp*)
4432 # On DJGPP, this test can blow up pretty badly due to problems in libc
4433 # (any single argument exceeding 2000 bytes causes a buffer overrun
4434 # during glob expansion). Even if it were fixed, the result of this
4435 # check would be larger than it should be.
4436 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4437 ;;
4438
4439 gnu*)
4440 # Under GNU Hurd, this test is not required because there is
4441 # no limit to the length of command line arguments.
4442 # Libtool will interpret -1 as no limit whatsoever
4443 lt_cv_sys_max_cmd_len=-1;
4444 ;;
4445
4446 cygwin* | mingw* | cegcc*)
4447 # On Win9x/ME, this test blows up -- it succeeds, but takes
4448 # about 5 minutes as the teststring grows exponentially.
4449 # Worse, since 9x/ME are not pre-emptively multitasking,
4450 # you end up with a "frozen" computer, even though with patience
4451 # the test eventually succeeds (with a max line length of 256k).
4452 # Instead, let's just punt: use the minimum linelength reported by
4453 # all of the supported platforms: 8192 (on NT/2K/XP).
4454 lt_cv_sys_max_cmd_len=8192;
4455 ;;
4456
4457 amigaos*)
4458 # On AmigaOS with pdksh, this test takes hours, literally.
4459 # So we just punt and use a minimum line length of 8192.
4460 lt_cv_sys_max_cmd_len=8192;
4461 ;;
4462
4463 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4464 # This has been around since 386BSD, at least. Likely further.
4465 if test -x /sbin/sysctl; then
4466 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4467 elif test -x /usr/sbin/sysctl; then
4468 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4469 else
4470 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4471 fi
4472 # And add a safety zone
4473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4475 ;;
4476
4477 interix*)
4478 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4479 lt_cv_sys_max_cmd_len=196608
4480 ;;
4481
4482 osf*)
4483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4485 # nice to cause kernel panics so lets avoid the loop below.
4486 # First set a reasonable default.
4487 lt_cv_sys_max_cmd_len=16384
4488 #
4489 if test -x /sbin/sysconfig; then
4490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4492 esac
4493 fi
4494 ;;
4495 sco3.2v5*)
4496 lt_cv_sys_max_cmd_len=102400
4497 ;;
4498 sysv5* | sco5v6* | sysv4.2uw2*)
4499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4500 if test -n "$kargmax"; then
4501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4502 else
4503 lt_cv_sys_max_cmd_len=32768
4504 fi
4505 ;;
4506 *)
4507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4508 if test -n "$lt_cv_sys_max_cmd_len"; then
4509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4511 else
4512 # Make teststring a little bigger before we do anything with it.
4513 # a 1K string should be a reasonable start.
4514 for i in 1 2 3 4 5 6 7 8 ; do
4515 teststring=$teststring$teststring
4516 done
4517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4518 # If test is not a shell built-in, we'll probably end up computing a
4519 # maximum length that is only half of the actual maximum length, but
4520 # we can't tell.
4521 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4522 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4523 test $i != 17 # 1/2 MB should be enough
4524 do
4525 i=`expr $i + 1`
4526 teststring=$teststring$teststring
4527 done
4528 # Only check the string length outside the loop.
4529 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4530 teststring=
4531 # Add a significant safety factor because C++ compilers can tack on
4532 # massive amounts of additional arguments before passing them to the
4533 # linker. It appears as though 1/2 is a usable value.
4534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4535 fi
4536 ;;
4537 esac
4538
4539fi
4540
4541if test -n $lt_cv_sys_max_cmd_len ; then
4542 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4543$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4544else
4545 { $as_echo "$as_me:$LINENO: result: none" >&5
4546$as_echo "none" >&6; }
4547fi
4548max_cmd_len=$lt_cv_sys_max_cmd_len
4549
4550
4551
4552
4553
4554
4555: ${CP="cp -f"}
4556: ${MV="mv -f"}
4557: ${RM="rm -f"}
4558
4559{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4560$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4561# Try some XSI features
4562xsi_shell=no
4563( _lt_dummy="a/b/c"
4564 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4565 = c,a/b,, \
4566 && eval 'test $(( 1 + 1 )) -eq 2 \
4567 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4568 && xsi_shell=yes
4569{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4570$as_echo "$xsi_shell" >&6; }
4571
4572
4573{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4574$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4575lt_shell_append=no
4576( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4577 >/dev/null 2>&1 \
4578 && lt_shell_append=yes
4579{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4580$as_echo "$lt_shell_append" >&6; }
4581
4582
4583if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4584 lt_unset=unset
4585else
4586 lt_unset=false
4587fi
4588
4589
4590
4591
4592
4593# test EBCDIC or ASCII
4594case `echo X|tr X '\101'` in
4595 A) # ASCII based system
4596 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4597 lt_SP2NL='tr \040 \012'
4598 lt_NL2SP='tr \015\012 \040\040'
4599 ;;
4600 *) # EBCDIC based system
4601 lt_SP2NL='tr \100 \n'
4602 lt_NL2SP='tr \r\n \100\100'
4603 ;;
4604esac
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4615$as_echo_n "checking for $LD option to reload object files... " >&6; }
4616if test "${lt_cv_ld_reload_flag+set}" = set; then
4617 $as_echo_n "(cached) " >&6
4618else
4619 lt_cv_ld_reload_flag='-r'
4620fi
4621{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4622$as_echo "$lt_cv_ld_reload_flag" >&6; }
4623reload_flag=$lt_cv_ld_reload_flag
4624case $reload_flag in
4625"" | " "*) ;;
4626*) reload_flag=" $reload_flag" ;;
4627esac
4628reload_cmds='$LD$reload_flag -o $output$reload_objs'
4629case $host_os in
4630 darwin*)
4631 if test "$GCC" = yes; then
4632 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4633 else
4634 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4635 fi
4636 ;;
4637esac
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647if test -n "$ac_tool_prefix"; then
4648 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4649set dummy ${ac_tool_prefix}objdump; ac_word=$2
4650{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4654else
4655 if test -n "$OBJDUMP"; then
4656 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675OBJDUMP=$ac_cv_prog_OBJDUMP
4676if test -n "$OBJDUMP"; then
4677 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4678$as_echo "$OBJDUMP" >&6; }
4679else
4680 { $as_echo "$as_me:$LINENO: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685fi
4686if test -z "$ac_cv_prog_OBJDUMP"; then
4687 ac_ct_OBJDUMP=$OBJDUMP
4688 # Extract the first word of "objdump", so it can be a program name with args.
4689set dummy objdump; ac_word=$2
4690{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
4692if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$ac_ct_OBJDUMP"; then
4696 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4716if test -n "$ac_ct_OBJDUMP"; then
4717 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4718$as_echo "$ac_ct_OBJDUMP" >&6; }
4719else
4720 { $as_echo "$as_me:$LINENO: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
4723
4724 if test "x$ac_ct_OBJDUMP" = x; then
4725 OBJDUMP="false"
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728yes:)
4729{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731ac_tool_warned=yes ;;
4732esac
4733 OBJDUMP=$ac_ct_OBJDUMP
4734 fi
4735else
4736 OBJDUMP="$ac_cv_prog_OBJDUMP"
4737fi
4738
4739test -z "$OBJDUMP" && OBJDUMP=objdump
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4750$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4751if test "${lt_cv_deplibs_check_method+set}" = set; then
4752 $as_echo_n "(cached) " >&6
4753else
4754 lt_cv_file_magic_cmd='$MAGIC_CMD'
4755lt_cv_file_magic_test_file=
4756lt_cv_deplibs_check_method='unknown'
4757# Need to set the preceding variable on all platforms that support
4758# interlibrary dependencies.
4759# 'none' -- dependencies not supported.
4760# `unknown' -- same as none, but documents that we really don't know.
4761# 'pass_all' -- all dependencies passed with no checks.
4762# 'test_compile' -- check by making test program.
4763# 'file_magic [[regex]]' -- check by looking for files in library path
4764# which responds to the $file_magic_cmd with a given extended regex.
4765# If you have `file' or equivalent on your system and you're not sure
4766# whether `pass_all' will *always* work, you probably want this one.
4767
4768case $host_os in
4769aix[4-9]*)
4770 lt_cv_deplibs_check_method=pass_all
4771 ;;
4772
4773beos*)
4774 lt_cv_deplibs_check_method=pass_all
4775 ;;
4776
4777bsdi[45]*)
4778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4779 lt_cv_file_magic_cmd='/usr/bin/file -L'
4780 lt_cv_file_magic_test_file=/shlib/libc.so
4781 ;;
4782
4783cygwin*)
4784 # func_win32_libid is a shell function defined in ltmain.sh
4785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4786 lt_cv_file_magic_cmd='func_win32_libid'
4787 ;;
4788
4789mingw* | pw32*)
4790 # Base MSYS/MinGW do not provide the 'file' command needed by
4791 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4792 # unless we find 'file', for example because we are cross-compiling.
4793 if ( file / ) >/dev/null 2>&1; then
4794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4795 lt_cv_file_magic_cmd='func_win32_libid'
4796 else
4797 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4798 lt_cv_file_magic_cmd='$OBJDUMP -f'
4799 fi
4800 ;;
4801
4802cegcc)
4803 # use the weaker test based on 'objdump'. See mingw*.
4804 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4805 lt_cv_file_magic_cmd='$OBJDUMP -f'
4806 ;;
4807
4808darwin* | rhapsody*)
4809 lt_cv_deplibs_check_method=pass_all
4810 ;;
4811
4812freebsd* | dragonfly*)
4813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4814 case $host_cpu in
4815 i*86 )
4816 # Not sure whether the presence of OpenBSD here was a mistake.
4817 # Let's accept both of them until this is cleared up.
4818 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4819 lt_cv_file_magic_cmd=/usr/bin/file
4820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4821 ;;
4822 esac
4823 else
4824 lt_cv_deplibs_check_method=pass_all
4825 fi
4826 ;;
4827
4828gnu*)
4829 lt_cv_deplibs_check_method=pass_all
4830 ;;
4831
4832hpux10.20* | hpux11*)
4833 lt_cv_file_magic_cmd=/usr/bin/file
4834 case $host_cpu in
4835 ia64*)
4836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4838 ;;
4839 hppa*64*)
4840 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]'
4841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4842 ;;
4843 *)
4844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4845 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4846 ;;
4847 esac
4848 ;;
4849
4850interix[3-9]*)
4851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4853 ;;
4854
4855irix5* | irix6* | nonstopux*)
4856 case $LD in
4857 *-32|*"-32 ") libmagic=32-bit;;
4858 *-n32|*"-n32 ") libmagic=N32;;
4859 *-64|*"-64 ") libmagic=64-bit;;
4860 *) libmagic=never-match;;
4861 esac
4862 lt_cv_deplibs_check_method=pass_all
4863 ;;
4864
4865# This must be Linux ELF.
4866linux* | k*bsd*-gnu)
4867 lt_cv_deplibs_check_method=pass_all
4868 ;;
4869
4870netbsd*)
4871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4873 else
4874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4875 fi
4876 ;;
4877
4878newos6*)
4879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4880 lt_cv_file_magic_cmd=/usr/bin/file
4881 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4882 ;;
4883
4884*nto* | *qnx*)
4885 lt_cv_deplibs_check_method=pass_all
4886 ;;
4887
4888openbsd*)
4889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4891 else
4892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4893 fi
4894 ;;
4895
4896osf3* | osf4* | osf5*)
4897 lt_cv_deplibs_check_method=pass_all
4898 ;;
4899
4900rdos*)
4901 lt_cv_deplibs_check_method=pass_all
4902 ;;
4903
4904solaris*)
4905 lt_cv_deplibs_check_method=pass_all
4906 ;;
4907
4908sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4909 lt_cv_deplibs_check_method=pass_all
4910 ;;
4911
4912sysv4 | sysv4.3*)
4913 case $host_vendor in
4914 motorola)
4915 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]'
4916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4917 ;;
4918 ncr)
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921 sequent)
4922 lt_cv_file_magic_cmd='/bin/file'
4923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4924 ;;
4925 sni)
4926 lt_cv_file_magic_cmd='/bin/file'
4927 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4928 lt_cv_file_magic_test_file=/lib/libc.so
4929 ;;
4930 siemens)
4931 lt_cv_deplibs_check_method=pass_all
4932 ;;
4933 pc)
4934 lt_cv_deplibs_check_method=pass_all
4935 ;;
4936 esac
4937 ;;
4938
4939tpf*)
4940 lt_cv_deplibs_check_method=pass_all
4941 ;;
4942esac
4943
4944fi
4945{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4946$as_echo "$lt_cv_deplibs_check_method" >&6; }
4947file_magic_cmd=$lt_cv_file_magic_cmd
4948deplibs_check_method=$lt_cv_deplibs_check_method
4949test -z "$deplibs_check_method" && deplibs_check_method=unknown
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962if test -n "$ac_tool_prefix"; then
4963 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4964set dummy ${ac_tool_prefix}ar; ac_word=$2
4965{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4966$as_echo_n "checking for $ac_word... " >&6; }
4967if test "${ac_cv_prog_AR+set}" = set; then
4968 $as_echo_n "(cached) " >&6
4969else
4970 if test -n "$AR"; then
4971 ac_cv_prog_AR="$AR" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_AR="${ac_tool_prefix}ar"
4981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984done
4985done
4986IFS=$as_save_IFS
4987
4988fi
4989fi
4990AR=$ac_cv_prog_AR
4991if test -n "$AR"; then
4992 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4993$as_echo "$AR" >&6; }
4994else
4995 { $as_echo "$as_me:$LINENO: result: no" >&5
4996$as_echo "no" >&6; }
4997fi
4998
4999
5000fi
5001if test -z "$ac_cv_prog_AR"; then
5002 ac_ct_AR=$AR
5003 # Extract the first word of "ar", so it can be a program name with args.
5004set dummy ar; ac_word=$2
5005{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5006$as_echo_n "checking for $ac_word... " >&6; }
5007if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5008 $as_echo_n "(cached) " >&6
5009else
5010 if test -n "$ac_ct_AR"; then
5011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_prog_ac_ct_AR="ar"
5021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024done
5025done
5026IFS=$as_save_IFS
5027
5028fi
5029fi
5030ac_ct_AR=$ac_cv_prog_ac_ct_AR
5031if test -n "$ac_ct_AR"; then
5032 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5033$as_echo "$ac_ct_AR" >&6; }
5034else
5035 { $as_echo "$as_me:$LINENO: result: no" >&5
5036$as_echo "no" >&6; }
5037fi
5038
5039 if test "x$ac_ct_AR" = x; then
5040 AR="false"
5041 else
5042 case $cross_compiling:$ac_tool_warned in
5043yes:)
5044{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5046ac_tool_warned=yes ;;
5047esac
5048 AR=$ac_ct_AR
5049 fi
5050else
5051 AR="$ac_cv_prog_AR"
5052fi
5053
5054test -z "$AR" && AR=ar
5055test -z "$AR_FLAGS" && AR_FLAGS=cru
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067if test -n "$ac_tool_prefix"; then
5068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}strip; ac_word=$2
5070{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5071$as_echo_n "checking for $ac_word... " >&6; }
5072if test "${ac_cv_prog_STRIP+set}" = set; then
5073 $as_echo_n "(cached) " >&6
5074else
5075 if test -n "$STRIP"; then
5076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090done
5091IFS=$as_save_IFS
5092
5093fi
5094fi
5095STRIP=$ac_cv_prog_STRIP
5096if test -n "$STRIP"; then
5097 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5098$as_echo "$STRIP" >&6; }
5099else
5100 { $as_echo "$as_me:$LINENO: result: no" >&5
5101$as_echo "no" >&6; }
5102fi
5103
5104
5105fi
5106if test -z "$ac_cv_prog_STRIP"; then
5107 ac_ct_STRIP=$STRIP
5108 # Extract the first word of "strip", so it can be a program name with args.
5109set dummy strip; ac_word=$2
5110{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5113 $as_echo_n "(cached) " >&6
5114else
5115 if test -n "$ac_ct_STRIP"; then
5116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_prog_ac_ct_STRIP="strip"
5126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129done
5130done
5131IFS=$as_save_IFS
5132
5133fi
5134fi
5135ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5136if test -n "$ac_ct_STRIP"; then
5137 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5138$as_echo "$ac_ct_STRIP" >&6; }
5139else
5140 { $as_echo "$as_me:$LINENO: result: no" >&5
5141$as_echo "no" >&6; }
5142fi
5143
5144 if test "x$ac_ct_STRIP" = x; then
5145 STRIP=":"
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148yes:)
5149{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151ac_tool_warned=yes ;;
5152esac
5153 STRIP=$ac_ct_STRIP
5154 fi
5155else
5156 STRIP="$ac_cv_prog_STRIP"
5157fi
5158
5159test -z "$STRIP" && STRIP=:
5160
5161
5162
5163
5164
5165
5166if test -n "$ac_tool_prefix"; then
5167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5168set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if test "${ac_cv_prog_RANLIB+set}" = set; then
5172 $as_echo_n "(cached) " >&6
5173else
5174 if test -n "$RANLIB"; then
5175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194RANLIB=$ac_cv_prog_RANLIB
5195if test -n "$RANLIB"; then
5196 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5197$as_echo "$RANLIB" >&6; }
5198else
5199 { $as_echo "$as_me:$LINENO: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204fi
5205if test -z "$ac_cv_prog_RANLIB"; then
5206 ac_ct_RANLIB=$RANLIB
5207 # Extract the first word of "ranlib", so it can be a program name with args.
5208set dummy ranlib; ac_word=$2
5209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
5211if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5212 $as_echo_n "(cached) " >&6
5213else
5214 if test -n "$ac_ct_RANLIB"; then
5215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_prog_ac_ct_RANLIB="ranlib"
5225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228done
5229done
5230IFS=$as_save_IFS
5231
5232fi
5233fi
5234ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5235if test -n "$ac_ct_RANLIB"; then
5236 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5237$as_echo "$ac_ct_RANLIB" >&6; }
5238else
5239 { $as_echo "$as_me:$LINENO: result: no" >&5
5240$as_echo "no" >&6; }
5241fi
5242
5243 if test "x$ac_ct_RANLIB" = x; then
5244 RANLIB=":"
5245 else
5246 case $cross_compiling:$ac_tool_warned in
5247yes:)
5248{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5250ac_tool_warned=yes ;;
5251esac
5252 RANLIB=$ac_ct_RANLIB
5253 fi
5254else
5255 RANLIB="$ac_cv_prog_RANLIB"
5256fi
5257
5258test -z "$RANLIB" && RANLIB=:
5259
5260
5261
5262
5263
5264
5265# Determine commands to create old-style static archives.
5266old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5267old_postinstall_cmds='chmod 644 $oldlib'
5268old_postuninstall_cmds=
5269
5270if test -n "$RANLIB"; then
5271 case $host_os in
5272 openbsd*)
5273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5274 ;;
5275 *)
5276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5277 ;;
5278 esac
5279 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5280fi
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315# If no C compiler was specified, use CC.
5316LTCC=${LTCC-"$CC"}
5317
5318# If no C compiler flags were specified, use CFLAGS.
5319LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5320
5321# Allow CC to be a program name with arguments.
5322compiler=$CC
5323
5324
5325# Check for command to grab the raw symbol name followed by C symbol from nm.
5326{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5327$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5328if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5329 $as_echo_n "(cached) " >&6
5330else
5331
5332# These are sane defaults that work on at least a few old systems.
5333# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5334
5335# Character class describing NM global symbol codes.
5336symcode='[BCDEGRST]'
5337
5338# Regexp to match symbols that can be accessed directly from C.
5339sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5340
5341# Define system-specific variables.
5342case $host_os in
5343aix*)
5344 symcode='[BCDT]'
5345 ;;
5346cygwin* | mingw* | pw32* | cegcc*)
5347 symcode='[ABCDGISTW]'
5348 ;;
5349hpux*)
5350 if test "$host_cpu" = ia64; then
5351 symcode='[ABCDEGRST]'
5352 fi
5353 ;;
5354irix* | nonstopux*)
5355 symcode='[BCDEGRST]'
5356 ;;
5357osf*)
5358 symcode='[BCDEGQRST]'
5359 ;;
5360solaris*)
5361 symcode='[BDRT]'
5362 ;;
5363sco3.2v5*)
5364 symcode='[DT]'
5365 ;;
5366sysv4.2uw2*)
5367 symcode='[DT]'
5368 ;;
5369sysv5* | sco5v6* | unixware* | OpenUNIX*)
5370 symcode='[ABDT]'
5371 ;;
5372sysv4)
5373 symcode='[DFNSTU]'
5374 ;;
5375esac
5376
5377# If we're using GNU nm, then use its standard symbol codes.
5378case `$NM -V 2>&1` in
5379*GNU* | *'with BFD'*)
5380 symcode='[ABCDGIRSTW]' ;;
5381esac
5382
5383# Transform an extracted symbol line into a proper C declaration.
5384# Some systems (esp. on ia64) link data and code symbols differently,
5385# so use this general approach.
5386lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5387
5388# Transform an extracted symbol line into symbol name and symbol address
5389lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5390lt_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'"
5391
5392# Handle CRLF in mingw tool chain
5393opt_cr=
5394case $build_os in
5395mingw*)
5396 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5397 ;;
5398esac
5399
5400# Try without a prefix underscore, then with it.
5401for ac_symprfx in "" "_"; do
5402
5403 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5404 symxfrm="\\1 $ac_symprfx\\2 \\2"
5405
5406 # Write the raw and C identifiers.
5407 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5408 # Fake it for dumpbin and say T for any non-static function
5409 # and D for any global variable.
5410 # Also find C++ and __fastcall symbols from MSVC++,
5411 # which start with @ or ?.
5412 lt_cv_sys_global_symbol_pipe="$AWK '"\
5413" {last_section=section; section=\$ 3};"\
5414" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5415" \$ 0!~/External *\|/{next};"\
5416" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5417" {if(hide[section]) next};"\
5418" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5419" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5420" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5421" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5422" ' prfx=^$ac_symprfx"
5423 else
5424 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5425 fi
5426
5427 # Check to see that the pipe works correctly.
5428 pipe_works=no
5429
5430 rm -f conftest*
5431 cat > conftest.$ac_ext <<_LT_EOF
5432#ifdef __cplusplus
5433extern "C" {
5434#endif
5435char nm_test_var;
5436void nm_test_func(void);
5437void nm_test_func(void){}
5438#ifdef __cplusplus
5439}
5440#endif
5441int main(){nm_test_var='a';nm_test_func();return(0);}
5442_LT_EOF
5443
5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5446 ac_status=$?
5447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; then
5449 # Now try to grab the symbols.
5450 nlist=conftest.nm
5451 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5453 ac_status=$?
5454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && test -s "$nlist"; then
5456 # Try sorting and uniquifying the output.
5457 if sort "$nlist" | uniq > "$nlist"T; then
5458 mv -f "$nlist"T "$nlist"
5459 else
5460 rm -f "$nlist"T
5461 fi
5462
5463 # Make sure that we snagged all the symbols we need.
5464 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5465 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5466 cat <<_LT_EOF > conftest.$ac_ext
5467#ifdef __cplusplus
5468extern "C" {
5469#endif
5470
5471_LT_EOF
5472 # Now generate the symbol file.
5473 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5474
5475 cat <<_LT_EOF >> conftest.$ac_ext
5476
5477/* The mapping between symbol names and symbols. */
5478const struct {
5479 const char *name;
5480 void *address;
5481}
5482lt__PROGRAM__LTX_preloaded_symbols[] =
5483{
5484 { "@PROGRAM@", (void *) 0 },
5485_LT_EOF
5486 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5487 cat <<\_LT_EOF >> conftest.$ac_ext
5488 {0, (void *) 0}
5489};
5490
5491/* This works around a problem in FreeBSD linker */
5492#ifdef FREEBSD_WORKAROUND
5493static const void *lt_preloaded_setup() {
5494 return lt__PROGRAM__LTX_preloaded_symbols;
5495}
5496#endif
5497
5498#ifdef __cplusplus
5499}
5500#endif
5501_LT_EOF
5502 # Now try linking the two files.
5503 mv conftest.$ac_objext conftstm.$ac_objext
5504 lt_save_LIBS="$LIBS"
5505 lt_save_CFLAGS="$CFLAGS"
5506 LIBS="conftstm.$ac_objext"
5507 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5509 (eval $ac_link) 2>&5
5510 ac_status=$?
5511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5513 pipe_works=yes
5514 fi
5515 LIBS="$lt_save_LIBS"
5516 CFLAGS="$lt_save_CFLAGS"
5517 else
5518 echo "cannot find nm_test_func in $nlist" >&5
5519 fi
5520 else
5521 echo "cannot find nm_test_var in $nlist" >&5
5522 fi
5523 else
5524 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5525 fi
5526 else
5527 echo "$progname: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 fi
5530 rm -rf conftest* conftst*
5531
5532 # Do not use the global_symbol_pipe unless it works.
5533 if test "$pipe_works" = yes; then
5534 break
5535 else
5536 lt_cv_sys_global_symbol_pipe=
5537 fi
5538done
5539
5540fi
5541
5542if test -z "$lt_cv_sys_global_symbol_pipe"; then
5543 lt_cv_sys_global_symbol_to_cdecl=
5544fi
5545if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5546 { $as_echo "$as_me:$LINENO: result: failed" >&5
5547$as_echo "failed" >&6; }
5548else
5549 { $as_echo "$as_me:$LINENO: result: ok" >&5
5550$as_echo "ok" >&6; }
5551fi
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575# Check whether --enable-libtool-lock was given.
5576if test "${enable_libtool_lock+set}" = set; then
5577 enableval=$enable_libtool_lock;
5578fi
5579
5580test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5581
5582# Some flags need to be propagated to the compiler or linker for good
5583# libtool support.
5584case $host in
5585ia64-*-hpux*)
5586 # Find out which ABI we are using.
5587 echo 'int i;' > conftest.$ac_ext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5590 ac_status=$?
5591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; then
5593 case `/usr/bin/file conftest.$ac_objext` in
5594 *ELF-32*)
5595 HPUX_IA64_MODE="32"
5596 ;;
5597 *ELF-64*)
5598 HPUX_IA64_MODE="64"
5599 ;;
5600 esac
5601 fi
5602 rm -rf conftest*
5603 ;;
5604*-*-irix6*)
5605 # Find out which ABI we are using.
5606 echo '#line 5606 "configure"' > conftest.$ac_ext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; then
5612 if test "$lt_cv_prog_gnu_ld" = yes; then
5613 case `/usr/bin/file conftest.$ac_objext` in
5614 *32-bit*)
5615 LD="${LD-ld} -melf32bsmip"
5616 ;;
5617 *N32*)
5618 LD="${LD-ld} -melf32bmipn32"
5619 ;;
5620 *64-bit*)
5621 LD="${LD-ld} -melf64bmip"
5622 ;;
5623 esac
5624 else
5625 case `/usr/bin/file conftest.$ac_objext` in
5626 *32-bit*)
5627 LD="${LD-ld} -32"
5628 ;;
5629 *N32*)
5630 LD="${LD-ld} -n32"
5631 ;;
5632 *64-bit*)
5633 LD="${LD-ld} -64"
5634 ;;
5635 esac
5636 fi
5637 fi
5638 rm -rf conftest*
5639 ;;
5640
5641x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5642s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5643 # Find out which ABI we are using.
5644 echo 'int i;' > conftest.$ac_ext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; then
5650 case `/usr/bin/file conftest.o` in
5651 *32-bit*)
5652 case $host in
5653 x86_64-*kfreebsd*-gnu)
5654 LD="${LD-ld} -m elf_i386_fbsd"
5655 ;;
5656 x86_64-*linux*)
5657 LD="${LD-ld} -m elf_i386"
5658 ;;
5659 ppc64-*linux*|powerpc64-*linux*)
5660 LD="${LD-ld} -m elf32ppclinux"
5661 ;;
5662 s390x-*linux*)
5663 LD="${LD-ld} -m elf_s390"
5664 ;;
5665 sparc64-*linux*)
5666 LD="${LD-ld} -m elf32_sparc"
5667 ;;
5668 esac
5669 ;;
5670 *64-bit*)
5671 case $host in
5672 x86_64-*kfreebsd*-gnu)
5673 LD="${LD-ld} -m elf_x86_64_fbsd"
5674 ;;
5675 x86_64-*linux*)
5676 LD="${LD-ld} -m elf_x86_64"
5677 ;;
5678 ppc*-*linux*|powerpc*-*linux*)
5679 LD="${LD-ld} -m elf64ppc"
5680 ;;
5681 s390*-*linux*|s390*-*tpf*)
5682 LD="${LD-ld} -m elf64_s390"
5683 ;;
5684 sparc*-*linux*)
5685 LD="${LD-ld} -m elf64_sparc"
5686 ;;
5687 esac
5688 ;;
5689 esac
5690 fi
5691 rm -rf conftest*
5692 ;;
5693
5694*-*-sco3.2v5*)
5695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5696 SAVE_CFLAGS="$CFLAGS"
5697 CFLAGS="$CFLAGS -belf"
5698 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5699$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5700if test "${lt_cv_cc_needs_belf+set}" = set; then
5701 $as_echo_n "(cached) " >&6
5702else
5703 ac_ext=c
5704ac_cpp='$CPP $CPPFLAGS'
5705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
5715
5716int
5717main ()
5718{
5719
5720 ;
5721 return 0;
5722}
5723_ACEOF
5724rm -f conftest.$ac_objext conftest$ac_exeext
5725if { (ac_try="$ac_link"
5726case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729esac
5730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5731$as_echo "$ac_try_echo") >&5
5732 (eval "$ac_link") 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest$ac_exeext && {
5742 test "$cross_compiling" = yes ||
5743 $as_test_x conftest$ac_exeext
5744 }; then
5745 lt_cv_cc_needs_belf=yes
5746else
5747 $as_echo "$as_me: failed program was:" >&5
5748sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 lt_cv_cc_needs_belf=no
5751fi
5752
5753rm -rf conftest.dSYM
5754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5755 conftest$ac_exeext conftest.$ac_ext
5756 ac_ext=c
5757ac_cpp='$CPP $CPPFLAGS'
5758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761
5762fi
5763{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5764$as_echo "$lt_cv_cc_needs_belf" >&6; }
5765 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5766 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5767 CFLAGS="$SAVE_CFLAGS"
5768 fi
5769 ;;
5770sparc*-*solaris*)
5771 # Find out which ABI we are using.
5772 echo 'int i;' > conftest.$ac_ext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5775 ac_status=$?
5776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; then
5778 case `/usr/bin/file conftest.o` in
5779 *64-bit*)
5780 case $lt_cv_prog_gnu_ld in
5781 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5782 *)
5783 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5784 LD="${LD-ld} -64"
5785 fi
5786 ;;
5787 esac
5788 ;;
5789 esac
5790 fi
5791 rm -rf conftest*
5792 ;;
5793esac
5794
5795need_locks="$enable_libtool_lock"
5796
5797
5798 case $host_os in
5799 rhapsody* | darwin*)
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5802set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5804$as_echo_n "checking for $ac_word... " >&6; }
5805if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5806 $as_echo_n "(cached) " >&6
5807else
5808 if test -n "$DSYMUTIL"; then
5809 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822done
5823done
5824IFS=$as_save_IFS
5825
5826fi
5827fi
5828DSYMUTIL=$ac_cv_prog_DSYMUTIL
5829if test -n "$DSYMUTIL"; then
5830 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5831$as_echo "$DSYMUTIL" >&6; }
5832else
5833 { $as_echo "$as_me:$LINENO: result: no" >&5
5834$as_echo "no" >&6; }
5835fi
5836
5837
5838fi
5839if test -z "$ac_cv_prog_DSYMUTIL"; then
5840 ac_ct_DSYMUTIL=$DSYMUTIL
5841 # Extract the first word of "dsymutil", so it can be a program name with args.
5842set dummy dsymutil; ac_word=$2
5843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
5845if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5846 $as_echo_n "(cached) " >&6
5847else
5848 if test -n "$ac_ct_DSYMUTIL"; then
5849 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5869if test -n "$ac_ct_DSYMUTIL"; then
5870 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5871$as_echo "$ac_ct_DSYMUTIL" >&6; }
5872else
5873 { $as_echo "$as_me:$LINENO: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877 if test "x$ac_ct_DSYMUTIL" = x; then
5878 DSYMUTIL=":"
5879 else
5880 case $cross_compiling:$ac_tool_warned in
5881yes:)
5882{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884ac_tool_warned=yes ;;
5885esac
5886 DSYMUTIL=$ac_ct_DSYMUTIL
5887 fi
5888else
5889 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5890fi
5891
5892 if test -n "$ac_tool_prefix"; then
5893 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5894set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5895{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5896$as_echo_n "checking for $ac_word... " >&6; }
5897if test "${ac_cv_prog_NMEDIT+set}" = set; then
5898 $as_echo_n "(cached) " >&6
5899else
5900 if test -n "$NMEDIT"; then
5901 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914done
5915done
5916IFS=$as_save_IFS
5917
5918fi
5919fi
5920NMEDIT=$ac_cv_prog_NMEDIT
5921if test -n "$NMEDIT"; then
5922 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5923$as_echo "$NMEDIT" >&6; }
5924else
5925 { $as_echo "$as_me:$LINENO: result: no" >&5
5926$as_echo "no" >&6; }
5927fi
5928
5929
5930fi
5931if test -z "$ac_cv_prog_NMEDIT"; then
5932 ac_ct_NMEDIT=$NMEDIT
5933 # Extract the first word of "nmedit", so it can be a program name with args.
5934set dummy nmedit; ac_word=$2
5935{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5938 $as_echo_n "(cached) " >&6
5939else
5940 if test -n "$ac_ct_NMEDIT"; then
5941 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5951 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954done
5955done
5956IFS=$as_save_IFS
5957
5958fi
5959fi
5960ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5961if test -n "$ac_ct_NMEDIT"; then
5962 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5963$as_echo "$ac_ct_NMEDIT" >&6; }
5964else
5965 { $as_echo "$as_me:$LINENO: result: no" >&5
5966$as_echo "no" >&6; }
5967fi
5968
5969 if test "x$ac_ct_NMEDIT" = x; then
5970 NMEDIT=":"
5971 else
5972 case $cross_compiling:$ac_tool_warned in
5973yes:)
5974{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976ac_tool_warned=yes ;;
5977esac
5978 NMEDIT=$ac_ct_NMEDIT
5979 fi
5980else
5981 NMEDIT="$ac_cv_prog_NMEDIT"
5982fi
5983
5984 if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5986set dummy ${ac_tool_prefix}lipo; ac_word=$2
5987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
5989if test "${ac_cv_prog_LIPO+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5991else
5992 if test -n "$LIPO"; then
5993 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006done
6007done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012LIPO=$ac_cv_prog_LIPO
6013if test -n "$LIPO"; then
6014 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6015$as_echo "$LIPO" >&6; }
6016else
6017 { $as_echo "$as_me:$LINENO: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021
6022fi
6023if test -z "$ac_cv_prog_LIPO"; then
6024 ac_ct_LIPO=$LIPO
6025 # Extract the first word of "lipo", so it can be a program name with args.
6026set dummy lipo; ac_word=$2
6027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6028$as_echo_n "checking for $ac_word... " >&6; }
6029if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6030 $as_echo_n "(cached) " >&6
6031else
6032 if test -n "$ac_ct_LIPO"; then
6033 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6034else
6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_ac_ct_LIPO="lipo"
6043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046done
6047done
6048IFS=$as_save_IFS
6049
6050fi
6051fi
6052ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6053if test -n "$ac_ct_LIPO"; then
6054 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6055$as_echo "$ac_ct_LIPO" >&6; }
6056else
6057 { $as_echo "$as_me:$LINENO: result: no" >&5
6058$as_echo "no" >&6; }
6059fi
6060
6061 if test "x$ac_ct_LIPO" = x; then
6062 LIPO=":"
6063 else
6064 case $cross_compiling:$ac_tool_warned in
6065yes:)
6066{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068ac_tool_warned=yes ;;
6069esac
6070 LIPO=$ac_ct_LIPO
6071 fi
6072else
6073 LIPO="$ac_cv_prog_LIPO"
6074fi
6075
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6078set dummy ${ac_tool_prefix}otool; ac_word=$2
6079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if test "${ac_cv_prog_OTOOL+set}" = set; then
6082 $as_echo_n "(cached) " >&6
6083else
6084 if test -n "$OTOOL"; then
6085 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098done
6099done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104OTOOL=$ac_cv_prog_OTOOL
6105if test -n "$OTOOL"; then
6106 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6107$as_echo "$OTOOL" >&6; }
6108else
6109 { $as_echo "$as_me:$LINENO: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113
6114fi
6115if test -z "$ac_cv_prog_OTOOL"; then
6116 ac_ct_OTOOL=$OTOOL
6117 # Extract the first word of "otool", so it can be a program name with args.
6118set dummy otool; ac_word=$2
6119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
6121if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6122 $as_echo_n "(cached) " >&6
6123else
6124 if test -n "$ac_ct_OTOOL"; then
6125 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6126else
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_ac_ct_OTOOL="otool"
6135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138done
6139done
6140IFS=$as_save_IFS
6141
6142fi
6143fi
6144ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6145if test -n "$ac_ct_OTOOL"; then
6146 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6147$as_echo "$ac_ct_OTOOL" >&6; }
6148else
6149 { $as_echo "$as_me:$LINENO: result: no" >&5
6150$as_echo "no" >&6; }
6151fi
6152
6153 if test "x$ac_ct_OTOOL" = x; then
6154 OTOOL=":"
6155 else
6156 case $cross_compiling:$ac_tool_warned in
6157yes:)
6158{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160ac_tool_warned=yes ;;
6161esac
6162 OTOOL=$ac_ct_OTOOL
6163 fi
6164else
6165 OTOOL="$ac_cv_prog_OTOOL"
6166fi
6167
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6170set dummy ${ac_tool_prefix}otool64; ac_word=$2
6171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172$as_echo_n "checking for $ac_word... " >&6; }
6173if test "${ac_cv_prog_OTOOL64+set}" = set; then
6174 $as_echo_n "(cached) " >&6
6175else
6176 if test -n "$OTOOL64"; then
6177 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190done
6191done
6192IFS=$as_save_IFS
6193
6194fi
6195fi
6196OTOOL64=$ac_cv_prog_OTOOL64
6197if test -n "$OTOOL64"; then
6198 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6199$as_echo "$OTOOL64" >&6; }
6200else
6201 { $as_echo "$as_me:$LINENO: result: no" >&5
6202$as_echo "no" >&6; }
6203fi
6204
6205
6206fi
6207if test -z "$ac_cv_prog_OTOOL64"; then
6208 ac_ct_OTOOL64=$OTOOL64
6209 # Extract the first word of "otool64", so it can be a program name with args.
6210set dummy otool64; ac_word=$2
6211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212$as_echo_n "checking for $ac_word... " >&6; }
6213if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6215else
6216 if test -n "$ac_ct_OTOOL64"; then
6217 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6218else
6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_OTOOL64="otool64"
6227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230done
6231done
6232IFS=$as_save_IFS
6233
6234fi
6235fi
6236ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6237if test -n "$ac_ct_OTOOL64"; then
6238 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6239$as_echo "$ac_ct_OTOOL64" >&6; }
6240else
6241 { $as_echo "$as_me:$LINENO: result: no" >&5
6242$as_echo "no" >&6; }
6243fi
6244
6245 if test "x$ac_ct_OTOOL64" = x; then
6246 OTOOL64=":"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249yes:)
6250{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252ac_tool_warned=yes ;;
6253esac
6254 OTOOL64=$ac_ct_OTOOL64
6255 fi
6256else
6257 OTOOL64="$ac_cv_prog_OTOOL64"
6258fi
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6287$as_echo_n "checking for -single_module linker flag... " >&6; }
6288if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6289 $as_echo_n "(cached) " >&6
6290else
6291 lt_cv_apple_cc_single_mod=no
6292 if test -z "${LT_MULTI_MODULE}"; then
6293 # By default we will add the -single_module flag. You can override
6294 # by either setting the environment variable LT_MULTI_MODULE
6295 # non-empty at configure time, or by adding -multi_module to the
6296 # link flags.
6297 rm -rf libconftest.dylib*
6298 echo "int foo(void){return 1;}" > conftest.c
6299 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6300-dynamiclib -Wl,-single_module conftest.c" >&5
6301 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6302 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6303 _lt_result=$?
6304 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6305 lt_cv_apple_cc_single_mod=yes
6306 else
6307 cat conftest.err >&5
6308 fi
6309 rm -rf libconftest.dylib*
6310 rm -f conftest.*
6311 fi
6312fi
6313{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6314$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6315 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6316$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6317if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6318 $as_echo_n "(cached) " >&6
6319else
6320 lt_cv_ld_exported_symbols_list=no
6321 save_LDFLAGS=$LDFLAGS
6322 echo "_main" > conftest.sym
6323 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6324 cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
6330
6331int
6332main ()
6333{
6334
6335 ;
6336 return 0;
6337}
6338_ACEOF
6339rm -f conftest.$ac_objext conftest$ac_exeext
6340if { (ac_try="$ac_link"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6346$as_echo "$ac_try_echo") >&5
6347 (eval "$ac_link") 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } && {
6354 test -z "$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 } && test -s conftest$ac_exeext && {
6357 test "$cross_compiling" = yes ||
6358 $as_test_x conftest$ac_exeext
6359 }; then
6360 lt_cv_ld_exported_symbols_list=yes
6361else
6362 $as_echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 lt_cv_ld_exported_symbols_list=no
6366fi
6367
6368rm -rf conftest.dSYM
6369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6370 conftest$ac_exeext conftest.$ac_ext
6371 LDFLAGS="$save_LDFLAGS"
6372
6373fi
6374{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6375$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6376 case $host_os in
6377 rhapsody* | darwin1.[012])
6378 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6379 darwin1.*)
6380 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6381 darwin*) # darwin 5.x on
6382 # if running on 10.5 or later, the deployment target defaults
6383 # to the OS version, if on x86, and 10.4, the deployment
6384 # target defaults to 10.4. Don't you love it?
6385 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6386 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6387 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6388 10.[012]*)
6389 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6390 10.*)
6391 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6392 esac
6393 ;;
6394 esac
6395 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6396 _lt_dar_single_mod='$single_module'
6397 fi
6398 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6399 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6400 else
6401 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6402 fi
6403 if test "$DSYMUTIL" != ":"; then
6404 _lt_dsymutil='~$DSYMUTIL $lib || :'
6405 else
6406 _lt_dsymutil=
6407 fi
6408 ;;
6409 esac
6410
6411ac_ext=c
6412ac_cpp='$CPP $CPPFLAGS'
6413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6417$as_echo_n "checking how to run the C preprocessor... " >&6; }
6418# On Suns, sometimes $CPP names a directory.
6419if test -n "$CPP" && test -d "$CPP"; then
6420 CPP=
6421fi
6422if test -z "$CPP"; then
6423 if test "${ac_cv_prog_CPP+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6425else
6426 # Double quotes because CPP needs to be expanded
6427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6428 do
6429 ac_preproc_ok=false
6430for ac_c_preproc_warn_flag in '' yes
6431do
6432 # Use a header file that comes with gcc, so configuring glibc
6433 # with a fresh cross-compiler works.
6434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6435 # <limits.h> exists even on freestanding compilers.
6436 # On the NeXT, cc -E runs the code through the compiler's parser,
6437 # not just through cpp. "Syntax error" is here to catch this case.
6438 cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h. */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h. */
6444#ifdef __STDC__
6445# include <limits.h>
6446#else
6447# include <assert.h>
6448#endif
6449 Syntax error
6450_ACEOF
6451if { (ac_try="$ac_cpp conftest.$ac_ext"
6452case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455esac
6456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6457$as_echo "$ac_try_echo") >&5
6458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6459 ac_status=$?
6460 grep -v '^ *+' conftest.er1 >conftest.err
6461 rm -f conftest.er1
6462 cat conftest.err >&5
6463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } >/dev/null && {
6465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 }; then
6468 :
6469else
6470 $as_echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
6473 # Broken: fails on valid input.
6474continue
6475fi
6476
6477rm -f conftest.err conftest.$ac_ext
6478
6479 # OK, works on sane cases. Now check whether nonexistent headers
6480 # can be detected and how.
6481 cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h. */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h. */
6487#include <ac_nonexistent.h>
6488_ACEOF
6489if { (ac_try="$ac_cpp conftest.$ac_ext"
6490case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493esac
6494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495$as_echo "$ac_try_echo") >&5
6496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } >/dev/null && {
6503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 }; then
6506 # Broken: success on invalid input.
6507continue
6508else
6509 $as_echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512 # Passes both tests.
6513ac_preproc_ok=:
6514break
6515fi
6516
6517rm -f conftest.err conftest.$ac_ext
6518
6519done
6520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6521rm -f conftest.err conftest.$ac_ext
6522if $ac_preproc_ok; then
6523 break
6524fi
6525
6526 done
6527 ac_cv_prog_CPP=$CPP
6528
6529fi
6530 CPP=$ac_cv_prog_CPP
6531else
6532 ac_cv_prog_CPP=$CPP
6533fi
6534{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6535$as_echo "$CPP" >&6; }
6536ac_preproc_ok=false
6537for ac_c_preproc_warn_flag in '' yes
6538do
6539 # Use a header file that comes with gcc, so configuring glibc
6540 # with a fresh cross-compiler works.
6541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6542 # <limits.h> exists even on freestanding compilers.
6543 # On the NeXT, cc -E runs the code through the compiler's parser,
6544 # not just through cpp. "Syntax error" is here to catch this case.
6545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551#ifdef __STDC__
6552# include <limits.h>
6553#else
6554# include <assert.h>
6555#endif
6556 Syntax error
6557_ACEOF
6558if { (ac_try="$ac_cpp conftest.$ac_ext"
6559case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6564$as_echo "$ac_try_echo") >&5
6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } >/dev/null && {
6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 }; then
6575 :
6576else
6577 $as_echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 # Broken: fails on valid input.
6581continue
6582fi
6583
6584rm -f conftest.err conftest.$ac_ext
6585
6586 # OK, works on sane cases. Now check whether nonexistent headers
6587 # can be detected and how.
6588 cat >conftest.$ac_ext <<_ACEOF
6589/* confdefs.h. */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h. */
6594#include <ac_nonexistent.h>
6595_ACEOF
6596if { (ac_try="$ac_cpp conftest.$ac_ext"
6597case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600esac
6601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6602$as_echo "$ac_try_echo") >&5
6603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } >/dev/null && {
6610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 }; then
6613 # Broken: success on invalid input.
6614continue
6615else
6616 $as_echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 # Passes both tests.
6620ac_preproc_ok=:
6621break
6622fi
6623
6624rm -f conftest.err conftest.$ac_ext
6625
6626done
6627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6628rm -f conftest.err conftest.$ac_ext
6629if $ac_preproc_ok; then
6630 :
6631else
6632 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6634{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6635See \`config.log' for more details." >&5
6636$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6637See \`config.log' for more details." >&2;}
6638 { (exit 1); exit 1; }; }; }
6639fi
6640
6641ac_ext=c
6642ac_cpp='$CPP $CPPFLAGS'
6643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
6647
6648{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6649$as_echo_n "checking for ANSI C header files... " >&6; }
6650if test "${ac_cv_header_stdc+set}" = set; then
6651 $as_echo_n "(cached) " >&6
6652else
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659#include <stdlib.h>
6660#include <stdarg.h>
6661#include <string.h>
6662#include <float.h>
6663
6664int
6665main ()
6666{
6667
6668 ;
6669 return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext
6673if { (ac_try="$ac_compile"
6674case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677esac
6678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679$as_echo "$ac_try_echo") >&5
6680 (eval "$ac_compile") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
6690 ac_cv_header_stdc=yes
6691else
6692 $as_echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_cv_header_stdc=no
6696fi
6697
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699
6700if test $ac_cv_header_stdc = yes; then
6701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6702 cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h. */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h. */
6708#include <string.h>
6709
6710_ACEOF
6711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712 $EGREP "memchr" >/dev/null 2>&1; then
6713 :
6714else
6715 ac_cv_header_stdc=no
6716fi
6717rm -f conftest*
6718
6719fi
6720
6721if test $ac_cv_header_stdc = yes; then
6722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6723 cat >conftest.$ac_ext <<_ACEOF
6724/* confdefs.h. */
6725_ACEOF
6726cat confdefs.h >>conftest.$ac_ext
6727cat >>conftest.$ac_ext <<_ACEOF
6728/* end confdefs.h. */
6729#include <stdlib.h>
6730
6731_ACEOF
6732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6733 $EGREP "free" >/dev/null 2>&1; then
6734 :
6735else
6736 ac_cv_header_stdc=no
6737fi
6738rm -f conftest*
6739
6740fi
6741
6742if test $ac_cv_header_stdc = yes; then
6743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6744 if test "$cross_compiling" = yes; then
6745 :
6746else
6747 cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h. */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h. */
6753#include <ctype.h>
6754#include <stdlib.h>
6755#if ((' ' & 0x0FF) == 0x020)
6756# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6757# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6758#else
6759# define ISLOWER(c) \
6760 (('a' <= (c) && (c) <= 'i') \
6761 || ('j' <= (c) && (c) <= 'r') \
6762 || ('s' <= (c) && (c) <= 'z'))
6763# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6764#endif
6765
6766#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6767int
6768main ()
6769{
6770 int i;
6771 for (i = 0; i < 256; i++)
6772 if (XOR (islower (i), ISLOWER (i))
6773 || toupper (i) != TOUPPER (i))
6774 return 2;
6775 return 0;
6776}
6777_ACEOF
6778rm -f conftest$ac_exeext
6779if { (ac_try="$ac_link"
6780case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783esac
6784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785$as_echo "$ac_try_echo") >&5
6786 (eval "$ac_link") 2>&5
6787 ac_status=$?
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6790 { (case "(($ac_try" in
6791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792 *) ac_try_echo=$ac_try;;
6793esac
6794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6795$as_echo "$ac_try_echo") >&5
6796 (eval "$ac_try") 2>&5
6797 ac_status=$?
6798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 :
6801else
6802 $as_echo "$as_me: program exited with status $ac_status" >&5
6803$as_echo "$as_me: failed program was:" >&5
6804sed 's/^/| /' conftest.$ac_ext >&5
6805
6806( exit $ac_status )
6807ac_cv_header_stdc=no
6808fi
6809rm -rf conftest.dSYM
6810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6811fi
6812
6813
6814fi
6815fi
6816{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6817$as_echo "$ac_cv_header_stdc" >&6; }
6818if test $ac_cv_header_stdc = yes; then
6819
6820cat >>confdefs.h <<\_ACEOF
6821#define STDC_HEADERS 1
6822_ACEOF
6823
6824fi
6825
6826# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6837 inttypes.h stdint.h unistd.h
6838do
6839as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6840{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6841$as_echo_n "checking for $ac_header... " >&6; }
6842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6843 $as_echo_n "(cached) " >&6
6844else
6845 cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851$ac_includes_default
6852
6853#include <$ac_header>
6854_ACEOF
6855rm -f conftest.$ac_objext
6856if { (ac_try="$ac_compile"
6857case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860esac
6861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6862$as_echo "$ac_try_echo") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.$ac_objext; then
6873 eval "$as_ac_Header=yes"
6874else
6875 $as_echo "$as_me: failed program was:" >&5
6876sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 eval "$as_ac_Header=no"
6879fi
6880
6881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882fi
6883ac_res=`eval 'as_val=${'$as_ac_Header'}
6884 $as_echo "$as_val"'`
6885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6886$as_echo "$ac_res" >&6; }
6887as_val=`eval 'as_val=${'$as_ac_Header'}
6888 $as_echo "$as_val"'`
6889 if test "x$as_val" = x""yes; then
6890 cat >>confdefs.h <<_ACEOF
6891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6892_ACEOF
6893
6894fi
6895
6896done
6897
6898
6899
6900for ac_header in dlfcn.h
6901do
6902as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6903{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6904$as_echo_n "checking for $ac_header... " >&6; }
6905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6906 $as_echo_n "(cached) " >&6
6907else
6908 cat >conftest.$ac_ext <<_ACEOF
6909/* confdefs.h. */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h. */
6914$ac_includes_default
6915
6916#include <$ac_header>
6917_ACEOF
6918rm -f conftest.$ac_objext
6919if { (ac_try="$ac_compile"
6920case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923esac
6924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6925$as_echo "$ac_try_echo") >&5
6926 (eval "$ac_compile") 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest.$ac_objext; then
6936 eval "$as_ac_Header=yes"
6937else
6938 $as_echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 eval "$as_ac_Header=no"
6942fi
6943
6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945fi
6946ac_res=`eval 'as_val=${'$as_ac_Header'}
6947 $as_echo "$as_val"'`
6948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6949$as_echo "$ac_res" >&6; }
6950as_val=`eval 'as_val=${'$as_ac_Header'}
6951 $as_echo "$as_val"'`
6952 if test "x$as_val" = x""yes; then
6953 cat >>confdefs.h <<_ACEOF
6954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955_ACEOF
6956
6957fi
6958
6959done
6960
6961
6962
6963# Set options
6964
6965
6966
6967 enable_dlopen=no
6968
6969
6970 enable_win32_dll=no
6971
6972
6973 # Check whether --enable-shared was given.
6974if test "${enable_shared+set}" = set; then
6975 enableval=$enable_shared; p=${PACKAGE-default}
6976 case $enableval in
6977 yes) enable_shared=yes ;;
6978 no) enable_shared=no ;;
6979 *)
6980 enable_shared=no
6981 # Look at the argument we got. We use all the common list separators.
6982 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6983 for pkg in $enableval; do
6984 IFS="$lt_save_ifs"
6985 if test "X$pkg" = "X$p"; then
6986 enable_shared=yes
6987 fi
6988 done
6989 IFS="$lt_save_ifs"
6990 ;;
6991 esac
6992else
6993 enable_shared=yes
6994fi
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 # Check whether --enable-static was given.
7005if test "${enable_static+set}" = set; then
7006 enableval=$enable_static; p=${PACKAGE-default}
7007 case $enableval in
7008 yes) enable_static=yes ;;
7009 no) enable_static=no ;;
7010 *)
7011 enable_static=no
7012 # Look at the argument we got. We use all the common list separators.
7013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7014 for pkg in $enableval; do
7015 IFS="$lt_save_ifs"
7016 if test "X$pkg" = "X$p"; then
7017 enable_static=yes
7018 fi
7019 done
7020 IFS="$lt_save_ifs"
7021 ;;
7022 esac
7023else
7024 enable_static=yes
7025fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036# Check whether --with-pic was given.
7037if test "${with_pic+set}" = set; then
7038 withval=$with_pic; pic_mode="$withval"
7039else
7040 pic_mode=default
7041fi
7042
7043
7044test -z "$pic_mode" && pic_mode=default
7045
7046
7047
7048
7049
7050
7051
7052 # Check whether --enable-fast-install was given.
7053if test "${enable_fast_install+set}" = set; then
7054 enableval=$enable_fast_install; p=${PACKAGE-default}
7055 case $enableval in
7056 yes) enable_fast_install=yes ;;
7057 no) enable_fast_install=no ;;
7058 *)
7059 enable_fast_install=no
7060 # Look at the argument we got. We use all the common list separators.
7061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7062 for pkg in $enableval; do
7063 IFS="$lt_save_ifs"
7064 if test "X$pkg" = "X$p"; then
7065 enable_fast_install=yes
7066 fi
7067 done
7068 IFS="$lt_save_ifs"
7069 ;;
7070 esac
7071else
7072 enable_fast_install=yes
7073fi
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085# This can be used to rebuild libtool when needed
7086LIBTOOL_DEPS="$ltmain"
7087
7088# Always use our own libtool.
7089LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115test -z "$LN_S" && LN_S="ln -s"
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130if test -n "${ZSH_VERSION+set}" ; then
7131 setopt NO_GLOB_SUBST
7132fi
7133
7134{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7135$as_echo_n "checking for objdir... " >&6; }
7136if test "${lt_cv_objdir+set}" = set; then
7137 $as_echo_n "(cached) " >&6
7138else
7139 rm -f .libs 2>/dev/null
7140mkdir .libs 2>/dev/null
7141if test -d .libs; then
7142 lt_cv_objdir=.libs
7143else
7144 # MS-DOS does not allow filenames that begin with a dot.
7145 lt_cv_objdir=_libs
7146fi
7147rmdir .libs 2>/dev/null
7148fi
7149{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7150$as_echo "$lt_cv_objdir" >&6; }
7151objdir=$lt_cv_objdir
7152
7153
7154
7155
7156
7157cat >>confdefs.h <<_ACEOF
7158#define LT_OBJDIR "$lt_cv_objdir/"
7159_ACEOF
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177case $host_os in
7178aix3*)
7179 # AIX sometimes has problems with the GCC collect2 program. For some
7180 # reason, if we set the COLLECT_NAMES environment variable, the problems
7181 # vanish in a puff of smoke.
7182 if test "X${COLLECT_NAMES+set}" != Xset; then
7183 COLLECT_NAMES=
7184 export COLLECT_NAMES
7185 fi
7186 ;;
7187esac
7188
7189# Sed substitution that helps us do robust quoting. It backslashifies
7190# metacharacters that are still active within double-quoted strings.
7191sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7192
7193# Same as above, but do not quote variable references.
7194double_quote_subst='s/\(["`\\]\)/\\\1/g'
7195
7196# Sed substitution to delay expansion of an escaped shell variable in a
7197# double_quote_subst'ed string.
7198delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7199
7200# Sed substitution to delay expansion of an escaped single quote.
7201delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7202
7203# Sed substitution to avoid accidental globbing in evaled expressions
7204no_glob_subst='s/\*/\\\*/g'
7205
7206# Global variables:
7207ofile=libtool
7208can_build_shared=yes
7209
7210# All known linkers require a `.a' archive for static linking (except MSVC,
7211# which needs '.lib').
7212libext=a
7213
7214with_gnu_ld="$lt_cv_prog_gnu_ld"
7215
7216old_CC="$CC"
7217old_CFLAGS="$CFLAGS"
7218
7219# Set sane defaults for various variables
7220test -z "$CC" && CC=cc
7221test -z "$LTCC" && LTCC=$CC
7222test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7223test -z "$LD" && LD=ld
7224test -z "$ac_objext" && ac_objext=o
7225
7226for cc_temp in $compiler""; do
7227 case $cc_temp in
7228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7230 \-*) ;;
7231 *) break;;
7232 esac
7233done
7234cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7235
7236
7237# Only perform the check for file, if the check method requires it
7238test -z "$MAGIC_CMD" && MAGIC_CMD=file
7239case $deplibs_check_method in
7240file_magic*)
7241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7242 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7243$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7244if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7245 $as_echo_n "(cached) " >&6
7246else
7247 case $MAGIC_CMD in
7248[\\/*] | ?:[\\/]*)
7249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7250 ;;
7251*)
7252 lt_save_MAGIC_CMD="$MAGIC_CMD"
7253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7255 for ac_dir in $ac_dummy; do
7256 IFS="$lt_save_ifs"
7257 test -z "$ac_dir" && ac_dir=.
7258 if test -f $ac_dir/${ac_tool_prefix}file; then
7259 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7260 if test -n "$file_magic_test_file"; then
7261 case $deplibs_check_method in
7262 "file_magic "*)
7263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7266 $EGREP "$file_magic_regex" > /dev/null; then
7267 :
7268 else
7269 cat <<_LT_EOF 1>&2
7270
7271*** Warning: the command libtool uses to detect shared libraries,
7272*** $file_magic_cmd, produces output that libtool cannot recognize.
7273*** The result is that libtool may fail to recognize shared libraries
7274*** as such. This will affect the creation of libtool libraries that
7275*** depend on shared libraries, but programs linked with such libtool
7276*** libraries will work regardless of this problem. Nevertheless, you
7277*** may want to report the problem to your system manager and/or to
7278*** bug-libtool@gnu.org
7279
7280_LT_EOF
7281 fi ;;
7282 esac
7283 fi
7284 break
7285 fi
7286 done
7287 IFS="$lt_save_ifs"
7288 MAGIC_CMD="$lt_save_MAGIC_CMD"
7289 ;;
7290esac
7291fi
7292
7293MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7294if test -n "$MAGIC_CMD"; then
7295 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7296$as_echo "$MAGIC_CMD" >&6; }
7297else
7298 { $as_echo "$as_me:$LINENO: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303
7304
7305
7306if test -z "$lt_cv_path_MAGIC_CMD"; then
7307 if test -n "$ac_tool_prefix"; then
7308 { $as_echo "$as_me:$LINENO: checking for file" >&5
7309$as_echo_n "checking for file... " >&6; }
7310if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7311 $as_echo_n "(cached) " >&6
7312else
7313 case $MAGIC_CMD in
7314[\\/*] | ?:[\\/]*)
7315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7316 ;;
7317*)
7318 lt_save_MAGIC_CMD="$MAGIC_CMD"
7319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7321 for ac_dir in $ac_dummy; do
7322 IFS="$lt_save_ifs"
7323 test -z "$ac_dir" && ac_dir=.
7324 if test -f $ac_dir/file; then
7325 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7326 if test -n "$file_magic_test_file"; then
7327 case $deplibs_check_method in
7328 "file_magic "*)
7329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7332 $EGREP "$file_magic_regex" > /dev/null; then
7333 :
7334 else
7335 cat <<_LT_EOF 1>&2
7336
7337*** Warning: the command libtool uses to detect shared libraries,
7338*** $file_magic_cmd, produces output that libtool cannot recognize.
7339*** The result is that libtool may fail to recognize shared libraries
7340*** as such. This will affect the creation of libtool libraries that
7341*** depend on shared libraries, but programs linked with such libtool
7342*** libraries will work regardless of this problem. Nevertheless, you
7343*** may want to report the problem to your system manager and/or to
7344*** bug-libtool@gnu.org
7345
7346_LT_EOF
7347 fi ;;
7348 esac
7349 fi
7350 break
7351 fi
7352 done
7353 IFS="$lt_save_ifs"
7354 MAGIC_CMD="$lt_save_MAGIC_CMD"
7355 ;;
7356esac
7357fi
7358
7359MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7360if test -n "$MAGIC_CMD"; then
7361 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7362$as_echo "$MAGIC_CMD" >&6; }
7363else
7364 { $as_echo "$as_me:$LINENO: result: no" >&5
7365$as_echo "no" >&6; }
7366fi
7367
7368
7369 else
7370 MAGIC_CMD=:
7371 fi
7372fi
7373
7374 fi
7375 ;;
7376esac
7377
7378# Use C for the default configuration in the libtool script
7379
7380lt_save_CC="$CC"
7381ac_ext=c
7382ac_cpp='$CPP $CPPFLAGS'
7383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7385ac_compiler_gnu=$ac_cv_c_compiler_gnu
7386
7387
7388# Source file extension for C test sources.
7389ac_ext=c
7390
7391# Object file extension for compiled C test sources.
7392objext=o
7393objext=$objext
7394
7395# Code to be used in simple compile tests
7396lt_simple_compile_test_code="int some_variable = 0;"
7397
7398# Code to be used in simple link tests
7399lt_simple_link_test_code='int main(){return(0);}'
7400
7401
7402
7403
7404
7405
7406
7407# If no C compiler was specified, use CC.
7408LTCC=${LTCC-"$CC"}
7409
7410# If no C compiler flags were specified, use CFLAGS.
7411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7412
7413# Allow CC to be a program name with arguments.
7414compiler=$CC
7415
7416# Save the default compiler, since it gets overwritten when the other
7417# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7418compiler_DEFAULT=$CC
7419
7420# save warnings/boilerplate of simple test code
7421ac_outfile=conftest.$ac_objext
7422echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7423eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7424_lt_compiler_boilerplate=`cat conftest.err`
7425$RM conftest*
7426
7427ac_outfile=conftest.$ac_objext
7428echo "$lt_simple_link_test_code" >conftest.$ac_ext
7429eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7430_lt_linker_boilerplate=`cat conftest.err`
7431$RM -r conftest*
7432
7433
7434if test -n "$compiler"; then
7435
7436lt_prog_compiler_no_builtin_flag=
7437
7438if test "$GCC" = yes; then
7439 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7440
7441 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7442$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7443if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7444 $as_echo_n "(cached) " >&6
7445else
7446 lt_cv_prog_compiler_rtti_exceptions=no
7447 ac_outfile=conftest.$ac_objext
7448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7449 lt_compiler_flag="-fno-rtti -fno-exceptions"
7450 # Insert the option either (1) after the last *FLAGS variable, or
7451 # (2) before a word containing "conftest.", or (3) at the end.
7452 # Note that $ac_compile itself does not contain backslashes and begins
7453 # with a dollar sign (not a hyphen), so the echo should work correctly.
7454 # The option is referenced via a variable to avoid confusing sed.
7455 lt_compile=`echo "$ac_compile" | $SED \
7456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7458 -e 's:$: $lt_compiler_flag:'`
7459 (eval echo "\"\$as_me:7459: $lt_compile\"" >&5)
7460 (eval "$lt_compile" 2>conftest.err)
7461 ac_status=$?
7462 cat conftest.err >&5
7463 echo "$as_me:7463: \$? = $ac_status" >&5
7464 if (exit $ac_status) && test -s "$ac_outfile"; then
7465 # The compiler can only warn and ignore the option if not recognized
7466 # So say no if there are warnings other than the usual output.
7467 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7470 lt_cv_prog_compiler_rtti_exceptions=yes
7471 fi
7472 fi
7473 $RM conftest*
7474
7475fi
7476{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7477$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7478
7479if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7481else
7482 :
7483fi
7484
7485fi
7486
7487
7488
7489
7490
7491
7492 lt_prog_compiler_wl=
7493lt_prog_compiler_pic=
7494lt_prog_compiler_static=
7495
7496{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7497$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7498
7499 if test "$GCC" = yes; then
7500 lt_prog_compiler_wl='-Wl,'
7501 lt_prog_compiler_static='-static'
7502
7503 case $host_os in
7504 aix*)
7505 # All AIX code is PIC.
7506 if test "$host_cpu" = ia64; then
7507 # AIX 5 now supports IA64 processor
7508 lt_prog_compiler_static='-Bstatic'
7509 fi
7510 ;;
7511
7512 amigaos*)
7513 case $host_cpu in
7514 powerpc)
7515 # see comment about AmigaOS4 .so support
7516 lt_prog_compiler_pic='-fPIC'
7517 ;;
7518 m68k)
7519 # FIXME: we need at least 68020 code to build shared libraries, but
7520 # adding the `-m68020' flag to GCC prevents building anything better,
7521 # like `-m68040'.
7522 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7523 ;;
7524 esac
7525 ;;
7526
7527 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7528 # PIC is the default for these OSes.
7529 ;;
7530
7531 mingw* | cygwin* | pw32* | os2* | cegcc*)
7532 # This hack is so that the source file can tell whether it is being
7533 # built for inclusion in a dll (and should export symbols for example).
7534 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7535 # (--disable-auto-import) libraries
7536 lt_prog_compiler_pic='-DDLL_EXPORT'
7537 ;;
7538
7539 darwin* | rhapsody*)
7540 # PIC is the default on this platform
7541 # Common symbols not allowed in MH_DYLIB files
7542 lt_prog_compiler_pic='-fno-common'
7543 ;;
7544
7545 hpux*)
7546 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7547 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7548 # sets the default TLS model and affects inlining.
7549 case $host_cpu in
7550 hppa*64*)
7551 # +Z the default
7552 ;;
7553 *)
7554 lt_prog_compiler_pic='-fPIC'
7555 ;;
7556 esac
7557 ;;
7558
7559 interix[3-9]*)
7560 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7561 # Instead, we relocate shared libraries at runtime.
7562 ;;
7563
7564 msdosdjgpp*)
7565 # Just because we use GCC doesn't mean we suddenly get shared libraries
7566 # on systems that don't support them.
7567 lt_prog_compiler_can_build_shared=no
7568 enable_shared=no
7569 ;;
7570
7571 *nto* | *qnx*)
7572 # QNX uses GNU C++, but need to define -shared option too, otherwise
7573 # it will coredump.
7574 lt_prog_compiler_pic='-fPIC -shared'
7575 ;;
7576
7577 sysv4*MP*)
7578 if test -d /usr/nec; then
7579 lt_prog_compiler_pic=-Kconform_pic
7580 fi
7581 ;;
7582
7583 *)
7584 lt_prog_compiler_pic='-fPIC'
7585 ;;
7586 esac
7587 else
7588 # PORTME Check for flag to pass linker flags through the system compiler.
7589 case $host_os in
7590 aix*)
7591 lt_prog_compiler_wl='-Wl,'
7592 if test "$host_cpu" = ia64; then
7593 # AIX 5 now supports IA64 processor
7594 lt_prog_compiler_static='-Bstatic'
7595 else
7596 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7597 fi
7598 ;;
7599
7600 mingw* | cygwin* | pw32* | os2* | cegcc*)
7601 # This hack is so that the source file can tell whether it is being
7602 # built for inclusion in a dll (and should export symbols for example).
7603 lt_prog_compiler_pic='-DDLL_EXPORT'
7604 ;;
7605
7606 hpux9* | hpux10* | hpux11*)
7607 lt_prog_compiler_wl='-Wl,'
7608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7609 # not for PA HP-UX.
7610 case $host_cpu in
7611 hppa*64*|ia64*)
7612 # +Z the default
7613 ;;
7614 *)
7615 lt_prog_compiler_pic='+Z'
7616 ;;
7617 esac
7618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7619 lt_prog_compiler_static='${wl}-a ${wl}archive'
7620 ;;
7621
7622 irix5* | irix6* | nonstopux*)
7623 lt_prog_compiler_wl='-Wl,'
7624 # PIC (with -KPIC) is the default.
7625 lt_prog_compiler_static='-non_shared'
7626 ;;
7627
7628 linux* | k*bsd*-gnu)
7629 case $cc_basename in
7630 # old Intel for x86_64 which still supported -KPIC.
7631 ecc*)
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_pic='-KPIC'
7634 lt_prog_compiler_static='-static'
7635 ;;
7636 # icc used to be incompatible with GCC.
7637 # ICC 10 doesn't accept -KPIC any more.
7638 icc* | ifort*)
7639 lt_prog_compiler_wl='-Wl,'
7640 lt_prog_compiler_pic='-fPIC'
7641 lt_prog_compiler_static='-static'
7642 ;;
7643 # Lahey Fortran 8.1.
7644 lf95*)
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='--shared'
7647 lt_prog_compiler_static='--static'
7648 ;;
7649 pgcc* | pgf77* | pgf90* | pgf95*)
7650 # Portland Group compilers (*not* the Pentium gcc compiler,
7651 # which looks to be a dead project)
7652 lt_prog_compiler_wl='-Wl,'
7653 lt_prog_compiler_pic='-fpic'
7654 lt_prog_compiler_static='-Bstatic'
7655 ;;
7656 ccc*)
7657 lt_prog_compiler_wl='-Wl,'
7658 # All Alpha code is PIC.
7659 lt_prog_compiler_static='-non_shared'
7660 ;;
7661 xl*)
7662 # IBM XL C 8.0/Fortran 10.1 on PPC
7663 lt_prog_compiler_wl='-Wl,'
7664 lt_prog_compiler_pic='-qpic'
7665 lt_prog_compiler_static='-qstaticlink'
7666 ;;
7667 *)
7668 case `$CC -V 2>&1 | sed 5q` in
7669 *Sun\ C*)
7670 # Sun C 5.9
7671 lt_prog_compiler_pic='-KPIC'
7672 lt_prog_compiler_static='-Bstatic'
7673 lt_prog_compiler_wl='-Wl,'
7674 ;;
7675 *Sun\ F*)
7676 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-Bstatic'
7679 lt_prog_compiler_wl=''
7680 ;;
7681 esac
7682 ;;
7683 esac
7684 ;;
7685
7686 newsos6)
7687 lt_prog_compiler_pic='-KPIC'
7688 lt_prog_compiler_static='-Bstatic'
7689 ;;
7690
7691 *nto* | *qnx*)
7692 # QNX uses GNU C++, but need to define -shared option too, otherwise
7693 # it will coredump.
7694 lt_prog_compiler_pic='-fPIC -shared'
7695 ;;
7696
7697 osf3* | osf4* | osf5*)
7698 lt_prog_compiler_wl='-Wl,'
7699 # All OSF/1 code is PIC.
7700 lt_prog_compiler_static='-non_shared'
7701 ;;
7702
7703 rdos*)
7704 lt_prog_compiler_static='-non_shared'
7705 ;;
7706
7707 solaris*)
7708 lt_prog_compiler_pic='-KPIC'
7709 lt_prog_compiler_static='-Bstatic'
7710 case $cc_basename in
7711 f77* | f90* | f95*)
7712 lt_prog_compiler_wl='-Qoption ld ';;
7713 *)
7714 lt_prog_compiler_wl='-Wl,';;
7715 esac
7716 ;;
7717
7718 sunos4*)
7719 lt_prog_compiler_wl='-Qoption ld '
7720 lt_prog_compiler_pic='-PIC'
7721 lt_prog_compiler_static='-Bstatic'
7722 ;;
7723
7724 sysv4 | sysv4.2uw2* | sysv4.3*)
7725 lt_prog_compiler_wl='-Wl,'
7726 lt_prog_compiler_pic='-KPIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 ;;
7729
7730 sysv4*MP*)
7731 if test -d /usr/nec ;then
7732 lt_prog_compiler_pic='-Kconform_pic'
7733 lt_prog_compiler_static='-Bstatic'
7734 fi
7735 ;;
7736
7737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_pic='-KPIC'
7740 lt_prog_compiler_static='-Bstatic'
7741 ;;
7742
7743 unicos*)
7744 lt_prog_compiler_wl='-Wl,'
7745 lt_prog_compiler_can_build_shared=no
7746 ;;
7747
7748 uts4*)
7749 lt_prog_compiler_pic='-pic'
7750 lt_prog_compiler_static='-Bstatic'
7751 ;;
7752
7753 *)
7754 lt_prog_compiler_can_build_shared=no
7755 ;;
7756 esac
7757 fi
7758
7759case $host_os in
7760 # For platforms which do not support PIC, -DPIC is meaningless:
7761 *djgpp*)
7762 lt_prog_compiler_pic=
7763 ;;
7764 *)
7765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7766 ;;
7767esac
7768{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7769$as_echo "$lt_prog_compiler_pic" >&6; }
7770
7771
7772
7773
7774
7775
7776#
7777# Check to make sure the PIC flag actually works.
7778#
7779if test -n "$lt_prog_compiler_pic"; then
7780 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7781$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7782if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7783 $as_echo_n "(cached) " >&6
7784else
7785 lt_cv_prog_compiler_pic_works=no
7786 ac_outfile=conftest.$ac_objext
7787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7788 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 # The option is referenced via a variable to avoid confusing sed.
7794 lt_compile=`echo "$ac_compile" | $SED \
7795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7797 -e 's:$: $lt_compiler_flag:'`
7798 (eval echo "\"\$as_me:7798: $lt_compile\"" >&5)
7799 (eval "$lt_compile" 2>conftest.err)
7800 ac_status=$?
7801 cat conftest.err >&5
7802 echo "$as_me:7802: \$? = $ac_status" >&5
7803 if (exit $ac_status) && test -s "$ac_outfile"; then
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings other than the usual output.
7806 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7809 lt_cv_prog_compiler_pic_works=yes
7810 fi
7811 fi
7812 $RM conftest*
7813
7814fi
7815{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7816$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7817
7818if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7819 case $lt_prog_compiler_pic in
7820 "" | " "*) ;;
7821 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7822 esac
7823else
7824 lt_prog_compiler_pic=
7825 lt_prog_compiler_can_build_shared=no
7826fi
7827
7828fi
7829
7830
7831
7832
7833
7834
7835#
7836# Check to make sure the static flag actually works.
7837#
7838wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7839{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7840$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7841if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7842 $as_echo_n "(cached) " >&6
7843else
7844 lt_cv_prog_compiler_static_works=no
7845 save_LDFLAGS="$LDFLAGS"
7846 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7847 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7849 # The linker can only warn and ignore the option if not recognized
7850 # So say no if there are warnings
7851 if test -s conftest.err; then
7852 # Append any errors to the config.log.
7853 cat conftest.err 1>&5
7854 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7856 if diff conftest.exp conftest.er2 >/dev/null; then
7857 lt_cv_prog_compiler_static_works=yes
7858 fi
7859 else
7860 lt_cv_prog_compiler_static_works=yes
7861 fi
7862 fi
7863 $RM -r conftest*
7864 LDFLAGS="$save_LDFLAGS"
7865
7866fi
7867{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7868$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7869
7870if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7871 :
7872else
7873 lt_prog_compiler_static=
7874fi
7875
7876
7877
7878
7879
7880
7881
7882 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7883$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7884if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7885 $as_echo_n "(cached) " >&6
7886else
7887 lt_cv_prog_compiler_c_o=no
7888 $RM -r conftest 2>/dev/null
7889 mkdir conftest
7890 cd conftest
7891 mkdir out
7892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7893
7894 lt_compiler_flag="-o out/conftest2.$ac_objext"
7895 # Insert the option either (1) after the last *FLAGS variable, or
7896 # (2) before a word containing "conftest.", or (3) at the end.
7897 # Note that $ac_compile itself does not contain backslashes and begins
7898 # with a dollar sign (not a hyphen), so the echo should work correctly.
7899 lt_compile=`echo "$ac_compile" | $SED \
7900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7902 -e 's:$: $lt_compiler_flag:'`
7903 (eval echo "\"\$as_me:7903: $lt_compile\"" >&5)
7904 (eval "$lt_compile" 2>out/conftest.err)
7905 ac_status=$?
7906 cat out/conftest.err >&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
7908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7909 then
7910 # The compiler can only warn and ignore the option if not recognized
7911 # So say no if there are warnings
7912 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7915 lt_cv_prog_compiler_c_o=yes
7916 fi
7917 fi
7918 chmod u+w . 2>&5
7919 $RM conftest*
7920 # SGI C++ compiler will create directory out/ii_files/ for
7921 # template instantiation
7922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7923 $RM out/* && rmdir out
7924 cd ..
7925 $RM -r conftest
7926 $RM conftest*
7927
7928fi
7929{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7930$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7931
7932
7933
7934
7935
7936
7937 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7938$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7939if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7940 $as_echo_n "(cached) " >&6
7941else
7942 lt_cv_prog_compiler_c_o=no
7943 $RM -r conftest 2>/dev/null
7944 mkdir conftest
7945 cd conftest
7946 mkdir out
7947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7948
7949 lt_compiler_flag="-o out/conftest2.$ac_objext"
7950 # Insert the option either (1) after the last *FLAGS variable, or
7951 # (2) before a word containing "conftest.", or (3) at the end.
7952 # Note that $ac_compile itself does not contain backslashes and begins
7953 # with a dollar sign (not a hyphen), so the echo should work correctly.
7954 lt_compile=`echo "$ac_compile" | $SED \
7955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7957 -e 's:$: $lt_compiler_flag:'`
7958 (eval echo "\"\$as_me:7958: $lt_compile\"" >&5)
7959 (eval "$lt_compile" 2>out/conftest.err)
7960 ac_status=$?
7961 cat out/conftest.err >&5
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7964 then
7965 # The compiler can only warn and ignore the option if not recognized
7966 # So say no if there are warnings
7967 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7970 lt_cv_prog_compiler_c_o=yes
7971 fi
7972 fi
7973 chmod u+w . 2>&5
7974 $RM conftest*
7975 # SGI C++ compiler will create directory out/ii_files/ for
7976 # template instantiation
7977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7978 $RM out/* && rmdir out
7979 cd ..
7980 $RM -r conftest
7981 $RM conftest*
7982
7983fi
7984{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7985$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7986
7987
7988
7989
7990hard_links="nottested"
7991if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7992 # do not overwrite the value of need_locks provided by the user
7993 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7994$as_echo_n "checking if we can lock with hard links... " >&6; }
7995 hard_links=yes
7996 $RM conftest*
7997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7998 touch conftest.a
7999 ln conftest.a conftest.b 2>&5 || hard_links=no
8000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8001 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8002$as_echo "$hard_links" >&6; }
8003 if test "$hard_links" = no; then
8004 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8005$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8006 need_locks=warn
8007 fi
8008else
8009 need_locks=no
8010fi
8011
8012
8013
8014
8015
8016
8017 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8018$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8019
8020 runpath_var=
8021 allow_undefined_flag=
8022 always_export_symbols=no
8023 archive_cmds=
8024 archive_expsym_cmds=
8025 compiler_needs_object=no
8026 enable_shared_with_static_runtimes=no
8027 export_dynamic_flag_spec=
8028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8029 hardcode_automatic=no
8030 hardcode_direct=no
8031 hardcode_direct_absolute=no
8032 hardcode_libdir_flag_spec=
8033 hardcode_libdir_flag_spec_ld=
8034 hardcode_libdir_separator=
8035 hardcode_minus_L=no
8036 hardcode_shlibpath_var=unsupported
8037 inherit_rpath=no
8038 link_all_deplibs=unknown
8039 module_cmds=
8040 module_expsym_cmds=
8041 old_archive_from_new_cmds=
8042 old_archive_from_expsyms_cmds=
8043 thread_safe_flag_spec=
8044 whole_archive_flag_spec=
8045 # include_expsyms should be a list of space-separated symbols to be *always*
8046 # included in the symbol list
8047 include_expsyms=
8048 # exclude_expsyms can be an extended regexp of symbols to exclude
8049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8051 # as well as any symbol that contains `d'.
8052 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8054 # platforms (ab)use it in PIC code, but their linkers get confused if
8055 # the symbol is explicitly referenced. Since portable code cannot
8056 # rely on this symbol name, it's probably fine to never include it in
8057 # preloaded symbol tables.
8058 # Exclude shared library initialization/finalization symbols.
8059 extract_expsyms_cmds=
8060
8061 case $host_os in
8062 cygwin* | mingw* | pw32* | cegcc*)
8063 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8064 # When not using gcc, we currently assume that we are using
8065 # Microsoft Visual C++.
8066 if test "$GCC" != yes; then
8067 with_gnu_ld=no
8068 fi
8069 ;;
8070 interix*)
8071 # we just hope/assume this is gcc and not c89 (= MSVC++)
8072 with_gnu_ld=yes
8073 ;;
8074 openbsd*)
8075 with_gnu_ld=no
8076 ;;
8077 esac
8078
8079 ld_shlibs=yes
8080 if test "$with_gnu_ld" = yes; then
8081 # If archive_cmds runs LD, not CC, wlarc should be empty
8082 wlarc='${wl}'
8083
8084 # Set some defaults for GNU ld with shared library support. These
8085 # are reset later if shared libraries are not supported. Putting them
8086 # here allows them to be overridden if necessary.
8087 runpath_var=LD_RUN_PATH
8088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8089 export_dynamic_flag_spec='${wl}--export-dynamic'
8090 # ancient GNU ld didn't support --whole-archive et. al.
8091 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8092 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8093 else
8094 whole_archive_flag_spec=
8095 fi
8096 supports_anon_versioning=no
8097 case `$LD -v 2>&1` in
8098 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8099 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8100 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8101 *\ 2.11.*) ;; # other 2.11 versions
8102 *) supports_anon_versioning=yes ;;
8103 esac
8104
8105 # See if GNU ld supports shared libraries.
8106 case $host_os in
8107 aix[3-9]*)
8108 # On AIX/PPC, the GNU linker is very broken
8109 if test "$host_cpu" != ia64; then
8110 ld_shlibs=no
8111 cat <<_LT_EOF 1>&2
8112
8113*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8114*** to be unable to reliably create shared libraries on AIX.
8115*** Therefore, libtool is disabling shared libraries support. If you
8116*** really care for shared libraries, you may want to modify your PATH
8117*** so that a non-GNU linker is found, and then restart.
8118
8119_LT_EOF
8120 fi
8121 ;;
8122
8123 amigaos*)
8124 case $host_cpu in
8125 powerpc)
8126 # see comment about AmigaOS4 .so support
8127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8128 archive_expsym_cmds=''
8129 ;;
8130 m68k)
8131 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)'
8132 hardcode_libdir_flag_spec='-L$libdir'
8133 hardcode_minus_L=yes
8134 ;;
8135 esac
8136 ;;
8137
8138 beos*)
8139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8140 allow_undefined_flag=unsupported
8141 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8142 # support --undefined. This deserves some investigation. FIXME
8143 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144 else
8145 ld_shlibs=no
8146 fi
8147 ;;
8148
8149 cygwin* | mingw* | pw32* | cegcc*)
8150 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8151 # as there is no search path for DLLs.
8152 hardcode_libdir_flag_spec='-L$libdir'
8153 allow_undefined_flag=unsupported
8154 always_export_symbols=no
8155 enable_shared_with_static_runtimes=yes
8156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8157
8158 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8160 # If the export-symbols file already is a .def file (1st line
8161 # is EXPORTS), use it as is; otherwise, prepend...
8162 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8163 cp $export_symbols $output_objdir/$soname.def;
8164 else
8165 echo EXPORTS > $output_objdir/$soname.def;
8166 cat $export_symbols >> $output_objdir/$soname.def;
8167 fi~
8168 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8169 else
8170 ld_shlibs=no
8171 fi
8172 ;;
8173
8174 interix[3-9]*)
8175 hardcode_direct=no
8176 hardcode_shlibpath_var=no
8177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8178 export_dynamic_flag_spec='${wl}-E'
8179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8180 # Instead, shared libraries are loaded at an image base (0x10000000 by
8181 # default) and relocated if they conflict, which is a slow very memory
8182 # consuming and fragmenting process. To avoid this, we pick a random,
8183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8186 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'
8187 ;;
8188
8189 gnu* | linux* | tpf* | k*bsd*-gnu)
8190 tmp_diet=no
8191 if test "$host_os" = linux-dietlibc; then
8192 case $cc_basename in
8193 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8194 esac
8195 fi
8196 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8197 && test "$tmp_diet" = no
8198 then
8199 tmp_addflag=
8200 tmp_sharedflag='-shared'
8201 case $cc_basename,$host_cpu in
8202 pgcc*) # Portland Group C compiler
8203 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'
8204 tmp_addflag=' $pic_flag'
8205 ;;
8206 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8207 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'
8208 tmp_addflag=' $pic_flag -Mnomain' ;;
8209 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8210 tmp_addflag=' -i_dynamic' ;;
8211 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8212 tmp_addflag=' -i_dynamic -nofor_main' ;;
8213 ifc* | ifort*) # Intel Fortran compiler
8214 tmp_addflag=' -nofor_main' ;;
8215 lf95*) # Lahey Fortran 8.1
8216 whole_archive_flag_spec=
8217 tmp_sharedflag='--shared' ;;
8218 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8219 tmp_sharedflag='-qmkshrobj'
8220 tmp_addflag= ;;
8221 esac
8222 case `$CC -V 2>&1 | sed 5q` in
8223 *Sun\ C*) # Sun C 5.9
8224 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'
8225 compiler_needs_object=yes
8226 tmp_sharedflag='-G' ;;
8227 *Sun\ F*) # Sun Fortran 8.3
8228 tmp_sharedflag='-G' ;;
8229 esac
8230 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231
8232 if test "x$supports_anon_versioning" = xyes; then
8233 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8234 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8235 echo "local: *; };" >> $output_objdir/$libname.ver~
8236 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8237 fi
8238
8239 case $cc_basename in
8240 xlf*)
8241 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8242 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8243 hardcode_libdir_flag_spec=
8244 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8245 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8246 if test "x$supports_anon_versioning" = xyes; then
8247 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8249 echo "local: *; };" >> $output_objdir/$libname.ver~
8250 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8251 fi
8252 ;;
8253 esac
8254 else
8255 ld_shlibs=no
8256 fi
8257 ;;
8258
8259 netbsd*)
8260 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8261 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8262 wlarc=
8263 else
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 fi
8267 ;;
8268
8269 solaris*)
8270 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8271 ld_shlibs=no
8272 cat <<_LT_EOF 1>&2
8273
8274*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8275*** create shared libraries on Solaris systems. Therefore, libtool
8276*** is disabling shared libraries support. We urge you to upgrade GNU
8277*** binutils to release 2.9.1 or newer. Another option is to modify
8278*** your PATH or compiler configuration so that the native linker is
8279*** used, and then restart.
8280
8281_LT_EOF
8282 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8285 else
8286 ld_shlibs=no
8287 fi
8288 ;;
8289
8290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8291 case `$LD -v 2>&1` in
8292 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8293 ld_shlibs=no
8294 cat <<_LT_EOF 1>&2
8295
8296*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8297*** reliably create shared libraries on SCO systems. Therefore, libtool
8298*** is disabling shared libraries support. We urge you to upgrade GNU
8299*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8300*** your PATH or compiler configuration so that the native linker is
8301*** used, and then restart.
8302
8303_LT_EOF
8304 ;;
8305 *)
8306 # For security reasons, it is highly recommended that you always
8307 # use absolute paths for naming shared libraries, and exclude the
8308 # DT_RUNPATH tag from executables and libraries. But doing so
8309 # requires that you compile everything twice, which is a pain.
8310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8314 else
8315 ld_shlibs=no
8316 fi
8317 ;;
8318 esac
8319 ;;
8320
8321 sunos4*)
8322 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8323 wlarc=
8324 hardcode_direct=yes
8325 hardcode_shlibpath_var=no
8326 ;;
8327
8328 *)
8329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8332 else
8333 ld_shlibs=no
8334 fi
8335 ;;
8336 esac
8337
8338 if test "$ld_shlibs" = no; then
8339 runpath_var=
8340 hardcode_libdir_flag_spec=
8341 export_dynamic_flag_spec=
8342 whole_archive_flag_spec=
8343 fi
8344 else
8345 # PORTME fill in a description of your system's linker (not GNU ld)
8346 case $host_os in
8347 aix3*)
8348 allow_undefined_flag=unsupported
8349 always_export_symbols=yes
8350 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'
8351 # Note: this linker hardcodes the directories in LIBPATH if there
8352 # are no directories specified by -L.
8353 hardcode_minus_L=yes
8354 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8355 # Neither direct hardcoding nor static linking is supported with a
8356 # broken collect2.
8357 hardcode_direct=unsupported
8358 fi
8359 ;;
8360
8361 aix[4-9]*)
8362 if test "$host_cpu" = ia64; then
8363 # On IA64, the linker does run time linking by default, so we don't
8364 # have to do anything special.
8365 aix_use_runtimelinking=no
8366 exp_sym_flag='-Bexport'
8367 no_entry_flag=""
8368 else
8369 # If we're using GNU nm, then we don't want the "-C" option.
8370 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8371 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8372 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'
8373 else
8374 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'
8375 fi
8376 aix_use_runtimelinking=no
8377
8378 # Test if we are trying to use run time linking or normal
8379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8380 # need to do runtime linking.
8381 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8382 for ld_flag in $LDFLAGS; do
8383 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8384 aix_use_runtimelinking=yes
8385 break
8386 fi
8387 done
8388 ;;
8389 esac
8390
8391 exp_sym_flag='-bexport'
8392 no_entry_flag='-bnoentry'
8393 fi
8394
8395 # When large executables or shared objects are built, AIX ld can
8396 # have problems creating the table of contents. If linking a library
8397 # or program results in "error TOC overflow" add -mminimal-toc to
8398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8400
8401 archive_cmds=''
8402 hardcode_direct=yes
8403 hardcode_direct_absolute=yes
8404 hardcode_libdir_separator=':'
8405 link_all_deplibs=yes
8406 file_list_spec='${wl}-f,'
8407
8408 if test "$GCC" = yes; then
8409 case $host_os in aix4.[012]|aix4.[012].*)
8410 # We only want to do this on AIX 4.2 and lower, the check
8411 # below for broken collect2 doesn't work under 4.3+
8412 collect2name=`${CC} -print-prog-name=collect2`
8413 if test -f "$collect2name" &&
8414 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8415 then
8416 # We have reworked collect2
8417 :
8418 else
8419 # We have old collect2
8420 hardcode_direct=unsupported
8421 # It fails to find uninstalled libraries when the uninstalled
8422 # path is not listed in the libpath. Setting hardcode_minus_L
8423 # to unsupported forces relinking
8424 hardcode_minus_L=yes
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_libdir_separator=
8427 fi
8428 ;;
8429 esac
8430 shared_flag='-shared'
8431 if test "$aix_use_runtimelinking" = yes; then
8432 shared_flag="$shared_flag "'${wl}-G'
8433 fi
8434 else
8435 # not using gcc
8436 if test "$host_cpu" = ia64; then
8437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8438 # chokes on -Wl,-G. The following line is correct:
8439 shared_flag='-G'
8440 else
8441 if test "$aix_use_runtimelinking" = yes; then
8442 shared_flag='${wl}-G'
8443 else
8444 shared_flag='${wl}-bM:SRE'
8445 fi
8446 fi
8447 fi
8448
8449 export_dynamic_flag_spec='${wl}-bexpall'
8450 # It seems that -bexpall does not export symbols beginning with
8451 # underscore (_), so it is better to generate a list of symbols to export.
8452 always_export_symbols=yes
8453 if test "$aix_use_runtimelinking" = yes; then
8454 # Warning - without using the other runtime loading flags (-brtl),
8455 # -berok will link without error, but may produce a broken library.
8456 allow_undefined_flag='-berok'
8457 # Determine the default libpath from the value encoded in an
8458 # empty executable.
8459 cat >conftest.$ac_ext <<_ACEOF
8460/* confdefs.h. */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h. */
8465
8466int
8467main ()
8468{
8469
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474rm -f conftest.$ac_objext conftest$ac_exeext
8475if { (ac_try="$ac_link"
8476case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8481$as_echo "$ac_try_echo") >&5
8482 (eval "$ac_link") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest$ac_exeext && {
8492 test "$cross_compiling" = yes ||
8493 $as_test_x conftest$ac_exeext
8494 }; then
8495
8496lt_aix_libpath_sed='
8497 /Import File Strings/,/^$/ {
8498 /^0/ {
8499 s/^0 *\(.*\)$/\1/
8500 p
8501 }
8502 }'
8503aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8504# Check for a 64-bit object if we didn't find anything.
8505if test -z "$aix_libpath"; then
8506 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8507fi
8508else
8509 $as_echo "$as_me: failed program was:" >&5
8510sed 's/^/| /' conftest.$ac_ext >&5
8511
8512
8513fi
8514
8515rm -rf conftest.dSYM
8516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8517 conftest$ac_exeext conftest.$ac_ext
8518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519
8520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8521 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"
8522 else
8523 if test "$host_cpu" = ia64; then
8524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8525 allow_undefined_flag="-z nodefs"
8526 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"
8527 else
8528 # Determine the default libpath from the value encoded in an
8529 # empty executable.
8530 cat >conftest.$ac_ext <<_ACEOF
8531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
8536
8537int
8538main ()
8539{
8540
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545rm -f conftest.$ac_objext conftest$ac_exeext
8546if { (ac_try="$ac_link"
8547case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550esac
8551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552$as_echo "$ac_try_echo") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest$ac_exeext && {
8563 test "$cross_compiling" = yes ||
8564 $as_test_x conftest$ac_exeext
8565 }; then
8566
8567lt_aix_libpath_sed='
8568 /Import File Strings/,/^$/ {
8569 /^0/ {
8570 s/^0 *\(.*\)$/\1/
8571 p
8572 }
8573 }'
8574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575# Check for a 64-bit object if we didn't find anything.
8576if test -z "$aix_libpath"; then
8577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8578fi
8579else
8580 $as_echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583
8584fi
8585
8586rm -rf conftest.dSYM
8587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8588 conftest$ac_exeext conftest.$ac_ext
8589if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8590
8591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8592 # Warning - without using the other run time loading flags,
8593 # -berok will link without error, but may produce a broken library.
8594 no_undefined_flag=' ${wl}-bernotok'
8595 allow_undefined_flag=' ${wl}-berok'
8596 # Exported symbols can be pulled into shared objects from archives
8597 whole_archive_flag_spec='$convenience'
8598 archive_cmds_need_lc=yes
8599 # This is similar to how AIX traditionally builds its shared libraries.
8600 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'
8601 fi
8602 fi
8603 ;;
8604
8605 amigaos*)
8606 case $host_cpu in
8607 powerpc)
8608 # see comment about AmigaOS4 .so support
8609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8610 archive_expsym_cmds=''
8611 ;;
8612 m68k)
8613 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)'
8614 hardcode_libdir_flag_spec='-L$libdir'
8615 hardcode_minus_L=yes
8616 ;;
8617 esac
8618 ;;
8619
8620 bsdi[45]*)
8621 export_dynamic_flag_spec=-rdynamic
8622 ;;
8623
8624 cygwin* | mingw* | pw32* | cegcc*)
8625 # When not using gcc, we currently assume that we are using
8626 # Microsoft Visual C++.
8627 # hardcode_libdir_flag_spec is actually meaningless, as there is
8628 # no search path for DLLs.
8629 hardcode_libdir_flag_spec=' '
8630 allow_undefined_flag=unsupported
8631 # Tell ltmain to make .lib files, not .a files.
8632 libext=lib
8633 # Tell ltmain to make .dll files, not .so files.
8634 shrext_cmds=".dll"
8635 # FIXME: Setting linknames here is a bad hack.
8636 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8637 # The linker will automatically build a .lib file if we build a DLL.
8638 old_archive_from_new_cmds='true'
8639 # FIXME: Should let the user specify the lib program.
8640 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8641 fix_srcfile_path='`cygpath -w "$srcfile"`'
8642 enable_shared_with_static_runtimes=yes
8643 ;;
8644
8645 darwin* | rhapsody*)
8646
8647
8648 archive_cmds_need_lc=no
8649 hardcode_direct=no
8650 hardcode_automatic=yes
8651 hardcode_shlibpath_var=unsupported
8652 whole_archive_flag_spec=''
8653 link_all_deplibs=yes
8654 allow_undefined_flag="$_lt_dar_allow_undefined"
8655 case $cc_basename in
8656 ifort*) _lt_dar_can_shared=yes ;;
8657 *) _lt_dar_can_shared=$GCC ;;
8658 esac
8659 if test "$_lt_dar_can_shared" = "yes"; then
8660 output_verbose_link_cmd=echo
8661 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8662 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8663 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}"
8664 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}"
8665
8666 else
8667 ld_shlibs=no
8668 fi
8669
8670 ;;
8671
8672 dgux*)
8673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674 hardcode_libdir_flag_spec='-L$libdir'
8675 hardcode_shlibpath_var=no
8676 ;;
8677
8678 freebsd1*)
8679 ld_shlibs=no
8680 ;;
8681
8682 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8683 # support. Future versions do this automatically, but an explicit c++rt0.o
8684 # does not break anything, and helps significantly (at the cost of a little
8685 # extra space).
8686 freebsd2.2*)
8687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8688 hardcode_libdir_flag_spec='-R$libdir'
8689 hardcode_direct=yes
8690 hardcode_shlibpath_var=no
8691 ;;
8692
8693 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8694 freebsd2*)
8695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_direct=yes
8697 hardcode_minus_L=yes
8698 hardcode_shlibpath_var=no
8699 ;;
8700
8701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8702 freebsd* | dragonfly*)
8703 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8704 hardcode_libdir_flag_spec='-R$libdir'
8705 hardcode_direct=yes
8706 hardcode_shlibpath_var=no
8707 ;;
8708
8709 hpux9*)
8710 if test "$GCC" = yes; then
8711 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'
8712 else
8713 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'
8714 fi
8715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8716 hardcode_libdir_separator=:
8717 hardcode_direct=yes
8718
8719 # hardcode_minus_L: Not really in the search PATH,
8720 # but as the default location of the library.
8721 hardcode_minus_L=yes
8722 export_dynamic_flag_spec='${wl}-E'
8723 ;;
8724
8725 hpux10*)
8726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 else
8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8730 fi
8731 if test "$with_gnu_ld" = no; then
8732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733 hardcode_libdir_flag_spec_ld='+b $libdir'
8734 hardcode_libdir_separator=:
8735 hardcode_direct=yes
8736 hardcode_direct_absolute=yes
8737 export_dynamic_flag_spec='${wl}-E'
8738 # hardcode_minus_L: Not really in the search PATH,
8739 # but as the default location of the library.
8740 hardcode_minus_L=yes
8741 fi
8742 ;;
8743
8744 hpux11*)
8745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8746 case $host_cpu in
8747 hppa*64*)
8748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 ;;
8750 ia64*)
8751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8752 ;;
8753 *)
8754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8755 ;;
8756 esac
8757 else
8758 case $host_cpu in
8759 hppa*64*)
8760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 ;;
8762 ia64*)
8763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8764 ;;
8765 *)
8766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8767 ;;
8768 esac
8769 fi
8770 if test "$with_gnu_ld" = no; then
8771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8772 hardcode_libdir_separator=:
8773
8774 case $host_cpu in
8775 hppa*64*|ia64*)
8776 hardcode_direct=no
8777 hardcode_shlibpath_var=no
8778 ;;
8779 *)
8780 hardcode_direct=yes
8781 hardcode_direct_absolute=yes
8782 export_dynamic_flag_spec='${wl}-E'
8783
8784 # hardcode_minus_L: Not really in the search PATH,
8785 # but as the default location of the library.
8786 hardcode_minus_L=yes
8787 ;;
8788 esac
8789 fi
8790 ;;
8791
8792 irix5* | irix6* | nonstopux*)
8793 if test "$GCC" = yes; then
8794 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'
8795 # Try to use the -exported_symbol ld option, if it does not
8796 # work, assume that -exports_file does not work either and
8797 # implicitly export all symbols.
8798 save_LDFLAGS="$LDFLAGS"
8799 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8800 cat >conftest.$ac_ext <<_ACEOF
8801int foo(void) {}
8802_ACEOF
8803rm -f conftest.$ac_objext conftest$ac_exeext
8804if { (ac_try="$ac_link"
8805case "(($ac_try" in
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8808esac
8809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8810$as_echo "$ac_try_echo") >&5
8811 (eval "$ac_link") 2>conftest.er1
8812 ac_status=$?
8813 grep -v '^ *+' conftest.er1 >conftest.err
8814 rm -f conftest.er1
8815 cat conftest.err >&5
8816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && {
8818 test -z "$ac_c_werror_flag" ||
8819 test ! -s conftest.err
8820 } && test -s conftest$ac_exeext && {
8821 test "$cross_compiling" = yes ||
8822 $as_test_x conftest$ac_exeext
8823 }; then
8824 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'
8825
8826else
8827 $as_echo "$as_me: failed program was:" >&5
8828sed 's/^/| /' conftest.$ac_ext >&5
8829
8830
8831fi
8832
8833rm -rf conftest.dSYM
8834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LDFLAGS="$save_LDFLAGS"
8837 else
8838 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'
8839 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'
8840 fi
8841 archive_cmds_need_lc='no'
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843 hardcode_libdir_separator=:
8844 inherit_rpath=yes
8845 link_all_deplibs=yes
8846 ;;
8847
8848 netbsd*)
8849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8851 else
8852 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8853 fi
8854 hardcode_libdir_flag_spec='-R$libdir'
8855 hardcode_direct=yes
8856 hardcode_shlibpath_var=no
8857 ;;
8858
8859 newsos6)
8860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861 hardcode_direct=yes
8862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863 hardcode_libdir_separator=:
8864 hardcode_shlibpath_var=no
8865 ;;
8866
8867 *nto* | *qnx*)
8868 ;;
8869
8870 openbsd*)
8871 if test -f /usr/libexec/ld.so; then
8872 hardcode_direct=yes
8873 hardcode_shlibpath_var=no
8874 hardcode_direct_absolute=yes
8875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8879 export_dynamic_flag_spec='${wl}-E'
8880 else
8881 case $host_os in
8882 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_libdir_flag_spec='-R$libdir'
8885 ;;
8886 *)
8887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8889 ;;
8890 esac
8891 fi
8892 else
8893 ld_shlibs=no
8894 fi
8895 ;;
8896
8897 os2*)
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 hardcode_minus_L=yes
8900 allow_undefined_flag=unsupported
8901 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'
8902 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8903 ;;
8904
8905 osf3*)
8906 if test "$GCC" = yes; then
8907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8908 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'
8909 else
8910 allow_undefined_flag=' -expect_unresolved \*'
8911 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'
8912 fi
8913 archive_cmds_need_lc='no'
8914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915 hardcode_libdir_separator=:
8916 ;;
8917
8918 osf4* | osf5*) # as osf3* with the addition of -msym flag
8919 if test "$GCC" = yes; then
8920 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8921 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'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 else
8924 allow_undefined_flag=' -expect_unresolved \*'
8925 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'
8926 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~
8927 $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'
8928
8929 # Both c and cxx compiler support -rpath directly
8930 hardcode_libdir_flag_spec='-rpath $libdir'
8931 fi
8932 archive_cmds_need_lc='no'
8933 hardcode_libdir_separator=:
8934 ;;
8935
8936 solaris*)
8937 no_undefined_flag=' -z defs'
8938 if test "$GCC" = yes; then
8939 wlarc='${wl}'
8940 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8942 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8943 else
8944 case `$CC -V 2>&1` in
8945 *"Compilers 5.0"*)
8946 wlarc=''
8947 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8950 ;;
8951 *)
8952 wlarc='${wl}'
8953 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8955 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8956 ;;
8957 esac
8958 fi
8959 hardcode_libdir_flag_spec='-R$libdir'
8960 hardcode_shlibpath_var=no
8961 case $host_os in
8962 solaris2.[0-5] | solaris2.[0-5].*) ;;
8963 *)
8964 # The compiler driver will combine and reorder linker options,
8965 # but understands `-z linker_flag'. GCC discards it without `$wl',
8966 # but is careful enough not to reorder.
8967 # Supported since Solaris 2.6 (maybe 2.5.1?)
8968 if test "$GCC" = yes; then
8969 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8970 else
8971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8972 fi
8973 ;;
8974 esac
8975 link_all_deplibs=yes
8976 ;;
8977
8978 sunos4*)
8979 if test "x$host_vendor" = xsequent; then
8980 # Use $CC to link under sequent, because it throws in some extra .o
8981 # files that make .init and .fini sections work.
8982 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8983 else
8984 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8985 fi
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_direct=yes
8988 hardcode_minus_L=yes
8989 hardcode_shlibpath_var=no
8990 ;;
8991
8992 sysv4)
8993 case $host_vendor in
8994 sni)
8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_direct=yes # is this really true???
8997 ;;
8998 siemens)
8999 ## LD is ld it makes a PLAMLIB
9000 ## CC just makes a GrossModule.
9001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9002 reload_cmds='$CC -r -o $output$reload_objs'
9003 hardcode_direct=no
9004 ;;
9005 motorola)
9006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9008 ;;
9009 esac
9010 runpath_var='LD_RUN_PATH'
9011 hardcode_shlibpath_var=no
9012 ;;
9013
9014 sysv4.3*)
9015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_shlibpath_var=no
9017 export_dynamic_flag_spec='-Bexport'
9018 ;;
9019
9020 sysv4*MP*)
9021 if test -d /usr/nec; then
9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_shlibpath_var=no
9024 runpath_var=LD_RUN_PATH
9025 hardcode_runpath_var=yes
9026 ld_shlibs=yes
9027 fi
9028 ;;
9029
9030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9031 no_undefined_flag='${wl}-z,text'
9032 archive_cmds_need_lc=no
9033 hardcode_shlibpath_var=no
9034 runpath_var='LD_RUN_PATH'
9035
9036 if test "$GCC" = yes; then
9037 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 fi
9043 ;;
9044
9045 sysv5* | sco3.2v5* | sco5v6*)
9046 # Note: We can NOT use -z defs as we might desire, because we do not
9047 # link with -lc, and that would cause any symbols used from libc to
9048 # always be unresolved, which means just about no library would
9049 # ever link correctly. If we're not using GNU ld we use -z text
9050 # though, which does catch some bad symbols but isn't as heavy-handed
9051 # as -z defs.
9052 no_undefined_flag='${wl}-z,text'
9053 allow_undefined_flag='${wl}-z,nodefs'
9054 archive_cmds_need_lc=no
9055 hardcode_shlibpath_var=no
9056 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9057 hardcode_libdir_separator=':'
9058 link_all_deplibs=yes
9059 export_dynamic_flag_spec='${wl}-Bexport'
9060 runpath_var='LD_RUN_PATH'
9061
9062 if test "$GCC" = yes; then
9063 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 else
9066 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068 fi
9069 ;;
9070
9071 uts4*)
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_libdir_flag_spec='-L$libdir'
9074 hardcode_shlibpath_var=no
9075 ;;
9076
9077 *)
9078 ld_shlibs=no
9079 ;;
9080 esac
9081
9082 if test x$host_vendor = xsni; then
9083 case $host in
9084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9085 export_dynamic_flag_spec='${wl}-Blargedynsym'
9086 ;;
9087 esac
9088 fi
9089 fi
9090
9091{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9092$as_echo "$ld_shlibs" >&6; }
9093test "$ld_shlibs" = no && can_build_shared=no
9094
9095with_gnu_ld=$with_gnu_ld
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111#
9112# Do we need to explicitly link libc?
9113#
9114case "x$archive_cmds_need_lc" in
9115x|xyes)
9116 # Assume -lc should be added
9117 archive_cmds_need_lc=yes
9118
9119 if test "$enable_shared" = yes && test "$GCC" = yes; then
9120 case $archive_cmds in
9121 *'~'*)
9122 # FIXME: we may have to deal with multi-command sequences.
9123 ;;
9124 '$CC '*)
9125 # Test whether the compiler implicitly links with -lc since on some
9126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9127 # to ld, don't add -lc before -lgcc.
9128 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9129$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9130 $RM conftest*
9131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9132
9133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9134 (eval $ac_compile) 2>&5
9135 ac_status=$?
9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } 2>conftest.err; then
9138 soname=conftest
9139 lib=conftest
9140 libobjs=conftest.$ac_objext
9141 deplibs=
9142 wl=$lt_prog_compiler_wl
9143 pic_flag=$lt_prog_compiler_pic
9144 compiler_flags=-v
9145 linker_flags=-v
9146 verstring=
9147 output_objdir=.
9148 libname=conftest
9149 lt_save_allow_undefined_flag=$allow_undefined_flag
9150 allow_undefined_flag=
9151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9152 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9153 ac_status=$?
9154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }
9156 then
9157 archive_cmds_need_lc=no
9158 else
9159 archive_cmds_need_lc=yes
9160 fi
9161 allow_undefined_flag=$lt_save_allow_undefined_flag
9162 else
9163 cat conftest.err 1>&5
9164 fi
9165 $RM conftest*
9166 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9167$as_echo "$archive_cmds_need_lc" >&6; }
9168 ;;
9169 esac
9170 fi
9171 ;;
9172esac
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9331$as_echo_n "checking dynamic linker characteristics... " >&6; }
9332
9333if test "$GCC" = yes; then
9334 case $host_os in
9335 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9336 *) lt_awk_arg="/^libraries:/" ;;
9337 esac
9338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9339 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9340 # if the path contains ";" then we assume it to be the separator
9341 # otherwise default to the standard path separator (i.e. ":") - it is
9342 # assumed that no part of a normal pathname contains ";" but that should
9343 # okay in the real world where ";" in dirpaths is itself problematic.
9344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9345 else
9346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9347 fi
9348 # Ok, now we have the path, separated by spaces, we can step through it
9349 # and add multilib dir if necessary.
9350 lt_tmp_lt_search_path_spec=
9351 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9352 for lt_sys_path in $lt_search_path_spec; do
9353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9355 else
9356 test -d "$lt_sys_path" && \
9357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9358 fi
9359 done
9360 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9361BEGIN {RS=" "; FS="/|\n";} {
9362 lt_foo="";
9363 lt_count=0;
9364 for (lt_i = NF; lt_i > 0; lt_i--) {
9365 if ($lt_i != "" && $lt_i != ".") {
9366 if ($lt_i == "..") {
9367 lt_count++;
9368 } else {
9369 if (lt_count == 0) {
9370 lt_foo="/" $lt_i lt_foo;
9371 } else {
9372 lt_count--;
9373 }
9374 }
9375 }
9376 }
9377 if (lt_foo != "") { lt_freq[lt_foo]++; }
9378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9379}'`
9380 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9381else
9382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9383fi
9384library_names_spec=
9385libname_spec='lib$name'
9386soname_spec=
9387shrext_cmds=".so"
9388postinstall_cmds=
9389postuninstall_cmds=
9390finish_cmds=
9391finish_eval=
9392shlibpath_var=
9393shlibpath_overrides_runpath=unknown
9394version_type=none
9395dynamic_linker="$host_os ld.so"
9396sys_lib_dlsearch_path_spec="/lib /usr/lib"
9397need_lib_prefix=unknown
9398hardcode_into_libs=no
9399
9400# when you set need_version to no, make sure it does not cause -set_version
9401# flags to be left without arguments
9402need_version=unknown
9403
9404case $host_os in
9405aix3*)
9406 version_type=linux
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9408 shlibpath_var=LIBPATH
9409
9410 # AIX 3 has no versioning support, so we append a major version to the name.
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 ;;
9413
9414aix[4-9]*)
9415 version_type=linux
9416 need_lib_prefix=no
9417 need_version=no
9418 hardcode_into_libs=yes
9419 if test "$host_cpu" = ia64; then
9420 # AIX 5 supports IA64
9421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 else
9424 # With GCC up to 2.95.x, collect2 would create an import file
9425 # for dependence libraries. The import file would start with
9426 # the line `#! .'. This would cause the generated library to
9427 # depend on `.', always an invalid library. This was fixed in
9428 # development snapshots of GCC prior to 3.0.
9429 case $host_os in
9430 aix4 | aix4.[01] | aix4.[01].*)
9431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9432 echo ' yes '
9433 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9434 :
9435 else
9436 can_build_shared=no
9437 fi
9438 ;;
9439 esac
9440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9441 # soname into executable. Probably we can add versioning support to
9442 # collect2, so additional links can be useful in future.
9443 if test "$aix_use_runtimelinking" = yes; then
9444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9445 # instead of lib<name>.a to let people know that these are not
9446 # typical AIX shared libraries.
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 else
9449 # We preserve .a as extension for shared libraries through AIX4.2
9450 # and later when we are not doing run time linking.
9451 library_names_spec='${libname}${release}.a $libname.a'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 fi
9454 shlibpath_var=LIBPATH
9455 fi
9456 ;;
9457
9458amigaos*)
9459 case $host_cpu in
9460 powerpc)
9461 # Since July 2007 AmigaOS4 officially supports .so libraries.
9462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 ;;
9465 m68k)
9466 library_names_spec='$libname.ixlibrary $libname.a'
9467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9468 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'
9469 ;;
9470 esac
9471 ;;
9472
9473beos*)
9474 library_names_spec='${libname}${shared_ext}'
9475 dynamic_linker="$host_os ld.so"
9476 shlibpath_var=LIBRARY_PATH
9477 ;;
9478
9479bsdi[45]*)
9480 version_type=linux
9481 need_version=no
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9488 # the default ld.so.conf also contains /usr/contrib/lib and
9489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9490 # libtool to hard-code these into programs
9491 ;;
9492
9493cygwin* | mingw* | pw32* | cegcc*)
9494 version_type=windows
9495 shrext_cmds=".dll"
9496 need_version=no
9497 need_lib_prefix=no
9498
9499 case $GCC,$host_os in
9500 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9501 library_names_spec='$libname.dll.a'
9502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9503 postinstall_cmds='base_file=`basename \${file}`~
9504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9505 dldir=$destdir/`dirname \$dlpath`~
9506 test -d \$dldir || mkdir -p \$dldir~
9507 $install_prog $dir/$dlname \$dldir/$dlname~
9508 chmod a+x \$dldir/$dlname~
9509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9511 fi'
9512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9513 dlpath=$dir/\$dldll~
9514 $RM \$dlpath'
9515 shlibpath_overrides_runpath=yes
9516
9517 case $host_os in
9518 cygwin*)
9519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9520 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9521 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9522 ;;
9523 mingw* | cegcc*)
9524 # MinGW DLLs use traditional 'lib' prefix
9525 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9526 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9527 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9528 # It is most probably a Windows format PATH printed by
9529 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9530 # path with ; separators, and with drive letters. We can handle the
9531 # drive letters (cygwin fileutils understands them), so leave them,
9532 # especially as we might pass files found there to a mingw objdump,
9533 # which wouldn't understand a cygwinified path. Ahh.
9534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9535 else
9536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9537 fi
9538 ;;
9539 pw32*)
9540 # pw32 DLLs use 'pw' prefix rather than 'lib'
9541 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 ;;
9543 esac
9544 ;;
9545
9546 *)
9547 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9548 ;;
9549 esac
9550 dynamic_linker='Win32 ld.exe'
9551 # FIXME: first we should search . and the directory the executable is in
9552 shlibpath_var=PATH
9553 ;;
9554
9555darwin* | rhapsody*)
9556 dynamic_linker="$host_os dyld"
9557 version_type=darwin
9558 need_lib_prefix=no
9559 need_version=no
9560 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9561 soname_spec='${libname}${release}${major}$shared_ext'
9562 shlibpath_overrides_runpath=yes
9563 shlibpath_var=DYLD_LIBRARY_PATH
9564 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9565
9566 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9567 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9568 ;;
9569
9570dgux*)
9571 version_type=linux
9572 need_lib_prefix=no
9573 need_version=no
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 ;;
9578
9579freebsd1*)
9580 dynamic_linker=no
9581 ;;
9582
9583freebsd* | dragonfly*)
9584 # DragonFly does not have aout. When/if they implement a new
9585 # versioning mechanism, adjust this.
9586 if test -x /usr/bin/objformat; then
9587 objformat=`/usr/bin/objformat`
9588 else
9589 case $host_os in
9590 freebsd[123]*) objformat=aout ;;
9591 *) objformat=elf ;;
9592 esac
9593 fi
9594 version_type=freebsd-$objformat
9595 case $version_type in
9596 freebsd-elf*)
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9598 need_version=no
9599 need_lib_prefix=no
9600 ;;
9601 freebsd-*)
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9603 need_version=yes
9604 ;;
9605 esac
9606 shlibpath_var=LD_LIBRARY_PATH
9607 case $host_os in
9608 freebsd2*)
9609 shlibpath_overrides_runpath=yes
9610 ;;
9611 freebsd3.[01]* | freebsdelf3.[01]*)
9612 shlibpath_overrides_runpath=yes
9613 hardcode_into_libs=yes
9614 ;;
9615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9617 shlibpath_overrides_runpath=no
9618 hardcode_into_libs=yes
9619 ;;
9620 *) # from 4.6 on, and DragonFly
9621 shlibpath_overrides_runpath=yes
9622 hardcode_into_libs=yes
9623 ;;
9624 esac
9625 ;;
9626
9627gnu*)
9628 version_type=linux
9629 need_lib_prefix=no
9630 need_version=no
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 hardcode_into_libs=yes
9635 ;;
9636
9637hpux9* | hpux10* | hpux11*)
9638 # Give a soname corresponding to the major version so that dld.sl refuses to
9639 # link against other versions.
9640 version_type=sunos
9641 need_lib_prefix=no
9642 need_version=no
9643 case $host_cpu in
9644 ia64*)
9645 shrext_cmds='.so'
9646 hardcode_into_libs=yes
9647 dynamic_linker="$host_os dld.so"
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 if test "X$HPUX_IA64_MODE" = X32; then
9653 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9654 else
9655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9656 fi
9657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9658 ;;
9659 hppa*64*)
9660 shrext_cmds='.sl'
9661 hardcode_into_libs=yes
9662 dynamic_linker="$host_os dld.sl"
9663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9669 ;;
9670 *)
9671 shrext_cmds='.sl'
9672 dynamic_linker="$host_os dld.sl"
9673 shlibpath_var=SHLIB_PATH
9674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 ;;
9678 esac
9679 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9680 postinstall_cmds='chmod 555 $lib'
9681 ;;
9682
9683interix[3-9]*)
9684 version_type=linux
9685 need_lib_prefix=no
9686 need_version=no
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 shlibpath_overrides_runpath=no
9692 hardcode_into_libs=yes
9693 ;;
9694
9695irix5* | irix6* | nonstopux*)
9696 case $host_os in
9697 nonstopux*) version_type=nonstopux ;;
9698 *)
9699 if test "$lt_cv_prog_gnu_ld" = yes; then
9700 version_type=linux
9701 else
9702 version_type=irix
9703 fi ;;
9704 esac
9705 need_lib_prefix=no
9706 need_version=no
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9709 case $host_os in
9710 irix5* | nonstopux*)
9711 libsuff= shlibsuff=
9712 ;;
9713 *)
9714 case $LD in # libtool.m4 will add one of these switches to LD
9715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9716 libsuff= shlibsuff= libmagic=32-bit;;
9717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9718 libsuff=32 shlibsuff=N32 libmagic=N32;;
9719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9720 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9721 *) libsuff= shlibsuff= libmagic=never-match;;
9722 esac
9723 ;;
9724 esac
9725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9726 shlibpath_overrides_runpath=no
9727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9729 hardcode_into_libs=yes
9730 ;;
9731
9732# No shared lib support for Linux oldld, aout, or coff.
9733linux*oldld* | linux*aout* | linux*coff*)
9734 dynamic_linker=no
9735 ;;
9736
9737# This must be Linux ELF.
9738linux* | k*bsd*-gnu)
9739 version_type=linux
9740 need_lib_prefix=no
9741 need_version=no
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9745 shlibpath_var=LD_LIBRARY_PATH
9746 shlibpath_overrides_runpath=no
9747 # Some binutils ld are patched to set DT_RUNPATH
9748 save_LDFLAGS=$LDFLAGS
9749 save_libdir=$libdir
9750 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9751 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9752 cat >conftest.$ac_ext <<_ACEOF
9753/* confdefs.h. */
9754_ACEOF
9755cat confdefs.h >>conftest.$ac_ext
9756cat >>conftest.$ac_ext <<_ACEOF
9757/* end confdefs.h. */
9758
9759int
9760main ()
9761{
9762
9763 ;
9764 return 0;
9765}
9766_ACEOF
9767rm -f conftest.$ac_objext conftest$ac_exeext
9768if { (ac_try="$ac_link"
9769case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772esac
9773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9774$as_echo "$ac_try_echo") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext && {
9785 test "$cross_compiling" = yes ||
9786 $as_test_x conftest$ac_exeext
9787 }; then
9788 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9789 shlibpath_overrides_runpath=yes
9790fi
9791
9792else
9793 $as_echo "$as_me: failed program was:" >&5
9794sed 's/^/| /' conftest.$ac_ext >&5
9795
9796
9797fi
9798
9799rm -rf conftest.dSYM
9800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801 conftest$ac_exeext conftest.$ac_ext
9802 LDFLAGS=$save_LDFLAGS
9803 libdir=$save_libdir
9804
9805 # This implies no fast_install, which is unacceptable.
9806 # Some rework will be needed to allow for fast_install
9807 # before this can be enabled.
9808 hardcode_into_libs=yes
9809
9810 # Append ld.so.conf contents to the search path
9811 if test -f /etc/ld.so.conf; then
9812 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' ' '`
9813 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9814 fi
9815
9816 # We used to test for /lib/ld.so.1 and disable shared libraries on
9817 # powerpc, because MkLinux only supported shared libraries with the
9818 # GNU dynamic linker. Since this was broken with cross compilers,
9819 # most powerpc-linux boxes support dynamic linking these days and
9820 # people can always --disable-shared, the test was removed, and we
9821 # assume the GNU/Linux dynamic linker is in use.
9822 dynamic_linker='GNU/Linux ld.so'
9823 ;;
9824
9825netbsd*)
9826 version_type=sunos
9827 need_lib_prefix=no
9828 need_version=no
9829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9832 dynamic_linker='NetBSD (a.out) ld.so'
9833 else
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 dynamic_linker='NetBSD ld.elf_so'
9837 fi
9838 shlibpath_var=LD_LIBRARY_PATH
9839 shlibpath_overrides_runpath=yes
9840 hardcode_into_libs=yes
9841 ;;
9842
9843newsos6)
9844 version_type=linux
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=yes
9848 ;;
9849
9850*nto* | *qnx*)
9851 version_type=qnx
9852 need_lib_prefix=no
9853 need_version=no
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=no
9858 hardcode_into_libs=yes
9859 dynamic_linker='ldqnx.so'
9860 ;;
9861
9862openbsd*)
9863 version_type=sunos
9864 sys_lib_dlsearch_path_spec="/usr/lib"
9865 need_lib_prefix=no
9866 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9867 case $host_os in
9868 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9869 *) need_version=no ;;
9870 esac
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9875 case $host_os in
9876 openbsd2.[89] | openbsd2.[89].*)
9877 shlibpath_overrides_runpath=no
9878 ;;
9879 *)
9880 shlibpath_overrides_runpath=yes
9881 ;;
9882 esac
9883 else
9884 shlibpath_overrides_runpath=yes
9885 fi
9886 ;;
9887
9888os2*)
9889 libname_spec='$name'
9890 shrext_cmds=".dll"
9891 need_lib_prefix=no
9892 library_names_spec='$libname${shared_ext} $libname.a'
9893 dynamic_linker='OS/2 ld.exe'
9894 shlibpath_var=LIBPATH
9895 ;;
9896
9897osf3* | osf4* | osf5*)
9898 version_type=osf
9899 need_lib_prefix=no
9900 need_version=no
9901 soname_spec='${libname}${release}${shared_ext}$major'
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9906 ;;
9907
9908rdos*)
9909 dynamic_linker=no
9910 ;;
9911
9912solaris*)
9913 version_type=linux
9914 need_lib_prefix=no
9915 need_version=no
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes
9920 hardcode_into_libs=yes
9921 # ldd complains unless libraries are executable
9922 postinstall_cmds='chmod +x $lib'
9923 ;;
9924
9925sunos4*)
9926 version_type=sunos
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 shlibpath_overrides_runpath=yes
9931 if test "$with_gnu_ld" = yes; then
9932 need_lib_prefix=no
9933 fi
9934 need_version=yes
9935 ;;
9936
9937sysv4 | sysv4.3*)
9938 version_type=linux
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 case $host_vendor in
9943 sni)
9944 shlibpath_overrides_runpath=no
9945 need_lib_prefix=no
9946 runpath_var=LD_RUN_PATH
9947 ;;
9948 siemens)
9949 need_lib_prefix=no
9950 ;;
9951 motorola)
9952 need_lib_prefix=no
9953 need_version=no
9954 shlibpath_overrides_runpath=no
9955 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9956 ;;
9957 esac
9958 ;;
9959
9960sysv4*MP*)
9961 if test -d /usr/nec ;then
9962 version_type=linux
9963 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9964 soname_spec='$libname${shared_ext}.$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 fi
9967 ;;
9968
9969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9970 version_type=freebsd-elf
9971 need_lib_prefix=no
9972 need_version=no
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath=yes
9977 hardcode_into_libs=yes
9978 if test "$with_gnu_ld" = yes; then
9979 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9980 else
9981 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9982 case $host_os in
9983 sco3.2v5*)
9984 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9985 ;;
9986 esac
9987 fi
9988 sys_lib_dlsearch_path_spec='/usr/lib'
9989 ;;
9990
9991tpf*)
9992 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9993 version_type=linux
9994 need_lib_prefix=no
9995 need_version=no
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 shlibpath_overrides_runpath=no
9999 hardcode_into_libs=yes
10000 ;;
10001
10002uts4*)
10003 version_type=linux
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 ;;
10008
10009*)
10010 dynamic_linker=no
10011 ;;
10012esac
10013{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10014$as_echo "$dynamic_linker" >&6; }
10015test "$dynamic_linker" = no && can_build_shared=no
10016
10017variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10018if test "$GCC" = yes; then
10019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10020fi
10021
10022if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10023 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10024fi
10025if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10026 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10027fi
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10116$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10117hardcode_action=
10118if test -n "$hardcode_libdir_flag_spec" ||
10119 test -n "$runpath_var" ||
10120 test "X$hardcode_automatic" = "Xyes" ; then
10121
10122 # We can hardcode non-existent directories.
10123 if test "$hardcode_direct" != no &&
10124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10125 # have to relink, otherwise we might link with an installed library
10126 # when we should be linking with a yet-to-be-installed one
10127 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10128 test "$hardcode_minus_L" != no; then
10129 # Linking always hardcodes the temporary library directory.
10130 hardcode_action=relink
10131 else
10132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10133 hardcode_action=immediate
10134 fi
10135else
10136 # We cannot hardcode anything, or else we can only hardcode existing
10137 # directories.
10138 hardcode_action=unsupported
10139fi
10140{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10141$as_echo "$hardcode_action" >&6; }
10142
10143if test "$hardcode_action" = relink ||
10144 test "$inherit_rpath" = yes; then
10145 # Fast installation is not supported
10146 enable_fast_install=no
10147elif test "$shlibpath_overrides_runpath" = yes ||
10148 test "$enable_shared" = no; then
10149 # Fast installation is not necessary
10150 enable_fast_install=needless
10151fi
10152
10153
10154
10155
10156
10157
10158 if test "x$enable_dlopen" != xyes; then
10159 enable_dlopen=unknown
10160 enable_dlopen_self=unknown
10161 enable_dlopen_self_static=unknown
10162else
10163 lt_cv_dlopen=no
10164 lt_cv_dlopen_libs=
10165
10166 case $host_os in
10167 beos*)
10168 lt_cv_dlopen="load_add_on"
10169 lt_cv_dlopen_libs=
10170 lt_cv_dlopen_self=yes
10171 ;;
10172
10173 mingw* | pw32* | cegcc*)
10174 lt_cv_dlopen="LoadLibrary"
10175 lt_cv_dlopen_libs=
10176 ;;
10177
10178 cygwin*)
10179 lt_cv_dlopen="dlopen"
10180 lt_cv_dlopen_libs=
10181 ;;
10182
10183 darwin*)
10184 # if libdl is installed we need to link against it
10185 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10186$as_echo_n "checking for dlopen in -ldl... " >&6; }
10187if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10188 $as_echo_n "(cached) " >&6
10189else
10190 ac_check_lib_save_LIBS=$LIBS
10191LIBS="-ldl $LIBS"
10192cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h. */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h. */
10198
10199/* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10202#ifdef __cplusplus
10203extern "C"
10204#endif
10205char dlopen ();
10206int
10207main ()
10208{
10209return dlopen ();
10210 ;
10211 return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext conftest$ac_exeext
10215if { (ac_try="$ac_link"
10216case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219esac
10220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221$as_echo "$ac_try_echo") >&5
10222 (eval "$ac_link") 2>conftest.er1
10223 ac_status=$?
10224 grep -v '^ *+' conftest.er1 >conftest.err
10225 rm -f conftest.er1
10226 cat conftest.err >&5
10227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && {
10229 test -z "$ac_c_werror_flag" ||
10230 test ! -s conftest.err
10231 } && test -s conftest$ac_exeext && {
10232 test "$cross_compiling" = yes ||
10233 $as_test_x conftest$ac_exeext
10234 }; then
10235 ac_cv_lib_dl_dlopen=yes
10236else
10237 $as_echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 ac_cv_lib_dl_dlopen=no
10241fi
10242
10243rm -rf conftest.dSYM
10244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246LIBS=$ac_check_lib_save_LIBS
10247fi
10248{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10249$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10250if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10252else
10253
10254 lt_cv_dlopen="dyld"
10255 lt_cv_dlopen_libs=
10256 lt_cv_dlopen_self=yes
10257
10258fi
10259
10260 ;;
10261
10262 *)
10263 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10264$as_echo_n "checking for shl_load... " >&6; }
10265if test "${ac_cv_func_shl_load+set}" = set; then
10266 $as_echo_n "(cached) " >&6
10267else
10268 cat >conftest.$ac_ext <<_ACEOF
10269/* confdefs.h. */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h. */
10274/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10276#define shl_load innocuous_shl_load
10277
10278/* System header to define __stub macros and hopefully few prototypes,
10279 which can conflict with char shl_load (); below.
10280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10281 <limits.h> exists even on freestanding compilers. */
10282
10283#ifdef __STDC__
10284# include <limits.h>
10285#else
10286# include <assert.h>
10287#endif
10288
10289#undef shl_load
10290
10291/* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294#ifdef __cplusplus
10295extern "C"
10296#endif
10297char shl_load ();
10298/* The GNU C library defines this for functions which it implements
10299 to always fail with ENOSYS. Some functions are actually named
10300 something starting with __ and the normal name is an alias. */
10301#if defined __stub_shl_load || defined __stub___shl_load
10302choke me
10303#endif
10304
10305int
10306main ()
10307{
10308return shl_load ();
10309 ;
10310 return 0;
10311}
10312_ACEOF
10313rm -f conftest.$ac_objext conftest$ac_exeext
10314if { (ac_try="$ac_link"
10315case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318esac
10319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10320$as_echo "$ac_try_echo") >&5
10321 (eval "$ac_link") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest$ac_exeext && {
10331 test "$cross_compiling" = yes ||
10332 $as_test_x conftest$ac_exeext
10333 }; then
10334 ac_cv_func_shl_load=yes
10335else
10336 $as_echo "$as_me: failed program was:" >&5
10337sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 ac_cv_func_shl_load=no
10340fi
10341
10342rm -rf conftest.dSYM
10343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10345fi
10346{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10347$as_echo "$ac_cv_func_shl_load" >&6; }
10348if test "x$ac_cv_func_shl_load" = x""yes; then
10349 lt_cv_dlopen="shl_load"
10350else
10351 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10352$as_echo_n "checking for shl_load in -ldld... " >&6; }
10353if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10354 $as_echo_n "(cached) " >&6
10355else
10356 ac_check_lib_save_LIBS=$LIBS
10357LIBS="-ldld $LIBS"
10358cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364
10365/* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368#ifdef __cplusplus
10369extern "C"
10370#endif
10371char shl_load ();
10372int
10373main ()
10374{
10375return shl_load ();
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
10381if { (ac_try="$ac_link"
10382case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385esac
10386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387$as_echo "$ac_try_echo") >&5
10388 (eval "$ac_link") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest$ac_exeext && {
10398 test "$cross_compiling" = yes ||
10399 $as_test_x conftest$ac_exeext
10400 }; then
10401 ac_cv_lib_dld_shl_load=yes
10402else
10403 $as_echo "$as_me: failed program was:" >&5
10404sed 's/^/| /' conftest.$ac_ext >&5
10405
10406 ac_cv_lib_dld_shl_load=no
10407fi
10408
10409rm -rf conftest.dSYM
10410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10411 conftest$ac_exeext conftest.$ac_ext
10412LIBS=$ac_check_lib_save_LIBS
10413fi
10414{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10415$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10416if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10417 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10418else
10419 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10420$as_echo_n "checking for dlopen... " >&6; }
10421if test "${ac_cv_func_dlopen+set}" = set; then
10422 $as_echo_n "(cached) " >&6
10423else
10424 cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
10430/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10432#define dlopen innocuous_dlopen
10433
10434/* System header to define __stub macros and hopefully few prototypes,
10435 which can conflict with char dlopen (); below.
10436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10437 <limits.h> exists even on freestanding compilers. */
10438
10439#ifdef __STDC__
10440# include <limits.h>
10441#else
10442# include <assert.h>
10443#endif
10444
10445#undef dlopen
10446
10447/* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450#ifdef __cplusplus
10451extern "C"
10452#endif
10453char dlopen ();
10454/* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457#if defined __stub_dlopen || defined __stub___dlopen
10458choke me
10459#endif
10460
10461int
10462main ()
10463{
10464return dlopen ();
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext conftest$ac_exeext
10470if { (ac_try="$ac_link"
10471case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474esac
10475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476$as_echo "$ac_try_echo") >&5
10477 (eval "$ac_link") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext && {
10487 test "$cross_compiling" = yes ||
10488 $as_test_x conftest$ac_exeext
10489 }; then
10490 ac_cv_func_dlopen=yes
10491else
10492 $as_echo "$as_me: failed program was:" >&5
10493sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 ac_cv_func_dlopen=no
10496fi
10497
10498rm -rf conftest.dSYM
10499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501fi
10502{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10503$as_echo "$ac_cv_func_dlopen" >&6; }
10504if test "x$ac_cv_func_dlopen" = x""yes; then
10505 lt_cv_dlopen="dlopen"
10506else
10507 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10508$as_echo_n "checking for dlopen in -ldl... " >&6; }
10509if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10510 $as_echo_n "(cached) " >&6
10511else
10512 ac_check_lib_save_LIBS=$LIBS
10513LIBS="-ldl $LIBS"
10514cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520
10521/* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10524#ifdef __cplusplus
10525extern "C"
10526#endif
10527char dlopen ();
10528int
10529main ()
10530{
10531return dlopen ();
10532 ;
10533 return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext conftest$ac_exeext
10537if { (ac_try="$ac_link"
10538case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10543$as_echo "$ac_try_echo") >&5
10544 (eval "$ac_link") 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest$ac_exeext && {
10554 test "$cross_compiling" = yes ||
10555 $as_test_x conftest$ac_exeext
10556 }; then
10557 ac_cv_lib_dl_dlopen=yes
10558else
10559 $as_echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ac_cv_lib_dl_dlopen=no
10563fi
10564
10565rm -rf conftest.dSYM
10566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10567 conftest$ac_exeext conftest.$ac_ext
10568LIBS=$ac_check_lib_save_LIBS
10569fi
10570{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10571$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10572if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10574else
10575 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10576$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10577if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10578 $as_echo_n "(cached) " >&6
10579else
10580 ac_check_lib_save_LIBS=$LIBS
10581LIBS="-lsvld $LIBS"
10582cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588
10589/* Override any GCC internal prototype to avoid an error.
10590 Use char because int might match the return type of a GCC
10591 builtin and then its argument prototype would still apply. */
10592#ifdef __cplusplus
10593extern "C"
10594#endif
10595char dlopen ();
10596int
10597main ()
10598{
10599return dlopen ();
10600 ;
10601 return 0;
10602}
10603_ACEOF
10604rm -f conftest.$ac_objext conftest$ac_exeext
10605if { (ac_try="$ac_link"
10606case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
10610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10611$as_echo "$ac_try_echo") >&5
10612 (eval "$ac_link") 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest$ac_exeext && {
10622 test "$cross_compiling" = yes ||
10623 $as_test_x conftest$ac_exeext
10624 }; then
10625 ac_cv_lib_svld_dlopen=yes
10626else
10627 $as_echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ac_cv_lib_svld_dlopen=no
10631fi
10632
10633rm -rf conftest.dSYM
10634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10635 conftest$ac_exeext conftest.$ac_ext
10636LIBS=$ac_check_lib_save_LIBS
10637fi
10638{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10639$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10640if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10642else
10643 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10644$as_echo_n "checking for dld_link in -ldld... " >&6; }
10645if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10646 $as_echo_n "(cached) " >&6
10647else
10648 ac_check_lib_save_LIBS=$LIBS
10649LIBS="-ldld $LIBS"
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h. */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h. */
10656
10657/* Override any GCC internal prototype to avoid an error.
10658 Use char because int might match the return type of a GCC
10659 builtin and then its argument prototype would still apply. */
10660#ifdef __cplusplus
10661extern "C"
10662#endif
10663char dld_link ();
10664int
10665main ()
10666{
10667return dld_link ();
10668 ;
10669 return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext conftest$ac_exeext
10673if { (ac_try="$ac_link"
10674case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677esac
10678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10679$as_echo "$ac_try_echo") >&5
10680 (eval "$ac_link") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext && {
10690 test "$cross_compiling" = yes ||
10691 $as_test_x conftest$ac_exeext
10692 }; then
10693 ac_cv_lib_dld_dld_link=yes
10694else
10695 $as_echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_lib_dld_dld_link=no
10699fi
10700
10701rm -rf conftest.dSYM
10702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10703 conftest$ac_exeext conftest.$ac_ext
10704LIBS=$ac_check_lib_save_LIBS
10705fi
10706{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10707$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10708if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10709 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10710fi
10711
10712
10713fi
10714
10715
10716fi
10717
10718
10719fi
10720
10721
10722fi
10723
10724
10725fi
10726
10727 ;;
10728 esac
10729
10730 if test "x$lt_cv_dlopen" != xno; then
10731 enable_dlopen=yes
10732 else
10733 enable_dlopen=no
10734 fi
10735
10736 case $lt_cv_dlopen in
10737 dlopen)
10738 save_CPPFLAGS="$CPPFLAGS"
10739 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10740
10741 save_LDFLAGS="$LDFLAGS"
10742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10743
10744 save_LIBS="$LIBS"
10745 LIBS="$lt_cv_dlopen_libs $LIBS"
10746
10747 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10748$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10749if test "${lt_cv_dlopen_self+set}" = set; then
10750 $as_echo_n "(cached) " >&6
10751else
10752 if test "$cross_compiling" = yes; then :
10753 lt_cv_dlopen_self=cross
10754else
10755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10756 lt_status=$lt_dlunknown
10757 cat > conftest.$ac_ext <<_LT_EOF
10758#line 10758 "configure"
10759#include "confdefs.h"
10760
10761#if HAVE_DLFCN_H
10762#include <dlfcn.h>
10763#endif
10764
10765#include <stdio.h>
10766
10767#ifdef RTLD_GLOBAL
10768# define LT_DLGLOBAL RTLD_GLOBAL
10769#else
10770# ifdef DL_GLOBAL
10771# define LT_DLGLOBAL DL_GLOBAL
10772# else
10773# define LT_DLGLOBAL 0
10774# endif
10775#endif
10776
10777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10778 find out it does not work in some platform. */
10779#ifndef LT_DLLAZY_OR_NOW
10780# ifdef RTLD_LAZY
10781# define LT_DLLAZY_OR_NOW RTLD_LAZY
10782# else
10783# ifdef DL_LAZY
10784# define LT_DLLAZY_OR_NOW DL_LAZY
10785# else
10786# ifdef RTLD_NOW
10787# define LT_DLLAZY_OR_NOW RTLD_NOW
10788# else
10789# ifdef DL_NOW
10790# define LT_DLLAZY_OR_NOW DL_NOW
10791# else
10792# define LT_DLLAZY_OR_NOW 0
10793# endif
10794# endif
10795# endif
10796# endif
10797#endif
10798
10799void fnord() { int i=42;}
10800int main ()
10801{
10802 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10803 int status = $lt_dlunknown;
10804
10805 if (self)
10806 {
10807 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10808 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10809 /* dlclose (self); */
10810 }
10811 else
10812 puts (dlerror ());
10813
10814 return status;
10815}
10816_LT_EOF
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10819 ac_status=$?
10820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10822 (./conftest; exit; ) >&5 2>/dev/null
10823 lt_status=$?
10824 case x$lt_status in
10825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10827 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10828 esac
10829 else :
10830 # compilation failed
10831 lt_cv_dlopen_self=no
10832 fi
10833fi
10834rm -fr conftest*
10835
10836
10837fi
10838{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10839$as_echo "$lt_cv_dlopen_self" >&6; }
10840
10841 if test "x$lt_cv_dlopen_self" = xyes; then
10842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10843 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10844$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10845if test "${lt_cv_dlopen_self_static+set}" = set; then
10846 $as_echo_n "(cached) " >&6
10847else
10848 if test "$cross_compiling" = yes; then :
10849 lt_cv_dlopen_self_static=cross
10850else
10851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10852 lt_status=$lt_dlunknown
10853 cat > conftest.$ac_ext <<_LT_EOF
10854#line 10854 "configure"
10855#include "confdefs.h"
10856
10857#if HAVE_DLFCN_H
10858#include <dlfcn.h>
10859#endif
10860
10861#include <stdio.h>
10862
10863#ifdef RTLD_GLOBAL
10864# define LT_DLGLOBAL RTLD_GLOBAL
10865#else
10866# ifdef DL_GLOBAL
10867# define LT_DLGLOBAL DL_GLOBAL
10868# else
10869# define LT_DLGLOBAL 0
10870# endif
10871#endif
10872
10873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10874 find out it does not work in some platform. */
10875#ifndef LT_DLLAZY_OR_NOW
10876# ifdef RTLD_LAZY
10877# define LT_DLLAZY_OR_NOW RTLD_LAZY
10878# else
10879# ifdef DL_LAZY
10880# define LT_DLLAZY_OR_NOW DL_LAZY
10881# else
10882# ifdef RTLD_NOW
10883# define LT_DLLAZY_OR_NOW RTLD_NOW
10884# else
10885# ifdef DL_NOW
10886# define LT_DLLAZY_OR_NOW DL_NOW
10887# else
10888# define LT_DLLAZY_OR_NOW 0
10889# endif
10890# endif
10891# endif
10892# endif
10893#endif
10894
10895void fnord() { int i=42;}
10896int main ()
10897{
10898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10899 int status = $lt_dlunknown;
10900
10901 if (self)
10902 {
10903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10905 /* dlclose (self); */
10906 }
10907 else
10908 puts (dlerror ());
10909
10910 return status;
10911}
10912_LT_EOF
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>&5
10915 ac_status=$?
10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10918 (./conftest; exit; ) >&5 2>/dev/null
10919 lt_status=$?
10920 case x$lt_status in
10921 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10922 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10923 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10924 esac
10925 else :
10926 # compilation failed
10927 lt_cv_dlopen_self_static=no
10928 fi
10929fi
10930rm -fr conftest*
10931
10932
10933fi
10934{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10935$as_echo "$lt_cv_dlopen_self_static" >&6; }
10936 fi
10937
10938 CPPFLAGS="$save_CPPFLAGS"
10939 LDFLAGS="$save_LDFLAGS"
10940 LIBS="$save_LIBS"
10941 ;;
10942 esac
10943
10944 case $lt_cv_dlopen_self in
10945 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10946 *) enable_dlopen_self=unknown ;;
10947 esac
10948
10949 case $lt_cv_dlopen_self_static in
10950 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10951 *) enable_dlopen_self_static=unknown ;;
10952 esac
10953fi
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971striplib=
10972old_striplib=
10973{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10974$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10975if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10976 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10977 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10978 { $as_echo "$as_me:$LINENO: result: yes" >&5
10979$as_echo "yes" >&6; }
10980else
10981# FIXME - insert some real tests, host_os isn't really good enough
10982 case $host_os in
10983 darwin*)
10984 if test -n "$STRIP" ; then
10985 striplib="$STRIP -x"
10986 old_striplib="$STRIP -S"
10987 { $as_echo "$as_me:$LINENO: result: yes" >&5
10988$as_echo "yes" >&6; }
10989 else
10990 { $as_echo "$as_me:$LINENO: result: no" >&5
10991$as_echo "no" >&6; }
10992 fi
10993 ;;
10994 *)
10995 { $as_echo "$as_me:$LINENO: result: no" >&5
10996$as_echo "no" >&6; }
10997 ;;
10998 esac
10999fi
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012 # Report which library types will actually be built
11013 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11014$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11015 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11016$as_echo "$can_build_shared" >&6; }
11017
11018 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11019$as_echo_n "checking whether to build shared libraries... " >&6; }
11020 test "$can_build_shared" = "no" && enable_shared=no
11021
11022 # On AIX, shared libraries and static libraries use the same namespace, and
11023 # are all built from PIC.
11024 case $host_os in
11025 aix3*)
11026 test "$enable_shared" = yes && enable_static=no
11027 if test -n "$RANLIB"; then
11028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11029 postinstall_cmds='$RANLIB $lib'
11030 fi
11031 ;;
11032
11033 aix[4-9]*)
11034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11035 test "$enable_shared" = yes && enable_static=no
11036 fi
11037 ;;
11038 esac
11039 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11040$as_echo "$enable_shared" >&6; }
11041
11042 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11043$as_echo_n "checking whether to build static libraries... " >&6; }
11044 # Make sure either enable_shared or enable_static is yes.
11045 test "$enable_shared" = yes || enable_static=yes
11046 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11047$as_echo "$enable_static" >&6; }
11048
11049
11050
11051
11052fi
11053ac_ext=c
11054ac_cpp='$CPP $CPPFLAGS'
11055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11057ac_compiler_gnu=$ac_cv_c_compiler_gnu
11058
11059CC="$lt_save_CC"
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 ac_config_commands="$ac_config_commands libtool"
11074
11075
11076
11077
11078# Only expand once:
11079
11080
11081
11082
11083{ $as_echo "$as_me:$LINENO: checking for main in -lgmp" >&5
11084$as_echo_n "checking for main in -lgmp... " >&6; }
11085if test "${ac_cv_lib_gmp_main+set}" = set; then
11086 $as_echo_n "(cached) " >&6
11087else
11088 ac_check_lib_save_LIBS=$LIBS
11089LIBS="-lgmp $LIBS"
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096
11097
11098int
11099main ()
11100{
11101return main ();
11102 ;
11103 return 0;
11104}
11105_ACEOF
11106rm -f conftest.$ac_objext conftest$ac_exeext
11107if { (ac_try="$ac_link"
11108case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11111esac
11112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11113$as_echo "$ac_try_echo") >&5
11114 (eval "$ac_link") 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && {
11121 test -z "$ac_c_werror_flag" ||
11122 test ! -s conftest.err
11123 } && test -s conftest$ac_exeext && {
11124 test "$cross_compiling" = yes ||
11125 $as_test_x conftest$ac_exeext
11126 }; then
11127 ac_cv_lib_gmp_main=yes
11128else
11129 $as_echo "$as_me: failed program was:" >&5
11130sed 's/^/| /' conftest.$ac_ext >&5
11131
11132 ac_cv_lib_gmp_main=no
11133fi
11134
11135rm -rf conftest.dSYM
11136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11137 conftest$ac_exeext conftest.$ac_ext
11138LIBS=$ac_check_lib_save_LIBS
11139fi
11140{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
11141$as_echo "$ac_cv_lib_gmp_main" >&6; }
11142if test "x$ac_cv_lib_gmp_main" = x""yes; then
11143 cat >>confdefs.h <<_ACEOF
11144#define HAVE_LIBGMP 1
11145_ACEOF
11146
11147 LIBS="-lgmp $LIBS"
11148
11149fi
11150
11151
11152{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11153$as_echo_n "checking for ANSI C header files... " >&6; }
11154if test "${ac_cv_header_stdc+set}" = set; then
11155 $as_echo_n "(cached) " >&6
11156else
11157 cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
11163#include <stdlib.h>
11164#include <stdarg.h>
11165#include <string.h>
11166#include <float.h>
11167
11168int
11169main ()
11170{
11171
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176rm -f conftest.$ac_objext
11177if { (ac_try="$ac_compile"
11178case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11183$as_echo "$ac_try_echo") >&5
11184 (eval "$ac_compile") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest.$ac_objext; then
11194 ac_cv_header_stdc=yes
11195else
11196 $as_echo "$as_me: failed program was:" >&5
11197sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 ac_cv_header_stdc=no
11200fi
11201
11202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203
11204if test $ac_cv_header_stdc = yes; then
11205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11206 cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212#include <string.h>
11213
11214_ACEOF
11215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11216 $EGREP "memchr" >/dev/null 2>&1; then
11217 :
11218else
11219 ac_cv_header_stdc=no
11220fi
11221rm -f conftest*
11222
11223fi
11224
11225if test $ac_cv_header_stdc = yes; then
11226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11227 cat >conftest.$ac_ext <<_ACEOF
11228/* confdefs.h. */
11229_ACEOF
11230cat confdefs.h >>conftest.$ac_ext
11231cat >>conftest.$ac_ext <<_ACEOF
11232/* end confdefs.h. */
11233#include <stdlib.h>
11234
11235_ACEOF
11236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11237 $EGREP "free" >/dev/null 2>&1; then
11238 :
11239else
11240 ac_cv_header_stdc=no
11241fi
11242rm -f conftest*
11243
11244fi
11245
11246if test $ac_cv_header_stdc = yes; then
11247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11248 if test "$cross_compiling" = yes; then
11249 :
11250else
11251 cat >conftest.$ac_ext <<_ACEOF
11252/* confdefs.h. */
11253_ACEOF
11254cat confdefs.h >>conftest.$ac_ext
11255cat >>conftest.$ac_ext <<_ACEOF
11256/* end confdefs.h. */
11257#include <ctype.h>
11258#include <stdlib.h>
11259#if ((' ' & 0x0FF) == 0x020)
11260# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11261# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11262#else
11263# define ISLOWER(c) \
11264 (('a' <= (c) && (c) <= 'i') \
11265 || ('j' <= (c) && (c) <= 'r') \
11266 || ('s' <= (c) && (c) <= 'z'))
11267# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11268#endif
11269
11270#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11271int
11272main ()
11273{
11274 int i;
11275 for (i = 0; i < 256; i++)
11276 if (XOR (islower (i), ISLOWER (i))
11277 || toupper (i) != TOUPPER (i))
11278 return 2;
11279 return 0;
11280}
11281_ACEOF
11282rm -f conftest$ac_exeext
11283if { (ac_try="$ac_link"
11284case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287esac
11288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11289$as_echo "$ac_try_echo") >&5
11290 (eval "$ac_link") 2>&5
11291 ac_status=$?
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11294 { (case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11299$as_echo "$ac_try_echo") >&5
11300 (eval "$ac_try") 2>&5
11301 ac_status=$?
11302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 :
11305else
11306 $as_echo "$as_me: program exited with status $ac_status" >&5
11307$as_echo "$as_me: failed program was:" >&5
11308sed 's/^/| /' conftest.$ac_ext >&5
11309
11310( exit $ac_status )
11311ac_cv_header_stdc=no
11312fi
11313rm -rf conftest.dSYM
11314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11315fi
11316
11317
11318fi
11319fi
11320{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11321$as_echo "$ac_cv_header_stdc" >&6; }
11322if test $ac_cv_header_stdc = yes; then
11323
11324cat >>confdefs.h <<\_ACEOF
11325#define STDC_HEADERS 1
11326_ACEOF
11327
11328fi
11329
11330
11331{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11332$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11333if test "${ac_cv_c_const+set}" = set; then
11334 $as_echo_n "(cached) " >&6
11335else
11336 cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342
11343int
11344main ()
11345{
11346/* FIXME: Include the comments suggested by Paul. */
11347#ifndef __cplusplus
11348 /* Ultrix mips cc rejects this. */
11349 typedef int charset[2];
11350 const charset cs;
11351 /* SunOS 4.1.1 cc rejects this. */
11352 char const *const *pcpcc;
11353 char **ppc;
11354 /* NEC SVR4.0.2 mips cc rejects this. */
11355 struct point {int x, y;};
11356 static struct point const zero = {0,0};
11357 /* AIX XL C 1.02.0.0 rejects this.
11358 It does not let you subtract one const X* pointer from another in
11359 an arm of an if-expression whose if-part is not a constant
11360 expression */
11361 const char *g = "string";
11362 pcpcc = &g + (g ? g-g : 0);
11363 /* HPUX 7.0 cc rejects these. */
11364 ++pcpcc;
11365 ppc = (char**) pcpcc;
11366 pcpcc = (char const *const *) ppc;
11367 { /* SCO 3.2v4 cc rejects this. */
11368 char *t;
11369 char const *s = 0 ? (char *) 0 : (char const *) 0;
11370
11371 *t++ = 0;
11372 if (s) return 0;
11373 }
11374 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11375 int x[] = {25, 17};
11376 const int *foo = &x[0];
11377 ++foo;
11378 }
11379 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11380 typedef const int *iptr;
11381 iptr p = 0;
11382 ++p;
11383 }
11384 { /* AIX XL C 1.02.0.0 rejects this saying
11385 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11386 struct s { int j; const int *ap[3]; };
11387 struct s *b; b->j = 5;
11388 }
11389 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11390 const int foo = 10;
11391 if (!foo) return 0;
11392 }
11393 return !cs[0] && !zero.x;
11394#endif
11395
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400rm -f conftest.$ac_objext
11401if { (ac_try="$ac_compile"
11402case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11407$as_echo "$ac_try_echo") >&5
11408 (eval "$ac_compile") 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } && {
11415 test -z "$ac_c_werror_flag" ||
11416 test ! -s conftest.err
11417 } && test -s conftest.$ac_objext; then
11418 ac_cv_c_const=yes
11419else
11420 $as_echo "$as_me: failed program was:" >&5
11421sed 's/^/| /' conftest.$ac_ext >&5
11422
11423 ac_cv_c_const=no
11424fi
11425
11426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427fi
11428{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11429$as_echo "$ac_cv_c_const" >&6; }
11430if test $ac_cv_c_const = no; then
11431
11432cat >>confdefs.h <<\_ACEOF
11433#define const /**/
11434_ACEOF
11435
11436fi
11437
11438
11439
11440ac_config_files="$ac_config_files lib-src/Makefile src/Makefile lib-src-gmp/Makefile src-gmp/Makefile Makefile"
11441
11442cat >confcache <<\_ACEOF
11443# This file is a shell script that caches the results of configure
11444# tests run on this system so they can be shared between configure
11445# scripts and configure runs, see configure's option --config-cache.
11446# It is not useful on other systems. If it contains results you don't
11447# want to keep, you may remove or edit it.
11448#
11449# config.status only pays attention to the cache file if you give it
11450# the --recheck option to rerun configure.
11451#
11452# `ac_cv_env_foo' variables (set or unset) will be overridden when
11453# loading this file, other *unset* `ac_cv_foo' will be assigned the
11454# following values.
11455
11456_ACEOF
11457
11458# The following way of writing the cache mishandles newlines in values,
11459# but we know of no workaround that is simple, portable, and efficient.
11460# So, we kill variables containing newlines.
11461# Ultrix sh set writes to stderr and can't be redirected directly,
11462# and sets the high bit in the cache file unless we assign to the vars.
11463(
11464 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11465 eval ac_val=\$$ac_var
11466 case $ac_val in #(
11467 *${as_nl}*)
11468 case $ac_var in #(
11469 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11470$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11471 esac
11472 case $ac_var in #(
11473 _ | IFS | as_nl) ;; #(
11474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11475 *) $as_unset $ac_var ;;
11476 esac ;;
11477 esac
11478 done
11479
11480 (set) 2>&1 |
11481 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11482 *${as_nl}ac_space=\ *)
11483 # `set' does not quote correctly, so add quotes (double-quote
11484 # substitution turns \\\\ into \\, and sed turns \\ into \).
11485 sed -n \
11486 "s/'/'\\\\''/g;
11487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11488 ;; #(
11489 *)
11490 # `set' quotes correctly as required by POSIX, so do not add quotes.
11491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11492 ;;
11493 esac |
11494 sort
11495) |
11496 sed '
11497 /^ac_cv_env_/b end
11498 t clear
11499 :clear
11500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11501 t end
11502 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11503 :end' >>confcache
11504if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11505 if test -w "$cache_file"; then
11506 test "x$cache_file" != "x/dev/null" &&
11507 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11508$as_echo "$as_me: updating cache $cache_file" >&6;}
11509 cat confcache >$cache_file
11510 else
11511 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11512$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11513 fi
11514fi
11515rm -f confcache
11516
11517test "x$prefix" = xNONE && prefix=$ac_default_prefix
11518# Let make expand exec_prefix.
11519test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11520
11521# Transform confdefs.h into DEFS.
11522# Protect against shell expansion while executing Makefile rules.
11523# Protect against Makefile macro expansion.
11524#
11525# If the first sed substitution is executed (which looks for macros that
11526# take arguments), then branch to the quote section. Otherwise,
11527# look for a macro that doesn't take arguments.
11528ac_script='
11529:mline
11530/\\$/{
11531 N
11532 s,\\\n,,
11533 b mline
11534}
11535t clear
11536:clear
11537s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11538t quote
11539s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11540t quote
11541b any
11542:quote
11543s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11544s/\[/\\&/g
11545s/\]/\\&/g
11546s/\$/$$/g
11547H
11548:any
11549${
11550 g
11551 s/^\n//
11552 s/\n/ /g
11553 p
11554}
11555'
11556DEFS=`sed -n "$ac_script" confdefs.h`
11557
11558
11559ac_libobjs=
11560ac_ltlibobjs=
11561for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11562 # 1. Remove the extension, and $U if already installed.
11563 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11564 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11565 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11566 # will be set to the directory where LIBOBJS objects are built.
11567 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11568 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11569done
11570LIBOBJS=$ac_libobjs
11571
11572LTLIBOBJS=$ac_ltlibobjs
11573
11574
11575if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11576 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11577Usually this means the macro was only invoked conditionally." >&5
11578$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11579Usually this means the macro was only invoked conditionally." >&2;}
11580 { (exit 1); exit 1; }; }
11581fi
11582if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11583 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11584Usually this means the macro was only invoked conditionally." >&5
11585$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11586Usually this means the macro was only invoked conditionally." >&2;}
11587 { (exit 1); exit 1; }; }
11588fi
11589
11590: ${CONFIG_STATUS=./config.status}
11591ac_write_fail=0
11592ac_clean_files_save=$ac_clean_files
11593ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11594{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11595$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11596cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11597#! $SHELL
11598# Generated by $as_me.
11599# Run this file to recreate the current configuration.
11600# Compiler output produced by configure, useful for debugging
11601# configure, is in config.log if it exists.
11602
11603debug=false
11604ac_cs_recheck=false
11605ac_cs_silent=false
11606SHELL=\${CONFIG_SHELL-$SHELL}
11607_ACEOF
11608
11609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11610## --------------------- ##
11611## M4sh Initialization. ##
11612## --------------------- ##
11613
11614# Be more Bourne compatible
11615DUALCASE=1; export DUALCASE # for MKS sh
11616if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11617 emulate sh
11618 NULLCMD=:
11619 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11620 # is contrary to our usage. Disable this feature.
11621 alias -g '${1+"$@"}'='"$@"'
11622 setopt NO_GLOB_SUBST
11623else
11624 case `(set -o) 2>/dev/null` in
11625 *posix*) set -o posix ;;
11626esac
11627
11628fi
11629
11630
11631
11632
11633# PATH needs CR
11634# Avoid depending upon Character Ranges.
11635as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11636as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11637as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11638as_cr_digits='0123456789'
11639as_cr_alnum=$as_cr_Letters$as_cr_digits
11640
11641as_nl='
11642'
11643export as_nl
11644# Printing a long string crashes Solaris 7 /usr/bin/printf.
11645as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11646as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11647as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11648if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11649 as_echo='printf %s\n'
11650 as_echo_n='printf %s'
11651else
11652 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11653 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11654 as_echo_n='/usr/ucb/echo -n'
11655 else
11656 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11657 as_echo_n_body='eval
11658 arg=$1;
11659 case $arg in
11660 *"$as_nl"*)
11661 expr "X$arg" : "X\\(.*\\)$as_nl";
11662 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11663 esac;
11664 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11665 '
11666 export as_echo_n_body
11667 as_echo_n='sh -c $as_echo_n_body as_echo'
11668 fi
11669 export as_echo_body
11670 as_echo='sh -c $as_echo_body as_echo'
11671fi
11672
11673# The user is always right.
11674if test "${PATH_SEPARATOR+set}" != set; then
11675 PATH_SEPARATOR=:
11676 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11677 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11678 PATH_SEPARATOR=';'
11679 }
11680fi
11681
11682# Support unset when possible.
11683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11684 as_unset=unset
11685else
11686 as_unset=false
11687fi
11688
11689
11690# IFS
11691# We need space, tab and new line, in precisely that order. Quoting is
11692# there to prevent editors from complaining about space-tab.
11693# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11694# splitting by setting IFS to empty value.)
11695IFS=" "" $as_nl"
11696
11697# Find who we are. Look in the path if we contain no directory separator.
11698case $0 in
11699 *[\\/]* ) as_myself=$0 ;;
11700 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11706done
11707IFS=$as_save_IFS
11708
11709 ;;
11710esac
11711# We did not find ourselves, most probably we were run as `sh COMMAND'
11712# in which case we are not to be found in the path.
11713if test "x$as_myself" = x; then
11714 as_myself=$0
11715fi
11716if test ! -f "$as_myself"; then
11717 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11718 { (exit 1); exit 1; }
11719fi
11720
11721# Work around bugs in pre-3.0 UWIN ksh.
11722for as_var in ENV MAIL MAILPATH
11723do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11724done
11725PS1='$ '
11726PS2='> '
11727PS4='+ '
11728
11729# NLS nuisances.
11730LC_ALL=C
11731export LC_ALL
11732LANGUAGE=C
11733export LANGUAGE
11734
11735# Required to use basename.
11736if expr a : '\(a\)' >/dev/null 2>&1 &&
11737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11738 as_expr=expr
11739else
11740 as_expr=false
11741fi
11742
11743if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11744 as_basename=basename
11745else
11746 as_basename=false
11747fi
11748
11749
11750# Name of the executable.
11751as_me=`$as_basename -- "$0" ||
11752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11753 X"$0" : 'X\(//\)$' \| \
11754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11755$as_echo X/"$0" |
11756 sed '/^.*\/\([^/][^/]*\)\/*$/{
11757 s//\1/
11758 q
11759 }
11760 /^X\/\(\/\/\)$/{
11761 s//\1/
11762 q
11763 }
11764 /^X\/\(\/\).*/{
11765 s//\1/
11766 q
11767 }
11768 s/.*/./; q'`
11769
11770# CDPATH.
11771$as_unset CDPATH
11772
11773
11774
11775 as_lineno_1=$LINENO
11776 as_lineno_2=$LINENO
11777 test "x$as_lineno_1" != "x$as_lineno_2" &&
11778 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11779
11780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11781 # uniformly replaced by the line number. The first 'sed' inserts a
11782 # line-number line after each line using $LINENO; the second 'sed'
11783 # does the real work. The second script uses 'N' to pair each
11784 # line-number line with the line containing $LINENO, and appends
11785 # trailing '-' during substitution so that $LINENO is not a special
11786 # case at line end.
11787 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11788 # scripts with optimization help from Paolo Bonzini. Blame Lee
11789 # E. McMahon (1931-1989) for sed's syntax. :-)
11790 sed -n '
11791 p
11792 /[$]LINENO/=
11793 ' <$as_myself |
11794 sed '
11795 s/[$]LINENO.*/&-/
11796 t lineno
11797 b
11798 :lineno
11799 N
11800 :loop
11801 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11802 t loop
11803 s/-\n.*//
11804 ' >$as_me.lineno &&
11805 chmod +x "$as_me.lineno" ||
11806 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11807 { (exit 1); exit 1; }; }
11808
11809 # Don't try to exec as it changes $[0], causing all sort of problems
11810 # (the dirname of $[0] is not the place where we might find the
11811 # original and so on. Autoconf is especially sensitive to this).
11812 . "./$as_me.lineno"
11813 # Exit status is that of the last command.
11814 exit
11815}
11816
11817
11818if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11819 as_dirname=dirname
11820else
11821 as_dirname=false
11822fi
11823
11824ECHO_C= ECHO_N= ECHO_T=
11825case `echo -n x` in
11826-n*)
11827 case `echo 'x\c'` in
11828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11829 *) ECHO_C='\c';;
11830 esac;;
11831*)
11832 ECHO_N='-n';;
11833esac
11834if expr a : '\(a\)' >/dev/null 2>&1 &&
11835 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11836 as_expr=expr
11837else
11838 as_expr=false
11839fi
11840
11841rm -f conf$$ conf$$.exe conf$$.file
11842if test -d conf$$.dir; then
11843 rm -f conf$$.dir/conf$$.file
11844else
11845 rm -f conf$$.dir
11846 mkdir conf$$.dir 2>/dev/null
11847fi
11848if (echo >conf$$.file) 2>/dev/null; then
11849 if ln -s conf$$.file conf$$ 2>/dev/null; then
11850 as_ln_s='ln -s'
11851 # ... but there are two gotchas:
11852 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11853 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11854 # In both cases, we have to default to `cp -p'.
11855 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11856 as_ln_s='cp -p'
11857 elif ln conf$$.file conf$$ 2>/dev/null; then
11858 as_ln_s=ln
11859 else
11860 as_ln_s='cp -p'
11861 fi
11862else
11863 as_ln_s='cp -p'
11864fi
11865rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11866rmdir conf$$.dir 2>/dev/null
11867
11868if mkdir -p . 2>/dev/null; then
11869 as_mkdir_p=:
11870else
11871 test -d ./-p && rmdir ./-p
11872 as_mkdir_p=false
11873fi
11874
11875if test -x / >/dev/null 2>&1; then
11876 as_test_x='test -x'
11877else
11878 if ls -dL / >/dev/null 2>&1; then
11879 as_ls_L_option=L
11880 else
11881 as_ls_L_option=
11882 fi
11883 as_test_x='
11884 eval sh -c '\''
11885 if test -d "$1"; then
11886 test -d "$1/.";
11887 else
11888 case $1 in
11889 -*)set "./$1";;
11890 esac;
11891 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11892 ???[sx]*):;;*)false;;esac;fi
11893 '\'' sh
11894 '
11895fi
11896as_executable_p=$as_test_x
11897
11898# Sed expression to map a string onto a valid CPP name.
11899as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11900
11901# Sed expression to map a string onto a valid variable name.
11902as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11903
11904
11905exec 6>&1
11906
11907# Save the log message, to keep $[0] and so on meaningful, and to
11908# report actual input values of CONFIG_FILES etc. instead of their
11909# values after options handling.
11910ac_log="
11911This file was extended by $as_me, which was
11912generated by GNU Autoconf 2.63. Invocation command line was
11913
11914 CONFIG_FILES = $CONFIG_FILES
11915 CONFIG_HEADERS = $CONFIG_HEADERS
11916 CONFIG_LINKS = $CONFIG_LINKS
11917 CONFIG_COMMANDS = $CONFIG_COMMANDS
11918 $ $0 $@
11919
11920on `(hostname || uname -n) 2>/dev/null | sed 1q`
11921"
11922
11923_ACEOF
11924
11925case $ac_config_files in *"
11926"*) set x $ac_config_files; shift; ac_config_files=$*;;
11927esac
11928
11929
11930
11931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11932# Files that config.status was made for.
11933config_files="$ac_config_files"
11934config_commands="$ac_config_commands"
11935
11936_ACEOF
11937
11938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11939ac_cs_usage="\
11940\`$as_me' instantiates files from templates according to the
11941current configuration.
11942
11943Usage: $0 [OPTION]... [FILE]...
11944
11945 -h, --help print this help, then exit
11946 -V, --version print version number and configuration settings, then exit
11947 -q, --quiet, --silent
11948 do not print progress messages
11949 -d, --debug don't remove temporary files
11950 --recheck update $as_me by reconfiguring in the same conditions
11951 --file=FILE[:TEMPLATE]
11952 instantiate the configuration file FILE
11953
11954Configuration files:
11955$config_files
11956
11957Configuration commands:
11958$config_commands
11959
11960Report bugs to <bug-autoconf@gnu.org>."
11961
11962_ACEOF
11963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11964ac_cs_version="\\
11965config.status
11966configured by $0, generated by GNU Autoconf 2.63,
11967 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11968
11969Copyright (C) 2008 Free Software Foundation, Inc.
11970This config.status script is free software; the Free Software Foundation
11971gives unlimited permission to copy, distribute and modify it."
11972
11973ac_pwd='$ac_pwd'
11974srcdir='$srcdir'
11975INSTALL='$INSTALL'
11976MKDIR_P='$MKDIR_P'
11977AWK='$AWK'
11978test -n "\$AWK" || AWK=awk
11979_ACEOF
11980
11981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11982# The default lists apply if the user does not specify any file.
11983ac_need_defaults=:
11984while test $# != 0
11985do
11986 case $1 in
11987 --*=*)
11988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11990 ac_shift=:
11991 ;;
11992 *)
11993 ac_option=$1
11994 ac_optarg=$2
11995 ac_shift=shift
11996 ;;
11997 esac
11998
11999 case $ac_option in
12000 # Handling of the options.
12001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12002 ac_cs_recheck=: ;;
12003 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12004 $as_echo "$ac_cs_version"; exit ;;
12005 --debug | --debu | --deb | --de | --d | -d )
12006 debug=: ;;
12007 --file | --fil | --fi | --f )
12008 $ac_shift
12009 case $ac_optarg in
12010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12011 esac
12012 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12013 ac_need_defaults=false;;
12014 --he | --h | --help | --hel | -h )
12015 $as_echo "$ac_cs_usage"; exit ;;
12016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12017 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12018 ac_cs_silent=: ;;
12019
12020 # This is an error.
12021 -*) { $as_echo "$as_me: error: unrecognized option: $1
12022Try \`$0 --help' for more information." >&2
12023 { (exit 1); exit 1; }; } ;;
12024
12025 *) ac_config_targets="$ac_config_targets $1"
12026 ac_need_defaults=false ;;
12027
12028 esac
12029 shift
12030done
12031
12032ac_configure_extra_args=
12033
12034if $ac_cs_silent; then
12035 exec 6>/dev/null
12036 ac_configure_extra_args="$ac_configure_extra_args --silent"
12037fi
12038
12039_ACEOF
12040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12041if \$ac_cs_recheck; then
12042 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12043 shift
12044 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12045 CONFIG_SHELL='$SHELL'
12046 export CONFIG_SHELL
12047 exec "\$@"
12048fi
12049
12050_ACEOF
12051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12052exec 5>>config.log
12053{
12054 echo
12055 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12056## Running $as_me. ##
12057_ASBOX
12058 $as_echo "$ac_log"
12059} >&5
12060
12061_ACEOF
12062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12063#
12064# INIT-COMMANDS
12065#
12066AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12067
12068
12069# The HP-UX ksh and POSIX shell print the target directory to stdout
12070# if CDPATH is set.
12071(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12072
12073sed_quote_subst='$sed_quote_subst'
12074double_quote_subst='$double_quote_subst'
12075delay_variable_subst='$delay_variable_subst'
12076macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12077macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12078enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12079enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12080pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12081enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12082host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12083host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12084host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12085build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12086build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12087build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12088SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12089Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12090GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12091EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12092FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12093LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12094NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12095LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12096max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12097ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12098exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12099lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12100lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12101lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12102reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12103reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12104OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12105deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12106file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12107AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12108AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12109STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12110RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12111old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12112old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12113old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12114CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12115CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12116compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12117GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12118lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12119lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12120lt_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"`'
12121lt_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"`'
12122objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12123SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12124ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12125MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12126lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12127lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12128lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12129lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12130lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12131need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12132DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12133NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12134LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12135OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12136OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12137libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12138shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12139extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12140archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12141enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12142export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12143whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12144compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12145old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12146old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12147archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12148archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12149module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12150module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12151with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12152allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12153no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12154hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12155hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12156hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12157hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12158hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12159hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12160hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12161hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12162inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12163link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12164fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12165always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12166export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12167exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12168include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12169prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12170file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12171variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12172need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12173need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12174version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12175runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12176shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12177shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12178libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12179library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12180soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12181postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12182postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12183finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12184finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12185hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12186sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12187sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12188hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12189enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12190enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12191enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12192old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12193striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12194
12195LTCC='$LTCC'
12196LTCFLAGS='$LTCFLAGS'
12197compiler='$compiler_DEFAULT'
12198
12199# Quote evaled strings.
12200for var in SED \
12201GREP \
12202EGREP \
12203FGREP \
12204LD \
12205NM \
12206LN_S \
12207lt_SP2NL \
12208lt_NL2SP \
12209reload_flag \
12210OBJDUMP \
12211deplibs_check_method \
12212file_magic_cmd \
12213AR \
12214AR_FLAGS \
12215STRIP \
12216RANLIB \
12217CC \
12218CFLAGS \
12219compiler \
12220lt_cv_sys_global_symbol_pipe \
12221lt_cv_sys_global_symbol_to_cdecl \
12222lt_cv_sys_global_symbol_to_c_name_address \
12223lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12224SHELL \
12225ECHO \
12226lt_prog_compiler_no_builtin_flag \
12227lt_prog_compiler_wl \
12228lt_prog_compiler_pic \
12229lt_prog_compiler_static \
12230lt_cv_prog_compiler_c_o \
12231need_locks \
12232DSYMUTIL \
12233NMEDIT \
12234LIPO \
12235OTOOL \
12236OTOOL64 \
12237shrext_cmds \
12238export_dynamic_flag_spec \
12239whole_archive_flag_spec \
12240compiler_needs_object \
12241with_gnu_ld \
12242allow_undefined_flag \
12243no_undefined_flag \
12244hardcode_libdir_flag_spec \
12245hardcode_libdir_flag_spec_ld \
12246hardcode_libdir_separator \
12247fix_srcfile_path \
12248exclude_expsyms \
12249include_expsyms \
12250file_list_spec \
12251variables_saved_for_relink \
12252libname_spec \
12253library_names_spec \
12254soname_spec \
12255finish_eval \
12256old_striplib \
12257striplib; do
12258 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12259 *[\\\\\\\`\\"\\\$]*)
12260 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12261 ;;
12262 *)
12263 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12264 ;;
12265 esac
12266done
12267
12268# Double-quote double-evaled strings.
12269for var in reload_cmds \
12270old_postinstall_cmds \
12271old_postuninstall_cmds \
12272old_archive_cmds \
12273extract_expsyms_cmds \
12274old_archive_from_new_cmds \
12275old_archive_from_expsyms_cmds \
12276archive_cmds \
12277archive_expsym_cmds \
12278module_cmds \
12279module_expsym_cmds \
12280export_symbols_cmds \
12281prelink_cmds \
12282postinstall_cmds \
12283postuninstall_cmds \
12284finish_cmds \
12285sys_lib_search_path_spec \
12286sys_lib_dlsearch_path_spec; do
12287 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12288 *[\\\\\\\`\\"\\\$]*)
12289 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12290 ;;
12291 *)
12292 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12293 ;;
12294 esac
12295done
12296
12297# Fix-up fallback echo if it was mangled by the above quoting rules.
12298case \$lt_ECHO in
12299*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12300 ;;
12301esac
12302
12303ac_aux_dir='$ac_aux_dir'
12304xsi_shell='$xsi_shell'
12305lt_shell_append='$lt_shell_append'
12306
12307# See if we are running on zsh, and set the options which allow our
12308# commands through without removal of \ escapes INIT.
12309if test -n "\${ZSH_VERSION+set}" ; then
12310 setopt NO_GLOB_SUBST
12311fi
12312
12313
12314 PACKAGE='$PACKAGE'
12315 VERSION='$VERSION'
12316 TIMESTAMP='$TIMESTAMP'
12317 RM='$RM'
12318 ofile='$ofile'
12319
12320
12321
12322
12323_ACEOF
12324
12325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12326
12327# Handling of arguments.
12328for ac_config_target in $ac_config_targets
12329do
12330 case $ac_config_target in
12331 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12332 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12333 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
12334 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12335 "lib-src-gmp/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src-gmp/Makefile" ;;
12336 "src-gmp/Makefile") CONFIG_FILES="$CONFIG_FILES src-gmp/Makefile" ;;
12337 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12338
12339 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12340$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12341 { (exit 1); exit 1; }; };;
12342 esac
12343done
12344
12345
12346# If the user did not use the arguments to specify the items to instantiate,
12347# then the envvar interface is used. Set only those that are not.
12348# We use the long form for the default assignment because of an extremely
12349# bizarre bug on SunOS 4.1.3.
12350if $ac_need_defaults; then
12351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12353fi
12354
12355# Have a temporary directory for convenience. Make it in the build tree
12356# simply because there is no reason against having it here, and in addition,
12357# creating and moving files from /tmp can sometimes cause problems.
12358# Hook for its removal unless debugging.
12359# Note that there is a small window in which the directory will not be cleaned:
12360# after its creation but before its name has been assigned to `$tmp'.
12361$debug ||
12362{
12363 tmp=
12364 trap 'exit_status=$?
12365 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12366' 0
12367 trap '{ (exit 1); exit 1; }' 1 2 13 15
12368}
12369# Create a (secure) tmp directory for tmp files.
12370
12371{
12372 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12373 test -n "$tmp" && test -d "$tmp"
12374} ||
12375{
12376 tmp=./conf$$-$RANDOM
12377 (umask 077 && mkdir "$tmp")
12378} ||
12379{
12380 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12381 { (exit 1); exit 1; }
12382}
12383
12384# Set up the scripts for CONFIG_FILES section.
12385# No need to generate them if there are no CONFIG_FILES.
12386# This happens for instance with `./config.status config.h'.
12387if test -n "$CONFIG_FILES"; then
12388
12389
12390ac_cr=' '
12391ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12392if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12393 ac_cs_awk_cr='\\r'
12394else
12395 ac_cs_awk_cr=$ac_cr
12396fi
12397
12398echo 'BEGIN {' >"$tmp/subs1.awk" &&
12399_ACEOF
12400
12401
12402{
12403 echo "cat >conf$$subs.awk <<_ACEOF" &&
12404 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12405 echo "_ACEOF"
12406} >conf$$subs.sh ||
12407 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12408$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12409 { (exit 1); exit 1; }; }
12410ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12411ac_delim='%!_!# '
12412for ac_last_try in false false false false false :; do
12413 . ./conf$$subs.sh ||
12414 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12415$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12416 { (exit 1); exit 1; }; }
12417
12418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12419 if test $ac_delim_n = $ac_delim_num; then
12420 break
12421 elif $ac_last_try; then
12422 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12423$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12424 { (exit 1); exit 1; }; }
12425 else
12426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12427 fi
12428done
12429rm -f conf$$subs.sh
12430
12431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12432cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12433_ACEOF
12434sed -n '
12435h
12436s/^/S["/; s/!.*/"]=/
12437p
12438g
12439s/^[^!]*!//
12440:repl
12441t repl
12442s/'"$ac_delim"'$//
12443t delim
12444:nl
12445h
12446s/\(.\{148\}\).*/\1/
12447t more1
12448s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12449p
12450n
12451b repl
12452:more1
12453s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12454p
12455g
12456s/.\{148\}//
12457t nl
12458:delim
12459h
12460s/\(.\{148\}\).*/\1/
12461t more2
12462s/["\\]/\\&/g; s/^/"/; s/$/"/
12463p
12464b
12465:more2
12466s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12467p
12468g
12469s/.\{148\}//
12470t delim
12471' <conf$$subs.awk | sed '
12472/^[^""]/{
12473 N
12474 s/\n//
12475}
12476' >>$CONFIG_STATUS || ac_write_fail=1
12477rm -f conf$$subs.awk
12478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12479_ACAWK
12480cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12481 for (key in S) S_is_set[key] = 1
12482 FS = ""
12483
12484}
12485{
12486 line = $ 0
12487 nfields = split(line, field, "@")
12488 substed = 0
12489 len = length(field[1])
12490 for (i = 2; i < nfields; i++) {
12491 key = field[i]
12492 keylen = length(key)
12493 if (S_is_set[key]) {
12494 value = S[key]
12495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12496 len += length(value) + length(field[++i])
12497 substed = 1
12498 } else
12499 len += 1 + keylen
12500 }
12501
12502 print line
12503}
12504
12505_ACAWK
12506_ACEOF
12507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12510else
12511 cat
12512fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12513 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12514$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12515 { (exit 1); exit 1; }; }
12516_ACEOF
12517
12518# VPATH may cause trouble with some makes, so we remove $(srcdir),
12519# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12520# trailing colons and then remove the whole line if VPATH becomes empty
12521# (actually we leave an empty line to preserve line numbers).
12522if test "x$srcdir" = x.; then
12523 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12524s/:*\$(srcdir):*/:/
12525s/:*\${srcdir}:*/:/
12526s/:*@srcdir@:*/:/
12527s/^\([^=]*=[ ]*\):*/\1/
12528s/:*$//
12529s/^[^=]*=[ ]*$//
12530}'
12531fi
12532
12533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12534fi # test -n "$CONFIG_FILES"
12535
12536
12537eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12538shift
12539for ac_tag
12540do
12541 case $ac_tag in
12542 :[FHLC]) ac_mode=$ac_tag; continue;;
12543 esac
12544 case $ac_mode$ac_tag in
12545 :[FHL]*:*);;
12546 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12547$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12548 { (exit 1); exit 1; }; };;
12549 :[FH]-) ac_tag=-:-;;
12550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12551 esac
12552 ac_save_IFS=$IFS
12553 IFS=:
12554 set x $ac_tag
12555 IFS=$ac_save_IFS
12556 shift
12557 ac_file=$1
12558 shift
12559
12560 case $ac_mode in
12561 :L) ac_source=$1;;
12562 :[FH])
12563 ac_file_inputs=
12564 for ac_f
12565 do
12566 case $ac_f in
12567 -) ac_f="$tmp/stdin";;
12568 *) # Look for the file first in the build tree, then in the source tree
12569 # (if the path is not absolute). The absolute path cannot be DOS-style,
12570 # because $ac_f cannot contain `:'.
12571 test -f "$ac_f" ||
12572 case $ac_f in
12573 [\\/$]*) false;;
12574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12575 esac ||
12576 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12577$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12578 { (exit 1); exit 1; }; };;
12579 esac
12580 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12581 ac_file_inputs="$ac_file_inputs '$ac_f'"
12582 done
12583
12584 # Let's still pretend it is `configure' which instantiates (i.e., don't
12585 # use $as_me), people would be surprised to read:
12586 # /* config.h. Generated by config.status. */
12587 configure_input='Generated from '`
12588 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12589 `' by configure.'
12590 if test x"$ac_file" != x-; then
12591 configure_input="$ac_file. $configure_input"
12592 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12593$as_echo "$as_me: creating $ac_file" >&6;}
12594 fi
12595 # Neutralize special characters interpreted by sed in replacement strings.
12596 case $configure_input in #(
12597 *\&* | *\|* | *\\* )
12598 ac_sed_conf_input=`$as_echo "$configure_input" |
12599 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12600 *) ac_sed_conf_input=$configure_input;;
12601 esac
12602
12603 case $ac_tag in
12604 *:-:* | *:-) cat >"$tmp/stdin" \
12605 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12606$as_echo "$as_me: error: could not create $ac_file" >&2;}
12607 { (exit 1); exit 1; }; } ;;
12608 esac
12609 ;;
12610 esac
12611
12612 ac_dir=`$as_dirname -- "$ac_file" ||
12613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12614 X"$ac_file" : 'X\(//\)[^/]' \| \
12615 X"$ac_file" : 'X\(//\)$' \| \
12616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12617$as_echo X"$ac_file" |
12618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12619 s//\1/
12620 q
12621 }
12622 /^X\(\/\/\)[^/].*/{
12623 s//\1/
12624 q
12625 }
12626 /^X\(\/\/\)$/{
12627 s//\1/
12628 q
12629 }
12630 /^X\(\/\).*/{
12631 s//\1/
12632 q
12633 }
12634 s/.*/./; q'`
12635 { as_dir="$ac_dir"
12636 case $as_dir in #(
12637 -*) as_dir=./$as_dir;;
12638 esac
12639 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12640 as_dirs=
12641 while :; do
12642 case $as_dir in #(
12643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12644 *) as_qdir=$as_dir;;
12645 esac
12646 as_dirs="'$as_qdir' $as_dirs"
12647 as_dir=`$as_dirname -- "$as_dir" ||
12648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12649 X"$as_dir" : 'X\(//\)[^/]' \| \
12650 X"$as_dir" : 'X\(//\)$' \| \
12651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12652$as_echo X"$as_dir" |
12653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12654 s//\1/
12655 q
12656 }
12657 /^X\(\/\/\)[^/].*/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\/\)$/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\).*/{
12666 s//\1/
12667 q
12668 }
12669 s/.*/./; q'`
12670 test -d "$as_dir" && break
12671 done
12672 test -z "$as_dirs" || eval "mkdir $as_dirs"
12673 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12674$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12675 { (exit 1); exit 1; }; }; }
12676 ac_builddir=.
12677
12678case "$ac_dir" in
12679.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12680*)
12681 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12682 # A ".." for each directory in $ac_dir_suffix.
12683 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12684 case $ac_top_builddir_sub in
12685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12687 esac ;;
12688esac
12689ac_abs_top_builddir=$ac_pwd
12690ac_abs_builddir=$ac_pwd$ac_dir_suffix
12691# for backward compatibility:
12692ac_top_builddir=$ac_top_build_prefix
12693
12694case $srcdir in
12695 .) # We are building in place.
12696 ac_srcdir=.
12697 ac_top_srcdir=$ac_top_builddir_sub
12698 ac_abs_top_srcdir=$ac_pwd ;;
12699 [\\/]* | ?:[\\/]* ) # Absolute name.
12700 ac_srcdir=$srcdir$ac_dir_suffix;
12701 ac_top_srcdir=$srcdir
12702 ac_abs_top_srcdir=$srcdir ;;
12703 *) # Relative name.
12704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12705 ac_top_srcdir=$ac_top_build_prefix$srcdir
12706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12707esac
12708ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12709
12710
12711 case $ac_mode in
12712 :F)
12713 #
12714 # CONFIG_FILE
12715 #
12716
12717 case $INSTALL in
12718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12719 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12720 esac
12721 ac_MKDIR_P=$MKDIR_P
12722 case $MKDIR_P in
12723 [\\/$]* | ?:[\\/]* ) ;;
12724 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12725 esac
12726_ACEOF
12727
12728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12729# If the template does not know about datarootdir, expand it.
12730# FIXME: This hack should be removed a few years after 2.60.
12731ac_datarootdir_hack=; ac_datarootdir_seen=
12732
12733ac_sed_dataroot='
12734/datarootdir/ {
12735 p
12736 q
12737}
12738/@datadir@/p
12739/@docdir@/p
12740/@infodir@/p
12741/@localedir@/p
12742/@mandir@/p
12743'
12744case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12745*datarootdir*) ac_datarootdir_seen=yes;;
12746*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12747 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12748$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12749_ACEOF
12750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12751 ac_datarootdir_hack='
12752 s&@datadir@&$datadir&g
12753 s&@docdir@&$docdir&g
12754 s&@infodir@&$infodir&g
12755 s&@localedir@&$localedir&g
12756 s&@mandir@&$mandir&g
12757 s&\\\${datarootdir}&$datarootdir&g' ;;
12758esac
12759_ACEOF
12760
12761# Neutralize VPATH when `$srcdir' = `.'.
12762# Shell code in configure.ac might set extrasub.
12763# FIXME: do we really want to maintain this feature?
12764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12765ac_sed_extra="$ac_vpsub
12766$extrasub
12767_ACEOF
12768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12769:t
12770/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12771s|@configure_input@|$ac_sed_conf_input|;t t
12772s&@top_builddir@&$ac_top_builddir_sub&;t t
12773s&@top_build_prefix@&$ac_top_build_prefix&;t t
12774s&@srcdir@&$ac_srcdir&;t t
12775s&@abs_srcdir@&$ac_abs_srcdir&;t t
12776s&@top_srcdir@&$ac_top_srcdir&;t t
12777s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12778s&@builddir@&$ac_builddir&;t t
12779s&@abs_builddir@&$ac_abs_builddir&;t t
12780s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12781s&@INSTALL@&$ac_INSTALL&;t t
12782s&@MKDIR_P@&$ac_MKDIR_P&;t t
12783$ac_datarootdir_hack
12784"
12785eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12786 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12787$as_echo "$as_me: error: could not create $ac_file" >&2;}
12788 { (exit 1); exit 1; }; }
12789
12790test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12791 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12793 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12794which seems to be undefined. Please make sure it is defined." >&5
12795$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12796which seems to be undefined. Please make sure it is defined." >&2;}
12797
12798 rm -f "$tmp/stdin"
12799 case $ac_file in
12800 -) cat "$tmp/out" && rm -f "$tmp/out";;
12801 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12802 esac \
12803 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12804$as_echo "$as_me: error: could not create $ac_file" >&2;}
12805 { (exit 1); exit 1; }; }
12806 ;;
12807
12808
12809 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12810$as_echo "$as_me: executing $ac_file commands" >&6;}
12811 ;;
12812 esac
12813
12814
12815 case $ac_file$ac_mode in
12816 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
12817# are listed without --file. Let's play safe and only enable the eval
12818# if we detect the quoting.
12819case $CONFIG_FILES in
12820*\'*) eval set x "$CONFIG_FILES" ;;
12821*) set x $CONFIG_FILES ;;
12822esac
12823shift
12824for mf
12825do
12826 # Strip MF so we end up with the name of the file.
12827 mf=`echo "$mf" | sed -e 's/:.*$//'`
12828 # Check whether this is an Automake generated Makefile or not.
12829 # We used to match only the files named `Makefile.in', but
12830 # some people rename them; so instead we look at the file content.
12831 # Grep'ing the first line is not enough: some people post-process
12832 # each Makefile.in and add a new line on top of each file to say so.
12833 # Grep'ing the whole file is not good either: AIX grep has a line
12834 # limit of 2048, but all sed's we know have understand at least 4000.
12835 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12836 dirpart=`$as_dirname -- "$mf" ||
12837$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12838 X"$mf" : 'X\(//\)[^/]' \| \
12839 X"$mf" : 'X\(//\)$' \| \
12840 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12841$as_echo X"$mf" |
12842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12843 s//\1/
12844 q
12845 }
12846 /^X\(\/\/\)[^/].*/{
12847 s//\1/
12848 q
12849 }
12850 /^X\(\/\/\)$/{
12851 s//\1/
12852 q
12853 }
12854 /^X\(\/\).*/{
12855 s//\1/
12856 q
12857 }
12858 s/.*/./; q'`
12859 else
12860 continue
12861 fi
12862 # Extract the definition of DEPDIR, am__include, and am__quote
12863 # from the Makefile without running `make'.
12864 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12865 test -z "$DEPDIR" && continue
12866 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12867 test -z "am__include" && continue
12868 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12869 # When using ansi2knr, U may be empty or an underscore; expand it
12870 U=`sed -n 's/^U = //p' < "$mf"`
12871 # Find all dependency output files, they are included files with
12872 # $(DEPDIR) in their names. We invoke sed twice because it is the
12873 # simplest approach to changing $(DEPDIR) to its actual value in the
12874 # expansion.
12875 for file in `sed -n "
12876 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12877 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12878 # Make sure the directory exists.
12879 test -f "$dirpart/$file" && continue
12880 fdir=`$as_dirname -- "$file" ||
12881$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12882 X"$file" : 'X\(//\)[^/]' \| \
12883 X"$file" : 'X\(//\)$' \| \
12884 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12885$as_echo X"$file" |
12886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12887 s//\1/
12888 q
12889 }
12890 /^X\(\/\/\)[^/].*/{
12891 s//\1/
12892 q
12893 }
12894 /^X\(\/\/\)$/{
12895 s//\1/
12896 q
12897 }
12898 /^X\(\/\).*/{
12899 s//\1/
12900 q
12901 }
12902 s/.*/./; q'`
12903 { as_dir=$dirpart/$fdir
12904 case $as_dir in #(
12905 -*) as_dir=./$as_dir;;
12906 esac
12907 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12908 as_dirs=
12909 while :; do
12910 case $as_dir in #(
12911 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12912 *) as_qdir=$as_dir;;
12913 esac
12914 as_dirs="'$as_qdir' $as_dirs"
12915 as_dir=`$as_dirname -- "$as_dir" ||
12916$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12917 X"$as_dir" : 'X\(//\)[^/]' \| \
12918 X"$as_dir" : 'X\(//\)$' \| \
12919 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12920$as_echo X"$as_dir" |
12921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12922 s//\1/
12923 q
12924 }
12925 /^X\(\/\/\)[^/].*/{
12926 s//\1/
12927 q
12928 }
12929 /^X\(\/\/\)$/{
12930 s//\1/
12931 q
12932 }
12933 /^X\(\/\).*/{
12934 s//\1/
12935 q
12936 }
12937 s/.*/./; q'`
12938 test -d "$as_dir" && break
12939 done
12940 test -z "$as_dirs" || eval "mkdir $as_dirs"
12941 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12942$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12943 { (exit 1); exit 1; }; }; }
12944 # echo "creating $dirpart/$file"
12945 echo '# dummy' > "$dirpart/$file"
12946 done
12947done
12948 ;;
12949 "libtool":C)
12950
12951 # See if we are running on zsh, and set the options which allow our
12952 # commands through without removal of \ escapes.
12953 if test -n "${ZSH_VERSION+set}" ; then
12954 setopt NO_GLOB_SUBST
12955 fi
12956
12957 cfgfile="${ofile}T"
12958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12959 $RM "$cfgfile"
12960
12961 cat <<_LT_EOF >> "$cfgfile"
12962#! $SHELL
12963
12964# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12965# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12967# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12968#
12969# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12970# 2006, 2007, 2008 Free Software Foundation, Inc.
12971# Written by Gordon Matzigkeit, 1996
12972#
12973# This file is part of GNU Libtool.
12974#
12975# GNU Libtool is free software; you can redistribute it and/or
12976# modify it under the terms of the GNU General Public License as
12977# published by the Free Software Foundation; either version 2 of
12978# the License, or (at your option) any later version.
12979#
12980# As a special exception to the GNU General Public License,
12981# if you distribute this file as part of a program or library that
12982# is built using GNU Libtool, you may include this file under the
12983# same distribution terms that you use for the rest of that program.
12984#
12985# GNU Libtool is distributed in the hope that it will be useful,
12986# but WITHOUT ANY WARRANTY; without even the implied warranty of
12987# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12988# GNU General Public License for more details.
12989#
12990# You should have received a copy of the GNU General Public License
12991# along with GNU Libtool; see the file COPYING. If not, a copy
12992# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12993# obtained by writing to the Free Software Foundation, Inc.,
12994# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12995
12996
12997# The names of the tagged configurations supported by this script.
12998available_tags=""
12999
13000# ### BEGIN LIBTOOL CONFIG
13001
13002# Which release of libtool.m4 was used?
13003macro_version=$macro_version
13004macro_revision=$macro_revision
13005
13006# Whether or not to build shared libraries.
13007build_libtool_libs=$enable_shared
13008
13009# Whether or not to build static libraries.
13010build_old_libs=$enable_static
13011
13012# What type of objects to build.
13013pic_mode=$pic_mode
13014
13015# Whether or not to optimize for fast installation.
13016fast_install=$enable_fast_install
13017
13018# The host system.
13019host_alias=$host_alias
13020host=$host
13021host_os=$host_os
13022
13023# The build system.
13024build_alias=$build_alias
13025build=$build
13026build_os=$build_os
13027
13028# A sed program that does not truncate output.
13029SED=$lt_SED
13030
13031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13032Xsed="\$SED -e 1s/^X//"
13033
13034# A grep program that handles long lines.
13035GREP=$lt_GREP
13036
13037# An ERE matcher.
13038EGREP=$lt_EGREP
13039
13040# A literal string matcher.
13041FGREP=$lt_FGREP
13042
13043# A BSD- or MS-compatible name lister.
13044NM=$lt_NM
13045
13046# Whether we need soft or hard links.
13047LN_S=$lt_LN_S
13048
13049# What is the maximum length of a command?
13050max_cmd_len=$max_cmd_len
13051
13052# Object file suffix (normally "o").
13053objext=$ac_objext
13054
13055# Executable file suffix (normally "").
13056exeext=$exeext
13057
13058# whether the shell understands "unset".
13059lt_unset=$lt_unset
13060
13061# turn spaces into newlines.
13062SP2NL=$lt_lt_SP2NL
13063
13064# turn newlines into spaces.
13065NL2SP=$lt_lt_NL2SP
13066
13067# How to create reloadable object files.
13068reload_flag=$lt_reload_flag
13069reload_cmds=$lt_reload_cmds
13070
13071# An object symbol dumper.
13072OBJDUMP=$lt_OBJDUMP
13073
13074# Method to check whether dependent libraries are shared objects.
13075deplibs_check_method=$lt_deplibs_check_method
13076
13077# Command to use when deplibs_check_method == "file_magic".
13078file_magic_cmd=$lt_file_magic_cmd
13079
13080# The archiver.
13081AR=$lt_AR
13082AR_FLAGS=$lt_AR_FLAGS
13083
13084# A symbol stripping program.
13085STRIP=$lt_STRIP
13086
13087# Commands used to install an old-style archive.
13088RANLIB=$lt_RANLIB
13089old_postinstall_cmds=$lt_old_postinstall_cmds
13090old_postuninstall_cmds=$lt_old_postuninstall_cmds
13091
13092# A C compiler.
13093LTCC=$lt_CC
13094
13095# LTCC compiler flags.
13096LTCFLAGS=$lt_CFLAGS
13097
13098# Take the output of nm and produce a listing of raw symbols and C names.
13099global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13100
13101# Transform the output of nm in a proper C declaration.
13102global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13103
13104# Transform the output of nm in a C name address pair.
13105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13106
13107# Transform the output of nm in a C name address pair when lib prefix is needed.
13108global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13109
13110# The name of the directory that contains temporary libtool files.
13111objdir=$objdir
13112
13113# Shell to use when invoking shell scripts.
13114SHELL=$lt_SHELL
13115
13116# An echo program that does not interpret backslashes.
13117ECHO=$lt_ECHO
13118
13119# Used to examine libraries when file_magic_cmd begins with "file".
13120MAGIC_CMD=$MAGIC_CMD
13121
13122# Must we lock files when doing compilation?
13123need_locks=$lt_need_locks
13124
13125# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13126DSYMUTIL=$lt_DSYMUTIL
13127
13128# Tool to change global to local symbols on Mac OS X.
13129NMEDIT=$lt_NMEDIT
13130
13131# Tool to manipulate fat objects and archives on Mac OS X.
13132LIPO=$lt_LIPO
13133
13134# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13135OTOOL=$lt_OTOOL
13136
13137# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13138OTOOL64=$lt_OTOOL64
13139
13140# Old archive suffix (normally "a").
13141libext=$libext
13142
13143# Shared library suffix (normally ".so").
13144shrext_cmds=$lt_shrext_cmds
13145
13146# The commands to extract the exported symbol list from a shared archive.
13147extract_expsyms_cmds=$lt_extract_expsyms_cmds
13148
13149# Variables whose values should be saved in libtool wrapper scripts and
13150# restored at link time.
13151variables_saved_for_relink=$lt_variables_saved_for_relink
13152
13153# Do we need the "lib" prefix for modules?
13154need_lib_prefix=$need_lib_prefix
13155
13156# Do we need a version for libraries?
13157need_version=$need_version
13158
13159# Library versioning type.
13160version_type=$version_type
13161
13162# Shared library runtime path variable.
13163runpath_var=$runpath_var
13164
13165# Shared library path variable.
13166shlibpath_var=$shlibpath_var
13167
13168# Is shlibpath searched before the hard-coded library search path?
13169shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13170
13171# Format of library name prefix.
13172libname_spec=$lt_libname_spec
13173
13174# List of archive names. First name is the real one, the rest are links.
13175# The last name is the one that the linker finds with -lNAME
13176library_names_spec=$lt_library_names_spec
13177
13178# The coded name of the library, if different from the real name.
13179soname_spec=$lt_soname_spec
13180
13181# Command to use after installation of a shared archive.
13182postinstall_cmds=$lt_postinstall_cmds
13183
13184# Command to use after uninstallation of a shared archive.
13185postuninstall_cmds=$lt_postuninstall_cmds
13186
13187# Commands used to finish a libtool library installation in a directory.
13188finish_cmds=$lt_finish_cmds
13189
13190# As "finish_cmds", except a single script fragment to be evaled but
13191# not shown.
13192finish_eval=$lt_finish_eval
13193
13194# Whether we should hardcode library paths into libraries.
13195hardcode_into_libs=$hardcode_into_libs
13196
13197# Compile-time system search path for libraries.
13198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13199
13200# Run-time system search path for libraries.
13201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13202
13203# Whether dlopen is supported.
13204dlopen_support=$enable_dlopen
13205
13206# Whether dlopen of programs is supported.
13207dlopen_self=$enable_dlopen_self
13208
13209# Whether dlopen of statically linked programs is supported.
13210dlopen_self_static=$enable_dlopen_self_static
13211
13212# Commands to strip libraries.
13213old_striplib=$lt_old_striplib
13214striplib=$lt_striplib
13215
13216
13217# The linker used to build libraries.
13218LD=$lt_LD
13219
13220# Commands used to build an old-style archive.
13221old_archive_cmds=$lt_old_archive_cmds
13222
13223# A language specific compiler.
13224CC=$lt_compiler
13225
13226# Is the compiler the GNU compiler?
13227with_gcc=$GCC
13228
13229# Compiler flag to turn off builtin functions.
13230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13231
13232# How to pass a linker flag through the compiler.
13233wl=$lt_lt_prog_compiler_wl
13234
13235# Additional compiler flags for building library objects.
13236pic_flag=$lt_lt_prog_compiler_pic
13237
13238# Compiler flag to prevent dynamic linking.
13239link_static_flag=$lt_lt_prog_compiler_static
13240
13241# Does compiler simultaneously support -c and -o options?
13242compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13243
13244# Whether or not to add -lc for building shared libraries.
13245build_libtool_need_lc=$archive_cmds_need_lc
13246
13247# Whether or not to disallow shared libs when runtime libs are static.
13248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13249
13250# Compiler flag to allow reflexive dlopens.
13251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13252
13253# Compiler flag to generate shared objects directly from archives.
13254whole_archive_flag_spec=$lt_whole_archive_flag_spec
13255
13256# Whether the compiler copes with passing no objects directly.
13257compiler_needs_object=$lt_compiler_needs_object
13258
13259# Create an old-style archive from a shared archive.
13260old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13261
13262# Create a temporary old-style archive to link instead of a shared archive.
13263old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13264
13265# Commands used to build a shared archive.
13266archive_cmds=$lt_archive_cmds
13267archive_expsym_cmds=$lt_archive_expsym_cmds
13268
13269# Commands used to build a loadable module if different from building
13270# a shared archive.
13271module_cmds=$lt_module_cmds
13272module_expsym_cmds=$lt_module_expsym_cmds
13273
13274# Whether we are building with GNU ld or not.
13275with_gnu_ld=$lt_with_gnu_ld
13276
13277# Flag that allows shared libraries with undefined symbols to be built.
13278allow_undefined_flag=$lt_allow_undefined_flag
13279
13280# Flag that enforces no undefined symbols.
13281no_undefined_flag=$lt_no_undefined_flag
13282
13283# Flag to hardcode \$libdir into a binary during linking.
13284# This must work even if \$libdir does not exist
13285hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13286
13287# If ld is used when linking, flag to hardcode \$libdir into a binary
13288# during linking. This must work even if \$libdir does not exist.
13289hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13290
13291# Whether we need a single "-rpath" flag with a separated argument.
13292hardcode_libdir_separator=$lt_hardcode_libdir_separator
13293
13294# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13295# DIR into the resulting binary.
13296hardcode_direct=$hardcode_direct
13297
13298# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13299# DIR into the resulting binary and the resulting library dependency is
13300# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13301# library is relocated.
13302hardcode_direct_absolute=$hardcode_direct_absolute
13303
13304# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13305# into the resulting binary.
13306hardcode_minus_L=$hardcode_minus_L
13307
13308# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13309# into the resulting binary.
13310hardcode_shlibpath_var=$hardcode_shlibpath_var
13311
13312# Set to "yes" if building a shared library automatically hardcodes DIR
13313# into the library and all subsequent libraries and executables linked
13314# against it.
13315hardcode_automatic=$hardcode_automatic
13316
13317# Set to yes if linker adds runtime paths of dependent libraries
13318# to runtime path list.
13319inherit_rpath=$inherit_rpath
13320
13321# Whether libtool must link a program against all its dependency libraries.
13322link_all_deplibs=$link_all_deplibs
13323
13324# Fix the shell variable \$srcfile for the compiler.
13325fix_srcfile_path=$lt_fix_srcfile_path
13326
13327# Set to "yes" if exported symbols are required.
13328always_export_symbols=$always_export_symbols
13329
13330# The commands to list exported symbols.
13331export_symbols_cmds=$lt_export_symbols_cmds
13332
13333# Symbols that should not be listed in the preloaded symbols.
13334exclude_expsyms=$lt_exclude_expsyms
13335
13336# Symbols that must always be exported.
13337include_expsyms=$lt_include_expsyms
13338
13339# Commands necessary for linking programs (against libraries) with templates.
13340prelink_cmds=$lt_prelink_cmds
13341
13342# Specify filename containing input files.
13343file_list_spec=$lt_file_list_spec
13344
13345# How to hardcode a shared library path into an executable.
13346hardcode_action=$hardcode_action
13347
13348# ### END LIBTOOL CONFIG
13349
13350_LT_EOF
13351
13352 case $host_os in
13353 aix3*)
13354 cat <<\_LT_EOF >> "$cfgfile"
13355# AIX sometimes has problems with the GCC collect2 program. For some
13356# reason, if we set the COLLECT_NAMES environment variable, the problems
13357# vanish in a puff of smoke.
13358if test "X${COLLECT_NAMES+set}" != Xset; then
13359 COLLECT_NAMES=
13360 export COLLECT_NAMES
13361fi
13362_LT_EOF
13363 ;;
13364 esac
13365
13366
13367ltmain="$ac_aux_dir/ltmain.sh"
13368
13369
13370 # We use sed instead of cat because bash on DJGPP gets confused if
13371 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13372 # text mode, it properly converts lines to CR/LF. This bash problem
13373 # is reportedly fixed, but why not run on old versions too?
13374 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13375 || (rm -f "$cfgfile"; exit 1)
13376
13377 case $xsi_shell in
13378 yes)
13379 cat << \_LT_EOF >> "$cfgfile"
13380
13381# func_dirname file append nondir_replacement
13382# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13383# otherwise set result to NONDIR_REPLACEMENT.
13384func_dirname ()
13385{
13386 case ${1} in
13387 */*) func_dirname_result="${1%/*}${2}" ;;
13388 * ) func_dirname_result="${3}" ;;
13389 esac
13390}
13391
13392# func_basename file
13393func_basename ()
13394{
13395 func_basename_result="${1##*/}"
13396}
13397
13398# func_dirname_and_basename file append nondir_replacement
13399# perform func_basename and func_dirname in a single function
13400# call:
13401# dirname: Compute the dirname of FILE. If nonempty,
13402# add APPEND to the result, otherwise set result
13403# to NONDIR_REPLACEMENT.
13404# value returned in "$func_dirname_result"
13405# basename: Compute filename of FILE.
13406# value retuned in "$func_basename_result"
13407# Implementation must be kept synchronized with func_dirname
13408# and func_basename. For efficiency, we do not delegate to
13409# those functions but instead duplicate the functionality here.
13410func_dirname_and_basename ()
13411{
13412 case ${1} in
13413 */*) func_dirname_result="${1%/*}${2}" ;;
13414 * ) func_dirname_result="${3}" ;;
13415 esac
13416 func_basename_result="${1##*/}"
13417}
13418
13419# func_stripname prefix suffix name
13420# strip PREFIX and SUFFIX off of NAME.
13421# PREFIX and SUFFIX must not contain globbing or regex special
13422# characters, hashes, percent signs, but SUFFIX may contain a leading
13423# dot (in which case that matches only a dot).
13424func_stripname ()
13425{
13426 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13427 # positional parameters, so assign one to ordinary parameter first.
13428 func_stripname_result=${3}
13429 func_stripname_result=${func_stripname_result#"${1}"}
13430 func_stripname_result=${func_stripname_result%"${2}"}
13431}
13432
13433# func_opt_split
13434func_opt_split ()
13435{
13436 func_opt_split_opt=${1%%=*}
13437 func_opt_split_arg=${1#*=}
13438}
13439
13440# func_lo2o object
13441func_lo2o ()
13442{
13443 case ${1} in
13444 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13445 *) func_lo2o_result=${1} ;;
13446 esac
13447}
13448
13449# func_xform libobj-or-source
13450func_xform ()
13451{
13452 func_xform_result=${1%.*}.lo
13453}
13454
13455# func_arith arithmetic-term...
13456func_arith ()
13457{
13458 func_arith_result=$(( $* ))
13459}
13460
13461# func_len string
13462# STRING may not start with a hyphen.
13463func_len ()
13464{
13465 func_len_result=${#1}
13466}
13467
13468_LT_EOF
13469 ;;
13470 *) # Bourne compatible functions.
13471 cat << \_LT_EOF >> "$cfgfile"
13472
13473# func_dirname file append nondir_replacement
13474# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13475# otherwise set result to NONDIR_REPLACEMENT.
13476func_dirname ()
13477{
13478 # Extract subdirectory from the argument.
13479 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13480 if test "X$func_dirname_result" = "X${1}"; then
13481 func_dirname_result="${3}"
13482 else
13483 func_dirname_result="$func_dirname_result${2}"
13484 fi
13485}
13486
13487# func_basename file
13488func_basename ()
13489{
13490 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13491}
13492
13493
13494# func_stripname prefix suffix name
13495# strip PREFIX and SUFFIX off of NAME.
13496# PREFIX and SUFFIX must not contain globbing or regex special
13497# characters, hashes, percent signs, but SUFFIX may contain a leading
13498# dot (in which case that matches only a dot).
13499# func_strip_suffix prefix name
13500func_stripname ()
13501{
13502 case ${2} in
13503 .*) func_stripname_result=`$ECHO "X${3}" \
13504 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13505 *) func_stripname_result=`$ECHO "X${3}" \
13506 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13507 esac
13508}
13509
13510# sed scripts:
13511my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13512my_sed_long_arg='1s/^-[^=]*=//'
13513
13514# func_opt_split
13515func_opt_split ()
13516{
13517 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13518 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13519}
13520
13521# func_lo2o object
13522func_lo2o ()
13523{
13524 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13525}
13526
13527# func_xform libobj-or-source
13528func_xform ()
13529{
13530 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13531}
13532
13533# func_arith arithmetic-term...
13534func_arith ()
13535{
13536 func_arith_result=`expr "$@"`
13537}
13538
13539# func_len string
13540# STRING may not start with a hyphen.
13541func_len ()
13542{
13543 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13544}
13545
13546_LT_EOF
13547esac
13548
13549case $lt_shell_append in
13550 yes)
13551 cat << \_LT_EOF >> "$cfgfile"
13552
13553# func_append var value
13554# Append VALUE to the end of shell variable VAR.
13555func_append ()
13556{
13557 eval "$1+=\$2"
13558}
13559_LT_EOF
13560 ;;
13561 *)
13562 cat << \_LT_EOF >> "$cfgfile"
13563
13564# func_append var value
13565# Append VALUE to the end of shell variable VAR.
13566func_append ()
13567{
13568 eval "$1=\$$1\$2"
13569}
13570
13571_LT_EOF
13572 ;;
13573 esac
13574
13575
13576 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13577 || (rm -f "$cfgfile"; exit 1)
13578
13579 mv -f "$cfgfile" "$ofile" ||
13580 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13581 chmod +x "$ofile"
13582
13583 ;;
13584
13585 esac
13586done # for ac_tag
13587
13588
13589{ (exit 0); exit 0; }
13590_ACEOF
13591chmod +x $CONFIG_STATUS
13592ac_clean_files=$ac_clean_files_save
13593
13594test $ac_write_fail = 0 ||
13595 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13596$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13597 { (exit 1); exit 1; }; }
13598
13599
13600# configure is writing to config.log, and then calls config.status.
13601# config.status does its own redirection, appending to config.log.
13602# Unfortunately, on DOS this fails, as config.log is still kept open
13603# by configure, so config.status won't be able to write to it; its
13604# output is simply discarded. So we exec the FD to /dev/null,
13605# effectively closing config.log, so it can be properly (re)opened and
13606# appended to by config.status. When coming back to configure, we
13607# need to make the FD available again.
13608if test "$no_create" != yes; then
13609 ac_cs_success=:
13610 ac_config_status_args=
13611 test "$silent" = yes &&
13612 ac_config_status_args="$ac_config_status_args --quiet"
13613 exec 5>/dev/null
13614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13615 exec 5>>config.log
13616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13617 # would make configure fail if this is the last instruction.
13618 $ac_cs_success || { (exit 1); exit 1; }
13619fi
13620if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13621 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13622$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13623fi
13624