blob: da50d64195c670fd980fcd6e7bb076306ded6ada [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=.
736LIB@&t@OBJS=
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
787LIB@&t@OBJS
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:__oline__: $ac_compile\"" >&5)
4395 (eval "$ac_compile" 2>conftest.err)
4396 cat conftest.err >&5
4397 (eval echo "\"\$as_me:__oline__: $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:__oline__: 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 __oline__ "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
7434## CAVEAT EMPTOR:
7435## There is no encapsulation within the following macros, do not change
7436## the running order or otherwise move them around unless you know exactly
7437## what you are doing...
7438if test -n "$compiler"; then
7439
7440lt_prog_compiler_no_builtin_flag=
7441
7442if test "$GCC" = yes; then
7443 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7444
7445 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7446$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7447if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7448 $as_echo_n "(cached) " >&6
7449else
7450 lt_cv_prog_compiler_rtti_exceptions=no
7451 ac_outfile=conftest.$ac_objext
7452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7453 lt_compiler_flag="-fno-rtti -fno-exceptions"
7454 # Insert the option either (1) after the last *FLAGS variable, or
7455 # (2) before a word containing "conftest.", or (3) at the end.
7456 # Note that $ac_compile itself does not contain backslashes and begins
7457 # with a dollar sign (not a hyphen), so the echo should work correctly.
7458 # The option is referenced via a variable to avoid confusing sed.
7459 lt_compile=`echo "$ac_compile" | $SED \
7460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7462 -e 's:$: $lt_compiler_flag:'`
7463 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7464 (eval "$lt_compile" 2>conftest.err)
7465 ac_status=$?
7466 cat conftest.err >&5
7467 echo "$as_me:__oline__: \$? = $ac_status" >&5
7468 if (exit $ac_status) && test -s "$ac_outfile"; then
7469 # The compiler can only warn and ignore the option if not recognized
7470 # So say no if there are warnings other than the usual output.
7471 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7474 lt_cv_prog_compiler_rtti_exceptions=yes
7475 fi
7476 fi
7477 $RM conftest*
7478
7479fi
7480{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7481$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7482
7483if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7484 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7485else
7486 :
7487fi
7488
7489fi
7490
7491
7492
7493
7494
7495
7496 lt_prog_compiler_wl=
7497lt_prog_compiler_pic=
7498lt_prog_compiler_static=
7499
7500{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7501$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7502
7503 if test "$GCC" = yes; then
7504 lt_prog_compiler_wl='-Wl,'
7505 lt_prog_compiler_static='-static'
7506
7507 case $host_os in
7508 aix*)
7509 # All AIX code is PIC.
7510 if test "$host_cpu" = ia64; then
7511 # AIX 5 now supports IA64 processor
7512 lt_prog_compiler_static='-Bstatic'
7513 fi
7514 ;;
7515
7516 amigaos*)
7517 case $host_cpu in
7518 powerpc)
7519 # see comment about AmigaOS4 .so support
7520 lt_prog_compiler_pic='-fPIC'
7521 ;;
7522 m68k)
7523 # FIXME: we need at least 68020 code to build shared libraries, but
7524 # adding the `-m68020' flag to GCC prevents building anything better,
7525 # like `-m68040'.
7526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7527 ;;
7528 esac
7529 ;;
7530
7531 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7532 # PIC is the default for these OSes.
7533 ;;
7534
7535 mingw* | cygwin* | pw32* | os2* | cegcc*)
7536 # This hack is so that the source file can tell whether it is being
7537 # built for inclusion in a dll (and should export symbols for example).
7538 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7539 # (--disable-auto-import) libraries
7540 lt_prog_compiler_pic='-DDLL_EXPORT'
7541 ;;
7542
7543 darwin* | rhapsody*)
7544 # PIC is the default on this platform
7545 # Common symbols not allowed in MH_DYLIB files
7546 lt_prog_compiler_pic='-fno-common'
7547 ;;
7548
7549 hpux*)
7550 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7551 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7552 # sets the default TLS model and affects inlining.
7553 case $host_cpu in
7554 hppa*64*)
7555 # +Z the default
7556 ;;
7557 *)
7558 lt_prog_compiler_pic='-fPIC'
7559 ;;
7560 esac
7561 ;;
7562
7563 interix[3-9]*)
7564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7565 # Instead, we relocate shared libraries at runtime.
7566 ;;
7567
7568 msdosdjgpp*)
7569 # Just because we use GCC doesn't mean we suddenly get shared libraries
7570 # on systems that don't support them.
7571 lt_prog_compiler_can_build_shared=no
7572 enable_shared=no
7573 ;;
7574
7575 *nto* | *qnx*)
7576 # QNX uses GNU C++, but need to define -shared option too, otherwise
7577 # it will coredump.
7578 lt_prog_compiler_pic='-fPIC -shared'
7579 ;;
7580
7581 sysv4*MP*)
7582 if test -d /usr/nec; then
7583 lt_prog_compiler_pic=-Kconform_pic
7584 fi
7585 ;;
7586
7587 *)
7588 lt_prog_compiler_pic='-fPIC'
7589 ;;
7590 esac
7591 else
7592 # PORTME Check for flag to pass linker flags through the system compiler.
7593 case $host_os in
7594 aix*)
7595 lt_prog_compiler_wl='-Wl,'
7596 if test "$host_cpu" = ia64; then
7597 # AIX 5 now supports IA64 processor
7598 lt_prog_compiler_static='-Bstatic'
7599 else
7600 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7601 fi
7602 ;;
7603
7604 mingw* | cygwin* | pw32* | os2* | cegcc*)
7605 # This hack is so that the source file can tell whether it is being
7606 # built for inclusion in a dll (and should export symbols for example).
7607 lt_prog_compiler_pic='-DDLL_EXPORT'
7608 ;;
7609
7610 hpux9* | hpux10* | hpux11*)
7611 lt_prog_compiler_wl='-Wl,'
7612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7613 # not for PA HP-UX.
7614 case $host_cpu in
7615 hppa*64*|ia64*)
7616 # +Z the default
7617 ;;
7618 *)
7619 lt_prog_compiler_pic='+Z'
7620 ;;
7621 esac
7622 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7623 lt_prog_compiler_static='${wl}-a ${wl}archive'
7624 ;;
7625
7626 irix5* | irix6* | nonstopux*)
7627 lt_prog_compiler_wl='-Wl,'
7628 # PIC (with -KPIC) is the default.
7629 lt_prog_compiler_static='-non_shared'
7630 ;;
7631
7632 linux* | k*bsd*-gnu)
7633 case $cc_basename in
7634 # old Intel for x86_64 which still supported -KPIC.
7635 ecc*)
7636 lt_prog_compiler_wl='-Wl,'
7637 lt_prog_compiler_pic='-KPIC'
7638 lt_prog_compiler_static='-static'
7639 ;;
7640 # icc used to be incompatible with GCC.
7641 # ICC 10 doesn't accept -KPIC any more.
7642 icc* | ifort*)
7643 lt_prog_compiler_wl='-Wl,'
7644 lt_prog_compiler_pic='-fPIC'
7645 lt_prog_compiler_static='-static'
7646 ;;
7647 # Lahey Fortran 8.1.
7648 lf95*)
7649 lt_prog_compiler_wl='-Wl,'
7650 lt_prog_compiler_pic='--shared'
7651 lt_prog_compiler_static='--static'
7652 ;;
7653 pgcc* | pgf77* | pgf90* | pgf95*)
7654 # Portland Group compilers (*not* the Pentium gcc compiler,
7655 # which looks to be a dead project)
7656 lt_prog_compiler_wl='-Wl,'
7657 lt_prog_compiler_pic='-fpic'
7658 lt_prog_compiler_static='-Bstatic'
7659 ;;
7660 ccc*)
7661 lt_prog_compiler_wl='-Wl,'
7662 # All Alpha code is PIC.
7663 lt_prog_compiler_static='-non_shared'
7664 ;;
7665 xl*)
7666 # IBM XL C 8.0/Fortran 10.1 on PPC
7667 lt_prog_compiler_wl='-Wl,'
7668 lt_prog_compiler_pic='-qpic'
7669 lt_prog_compiler_static='-qstaticlink'
7670 ;;
7671 *)
7672 case `$CC -V 2>&1 | sed 5q` in
7673 *Sun\ C*)
7674 # Sun C 5.9
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7677 lt_prog_compiler_wl='-Wl,'
7678 ;;
7679 *Sun\ F*)
7680 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7681 lt_prog_compiler_pic='-KPIC'
7682 lt_prog_compiler_static='-Bstatic'
7683 lt_prog_compiler_wl=''
7684 ;;
7685 esac
7686 ;;
7687 esac
7688 ;;
7689
7690 newsos6)
7691 lt_prog_compiler_pic='-KPIC'
7692 lt_prog_compiler_static='-Bstatic'
7693 ;;
7694
7695 *nto* | *qnx*)
7696 # QNX uses GNU C++, but need to define -shared option too, otherwise
7697 # it will coredump.
7698 lt_prog_compiler_pic='-fPIC -shared'
7699 ;;
7700
7701 osf3* | osf4* | osf5*)
7702 lt_prog_compiler_wl='-Wl,'
7703 # All OSF/1 code is PIC.
7704 lt_prog_compiler_static='-non_shared'
7705 ;;
7706
7707 rdos*)
7708 lt_prog_compiler_static='-non_shared'
7709 ;;
7710
7711 solaris*)
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-Bstatic'
7714 case $cc_basename in
7715 f77* | f90* | f95*)
7716 lt_prog_compiler_wl='-Qoption ld ';;
7717 *)
7718 lt_prog_compiler_wl='-Wl,';;
7719 esac
7720 ;;
7721
7722 sunos4*)
7723 lt_prog_compiler_wl='-Qoption ld '
7724 lt_prog_compiler_pic='-PIC'
7725 lt_prog_compiler_static='-Bstatic'
7726 ;;
7727
7728 sysv4 | sysv4.2uw2* | sysv4.3*)
7729 lt_prog_compiler_wl='-Wl,'
7730 lt_prog_compiler_pic='-KPIC'
7731 lt_prog_compiler_static='-Bstatic'
7732 ;;
7733
7734 sysv4*MP*)
7735 if test -d /usr/nec ;then
7736 lt_prog_compiler_pic='-Kconform_pic'
7737 lt_prog_compiler_static='-Bstatic'
7738 fi
7739 ;;
7740
7741 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7742 lt_prog_compiler_wl='-Wl,'
7743 lt_prog_compiler_pic='-KPIC'
7744 lt_prog_compiler_static='-Bstatic'
7745 ;;
7746
7747 unicos*)
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_can_build_shared=no
7750 ;;
7751
7752 uts4*)
7753 lt_prog_compiler_pic='-pic'
7754 lt_prog_compiler_static='-Bstatic'
7755 ;;
7756
7757 *)
7758 lt_prog_compiler_can_build_shared=no
7759 ;;
7760 esac
7761 fi
7762
7763case $host_os in
7764 # For platforms which do not support PIC, -DPIC is meaningless:
7765 *djgpp*)
7766 lt_prog_compiler_pic=
7767 ;;
7768 *)
7769 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
7770 ;;
7771esac
7772{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7773$as_echo "$lt_prog_compiler_pic" >&6; }
7774
7775
7776
7777
7778
7779
7780#
7781# Check to make sure the PIC flag actually works.
7782#
7783if test -n "$lt_prog_compiler_pic"; then
7784 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7785$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7786if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7787 $as_echo_n "(cached) " >&6
7788else
7789 lt_cv_prog_compiler_pic_works=no
7790 ac_outfile=conftest.$ac_objext
7791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7792 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
7793 # Insert the option either (1) after the last *FLAGS variable, or
7794 # (2) before a word containing "conftest.", or (3) at the end.
7795 # Note that $ac_compile itself does not contain backslashes and begins
7796 # with a dollar sign (not a hyphen), so the echo should work correctly.
7797 # The option is referenced via a variable to avoid confusing sed.
7798 lt_compile=`echo "$ac_compile" | $SED \
7799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7801 -e 's:$: $lt_compiler_flag:'`
7802 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7803 (eval "$lt_compile" 2>conftest.err)
7804 ac_status=$?
7805 cat conftest.err >&5
7806 echo "$as_me:__oline__: \$? = $ac_status" >&5
7807 if (exit $ac_status) && test -s "$ac_outfile"; then
7808 # The compiler can only warn and ignore the option if not recognized
7809 # So say no if there are warnings other than the usual output.
7810 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7813 lt_cv_prog_compiler_pic_works=yes
7814 fi
7815 fi
7816 $RM conftest*
7817
7818fi
7819{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7820$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7821
7822if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7823 case $lt_prog_compiler_pic in
7824 "" | " "*) ;;
7825 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7826 esac
7827else
7828 lt_prog_compiler_pic=
7829 lt_prog_compiler_can_build_shared=no
7830fi
7831
7832fi
7833
7834
7835
7836
7837
7838
7839#
7840# Check to make sure the static flag actually works.
7841#
7842wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7843{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7844$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7845if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7846 $as_echo_n "(cached) " >&6
7847else
7848 lt_cv_prog_compiler_static_works=no
7849 save_LDFLAGS="$LDFLAGS"
7850 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7851 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7853 # The linker can only warn and ignore the option if not recognized
7854 # So say no if there are warnings
7855 if test -s conftest.err; then
7856 # Append any errors to the config.log.
7857 cat conftest.err 1>&5
7858 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7860 if diff conftest.exp conftest.er2 >/dev/null; then
7861 lt_cv_prog_compiler_static_works=yes
7862 fi
7863 else
7864 lt_cv_prog_compiler_static_works=yes
7865 fi
7866 fi
7867 $RM -r conftest*
7868 LDFLAGS="$save_LDFLAGS"
7869
7870fi
7871{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7872$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7873
7874if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7875 :
7876else
7877 lt_prog_compiler_static=
7878fi
7879
7880
7881
7882
7883
7884
7885
7886 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7887$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7888if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7889 $as_echo_n "(cached) " >&6
7890else
7891 lt_cv_prog_compiler_c_o=no
7892 $RM -r conftest 2>/dev/null
7893 mkdir conftest
7894 cd conftest
7895 mkdir out
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897
7898 lt_compiler_flag="-o out/conftest2.$ac_objext"
7899 # Insert the option either (1) after the last *FLAGS variable, or
7900 # (2) before a word containing "conftest.", or (3) at the end.
7901 # Note that $ac_compile itself does not contain backslashes and begins
7902 # with a dollar sign (not a hyphen), so the echo should work correctly.
7903 lt_compile=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
7907 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7908 (eval "$lt_compile" 2>out/conftest.err)
7909 ac_status=$?
7910 cat out/conftest.err >&5
7911 echo "$as_me:__oline__: \$? = $ac_status" >&5
7912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7913 then
7914 # The compiler can only warn and ignore the option if not recognized
7915 # So say no if there are warnings
7916 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7919 lt_cv_prog_compiler_c_o=yes
7920 fi
7921 fi
7922 chmod u+w . 2>&5
7923 $RM conftest*
7924 # SGI C++ compiler will create directory out/ii_files/ for
7925 # template instantiation
7926 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7927 $RM out/* && rmdir out
7928 cd ..
7929 $RM -r conftest
7930 $RM conftest*
7931
7932fi
7933{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7934$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7935
7936
7937
7938
7939
7940
7941 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7942$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7943if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7944 $as_echo_n "(cached) " >&6
7945else
7946 lt_cv_prog_compiler_c_o=no
7947 $RM -r conftest 2>/dev/null
7948 mkdir conftest
7949 cd conftest
7950 mkdir out
7951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7952
7953 lt_compiler_flag="-o out/conftest2.$ac_objext"
7954 # Insert the option either (1) after the last *FLAGS variable, or
7955 # (2) before a word containing "conftest.", or (3) at the end.
7956 # Note that $ac_compile itself does not contain backslashes and begins
7957 # with a dollar sign (not a hyphen), so the echo should work correctly.
7958 lt_compile=`echo "$ac_compile" | $SED \
7959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7961 -e 's:$: $lt_compiler_flag:'`
7962 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7963 (eval "$lt_compile" 2>out/conftest.err)
7964 ac_status=$?
7965 cat out/conftest.err >&5
7966 echo "$as_me:__oline__: \$? = $ac_status" >&5
7967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7968 then
7969 # The compiler can only warn and ignore the option if not recognized
7970 # So say no if there are warnings
7971 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7972 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7973 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7974 lt_cv_prog_compiler_c_o=yes
7975 fi
7976 fi
7977 chmod u+w . 2>&5
7978 $RM conftest*
7979 # SGI C++ compiler will create directory out/ii_files/ for
7980 # template instantiation
7981 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7982 $RM out/* && rmdir out
7983 cd ..
7984 $RM -r conftest
7985 $RM conftest*
7986
7987fi
7988{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7989$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7990
7991
7992
7993
7994hard_links="nottested"
7995if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7996 # do not overwrite the value of need_locks provided by the user
7997 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7998$as_echo_n "checking if we can lock with hard links... " >&6; }
7999 hard_links=yes
8000 $RM conftest*
8001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8002 touch conftest.a
8003 ln conftest.a conftest.b 2>&5 || hard_links=no
8004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8005 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8006$as_echo "$hard_links" >&6; }
8007 if test "$hard_links" = no; then
8008 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8009$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8010 need_locks=warn
8011 fi
8012else
8013 need_locks=no
8014fi
8015
8016
8017
8018
8019
8020
8021 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8022$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8023
8024 runpath_var=
8025 allow_undefined_flag=
8026 always_export_symbols=no
8027 archive_cmds=
8028 archive_expsym_cmds=
8029 compiler_needs_object=no
8030 enable_shared_with_static_runtimes=no
8031 export_dynamic_flag_spec=
8032 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8033 hardcode_automatic=no
8034 hardcode_direct=no
8035 hardcode_direct_absolute=no
8036 hardcode_libdir_flag_spec=
8037 hardcode_libdir_flag_spec_ld=
8038 hardcode_libdir_separator=
8039 hardcode_minus_L=no
8040 hardcode_shlibpath_var=unsupported
8041 inherit_rpath=no
8042 link_all_deplibs=unknown
8043 module_cmds=
8044 module_expsym_cmds=
8045 old_archive_from_new_cmds=
8046 old_archive_from_expsyms_cmds=
8047 thread_safe_flag_spec=
8048 whole_archive_flag_spec=
8049 # include_expsyms should be a list of space-separated symbols to be *always*
8050 # included in the symbol list
8051 include_expsyms=
8052 # exclude_expsyms can be an extended regexp of symbols to exclude
8053 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8054 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8055 # as well as any symbol that contains `d'.
8056 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8058 # platforms (ab)use it in PIC code, but their linkers get confused if
8059 # the symbol is explicitly referenced. Since portable code cannot
8060 # rely on this symbol name, it's probably fine to never include it in
8061 # preloaded symbol tables.
8062 # Exclude shared library initialization/finalization symbols.
8063 extract_expsyms_cmds=
8064
8065 case $host_os in
8066 cygwin* | mingw* | pw32* | cegcc*)
8067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8068 # When not using gcc, we currently assume that we are using
8069 # Microsoft Visual C++.
8070 if test "$GCC" != yes; then
8071 with_gnu_ld=no
8072 fi
8073 ;;
8074 interix*)
8075 # we just hope/assume this is gcc and not c89 (= MSVC++)
8076 with_gnu_ld=yes
8077 ;;
8078 openbsd*)
8079 with_gnu_ld=no
8080 ;;
8081 esac
8082
8083 ld_shlibs=yes
8084 if test "$with_gnu_ld" = yes; then
8085 # If archive_cmds runs LD, not CC, wlarc should be empty
8086 wlarc='${wl}'
8087
8088 # Set some defaults for GNU ld with shared library support. These
8089 # are reset later if shared libraries are not supported. Putting them
8090 # here allows them to be overridden if necessary.
8091 runpath_var=LD_RUN_PATH
8092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8093 export_dynamic_flag_spec='${wl}--export-dynamic'
8094 # ancient GNU ld didn't support --whole-archive et. al.
8095 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8096 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8097 else
8098 whole_archive_flag_spec=
8099 fi
8100 supports_anon_versioning=no
8101 case `$LD -v 2>&1` in
8102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8105 *\ 2.11.*) ;; # other 2.11 versions
8106 *) supports_anon_versioning=yes ;;
8107 esac
8108
8109 # See if GNU ld supports shared libraries.
8110 case $host_os in
8111 aix[3-9]*)
8112 # On AIX/PPC, the GNU linker is very broken
8113 if test "$host_cpu" != ia64; then
8114 ld_shlibs=no
8115 cat <<_LT_EOF 1>&2
8116
8117*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8118*** to be unable to reliably create shared libraries on AIX.
8119*** Therefore, libtool is disabling shared libraries support. If you
8120*** really care for shared libraries, you may want to modify your PATH
8121*** so that a non-GNU linker is found, and then restart.
8122
8123_LT_EOF
8124 fi
8125 ;;
8126
8127 amigaos*)
8128 case $host_cpu in
8129 powerpc)
8130 # see comment about AmigaOS4 .so support
8131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132 archive_expsym_cmds=''
8133 ;;
8134 m68k)
8135 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)'
8136 hardcode_libdir_flag_spec='-L$libdir'
8137 hardcode_minus_L=yes
8138 ;;
8139 esac
8140 ;;
8141
8142 beos*)
8143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8144 allow_undefined_flag=unsupported
8145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8146 # support --undefined. This deserves some investigation. FIXME
8147 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148 else
8149 ld_shlibs=no
8150 fi
8151 ;;
8152
8153 cygwin* | mingw* | pw32* | cegcc*)
8154 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8155 # as there is no search path for DLLs.
8156 hardcode_libdir_flag_spec='-L$libdir'
8157 allow_undefined_flag=unsupported
8158 always_export_symbols=no
8159 enable_shared_with_static_runtimes=yes
8160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8161
8162 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8164 # If the export-symbols file already is a .def file (1st line
8165 # is EXPORTS), use it as is; otherwise, prepend...
8166 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8167 cp $export_symbols $output_objdir/$soname.def;
8168 else
8169 echo EXPORTS > $output_objdir/$soname.def;
8170 cat $export_symbols >> $output_objdir/$soname.def;
8171 fi~
8172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8173 else
8174 ld_shlibs=no
8175 fi
8176 ;;
8177
8178 interix[3-9]*)
8179 hardcode_direct=no
8180 hardcode_shlibpath_var=no
8181 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8182 export_dynamic_flag_spec='${wl}-E'
8183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8184 # Instead, shared libraries are loaded at an image base (0x10000000 by
8185 # default) and relocated if they conflict, which is a slow very memory
8186 # consuming and fragmenting process. To avoid this, we pick a random,
8187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8190 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'
8191 ;;
8192
8193 gnu* | linux* | tpf* | k*bsd*-gnu)
8194 tmp_diet=no
8195 if test "$host_os" = linux-dietlibc; then
8196 case $cc_basename in
8197 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8198 esac
8199 fi
8200 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8201 && test "$tmp_diet" = no
8202 then
8203 tmp_addflag=
8204 tmp_sharedflag='-shared'
8205 case $cc_basename,$host_cpu in
8206 pgcc*) # Portland Group C compiler
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'
8209 ;;
8210 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8211 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'
8212 tmp_addflag=' $pic_flag -Mnomain' ;;
8213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8214 tmp_addflag=' -i_dynamic' ;;
8215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8216 tmp_addflag=' -i_dynamic -nofor_main' ;;
8217 ifc* | ifort*) # Intel Fortran compiler
8218 tmp_addflag=' -nofor_main' ;;
8219 lf95*) # Lahey Fortran 8.1
8220 whole_archive_flag_spec=
8221 tmp_sharedflag='--shared' ;;
8222 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8223 tmp_sharedflag='-qmkshrobj'
8224 tmp_addflag= ;;
8225 esac
8226 case `$CC -V 2>&1 | sed 5q` in
8227 *Sun\ C*) # Sun C 5.9
8228 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'
8229 compiler_needs_object=yes
8230 tmp_sharedflag='-G' ;;
8231 *Sun\ F*) # Sun Fortran 8.3
8232 tmp_sharedflag='-G' ;;
8233 esac
8234 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235
8236 if test "x$supports_anon_versioning" = xyes; then
8237 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8239 echo "local: *; };" >> $output_objdir/$libname.ver~
8240 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8241 fi
8242
8243 case $cc_basename in
8244 xlf*)
8245 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8246 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8247 hardcode_libdir_flag_spec=
8248 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8249 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8250 if test "x$supports_anon_versioning" = xyes; then
8251 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8253 echo "local: *; };" >> $output_objdir/$libname.ver~
8254 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8255 fi
8256 ;;
8257 esac
8258 else
8259 ld_shlibs=no
8260 fi
8261 ;;
8262
8263 netbsd*)
8264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8265 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8266 wlarc=
8267 else
8268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8270 fi
8271 ;;
8272
8273 solaris*)
8274 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8275 ld_shlibs=no
8276 cat <<_LT_EOF 1>&2
8277
8278*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8279*** create shared libraries on Solaris systems. Therefore, libtool
8280*** is disabling shared libraries support. We urge you to upgrade GNU
8281*** binutils to release 2.9.1 or newer. Another option is to modify
8282*** your PATH or compiler configuration so that the native linker is
8283*** used, and then restart.
8284
8285_LT_EOF
8286 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289 else
8290 ld_shlibs=no
8291 fi
8292 ;;
8293
8294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8295 case `$LD -v 2>&1` in
8296 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8297 ld_shlibs=no
8298 cat <<_LT_EOF 1>&2
8299
8300*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8301*** reliably create shared libraries on SCO systems. Therefore, libtool
8302*** is disabling shared libraries support. We urge you to upgrade GNU
8303*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8304*** your PATH or compiler configuration so that the native linker is
8305*** used, and then restart.
8306
8307_LT_EOF
8308 ;;
8309 *)
8310 # For security reasons, it is highly recommended that you always
8311 # use absolute paths for naming shared libraries, and exclude the
8312 # DT_RUNPATH tag from executables and libraries. But doing so
8313 # requires that you compile everything twice, which is a pain.
8314 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318 else
8319 ld_shlibs=no
8320 fi
8321 ;;
8322 esac
8323 ;;
8324
8325 sunos4*)
8326 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8327 wlarc=
8328 hardcode_direct=yes
8329 hardcode_shlibpath_var=no
8330 ;;
8331
8332 *)
8333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8336 else
8337 ld_shlibs=no
8338 fi
8339 ;;
8340 esac
8341
8342 if test "$ld_shlibs" = no; then
8343 runpath_var=
8344 hardcode_libdir_flag_spec=
8345 export_dynamic_flag_spec=
8346 whole_archive_flag_spec=
8347 fi
8348 else
8349 # PORTME fill in a description of your system's linker (not GNU ld)
8350 case $host_os in
8351 aix3*)
8352 allow_undefined_flag=unsupported
8353 always_export_symbols=yes
8354 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'
8355 # Note: this linker hardcodes the directories in LIBPATH if there
8356 # are no directories specified by -L.
8357 hardcode_minus_L=yes
8358 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8359 # Neither direct hardcoding nor static linking is supported with a
8360 # broken collect2.
8361 hardcode_direct=unsupported
8362 fi
8363 ;;
8364
8365 aix[4-9]*)
8366 if test "$host_cpu" = ia64; then
8367 # On IA64, the linker does run time linking by default, so we don't
8368 # have to do anything special.
8369 aix_use_runtimelinking=no
8370 exp_sym_flag='-Bexport'
8371 no_entry_flag=""
8372 else
8373 # If we're using GNU nm, then we don't want the "-C" option.
8374 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8375 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8376 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'
8377 else
8378 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'
8379 fi
8380 aix_use_runtimelinking=no
8381
8382 # Test if we are trying to use run time linking or normal
8383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8384 # need to do runtime linking.
8385 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8386 for ld_flag in $LDFLAGS; do
8387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8388 aix_use_runtimelinking=yes
8389 break
8390 fi
8391 done
8392 ;;
8393 esac
8394
8395 exp_sym_flag='-bexport'
8396 no_entry_flag='-bnoentry'
8397 fi
8398
8399 # When large executables or shared objects are built, AIX ld can
8400 # have problems creating the table of contents. If linking a library
8401 # or program results in "error TOC overflow" add -mminimal-toc to
8402 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8403 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8404
8405 archive_cmds=''
8406 hardcode_direct=yes
8407 hardcode_direct_absolute=yes
8408 hardcode_libdir_separator=':'
8409 link_all_deplibs=yes
8410 file_list_spec='${wl}-f,'
8411
8412 if test "$GCC" = yes; then
8413 case $host_os in aix4.[012]|aix4.[012].*)
8414 # We only want to do this on AIX 4.2 and lower, the check
8415 # below for broken collect2 doesn't work under 4.3+
8416 collect2name=`${CC} -print-prog-name=collect2`
8417 if test -f "$collect2name" &&
8418 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8419 then
8420 # We have reworked collect2
8421 :
8422 else
8423 # We have old collect2
8424 hardcode_direct=unsupported
8425 # It fails to find uninstalled libraries when the uninstalled
8426 # path is not listed in the libpath. Setting hardcode_minus_L
8427 # to unsupported forces relinking
8428 hardcode_minus_L=yes
8429 hardcode_libdir_flag_spec='-L$libdir'
8430 hardcode_libdir_separator=
8431 fi
8432 ;;
8433 esac
8434 shared_flag='-shared'
8435 if test "$aix_use_runtimelinking" = yes; then
8436 shared_flag="$shared_flag "'${wl}-G'
8437 fi
8438 else
8439 # not using gcc
8440 if test "$host_cpu" = ia64; then
8441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8442 # chokes on -Wl,-G. The following line is correct:
8443 shared_flag='-G'
8444 else
8445 if test "$aix_use_runtimelinking" = yes; then
8446 shared_flag='${wl}-G'
8447 else
8448 shared_flag='${wl}-bM:SRE'
8449 fi
8450 fi
8451 fi
8452
8453 export_dynamic_flag_spec='${wl}-bexpall'
8454 # It seems that -bexpall does not export symbols beginning with
8455 # underscore (_), so it is better to generate a list of symbols to export.
8456 always_export_symbols=yes
8457 if test "$aix_use_runtimelinking" = yes; then
8458 # Warning - without using the other runtime loading flags (-brtl),
8459 # -berok will link without error, but may produce a broken library.
8460 allow_undefined_flag='-berok'
8461 # Determine the default libpath from the value encoded in an
8462 # empty executable.
8463 cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
8469
8470int
8471main ()
8472{
8473
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478rm -f conftest.$ac_objext conftest$ac_exeext
8479if { (ac_try="$ac_link"
8480case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483esac
8484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485$as_echo "$ac_try_echo") >&5
8486 (eval "$ac_link") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && {
8493 test -z "$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest$ac_exeext && {
8496 test "$cross_compiling" = yes ||
8497 $as_test_x conftest$ac_exeext
8498 }; then
8499
8500lt_aix_libpath_sed='
8501 /Import File Strings/,/^$/ {
8502 /^0/ {
8503 s/^0 *\(.*\)$/\1/
8504 p
8505 }
8506 }'
8507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8508# Check for a 64-bit object if we didn't find anything.
8509if test -z "$aix_libpath"; then
8510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511fi
8512else
8513 $as_echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516
8517fi
8518
8519rm -rf conftest.dSYM
8520rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8521 conftest$ac_exeext conftest.$ac_ext
8522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8523
8524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8525 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"
8526 else
8527 if test "$host_cpu" = ia64; then
8528 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8529 allow_undefined_flag="-z nodefs"
8530 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"
8531 else
8532 # Determine the default libpath from the value encoded in an
8533 # empty executable.
8534 cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h. */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
8539/* end confdefs.h. */
8540
8541int
8542main ()
8543{
8544
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext conftest$ac_exeext
8550if { (ac_try="$ac_link"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8556$as_echo "$ac_try_echo") >&5
8557 (eval "$ac_link") 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } && {
8564 test -z "$ac_c_werror_flag" ||
8565 test ! -s conftest.err
8566 } && test -s conftest$ac_exeext && {
8567 test "$cross_compiling" = yes ||
8568 $as_test_x conftest$ac_exeext
8569 }; then
8570
8571lt_aix_libpath_sed='
8572 /Import File Strings/,/^$/ {
8573 /^0/ {
8574 s/^0 *\(.*\)$/\1/
8575 p
8576 }
8577 }'
8578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8579# Check for a 64-bit object if we didn't find anything.
8580if test -z "$aix_libpath"; then
8581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8582fi
8583else
8584 $as_echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587
8588fi
8589
8590rm -rf conftest.dSYM
8591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 conftest$ac_exeext conftest.$ac_ext
8593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8594
8595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8596 # Warning - without using the other run time loading flags,
8597 # -berok will link without error, but may produce a broken library.
8598 no_undefined_flag=' ${wl}-bernotok'
8599 allow_undefined_flag=' ${wl}-berok'
8600 # Exported symbols can be pulled into shared objects from archives
8601 whole_archive_flag_spec='$convenience'
8602 archive_cmds_need_lc=yes
8603 # This is similar to how AIX traditionally builds its shared libraries.
8604 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'
8605 fi
8606 fi
8607 ;;
8608
8609 amigaos*)
8610 case $host_cpu in
8611 powerpc)
8612 # see comment about AmigaOS4 .so support
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds=''
8615 ;;
8616 m68k)
8617 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)'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_minus_L=yes
8620 ;;
8621 esac
8622 ;;
8623
8624 bsdi[45]*)
8625 export_dynamic_flag_spec=-rdynamic
8626 ;;
8627
8628 cygwin* | mingw* | pw32* | cegcc*)
8629 # When not using gcc, we currently assume that we are using
8630 # Microsoft Visual C++.
8631 # hardcode_libdir_flag_spec is actually meaningless, as there is
8632 # no search path for DLLs.
8633 hardcode_libdir_flag_spec=' '
8634 allow_undefined_flag=unsupported
8635 # Tell ltmain to make .lib files, not .a files.
8636 libext=lib
8637 # Tell ltmain to make .dll files, not .so files.
8638 shrext_cmds=".dll"
8639 # FIXME: Setting linknames here is a bad hack.
8640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8641 # The linker will automatically build a .lib file if we build a DLL.
8642 old_archive_from_new_cmds='true'
8643 # FIXME: Should let the user specify the lib program.
8644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8645 fix_srcfile_path='`cygpath -w "$srcfile"`'
8646 enable_shared_with_static_runtimes=yes
8647 ;;
8648
8649 darwin* | rhapsody*)
8650
8651
8652 archive_cmds_need_lc=no
8653 hardcode_direct=no
8654 hardcode_automatic=yes
8655 hardcode_shlibpath_var=unsupported
8656 whole_archive_flag_spec=''
8657 link_all_deplibs=yes
8658 allow_undefined_flag="$_lt_dar_allow_undefined"
8659 case $cc_basename in
8660 ifort*) _lt_dar_can_shared=yes ;;
8661 *) _lt_dar_can_shared=$GCC ;;
8662 esac
8663 if test "$_lt_dar_can_shared" = "yes"; then
8664 output_verbose_link_cmd=echo
8665 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8666 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8667 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}"
8668 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}"
8669
8670 else
8671 ld_shlibs=no
8672 fi
8673
8674 ;;
8675
8676 dgux*)
8677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 hardcode_libdir_flag_spec='-L$libdir'
8679 hardcode_shlibpath_var=no
8680 ;;
8681
8682 freebsd1*)
8683 ld_shlibs=no
8684 ;;
8685
8686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8687 # support. Future versions do this automatically, but an explicit c++rt0.o
8688 # does not break anything, and helps significantly (at the cost of a little
8689 # extra space).
8690 freebsd2.2*)
8691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8692 hardcode_libdir_flag_spec='-R$libdir'
8693 hardcode_direct=yes
8694 hardcode_shlibpath_var=no
8695 ;;
8696
8697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8698 freebsd2*)
8699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8700 hardcode_direct=yes
8701 hardcode_minus_L=yes
8702 hardcode_shlibpath_var=no
8703 ;;
8704
8705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8706 freebsd* | dragonfly*)
8707 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8708 hardcode_libdir_flag_spec='-R$libdir'
8709 hardcode_direct=yes
8710 hardcode_shlibpath_var=no
8711 ;;
8712
8713 hpux9*)
8714 if test "$GCC" = yes; then
8715 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'
8716 else
8717 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'
8718 fi
8719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8720 hardcode_libdir_separator=:
8721 hardcode_direct=yes
8722
8723 # hardcode_minus_L: Not really in the search PATH,
8724 # but as the default location of the library.
8725 hardcode_minus_L=yes
8726 export_dynamic_flag_spec='${wl}-E'
8727 ;;
8728
8729 hpux10*)
8730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8732 else
8733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8734 fi
8735 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_flag_spec_ld='+b $libdir'
8738 hardcode_libdir_separator=:
8739 hardcode_direct=yes
8740 hardcode_direct_absolute=yes
8741 export_dynamic_flag_spec='${wl}-E'
8742 # hardcode_minus_L: Not really in the search PATH,
8743 # but as the default location of the library.
8744 hardcode_minus_L=yes
8745 fi
8746 ;;
8747
8748 hpux11*)
8749 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8750 case $host_cpu in
8751 hppa*64*)
8752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 ;;
8754 ia64*)
8755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8756 ;;
8757 *)
8758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8759 ;;
8760 esac
8761 else
8762 case $host_cpu in
8763 hppa*64*)
8764 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8765 ;;
8766 ia64*)
8767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8768 ;;
8769 *)
8770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8771 ;;
8772 esac
8773 fi
8774 if test "$with_gnu_ld" = no; then
8775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8776 hardcode_libdir_separator=:
8777
8778 case $host_cpu in
8779 hppa*64*|ia64*)
8780 hardcode_direct=no
8781 hardcode_shlibpath_var=no
8782 ;;
8783 *)
8784 hardcode_direct=yes
8785 hardcode_direct_absolute=yes
8786 export_dynamic_flag_spec='${wl}-E'
8787
8788 # hardcode_minus_L: Not really in the search PATH,
8789 # but as the default location of the library.
8790 hardcode_minus_L=yes
8791 ;;
8792 esac
8793 fi
8794 ;;
8795
8796 irix5* | irix6* | nonstopux*)
8797 if test "$GCC" = yes; then
8798 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'
8799 # Try to use the -exported_symbol ld option, if it does not
8800 # work, assume that -exports_file does not work either and
8801 # implicitly export all symbols.
8802 save_LDFLAGS="$LDFLAGS"
8803 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8804 cat >conftest.$ac_ext <<_ACEOF
8805int foo(void) {}
8806_ACEOF
8807rm -f conftest.$ac_objext conftest$ac_exeext
8808if { (ac_try="$ac_link"
8809case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812esac
8813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8814$as_echo "$ac_try_echo") >&5
8815 (eval "$ac_link") 2>conftest.er1
8816 ac_status=$?
8817 grep -v '^ *+' conftest.er1 >conftest.err
8818 rm -f conftest.er1
8819 cat conftest.err >&5
8820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && {
8822 test -z "$ac_c_werror_flag" ||
8823 test ! -s conftest.err
8824 } && test -s conftest$ac_exeext && {
8825 test "$cross_compiling" = yes ||
8826 $as_test_x conftest$ac_exeext
8827 }; then
8828 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'
8829
8830else
8831 $as_echo "$as_me: failed program was:" >&5
8832sed 's/^/| /' conftest.$ac_ext >&5
8833
8834
8835fi
8836
8837rm -rf conftest.dSYM
8838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8839 conftest$ac_exeext conftest.$ac_ext
8840 LDFLAGS="$save_LDFLAGS"
8841 else
8842 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'
8843 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'
8844 fi
8845 archive_cmds_need_lc='no'
8846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847 hardcode_libdir_separator=:
8848 inherit_rpath=yes
8849 link_all_deplibs=yes
8850 ;;
8851
8852 netbsd*)
8853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8855 else
8856 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8857 fi
8858 hardcode_libdir_flag_spec='-R$libdir'
8859 hardcode_direct=yes
8860 hardcode_shlibpath_var=no
8861 ;;
8862
8863 newsos6)
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_direct=yes
8866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8867 hardcode_libdir_separator=:
8868 hardcode_shlibpath_var=no
8869 ;;
8870
8871 *nto* | *qnx*)
8872 ;;
8873
8874 openbsd*)
8875 if test -f /usr/libexec/ld.so; then
8876 hardcode_direct=yes
8877 hardcode_shlibpath_var=no
8878 hardcode_direct_absolute=yes
8879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8881 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8883 export_dynamic_flag_spec='${wl}-E'
8884 else
8885 case $host_os in
8886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_libdir_flag_spec='-R$libdir'
8889 ;;
8890 *)
8891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8893 ;;
8894 esac
8895 fi
8896 else
8897 ld_shlibs=no
8898 fi
8899 ;;
8900
8901 os2*)
8902 hardcode_libdir_flag_spec='-L$libdir'
8903 hardcode_minus_L=yes
8904 allow_undefined_flag=unsupported
8905 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'
8906 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8907 ;;
8908
8909 osf3*)
8910 if test "$GCC" = yes; then
8911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8912 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'
8913 else
8914 allow_undefined_flag=' -expect_unresolved \*'
8915 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'
8916 fi
8917 archive_cmds_need_lc='no'
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 hardcode_libdir_separator=:
8920 ;;
8921
8922 osf4* | osf5*) # as osf3* with the addition of -msym flag
8923 if test "$GCC" = yes; then
8924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8925 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'
8926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8927 else
8928 allow_undefined_flag=' -expect_unresolved \*'
8929 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'
8930 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~
8931 $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'
8932
8933 # Both c and cxx compiler support -rpath directly
8934 hardcode_libdir_flag_spec='-rpath $libdir'
8935 fi
8936 archive_cmds_need_lc='no'
8937 hardcode_libdir_separator=:
8938 ;;
8939
8940 solaris*)
8941 no_undefined_flag=' -z defs'
8942 if test "$GCC" = yes; then
8943 wlarc='${wl}'
8944 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8946 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8947 else
8948 case `$CC -V 2>&1` in
8949 *"Compilers 5.0"*)
8950 wlarc=''
8951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8954 ;;
8955 *)
8956 wlarc='${wl}'
8957 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8959 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8960 ;;
8961 esac
8962 fi
8963 hardcode_libdir_flag_spec='-R$libdir'
8964 hardcode_shlibpath_var=no
8965 case $host_os in
8966 solaris2.[0-5] | solaris2.[0-5].*) ;;
8967 *)
8968 # The compiler driver will combine and reorder linker options,
8969 # but understands `-z linker_flag'. GCC discards it without `$wl',
8970 # but is careful enough not to reorder.
8971 # Supported since Solaris 2.6 (maybe 2.5.1?)
8972 if test "$GCC" = yes; then
8973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8974 else
8975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8976 fi
8977 ;;
8978 esac
8979 link_all_deplibs=yes
8980 ;;
8981
8982 sunos4*)
8983 if test "x$host_vendor" = xsequent; then
8984 # Use $CC to link under sequent, because it throws in some extra .o
8985 # files that make .init and .fini sections work.
8986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8987 else
8988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8989 fi
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_direct=yes
8992 hardcode_minus_L=yes
8993 hardcode_shlibpath_var=no
8994 ;;
8995
8996 sysv4)
8997 case $host_vendor in
8998 sni)
8999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_direct=yes # is this really true???
9001 ;;
9002 siemens)
9003 ## LD is ld it makes a PLAMLIB
9004 ## CC just makes a GrossModule.
9005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9006 reload_cmds='$CC -r -o $output$reload_objs'
9007 hardcode_direct=no
9008 ;;
9009 motorola)
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9012 ;;
9013 esac
9014 runpath_var='LD_RUN_PATH'
9015 hardcode_shlibpath_var=no
9016 ;;
9017
9018 sysv4.3*)
9019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9020 hardcode_shlibpath_var=no
9021 export_dynamic_flag_spec='-Bexport'
9022 ;;
9023
9024 sysv4*MP*)
9025 if test -d /usr/nec; then
9026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 hardcode_shlibpath_var=no
9028 runpath_var=LD_RUN_PATH
9029 hardcode_runpath_var=yes
9030 ld_shlibs=yes
9031 fi
9032 ;;
9033
9034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9035 no_undefined_flag='${wl}-z,text'
9036 archive_cmds_need_lc=no
9037 hardcode_shlibpath_var=no
9038 runpath_var='LD_RUN_PATH'
9039
9040 if test "$GCC" = yes; then
9041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9043 else
9044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 fi
9047 ;;
9048
9049 sysv5* | sco3.2v5* | sco5v6*)
9050 # Note: We can NOT use -z defs as we might desire, because we do not
9051 # link with -lc, and that would cause any symbols used from libc to
9052 # always be unresolved, which means just about no library would
9053 # ever link correctly. If we're not using GNU ld we use -z text
9054 # though, which does catch some bad symbols but isn't as heavy-handed
9055 # as -z defs.
9056 no_undefined_flag='${wl}-z,text'
9057 allow_undefined_flag='${wl}-z,nodefs'
9058 archive_cmds_need_lc=no
9059 hardcode_shlibpath_var=no
9060 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9061 hardcode_libdir_separator=':'
9062 link_all_deplibs=yes
9063 export_dynamic_flag_spec='${wl}-Bexport'
9064 runpath_var='LD_RUN_PATH'
9065
9066 if test "$GCC" = yes; then
9067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9069 else
9070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 fi
9073 ;;
9074
9075 uts4*)
9076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077 hardcode_libdir_flag_spec='-L$libdir'
9078 hardcode_shlibpath_var=no
9079 ;;
9080
9081 *)
9082 ld_shlibs=no
9083 ;;
9084 esac
9085
9086 if test x$host_vendor = xsni; then
9087 case $host in
9088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9089 export_dynamic_flag_spec='${wl}-Blargedynsym'
9090 ;;
9091 esac
9092 fi
9093 fi
9094
9095{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9096$as_echo "$ld_shlibs" >&6; }
9097test "$ld_shlibs" = no && can_build_shared=no
9098
9099with_gnu_ld=$with_gnu_ld
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115#
9116# Do we need to explicitly link libc?
9117#
9118case "x$archive_cmds_need_lc" in
9119x|xyes)
9120 # Assume -lc should be added
9121 archive_cmds_need_lc=yes
9122
9123 if test "$enable_shared" = yes && test "$GCC" = yes; then
9124 case $archive_cmds in
9125 *'~'*)
9126 # FIXME: we may have to deal with multi-command sequences.
9127 ;;
9128 '$CC '*)
9129 # Test whether the compiler implicitly links with -lc since on some
9130 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9131 # to ld, don't add -lc before -lgcc.
9132 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9133$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9134 $RM conftest*
9135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136
9137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>&5
9139 ac_status=$?
9140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } 2>conftest.err; then
9142 soname=conftest
9143 lib=conftest
9144 libobjs=conftest.$ac_objext
9145 deplibs=
9146 wl=$lt_prog_compiler_wl
9147 pic_flag=$lt_prog_compiler_pic
9148 compiler_flags=-v
9149 linker_flags=-v
9150 verstring=
9151 output_objdir=.
9152 libname=conftest
9153 lt_save_allow_undefined_flag=$allow_undefined_flag
9154 allow_undefined_flag=
9155 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9157 ac_status=$?
9158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }
9160 then
9161 archive_cmds_need_lc=no
9162 else
9163 archive_cmds_need_lc=yes
9164 fi
9165 allow_undefined_flag=$lt_save_allow_undefined_flag
9166 else
9167 cat conftest.err 1>&5
9168 fi
9169 $RM conftest*
9170 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9171$as_echo "$archive_cmds_need_lc" >&6; }
9172 ;;
9173 esac
9174 fi
9175 ;;
9176esac
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
9331
9332
9333
9334 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9335$as_echo_n "checking dynamic linker characteristics... " >&6; }
9336
9337if test "$GCC" = yes; then
9338 case $host_os in
9339 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9340 *) lt_awk_arg="/^libraries:/" ;;
9341 esac
9342 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9343 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9344 # if the path contains ";" then we assume it to be the separator
9345 # otherwise default to the standard path separator (i.e. ":") - it is
9346 # assumed that no part of a normal pathname contains ";" but that should
9347 # okay in the real world where ";" in dirpaths is itself problematic.
9348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9349 else
9350 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9351 fi
9352 # Ok, now we have the path, separated by spaces, we can step through it
9353 # and add multilib dir if necessary.
9354 lt_tmp_lt_search_path_spec=
9355 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9356 for lt_sys_path in $lt_search_path_spec; do
9357 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9359 else
9360 test -d "$lt_sys_path" && \
9361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9362 fi
9363 done
9364 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9365BEGIN {RS=" "; FS="/|\n";} {
9366 lt_foo="";
9367 lt_count=0;
9368 for (lt_i = NF; lt_i > 0; lt_i--) {
9369 if ($lt_i != "" && $lt_i != ".") {
9370 if ($lt_i == "..") {
9371 lt_count++;
9372 } else {
9373 if (lt_count == 0) {
9374 lt_foo="/" $lt_i lt_foo;
9375 } else {
9376 lt_count--;
9377 }
9378 }
9379 }
9380 }
9381 if (lt_foo != "") { lt_freq[lt_foo]++; }
9382 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9383}'`
9384 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9385else
9386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9387fi
9388library_names_spec=
9389libname_spec='lib$name'
9390soname_spec=
9391shrext_cmds=".so"
9392postinstall_cmds=
9393postuninstall_cmds=
9394finish_cmds=
9395finish_eval=
9396shlibpath_var=
9397shlibpath_overrides_runpath=unknown
9398version_type=none
9399dynamic_linker="$host_os ld.so"
9400sys_lib_dlsearch_path_spec="/lib /usr/lib"
9401need_lib_prefix=unknown
9402hardcode_into_libs=no
9403
9404# when you set need_version to no, make sure it does not cause -set_version
9405# flags to be left without arguments
9406need_version=unknown
9407
9408case $host_os in
9409aix3*)
9410 version_type=linux
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9412 shlibpath_var=LIBPATH
9413
9414 # AIX 3 has no versioning support, so we append a major version to the name.
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 ;;
9417
9418aix[4-9]*)
9419 version_type=linux
9420 need_lib_prefix=no
9421 need_version=no
9422 hardcode_into_libs=yes
9423 if test "$host_cpu" = ia64; then
9424 # AIX 5 supports IA64
9425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 else
9428 # With GCC up to 2.95.x, collect2 would create an import file
9429 # for dependence libraries. The import file would start with
9430 # the line `#! .'. This would cause the generated library to
9431 # depend on `.', always an invalid library. This was fixed in
9432 # development snapshots of GCC prior to 3.0.
9433 case $host_os in
9434 aix4 | aix4.[01] | aix4.[01].*)
9435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9436 echo ' yes '
9437 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9438 :
9439 else
9440 can_build_shared=no
9441 fi
9442 ;;
9443 esac
9444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9445 # soname into executable. Probably we can add versioning support to
9446 # collect2, so additional links can be useful in future.
9447 if test "$aix_use_runtimelinking" = yes; then
9448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9449 # instead of lib<name>.a to let people know that these are not
9450 # typical AIX shared libraries.
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 else
9453 # We preserve .a as extension for shared libraries through AIX4.2
9454 # and later when we are not doing run time linking.
9455 library_names_spec='${libname}${release}.a $libname.a'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 fi
9458 shlibpath_var=LIBPATH
9459 fi
9460 ;;
9461
9462amigaos*)
9463 case $host_cpu in
9464 powerpc)
9465 # Since July 2007 AmigaOS4 officially supports .so libraries.
9466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 ;;
9469 m68k)
9470 library_names_spec='$libname.ixlibrary $libname.a'
9471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9472 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'
9473 ;;
9474 esac
9475 ;;
9476
9477beos*)
9478 library_names_spec='${libname}${shared_ext}'
9479 dynamic_linker="$host_os ld.so"
9480 shlibpath_var=LIBRARY_PATH
9481 ;;
9482
9483bsdi[45]*)
9484 version_type=linux
9485 need_version=no
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9492 # the default ld.so.conf also contains /usr/contrib/lib and
9493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9494 # libtool to hard-code these into programs
9495 ;;
9496
9497cygwin* | mingw* | pw32* | cegcc*)
9498 version_type=windows
9499 shrext_cmds=".dll"
9500 need_version=no
9501 need_lib_prefix=no
9502
9503 case $GCC,$host_os in
9504 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9505 library_names_spec='$libname.dll.a'
9506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9507 postinstall_cmds='base_file=`basename \${file}`~
9508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9509 dldir=$destdir/`dirname \$dlpath`~
9510 test -d \$dldir || mkdir -p \$dldir~
9511 $install_prog $dir/$dlname \$dldir/$dlname~
9512 chmod a+x \$dldir/$dlname~
9513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9515 fi'
9516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9517 dlpath=$dir/\$dldll~
9518 $RM \$dlpath'
9519 shlibpath_overrides_runpath=yes
9520
9521 case $host_os in
9522 cygwin*)
9523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9525 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9526 ;;
9527 mingw* | cegcc*)
9528 # MinGW DLLs use traditional 'lib' prefix
9529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9530 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9531 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9532 # It is most probably a Windows format PATH printed by
9533 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9534 # path with ; separators, and with drive letters. We can handle the
9535 # drive letters (cygwin fileutils understands them), so leave them,
9536 # especially as we might pass files found there to a mingw objdump,
9537 # which wouldn't understand a cygwinified path. Ahh.
9538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9539 else
9540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9541 fi
9542 ;;
9543 pw32*)
9544 # pw32 DLLs use 'pw' prefix rather than 'lib'
9545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9546 ;;
9547 esac
9548 ;;
9549
9550 *)
9551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9552 ;;
9553 esac
9554 dynamic_linker='Win32 ld.exe'
9555 # FIXME: first we should search . and the directory the executable is in
9556 shlibpath_var=PATH
9557 ;;
9558
9559darwin* | rhapsody*)
9560 dynamic_linker="$host_os dyld"
9561 version_type=darwin
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9565 soname_spec='${libname}${release}${major}$shared_ext'
9566 shlibpath_overrides_runpath=yes
9567 shlibpath_var=DYLD_LIBRARY_PATH
9568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9569
9570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9572 ;;
9573
9574dgux*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 ;;
9582
9583freebsd1*)
9584 dynamic_linker=no
9585 ;;
9586
9587freebsd* | dragonfly*)
9588 # DragonFly does not have aout. When/if they implement a new
9589 # versioning mechanism, adjust this.
9590 if test -x /usr/bin/objformat; then
9591 objformat=`/usr/bin/objformat`
9592 else
9593 case $host_os in
9594 freebsd[123]*) objformat=aout ;;
9595 *) objformat=elf ;;
9596 esac
9597 fi
9598 version_type=freebsd-$objformat
9599 case $version_type in
9600 freebsd-elf*)
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9602 need_version=no
9603 need_lib_prefix=no
9604 ;;
9605 freebsd-*)
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9607 need_version=yes
9608 ;;
9609 esac
9610 shlibpath_var=LD_LIBRARY_PATH
9611 case $host_os in
9612 freebsd2*)
9613 shlibpath_overrides_runpath=yes
9614 ;;
9615 freebsd3.[01]* | freebsdelf3.[01]*)
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 ;;
9619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9621 shlibpath_overrides_runpath=no
9622 hardcode_into_libs=yes
9623 ;;
9624 *) # from 4.6 on, and DragonFly
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628 esac
9629 ;;
9630
9631gnu*)
9632 version_type=linux
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9639 ;;
9640
9641hpux9* | hpux10* | hpux11*)
9642 # Give a soname corresponding to the major version so that dld.sl refuses to
9643 # link against other versions.
9644 version_type=sunos
9645 need_lib_prefix=no
9646 need_version=no
9647 case $host_cpu in
9648 ia64*)
9649 shrext_cmds='.so'
9650 hardcode_into_libs=yes
9651 dynamic_linker="$host_os dld.so"
9652 shlibpath_var=LD_LIBRARY_PATH
9653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655 soname_spec='${libname}${release}${shared_ext}$major'
9656 if test "X$HPUX_IA64_MODE" = X32; then
9657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9658 else
9659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9660 fi
9661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9662 ;;
9663 hppa*64*)
9664 shrext_cmds='.sl'
9665 hardcode_into_libs=yes
9666 dynamic_linker="$host_os dld.sl"
9667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 soname_spec='${libname}${release}${shared_ext}$major'
9671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9673 ;;
9674 *)
9675 shrext_cmds='.sl'
9676 dynamic_linker="$host_os dld.sl"
9677 shlibpath_var=SHLIB_PATH
9678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 ;;
9682 esac
9683 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9684 postinstall_cmds='chmod 555 $lib'
9685 ;;
9686
9687interix[3-9]*)
9688 version_type=linux
9689 need_lib_prefix=no
9690 need_version=no
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 shlibpath_overrides_runpath=no
9696 hardcode_into_libs=yes
9697 ;;
9698
9699irix5* | irix6* | nonstopux*)
9700 case $host_os in
9701 nonstopux*) version_type=nonstopux ;;
9702 *)
9703 if test "$lt_cv_prog_gnu_ld" = yes; then
9704 version_type=linux
9705 else
9706 version_type=irix
9707 fi ;;
9708 esac
9709 need_lib_prefix=no
9710 need_version=no
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9713 case $host_os in
9714 irix5* | nonstopux*)
9715 libsuff= shlibsuff=
9716 ;;
9717 *)
9718 case $LD in # libtool.m4 will add one of these switches to LD
9719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9720 libsuff= shlibsuff= libmagic=32-bit;;
9721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9722 libsuff=32 shlibsuff=N32 libmagic=N32;;
9723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9725 *) libsuff= shlibsuff= libmagic=never-match;;
9726 esac
9727 ;;
9728 esac
9729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9730 shlibpath_overrides_runpath=no
9731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9733 hardcode_into_libs=yes
9734 ;;
9735
9736# No shared lib support for Linux oldld, aout, or coff.
9737linux*oldld* | linux*aout* | linux*coff*)
9738 dynamic_linker=no
9739 ;;
9740
9741# This must be Linux ELF.
9742linux* | k*bsd*-gnu)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9749 shlibpath_var=LD_LIBRARY_PATH
9750 shlibpath_overrides_runpath=no
9751 # Some binutils ld are patched to set DT_RUNPATH
9752 save_LDFLAGS=$LDFLAGS
9753 save_libdir=$libdir
9754 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9755 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9756 cat >conftest.$ac_ext <<_ACEOF
9757/* confdefs.h. */
9758_ACEOF
9759cat confdefs.h >>conftest.$ac_ext
9760cat >>conftest.$ac_ext <<_ACEOF
9761/* end confdefs.h. */
9762
9763int
9764main ()
9765{
9766
9767 ;
9768 return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
9772if { (ac_try="$ac_link"
9773case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
9777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9778$as_echo "$ac_try_echo") >&5
9779 (eval "$ac_link") 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest$ac_exeext && {
9789 test "$cross_compiling" = yes ||
9790 $as_test_x conftest$ac_exeext
9791 }; then
9792 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9793 shlibpath_overrides_runpath=yes
9794fi
9795
9796else
9797 $as_echo "$as_me: failed program was:" >&5
9798sed 's/^/| /' conftest.$ac_ext >&5
9799
9800
9801fi
9802
9803rm -rf conftest.dSYM
9804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805 conftest$ac_exeext conftest.$ac_ext
9806 LDFLAGS=$save_LDFLAGS
9807 libdir=$save_libdir
9808
9809 # This implies no fast_install, which is unacceptable.
9810 # Some rework will be needed to allow for fast_install
9811 # before this can be enabled.
9812 hardcode_into_libs=yes
9813
9814 # Append ld.so.conf contents to the search path
9815 if test -f /etc/ld.so.conf; then
9816 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' ' '`
9817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9818 fi
9819
9820 # We used to test for /lib/ld.so.1 and disable shared libraries on
9821 # powerpc, because MkLinux only supported shared libraries with the
9822 # GNU dynamic linker. Since this was broken with cross compilers,
9823 # most powerpc-linux boxes support dynamic linking these days and
9824 # people can always --disable-shared, the test was removed, and we
9825 # assume the GNU/Linux dynamic linker is in use.
9826 dynamic_linker='GNU/Linux ld.so'
9827 ;;
9828
9829netbsd*)
9830 version_type=sunos
9831 need_lib_prefix=no
9832 need_version=no
9833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9836 dynamic_linker='NetBSD (a.out) ld.so'
9837 else
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 dynamic_linker='NetBSD ld.elf_so'
9841 fi
9842 shlibpath_var=LD_LIBRARY_PATH
9843 shlibpath_overrides_runpath=yes
9844 hardcode_into_libs=yes
9845 ;;
9846
9847newsos6)
9848 version_type=linux
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 shlibpath_overrides_runpath=yes
9852 ;;
9853
9854*nto* | *qnx*)
9855 version_type=qnx
9856 need_lib_prefix=no
9857 need_version=no
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 shlibpath_overrides_runpath=no
9862 hardcode_into_libs=yes
9863 dynamic_linker='ldqnx.so'
9864 ;;
9865
9866openbsd*)
9867 version_type=sunos
9868 sys_lib_dlsearch_path_spec="/usr/lib"
9869 need_lib_prefix=no
9870 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9871 case $host_os in
9872 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9873 *) need_version=no ;;
9874 esac
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9879 case $host_os in
9880 openbsd2.[89] | openbsd2.[89].*)
9881 shlibpath_overrides_runpath=no
9882 ;;
9883 *)
9884 shlibpath_overrides_runpath=yes
9885 ;;
9886 esac
9887 else
9888 shlibpath_overrides_runpath=yes
9889 fi
9890 ;;
9891
9892os2*)
9893 libname_spec='$name'
9894 shrext_cmds=".dll"
9895 need_lib_prefix=no
9896 library_names_spec='$libname${shared_ext} $libname.a'
9897 dynamic_linker='OS/2 ld.exe'
9898 shlibpath_var=LIBPATH
9899 ;;
9900
9901osf3* | osf4* | osf5*)
9902 version_type=osf
9903 need_lib_prefix=no
9904 need_version=no
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907 shlibpath_var=LD_LIBRARY_PATH
9908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9910 ;;
9911
9912rdos*)
9913 dynamic_linker=no
9914 ;;
9915
9916solaris*)
9917 version_type=linux
9918 need_lib_prefix=no
9919 need_version=no
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 shlibpath_overrides_runpath=yes
9924 hardcode_into_libs=yes
9925 # ldd complains unless libraries are executable
9926 postinstall_cmds='chmod +x $lib'
9927 ;;
9928
9929sunos4*)
9930 version_type=sunos
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9932 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 shlibpath_overrides_runpath=yes
9935 if test "$with_gnu_ld" = yes; then
9936 need_lib_prefix=no
9937 fi
9938 need_version=yes
9939 ;;
9940
9941sysv4 | sysv4.3*)
9942 version_type=linux
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 case $host_vendor in
9947 sni)
9948 shlibpath_overrides_runpath=no
9949 need_lib_prefix=no
9950 runpath_var=LD_RUN_PATH
9951 ;;
9952 siemens)
9953 need_lib_prefix=no
9954 ;;
9955 motorola)
9956 need_lib_prefix=no
9957 need_version=no
9958 shlibpath_overrides_runpath=no
9959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9960 ;;
9961 esac
9962 ;;
9963
9964sysv4*MP*)
9965 if test -d /usr/nec ;then
9966 version_type=linux
9967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9968 soname_spec='$libname${shared_ext}.$major'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 fi
9971 ;;
9972
9973sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9974 version_type=freebsd-elf
9975 need_lib_prefix=no
9976 need_version=no
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LD_LIBRARY_PATH
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9982 if test "$with_gnu_ld" = yes; then
9983 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9984 else
9985 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9986 case $host_os in
9987 sco3.2v5*)
9988 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9989 ;;
9990 esac
9991 fi
9992 sys_lib_dlsearch_path_spec='/usr/lib'
9993 ;;
9994
9995tpf*)
9996 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9997 version_type=linux
9998 need_lib_prefix=no
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 shlibpath_overrides_runpath=no
10003 hardcode_into_libs=yes
10004 ;;
10005
10006uts4*)
10007 version_type=linux
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 ;;
10012
10013*)
10014 dynamic_linker=no
10015 ;;
10016esac
10017{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10018$as_echo "$dynamic_linker" >&6; }
10019test "$dynamic_linker" = no && can_build_shared=no
10020
10021variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10022if test "$GCC" = yes; then
10023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10024fi
10025
10026if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10027 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10028fi
10029if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10030 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10031fi
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
10116
10117
10118
10119 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10120$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10121hardcode_action=
10122if test -n "$hardcode_libdir_flag_spec" ||
10123 test -n "$runpath_var" ||
10124 test "X$hardcode_automatic" = "Xyes" ; then
10125
10126 # We can hardcode non-existent directories.
10127 if test "$hardcode_direct" != no &&
10128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10129 # have to relink, otherwise we might link with an installed library
10130 # when we should be linking with a yet-to-be-installed one
10131 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10132 test "$hardcode_minus_L" != no; then
10133 # Linking always hardcodes the temporary library directory.
10134 hardcode_action=relink
10135 else
10136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10137 hardcode_action=immediate
10138 fi
10139else
10140 # We cannot hardcode anything, or else we can only hardcode existing
10141 # directories.
10142 hardcode_action=unsupported
10143fi
10144{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10145$as_echo "$hardcode_action" >&6; }
10146
10147if test "$hardcode_action" = relink ||
10148 test "$inherit_rpath" = yes; then
10149 # Fast installation is not supported
10150 enable_fast_install=no
10151elif test "$shlibpath_overrides_runpath" = yes ||
10152 test "$enable_shared" = no; then
10153 # Fast installation is not necessary
10154 enable_fast_install=needless
10155fi
10156
10157
10158
10159
10160
10161
10162 if test "x$enable_dlopen" != xyes; then
10163 enable_dlopen=unknown
10164 enable_dlopen_self=unknown
10165 enable_dlopen_self_static=unknown
10166else
10167 lt_cv_dlopen=no
10168 lt_cv_dlopen_libs=
10169
10170 case $host_os in
10171 beos*)
10172 lt_cv_dlopen="load_add_on"
10173 lt_cv_dlopen_libs=
10174 lt_cv_dlopen_self=yes
10175 ;;
10176
10177 mingw* | pw32* | cegcc*)
10178 lt_cv_dlopen="LoadLibrary"
10179 lt_cv_dlopen_libs=
10180 ;;
10181
10182 cygwin*)
10183 lt_cv_dlopen="dlopen"
10184 lt_cv_dlopen_libs=
10185 ;;
10186
10187 darwin*)
10188 # if libdl is installed we need to link against it
10189 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10190$as_echo_n "checking for dlopen in -ldl... " >&6; }
10191if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10192 $as_echo_n "(cached) " >&6
10193else
10194 ac_check_lib_save_LIBS=$LIBS
10195LIBS="-ldl $LIBS"
10196cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h. */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h. */
10202
10203/* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206#ifdef __cplusplus
10207extern "C"
10208#endif
10209char dlopen ();
10210int
10211main ()
10212{
10213return dlopen ();
10214 ;
10215 return 0;
10216}
10217_ACEOF
10218rm -f conftest.$ac_objext conftest$ac_exeext
10219if { (ac_try="$ac_link"
10220case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223esac
10224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225$as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest$ac_exeext
10238 }; then
10239 ac_cv_lib_dl_dlopen=yes
10240else
10241 $as_echo "$as_me: failed program was:" >&5
10242sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_cv_lib_dl_dlopen=no
10245fi
10246
10247rm -rf conftest.dSYM
10248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250LIBS=$ac_check_lib_save_LIBS
10251fi
10252{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10253$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10254if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10256else
10257
10258 lt_cv_dlopen="dyld"
10259 lt_cv_dlopen_libs=
10260 lt_cv_dlopen_self=yes
10261
10262fi
10263
10264 ;;
10265
10266 *)
10267 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10268$as_echo_n "checking for shl_load... " >&6; }
10269if test "${ac_cv_func_shl_load+set}" = set; then
10270 $as_echo_n "(cached) " >&6
10271else
10272 cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h. */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h. */
10278/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10280#define shl_load innocuous_shl_load
10281
10282/* System header to define __stub macros and hopefully few prototypes,
10283 which can conflict with char shl_load (); below.
10284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10285 <limits.h> exists even on freestanding compilers. */
10286
10287#ifdef __STDC__
10288# include <limits.h>
10289#else
10290# include <assert.h>
10291#endif
10292
10293#undef shl_load
10294
10295/* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10298#ifdef __cplusplus
10299extern "C"
10300#endif
10301char shl_load ();
10302/* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
10305#if defined __stub_shl_load || defined __stub___shl_load
10306choke me
10307#endif
10308
10309int
10310main ()
10311{
10312return shl_load ();
10313 ;
10314 return 0;
10315}
10316_ACEOF
10317rm -f conftest.$ac_objext conftest$ac_exeext
10318if { (ac_try="$ac_link"
10319case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322esac
10323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324$as_echo "$ac_try_echo") >&5
10325 (eval "$ac_link") 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext && {
10335 test "$cross_compiling" = yes ||
10336 $as_test_x conftest$ac_exeext
10337 }; then
10338 ac_cv_func_shl_load=yes
10339else
10340 $as_echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_cv_func_shl_load=no
10344fi
10345
10346rm -rf conftest.dSYM
10347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10348 conftest$ac_exeext conftest.$ac_ext
10349fi
10350{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10351$as_echo "$ac_cv_func_shl_load" >&6; }
10352if test "x$ac_cv_func_shl_load" = x""yes; then
10353 lt_cv_dlopen="shl_load"
10354else
10355 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10356$as_echo_n "checking for shl_load in -ldld... " >&6; }
10357if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10359else
10360 ac_check_lib_save_LIBS=$LIBS
10361LIBS="-ldld $LIBS"
10362cat >conftest.$ac_ext <<_ACEOF
10363/* confdefs.h. */
10364_ACEOF
10365cat confdefs.h >>conftest.$ac_ext
10366cat >>conftest.$ac_ext <<_ACEOF
10367/* end confdefs.h. */
10368
10369/* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372#ifdef __cplusplus
10373extern "C"
10374#endif
10375char shl_load ();
10376int
10377main ()
10378{
10379return shl_load ();
10380 ;
10381 return 0;
10382}
10383_ACEOF
10384rm -f conftest.$ac_objext conftest$ac_exeext
10385if { (ac_try="$ac_link"
10386case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10391$as_echo "$ac_try_echo") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext && {
10402 test "$cross_compiling" = yes ||
10403 $as_test_x conftest$ac_exeext
10404 }; then
10405 ac_cv_lib_dld_shl_load=yes
10406else
10407 $as_echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_lib_dld_shl_load=no
10411fi
10412
10413rm -rf conftest.dSYM
10414rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415 conftest$ac_exeext conftest.$ac_ext
10416LIBS=$ac_check_lib_save_LIBS
10417fi
10418{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10419$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10420if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10421 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10422else
10423 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10424$as_echo_n "checking for dlopen... " >&6; }
10425if test "${ac_cv_func_dlopen+set}" = set; then
10426 $as_echo_n "(cached) " >&6
10427else
10428 cat >conftest.$ac_ext <<_ACEOF
10429/* confdefs.h. */
10430_ACEOF
10431cat confdefs.h >>conftest.$ac_ext
10432cat >>conftest.$ac_ext <<_ACEOF
10433/* end confdefs.h. */
10434/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10436#define dlopen innocuous_dlopen
10437
10438/* System header to define __stub macros and hopefully few prototypes,
10439 which can conflict with char dlopen (); below.
10440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10441 <limits.h> exists even on freestanding compilers. */
10442
10443#ifdef __STDC__
10444# include <limits.h>
10445#else
10446# include <assert.h>
10447#endif
10448
10449#undef dlopen
10450
10451/* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454#ifdef __cplusplus
10455extern "C"
10456#endif
10457char dlopen ();
10458/* The GNU C library defines this for functions which it implements
10459 to always fail with ENOSYS. Some functions are actually named
10460 something starting with __ and the normal name is an alias. */
10461#if defined __stub_dlopen || defined __stub___dlopen
10462choke me
10463#endif
10464
10465int
10466main ()
10467{
10468return dlopen ();
10469 ;
10470 return 0;
10471}
10472_ACEOF
10473rm -f conftest.$ac_objext conftest$ac_exeext
10474if { (ac_try="$ac_link"
10475case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478esac
10479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10480$as_echo "$ac_try_echo") >&5
10481 (eval "$ac_link") 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && {
10488 test -z "$ac_c_werror_flag" ||
10489 test ! -s conftest.err
10490 } && test -s conftest$ac_exeext && {
10491 test "$cross_compiling" = yes ||
10492 $as_test_x conftest$ac_exeext
10493 }; then
10494 ac_cv_func_dlopen=yes
10495else
10496 $as_echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499 ac_cv_func_dlopen=no
10500fi
10501
10502rm -rf conftest.dSYM
10503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10504 conftest$ac_exeext conftest.$ac_ext
10505fi
10506{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10507$as_echo "$ac_cv_func_dlopen" >&6; }
10508if test "x$ac_cv_func_dlopen" = x""yes; then
10509 lt_cv_dlopen="dlopen"
10510else
10511 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10512$as_echo_n "checking for dlopen in -ldl... " >&6; }
10513if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10514 $as_echo_n "(cached) " >&6
10515else
10516 ac_check_lib_save_LIBS=$LIBS
10517LIBS="-ldl $LIBS"
10518cat >conftest.$ac_ext <<_ACEOF
10519/* confdefs.h. */
10520_ACEOF
10521cat confdefs.h >>conftest.$ac_ext
10522cat >>conftest.$ac_ext <<_ACEOF
10523/* end confdefs.h. */
10524
10525/* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10528#ifdef __cplusplus
10529extern "C"
10530#endif
10531char dlopen ();
10532int
10533main ()
10534{
10535return dlopen ();
10536 ;
10537 return 0;
10538}
10539_ACEOF
10540rm -f conftest.$ac_objext conftest$ac_exeext
10541if { (ac_try="$ac_link"
10542case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
10546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10547$as_echo "$ac_try_echo") >&5
10548 (eval "$ac_link") 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest$ac_exeext && {
10558 test "$cross_compiling" = yes ||
10559 $as_test_x conftest$ac_exeext
10560 }; then
10561 ac_cv_lib_dl_dlopen=yes
10562else
10563 $as_echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_cv_lib_dl_dlopen=no
10567fi
10568
10569rm -rf conftest.dSYM
10570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10571 conftest$ac_exeext conftest.$ac_ext
10572LIBS=$ac_check_lib_save_LIBS
10573fi
10574{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10575$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10576if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10578else
10579 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10580$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10581if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10582 $as_echo_n "(cached) " >&6
10583else
10584 ac_check_lib_save_LIBS=$LIBS
10585LIBS="-lsvld $LIBS"
10586cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h. */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h. */
10592
10593/* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596#ifdef __cplusplus
10597extern "C"
10598#endif
10599char dlopen ();
10600int
10601main ()
10602{
10603return dlopen ();
10604 ;
10605 return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext conftest$ac_exeext
10609if { (ac_try="$ac_link"
10610case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613esac
10614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615$as_echo "$ac_try_echo") >&5
10616 (eval "$ac_link") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext && {
10626 test "$cross_compiling" = yes ||
10627 $as_test_x conftest$ac_exeext
10628 }; then
10629 ac_cv_lib_svld_dlopen=yes
10630else
10631 $as_echo "$as_me: failed program was:" >&5
10632sed 's/^/| /' conftest.$ac_ext >&5
10633
10634 ac_cv_lib_svld_dlopen=no
10635fi
10636
10637rm -rf conftest.dSYM
10638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10639 conftest$ac_exeext conftest.$ac_ext
10640LIBS=$ac_check_lib_save_LIBS
10641fi
10642{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10643$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10644if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10646else
10647 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10648$as_echo_n "checking for dld_link in -ldld... " >&6; }
10649if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10650 $as_echo_n "(cached) " >&6
10651else
10652 ac_check_lib_save_LIBS=$LIBS
10653LIBS="-ldld $LIBS"
10654cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h. */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h. */
10660
10661/* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10664#ifdef __cplusplus
10665extern "C"
10666#endif
10667char dld_link ();
10668int
10669main ()
10670{
10671return dld_link ();
10672 ;
10673 return 0;
10674}
10675_ACEOF
10676rm -f conftest.$ac_objext conftest$ac_exeext
10677if { (ac_try="$ac_link"
10678case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681esac
10682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10683$as_echo "$ac_try_echo") >&5
10684 (eval "$ac_link") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest$ac_exeext && {
10694 test "$cross_compiling" = yes ||
10695 $as_test_x conftest$ac_exeext
10696 }; then
10697 ac_cv_lib_dld_dld_link=yes
10698else
10699 $as_echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
10702 ac_cv_lib_dld_dld_link=no
10703fi
10704
10705rm -rf conftest.dSYM
10706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10707 conftest$ac_exeext conftest.$ac_ext
10708LIBS=$ac_check_lib_save_LIBS
10709fi
10710{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10711$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10712if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10713 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10714fi
10715
10716
10717fi
10718
10719
10720fi
10721
10722
10723fi
10724
10725
10726fi
10727
10728
10729fi
10730
10731 ;;
10732 esac
10733
10734 if test "x$lt_cv_dlopen" != xno; then
10735 enable_dlopen=yes
10736 else
10737 enable_dlopen=no
10738 fi
10739
10740 case $lt_cv_dlopen in
10741 dlopen)
10742 save_CPPFLAGS="$CPPFLAGS"
10743 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10744
10745 save_LDFLAGS="$LDFLAGS"
10746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10747
10748 save_LIBS="$LIBS"
10749 LIBS="$lt_cv_dlopen_libs $LIBS"
10750
10751 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10752$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10753if test "${lt_cv_dlopen_self+set}" = set; then
10754 $as_echo_n "(cached) " >&6
10755else
10756 if test "$cross_compiling" = yes; then :
10757 lt_cv_dlopen_self=cross
10758else
10759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10760 lt_status=$lt_dlunknown
10761 cat > conftest.$ac_ext <<_LT_EOF
10762#line __oline__ "configure"
10763#include "confdefs.h"
10764
10765#if HAVE_DLFCN_H
10766#include <dlfcn.h>
10767#endif
10768
10769#include <stdio.h>
10770
10771#ifdef RTLD_GLOBAL
10772# define LT_DLGLOBAL RTLD_GLOBAL
10773#else
10774# ifdef DL_GLOBAL
10775# define LT_DLGLOBAL DL_GLOBAL
10776# else
10777# define LT_DLGLOBAL 0
10778# endif
10779#endif
10780
10781/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10782 find out it does not work in some platform. */
10783#ifndef LT_DLLAZY_OR_NOW
10784# ifdef RTLD_LAZY
10785# define LT_DLLAZY_OR_NOW RTLD_LAZY
10786# else
10787# ifdef DL_LAZY
10788# define LT_DLLAZY_OR_NOW DL_LAZY
10789# else
10790# ifdef RTLD_NOW
10791# define LT_DLLAZY_OR_NOW RTLD_NOW
10792# else
10793# ifdef DL_NOW
10794# define LT_DLLAZY_OR_NOW DL_NOW
10795# else
10796# define LT_DLLAZY_OR_NOW 0
10797# endif
10798# endif
10799# endif
10800# endif
10801#endif
10802
10803void fnord() { int i=42;}
10804int main ()
10805{
10806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10807 int status = $lt_dlunknown;
10808
10809 if (self)
10810 {
10811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10812 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10813 /* dlclose (self); */
10814 }
10815 else
10816 puts (dlerror ());
10817
10818 return status;
10819}
10820_LT_EOF
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 (eval $ac_link) 2>&5
10823 ac_status=$?
10824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10826 (./conftest; exit; ) >&5 2>/dev/null
10827 lt_status=$?
10828 case x$lt_status in
10829 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10830 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10831 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10832 esac
10833 else :
10834 # compilation failed
10835 lt_cv_dlopen_self=no
10836 fi
10837fi
10838rm -fr conftest*
10839
10840
10841fi
10842{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10843$as_echo "$lt_cv_dlopen_self" >&6; }
10844
10845 if test "x$lt_cv_dlopen_self" = xyes; then
10846 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10847 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10848$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10849if test "${lt_cv_dlopen_self_static+set}" = set; then
10850 $as_echo_n "(cached) " >&6
10851else
10852 if test "$cross_compiling" = yes; then :
10853 lt_cv_dlopen_self_static=cross
10854else
10855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10856 lt_status=$lt_dlunknown
10857 cat > conftest.$ac_ext <<_LT_EOF
10858#line __oline__ "configure"
10859#include "confdefs.h"
10860
10861#if HAVE_DLFCN_H
10862#include <dlfcn.h>
10863#endif
10864
10865#include <stdio.h>
10866
10867#ifdef RTLD_GLOBAL
10868# define LT_DLGLOBAL RTLD_GLOBAL
10869#else
10870# ifdef DL_GLOBAL
10871# define LT_DLGLOBAL DL_GLOBAL
10872# else
10873# define LT_DLGLOBAL 0
10874# endif
10875#endif
10876
10877/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10878 find out it does not work in some platform. */
10879#ifndef LT_DLLAZY_OR_NOW
10880# ifdef RTLD_LAZY
10881# define LT_DLLAZY_OR_NOW RTLD_LAZY
10882# else
10883# ifdef DL_LAZY
10884# define LT_DLLAZY_OR_NOW DL_LAZY
10885# else
10886# ifdef RTLD_NOW
10887# define LT_DLLAZY_OR_NOW RTLD_NOW
10888# else
10889# ifdef DL_NOW
10890# define LT_DLLAZY_OR_NOW DL_NOW
10891# else
10892# define LT_DLLAZY_OR_NOW 0
10893# endif
10894# endif
10895# endif
10896# endif
10897#endif
10898
10899void fnord() { int i=42;}
10900int main ()
10901{
10902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10903 int status = $lt_dlunknown;
10904
10905 if (self)
10906 {
10907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10909 /* dlclose (self); */
10910 }
10911 else
10912 puts (dlerror ());
10913
10914 return status;
10915}
10916_LT_EOF
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918 (eval $ac_link) 2>&5
10919 ac_status=$?
10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10922 (./conftest; exit; ) >&5 2>/dev/null
10923 lt_status=$?
10924 case x$lt_status in
10925 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10926 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10927 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10928 esac
10929 else :
10930 # compilation failed
10931 lt_cv_dlopen_self_static=no
10932 fi
10933fi
10934rm -fr conftest*
10935
10936
10937fi
10938{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10939$as_echo "$lt_cv_dlopen_self_static" >&6; }
10940 fi
10941
10942 CPPFLAGS="$save_CPPFLAGS"
10943 LDFLAGS="$save_LDFLAGS"
10944 LIBS="$save_LIBS"
10945 ;;
10946 esac
10947
10948 case $lt_cv_dlopen_self in
10949 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10950 *) enable_dlopen_self=unknown ;;
10951 esac
10952
10953 case $lt_cv_dlopen_self_static in
10954 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10955 *) enable_dlopen_self_static=unknown ;;
10956 esac
10957fi
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975striplib=
10976old_striplib=
10977{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10978$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10979if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10980 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10981 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10982 { $as_echo "$as_me:$LINENO: result: yes" >&5
10983$as_echo "yes" >&6; }
10984else
10985# FIXME - insert some real tests, host_os isn't really good enough
10986 case $host_os in
10987 darwin*)
10988 if test -n "$STRIP" ; then
10989 striplib="$STRIP -x"
10990 old_striplib="$STRIP -S"
10991 { $as_echo "$as_me:$LINENO: result: yes" >&5
10992$as_echo "yes" >&6; }
10993 else
10994 { $as_echo "$as_me:$LINENO: result: no" >&5
10995$as_echo "no" >&6; }
10996 fi
10997 ;;
10998 *)
10999 { $as_echo "$as_me:$LINENO: result: no" >&5
11000$as_echo "no" >&6; }
11001 ;;
11002 esac
11003fi
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016 # Report which library types will actually be built
11017 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11018$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11019 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11020$as_echo "$can_build_shared" >&6; }
11021
11022 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11023$as_echo_n "checking whether to build shared libraries... " >&6; }
11024 test "$can_build_shared" = "no" && enable_shared=no
11025
11026 # On AIX, shared libraries and static libraries use the same namespace, and
11027 # are all built from PIC.
11028 case $host_os in
11029 aix3*)
11030 test "$enable_shared" = yes && enable_static=no
11031 if test -n "$RANLIB"; then
11032 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11033 postinstall_cmds='$RANLIB $lib'
11034 fi
11035 ;;
11036
11037 aix[4-9]*)
11038 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11039 test "$enable_shared" = yes && enable_static=no
11040 fi
11041 ;;
11042 esac
11043 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11044$as_echo "$enable_shared" >&6; }
11045
11046 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11047$as_echo_n "checking whether to build static libraries... " >&6; }
11048 # Make sure either enable_shared or enable_static is yes.
11049 test "$enable_shared" = yes || enable_static=yes
11050 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11051$as_echo "$enable_static" >&6; }
11052
11053
11054
11055
11056fi
11057ac_ext=c
11058ac_cpp='$CPP $CPPFLAGS'
11059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11061ac_compiler_gnu=$ac_cv_c_compiler_gnu
11062
11063CC="$lt_save_CC"
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077 ac_config_commands="$ac_config_commands libtool"
11078
11079
11080
11081
11082# Only expand once:
11083
11084
11085
11086
11087{ $as_echo "$as_me:$LINENO: checking for main in -lgmp" >&5
11088$as_echo_n "checking for main in -lgmp... " >&6; }
11089if test "${ac_cv_lib_gmp_main+set}" = set; then
11090 $as_echo_n "(cached) " >&6
11091else
11092 ac_check_lib_save_LIBS=$LIBS
11093LIBS="-lgmp $LIBS"
11094cat >conftest.$ac_ext <<_ACEOF
11095/* confdefs.h. */
11096_ACEOF
11097cat confdefs.h >>conftest.$ac_ext
11098cat >>conftest.$ac_ext <<_ACEOF
11099/* end confdefs.h. */
11100
11101
11102int
11103main ()
11104{
11105return main ();
11106 ;
11107 return 0;
11108}
11109_ACEOF
11110rm -f conftest.$ac_objext conftest$ac_exeext
11111if { (ac_try="$ac_link"
11112case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115esac
11116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11117$as_echo "$ac_try_echo") >&5
11118 (eval "$ac_link") 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } && {
11125 test -z "$ac_c_werror_flag" ||
11126 test ! -s conftest.err
11127 } && test -s conftest$ac_exeext && {
11128 test "$cross_compiling" = yes ||
11129 $as_test_x conftest$ac_exeext
11130 }; then
11131 ac_cv_lib_gmp_main=yes
11132else
11133 $as_echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 ac_cv_lib_gmp_main=no
11137fi
11138
11139rm -rf conftest.dSYM
11140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11141 conftest$ac_exeext conftest.$ac_ext
11142LIBS=$ac_check_lib_save_LIBS
11143fi
11144{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
11145$as_echo "$ac_cv_lib_gmp_main" >&6; }
11146if test "x$ac_cv_lib_gmp_main" = x""yes; then
11147 cat >>confdefs.h <<_ACEOF
11148@%:@define HAVE_LIBGMP 1
11149_ACEOF
11150
11151 LIBS="-lgmp $LIBS"
11152
11153fi
11154
11155
11156{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11157$as_echo_n "checking for ANSI C header files... " >&6; }
11158if test "${ac_cv_header_stdc+set}" = set; then
11159 $as_echo_n "(cached) " >&6
11160else
11161 cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167#include <stdlib.h>
11168#include <stdarg.h>
11169#include <string.h>
11170#include <float.h>
11171
11172int
11173main ()
11174{
11175
11176 ;
11177 return 0;
11178}
11179_ACEOF
11180rm -f conftest.$ac_objext
11181if { (ac_try="$ac_compile"
11182case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185esac
11186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187$as_echo "$ac_try_echo") >&5
11188 (eval "$ac_compile") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest.$ac_objext; then
11198 ac_cv_header_stdc=yes
11199else
11200 $as_echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 ac_cv_header_stdc=no
11204fi
11205
11206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207
11208if test $ac_cv_header_stdc = yes; then
11209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11210 cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216#include <string.h>
11217
11218_ACEOF
11219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11220 $EGREP "memchr" >/dev/null 2>&1; then
11221 :
11222else
11223 ac_cv_header_stdc=no
11224fi
11225rm -f conftest*
11226
11227fi
11228
11229if test $ac_cv_header_stdc = yes; then
11230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11231 cat >conftest.$ac_ext <<_ACEOF
11232/* confdefs.h. */
11233_ACEOF
11234cat confdefs.h >>conftest.$ac_ext
11235cat >>conftest.$ac_ext <<_ACEOF
11236/* end confdefs.h. */
11237#include <stdlib.h>
11238
11239_ACEOF
11240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11241 $EGREP "free" >/dev/null 2>&1; then
11242 :
11243else
11244 ac_cv_header_stdc=no
11245fi
11246rm -f conftest*
11247
11248fi
11249
11250if test $ac_cv_header_stdc = yes; then
11251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11252 if test "$cross_compiling" = yes; then
11253 :
11254else
11255 cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h. */
11261#include <ctype.h>
11262#include <stdlib.h>
11263#if ((' ' & 0x0FF) == 0x020)
11264# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11265# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11266#else
11267# define ISLOWER(c) \
11268 (('a' <= (c) && (c) <= 'i') \
11269 || ('j' <= (c) && (c) <= 'r') \
11270 || ('s' <= (c) && (c) <= 'z'))
11271# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11272#endif
11273
11274#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11275int
11276main ()
11277{
11278 int i;
11279 for (i = 0; i < 256; i++)
11280 if (XOR (islower (i), ISLOWER (i))
11281 || toupper (i) != TOUPPER (i))
11282 return 2;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest$ac_exeext
11287if { (ac_try="$ac_link"
11288case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11293$as_echo "$ac_try_echo") >&5
11294 (eval "$ac_link") 2>&5
11295 ac_status=$?
11296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11298 { (case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301esac
11302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11303$as_echo "$ac_try_echo") >&5
11304 (eval "$ac_try") 2>&5
11305 ac_status=$?
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 :
11309else
11310 $as_echo "$as_me: program exited with status $ac_status" >&5
11311$as_echo "$as_me: failed program was:" >&5
11312sed 's/^/| /' conftest.$ac_ext >&5
11313
11314( exit $ac_status )
11315ac_cv_header_stdc=no
11316fi
11317rm -rf conftest.dSYM
11318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11319fi
11320
11321
11322fi
11323fi
11324{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11325$as_echo "$ac_cv_header_stdc" >&6; }
11326if test $ac_cv_header_stdc = yes; then
11327
11328cat >>confdefs.h <<\_ACEOF
11329@%:@define STDC_HEADERS 1
11330_ACEOF
11331
11332fi
11333
11334
11335{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11336$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11337if test "${ac_cv_c_const+set}" = set; then
11338 $as_echo_n "(cached) " >&6
11339else
11340 cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346
11347int
11348main ()
11349{
11350/* FIXME: Include the comments suggested by Paul. */
11351#ifndef __cplusplus
11352 /* Ultrix mips cc rejects this. */
11353 typedef int charset[2];
11354 const charset cs;
11355 /* SunOS 4.1.1 cc rejects this. */
11356 char const *const *pcpcc;
11357 char **ppc;
11358 /* NEC SVR4.0.2 mips cc rejects this. */
11359 struct point {int x, y;};
11360 static struct point const zero = {0,0};
11361 /* AIX XL C 1.02.0.0 rejects this.
11362 It does not let you subtract one const X* pointer from another in
11363 an arm of an if-expression whose if-part is not a constant
11364 expression */
11365 const char *g = "string";
11366 pcpcc = &g + (g ? g-g : 0);
11367 /* HPUX 7.0 cc rejects these. */
11368 ++pcpcc;
11369 ppc = (char**) pcpcc;
11370 pcpcc = (char const *const *) ppc;
11371 { /* SCO 3.2v4 cc rejects this. */
11372 char *t;
11373 char const *s = 0 ? (char *) 0 : (char const *) 0;
11374
11375 *t++ = 0;
11376 if (s) return 0;
11377 }
11378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11379 int x[] = {25, 17};
11380 const int *foo = &x[0];
11381 ++foo;
11382 }
11383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11384 typedef const int *iptr;
11385 iptr p = 0;
11386 ++p;
11387 }
11388 { /* AIX XL C 1.02.0.0 rejects this saying
11389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11390 struct s { int j; const int *ap[3]; };
11391 struct s *b; b->j = 5;
11392 }
11393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11394 const int foo = 10;
11395 if (!foo) return 0;
11396 }
11397 return !cs[0] && !zero.x;
11398#endif
11399
11400 ;
11401 return 0;
11402}
11403_ACEOF
11404rm -f conftest.$ac_objext
11405if { (ac_try="$ac_compile"
11406case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409esac
11410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11411$as_echo "$ac_try_echo") >&5
11412 (eval "$ac_compile") 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest.$ac_objext; then
11422 ac_cv_c_const=yes
11423else
11424 $as_echo "$as_me: failed program was:" >&5
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 ac_cv_c_const=no
11428fi
11429
11430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431fi
11432{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11433$as_echo "$ac_cv_c_const" >&6; }
11434if test $ac_cv_c_const = no; then
11435
11436cat >>confdefs.h <<\_ACEOF
11437@%:@define const /**/
11438_ACEOF
11439
11440fi
11441
11442
11443
11444ac_config_files="$ac_config_files lib-src/Makefile src/Makefile lib-src-gmp/Makefile src-gmp/Makefile Makefile"
11445
11446cat >confcache <<\_ACEOF
11447# This file is a shell script that caches the results of configure
11448# tests run on this system so they can be shared between configure
11449# scripts and configure runs, see configure's option --config-cache.
11450# It is not useful on other systems. If it contains results you don't
11451# want to keep, you may remove or edit it.
11452#
11453# config.status only pays attention to the cache file if you give it
11454# the --recheck option to rerun configure.
11455#
11456# `ac_cv_env_foo' variables (set or unset) will be overridden when
11457# loading this file, other *unset* `ac_cv_foo' will be assigned the
11458# following values.
11459
11460_ACEOF
11461
11462# The following way of writing the cache mishandles newlines in values,
11463# but we know of no workaround that is simple, portable, and efficient.
11464# So, we kill variables containing newlines.
11465# Ultrix sh set writes to stderr and can't be redirected directly,
11466# and sets the high bit in the cache file unless we assign to the vars.
11467(
11468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11469 eval ac_val=\$$ac_var
11470 case $ac_val in #(
11471 *${as_nl}*)
11472 case $ac_var in #(
11473 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11474$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11475 esac
11476 case $ac_var in #(
11477 _ | IFS | as_nl) ;; #(
11478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11479 *) $as_unset $ac_var ;;
11480 esac ;;
11481 esac
11482 done
11483
11484 (set) 2>&1 |
11485 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11486 *${as_nl}ac_space=\ *)
11487 # `set' does not quote correctly, so add quotes (double-quote
11488 # substitution turns \\\\ into \\, and sed turns \\ into \).
11489 sed -n \
11490 "s/'/'\\\\''/g;
11491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11492 ;; #(
11493 *)
11494 # `set' quotes correctly as required by POSIX, so do not add quotes.
11495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11496 ;;
11497 esac |
11498 sort
11499) |
11500 sed '
11501 /^ac_cv_env_/b end
11502 t clear
11503 :clear
11504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11505 t end
11506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11507 :end' >>confcache
11508if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11509 if test -w "$cache_file"; then
11510 test "x$cache_file" != "x/dev/null" &&
11511 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11512$as_echo "$as_me: updating cache $cache_file" >&6;}
11513 cat confcache >$cache_file
11514 else
11515 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11516$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11517 fi
11518fi
11519rm -f confcache
11520
11521test "x$prefix" = xNONE && prefix=$ac_default_prefix
11522# Let make expand exec_prefix.
11523test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11524
11525# Transform confdefs.h into DEFS.
11526# Protect against shell expansion while executing Makefile rules.
11527# Protect against Makefile macro expansion.
11528#
11529# If the first sed substitution is executed (which looks for macros that
11530# take arguments), then branch to the quote section. Otherwise,
11531# look for a macro that doesn't take arguments.
11532ac_script='
11533:mline
11534/\\$/{
11535 N
11536 s,\\\n,,
11537 b mline
11538}
11539t clear
11540:clear
11541s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11542t quote
11543s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11544t quote
11545b any
11546:quote
11547s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11548s/\[/\\&/g
11549s/\]/\\&/g
11550s/\$/$$/g
11551H
11552:any
11553${
11554 g
11555 s/^\n//
11556 s/\n/ /g
11557 p
11558}
11559'
11560DEFS=`sed -n "$ac_script" confdefs.h`
11561
11562
11563ac_libobjs=
11564ac_ltlibobjs=
11565for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
11566 # 1. Remove the extension, and $U if already installed.
11567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11570 # will be set to the directory where LIBOBJS objects are built.
11571 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11572 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11573done
11574LIB@&t@OBJS=$ac_libobjs
11575
11576LTLIBOBJS=$ac_ltlibobjs
11577
11578
11579if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11580 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11581Usually this means the macro was only invoked conditionally." >&5
11582$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11583Usually this means the macro was only invoked conditionally." >&2;}
11584 { (exit 1); exit 1; }; }
11585fi
11586if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11587 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11588Usually this means the macro was only invoked conditionally." >&5
11589$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11590Usually this means the macro was only invoked conditionally." >&2;}
11591 { (exit 1); exit 1; }; }
11592fi
11593
11594: ${CONFIG_STATUS=./config.status}
11595ac_write_fail=0
11596ac_clean_files_save=$ac_clean_files
11597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11598{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11599$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11600cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11601#! $SHELL
11602# Generated by $as_me.
11603# Run this file to recreate the current configuration.
11604# Compiler output produced by configure, useful for debugging
11605# configure, is in config.log if it exists.
11606
11607debug=false
11608ac_cs_recheck=false
11609ac_cs_silent=false
11610SHELL=\${CONFIG_SHELL-$SHELL}
11611_ACEOF
11612
11613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11614## --------------------- ##
11615## M4sh Initialization. ##
11616## --------------------- ##
11617
11618# Be more Bourne compatible
11619DUALCASE=1; export DUALCASE # for MKS sh
11620if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11621 emulate sh
11622 NULLCMD=:
11623 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11624 # is contrary to our usage. Disable this feature.
11625 alias -g '${1+"$@"}'='"$@"'
11626 setopt NO_GLOB_SUBST
11627else
11628 case `(set -o) 2>/dev/null` in
11629 *posix*) set -o posix ;;
11630esac
11631
11632fi
11633
11634
11635
11636
11637# PATH needs CR
11638# Avoid depending upon Character Ranges.
11639as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11640as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11641as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11642as_cr_digits='0123456789'
11643as_cr_alnum=$as_cr_Letters$as_cr_digits
11644
11645as_nl='
11646'
11647export as_nl
11648# Printing a long string crashes Solaris 7 /usr/bin/printf.
11649as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11650as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11652if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11653 as_echo='printf %s\n'
11654 as_echo_n='printf %s'
11655else
11656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11658 as_echo_n='/usr/ucb/echo -n'
11659 else
11660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11661 as_echo_n_body='eval
11662 arg=$1;
11663 case $arg in
11664 *"$as_nl"*)
11665 expr "X$arg" : "X\\(.*\\)$as_nl";
11666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11667 esac;
11668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11669 '
11670 export as_echo_n_body
11671 as_echo_n='sh -c $as_echo_n_body as_echo'
11672 fi
11673 export as_echo_body
11674 as_echo='sh -c $as_echo_body as_echo'
11675fi
11676
11677# The user is always right.
11678if test "${PATH_SEPARATOR+set}" != set; then
11679 PATH_SEPARATOR=:
11680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11682 PATH_SEPARATOR=';'
11683 }
11684fi
11685
11686# Support unset when possible.
11687if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11688 as_unset=unset
11689else
11690 as_unset=false
11691fi
11692
11693
11694# IFS
11695# We need space, tab and new line, in precisely that order. Quoting is
11696# there to prevent editors from complaining about space-tab.
11697# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11698# splitting by setting IFS to empty value.)
11699IFS=" "" $as_nl"
11700
11701# Find who we are. Look in the path if we contain no directory separator.
11702case $0 in
11703 *[\\/]* ) as_myself=$0 ;;
11704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11710done
11711IFS=$as_save_IFS
11712
11713 ;;
11714esac
11715# We did not find ourselves, most probably we were run as `sh COMMAND'
11716# in which case we are not to be found in the path.
11717if test "x$as_myself" = x; then
11718 as_myself=$0
11719fi
11720if test ! -f "$as_myself"; then
11721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11722 { (exit 1); exit 1; }
11723fi
11724
11725# Work around bugs in pre-3.0 UWIN ksh.
11726for as_var in ENV MAIL MAILPATH
11727do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11728done
11729PS1='$ '
11730PS2='> '
11731PS4='+ '
11732
11733# NLS nuisances.
11734LC_ALL=C
11735export LC_ALL
11736LANGUAGE=C
11737export LANGUAGE
11738
11739# Required to use basename.
11740if expr a : '\(a\)' >/dev/null 2>&1 &&
11741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11742 as_expr=expr
11743else
11744 as_expr=false
11745fi
11746
11747if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11748 as_basename=basename
11749else
11750 as_basename=false
11751fi
11752
11753
11754# Name of the executable.
11755as_me=`$as_basename -- "$0" ||
11756$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11757 X"$0" : 'X\(//\)$' \| \
11758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11759$as_echo X/"$0" |
11760 sed '/^.*\/\([^/][^/]*\)\/*$/{
11761 s//\1/
11762 q
11763 }
11764 /^X\/\(\/\/\)$/{
11765 s//\1/
11766 q
11767 }
11768 /^X\/\(\/\).*/{
11769 s//\1/
11770 q
11771 }
11772 s/.*/./; q'`
11773
11774# CDPATH.
11775$as_unset CDPATH
11776
11777
11778
11779 as_lineno_1=$LINENO
11780 as_lineno_2=$LINENO
11781 test "x$as_lineno_1" != "x$as_lineno_2" &&
11782 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11783
11784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11785 # uniformly replaced by the line number. The first 'sed' inserts a
11786 # line-number line after each line using $LINENO; the second 'sed'
11787 # does the real work. The second script uses 'N' to pair each
11788 # line-number line with the line containing $LINENO, and appends
11789 # trailing '-' during substitution so that $LINENO is not a special
11790 # case at line end.
11791 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11792 # scripts with optimization help from Paolo Bonzini. Blame Lee
11793 # E. McMahon (1931-1989) for sed's syntax. :-)
11794 sed -n '
11795 p
11796 /[$]LINENO/=
11797 ' <$as_myself |
11798 sed '
11799 s/[$]LINENO.*/&-/
11800 t lineno
11801 b
11802 :lineno
11803 N
11804 :loop
11805 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11806 t loop
11807 s/-\n.*//
11808 ' >$as_me.lineno &&
11809 chmod +x "$as_me.lineno" ||
11810 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11811 { (exit 1); exit 1; }; }
11812
11813 # Don't try to exec as it changes $[0], causing all sort of problems
11814 # (the dirname of $[0] is not the place where we might find the
11815 # original and so on. Autoconf is especially sensitive to this).
11816 . "./$as_me.lineno"
11817 # Exit status is that of the last command.
11818 exit
11819}
11820
11821
11822if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11823 as_dirname=dirname
11824else
11825 as_dirname=false
11826fi
11827
11828ECHO_C= ECHO_N= ECHO_T=
11829case `echo -n x` in
11830-n*)
11831 case `echo 'x\c'` in
11832 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11833 *) ECHO_C='\c';;
11834 esac;;
11835*)
11836 ECHO_N='-n';;
11837esac
11838if expr a : '\(a\)' >/dev/null 2>&1 &&
11839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11840 as_expr=expr
11841else
11842 as_expr=false
11843fi
11844
11845rm -f conf$$ conf$$.exe conf$$.file
11846if test -d conf$$.dir; then
11847 rm -f conf$$.dir/conf$$.file
11848else
11849 rm -f conf$$.dir
11850 mkdir conf$$.dir 2>/dev/null
11851fi
11852if (echo >conf$$.file) 2>/dev/null; then
11853 if ln -s conf$$.file conf$$ 2>/dev/null; then
11854 as_ln_s='ln -s'
11855 # ... but there are two gotchas:
11856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11858 # In both cases, we have to default to `cp -p'.
11859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11860 as_ln_s='cp -p'
11861 elif ln conf$$.file conf$$ 2>/dev/null; then
11862 as_ln_s=ln
11863 else
11864 as_ln_s='cp -p'
11865 fi
11866else
11867 as_ln_s='cp -p'
11868fi
11869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11870rmdir conf$$.dir 2>/dev/null
11871
11872if mkdir -p . 2>/dev/null; then
11873 as_mkdir_p=:
11874else
11875 test -d ./-p && rmdir ./-p
11876 as_mkdir_p=false
11877fi
11878
11879if test -x / >/dev/null 2>&1; then
11880 as_test_x='test -x'
11881else
11882 if ls -dL / >/dev/null 2>&1; then
11883 as_ls_L_option=L
11884 else
11885 as_ls_L_option=
11886 fi
11887 as_test_x='
11888 eval sh -c '\''
11889 if test -d "$1"; then
11890 test -d "$1/.";
11891 else
11892 case $1 in
11893 -*)set "./$1";;
11894 esac;
11895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11896 ???[sx]*):;;*)false;;esac;fi
11897 '\'' sh
11898 '
11899fi
11900as_executable_p=$as_test_x
11901
11902# Sed expression to map a string onto a valid CPP name.
11903as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11904
11905# Sed expression to map a string onto a valid variable name.
11906as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11907
11908
11909exec 6>&1
11910
11911# Save the log message, to keep $[0] and so on meaningful, and to
11912# report actual input values of CONFIG_FILES etc. instead of their
11913# values after options handling.
11914ac_log="
11915This file was extended by $as_me, which was
11916generated by GNU Autoconf 2.63. Invocation command line was
11917
11918 CONFIG_FILES = $CONFIG_FILES
11919 CONFIG_HEADERS = $CONFIG_HEADERS
11920 CONFIG_LINKS = $CONFIG_LINKS
11921 CONFIG_COMMANDS = $CONFIG_COMMANDS
11922 $ $0 $@
11923
11924on `(hostname || uname -n) 2>/dev/null | sed 1q`
11925"
11926
11927_ACEOF
11928
11929case $ac_config_files in *"
11930"*) set x $ac_config_files; shift; ac_config_files=$*;;
11931esac
11932
11933
11934
11935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11936# Files that config.status was made for.
11937config_files="$ac_config_files"
11938config_commands="$ac_config_commands"
11939
11940_ACEOF
11941
11942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11943ac_cs_usage="\
11944\`$as_me' instantiates files from templates according to the
11945current configuration.
11946
11947Usage: $0 [OPTION]... [FILE]...
11948
11949 -h, --help print this help, then exit
11950 -V, --version print version number and configuration settings, then exit
11951 -q, --quiet, --silent
11952 do not print progress messages
11953 -d, --debug don't remove temporary files
11954 --recheck update $as_me by reconfiguring in the same conditions
11955 --file=FILE[:TEMPLATE]
11956 instantiate the configuration file FILE
11957
11958Configuration files:
11959$config_files
11960
11961Configuration commands:
11962$config_commands
11963
11964Report bugs to <bug-autoconf@gnu.org>."
11965
11966_ACEOF
11967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11968ac_cs_version="\\
11969config.status
11970configured by $0, generated by GNU Autoconf 2.63,
11971 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11972
11973Copyright (C) 2008 Free Software Foundation, Inc.
11974This config.status script is free software; the Free Software Foundation
11975gives unlimited permission to copy, distribute and modify it."
11976
11977ac_pwd='$ac_pwd'
11978srcdir='$srcdir'
11979INSTALL='$INSTALL'
11980MKDIR_P='$MKDIR_P'
11981AWK='$AWK'
11982test -n "\$AWK" || AWK=awk
11983_ACEOF
11984
11985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11986# The default lists apply if the user does not specify any file.
11987ac_need_defaults=:
11988while test $# != 0
11989do
11990 case $1 in
11991 --*=*)
11992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11993 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11994 ac_shift=:
11995 ;;
11996 *)
11997 ac_option=$1
11998 ac_optarg=$2
11999 ac_shift=shift
12000 ;;
12001 esac
12002
12003 case $ac_option in
12004 # Handling of the options.
12005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12006 ac_cs_recheck=: ;;
12007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12008 $as_echo "$ac_cs_version"; exit ;;
12009 --debug | --debu | --deb | --de | --d | -d )
12010 debug=: ;;
12011 --file | --fil | --fi | --f )
12012 $ac_shift
12013 case $ac_optarg in
12014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12015 esac
12016 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12017 ac_need_defaults=false;;
12018 --he | --h | --help | --hel | -h )
12019 $as_echo "$ac_cs_usage"; exit ;;
12020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12022 ac_cs_silent=: ;;
12023
12024 # This is an error.
12025 -*) { $as_echo "$as_me: error: unrecognized option: $1
12026Try \`$0 --help' for more information." >&2
12027 { (exit 1); exit 1; }; } ;;
12028
12029 *) ac_config_targets="$ac_config_targets $1"
12030 ac_need_defaults=false ;;
12031
12032 esac
12033 shift
12034done
12035
12036ac_configure_extra_args=
12037
12038if $ac_cs_silent; then
12039 exec 6>/dev/null
12040 ac_configure_extra_args="$ac_configure_extra_args --silent"
12041fi
12042
12043_ACEOF
12044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12045if \$ac_cs_recheck; then
12046 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12047 shift
12048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12049 CONFIG_SHELL='$SHELL'
12050 export CONFIG_SHELL
12051 exec "\$@"
12052fi
12053
12054_ACEOF
12055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12056exec 5>>config.log
12057{
12058 echo
12059 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
12060@%:@@%:@ Running $as_me. @%:@@%:@
12061_ASBOX
12062 $as_echo "$ac_log"
12063} >&5
12064
12065_ACEOF
12066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12067#
12068# INIT-COMMANDS
12069#
12070AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12071
12072
12073# The HP-UX ksh and POSIX shell print the target directory to stdout
12074# if CDPATH is set.
12075(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12076
12077sed_quote_subst='$sed_quote_subst'
12078double_quote_subst='$double_quote_subst'
12079delay_variable_subst='$delay_variable_subst'
12080macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12081macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12082enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12083enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12084pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12085enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12086host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12087host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12088host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12089build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12090build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12091build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12092SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12093Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12094GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12095EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12096FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12097LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12098NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12099LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12100max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12101ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12102exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12103lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12104lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12105lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12106reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12107reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12108OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12109deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12110file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12111AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12112AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12113STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12114RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12115old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12116old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12117old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12118CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12119CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12120compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12121GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12122lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12123lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12124lt_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"`'
12125lt_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"`'
12126objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12127SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12128ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12129MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12130lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12131lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12132lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12133lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12134lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12135need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12136DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12137NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12138LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12139OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12140OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12141libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12142shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12143extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12144archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12145enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12146export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12147whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12148compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12149old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12150old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12151archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12152archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12153module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12154module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12155with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12156allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12157no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12158hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12159hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12160hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12161hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12162hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12163hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12164hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12165hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12166inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12167link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12168fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12169always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12170export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12172include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12173prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12174file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12175variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12176need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12177need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12178version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12179runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12180shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12181shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12182libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12183library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12184soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12185postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12186postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12187finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12188finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12189hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12190sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12191sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12192hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12193enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12194enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12195enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12196old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12197striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12198
12199LTCC='$LTCC'
12200LTCFLAGS='$LTCFLAGS'
12201compiler='$compiler_DEFAULT'
12202
12203# Quote evaled strings.
12204for var in SED \
12205GREP \
12206EGREP \
12207FGREP \
12208LD \
12209NM \
12210LN_S \
12211lt_SP2NL \
12212lt_NL2SP \
12213reload_flag \
12214OBJDUMP \
12215deplibs_check_method \
12216file_magic_cmd \
12217AR \
12218AR_FLAGS \
12219STRIP \
12220RANLIB \
12221CC \
12222CFLAGS \
12223compiler \
12224lt_cv_sys_global_symbol_pipe \
12225lt_cv_sys_global_symbol_to_cdecl \
12226lt_cv_sys_global_symbol_to_c_name_address \
12227lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12228SHELL \
12229ECHO \
12230lt_prog_compiler_no_builtin_flag \
12231lt_prog_compiler_wl \
12232lt_prog_compiler_pic \
12233lt_prog_compiler_static \
12234lt_cv_prog_compiler_c_o \
12235need_locks \
12236DSYMUTIL \
12237NMEDIT \
12238LIPO \
12239OTOOL \
12240OTOOL64 \
12241shrext_cmds \
12242export_dynamic_flag_spec \
12243whole_archive_flag_spec \
12244compiler_needs_object \
12245with_gnu_ld \
12246allow_undefined_flag \
12247no_undefined_flag \
12248hardcode_libdir_flag_spec \
12249hardcode_libdir_flag_spec_ld \
12250hardcode_libdir_separator \
12251fix_srcfile_path \
12252exclude_expsyms \
12253include_expsyms \
12254file_list_spec \
12255variables_saved_for_relink \
12256libname_spec \
12257library_names_spec \
12258soname_spec \
12259finish_eval \
12260old_striplib \
12261striplib; do
12262 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12263 *[\\\\\\\`\\"\\\$]*)
12264 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12265 ;;
12266 *)
12267 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12268 ;;
12269 esac
12270done
12271
12272# Double-quote double-evaled strings.
12273for var in reload_cmds \
12274old_postinstall_cmds \
12275old_postuninstall_cmds \
12276old_archive_cmds \
12277extract_expsyms_cmds \
12278old_archive_from_new_cmds \
12279old_archive_from_expsyms_cmds \
12280archive_cmds \
12281archive_expsym_cmds \
12282module_cmds \
12283module_expsym_cmds \
12284export_symbols_cmds \
12285prelink_cmds \
12286postinstall_cmds \
12287postuninstall_cmds \
12288finish_cmds \
12289sys_lib_search_path_spec \
12290sys_lib_dlsearch_path_spec; do
12291 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12292 *[\\\\\\\`\\"\\\$]*)
12293 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12294 ;;
12295 *)
12296 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12297 ;;
12298 esac
12299done
12300
12301# Fix-up fallback echo if it was mangled by the above quoting rules.
12302case \$lt_ECHO in
12303*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12304 ;;
12305esac
12306
12307ac_aux_dir='$ac_aux_dir'
12308xsi_shell='$xsi_shell'
12309lt_shell_append='$lt_shell_append'
12310
12311# See if we are running on zsh, and set the options which allow our
12312# commands through without removal of \ escapes INIT.
12313if test -n "\${ZSH_VERSION+set}" ; then
12314 setopt NO_GLOB_SUBST
12315fi
12316
12317
12318 PACKAGE='$PACKAGE'
12319 VERSION='$VERSION'
12320 TIMESTAMP='$TIMESTAMP'
12321 RM='$RM'
12322 ofile='$ofile'
12323
12324
12325
12326
12327_ACEOF
12328
12329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12330
12331# Handling of arguments.
12332for ac_config_target in $ac_config_targets
12333do
12334 case $ac_config_target in
12335 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12336 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12337 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
12338 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12339 "lib-src-gmp/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src-gmp/Makefile" ;;
12340 "src-gmp/Makefile") CONFIG_FILES="$CONFIG_FILES src-gmp/Makefile" ;;
12341 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12342
12343 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12344$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12345 { (exit 1); exit 1; }; };;
12346 esac
12347done
12348
12349
12350# If the user did not use the arguments to specify the items to instantiate,
12351# then the envvar interface is used. Set only those that are not.
12352# We use the long form for the default assignment because of an extremely
12353# bizarre bug on SunOS 4.1.3.
12354if $ac_need_defaults; then
12355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12356 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12357fi
12358
12359# Have a temporary directory for convenience. Make it in the build tree
12360# simply because there is no reason against having it here, and in addition,
12361# creating and moving files from /tmp can sometimes cause problems.
12362# Hook for its removal unless debugging.
12363# Note that there is a small window in which the directory will not be cleaned:
12364# after its creation but before its name has been assigned to `$tmp'.
12365$debug ||
12366{
12367 tmp=
12368 trap 'exit_status=$?
12369 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12370' 0
12371 trap '{ (exit 1); exit 1; }' 1 2 13 15
12372}
12373# Create a (secure) tmp directory for tmp files.
12374
12375{
12376 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12377 test -n "$tmp" && test -d "$tmp"
12378} ||
12379{
12380 tmp=./conf$$-$RANDOM
12381 (umask 077 && mkdir "$tmp")
12382} ||
12383{
12384 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12385 { (exit 1); exit 1; }
12386}
12387
12388# Set up the scripts for CONFIG_FILES section.
12389# No need to generate them if there are no CONFIG_FILES.
12390# This happens for instance with `./config.status config.h'.
12391if test -n "$CONFIG_FILES"; then
12392
12393
12394ac_cr=' '
12395ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12396if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12397 ac_cs_awk_cr='\\r'
12398else
12399 ac_cs_awk_cr=$ac_cr
12400fi
12401
12402echo 'BEGIN {' >"$tmp/subs1.awk" &&
12403_ACEOF
12404
12405
12406{
12407 echo "cat >conf$$subs.awk <<_ACEOF" &&
12408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12409 echo "_ACEOF"
12410} >conf$$subs.sh ||
12411 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12412$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12413 { (exit 1); exit 1; }; }
12414ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12415ac_delim='%!_!# '
12416for ac_last_try in false false false false false :; do
12417 . ./conf$$subs.sh ||
12418 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12419$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12420 { (exit 1); exit 1; }; }
12421
12422 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12423 if test $ac_delim_n = $ac_delim_num; then
12424 break
12425 elif $ac_last_try; then
12426 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12427$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12428 { (exit 1); exit 1; }; }
12429 else
12430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12431 fi
12432done
12433rm -f conf$$subs.sh
12434
12435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12436cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12437_ACEOF
12438sed -n '
12439h
12440s/^/S["/; s/!.*/"]=/
12441p
12442g
12443s/^[^!]*!//
12444:repl
12445t repl
12446s/'"$ac_delim"'$//
12447t delim
12448:nl
12449h
12450s/\(.\{148\}\).*/\1/
12451t more1
12452s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12453p
12454n
12455b repl
12456:more1
12457s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12458p
12459g
12460s/.\{148\}//
12461t nl
12462:delim
12463h
12464s/\(.\{148\}\).*/\1/
12465t more2
12466s/["\\]/\\&/g; s/^/"/; s/$/"/
12467p
12468b
12469:more2
12470s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12471p
12472g
12473s/.\{148\}//
12474t delim
12475' <conf$$subs.awk | sed '
12476/^[^""]/{
12477 N
12478 s/\n//
12479}
12480' >>$CONFIG_STATUS || ac_write_fail=1
12481rm -f conf$$subs.awk
12482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12483_ACAWK
12484cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12485 for (key in S) S_is_set[key] = 1
12486 FS = ""
12487
12488}
12489{
12490 line = $ 0
12491 nfields = split(line, field, "@")
12492 substed = 0
12493 len = length(field[1])
12494 for (i = 2; i < nfields; i++) {
12495 key = field[i]
12496 keylen = length(key)
12497 if (S_is_set[key]) {
12498 value = S[key]
12499 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12500 len += length(value) + length(field[++i])
12501 substed = 1
12502 } else
12503 len += 1 + keylen
12504 }
12505
12506 print line
12507}
12508
12509_ACAWK
12510_ACEOF
12511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12512if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12513 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12514else
12515 cat
12516fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12517 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12518$as_echo "$as_me: error: could not setup config files machinery" >&2;}
12519 { (exit 1); exit 1; }; }
12520_ACEOF
12521
12522# VPATH may cause trouble with some makes, so we remove $(srcdir),
12523# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12524# trailing colons and then remove the whole line if VPATH becomes empty
12525# (actually we leave an empty line to preserve line numbers).
12526if test "x$srcdir" = x.; then
12527 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12528s/:*\$(srcdir):*/:/
12529s/:*\${srcdir}:*/:/
12530s/:*@srcdir@:*/:/
12531s/^\([^=]*=[ ]*\):*/\1/
12532s/:*$//
12533s/^[^=]*=[ ]*$//
12534}'
12535fi
12536
12537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12538fi # test -n "$CONFIG_FILES"
12539
12540
12541eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12542shift
12543for ac_tag
12544do
12545 case $ac_tag in
12546 :[FHLC]) ac_mode=$ac_tag; continue;;
12547 esac
12548 case $ac_mode$ac_tag in
12549 :[FHL]*:*);;
12550 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12551$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12552 { (exit 1); exit 1; }; };;
12553 :[FH]-) ac_tag=-:-;;
12554 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12555 esac
12556 ac_save_IFS=$IFS
12557 IFS=:
12558 set x $ac_tag
12559 IFS=$ac_save_IFS
12560 shift
12561 ac_file=$1
12562 shift
12563
12564 case $ac_mode in
12565 :L) ac_source=$1;;
12566 :[FH])
12567 ac_file_inputs=
12568 for ac_f
12569 do
12570 case $ac_f in
12571 -) ac_f="$tmp/stdin";;
12572 *) # Look for the file first in the build tree, then in the source tree
12573 # (if the path is not absolute). The absolute path cannot be DOS-style,
12574 # because $ac_f cannot contain `:'.
12575 test -f "$ac_f" ||
12576 case $ac_f in
12577 [\\/$]*) false;;
12578 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12579 esac ||
12580 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12581$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12582 { (exit 1); exit 1; }; };;
12583 esac
12584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12585 ac_file_inputs="$ac_file_inputs '$ac_f'"
12586 done
12587
12588 # Let's still pretend it is `configure' which instantiates (i.e., don't
12589 # use $as_me), people would be surprised to read:
12590 # /* config.h. Generated by config.status. */
12591 configure_input='Generated from '`
12592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12593 `' by configure.'
12594 if test x"$ac_file" != x-; then
12595 configure_input="$ac_file. $configure_input"
12596 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12597$as_echo "$as_me: creating $ac_file" >&6;}
12598 fi
12599 # Neutralize special characters interpreted by sed in replacement strings.
12600 case $configure_input in #(
12601 *\&* | *\|* | *\\* )
12602 ac_sed_conf_input=`$as_echo "$configure_input" |
12603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12604 *) ac_sed_conf_input=$configure_input;;
12605 esac
12606
12607 case $ac_tag in
12608 *:-:* | *:-) cat >"$tmp/stdin" \
12609 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12610$as_echo "$as_me: error: could not create $ac_file" >&2;}
12611 { (exit 1); exit 1; }; } ;;
12612 esac
12613 ;;
12614 esac
12615
12616 ac_dir=`$as_dirname -- "$ac_file" ||
12617$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12618 X"$ac_file" : 'X\(//\)[^/]' \| \
12619 X"$ac_file" : 'X\(//\)$' \| \
12620 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12621$as_echo X"$ac_file" |
12622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12623 s//\1/
12624 q
12625 }
12626 /^X\(\/\/\)[^/].*/{
12627 s//\1/
12628 q
12629 }
12630 /^X\(\/\/\)$/{
12631 s//\1/
12632 q
12633 }
12634 /^X\(\/\).*/{
12635 s//\1/
12636 q
12637 }
12638 s/.*/./; q'`
12639 { as_dir="$ac_dir"
12640 case $as_dir in #(
12641 -*) as_dir=./$as_dir;;
12642 esac
12643 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12644 as_dirs=
12645 while :; do
12646 case $as_dir in #(
12647 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12648 *) as_qdir=$as_dir;;
12649 esac
12650 as_dirs="'$as_qdir' $as_dirs"
12651 as_dir=`$as_dirname -- "$as_dir" ||
12652$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12653 X"$as_dir" : 'X\(//\)[^/]' \| \
12654 X"$as_dir" : 'X\(//\)$' \| \
12655 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12656$as_echo X"$as_dir" |
12657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\/\)[^/].*/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\/\)$/{
12666 s//\1/
12667 q
12668 }
12669 /^X\(\/\).*/{
12670 s//\1/
12671 q
12672 }
12673 s/.*/./; q'`
12674 test -d "$as_dir" && break
12675 done
12676 test -z "$as_dirs" || eval "mkdir $as_dirs"
12677 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12678$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12679 { (exit 1); exit 1; }; }; }
12680 ac_builddir=.
12681
12682case "$ac_dir" in
12683.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12684*)
12685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12686 # A ".." for each directory in $ac_dir_suffix.
12687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12688 case $ac_top_builddir_sub in
12689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12691 esac ;;
12692esac
12693ac_abs_top_builddir=$ac_pwd
12694ac_abs_builddir=$ac_pwd$ac_dir_suffix
12695# for backward compatibility:
12696ac_top_builddir=$ac_top_build_prefix
12697
12698case $srcdir in
12699 .) # We are building in place.
12700 ac_srcdir=.
12701 ac_top_srcdir=$ac_top_builddir_sub
12702 ac_abs_top_srcdir=$ac_pwd ;;
12703 [\\/]* | ?:[\\/]* ) # Absolute name.
12704 ac_srcdir=$srcdir$ac_dir_suffix;
12705 ac_top_srcdir=$srcdir
12706 ac_abs_top_srcdir=$srcdir ;;
12707 *) # Relative name.
12708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12709 ac_top_srcdir=$ac_top_build_prefix$srcdir
12710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12711esac
12712ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12713
12714
12715 case $ac_mode in
12716 :F)
12717 #
12718 # CONFIG_FILE
12719 #
12720
12721 case $INSTALL in
12722 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12723 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12724 esac
12725 ac_MKDIR_P=$MKDIR_P
12726 case $MKDIR_P in
12727 [\\/$]* | ?:[\\/]* ) ;;
12728 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12729 esac
12730_ACEOF
12731
12732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733# If the template does not know about datarootdir, expand it.
12734# FIXME: This hack should be removed a few years after 2.60.
12735ac_datarootdir_hack=; ac_datarootdir_seen=
12736
12737ac_sed_dataroot='
12738/datarootdir/ {
12739 p
12740 q
12741}
12742/@datadir@/p
12743/@docdir@/p
12744/@infodir@/p
12745/@localedir@/p
12746/@mandir@/p
12747'
12748case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12749*datarootdir*) ac_datarootdir_seen=yes;;
12750*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12751 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12752$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12753_ACEOF
12754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12755 ac_datarootdir_hack='
12756 s&@datadir@&$datadir&g
12757 s&@docdir@&$docdir&g
12758 s&@infodir@&$infodir&g
12759 s&@localedir@&$localedir&g
12760 s&@mandir@&$mandir&g
12761 s&\\\${datarootdir}&$datarootdir&g' ;;
12762esac
12763_ACEOF
12764
12765# Neutralize VPATH when `$srcdir' = `.'.
12766# Shell code in configure.ac might set extrasub.
12767# FIXME: do we really want to maintain this feature?
12768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12769ac_sed_extra="$ac_vpsub
12770$extrasub
12771_ACEOF
12772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12773:t
12774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12775s|@configure_input@|$ac_sed_conf_input|;t t
12776s&@top_builddir@&$ac_top_builddir_sub&;t t
12777s&@top_build_prefix@&$ac_top_build_prefix&;t t
12778s&@srcdir@&$ac_srcdir&;t t
12779s&@abs_srcdir@&$ac_abs_srcdir&;t t
12780s&@top_srcdir@&$ac_top_srcdir&;t t
12781s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12782s&@builddir@&$ac_builddir&;t t
12783s&@abs_builddir@&$ac_abs_builddir&;t t
12784s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12785s&@INSTALL@&$ac_INSTALL&;t t
12786s&@MKDIR_P@&$ac_MKDIR_P&;t t
12787$ac_datarootdir_hack
12788"
12789eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12790 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12791$as_echo "$as_me: error: could not create $ac_file" >&2;}
12792 { (exit 1); exit 1; }; }
12793
12794test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12795 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12796 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12797 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12798which seems to be undefined. Please make sure it is defined." >&5
12799$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12800which seems to be undefined. Please make sure it is defined." >&2;}
12801
12802 rm -f "$tmp/stdin"
12803 case $ac_file in
12804 -) cat "$tmp/out" && rm -f "$tmp/out";;
12805 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12806 esac \
12807 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12808$as_echo "$as_me: error: could not create $ac_file" >&2;}
12809 { (exit 1); exit 1; }; }
12810 ;;
12811
12812
12813 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12814$as_echo "$as_me: executing $ac_file commands" >&6;}
12815 ;;
12816 esac
12817
12818
12819 case $ac_file$ac_mode in
12820 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
12821# are listed without --file. Let's play safe and only enable the eval
12822# if we detect the quoting.
12823case $CONFIG_FILES in
12824*\'*) eval set x "$CONFIG_FILES" ;;
12825*) set x $CONFIG_FILES ;;
12826esac
12827shift
12828for mf
12829do
12830 # Strip MF so we end up with the name of the file.
12831 mf=`echo "$mf" | sed -e 's/:.*$//'`
12832 # Check whether this is an Automake generated Makefile or not.
12833 # We used to match only the files named `Makefile.in', but
12834 # some people rename them; so instead we look at the file content.
12835 # Grep'ing the first line is not enough: some people post-process
12836 # each Makefile.in and add a new line on top of each file to say so.
12837 # Grep'ing the whole file is not good either: AIX grep has a line
12838 # limit of 2048, but all sed's we know have understand at least 4000.
12839 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12840 dirpart=`$as_dirname -- "$mf" ||
12841$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12842 X"$mf" : 'X\(//\)[^/]' \| \
12843 X"$mf" : 'X\(//\)$' \| \
12844 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12845$as_echo X"$mf" |
12846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12847 s//\1/
12848 q
12849 }
12850 /^X\(\/\/\)[^/].*/{
12851 s//\1/
12852 q
12853 }
12854 /^X\(\/\/\)$/{
12855 s//\1/
12856 q
12857 }
12858 /^X\(\/\).*/{
12859 s//\1/
12860 q
12861 }
12862 s/.*/./; q'`
12863 else
12864 continue
12865 fi
12866 # Extract the definition of DEPDIR, am__include, and am__quote
12867 # from the Makefile without running `make'.
12868 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12869 test -z "$DEPDIR" && continue
12870 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12871 test -z "am__include" && continue
12872 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12873 # When using ansi2knr, U may be empty or an underscore; expand it
12874 U=`sed -n 's/^U = //p' < "$mf"`
12875 # Find all dependency output files, they are included files with
12876 # $(DEPDIR) in their names. We invoke sed twice because it is the
12877 # simplest approach to changing $(DEPDIR) to its actual value in the
12878 # expansion.
12879 for file in `sed -n "
12880 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12881 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12882 # Make sure the directory exists.
12883 test -f "$dirpart/$file" && continue
12884 fdir=`$as_dirname -- "$file" ||
12885$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12886 X"$file" : 'X\(//\)[^/]' \| \
12887 X"$file" : 'X\(//\)$' \| \
12888 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12889$as_echo X"$file" |
12890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12891 s//\1/
12892 q
12893 }
12894 /^X\(\/\/\)[^/].*/{
12895 s//\1/
12896 q
12897 }
12898 /^X\(\/\/\)$/{
12899 s//\1/
12900 q
12901 }
12902 /^X\(\/\).*/{
12903 s//\1/
12904 q
12905 }
12906 s/.*/./; q'`
12907 { as_dir=$dirpart/$fdir
12908 case $as_dir in #(
12909 -*) as_dir=./$as_dir;;
12910 esac
12911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12912 as_dirs=
12913 while :; do
12914 case $as_dir in #(
12915 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12916 *) as_qdir=$as_dir;;
12917 esac
12918 as_dirs="'$as_qdir' $as_dirs"
12919 as_dir=`$as_dirname -- "$as_dir" ||
12920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12921 X"$as_dir" : 'X\(//\)[^/]' \| \
12922 X"$as_dir" : 'X\(//\)$' \| \
12923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12924$as_echo X"$as_dir" |
12925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12926 s//\1/
12927 q
12928 }
12929 /^X\(\/\/\)[^/].*/{
12930 s//\1/
12931 q
12932 }
12933 /^X\(\/\/\)$/{
12934 s//\1/
12935 q
12936 }
12937 /^X\(\/\).*/{
12938 s//\1/
12939 q
12940 }
12941 s/.*/./; q'`
12942 test -d "$as_dir" && break
12943 done
12944 test -z "$as_dirs" || eval "mkdir $as_dirs"
12945 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12946$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12947 { (exit 1); exit 1; }; }; }
12948 # echo "creating $dirpart/$file"
12949 echo '# dummy' > "$dirpart/$file"
12950 done
12951done
12952 ;;
12953 "libtool":C)
12954
12955 # See if we are running on zsh, and set the options which allow our
12956 # commands through without removal of \ escapes.
12957 if test -n "${ZSH_VERSION+set}" ; then
12958 setopt NO_GLOB_SUBST
12959 fi
12960
12961 cfgfile="${ofile}T"
12962 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12963 $RM "$cfgfile"
12964
12965 cat <<_LT_EOF >> "$cfgfile"
12966#! $SHELL
12967
12968# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12969# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12971# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12972#
12973# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12974# 2006, 2007, 2008 Free Software Foundation, Inc.
12975# Written by Gordon Matzigkeit, 1996
12976#
12977# This file is part of GNU Libtool.
12978#
12979# GNU Libtool is free software; you can redistribute it and/or
12980# modify it under the terms of the GNU General Public License as
12981# published by the Free Software Foundation; either version 2 of
12982# the License, or (at your option) any later version.
12983#
12984# As a special exception to the GNU General Public License,
12985# if you distribute this file as part of a program or library that
12986# is built using GNU Libtool, you may include this file under the
12987# same distribution terms that you use for the rest of that program.
12988#
12989# GNU Libtool is distributed in the hope that it will be useful,
12990# but WITHOUT ANY WARRANTY; without even the implied warranty of
12991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12992# GNU General Public License for more details.
12993#
12994# You should have received a copy of the GNU General Public License
12995# along with GNU Libtool; see the file COPYING. If not, a copy
12996# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12997# obtained by writing to the Free Software Foundation, Inc.,
12998# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12999
13000
13001# The names of the tagged configurations supported by this script.
13002available_tags=""
13003
13004# ### BEGIN LIBTOOL CONFIG
13005
13006# Which release of libtool.m4 was used?
13007macro_version=$macro_version
13008macro_revision=$macro_revision
13009
13010# Whether or not to build shared libraries.
13011build_libtool_libs=$enable_shared
13012
13013# Whether or not to build static libraries.
13014build_old_libs=$enable_static
13015
13016# What type of objects to build.
13017pic_mode=$pic_mode
13018
13019# Whether or not to optimize for fast installation.
13020fast_install=$enable_fast_install
13021
13022# The host system.
13023host_alias=$host_alias
13024host=$host
13025host_os=$host_os
13026
13027# The build system.
13028build_alias=$build_alias
13029build=$build
13030build_os=$build_os
13031
13032# A sed program that does not truncate output.
13033SED=$lt_SED
13034
13035# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13036Xsed="\$SED -e 1s/^X//"
13037
13038# A grep program that handles long lines.
13039GREP=$lt_GREP
13040
13041# An ERE matcher.
13042EGREP=$lt_EGREP
13043
13044# A literal string matcher.
13045FGREP=$lt_FGREP
13046
13047# A BSD- or MS-compatible name lister.
13048NM=$lt_NM
13049
13050# Whether we need soft or hard links.
13051LN_S=$lt_LN_S
13052
13053# What is the maximum length of a command?
13054max_cmd_len=$max_cmd_len
13055
13056# Object file suffix (normally "o").
13057objext=$ac_objext
13058
13059# Executable file suffix (normally "").
13060exeext=$exeext
13061
13062# whether the shell understands "unset".
13063lt_unset=$lt_unset
13064
13065# turn spaces into newlines.
13066SP2NL=$lt_lt_SP2NL
13067
13068# turn newlines into spaces.
13069NL2SP=$lt_lt_NL2SP
13070
13071# How to create reloadable object files.
13072reload_flag=$lt_reload_flag
13073reload_cmds=$lt_reload_cmds
13074
13075# An object symbol dumper.
13076OBJDUMP=$lt_OBJDUMP
13077
13078# Method to check whether dependent libraries are shared objects.
13079deplibs_check_method=$lt_deplibs_check_method
13080
13081# Command to use when deplibs_check_method == "file_magic".
13082file_magic_cmd=$lt_file_magic_cmd
13083
13084# The archiver.
13085AR=$lt_AR
13086AR_FLAGS=$lt_AR_FLAGS
13087
13088# A symbol stripping program.
13089STRIP=$lt_STRIP
13090
13091# Commands used to install an old-style archive.
13092RANLIB=$lt_RANLIB
13093old_postinstall_cmds=$lt_old_postinstall_cmds
13094old_postuninstall_cmds=$lt_old_postuninstall_cmds
13095
13096# A C compiler.
13097LTCC=$lt_CC
13098
13099# LTCC compiler flags.
13100LTCFLAGS=$lt_CFLAGS
13101
13102# Take the output of nm and produce a listing of raw symbols and C names.
13103global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13104
13105# Transform the output of nm in a proper C declaration.
13106global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13107
13108# Transform the output of nm in a C name address pair.
13109global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13110
13111# Transform the output of nm in a C name address pair when lib prefix is needed.
13112global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13113
13114# The name of the directory that contains temporary libtool files.
13115objdir=$objdir
13116
13117# Shell to use when invoking shell scripts.
13118SHELL=$lt_SHELL
13119
13120# An echo program that does not interpret backslashes.
13121ECHO=$lt_ECHO
13122
13123# Used to examine libraries when file_magic_cmd begins with "file".
13124MAGIC_CMD=$MAGIC_CMD
13125
13126# Must we lock files when doing compilation?
13127need_locks=$lt_need_locks
13128
13129# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13130DSYMUTIL=$lt_DSYMUTIL
13131
13132# Tool to change global to local symbols on Mac OS X.
13133NMEDIT=$lt_NMEDIT
13134
13135# Tool to manipulate fat objects and archives on Mac OS X.
13136LIPO=$lt_LIPO
13137
13138# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13139OTOOL=$lt_OTOOL
13140
13141# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13142OTOOL64=$lt_OTOOL64
13143
13144# Old archive suffix (normally "a").
13145libext=$libext
13146
13147# Shared library suffix (normally ".so").
13148shrext_cmds=$lt_shrext_cmds
13149
13150# The commands to extract the exported symbol list from a shared archive.
13151extract_expsyms_cmds=$lt_extract_expsyms_cmds
13152
13153# Variables whose values should be saved in libtool wrapper scripts and
13154# restored at link time.
13155variables_saved_for_relink=$lt_variables_saved_for_relink
13156
13157# Do we need the "lib" prefix for modules?
13158need_lib_prefix=$need_lib_prefix
13159
13160# Do we need a version for libraries?
13161need_version=$need_version
13162
13163# Library versioning type.
13164version_type=$version_type
13165
13166# Shared library runtime path variable.
13167runpath_var=$runpath_var
13168
13169# Shared library path variable.
13170shlibpath_var=$shlibpath_var
13171
13172# Is shlibpath searched before the hard-coded library search path?
13173shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13174
13175# Format of library name prefix.
13176libname_spec=$lt_libname_spec
13177
13178# List of archive names. First name is the real one, the rest are links.
13179# The last name is the one that the linker finds with -lNAME
13180library_names_spec=$lt_library_names_spec
13181
13182# The coded name of the library, if different from the real name.
13183soname_spec=$lt_soname_spec
13184
13185# Command to use after installation of a shared archive.
13186postinstall_cmds=$lt_postinstall_cmds
13187
13188# Command to use after uninstallation of a shared archive.
13189postuninstall_cmds=$lt_postuninstall_cmds
13190
13191# Commands used to finish a libtool library installation in a directory.
13192finish_cmds=$lt_finish_cmds
13193
13194# As "finish_cmds", except a single script fragment to be evaled but
13195# not shown.
13196finish_eval=$lt_finish_eval
13197
13198# Whether we should hardcode library paths into libraries.
13199hardcode_into_libs=$hardcode_into_libs
13200
13201# Compile-time system search path for libraries.
13202sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13203
13204# Run-time system search path for libraries.
13205sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13206
13207# Whether dlopen is supported.
13208dlopen_support=$enable_dlopen
13209
13210# Whether dlopen of programs is supported.
13211dlopen_self=$enable_dlopen_self
13212
13213# Whether dlopen of statically linked programs is supported.
13214dlopen_self_static=$enable_dlopen_self_static
13215
13216# Commands to strip libraries.
13217old_striplib=$lt_old_striplib
13218striplib=$lt_striplib
13219
13220
13221# The linker used to build libraries.
13222LD=$lt_LD
13223
13224# Commands used to build an old-style archive.
13225old_archive_cmds=$lt_old_archive_cmds
13226
13227# A language specific compiler.
13228CC=$lt_compiler
13229
13230# Is the compiler the GNU compiler?
13231with_gcc=$GCC
13232
13233# Compiler flag to turn off builtin functions.
13234no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13235
13236# How to pass a linker flag through the compiler.
13237wl=$lt_lt_prog_compiler_wl
13238
13239# Additional compiler flags for building library objects.
13240pic_flag=$lt_lt_prog_compiler_pic
13241
13242# Compiler flag to prevent dynamic linking.
13243link_static_flag=$lt_lt_prog_compiler_static
13244
13245# Does compiler simultaneously support -c and -o options?
13246compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13247
13248# Whether or not to add -lc for building shared libraries.
13249build_libtool_need_lc=$archive_cmds_need_lc
13250
13251# Whether or not to disallow shared libs when runtime libs are static.
13252allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13253
13254# Compiler flag to allow reflexive dlopens.
13255export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13256
13257# Compiler flag to generate shared objects directly from archives.
13258whole_archive_flag_spec=$lt_whole_archive_flag_spec
13259
13260# Whether the compiler copes with passing no objects directly.
13261compiler_needs_object=$lt_compiler_needs_object
13262
13263# Create an old-style archive from a shared archive.
13264old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13265
13266# Create a temporary old-style archive to link instead of a shared archive.
13267old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13268
13269# Commands used to build a shared archive.
13270archive_cmds=$lt_archive_cmds
13271archive_expsym_cmds=$lt_archive_expsym_cmds
13272
13273# Commands used to build a loadable module if different from building
13274# a shared archive.
13275module_cmds=$lt_module_cmds
13276module_expsym_cmds=$lt_module_expsym_cmds
13277
13278# Whether we are building with GNU ld or not.
13279with_gnu_ld=$lt_with_gnu_ld
13280
13281# Flag that allows shared libraries with undefined symbols to be built.
13282allow_undefined_flag=$lt_allow_undefined_flag
13283
13284# Flag that enforces no undefined symbols.
13285no_undefined_flag=$lt_no_undefined_flag
13286
13287# Flag to hardcode \$libdir into a binary during linking.
13288# This must work even if \$libdir does not exist
13289hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13290
13291# If ld is used when linking, flag to hardcode \$libdir into a binary
13292# during linking. This must work even if \$libdir does not exist.
13293hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13294
13295# Whether we need a single "-rpath" flag with a separated argument.
13296hardcode_libdir_separator=$lt_hardcode_libdir_separator
13297
13298# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13299# DIR into the resulting binary.
13300hardcode_direct=$hardcode_direct
13301
13302# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13303# DIR into the resulting binary and the resulting library dependency is
13304# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13305# library is relocated.
13306hardcode_direct_absolute=$hardcode_direct_absolute
13307
13308# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13309# into the resulting binary.
13310hardcode_minus_L=$hardcode_minus_L
13311
13312# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13313# into the resulting binary.
13314hardcode_shlibpath_var=$hardcode_shlibpath_var
13315
13316# Set to "yes" if building a shared library automatically hardcodes DIR
13317# into the library and all subsequent libraries and executables linked
13318# against it.
13319hardcode_automatic=$hardcode_automatic
13320
13321# Set to yes if linker adds runtime paths of dependent libraries
13322# to runtime path list.
13323inherit_rpath=$inherit_rpath
13324
13325# Whether libtool must link a program against all its dependency libraries.
13326link_all_deplibs=$link_all_deplibs
13327
13328# Fix the shell variable \$srcfile for the compiler.
13329fix_srcfile_path=$lt_fix_srcfile_path
13330
13331# Set to "yes" if exported symbols are required.
13332always_export_symbols=$always_export_symbols
13333
13334# The commands to list exported symbols.
13335export_symbols_cmds=$lt_export_symbols_cmds
13336
13337# Symbols that should not be listed in the preloaded symbols.
13338exclude_expsyms=$lt_exclude_expsyms
13339
13340# Symbols that must always be exported.
13341include_expsyms=$lt_include_expsyms
13342
13343# Commands necessary for linking programs (against libraries) with templates.
13344prelink_cmds=$lt_prelink_cmds
13345
13346# Specify filename containing input files.
13347file_list_spec=$lt_file_list_spec
13348
13349# How to hardcode a shared library path into an executable.
13350hardcode_action=$hardcode_action
13351
13352# ### END LIBTOOL CONFIG
13353
13354_LT_EOF
13355
13356 case $host_os in
13357 aix3*)
13358 cat <<\_LT_EOF >> "$cfgfile"
13359# AIX sometimes has problems with the GCC collect2 program. For some
13360# reason, if we set the COLLECT_NAMES environment variable, the problems
13361# vanish in a puff of smoke.
13362if test "X${COLLECT_NAMES+set}" != Xset; then
13363 COLLECT_NAMES=
13364 export COLLECT_NAMES
13365fi
13366_LT_EOF
13367 ;;
13368 esac
13369
13370
13371ltmain="$ac_aux_dir/ltmain.sh"
13372
13373
13374 # We use sed instead of cat because bash on DJGPP gets confused if
13375 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13376 # text mode, it properly converts lines to CR/LF. This bash problem
13377 # is reportedly fixed, but why not run on old versions too?
13378 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13379 || (rm -f "$cfgfile"; exit 1)
13380
13381 case $xsi_shell in
13382 yes)
13383 cat << \_LT_EOF >> "$cfgfile"
13384
13385# func_dirname file append nondir_replacement
13386# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13387# otherwise set result to NONDIR_REPLACEMENT.
13388func_dirname ()
13389{
13390 case ${1} in
13391 */*) func_dirname_result="${1%/*}${2}" ;;
13392 * ) func_dirname_result="${3}" ;;
13393 esac
13394}
13395
13396# func_basename file
13397func_basename ()
13398{
13399 func_basename_result="${1##*/}"
13400}
13401
13402# func_dirname_and_basename file append nondir_replacement
13403# perform func_basename and func_dirname in a single function
13404# call:
13405# dirname: Compute the dirname of FILE. If nonempty,
13406# add APPEND to the result, otherwise set result
13407# to NONDIR_REPLACEMENT.
13408# value returned in "$func_dirname_result"
13409# basename: Compute filename of FILE.
13410# value retuned in "$func_basename_result"
13411# Implementation must be kept synchronized with func_dirname
13412# and func_basename. For efficiency, we do not delegate to
13413# those functions but instead duplicate the functionality here.
13414func_dirname_and_basename ()
13415{
13416 case ${1} in
13417 */*) func_dirname_result="${1%/*}${2}" ;;
13418 * ) func_dirname_result="${3}" ;;
13419 esac
13420 func_basename_result="${1##*/}"
13421}
13422
13423# func_stripname prefix suffix name
13424# strip PREFIX and SUFFIX off of NAME.
13425# PREFIX and SUFFIX must not contain globbing or regex special
13426# characters, hashes, percent signs, but SUFFIX may contain a leading
13427# dot (in which case that matches only a dot).
13428func_stripname ()
13429{
13430 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13431 # positional parameters, so assign one to ordinary parameter first.
13432 func_stripname_result=${3}
13433 func_stripname_result=${func_stripname_result#"${1}"}
13434 func_stripname_result=${func_stripname_result%"${2}"}
13435}
13436
13437# func_opt_split
13438func_opt_split ()
13439{
13440 func_opt_split_opt=${1%%=*}
13441 func_opt_split_arg=${1#*=}
13442}
13443
13444# func_lo2o object
13445func_lo2o ()
13446{
13447 case ${1} in
13448 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13449 *) func_lo2o_result=${1} ;;
13450 esac
13451}
13452
13453# func_xform libobj-or-source
13454func_xform ()
13455{
13456 func_xform_result=${1%.*}.lo
13457}
13458
13459# func_arith arithmetic-term...
13460func_arith ()
13461{
13462 func_arith_result=$(( $* ))
13463}
13464
13465# func_len string
13466# STRING may not start with a hyphen.
13467func_len ()
13468{
13469 func_len_result=${#1}
13470}
13471
13472_LT_EOF
13473 ;;
13474 *) # Bourne compatible functions.
13475 cat << \_LT_EOF >> "$cfgfile"
13476
13477# func_dirname file append nondir_replacement
13478# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13479# otherwise set result to NONDIR_REPLACEMENT.
13480func_dirname ()
13481{
13482 # Extract subdirectory from the argument.
13483 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13484 if test "X$func_dirname_result" = "X${1}"; then
13485 func_dirname_result="${3}"
13486 else
13487 func_dirname_result="$func_dirname_result${2}"
13488 fi
13489}
13490
13491# func_basename file
13492func_basename ()
13493{
13494 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13495}
13496
13497
13498# func_stripname prefix suffix name
13499# strip PREFIX and SUFFIX off of NAME.
13500# PREFIX and SUFFIX must not contain globbing or regex special
13501# characters, hashes, percent signs, but SUFFIX may contain a leading
13502# dot (in which case that matches only a dot).
13503# func_strip_suffix prefix name
13504func_stripname ()
13505{
13506 case ${2} in
13507 .*) func_stripname_result=`$ECHO "X${3}" \
13508 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13509 *) func_stripname_result=`$ECHO "X${3}" \
13510 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13511 esac
13512}
13513
13514# sed scripts:
13515my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13516my_sed_long_arg='1s/^-[^=]*=//'
13517
13518# func_opt_split
13519func_opt_split ()
13520{
13521 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13522 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13523}
13524
13525# func_lo2o object
13526func_lo2o ()
13527{
13528 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13529}
13530
13531# func_xform libobj-or-source
13532func_xform ()
13533{
13534 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13535}
13536
13537# func_arith arithmetic-term...
13538func_arith ()
13539{
13540 func_arith_result=`expr "$@"`
13541}
13542
13543# func_len string
13544# STRING may not start with a hyphen.
13545func_len ()
13546{
13547 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13548}
13549
13550_LT_EOF
13551esac
13552
13553case $lt_shell_append in
13554 yes)
13555 cat << \_LT_EOF >> "$cfgfile"
13556
13557# func_append var value
13558# Append VALUE to the end of shell variable VAR.
13559func_append ()
13560{
13561 eval "$1+=\$2"
13562}
13563_LT_EOF
13564 ;;
13565 *)
13566 cat << \_LT_EOF >> "$cfgfile"
13567
13568# func_append var value
13569# Append VALUE to the end of shell variable VAR.
13570func_append ()
13571{
13572 eval "$1=\$$1\$2"
13573}
13574
13575_LT_EOF
13576 ;;
13577 esac
13578
13579
13580 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13581 || (rm -f "$cfgfile"; exit 1)
13582
13583 mv -f "$cfgfile" "$ofile" ||
13584 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13585 chmod +x "$ofile"
13586
13587 ;;
13588
13589 esac
13590done # for ac_tag
13591
13592
13593{ (exit 0); exit 0; }
13594_ACEOF
13595chmod +x $CONFIG_STATUS
13596ac_clean_files=$ac_clean_files_save
13597
13598test $ac_write_fail = 0 ||
13599 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13600$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13601 { (exit 1); exit 1; }; }
13602
13603
13604# configure is writing to config.log, and then calls config.status.
13605# config.status does its own redirection, appending to config.log.
13606# Unfortunately, on DOS this fails, as config.log is still kept open
13607# by configure, so config.status won't be able to write to it; its
13608# output is simply discarded. So we exec the FD to /dev/null,
13609# effectively closing config.log, so it can be properly (re)opened and
13610# appended to by config.status. When coming back to configure, we
13611# need to make the FD available again.
13612if test "$no_create" != yes; then
13613 ac_cs_success=:
13614 ac_config_status_args=
13615 test "$silent" = yes &&
13616 ac_config_status_args="$ac_config_status_args --quiet"
13617 exec 5>/dev/null
13618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13619 exec 5>>config.log
13620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13621 # would make configure fail if this is the last instruction.
13622 $ac_cs_success || { (exit 1); exit 1; }
13623fi
13624if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13625 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13626$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13627fi
13628